Skip to main content
PLOS Computational Biology logoLink to PLOS Computational Biology
. 2025 Jun 19;21(6):e1012603. doi: 10.1371/journal.pcbi.1012603

Predicting neuronal firing from calcium imaging using a control theoretic approach

Nicholas A Rondoni 1,*, Fan Lu 1, Daniel B Turner-Evans 2, Marcella Gomez 1
Editor: Barbara Webb3
PMCID: PMC12194039  PMID: 40536897

Abstract

Calcium imaging techniques, such as two-photon imaging, have become a powerful tool to explore the functions of neurons and the connectivity of their circuitry. Frequently, fluorescent calcium indicators are taken as a direct measure of neuronal activity. These indicators, however, are slow relative to behavior, obscuring functional relationships between an animal’s movements and the true neuronal activity. As a consequence, the firing rate of a neuron is a more meaningful metric. Converting calcium imaging data to the firing of a neuron is nontrivial. Most state-of-the-art methods depend largely on non-mechanistic modeling frameworks such as neural networks, which do not illuminate the underlying chemical exchanges within the neuron, require significant data to be trained on, and cannot be implemented in real-time. Leveraging modeling frameworks from chemical reaction networks (CRN) coupled with a control theoretic approach, a new algorithm is presented leveraging a fully deterministic ordinary differential equation (ODE) model. This framework utilizes model predictive control (MPC) to challenge state-of-the-art correlation scores while retaining interpretability. Furthermore, these computations can be done in real time, thus, enabling online experimentation informed by neuronal firing rates. To demonstrate the use cases of this architecture, it is tested on ground truth datasets courtesy of the spikefinder challenge. Finally, we propose potential applications of the model for guiding experimental design.

Author summary

We put forward a novel approach to infer when neurons fire as a function of calcium concentration. These calcium recordings are useful for imaging whole populations of neurons, such as those found in the brain, but act only as a proxy for the true underlying spiking occurrences. Moreover, these calcium traces are unfortunately noisy. To uncover the actual firing times we apply a control theoretic approach to a model derived from chemical reaction equations. The result is competitive with the state of the art, fast enough to provide information in real time, and highly interpretable. More broadly this analysis process aids understanding in contexts where methods of measurement obfuscate the desired ground truth information. To demonstrate potential applications of the model we quantify how biochemical properties of the indicators, which allow the tracking of calcium, impact prediction accuracies. In more general terms, this framework has the potential to enable understanding of the tools used to measure the desired underlying signals.

Introduction

Information processing within populations of neurons is frequently uncovered via calcium imaging [1]. This method indirectly tracks concentrations of intracellular calcium ions by their fluorescence, which is a noisy realization of the underlying calcium signal [2]. An action potential within a neuron results in an uptake in intracellular calcium, in turn yielding an increase of fluorescence as calcium ions bind to an indicator. Downstream analyses are frequently concerned with true spiking times, not fluorescent traces. Converting between a fluorescent trace and true spiking times is nontrivial, coming with many computational difficulties. Amongst them are disparities in the temporal resolution of imaging compared to neuronal dynamics, noise from the recorded fluorescent signals, nonlinear relationships between calcium indicators and fluorescence, and biological parameters unknown a priori [3].

This work is concerned with inferring a true firing signal from noisy time series calcium imaging data. State of the art methods approach this in a handful of different ways. Ranging from supervised learning [4], generative methods [5], sophisticated particle filtering [3], and nonnegative deconvolutions manifesting as convex optimization problems [6, 7], a litany of theory has arisen as a means to uncover the true spiking occurrences of a neuron. The works of [4, 8] and later [9] present thoughtful surveys of leading methods, while suggesting their preferred approach.

Of particular interest as of late is the ability to analyze systems of neurons in real time. Closed loop investigation of neural circuitry requires quick data processing and carefully crafted experimental conditions. With these conditions met, experiments can deliver sensory stimuli informed by system-wide neural dynamics. For example, a closed loop strategy was employed to tease out how activity in visual processing regions are connected to specific brain states [10]. Recent work from [11] has shown how real time inference of neural activity can inform what stimulation should be supplied to the neurons undergoing imaging, though these authors use calcium traces directly as their measures of activity. Model predictive control (MPC), tracing back to 1960s [12], has caught attention in biological control systems, resulting in high levels of control accuracy [13, 14]. This controller leverages a model, often based on ordinary differential equations, and is used to predict optimal control strategy via optimization over a finite time window of data. Neuronal firing is treated as a control input into the system of equations. The MPC algorithm computes this neuronal firing signal with the goal of tracking measured calcium traces with the model. The performance of our algorithm is compared to two state-of-the-art methods. With only a handful of methods fast enough to be considered real time [7], this work adds to this body of existing methods.

Methods and models

This section utilizes a chemical reaction network to derive a model, then discusses how MPC can be tailored to infer underlying firing rates.

Chemical reaction formulation

Starting with first principles, we examine the chemical reaction network theorized to dictate the interplay between a calcium ion, a calcium indicator, and a bound (or fluoresced) calcium indicator. These quantities will be denoted [Ca2+]=x(t), [CI]=y(t), and [CI*]=z(t) respectively, where [·] denotes concentration. Intracellular calcium binds to an indicator at a rate of kf. Simultaneously these compounds may unbind at a rate of kr, leaving the indicator and calcium ion free within the cell once again. This gives

Ca2++CIkfkrCI* (1)

With this chemical reaction network, we may utilize the law of mass action, which posits the rate of a reaction is proportional to the product of reactant concentrations [15, 16].

Supposing calcium indicators do not passively diffuse out of the cell, the total concentration of calcium indicator is time invariant. That is the sum of concentrations of the indicator, both bound and unbound, should remain constant. Call this value L. Then for all time t

y(t)+z(t)=LL+

and the equations that follow from (1) may be reduced to

