Skip to main content
Biophysical Journal logoLink to Biophysical Journal
. 2025 Jun 16;124(14):2347–2361. doi: 10.1016/j.bpj.2025.06.010

A Bayesian framework for systems model refinement and selection of calcium signaling

Xuan Fang 1,, Peter Varughese 1, Sara Osorio-Valencia 2, Aleksey V Zima 1, Peter M Kekenes-Huskey 1
PMCID: PMC12414710  NIHMSID: NIHMS2146692  PMID: 40528342

Abstract

Calcium (Ca2+) is a crucial messenger that modulates contractile and electrophysiological processes in eukaryotic cells. Dysregulation of Ca2+-signaling influences these processes and is strongly associated with diseases such as cancer, immune disorders, and heart failure. Computational modeling of Ca2+ dynamics offers valuable insights into these processes. However, traditional approaches often overlook the inherent heterogeneity within cell populations, including cell-to-cell variability and population-wide differences. To overcome these limitations, we developed and implemented an advanced statistical approach (a Bayesian inference framework using a hierarchical mixture architecture) specifically engineered to capture and model the diverse behaviors seen in fundamental calcium signaling pathways within cells. We applied this framework to myoblasts and to a HEK293 cell line expressing the cardiac proteins SERCA2a and RyR2. Using fluorescence microscopy, we monitored Ca2+ dynamics in response to extracellular adenosine triphosphate, as well as spontaneous Ca2+ release and uptake between cellular compartments. Our framework leverages the microscopy data to identify the most probable models and parameters that reproduce experimental observations, effectively distinguishing multiple clusters of cells with distinct kinetic behaviors. This approach provides deeper insights into the underlying biological processes and their variability across multiple populations of cells. Our findings demonstrate that this Bayesian method significantly improves our ability to create accurate computational models of Ca2+ signaling by explicitly accounting for cellular differences. This, in turn, enhances our capacity to understand the complex regulatory networks that govern how cells use calcium signals.

Significance

Biological data often contain significant heterogeneity, such as cell-to-cell variability and clusters of different cell populations. Although there are numerous tools for fitting theoretical models to such data, most do not model the complexity in a probabilistic and robust way. To address this gap, we developed a Bayesian-based framework that models biological data while capturing both forms of heterogeneity. The tool offers a probabilistic perspective and, by addressing heterogeneity, reveals invaluable insights into the underlying biological processes.

Introduction

Ca2+ is a critical second messenger that modulates various signaling pathways, influencing cell behaviors as diverse as migration, contraction, gene transcription, and proliferation (1,2,3,4). The modulation by Ca2+ is encoded in its waveform (5,6), with the dynamics of intracellular [Ca2+] ([Ca2+]i) acting as an information-rich signal to regulate Ca2+-binding proteins. For this reason, dysregulated [Ca2+]i dynamics are frequently linked to cardiac dysfunction, neurodegeneration, lysosomal storage disorders, and cancer (7,8,9,10). To study Ca2+ waveform generation and regulation, numerous studies have been dedicated to mathematical modeling of Ca2+ dynamics using ordinary differential equations (ODEs) (11,12,13,14). ODE-based models can be used to describe the temporal evolution of states, such as channel opening or intracellular Ca2+ levels. These models can simulate how intracellular calcium ([Ca2+]i) changes in response to stimuli and how these changes regulate downstream pathways, ultimately affecting cellular behavior.

These models are fitted to the experimental data to ensure that ODE-based representations accurately reflect the dynamic processes observed in living cells. However, experimental data frequently exhibit high heterogeneity due to cell-to-cell variability and cell clustering (15), which may stem from differences in gene expression levels and altered Ca2+ sensitivity within cell populations (16). Many modeling approaches neglect this heterogeneity, using training data consisting of averaged values across different populations. Consequently, fitted models may not fully capture the underlying heterogeneous states and parameters. Traditional frequentist methods, such as maximum likelihood estimation or nonlinear least squares, can be used for parameter estimation and provide uncertainty quantification through confidence regions. Typically, however, such methods offer point estimates as the primary output, with uncertainty represented through interval estimates that carry a different probabilistic interpretation. These intervals have a different interpretation rooted in long-term error rates from repeated sampling (17), rather than directly reflecting a probability distribution over parameter values.

Given the complexity inherent in heterogeneous biological data, Bayesian inference offers an alternative probabilistic approach based on Bayes’ theorem (18,19). Bayesian inference explicitly models parameters as probability distributions, allowing for direct representation of uncertainty and incorporating prior knowledge. The prior distribution plays a role analogous to regularization in frequentist hierarchical models, offering a natural way to share information across subgroups, such as individual cells. This approach accommodates biological heterogeneity through the probabilistic distributions of the parameters. While frequentist methods also model heterogeneity via hierarchical estimation and regularization, Bayesian inference integrates these aspects through prior distributions and a hierarchical modeling structure. Furthermore, Bayesian inference provides a clear probabilistic basis for model comparison, complementing frequentist criteria like the Akaike Information Criterion through metrics such as leave-one-out cross-validation (LOO) and posterior predictive checks (PPC) that offer probabilistic assessments of model fit and generalizability.

Bayesian inference has been extensively implemented to model a variety of biological problems. To name a few, the BioBayes package was designed to perform Bayesian inference on the parameters of systems biology ODE systems (20). Bayesim is another tool developed to fit biological models using adaptive grid sampling (21). In the same year, Russell-Buckland et al. published a Bayesian framework to analyze brain systems models (22). Recently, a Bayesian approach utilizing the Hamiltonian Monte Carlo sampling algorithm was developed to model cardiac action potentials (23). However, these tools were not designed to address problems that feature heterogeneity often encountered in biological data. To address this, multiple frameworks have been published to model heterogeneity. For example, Thompson et al. developed a hierarchical Bayesian mixture model for the inference of gene expression states (24). Another framework, Brem-SC, was developed to identify cell clusters in transcriptomic and proteomic data (25). However, these tools do not focus on the temporal dynamics of the underlying biological processes.

To address the inherent heterogeneity in dynamic data and provide probabilistic descriptions of dynamic Ca2+ signaling processes, we developed a novel Bayesian approach that leverages a hierarchical mixture architecture. This architecture incorporates two key features: 1) a mixture component that accounts for the presence of multiple clusters of cells exhibiting distinct phenotypes and 2) a hierarchy component that models cell-to-cell variability by grouping individual cells into clusters with similar properties. To thoroughly evaluate the performance of our framework, we applied it to two types of time-series microscopy data: single-channel and dual-channel data. We tested the robustness of the approach using both synthetic data and experimental data featuring heterogeneous characteristics. Furthermore, we implemented LOO, a Bayesian cross-validation approach, as the model comparison metric in our framework. LOO yielded expected log pointwise predictive density for LOO (elpdloo) as the model scores, which could be used to differentiate between models with distinct differences. For models indistinguishable by elpdloo, PPC, a visual method was used to assess the fit of the models and the uncertainty in the fit as an additional model selection method. Overall, this work provides a novel framework that performs probabilistic model refinement and selection using heterogeneous dynamic data.

Theory

In this work, we develop a model fitting framework based on Bayesian inference for biological microscopy data (Fig. 1). Overall, the framework takes observations from biological experiments as input. It then applies Bayesian inference, given a proposed model and prior distributions of the model parameters. The framework returns posterior distributions of the model parameters, which are estimates of these parameters along with the uncertainty in such estimation. By drawing from the posterior distributions and using them to reconstruct the proposed model, one could generate fits to the experimental observations and obtain the uncertainty of the fits.

Figure 1.

Figure 1

Schematics of the Bayesian framework described in this study. The goal of the framework is to fit hypothesized mathematical models to experimental observations using Bayesian inference. One key challenge of fitting biological data is the heterogeneity in observations, which is addressed in this study using a hierarchical mixture architecture. The fitting process starts with collecting experimental data. Given a hypothesized model and prior knowledge of the underlying system, Bayesian inference is performed. Inference provides posterior distributions of the model parameters, offering both updated knowledge of the parameter range and the uncertainty in estimating the parameters. Finally, by randomly sampling from posterior distributions, the drawn parameters can be used to reconstruct the model and compare it with the observations. Because the parameters used to reconstruct the model are drawn from the posterior distributions, the uncertainty in parameter estimation propagates forward to provide a quantification of the uncertainty of the final fits.

