Comparing Physics-Informed and Neural ODE Approaches for Modeling Nonlinear Biological Systems: A Case Study Based on the Morris-Lecar Model
Organizations: Department of Education, School of Pedagogical and Technological Education (ASPETE), 141 21 Athens, Greece. · Department of Mechanical Engineering Educators, School of Pedagogical and Technological Education (ASPETE), 151 22 Athens, Greece.
Abstract
Physics-Informed Neural Networks (PINNs) and Neural Ordinary Differential Equations (NODEs) represent two distinct machine learning frameworks for modeling nonlinear neuronal dynamics. This study systematically evaluates their performance on the two-dimensional Morris-Lecar model across three canonical bifurcation regimes: Hopf, Saddle-Node on Limit Cycle, and homoclinic orbit. Synthetic time-series data are generated via numerical integration under controlled conditions, and training is performed using collocation points for PINNs and adaptive solvers for NODEs (Dormand-Prince method). PINNs incorporate the governing differential equations into the loss function using automatic differentiation, which enforces physical consistency during training. In contrast, NODEs learn the system's vector field directly from data, without prior structural assumptions or inductive bias toward physical laws. Model performance is assessed using standard regression metrics, including Mean Squared Error (MSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), and the coefficient of determination. Results indicate that PINNs tend to achieve higher accuracy and robustness in scenarios involving stiffness or sensitive bifurcations, owing to their embedded physical structure. NODEs, while more expressive and flexible, operate as black-box approximators without structural constraints, which can lead to reduced interpretability and stability in these regimes. Although advanced variants of NODEs (e.g., ANODEs, latent NODEs) aim to mitigate such limitations, their performance under stiff dynamics remains an open question. These findings emphasize the trade-offs between physics-informed models, which embed structure and interpretability, and purely data-driven approaches, which prioritize flexibility at the cost of physical consistency.
Figures & tables
| Criterion | Morris–Lecar Model Characteristics | Relevance to PINNs & NODEs |
|---|---|---|
| Known physical equations | Analytically defined ODE system | Enables direct embedding of physics in PINNs; NODEs learn dynamics from data |
| Nonlinear dynamics | Exhibits excitability and oscillations | Tests the models’ ability to capture bifurcation behavior |
| Ground truth availability | Numerical integration feasible | Allows quantitative performance evaluation (Subsection 3.7 ) |
| Low-dimensional yet rich | Two-variable system with complex transitions | Suitable for compact yet expressive architectures |
| Biophysical interpretability | Neurophysiologically meaningful parameters | PINNs offer insight; NODEs assess black-box adaptability |
| Parameter | Hopf | SNLC | Homoclinic |
|---|---|---|---|
| 0.04 | 0.067 | 0.23 | |
| 4.4 | 4 | 4 | |
| 2 | 12 | 12 | |
| 30 | 17.4 | 17.4 | |
| 120 | 120 | 120 | |
| -84 | -84 | -84 |
| Scenario | Homoclinic | SNLC | Hopf |
|---|---|---|---|
| Equilibrium Point | (5.4540, 0.3203) | (4.8622, 0.3057) | (-26.5969, 0.1294) |
| Jacobian | |||
| Eigenvalues | |||
| Type | Stable node/focus | Stable node/focus | Stable node/focus |
| Aspect | PINN | Neural ODE |
|---|---|---|
| Input–Output Structure | via ODE integration | |
| Architecture | FCNN (3 hidden layers × 128, Tanh) | FCNN (3 hidden layers × 128, Tanh or SiLU (see Remark 3 )) |
| Physics Integration | Explicit residuals via autograd | None (data-driven only) |
| Normalization | No normalization | Min–Max normalization with inverse scaling (see Remark 2 ) |
| Optimizer | Adam (lr = ) | Adam (lr = ) |
| Numerical Precision | float32 | float32 |
| Scenario | Method | Epochs | Total MSE | RMSE V | RMSE N | Training Time (s) |
|---|---|---|---|---|---|---|
| Hopf | PINN | 20000 | 3.0577e-01 | 0.5529 | 0.0069 | 145.74 |
| NODE | 10000 | 8.1303e+00 | 2.8514 | 0.0035 | 2857.54 | |
| SNLC | PINN | 5000 | 1.6022e+00 | 1.2656 | 0.0221 | 37.69 |
| NODE | 20000 | 1.9270e+01 | 4.3898 | 0.0101 | 6143.12 | |
| Homoclinic | PINN | 20000 | 4.6681e-01 | 0.6832 | 0.0091 | 146.94 |
| NODE | 1000 | 2.3236e+01 | 4.8199 | 0.0672 | 251.52 sec |
Physics-Informed ML
Physics-informed machine learning combines data-driven models with physical laws to solve, predict, and infer scientific systems.
See all 833 papers