{x˙=krzkfx(Lz)z˙=kfx(Lz)krz (2)

Note these ODEs are nonlinear due to the product of x and z appearing in both equations. Motivated by the observation that a neuron’s firing results in an uptake of calcium [17], and ultimately is the dominating force controlling the balance of x=[Ca2+], we add in a continuous function of time s(t) to represent firing rate at a given time t, scaled by some constant α. We finally note calcium ion x could passively diffuse out of the cell, and subtract a γx term to account for this, arriving at the final governing ODE system

{x˙=αsγx+krzkfx(Lz)z˙=kfx(Lz)krz (3)

where

x(t),z(t):+{0},α,γ,kr,kf,L+

In this phrasing, the question of inferring spiking rates as a function of calcium imaging has been cast as an inverse problem, in which we learn the control signal responsible for driving the observed dynamics. A table of parameter values and their biophysical interpretation can be found in S1 Table. Justification that this system is stable for all achievable values of s is in S1 Appendix. An auto-calibration pipeline, which infers reasonable parameter value(s), is outlined in S2 Appendix. Parameters of the model are optimized on 1-3 cells for each dataset, using the calcium signal and ground truth data obtained via a patch clamp method.

Model predictive control and the neuron

MPC is an optimal control technique. This well tested method computes necessary control actions that minimize a cost function and adhere to an underlying model [18], in our case a constrained set of ODEs defined in Eq (3). This control action is computed over a finite horizon, enabling changes to actuation that update with real time information. For all simulations in the results section, the open-source MPC package do-mpc [19], implemented in python, was utilized.

graphic file with name pcbi.1012603.e068.jpg

In the above block diagram, CImeas* denotes the measured amount of fluoresced indicator, while CIsim* represents the simulated amount of this quantity as dictated by the model (3). Per the definition of MPC, we require a cost defined over our horizon of n timesteps. For simulations to follow, we consider the following minimization problem

mins+k=0n1((CIk,sim*CIk,meas*)2+r(sksk1)2)+(CI[0,T],sim*CI[0,T],meas*)2 (4)

for parameter r+ and current simulation time T. The first squared term enforces our simulated and measured calcium indicators track one another on a finite horizon, and sksk1 penalizes changes in s, essentially limiting the derivative and encouraging smoothness. All simulations to follow take r = 0.01 as regularization term. Other authors have had success with the similar cost functions, sometimes using a l0 or l1 penalty on s instead of the quadratic cost above [6, 7]. Observe that the final term in (4) acts as terminal penalty function, which aids the effectiveness of MPC. An improperly chosen terminal penalty function may degrade performance and potentially destabilize the closed-loop system. Although increasing the prediction horizon can improve performance, this significantly raises computational costs. A well-established solution to these issues involves selecting the terminal penalty function as the infinite-horizon value function that satisfies the dynamic programming equations [20, 21], as is done above. The horizon length n = 6 was utilized for all simulations corresponding to a 60 ms time window.

In order to partially address the noisy fluorescence signal, a shifted sigmoidal filter

σ(x)=11+e(x+1)h

is applied to CImeas*. To avoid saturation of this filter, e.g., CIsim* values becoming stuck at 1, a vertical shift downward of h = 0.15 is additionally used. If saturation still occurs, a more aggressive vertical shift of h = 0.25 is then applied and computations are restarted. The nature of a sigmoidal curve minimizes contributions from extreme values, mapping them closer to 0 or 1, while retaining a linear regime for middle of the pack measurements. More advanced filtering techniques to address stochasticity inherent in the system could undoubtedly improve this methodology, this is discussed briefly in the following section.

Results and discussion

With a model formulated and the tools of inference defined, this section benchmarks performance using the spikefinder [22] challenge dataset. This dataset is comprised of recordings from two diferent benchmarking efforts, that of [4] and another from the cai-1 CRCNS website [23]. Our software implementation is publicly available (code: https://github.com/N-Rondoni/slugFind).

Spikefinder validation

This dataset contains not only time series calcium imaging data, but recorded “ground-truth" spikes via electrophysiology. It is one of the few public datasets to contain simultaneous recordings of spiking times and fluorescent traces, allowing for validation of many of the models discussed in this document. An application of our methodology, henceforth called the MPC approach, to a particular neuron produces a time series of simulated bound calcium indicator CIsim* and spiking rates s as a function of measured indicator CImeas*, visualized below in Fig 1.

Fig 1. Visualization of approximations.

Fig 1

Pearson correlation coefficient is 0.694 for this particular 15 second subset of test data set 1, neuron 0. The whole 12-minute recording scores a 0.491. Spiking rates plotted above are computed by downsampling neuronal spikes and normalizing them to be within [0, 1] for ease of viewing. Some false activity is predicted, while other activity is missed. Parameter values used in this simulation can be found in table A in S1 Table.

The primary metric valued during the spikefinder challenge was Pearson correlation coefficient. While emphasis is still placed on correlation, alternative methods of measuring spike synchrony have been put forward such as Victor-Purpura and van Rossum metrics [2426]. Since spikes are inherently discrete events, for comparison of two spike trains to be computationally tractable and informative we downsample in accordance with the spikefinder challenge methodology. Specifically, measured and simulated spiking signals are downsampled from their native acquisition rate of 10 ms by a factor of 4, yielding a bin width of 40 ms.

Beginning with correlation coefficient, we compare against the state of the art algorithms Spike Triggered Mixture (STM) [4] and Oasis [7] in Fig 2. Here STM serves as a representative of supervised methods, while Oasis is a non-negative deconvolution or NND algorithm. Note the work of [7] is another method that is certainly fast enough for real time applications, alongside the MPC approach put forward here. Oasis was eventually benchmarked on the spikefinder dataset by [9].

Fig 2. Comparison to state of the art.

Fig 2

Histogram of correlation coefficients across all data sets, both train and test. The red dashed line denotes the mean of the STM algorithm, green denotes Oasis supplied with no information about the indicator, pink denotes Oasis with information about the indicator, and the blacked dashed line denotes the mean of the plotted dataset. Means presented are across all data sets, train and test, as well. Resultant firing signals downsampled by a factor of 4 in accordance with the spikefinder challenge, yielding a bin width of 40 ms.

As can be seen in Fig 2, our mean correlation coefficient has a .01 difference relative to STM. The difference in mean with respect to Oasis is larger; about 0.167. To explore this on a more granular level, we present a neuron by neuron comparison of the correlation coefficients produced by both STM and Oasis versus MPC in Fig 3. It’s interesting to note the difference in performance of Oasis when no indicator information is provided, highlighting the importance of prior information and training. Thus, we would like to caution that direct comparison across methods is difficult to ascertain due to differences in data used for training, the handling of missing data points, and the inherent properties of a dataset itself. We highlight how performance varies across datasets in Figs 4 and 5. While it’s clear that Oasis maintains a lead with respect to accuracy we would like to note that our method is the only current method that can be implemented for real-time feedback with no variable backtracking. We dedicate further discussion on this later in manuscript. We also highlight the minimal data required for training below.

Fig 3. Neuron by neuron comparison of correlation coefficient for the state-of-the-art methods STM and Oasis.

Fig 3

A dot below the line means MPC’s prediction is more highly correlated, while a dot above means the other method’s prediction is superior. Advantages of our method for real-time applications is discussed further in the section Remarks on real time control.

Fig 4. Comparison to STM on specific datasets.

Fig 4

Histogram of correlation coefficients computed for four different datasets. a) and b) both showcase STM outperforming the MPC approach, while c) and d) show the MPC approach outperforming. Datasets 2 and 3 had both train and test data available - both are included. For datasets 7 and 8 only training data was made available.