Model definitions

We utilize ODE-based models of Ca2+ signaling-associated processes, including Ca2+ uptake and Ca2+ shuttling between different cellular compartments. These models generally consist of nonlinear equations that represent the time-dependent change of a given state, Sm(t), such as intracellular Ca2+ concentration, as a function of itself and other states such as the activation of a Ca2+ exchanger. As an example representation, we have the following:

dSm(t)dt=mf(Sm(t),{p}) (1)

where {p}{pi,} are the parameters for determining Sm(t). Specific equations for the processes modeled in this work are outlined in supporting material, section 1. Numerical simulation of these models with the user-provided parameters yield predictions or observations for each modeled state. These states can be compared against experimental measurements by defining a function, hm(Sm(t)), that maps the value of state Sm(t) to its corresponding observable ym(t). The central challenge is how to determine {p} to 1) minimize the difference between predicted and experimentally measured states and 2) determine the best model for a given set of states.

In this study, we assume S(t){Sm(t),} is a set of states that evolve over time subject to a set of {p} of undetermined parameters. We introduced r(t), an independent process that could serve to represent imposed phenomena such as random oscillations in intracellular Ca2+. We also assumed trial models (e.g., functions), f({S(t)},{p},r(t)). Numerical ODE integrators were used to determine S(t) for t[0,T] given suitable initial conditions {Sm(t=0),} and {p}. Here, ym(t) could be simulated or measured via experimental means to give ym,obs(t).

Bayesian inference

We used a Bayesian approach to determine the ODE model and the respective parameter sets that best reproduce the experimentally measured data for each state modeled in Eq. 1. As an example, we assume that our observable yobs corresponds to experimentally measured time-dependent Ca2+ concentration via fluorescence indicators. We speculated that the optimal parameter, pi, or more generally the parameter set, {p}, could be determined by evaluating the conditional probability of a parameter set ({p}) given some observable (yobs), P({p}|yobs). Therefore, once this conditional probability is appropriately defined, we can estimate the model parameters (such as reaction rate, expression level), associated with our measurements of yobs. According to the Bayes theorem, we define the posterior as

P({p}|yobs)=P(yobs|{p})P({p})P(yobs) (2)

The likelihood P(yobs|{p}) is the conditional probability of an observable, yobs, given a trial set of parameters for simulation, {p}. The priors, P({p}), represent the probabilities for the given parameter set values. It is commonly posited that the parameters’ probabilities follow Gaussian or log-normal distributions with a mean value, pi. For Gaussian-distributed and statistically independent parameter distributions, the priors can be described by

P({p})=iexp((pipi)2/σi2) (3)

The conditional probability P(yobs|{p}) is determined by simulations of a given system model (Eq. 1) under sets of underlying parameters. Lastly, we evaluate P(yobs), the probability of observing a given quantity based on a measurement (e.g., how well the measurement reports the true value of an event) via

P(yobs)={p}P(yobs|{p})P({p})d{p} (4)

Hierarchical mixture architecture

Biological data often exhibit heterogeneity, ranging from cell-to-cell variations to cluster-wide differences. To model such heterogeneity, we implemented a hierarchical mixture architecture (26). The hierarchical component accounts for cell-to-cell variation by assuming that all cells share a common set of hyperparameters that govern their observable behavior (e.g., kinetics, expression levels). The hyperparameters define a cluster, and individual cells within that cluster are allowed to vary around these cluster-level trends, reflecting biological noise or intrinsic variability. The behavior of each cell j is represented by its own set of parameters, {p}j. The mixture component enables the model to account for the presence of multiple clusters within the data set. Specifically, it assumes that there are K distinct clusters, each cluster k characterized by its own set of hyperparameters. These cluster-specific hyperparameters give rise to different yobs,k. Together, the hierarchical mixture framework allows for flexible modeling of both within-cluster and between-cluster variability, which is particularly well suited to complex biological systems.

For a given model (e.g., Eq. 1), the weight of cluster k of K total clusters is:

πkDirichlet(α) (5)

where α is the concentration parameter provided by the user as input.

For each cluster k, we draw a trial parameter set μk from a lognormal distribution, and σk from a half-normal distribution:

μkLognormal(μ,σ2) (6)
σkHalfnormal(σo2) (7)

where μ=μk, σ2=Var(μk), σo2=Var(σk), and are computed across all clusters.

Then for each cell j, let μj,k{p}j,k. We draw a trial parameter set μj,k from a lognormal distribution:

μj,kLognormal(μk,σk2) (8)

Given the trial μj,k, we express the likelihood as:

P(yobs,k|μj,k)=exp((yobs,kypred,j)2/σ2) (9)

where the predicted observable ypred,j,k is computed using hm(Sm(t)), and Sm(t) is evaluated using Eq. 1. ypred,j,k is treated as a scalar.

The posterior for μj can thus be expressed as:

P(μj|yobs,j)=k=1KπkP(yobs,k|μj,k)P(μj,k)P(yobs,k) (10)

Model comparison

LOO was used to estimate the out-of-sample predictive accuracy. It iteratively leaves out one observation, yd, to create a new observed data set, yd, to which the model is fitted. The newly generated value for the missing data point is compared with the removed data point to estimate the predictive performance of the model. Although it does not explicitly penalize model complexity, LOO inherently takes into account model complexity, as overfitting is penalized for not being able to reproduce the left-out observations. Overall, LOO is a balanced measure that emphasizes both model interpretability and complexity (27).

Various methodologies are available for model comparison, including cross-validation techniques and a range of information criteria. Here, we choose LOO for its advantages over other popular approaches such as the widely applicable information criterion, the deviance information criterion (DIC), and the Bayesian information criterion (BIC). We base this decision in part on Vehtari et al. who suggested that under circumstances of finite cases with weakly informative priors, LOO is more robust compared with widely applicable information criteria (27). Furthermore, LOO is fully Bayesian and uses the entire posterior distribution for model evaluation, whereas BIC and DIC use point-estimates of parameters (28,29). Additionally, LOO works well for hierarchical models while BIC and DIC are suitable for simple models. Considering the nature of biological data, namely heterogeneity and sometimes poor knowledge of the system, hierarchical models with weak priors are a common occurrence. Hence, LOO serves as a better approach for model comparison in this context.

The main numerical quantity of LOO, elpdloo, is expressed as

elpdloo=d=1DlogP(yd|yd) (11)

where the leave-one-out predictive density for the d-th data point yd, given the remaining observations yd, is expressed as:

P(yd|yd)={p}P(yd|{p})P({p}|yd)d{p} (12)

Materials and methods

Experimental setup and data collection

Ca2+ transient measurements in C2C12 myoblasts

As previously described (30), undifferentiated C2C12 myoblast cells were grown on a laminin-coated coverslip in 10% FBS DMEM medium. To record [Ca2+]i transients, a high-affinity Ca2+ indicator Fluo-4 AM was used. 24 h after plating, cells were incubated at 37°C with 2.2 μM Fluo-4 AM for 30 min in Tyrode’s solution: 140 mM NaCl, 4 mM KCl, 1.5 mMCaCl2, 1 mM MgCl2, 10 mM glucose, 10 mM HEPES (pH 7.4), followed by a 5 min wash in Tyrode’s solution. Cells were allowed to equilibrate for 20 min and then stimulated with 10 μM adenosine triphosphate (ATP). Fluo-4 was excited with a 488 nm LED and emitted fluorescence filtered with a band-pass filter (515–530 nm, Chroma). Resultant fluorescent images were acquired at 9 fps on a wide-field fluorescence Zeiss scope, equipped with a sCMOS camera (Orca Flash, Hamamatsu) using Zen Blue software (Zeiss, Germany).

Simultaneous measurements of ER [Ca2+] ([Ca2+]ER) and [Ca2+]i in HEK293