Fig 5. Violin plot of correlation score.

Fig 5

Pearson correlation coefficients from MPC approach organized by data set, 40 ms bin sizes. The violin plot uses kernel density estimation to compute an empirical distribution of the samples by dataset. Medians of MPC approach are included in pink.

The MPC algorithm does not require training in the same way a supervised approach such as STM would. Rather, parameters may be selected a priori from known chemical reaction constants, however this undoubtedly results in a sub-optimal parameter regime as α and γ are likely unknown. For the simulations shown in this section parameters were selected for their approximate biophysical relevance, then the auto-calibration process outlined in appendix S2 Appendix was used to infer reasonable values for α. Values of learned α used in simulations by dataset are summarized in Table B in S1 Table. The same kr,kf,γ were used across all datasets thanks to the auto-calibration’s ability to vary α to accommodate as needed. Thus there is a small training phase, though much shorter than a neural net’s - a single neuron recording was enough to calibrate successfully on 8 of the 10 datasets. For the remaining two, datasets 8 and 9, we required 3 neurons. Recording lengths vary from approximately 5-20 minutes each. Datasets 1-5 had train and test data available, and only a single neuron from the train dataset was used to calibrate for these particular recordings. For datasets 6-10, we used the first neuron’s recording to train then tested on the remaining. In contrast to neural nets whose correlation scores are significantly higher for the neurons on which they trained, our methodology avoids such overfitting - with test and train scores not differing in a notable way.

It is challenging to find a metric that accurately captures the performance of an algorithm. Thus, we consider an alternative metric known as the Victor-Purpura distance. Note that lower scores are better when examining the Victor-Purpura distance [24]. In Fig 6 we compare the naive Oasis, meaning Oasis supplied with no information, Oasis supplied with indicator information, and STM to the MPC approach. In Fig 7 we compare neuron by neuron results of MPC against STM and Oasis under this metric. By this metric our algorithm performs better than Oasis for some neurons. The cost of moving a spike a single timestep is 1 for this simulation.

Fig 6. Comparison of Victor-Purpura distance.

Fig 6

Victor-Purpura distances across all datasets. Median value of MPC approach shown with a black dashed line, while the median of Oasis supplied with no information (NND*) is shown in green. The median of Oasis (NND) supplied with indicator information is in pink, and STM is in red. Since lower is better, MPC outperforms both the naive oasis method and STM, while Oasis outperforms MPC. 20 scattered outliers of Victor-Purpura distances greater than 3500 have been excluded from the plot for ease of viewing, leaving 186 different samples visualized in this histogram. Medians were computed with all samples included.

Fig 7. Comparison of Victor-Purpura distance.

Fig 7

Neuron by neuron comparison of Victor-Purpura distance for all available data. 20 scattered outliers of Victor-Purpura distances greater than 3500 have been excluded from the plot for ease of viewing, leaving 186 different samples visualized in this comparison. A lower Victor-Purpura distance is better, meaning MPC’s prediction is favorable with respect to this metric when the dot is above the dashed line.

Finally, we compare the variance in correlation score by dataset. This is summarized in the following Table 1, in which the standard deviation σi is presented for dataset i, by method. σall denotes the standard deviation of all datasets together. The variance is comparable across all algorithms.

Table 1. Comparison of method’s standard deviations. Across all datasets MPC has a smaller standard deviation than Oasis, but larger than that of STM.

MPC Oasis STM
σ1 0.064 0.069 0.065
σ2 0.123 0.134 0.120
σ3 0.118 0.143 0.112
σ4 0.149 0.181 0.170
σ5 0.109 0.129 0.125
σ6 0.050 0.055 0.083
σ7 0.092 0.079 0.079
σ8 0.071 0.061 0.067
σ9 0.163 0.176 0.138
σ10 0.137 0.161 0.135
σall 0.173 0.178 0.127

Reflections on noise

Though this MPC approach does not require training in a conventional neural net sense, careful selection of parameters is still imperative. This can be seen by considering Figs 8 and 9 in tandem.

Fig 8. Pearson correlation coefficient for this specific 10 second subset is 0.61, though the whole 12 min recording scores a 0.50.

Fig 8

Spiking rates plotted above are computed by downsampling neuronal spikes and normalizing them to be within [0, 1] for ease of viewing. Though most activity is detected, some is missed at around 24s.

Fig 9. In this example the MPC algorithm perfectly tracks the noisy signal CImeas*, which results in many false spikes.

Fig 9

The correlation coefficient is computed to be 0.19. Spiking rates plotted above are computed by downsampling neuronal spikes and normalizing them to be within [0, 1] for ease of viewing.

In Fig 8 near optimal parameters are utilized, which incorporates a slow decay rate. This slow decay rate filters out noise in the fluorescence signal by avoiding small increases not worthy of a spike. In contrast, Fig 9 has parameters selected to encourage almost perfect tracking of CImeas. While this is easily accomplished via the MPC algorithm, the resultant signal is riddled with false spikes, and thus has a low correlation coefficient. This is because under these circumstances the algorithm tracks the noise in imaging instead of the true underlying calcium signal. As mentioned in the introduction, fluorescence is a noisy filtered realization of the true calcium trace, and as such the MPC approach would certainly be improved by incorporating a nonlinear conversion between normalized fluorescence and CImeas*. Authors of MLspike [5] incorporate such ideas to great success. In contrast our current formulation equates these two quantities.

Remarks on real time control

Regarding the usability of methods presented in this document for online control, when training is accounted for, only our MPC approach and the NND algorithms are fast enough or structurally able to complete in real time. That is, for all solutions presented, the MPC algorithm was able to predict spiking signals in equivalent or less time than the duration of the recording. Though these signals were computed offline, the methodology needs no adaption to run out of the box in real time. To the best of our knowledge, the algorithm presented in this manuscript is the first one proposed that can be used for real-time feedback control with no variable backtracking required.

The methodology of Oasis and the scores presented from this method were computed with “backtracking" permitted. That is, predictions depended on looking back some Δt timesteps to at most the last spike, then optimizing over this window if constraints are violated. In the original Oasis papers the authors explore the effects of this lag on prediction, and note that while 5-7 frames of lag behave similarly, there is an impact if backtracking is limited to 1-2 frames. While the algorithm is still impressively quick, if spikes are infrequent occurrences, this look back duration could be rather long. Our method requires a look ahead of six steps, which amounts to an effective lag of 60ms. Further studies are needed to understand the tradeoff between the two methods. In an application where feedback control is used to drive the cells towards a desired spiking pattern, the reference signal can be generated (replace CImeas* with CIdesired*) and the MPC algorithm will drive neuronal stimulation to achieve the desired behavior. In this framework our method works out of the box with no lag.

Furthermore, MPC is uniquely designed to handle discrepancies in measured and predicted values, through its receding horizon approach, where the control policy is recomputed at each timestep based on updated measurements. This continual re-optimization ensures that transient deviations do not necessarily lead to instability in real-time applications. Previous studies [27] have demonstrated that MPC remains relatively robust against model imperfections and measurement noise, provided the system is appropriately tuned.

While Jewell’s updated methodology (along with other efficient NND approaches) can impressively compute spiking times for data sets with as many as 100,000 time instants in mere seconds on a laptop, this first requires knowledge of a parameter or training to be accurate. In Jewell’s approach the relevant parameter was discovered by training on the first half of a data set then testing on the second half, suggesting training is still important if high accuracy is desirable. It is worth noting the authors have a way to infer a reasonable parameter regime, though this was not used for testing. In the case of the suite2p implementation of Oasis [9, 28], training is not required but knowledge of the system must be supplied in some way to bring scores in line with means presented in plot 2. Otherwise, the means will be closer to the naive Oasis* instead of the more accurate Oasis.

The MPC algorithm takes longer than these NND methods; with run times always 30-60% less than the duration of their recording when computed on a laptop with an Apple M3 processor. However there is a rich legacy of MPC used for real time control, with many packages optimized for speed and ease of implementation, and as such is relevant in this context for its accuracy and tractable nature. Moreover, this MPC approach allows for other quantities of interest to be inferred, such as the concentration of unbound calcium indicator within the cell. This is a result of our model’s rooting in biophysical mechanisms.

A discussion on biophysical insights

With the MPC approach and the model underlying it justified, analysis of the system may be considered. The following serves as a discussion on the potential interpretability of the model, though more experimentation is required for validation. Thus far we have been told the status of state variables and inferred s from this signal. Reaping the benefits of a fully mechanistic model, we may now suppose s and analyze the impacts on state variables.

To accomplish this, we perform frequency response analysis on the system of ODEs (3),