HEK293 cells stably expressing GFP-hRyR2 and mCer-SERCA2a were transfected with the genetically encoded endoplasmic reticulum (ER)-targeted Ca2+ sensor R-CEPIA1er (31). The cells prepared for an experiment were washed with a solution containing: 150 mM K-aspartate, 0.25 mM MgCl2, 0.1 mM EGTA, 10 mM HEPES (pH 7.2). Next, the plasma membrane was permeabilized with 0.005% saponin dissolved in the experimental solution containing: 100 mM K-aspartate, 15 mM KCl, 5 mM KH2PO4, 5 mM MgATP, 0.35 mM EGTA, 0.22 mM CaCl2, 0.75 mM MgCl2, 10 mM HEPES, dextran (MW 40,000) 2% and pH 7.2. The free [Ca2+] and [Mg2+] were 200 nM and 1 mM, respectively. After permeabilization, cells were perfused with a saponin-free solution during an experiment. All experiments were carried out using a laser scanning confocal microscope (Radiance 2000 MP, Bio-Rad) equipped with a 40× oil objective lens (N.A. = 1.3). [Ca2+]ER was recorded as changes in the fluorescence intensity of the ER-targeted R-CEPIA1er. R-CEPIA1er was excited with a 514 nm line of the argon laser and the signal was collected at >560 nm. [Ca2+]i was recorded with the Ca2+ sensor Fluo-4 AM. Fluo-4 was excited with a 488 nm line of the argon laser and the signal was collected at 535±10nm. The images obtained were analyzed using ImageJ software (NIH).

Computational workflow

Simulation

To test our framework in a robust manner, we first generated simulated data using model 1 (supporting material, sections 1.1 and 1.2) for each data type. Specifically, we created three sets of parameters with initial μ values that result in distinct kinetics. Each set represents one cluster, or population, of cells. Within each set, samples were randomly drawn from normal distributions of each parameter defined by their respective mean μ and standard deviation σ (where σ=0.2×μ) to allow for cell-to-cell variability. The drawn parameters were used to simulate the model and generate traces for each cell. Simulations were performed with the scipy (v1.10.1) solve_ivp function using LSODA (32) as the integration method to minimize stiffness issues due to the complexity of our models. To mimic the noise in real-life data, we also added synthetic noise that was randomly sampled from a normal distribution with mean μ of 0 and standard deviation σ of 0.01 of the maximum value of each trace. Together, the simulated data contain variability across different populations and different cells. The simulated data were pooled and used for parameter estimation and model selection.

Bayesian inference

In this study, we focus on the kinetic behavior of the biological Ca2+ dynamic data. Thus, all data were normalized by their respective minima and maxima. Similarly, the simulation outputs for each iteration of the Markov chain Monte Carlo (MCMC) sampling were normalized by their respective minima and maxima. The experimental data set of the Ca2+ shuttling data has an inherent low signal/noise ratio due to the nature of the biological sample (see below). To reduce the noise, we performed smoothed moving averaging on this data set with a window size of 0.15 s that smoothed the data without altering the kinetics of the traces. The simulated and experimental data were used as the observed data in the MCMC sampling for the likelihood calculation.

PyMC (v5.0.0) (33) was used to build the statistical model and perform MCMC sampling. Here, we implemented a hierarchical mixture architecture to account for population-wide and cell-to-cell heterogeneity of our biological data (see hierarchical mixture architecture). Within the hierarchical mixture architecture, the hyperparameters were assumed to follow lognormal distributions with proposed μ and σ to avoid negative values. The distributions were assumed to have multiple components to represent the mixture property. Dirichlet distribution, a continuous multivariate probability distribution, was used to model the weight of each component. As the prior distribution, each component was assigned the same weight. The model parameters follow lognormal distributions defined by the μ and σ drawn from the hyperparameter distributions. sunode (v0.4.0) was used as the ODE solver to speed up the simulations. nut-py (v0.5.1) was used for MCMC sampling. Due to the complexity of our models, the automatic differentiation variational inference (34) was used to initialize the sampling. The MCMC sampling was performed with 5 chains, 500,000 automatic differentiation variational inference steps, 1000 tune steps, 1000 sampling steps, target_accept = 0.99. Table 1 compiles the computation cost of the inferences performed in this study. To compare different models, inference data from each model were used as input for the PyMC function pm.compare, and LOO (27) was used as the information criterion. The final elpdloo scores computed were used to evaluate the models. In essence, models with higher elpdloo scores are considered models that perform better.

Table 1.

Simulations performed in this study

System Model No. of parametersa No. of cells Computation time (h)
Ca2+ uptake 1 15 7 60
12 120
2 9 7 33
12 116
3 21 7 82
12 124
Cytoplasm/ER Ca2+ shuttling 1 9 7 48
12 92
2 6 7 33
12 50
3 12 7 56
12 90

All inferences were performed using 5 MCMC chains with 1000 steps/chains.

a

The number of parameters include that of both hyperparameters and model parameters.

Data and software availability

All code written in support of this publication is publicly available at https://github.com/pkhlab/bayes.git.

Results

Data types

In this work, our goal is to build a general framework for the refinement and selection of models that are suitable for various types of microscopy data. To this end, we tested our framework on the following types of fluorescence microscopy measurements: 1) Ca2+ uptake data that consist of a single fluorescent channel and 2) cyto/ER Ca2+ shuttling data that consist of dual fluorescent channels. Each data type will be described and discussed in detail in the following sections.

Model parameter estimation

We first assessed the performance of the framework in parameter estimation. To evaluate the effectiveness and robustness of the framework, we tested our framework on both simulated data and experimental data. The simulated data were generated with randomized parameter values as the ground truth.

Fitting to single channel: Ca2+ uptake

In this experiment, ATP was applied to C2C12 cells, which activated the purinergic receptors on the plasma membrane to conduct Ca2+ from the extracellular space (35). To capture this phenomenon, we propose a model (Fig. 2 A) where ATP is consumed (dATPdt) at rate kdecay to open the purinergic receptor. The open probability of the receptor (dPopendt) is dependent on the ATP concentration and its ATP binding affinity (Kd,ATP). Counteracting this, the receptor closes at rate kclose. Finally, the opening of the receptor allows for Ca2+ entry (dCaindt) at rate kflux with a countering Ca2+ leaking rate (kleak). This model is represented mathematically by a set of ODEs (supporting material, section 1.1, model 1). Prior distributions of the model hyperparameters are listed in Table 2 and are assumed log-normal to ensure positive values for the ODE simulations. The priors were selected to deviate substantially from the parameter values used to generate the simulated data. This design choice was made to evaluate the robustness of our framework in converging to the correct solution even when the prior information is weak or uninformative, a situation often encountered in real-world biological applications where prior knowledge is often limited or qualitative.

Figure 2.

Figure 2

Fitting of model 1 to the simulated Ca2+ uptake data set. (A) Proposed model 1 of Ca2+ uptake. The binding of extracellular ATP opens the purinergic receptor on the plasma membrane, allowing for Ca2+ entry. The receptor closes as ATP decays, returning the cytosolic Ca2+ to the prestimulation level by extruding Ca2+ from the cell. (B) Observed data generated by simulation are classified into three populations, based on their kinetic differences (e.g., time to peak, time from peak back to baseline). (C) PPC fits to the observed data showing how well the model is fitted to the data, as well as the uncertainty in the fits. (D) Posterior distributions of the model hyperparameters (blue) relative to the prior distribution (gray). (E) Posterior distributions of the model parameters for each cell are color-coded based on the cell indexes.

Table 2.

Hyperparameter prior distributions of the Ca2+ uptake data set