{x˙=αsγx+krzkfx(Lz)z˙=kfx(Lz)krz (3)

then move to show how this process can be reverse engineered such that an indicator may be designed to work within a specific regime of frequencies.

Since our ODEs are nonlinear many of the elegant results pertaining to frequency response of linear systems is unavailable. Instead, we must suppose a range of frequencies at which s oscillates then note the impacts on our state variables of interest. Specifically, take

s(t)=Asin(ωt)+c

for parameters A,ω,c. This process is showcased for a fixed value ω in Fig 10. The response in calcium ion [Ca2+]=x and indicator [CI*]=z follow from the supposed s in the leftmost plot.

Fig 10. Parameters: A = 20, c = 1, ω=0.5.

Fig 10

Notice after transient dynamics the resultant amplitudes for the calcium ion, indicator are not as large as the amplitude of the s signal. This suggests these state variables do not keep up with changes in s at this frequency.

To avoid confusion, note s(t) is the firing rate at given time t and is measured in Hz. Here we examine how frequently s must change before state variables begin to lag. This is determined by the parameter ω, which determines the frequency of the s signal, also measured in Hz. For the previous example, 10 sin(0.5t) + 11 has period 4π and thus oscillates at a frequency of 1/(4π)0.080 Hz between the values of 1 and 21 Hz.

To evaluate the ODE system’s performance for a range of ω, we perform simulations akin to those done in Fig 10. However after transient dynamics conclude, we note the ratio of amplitudes between s and our state variables. This process is showcased in Fig 11. In this way we are able to tease out at which frequencies our state variables are able to reasonably respond to. The below calcium indicator keeps up with changes in firing rate poorly for higher frequency oscillations, highlighting the need to convert recorded calcium indicator quantities to firing rate for certain downstream analyses in which a neuron may often change the rate at which it fires.

Fig 11. Frequency response analysis of the commonly used indicator GCaMP6s, kf = 0.0514, kr = 7.6, L = 30.

Fig 11

Results show that for higher frequency oscillations in firing rate, calcium dynamics cannot keep up, evident in the amplitude of s dominating the amplitude of calcium. Blue shows the total amount of calcium in the system, both bound and unbound. Orange depicts the unbound calcium ions themselves, while green shows the calcium ions bound to an indicator.

This not only has the ability to analyze frequency response for existing indicators, but the potential to aid in the development of novel indicators. For example, if we desired an indicator which operated better for smaller values of ω than GCaMP6s, we might try setting new kf and kr then examine the resultant frequency response plot. To this end, consider Fig 12, which achieves precisely this by utilizing kf = 0.01 and kr = 10 as reaction rates for this toy example.

Fig 12. Frequency response of a hypothetical indicator.

Fig 12

All parameters are held constant aside from kf = 0.01 and kr = 10. Notice an improvement in ratio of amplitudes at small ω when compared to Fig 11. A drop off still begins at ω=0 or about e0 = 1 Hz.

The task at hand then becomes creating an indicator with binding affinity kd=kf/kr=0.01/10. If additional control over indicator dynamics is desirable, each parameter in (3) may be tuned such that the frequency response is satisfactory. Constructing an indicator which agrees with all parameters in our governing ODE equations is likely difficult, but nonetheless this has the potential to serve as an approximate guide for the creation of future indicators.

As discussed in [29], general performance criteria to consider in the construction of GECIs include

  1. large dynamic range

  2. high calcium sensitivity

  3. faster response kinetics

  4. linear response properties.

The frequency response analysis pipeline outlined in this section could prove valuable to evaluating the above performance metrics.

Future work

This work presents a new method of detecting neuronal spikes in real-time from calcium imaging. The advantage of this method is the control theoretic approach that makes the algorithm suitable for real-time feedback control applications. Another advantage of this approach is the opportunity to improve the accuracy through further adaptations that can be explored.

As an avenue for improvement, consider the terminal penalty function of (4). This function can also be approximated via the Q function in reinforcement learning (RL) [30], presenting an opportunity for future directions of this work in applying RL-based approaches for efficient MPC design.

Next, a more sophisticated treatment of noise would increase accuracy further. This could be achieved by coupling another ODE connecting fluorescence to calcium, as is done by MLspike, or by employing particle filtering methods. Sequential Monte Carlo methods appear uniquely suited to address the stochasticity present in the system [31]. Earlier state of the art methods, like that from Vogelstein et al. [3], had success with this approach and has laid much of the necessary mathematical groundwork. Moreover, their auto-calibration approach avoids the need for simultaneous recordings of calcium and spiking activity, something our implementation currently relies on.

Finally, an in depth study of real time methods would further advance this work. To rigorously vet real time merit, a combination of in silico and in vivo experiments could be devised in which the accuracy of Oasis and MPC are demonstrated as a function of temporal lag. Since MPC does not rely on backtracking, it would be worthwhile to explore if there exists some threshold for which MPC returns consistently more accurate results.

Conclusion

In this paper, we propose a novel modeling framework and strategy to infer underlying firing rates of neurons provided calcium imaging traces. This first principles approach underscores the potential of adapting optimal control architectures to this space of problems. Accurate enough to challenge state of the art methods, this formulation joins the select few methodologies capable of providing real time spiking information. This methodology sets itself apart in that variable backtracking is not required. Leveraging a mechanistic model could lend to interpretability and can help in uncovering and predicting biophysical nuances as they relate to hyperparameters such as reaction rates of indicators.

Supporting information

S1 Appendix. Stability analysis of the ODE system (3).

(PDF)

pcbi.1012603.s001.pdf (228.4KB, pdf)
S1 Appendix Fig A. Flows of equation (3).

(PDF)

pcbi.1012603.s002.pdf (151.8KB, pdf)
S2 Appendix. Auto-calibration of parameters, in particular α.

(PDF)

pcbi.1012603.s003.pdf (123.3KB, pdf)
S1 Table. Parameter values and physical interpretation.

(PDF)

pcbi.1012603.s004.pdf (110.2KB, pdf)

Acknowledgments

Thank you to the Gomez lab group, in particular Ksenia Zlobina, for insightful discussions pertaining to modeling and analysis.

Data Availability

All Python source code and outputs are available in the following repository: https://github.com/N-Rondoni/slugFind.

Funding Statement

This effort was supported by the SciAI Center, and funded by the Office of Naval Research (ONR), under Grant Number N00014-23-1-2729 to MG. The funding agency played no role in study design, data analysis, decision to publish, or preparation of the manuscript.

References

  • 1.Kerr JND, Denk W. Imaging in vivo: watching the brain in action. Nat Rev Neurosci. 2008;9(3):195–205. doi: 10.1038/nrn2338 [DOI] [PubMed] [Google Scholar]
  • 2.Stringer C, Pachitariu M. Computational processing of neural recordings from calcium imaging data. Curr Opin Neurobiol. 2019;55:22–31. doi: 10.1016/j.conb.2018.11.005 [DOI] [PubMed] [Google Scholar]
  • 3.Vogelstein JT, Watson BO, Packer AM, Yuste R, Jedynak B, Paninski L. Spike inference from calcium imaging using sequential Monte Carlo methods. Biophys J. 2009;97(2):636–55. doi: 10.1016/j.bpj.2008.08.005 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Theis L, Berens P, Froudarakis E, Reimer J, Román Rosón M, Baden T. Benchmarking spike rate inference in population calcium imaging. Neuron. 2016;90(3):471–82. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Deneux T, Kaszas A, Szalay G, Katona G, Lakner T, Grinvald A, et al. Accurate spike estimation from noisy calcium signals for ultrafast three-dimensional imaging of large neuronal populations in vivo. Nat Commun. 2016;7:12190. doi: 10.1038/ncomms12190 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Jewell SW, Hocking TD, Fearnhead P, Witten DM. Fast nonconvex deconvolution of calcium imaging data. Biostatistics. 2020;21(4):709–26. doi: 10.1093/biostatistics/kxy083 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Friedrich J, Zhou P, Paninski L. Fast online deconvolution of calcium imaging data. PLoS Comput Biol. 2017;13(3):e1005423. doi: 10.1371/journal.pcbi.1005423 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Theis L, Berens P, Froudarakis E, Reimer J, Román Rosón M, Baden T, et al. Benchmarking spike rate inference in population calcium imaging. Neuron. 2016;90(3):471–82. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Pachitariu M, Stringer C, Harris KD. Robustness of spike deconvolution for neuronal calcium imaging. J Neurosci. 2018;38(37):7976–85. doi: 10.1523/JNEUROSCI.3339-17.2018 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Shang C-F, Wang Y-F, Zhao M-T, Fan Q-X, Zhao S, Qian Y, et al. Real-time analysis of large-scale neuronal imaging enables closed-loop investigation of neural dynamics. Nat Neurosci. 2024;27(5):1014–8. doi: 10.1038/s41593-024-01595-6 [DOI] [PubMed] [Google Scholar]
  • 11.Bowen Z, De Zoysa D, Shilling-Scrivo K, Aghayee S, Di Salvo G, Smirnov A. NeuroART: real-time analysis and targeting of neuronal population activity during calcium imaging for informed closed-loop experiments. eNeuro. 2024;11(10). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Garcia CE, Prett DM, Morari M. Model predictive control: theory and practice—a survey. Automatica. 1989;25(3):335–48. [Google Scholar]
  • 13.Chait R, Ruess J, Bergmiller T, Tkačik G, Guet CC. Shaping bacterial population behavior through computer-interfaced control of individual cells. Nat Commun. 2017;8(1):1535. doi: 10.1038/s41467-017-01683-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Fox ZR, Fletcher S, Fraisse A, Aditya C, Sosa-Carrillo S, Petit J, et al. Enabling reactive microscopy with MicroMator. Nat Commun. 2022;13(1):2199. doi: 10.1038/s41467-022-29888-z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Érdi P, Tóth J. Mathematical models of chemical reactions : theory and applications of deterministic and stochastic models. Princeton, NJ: Princeton University Press. 1989. [Google Scholar]
  • 16.Feinberg M. Correction to: foundations of chemical reaction network theory. Applied mathematical sciences. Springer; 2022. p. C1–2. 10.1007/978-3-030-03858-8_20 [DOI] [Google Scholar]
  • 17.Koch C. Biophysics of computation. Oxford University Press. 1998. 10.1093/oso/9780195104912.001.0001 [DOI] [Google Scholar]
  • 18.Maciejowski JM. Predictive control: with constraints. Prentice Hall. 2002. [Google Scholar]
  • 19.Fiedler F, Karg B, Lüken L, Brandner D, Heinlein M, Brabender F, et al. do-mpc: towards FAIR nonlinear and robust model predictive control. Control Eng Pract. 2023;140:105676. [Google Scholar]
  • 20.Mayne DQ, Rawlings JB, Rao CV, Scokaert PO. Constrained model predictive control: stability and optimality. Automatica. 2000;36(6):789–814. [Google Scholar]
  • 21.Chen RR, Meyn S. Value iteration and optimization of multiclass queueing networks. Queueing Syst. 1999;32:65–97. [Google Scholar]
  • 22.Berens P, Freeman J, Deneux T, Chenkov N, McColgan T, Speiser A, et al. Community-based benchmarking improves spike rate inference from two-photon calcium imaging data. PLoS Comput Biol. 2018;14(5):e1006157. doi: 10.1371/journal.pcbi.1006157 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Svoboda K, Project G. Simultaneous imaging and loose-seal cell-attached electrical recordings from neurons expressing a variety of genetically encoded calcium indicators. 2015. doi: 10.6080/K02R3PMN [DOI] [Google Scholar]
  • 24.Victor JD, Purpura KP. Metric-space analysis of spike trains: theory, algorithms and application. Netw: Comput Neural Syst. 1997;8(2):127–64. doi: 10.1088/0954-898x_8_2_003 [DOI] [Google Scholar]
  • 25.Houghton C, Sen K. A new multineuron spike train metric. Neural Comput. 2008;20(6):1495–511. doi: 10.1162/neco.2007.10-06-350 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.van Rossum M. A novel spike distance. Neural Comput. 2001;13(4):751–63. [DOI] [PubMed] [Google Scholar]
  • 27.Rawlings JB, Mayne DQ, Diehl M. Model predictive control: theory, computation, and design. Madison, WI: Nob Hill Publishing. 2017. [Google Scholar]
  • 28.Pachitariu M, Stringer C, Dipoppa M, Schröder S, Rossi LF, Dalgleish H. Suite2p: beyond 10,000 neurons with standard two-photon microscopy. bioRxiv. 2017. [Google Scholar]
  • 29.Inoue M. Genetically encoded calcium indicators to probe complex brain circuit dynamics in vivo. Neurosci Res. 2021;169:2–8. doi: 10.1016/j.neures.2020.05.013 [DOI] [PubMed] [Google Scholar]
  • 30.Lu F, Mathias J, Meyn S, Kalsi K. Convex Q-learning in continuous time with application to dispatch of distributed energy resources. In: 2023 62nd IEEE Conference on Decision and Control (CDC). IEEE; 2023. p. 1529–36. [Google Scholar]
  • 31.Chopin N, Papaspiliopoulos O. An introduction to sequential Monte carlo. 2020. [Google Scholar]
PLoS Comput Biol. doi: 10.1371/journal.pcbi.1012603.r002

Decision Letter 0

Barbara Webb

5 Feb 2025

PCOMPBIOL-D-24-01903

Predicting neuronal firing from calcium imaging using a control theoretic approach

PLOS Computational Biology

Dear Dr. Rondoni,

Thank you for submitting your manuscript to PLOS Computational Biology. After careful consideration, we feel that it has merit but does not fully meet PLOS Computational Biology's publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

In particular, although all the reviewers recognize the originality and potential importance of the approach presented, they raise similar issues. These include: 1) that the current accuracy obtained for this method falls below the state of the art, limiting the likelihood that it would be adopted by other researchers; 2) that auto-calibration to set parameters is also needed if the method is to be useful to the field; 3) that the variability in the obtained results is not sufficiently explored or explained. These problems are crucial to address in your revision.