Hyperparameter Observable Model 1 Model 2 Model 3
μKd,ATP sim Lognormal(0.5, 0.32) Lognormal(0.5, 0.32)
expt Lognormal(0.5, 0.12) Lognormal(0.5, 0.12)
μkdecay sim Lognormal(0.4, 0.32) Lognormal(0.4, 0.32) Lognormal(0.4, 0.32)
expt Lognormal(0.04, 0.12) Lognormal(0.04, 0.12) Lognormal(0.04, 0.12)
μkclose sim Lognormal(0.25, 0.32)
expt Lognormal(0.5, 0.12)
μkflux sim Lognormal(0.1, 0.12) Lognormal(0.1, 0.12) Lognormal(0.1, 0.12)
expt Lognormal(0.05, 0.12) Lognormal(0.05, 0.12) Lognormal(0.05, 0.12)
μkleak sim Lognormal(0.55, 0.32) Lognormal(0.55, 0.32) Lognormal(0.2, 0.32)
expt Lognormal(0.3, 0.12) Lognormal(0.3, 0.12) Lognormal(0.3, 0.12)
μVmax,open sim Lognormal(0.7, 0.32)
expt Lognormal(0.7, 0.12)
μKd,open sim Lognormal(0.2, 0.32)
expt Lognormal(0.2, 0.12)
μVmax,close sim Lognormal(0.3, 0.32)
expt Lognormal(0.6, 0.12)

Prior distribution selected for hyperparameters of the models for the Ca2+ uptake data set.

All σ hyperparameters follow a half-normal distribution with a scale of 0.1.

We first tested our framework on simulated Ca2+ uptake data. Simulated data were generated by randomizing model 1 parameters and adding synthetic noise (noise magnitude equals 1% of the trace maximum). To generate data mimicking real-life biological data that exhibit high variability (cell-to-cell and population-wide variations), we created three sets of parameters with drastically different values and randomized values, each set representing one population. Specifically, with the first set as the reference, the second set has a substantially lower kleak, while the third set has a substantially higher kdecay. Furthermore, within each set, the parameters for each cell were randomly drawn from a normal distribution defined by the parameter values of that set as μ, and 20% of the μ values as σ to allow for variations between cells. This resulted in three populations of cells that displayed different Ca2+ uptake kinetics (e.g., time to peak, time from peak back to baseline), within which individual cells also show variable kinetics (Fig. 2 B).

Model 1 was first fitted to estimate the model parameters with respect to the simulated data. As diagnostics of the sampling, trace plots and autocorrelation plots (Figs. S6 and S8) indicated good convergence and mixing of the sampling. Namely, the sampling traces explored sufficient parameter space (oscillation) rather than being stuck at certain values. Traces from individual chains also converged to the same area. Furthermore, the autocorrelation quickly decayed to 0, indicating that the samples drawn are independent and uncorrelated.

We next examined the hyperparameters that characterize the kinetic behavior of a population. Posterior distributions of the hyperparameters (Fig. 2 D) showed that the three components of the mixture model progressed away from the prior distribution (gray), indicating that the framework successfully updated the prior beliefs based on the observed data to form posterior distributions. More importantly, the framework was able to identify three distinct populations in the data. The extent of separation among components varied across different hyperparameters. For instance, the mixture components of μkdecay and μkclose showed clear separation, while those of μkflux and μkleak partially overlapped with each other. In the case of μKd,ATP, components 2 and 3 were overlapped, with component 1 being well separated. This suggests that the dominant contributors to the population-level kinetic differences are μkdecay and μkclose, with μKd,ATP also contributing to the variability. Within each mixture component, the posterior distributions of individual cells (Fig. 2 E) were well aligned with the corresponding hyperparameter distributions, supporting the hierarchical structure of the model. To further assess the relationships between hyperparameters, we examined the pairwise posterior distributions (Fig. S10). The resulting plots showed circular or narrow ellipsoidal shapes aligned with one axis, indicating a low or no correlation between hyperparameters within each component. These results suggest that the model parameters are largely independent of one another.

To assess how well the estimated parameters reproduce the observed Ca2+ uptake kinetics, PPC was used (Fig. 2 C). In the PPC process, parameter values are randomly sampled from their posterior distributions, and these sampled parameters are then used to simulate the behavior of the system. This process was repeated 1000 times to generate a distribution of predicted trajectories. PPC thus serves as a visual tool to evaluate both the quality of model fit and the associated uncertainty. To complement the visual assessment, we also quantified the goodness of fit using mean-squared error (Fig. S5). The PPC results indicate that model 1 fits the observed data well overall. However, for cells 5, 6, and 7, the credible intervals are relatively wider, and their corresponding mean-squared errors are around 0.01, higher than the 0.002 observed for other cells. This suggests a higher uncertainty in parameter estimation for these specific cells.

We also evaluated how the assumed number of components (K) influences the ability of the framework to differentiate the underlying populations. To this end, we conducted additional inference runs using K = 2 and K = 4. With K = 3 (as discussed above), the inferred means of the parameters μkdecay and μkclose showed clear separation into three distinct components, while μkflux and μkleak exhibited overlapping distributions across the components. For μKd,ATP, components 2 and 3 were overlapped, whereas component 1 remained distinct, effectively suggesting two populations for this parameter. In the case of K = 2, μKd,ATP maintained a similar two-cluster structure as K = 3 (Fig. S12), and μkflux and μkleak remained overlapped. However, the framework failed to identify a third distinct component in μkdecay and μkclose, effectively merging components 2 and 3. This likely contributed to the broader credible intervals observed in the PPC, indicating higher uncertainty in parameter estimation (Fig. S13). For K = 4, μkflux and μkleak again showed minimal separation, with overlapping clusters. In contrast, μkclose displayed further refinement as the original component 2 split into two subclusters (now components 2 and 3). However, μkdecay collapsed back to two main clusters, similar to what was observed in the K = 2 case. Additionally, μKd,ATP revealed a new cluster, while components 2 and 3 remained centering around a value of 1. The PPC fits for K = 4 exhibited credible intervals comparable with those of K = 3, suggesting similar levels of predictive uncertainty in both cases. Overall, this suggests that K = 3 is the simplest mixture that minimizes uncertainty with the fewest components.

With the validation of the simulated results, we next considered real data (Fig. 3 A). These data recorded the Ca2+ uptake of C2C12 cells induced by 10 μM ATP in the presence of 1.5 mM extracellular Ca2+. Similar to the simulated data, the sampling of the parameters were well mixed and converged (Figs. S7 and S9). Visually, the data can be roughly classified into three populations, i.e., population 1 (cells 1, 2), population 2 (cell 3, 4, 5, 6), population 3 (cell 7).

Figure 3.

Figure 3

Fitting of model 1 to the experimental Ca2+ uptake data set. (A) Observed data were obtained from the Ca2+ imaging experiments. The data can be roughly classified into three populations: i.e., population 1: cells 1, 2; population 2: cell 3, 4, 5, 6; population 3: cell 7. (B) PPC fits to the observed data showing how well the model is fitted to the data, as well as the uncertainty in the fits. (C) Posterior distributions of the model hyperparameters (blue) relative to the prior distribution (gray). (D) Posterior distributions of the model parameters for each cell are color-coded based on the cell indexes.

We verified that the hyperparameters are not well correlated and are therefore independent (Fig. S11). The posterior distributions of the hyperparameters diverged from the prior distributions (Fig. 3 C), signifying that the incorporation of observed data modified the parameter estimates. The hyperparameter distributions captured different populations that represent clusters of cells. Interestingly, due to the smaller kinetic variations among different cells, the hyperparameter μkclose was sufficient to account for the major difference. Furthermore, while we enforced a three-component mixture model for the hyperparameters, components 2 and 3 were partially overlapped (μKd,ATP, μkclose, μkleak), indicating that there are effectively two populations. This was further confirmed by the additional inference run assuming two components (Fig. S14). Namely, K = 2 produced results comparable with K = 3. The resulting PPC fits of K = 2 also have comparable credible intervals, with a slightly narrower interval for cell 3 (Fig. S15). Lastly, the PPC analyses indicate that the framework estimated parameter values that captured experimental traces, albeit with a higher uncertainty for cell 3, 6, and 7 (Figs. 3 B and S5). When performing the inference with four components, K = 4, we identified a new cluster for μkclose (component 4) (Fig. S14). However, the identification of the new cluster did not lead to PPC fits with reduced uncertainty (Fig. S15). Rather, it yielded fits with broader credible intervals. This indicates that overparameterization of K risks overfitting, and therefore poorer generalizations.

Fitting to multiple channels: Cytoplasm/ER Ca2+ shuttling

We next assessed whether the framework would perform well with multichannel microscopy data, which is essential for probing Ca2+ signaling between various cellular compartments such as the cytoplasm, ER, and mitochondria, using different organelle-localized fluorophores. This requires simultaneous measurement of Ca2+ levels within different regions of the cell, and can be challenging.

In this experiment, we monitored the spontaneous shuttling of Ca2+ between the cytoplasm and ER in HEK cells. The complete data set captures both the release of Ca2+ from the ER and the uptake of Ca2+ back to the ER. We were particularly interested in the ER Ca2+ uptake, as during this phase we noted that, while the decrease of [Ca2+]i occurred rapidly, the Ca2+ uptake to the ER lagged behind (Fig. 5 B). This implies that the Ca2+ may be shuttled to another unobserved compartment. That is, we postulate that the lagging kinetics of ER Ca2+ uptake is due to the compartmentalization of the ER (Fig. 4 A). Specifically, we hypothesize that within the ER there are two compartments: a hidden compartment (ER1) that actively uptakes Ca2+ from the cytoplasm via sarcoplasmic/ER calcium ATPase (SERCA) (36) with rate kSERCA and transfers Ca2+ to the other compartment with rate kshuttle, and a second compartment that releases Ca2+ to the cytoplasm via ryanodine receptor (RyR) (37) with kRyr. Furthermore, we postulate that the second compartment (ER2) is where the ER Ca2+ sensor is located, resulting in the observed lagged ER Ca2+ kinetics. This model is mathematically represented by a set of ODEs (supporting material, section 1.2, model 1). Prior distributions of the model hyperparameters are listed in Table 3 and are assumed log-normal to ensure positive values for the ODE simulations.

Figure 5.

Figure 5

Fitting of model 1 to the experimental cytoplasm/ER Ca2+ shuttling data set. (A) Observed data were obtained from the Ca2+ imaging experiments. (B) PPC fits to the observed data showing how well the model is fitted to the data, as well as the uncertainty in the fits. (C) Posterior distributions of the model hyperparameters (blue) relative to the prior distribution (gray). (D) Posterior distributions of the model parameters for each cell are color-coded based on the cell indexes.

Figure 4.

Figure 4

Fitting of model 1 to the simulated cytoplasm/ER Ca2+ shuttling data set. (A) Proposed model 1 of Ca2+ shuttling between cytoplasm and ER. We posited that there are two compartments of ER. ER1 is the site where Ca2+ uptake by SERCA from the cytoplasm occurs, whereas ER2 is where the Ca2+ fluorophore is situated and RyR Ca2+ release takes place. (B) Observed data were generated by simulations, and are classified into three populations, based on their kinetic differences. (C) PPC fits to the observed data show that the model is fitted to the data well, as well as the uncertainty of the fits. (D) Posterior distributions of the model hyperparameters (blue) relative to the prior distribution (gray). (E) Posterior distributions of the model parameters for each cell are color coded based on the cell indexes.

Table 3.

Hyperparameter prior distributions of the cytoplasm/ER Ca2+ shuttling data set

parameter Observable Model 1 Model 2 Model 3
μkSERCA sim Lognormal(2.0, 1.02) Lognormal(1.0, 0.52)
expt Lognormal(3.0, 1.02) Lognormal(3.0, 1.02)
μkRyr sim Lognormal(0.02, 0.52) Lognormal(0.02, 0.52) Lognormal(0.02, 0.52)
expt Lognormal(0.02, 0.52) Lognormal(0.02, 0.52) Lognormal(0.02, 0.52)
μkshuttle sim Lognormal(1.0, 0.52) Lognormal(1.0, 0.52)
expt Lognormal(0.2, 0.52) Lognormal(0.2, 0.52)
μVmax,SERCA sim Lognormal(1.5, 0.52)
expt Lognormal(1.5, 0.52)
μKd,SERCA sim Lognormal(0.5, 0.52)
expt Lognormal(0.5, 0.52)

Prior distribution selected for hyperparameters of the models for the cytoplasm/ER Ca2+ shuttling data set. All σ hyperparameters follow a half-normal distribution with a scale of 0.1.

We first assessed our framework on simulated data. Similar to the Ca2+ uptake data, these simulated data were generated by randomizing model 1 parameters and adding synthetic noise. Additionally, we created three sets of parameter values representing three populations of cells that exhibit different kinetics (Fig. 4 A).

To estimate the parameter values, model 1 was fit to the simulated data. Trace plots and autocorrelation analyses showed good convergence and mixing of the sampling (Figs. S22 and S24). Pairwise posterior distributions showed no or low correlation between hyperparameters (Fig. S26).

The posterior distribution of the hyperparameter μkshuttle showed a distinct separation of the three components with means around 0.4, 1.2, and 2.6, respectively (Fig. 4 D). In contrast, the posteriors of μkRyr are moderately separated and those of μkSERCA are clustered. The posterior results indicate that the difference in kinetics among the three populations of cells is largely attributed to μkshuttle. Within each component, posterior distributions of the parameters for each cell are aligned with the respective hyperparameter distributions best for kshuttle (Fig. 4 E).

PPC was used to assess the model fits to the observed data (Fig. 4 C). While fits to most cells captured the observed data well, in cells 6, 9, 10, 11, and 12, credible intervals of the PPC fits were less precise. Consequently, there was a higher uncertainty in estimating parameter values for these cells.

We also examined different numbers of components (K = 2 or K = 4). With K = 3, μkshuttle showed three clearly separated components, which account for the kinetic differences between different cells. In contrast, μkSERCA has three overlapped components and μkRyr showed two effective components (component 1 and 2 overlapped) (Fig. S28). With K = 2, μkSERCA, μkRyr, and μkshuttle exhibited different patterns from K = 3. However, the PPC fits of K = 2 have comparable credible intervals to K = 3 (Fig. S29). On the other hand, posterior distributions of K = 4 exhibited similar patterns to K = 3, with component 2 of μkshuttle split into two components, component 2 and 3. The PPC fits of K = 4 did not show substantial improvement relative to K = 3. Hence, our framework recovered the correct number of clusters from the simulation conditions.

We then challenged our framework with the experimental data (Fig. 5 A), which are noisy in comparison. We smoothed the raw data using the smoothed moving average method with a window size of 0.15 s. The window size was carefully chosen so that the noise level was reduced without changing the overall trend kinetics. Using the smoothed data exhibited good convergence and mixing (Figs. S23 and S25), as observed with the simulated data. The hyperparameters were confirmed to be uncorrelated (Fig. S27). The framework identified three components of μkshuttle that account for the kinetic differences among the cell populations (Fig. 5 C). The hyperparameter distributions were able to approximate their underlying parameter distributions of each cell (Fig. 5 D). Finally, the estimated parameters produced good fits to the [Ca2+]i trace and moderate fits to the [Ca2+]ER trace due to the signal/noise ratio even after smoothing, especially for cells 3 and 6 (Figs. 5 B and S21). Overall, challenged with the noisy experimental data, our framework was able to identify multiple components to explain the population-wide difference and provide an assessment of the uncertainty in parameter estimation.

When we assessed the effect of varying the number of components, K = 2 poorly estimated μkshuttle, and identified a new component of μkSERCA around 2 (Fig. S30) On the other hand, K = 4 found a new component of μkSERCA around 6 and showed effectively the same clusters of μkRyr. As for μkshuttle, component 2 was separated into components 2 and 3. Overall, K = 3 and K = 4 yielded fits with comparable credible intervals, while K = 2 exhibited higher uncertainty (Fig. S31).

Bayesian versus differential evolution