​Please submit your revised manuscript within 60 days Apr 07 2025 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at ploscompbiol@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pcompbiol/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

* A rebuttal letter that responds to each point raised by the editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'. This file does not need to include responses to formatting updates and technical items listed in the 'Journal Requirements' section below.

* A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

* An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, competing interests statement, or data availability statement, please make these updates within the submission form at the time of resubmission. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter

We look forward to receiving your revised manuscript.

Kind regards,

Barbara Webb

Academic Editor

PLOS Computational Biology

Joseph Ayers

Section Editor

PLOS Computational Biology

Feilim Mac Gabhann

Editor-in-Chief

PLOS Computational Biology

Jason Papin

Editor-in-Chief

PLOS Computational Biology

Journal Requirements:

1) We ask that a manuscript source file is provided at Revision. Please upload your manuscript file as a .doc, .docx, .rtf or .tex. If you are providing a .tex file, please upload it under the item type u2018LaTeX Source Fileu2019 and leave your .pdf version as the item type u2018Manuscriptu2019.

2) Please upload all main figures as separate Figure files in .tif or .eps format. For more information about how to convert and format your figure files please see our guidelines: 

https://journals.plos.org/ploscompbiol/s/figures

3) Please ensure that all Figure and Table files have corresponding citations and legends within the manuscript. Currently, Figure 4, and Tables (1-3) in your submission file inventory do not have in-text citations. Please include the in-text citations of the figure and the tables.

4) We notice that your supplementary Tables, and information are included in the manuscript file. Please remove them and upload them with the file type 'Supporting Information'. Please ensure that each Supporting Information file has a legend listed in the manuscript after the references list.

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Authors:

Please note that one of the reviews is provided as an attachment.

Reviewer #1: In this manuscript, the authors proposed an approach to infer neuronal spiking times from calcium imaging signals. By employing modern control architectures, specifically model predictive control (MPC), within a chemical reaction network framework, the authors demonstrated accurate, fast, and interpretable results for predicting firing times. Furthermore, this framework is not limited to inference but also offers insights into biophysical nuances through the hyperparameters of calcium indicators. In total, the study presents a useful modeling framework for inferring neuronal firing rates from calcium imaging traces. However, the results remain preliminary, and further in-depth studies are necessary to justify publication in PLOS Computational Biology.

Major concerns:

1. Accuracy issue. The authors compared their MPC algorithm to two state-of-the-art algorithms, STM and Oasis, in Figure 2. While the authors highlighted that MPC offers better interpretability than Oasis and requires less training data than STM, its accuracy is inferior. Given that accuracy is a primary concern for users converting calcium signals into spike trains, the performance of MPC should be further improved to enhance its practical utility.

2. A significant limitation of the MPC approach is its sensitivity to the chosen dataset. As seen in Figures 3 and 4, the correlation scores of MPC are inconsistent, with median values ranging from below 0.2 to nearly 0.6 depending on the dataset. Furthermore, the MPC method shows greater variability in its mean correlation scores compared to STM. This instability may lead to doubts about the reliability of results obtained using MPC.

3. The current implementation of the MPC model lacks robust auto-calibration functionality. Manual parameter adjustments are inefficient and require substantial biophysical knowledge from the user, making the model less user-friendly. Considering the noisy nature of calcium signaling data, parameter selection becomes even more challenging. Figure 7 highlights that the model's noise-resistance capabilities need further optimization to enhance usability.

4. While the authors emphasized the availability of the MPC model for online control, Figure 6 showed temporal deviations between Ssim and Smeas, in particular for the first spike in the 10-second subset. If such deviations persist during online control, they could destabilize the closed-loop system. The authors should address whether these deviations impact real-time applications.

5. The frequency response analysis pipeline described in the final section is undoubtedly valuable for understanding biological processes. However, it remains unclear how these biological insights translate into improved model performance. While the chemical reaction-based modeling framework has strong biological interpretability, further optimizations are needed to enhance both the performance and practicality of the method.

Minor concerns:

1. The full name of NND is missing from the text. Is it Non-Negative Deconvolution?

2. In line 253, the word “biophysical” is misspelled as “biophyiscal.”

Reviewer #2: The manuscript introduces a novel method to predict neuronal firing rates from single cell calcium imaging data. The algorithm uses a mechanistic model based on chemical reaction networks (CRN) and model predictive control (MPC). This approach offers real-time computation capabilities and higher interpretability respect to the state of the art, especially as it is based on a model of calcium dynamics, addressing a key limitation of existing methods that rely heavily on neural networks or non-mechanistic strategies.

Major points:

As the topic of the study is the inference of spiking activity from calcium imaging traces, and since the vast majority of learning-based methods have been shown to be still outperformed by the much more simple nonnegative deconvolution (NND) 1, the authors correctly compare their method with NND.

The authors show that their method is outperformed by both the STM and NDD methods. While there is an argument that the efficiency of STM methods varies greatly depending on their training, this is not true for NND.

All in all, the method proposed by the authors offers improved interpretability at the cost of speed and accuracy, respect to NND. However, while I do find interpretability to be an extremely important factor in developing new methodologies, the target audience for this method is likely to care more about its predictive ability, and, secondarily, speed.

Minor points:

- I find it unclear why the authors refer specifically to two-photon calcium imaging, and not to calcium imaging in general. What is necessary to apply their analysis is to have calcium imaging at the single-cell resolution, not necessarily with a two-photon microscope. I see no reason why their analysis should not apply to 1-photon or multi-photon calcium imaging. Given the expertise of the authors with applied mathematics, I believe this might be since they have mostly cooperated with a laboratory that focuses on two-photon. I recommend the authors to adjust the manuscript accordingly, since their method is more widely applicable.