We compared and contrasted our Bayesian framework with a widely used frequentist method, differential evolution (DE). DE is an evolutionary algorithm that optimizes model parameters by iteratively refining a population of candidate solutions based on the principles of biological evolution (38). The process begins with an initial population of parameter sets, whose fitness is evaluated using a likelihood function. At each iteration, new candidate solutions are generated through mutation, crossover, and selection, ensuring that better-performing solutions are retained. This iterative process continues until convergence, typically defined as a minimal change in fitness over successive iterations. Given the stochastic nature of DE, we performed 500 independent runs per data set to assess its general performance and variability.

When applied to the Ca2+ uptake data set, all 500 DE runs successfully produced fits that closely followed both the simulated and experimental data (Fig. S16, A and C). To examine the variability in the estimated parameters, we binned the results of the 500 runs to approximate their empirical distributions (Fig. S16, B and D). These distributions spanned a wide range (approximately 0–1), and notably, in the simulated case, DE failed to reveal distinct clusters in parameters such as μKd,ATP, μkdecay, and μkclose, which were clearly identified by our Bayesian framework (Fig. 2 C). When addressing the experimental data, DE yielded distributions for parameters like Kd,ATP and kleak that exhibited multimodal distributions, indicating the presence of multiple local minima. The multimodality could potentially be addressed through regularization by penalizing parameter similarity. However, these outcomes reflect the variability of DE and the high dimensionality of the parameter space, which increase the likelihood of becoming trapped in local optima. In contrast, our use of Bayesian inference leverages prior knowledge and systematically explores the parameter space via sampling techniques such as NUTS, leading to more stable convergence and well-defined posterior distributions.

For the cytoplasm/ER Ca2+ shuttling data set, DE produced satisfactory fits to the simulated data (Fig. S32 A). Several DE runs struggled to fit cell 1 in the experimental data set (Fig. S32 C). However, the distribution of kshuttle exhibited three clusters (ranging from 0 to 3; Fig. S32 B), closely resembling the clusters identified by the Bayesian framework (Fig. 4 D). Similarly, the distributions for kSERCA and kRyr showed patterns consistent with the Bayesian results, which is likely due to the relative simplicity of the model in this case.

In summary, DE offers a computationally efficient solution (e.g., hours versus days for the Bayesian approach). However, for complex problems, in our opinion the Bayesian approach is more intuitive as it systematically explores the parameter space while incorporating prior information, leading to more robust and well-constrained solutions.

Model comparison

Ca2+ uptake

To assess the ability of our framework to select among different theoretical models, we challenged the framework with a variety of models with varied interpretability and complexity (supporting material, section 1.1). Model 1 describes the ATP-dependent opening of the purinergic receptor, which allows for the influx of Ca2+. In this model, the opening rate of the purinergic receptors, 11+Kd,ATPATP, was dependent on the ATP concentration and the receptors’ affinity for ATP. In model 2, we relate the Ca2+ influx directly to the ATP concentration, thus simplifying the model by effectively omitting the receptor. In model 3, we added complexity to the closing rate of the receptor by formulating the rate to be dependent on the open probability and to be scaled by a maximum rate Vm,close. The closing rate is thus expressed as Vm,close1+KPopen. Parameters of the models and their respective priors are summarized in Table 2.

Using elpdloo as the model comparison metric, models 1 and 3 both demonstrated better predictive performance over model 2 across both simulated and experimental data sets (Fig. 6). PPC supported these findings as models 1 and 3 closely followed the observed trajectories in the simulated data, whereas model 2 failed to capture the dynamics in cells 6 and 8 (Figs. S1 and S5 A). Despite their comparable fits, model 3 exhibited broader credible intervals than model 1, indicating greater uncertainty in fitting to the observed data. In the experimental data set, all three models captured the overall trends, but model 1 maintained substantially narrower credible intervals, while models 2 and 3 showed much higher uncertainty and struggled to generalize across all cells (Figs. S2 and S5 B). Taking into account both elpdloo scores and PPC results, model 1 consistently outperformed the others, and therefore is the most robust choice for both simulated and experimental data.

Figure 6.

Figure 6

Comparison of models fit to the Ca2+ uptake data set. The elpdloo metric was used to quantify model performance. The higher the elpdloo, the more suitable the model was to describe the observed data.

Cytoplasm/ER Ca2+ shuttling

For the cytoplasm/ER Ca2+ shuttling data set, we propose three models. Model 1 assumes a hidden compartment that shuttles Ca2+ from the cytoplasm to the ER as described in fitting to multiple channels: cytoplasm/ER Ca2+ shuttling. Model 2 does not assume a hidden compartment and instead models direct Ca2+ shuttling between the cytoplasm and the ER, and hence was a simpler model. Model 3 uses a more detailed expression of SERCA activity that models the regulation of SERCA function by Ca2+ (Vm,SERCA1+(KdCyto)2). Parameters of the models and their respective priors are summarized in Table 3.

elpdloo scores indicate that for the simulated [Ca2+]i data sets, models 1 and 3 performed slightly better than model 2, and the performance differences between the three models were greater for the [Ca2+]ER data (Fig. 7). Notably, the elpdloo scores for the experimental [Ca2+]ER data set were negative, primarily due to high data noise. In effect, this indicates poorer predictive accuracy across all models compared with their performance on the [Ca2+]i data. In terms of PPC, model 2 produced narrow credible intervals for the simulated data ([Ca2+]i and [Ca2+]ER) but did not align well with the observed trajectories in cells 1 to 8. Models 1 and 3 fit well to the [Ca2+]ER traces with narrow credible intervals. In the case of [Ca2+]i data, models 1 and 3 yielded larger credible intervals for cells 6 to 12 but provided better fits. For the experimental data set, model 2 again struggled to capture the observed dynamics. Taking into account both the simulated and experimental data, model 2 did not capture the lagging kinetics in [Ca2+]ER relative to [Ca2+]i, implying that the hidden compartment modeled in models 1 and 3 could be attributed to the kinetic differences. Models 1 and 3 resulted in comparable fits with the [Ca2+]ER data. Regarding the [Ca2+]i traces, while both models 1 and 3 adequately reflected the kinetics in the experimental [Ca2+]i data, model 1 stood out by producing narrower credible intervals, suggesting lower uncertainty in its predictions. Overall, model 1 was the best performing model of the three for both the simulated and experimental data.

Figure 7.

Figure 7

Comparison of models fit to the cyto/ER Ca2+ shuttling data set. The elpdloo metric was used to quantify model performance. The higher the elpdloo, the more suitable the model was to describe the observed data.

Discussion

Our Bayesian approach inherently quantifies uncertainty (arising from various sources, including data collection, parameter estimation, and model prediction) through posterior probability distributions, allowing intuitive probabilistic interpretations of variability and uncertainty, while effectively capturing the inherent heterogeneity through hierarchical mixture modeling. Bayesian inference inherently integrates these components, providing a cohesive and intuitive probabilistic understanding of complex biological systems.

We acknowledge that traditional frequentist methods like maximum likelihood estimation or least-squares fitting offer robust frameworks for parameter estimation, including quantification of uncertainty via confidence intervals. Nevertheless, these methods frequently provide point estimates with interval estimates interpreted as long-term frequency statements, which may not always naturally translate into direct probabilistic interpretations of model parameters and uncertainties. To offer a complementary perspective, we developed a Bayesian-based framework of model optimization to represent Ca2+ signaling processes in myoblasts and a cell line expressing cardiac proteins.

Within our Bayesian framework, we designed a hierarchical mixture architecture that effectively accounts for the heterogeneity present in biological samples when fitting to systems biology models. The framework was tested using both simulated and experimental data sets with varied levels of complexity, showcasing its ability to provide excellent fits to data that feature significant cell-to-cell variability. Moreover, it successfully identified multiple subpopulations of cells within these data sets, each characterized by a distinct parameter set unique to their behavior. Our framework currently accepts a finite number of components (K), thus choosing such a number is critical, as we have shown by comparing the performance with different K’s. A systematic search for the appropriate K typically requires heavy computation. As such, we suggest here a mixed method between empirical and systematic. Namely, the initial K values can be determined by estimation based on the observed data. One could then perform inferences with K, along with additional inferences with numbers around K (e.g., K−1, K+1). One should also be aware that overparameterization of K could lead to under- or overfitting, as our results have shown.