- The requirement of having to tune the parameters for optimal performance, while being positive as it introduces an extra degree of control over the method, is similarly likely to constitute a potential source of error for least experienced experimenters.

- Line 37, the authors explain for the second time the meaning of MPC, this is unnecessary as it has been explained already in line 28. I believe that instead, the STM acronym has not been explained.

- Figure 2, what is NDD* in the legend?

- Since the method seems very promising in taking into account different calcium indicator dynamics, it might be worth adding a comparison of performance with other methods in case of different calcium indicators (e.g. GCaMP6s vs GCaMP6f, or even better, RCaMP). It might potentially greatly improve the applicability of the method, since standard methods tend to struggle with RCaMP.

References

Pachitariu, Marius, Carsen Stringer, and Kenneth D. Harris. "Robustness of spike deconvolution for neuronal calcium imaging." Journal of Neuroscience 38.37 (2018): 7976-7985.

Reviewer #3: I assume all the code will be public, and the results fully reproducible, as a pre-condition for acceptance in PLoS CB. However, I did not check either of those things.

Please also see attached pdf for reviewer #3

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: No: 

Reviewer #2: Yes

Reviewer #3: None

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: Yes: Niccolo' Calcini

Reviewer #3: Yes: Joshua T. Vogelstein

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

Figure resubmission:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step. If there are other versions of figure files still present in your submission file inventory at resubmission, please replace them with the PACE-processed versions.

Reproducibility:

To enhance the reproducibility of your results, we recommend that authors of applicable studies deposit laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols

Attachment

Submitted filename: PLOS CB review.pdf

pcbi.1012603.s005.pdf (27.4KB, pdf)
PLoS Comput Biol. doi: 10.1371/journal.pcbi.1012603.r004

Decision Letter 1

Barbara Webb

19 May 2025

Dear Mr. Rondoni,

We are pleased to inform you that your manuscript 'Predicting neuronal firing from calcium imaging using a control theoretic approach' has been provisionally accepted for publication in PLOS Computational Biology.

Before your manuscript can be formally accepted you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests.

Please note that your manuscript will not be scheduled for publication until you have made the required changes, so a swift response is appreciated.

IMPORTANT: The editorial review process is now complete. PLOS will only permit corrections to spelling, formatting or significant scientific errors from this point onwards. Requests for major changes, or any which affect the scientific understanding of your work, will cause delays to the publication date of your manuscript.

Should you, your institution's press office or the journal office choose to press release your paper, you will automatically be opted out of early publication. We ask that you notify us now if you or your institution is planning to press release the article. All press must be co-ordinated with PLOS.

Thank you again for supporting Open Access publishing; we are looking forward to publishing your work in PLOS Computational Biology. 

Best regards,

Barbara Webb

Academic Editor

PLOS Computational Biology

Hugues Berry

Section Editor

PLOS Computational Biology

***********************************************************

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: The author answered my question well in the revised version. I have no more comment now.

Reviewer #2: I thank the authors for having addressed all my points and doubts to the best of their ability. I find that the addition of the auto-calibration pipeline, especially if user-friendly enough, would be an excellent improvement of the method, and allow more researchers to access it, especially as the field still has a strong split between experimenters and analysis/math-savy experts.

While indeed the method is either roughly comparable with or outperformed by previous methods (STM and Oasis respectively), the method, with respect to these, allows for real time feedback control, which is a feature that might be of interest for other groups and makes it of potential interest for publication. The authors also reported that the calibration slightly improved the method’s score, bringing it fully on par with STM.

Thanks to this, and the reactions to my other minor points and the points made by the other reviewers, I believe the manuscript has improved and been more solid, and the method more usable and accessible.

**********

Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: None

Reviewer #2: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: Yes: Jiulin Du

Reviewer #2: Yes: Niccolò Calcini

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1012603.r005

Acceptance letter

Barbara Webb

PCOMPBIOL-D-24-01903R1

Predicting neuronal firing from calcium imaging using a control theoretic approach

Dear Dr Rondoni,

I am pleased to inform you that your manuscript has been formally accepted for publication in PLOS Computational Biology. Your manuscript is now with our production department and you will be notified of the publication date in due course.

The corresponding author will soon be receiving a typeset proof for review, to ensure errors have not been introduced during production. Please review the PDF proof of your manuscript carefully, as this is the last chance to correct any errors. Please note that major changes, or those which affect the scientific understanding of the work, will likely cause delays to the publication date of your manuscript.

Soon after your final files are uploaded, unless you have opted out, the early version of your manuscript will be published online. The date of the early version will be your article's publication date. The final article will be published to the same URL, and all versions of the paper will be accessible to readers.

Thank you again for supporting PLOS Computational Biology and open-access publishing. We are looking forward to publishing your work!

With kind regards,

Zsofia Freund

PLOS Computational Biology | Carlyle House, Carlyle Road, Cambridge CB4 3DN | United Kingdom ploscompbiol@plos.org | Phone +44 (0) 1223-442824 | ploscompbiol.org | @PLOSCompBiol

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    S1 Appendix. Stability analysis of the ODE system (3).

    (PDF)

    pcbi.1012603.s001.pdf (228.4KB, pdf)
    S1 Appendix Fig A. Flows of equation (3).

    (PDF)

    pcbi.1012603.s002.pdf (151.8KB, pdf)
    S2 Appendix. Auto-calibration of parameters, in particular α.

    (PDF)

    pcbi.1012603.s003.pdf (123.3KB, pdf)
    S1 Table. Parameter values and physical interpretation.

    (PDF)

    pcbi.1012603.s004.pdf (110.2KB, pdf)
    Attachment

    Submitted filename: PLOS CB review.pdf

    pcbi.1012603.s005.pdf (27.4KB, pdf)
    Attachment

    Submitted filename: Response to Reviewers.pdf

    pcbi.1012603.s006.pdf (282KB, pdf)

    Data Availability Statement

    All Python source code and outputs are available in the following repository: https://github.com/N-Rondoni/slugFind.


    Articles from PLOS Computational Biology are provided here courtesy of PLOS

    RESOURCES