In addition to providing accurate fits, the framework offers a probabilistic interpretation for parameter estimation and fitting. Instead of relying on point estimates, each parameter was inferred as a posterior distribution, from which we can derive the estimated value and its associated uncertainty. To leverage this probabilistic information, we drew parameters from the posterior distributions to produce fits that not only accurately capture the data but also provide the uncertainty in these fits. We also applied our framework to the challenging task of model selection. Our findings suggest that elpdloo serves as an effective measure to select among models that have distinctly different performance. Based on the elpdloo scores, if some models are indistinguishable, PPC is useful for assessing the goodness of fit for further selection among similar models. Overall, our analyses reveal that diverse parameter sets are often necessary to accurately fit the proposed models to the experimental data. Furthermore, we observed that experimental data can be well captured by multiple mathematical descriptions, suggesting that model uniqueness was not guaranteed.

Our Bayesian framework helps reveal novel insights into the intricate workings of cellular function by systematically identifying parameter clusters and linking them to biological mechanisms. When applied to the Ca2+ uptake data set (Fig. 3), we uncovered three distinct clusters of the parameter kclose, the closing rate of purinergic receptors. These clusters likely reflect varied levels of receptor desensitization, possibly due to differential expression or modulation by regulatory proteins such as G-proteins or kinases (39,40). Such differences may correspond to distinct cellular states, where some cells exhibit rapid receptor closure in response to repeated stimulation, while others maintain prolonged receptor activity, resulting in sustained Ca2+ influx.

Similarly, in the cytoplasm/ER Ca2+ shuttling data set (Fig. 5), we identified clusters in the parameter kshuttle, which describes the effective diffusion rate of Ca2+ within the ER. The variation in kshuttle values may be attributed to differences in ER morphology, Ca2+-buffering protein expression (e.g., SERCA pump activity), or cytoskeletal interactions that influence ER structure and Ca2+ handling (41). These clusters were associated with distinct [Ca2+]ER recovery kinetics, implying that the intracellular redistribution of Ca2+ is not uniform across the population and is regulated by cellular substructures and organelle interactions. Together, these insights underscore the biological relevance of capturing cell-to-cell variability. This practice reveals how heterogeneity in biophysical parameters contributes to functional diversity in the signaling dynamics of Ca2+.

Our approach has several areas for improvement that can be explored in future studies. One limitation is the computational complexity introduced by handling ODE-based models, which significantly slows down our inference procedure. For instance, even simple ODEs with 10–15 parameters require hours of simulation to obtain reasonable fits, partly due to the large number of cells and inherent heterogeneity in the data sets. Additionally, preselecting the number of clusters using data reduction techniques may still be necessary to achieve reasonable runtime. Furthermore, populating the normalization coefficient in our Bayesian inference equation is a computationally costly process that requires sampling over many degrees of freedom. To address these challenges, we are exploring machine learning approaches that can efficiently extrapolate and interpolate estimates (42), which could help reduce the simulation time. By developing more efficient methods for Bayesian inference using machine learning, we aim to accelerate our analysis and uncover new insights into complex biological systems. This computational complexity challenge is related to another limitation of our approach: because of the complexity, we could not fit a fairly sophisticated model that encompasses multiple pathways and a vast number of parameters (usually in the range of dozens to hundreds). One solution is to divide the large model into small submodels and fit each submodel independently. The trained submodels subsequently could be connected to form a large model. This is analogous to the common practice in experiments. A complicated system is broken down into small pieces that are studied individually. The collective data from these small pieces could eventually be used to obtain a complete picture of the entire system. In addition, simplification of large and complex models can also help reduce computational cost. For example, Smith et al. has used a lumping scheme to reduce a 15-state model to a 4-state representation (43). Lastly, our current model does not consider the interdependence of model parameters. For example, many processes are coregulated at a transcriptional level, which adds more complexity to the systems biology models.

Conclusions

As experimental techniques for characterizing system-level cellular function continue to advance, we are confronted with the challenge of analyzing exponentially growing data sets. This increasing data complexity highlights the imperative need for more sophisticated analytical approaches capable of capturing the inherent heterogeneity in cellular behavior and gene expression profiles. Our Bayesian-based framework marks a significant milestone in this endeavor, providing a flexible and adaptive toolkit for modeling complex biological systems. By identifying the most suitable models for our data sets, we can uncover valuable insights into molecular mechanisms and formulate novel mechanistic hypotheses that can be experimentally tested and refined. Ultimately, our overarching goal is to develop a profound understanding of the intricate dynamics that underlie biological processes, and this framework represents a significant step toward achieving that objective.

Acknowledgments

We thank Dr. Ivana Kuo for the insightful discussion and data sharing. Research reported in this publication was supported by the Maximizing Investigators’ Research Award (MIRA) (R35) from the National Institute of General Medical Sciences (NIGMS) of the National Institutes of Health (NIH) under grant number GM148284 to P.M.K.-H. This work was also supported by NIH grant R01HL151990 and R01HL176568 to A.V.Z. This work used Expanse at San Diego Supercomputer Center (SDSC) through allocation CHE140116 from the Advanced Cyberinfrastructure Coordination Ecosystem: Services & Support (ACCESS) program, which is supported by National Science Foundation grants nos. 2138259, 2138286, 2138307, 2137603, and 2138296.

Author contributions

X.F. and P.M.K.-H. designed the research. X.F. and P.V. performed all simulations and analyzed the data. S.O.-V. and A.V.Z. conducted the experiments. X.F., P.V., and P.M.K.-H. wrote the manuscript.

Declaration of interests

The authors declare no competing interests.

Editor: Jeremiah Zartman.

Footnotes

Supporting material can be found online at https://doi.org/10.1016/j.bpj.2025.06.010.

Supporting material

Document S1. Figures S1–S32
mmc1.pdf (16.4MB, pdf)
Document S2. Article plus supporting material
mmc2.pdf (26MB, pdf)

References

  • 1.Wei C., Wang X., et al. Cheng H. Calcium gradients underlying cell migration. Curr. Opin. Cell Biol. 2012;24:254–261. doi: 10.1016/j.ceb.2011.12.002. [DOI] [PubMed] [Google Scholar]
  • 2.Carafoli E. Calcium signaling: A tale for all seasons. Proc. Natl. Acad. Sci. USA. 2002;99:1115–1122. doi: 10.1073/pnas.032427999. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.West A.E., Chen W.G., et al. Greenberg M.E. Calcium regulation of neuronal gene expression. Proc. Natl. Acad. Sci. USA. 2001;98:11024–11031. doi: 10.1073/pnas.191352298. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Pinto M.C.X., Kihara A.H., et al. Resende R.R. Calcium signaling and cell proliferation. Cell. Signal. 2015;27:2139–2149. doi: 10.1016/j.cellsig.2015.08.006. [DOI] [PubMed] [Google Scholar]
  • 5.Dupont G., Goldbeter A. Problems and paradigms: Oscillations and waves of cytosolic calcium: Insights from theoretical models. Bioessays. 1992;14:485–493. doi: 10.1002/bies.950140711. [DOI] [PubMed] [Google Scholar]
  • 6.Purvis J.E., Lahav G. Encoding and decoding cellular information through signaling dynamics. Cell. 2013;152:945–956. doi: 10.1016/j.cell.2013.02.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Bezprozvanny I. Calcium signaling and neurodegenerative diseases. Trends Mol. Med. 2009;15:89–100. doi: 10.1016/j.molmed.2009.01.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Wehrens X.H.T., Lehnart S.E., Marks A.R. Intracellular calcium release and cardiac disease. Annu. Rev. Physiol. 2005;67:69–98. doi: 10.1146/annurev.physiol.67.040403.114521. [DOI] [PubMed] [Google Scholar]
  • 9.Lloyd-Evans E., Waller-Evans H., et al. Platt F.M. Endolysosomal calcium regulation and disease. Biochem. Soc. Trans. 2010;38:1458–1464. doi: 10.1042/BST0381458. [DOI] [PubMed] [Google Scholar]
  • 10.Stewart T.A., Yapa K.T.D.S., Monteith G.R. Altered calcium signaling in cancer cells. Biochim. Biophys. Acta Biomembr. 2015;1848:2502–2511. [Google Scholar]
  • 11.Schuster S., Marhl M., Höfer T. Modelling of simple and complex calcium oscillations. Eur. J. Biochem. 2002;269:1333–1355. doi: 10.1046/j.0014-2956.2001.02720.x. [DOI] [PubMed] [Google Scholar]
  • 12.Agrawal A., Wang K., et al. Clerx M. Models of the cardiac l-type calcium current: A quantitative review. WIREs Mech. Dis. 2022;15 [Google Scholar]
  • 13.Winslow R.L., Walker M.A., Greenstein J.L. Modeling calcium regulation of contraction, energetics, signaling, and transcription in the cardiac myocyte. WIREs Systems Biology and Medicine. 2016;8:37–67. doi: 10.1002/wsbm.1322. [DOI] [PubMed] [Google Scholar]
  • 14.Cleary S.R., Fang X., et al. Robia S.L. Inhibitory and stimulatory micropeptides preferentially bind to different conformations of the cardiac calcium pump. J. Biol. Chem. 2022;298 [Google Scholar]
  • 15.Deng C., Daley T., et al. Smith A.D. Molecular heterogeneity in large-scale biological data: Techniques and applications. Annu. Rev. Biomed. Data Sci. 2019;2:39–67. [Google Scholar]
  • 16.Wollman R. Robustness, accuracy, and cell state heterogeneity in biological systems. Curr. Opin. Syst. Biol. 2018;8:46–50. doi: 10.1016/j.coisb.2017.11.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Wasserman L. Springer; 2004. All of statistics: a concise course in statistical inference, Springer texts in statistics, corr. 2. print., [repr.] ed; pp. 87–96. [Google Scholar]
  • 18.Bayes T. Vol. 53. Royal Society of London; 1763. pp. 370–418. (Philosophical Transactions). [Google Scholar]
  • 19.van de Schoot R., Depaoli S., et al. Yau C. Bayesian statistics and modelling. Nat. Rev. Methods Primers. 2021;1 [Google Scholar]
  • 20.Vyshemirsky V., Girolami M. Biobayes: A software package for bayesian inference in systems biology. Bioinformatics. 2008;24:1933–1934. doi: 10.1093/bioinformatics/btn338. [DOI] [PubMed] [Google Scholar]
  • 21.Kurchin R., Romano G., Buonassisi T. Bayesim: A tool for adaptive grid model fitting with bayesian inference. Comput. Phys. Commun. 2019;239:161–165. [Google Scholar]
  • 22.Russell-Buckland J., Barnes C.P., Tachtsidis I. A bayesian framework for the analysis of systems biology models of the brain. PLoS Comput. Biol. 2019;15 [Google Scholar]
  • 23.Nieto Ramos A., Fenton F.H., Cherry E.M. Bayesian inference for fitting cardiac models to experiments: Estimating parameter distributions using hamiltonian monte carlo and approximate bayesian computation. Med. Biol. Eng. Comput. 2023;61:75–95. doi: 10.1007/s11517-022-02685-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Thompson A., May M.R., et al. Kopp A. A hierarchical bayesian mixture model for inferring the expression state of genes in transcriptomes. Proc. Natl. Acad. Sci. USA. 2020;117:19339–19346. doi: 10.1073/pnas.1919748117. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Wang X., Sun Z., et al. Chen W. Brem-sc: A bayesian random effects mixture model for joint clustering single cell multi-omics data. Nucleic Acids Res. 2020;48:5814–5824. doi: 10.1093/nar/gkaa314. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Richardson S., Green P.J. On bayesian analysis of mixtures with an unknown number of components. J. Roy. Stat. Soc. B Stat. Methodol. 1997;59:731–792. [Google Scholar]
  • 27.Vehtari A., Gelman A., Gabry J. Practical bayesian model evaluation using leave-one-out cross-validation and waic. Stat. Comput. 2016;27:1413–1432. [Google Scholar]
  • 28.Schwarz G. Estimating the dimension of a model. Ann. Stat. 1978;6 [Google Scholar]
  • 29.Spiegelhalter D.J., Best N.G., et al. Van Der Linde A. Bayesian measures of model complexity and fit. J. Roy. Stat. Soc. B Stat. Methodol. 2002;64:583–639. [Google Scholar]
  • 30.Márquez-Nogueras K.M., Vuchkovska V., et al. Kuo I.Y. Polycystin-2 (pc2) is a key determinant of in vitro myogenesis. Am. J. Physiol. Cell Physiol. 2022;323:C333–C346. doi: 10.1152/ajpcell.00159.2021. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Bovo E., Martin J.L., et al. Zima A.V. R-cepia1er as a new tool to directly measure sarcoplasmic reticulum [ca] in ventricular myocytes. Am. J. Physiol. Heart Circ. Physiol. 2016;311:H268–H275. doi: 10.1152/ajpheart.00175.2016. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Petzold L. Automatic selection of methods for solving stiff and nonstiff systems of ordinary differential equations. SIAM J. Sci. Stat. Comput. 1983;4:136–148. [Google Scholar]
  • 33.Abril-Pla O., Andreani V., et al. Zinkov R. Pymc: A modern, and comprehensive probabilistic programming framework in python. PeerJ Comput. Sci. 2023;9 [Google Scholar]
  • 34.Kucukelbir A., Tran D., et al. Blei D.M. Automatic differentiation variational inference. J. Mach. Learn. Res. 2016;18:1–14:45. [Google Scholar]
  • 35.Egan T.M., Khakh B.S. Contribution of calcium ions to p2x channel responses. J. Neurosci. 2004;24:3413–3420. doi: 10.1523/JNEUROSCI.5429-03.2004. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Inesi G., Prasad A.M., Pilankatta R. The ca2+ atpase of cardiac sarcoplasmic reticulum: Physiological role and relevance to diseases. Biochem. Biophys. Res. Commun. 2008;369:182–187. doi: 10.1016/j.bbrc.2007.11.161. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Lanner J.T., Georgiou D.K., et al. Hamilton S.L. Ryanodine receptors: Structure, expression, molecular details, and function in calcium release. Cold Spring Harbor Perspect. Biol. 2010;2 [Google Scholar]
  • 38.Storn R., Price K. J. Global Optim. 1997;11:341–359. [Google Scholar]
  • 39.Vial C., Tobin A.B., Evans R.J. G-protein-coupled receptor regulation of p2x1 receptors does not involve direct channel phosphorylation. Biochem. J. 2004;382:101–110. doi: 10.1042/BJ20031910. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Brown D.A., Yule D.I. Protein kinase a regulation of p2x4 receptors: Requirement for a specific motif in the c-terminus. Biochim. Biophys. Acta. 2010;1803:275–287. doi: 10.1016/j.bbamcr.2009.12.002. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Friedman J.R., Voeltz G.K. The er in 3d: a multifunctional dynamic membrane network. Trends Cell Biol. 2011;21:709–717. doi: 10.1016/j.tcb.2011.07.004. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Gabbard H., Messenger C., et al. Murray-Smith R. Bayesian parameter estimation using conditional variational autoencoders for gravitational-wave astronomy. Nat. Phys. 2021;18:112–117. [Google Scholar]
  • 43.Smith N.P., Crampin E.J. Development of models of active ion transport for whole-cell modelling: Cardiac sodium–potassium pump as a case study. Prog. Biophys. Mol. Biol. 2004;85:387–405. doi: 10.1016/j.pbiomolbio.2004.01.010. [DOI] [PubMed] [Google Scholar]

Associated Data

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

Supplementary Materials

Document S1. Figures S1–S32
mmc1.pdf (16.4MB, pdf)
Document S2. Article plus supporting material
mmc2.pdf (26MB, pdf)

Data Availability Statement

All code written in support of this publication is publicly available at https://github.com/pkhlab/bayes.git.


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

RESOURCES