Lyapunov-Based Stability and Numerical Convergence in a Nonlinear Cardiac Oscillator Model ()
1. Introduction
The dynamics of cardiac rhythm have long constituted a central theme in both theoretical and applied research, motivated by the imperative to understand, reproduce, and regulate heartbeat patterns under physiological and pathological conditions. Over successive decades, mathematical modeling of cardiac activity has advanced across multiple levels of abstraction, ranging from simplified oscillator-based formulations to anatomically detailed electro-physiological representations.
A widely adopted paradigm models the nodal structures of the heart-specifically the sinoatrial (SA) node, atrioventricular (AV) node, and Purkinje fibers, as coupled nonlinear oscillators. Grudziński et al. [1] introduced a Van der Pol-type oscillator capable of reproducing conduction blocks, phase resetting, and ectopic activity. Building upon this foundation, Cardarilli et al. [2] extended the framework to a tri-oscillator configuration that simulated bundle branch blocks. Nazari et al. [3] incorporated time-delayed coupling and synchronization control, while Gois and Savi [4] examined nonlinear phenomena such as synchronization and chaotic transitions in coupled Van der Pol oscillators.
Despite the insights afforded by these contributions, many oscillator-based studies remain predominantly reliant on numerical simulations, often without rigorous theoretical treatment of solution boundedness, global stability, or numerical convergence. This limitation provides the impetus for the present work, which seeks to integrate physiological plausibility with analytical rigor.
Beyond oscillator-based approaches, excitable-media models conceptualize cardiac tissue as a continuum supporting the propagation of action potentials. Simplified two-variable systems, including the FitzHugh-Nagumo and Aliev-Panfilov models, have proven instrumental in capturing excitability, wavefront dynamics, and re-entrant arrhythmias [5] [6]. The Karma model [7], in particular, reproduces alternans and spiral wave breakups, phenomena closely associated with ventricular fibrillation.
At the cellular scale, reduced biophysical models of pacemaker cells have been proposed to encapsulate fundamental processes such as diastolic depolarization and rate adaptation, while avoiding the computational demands of detailed ionic formulations [8]. These simplified models enable efficient simulation of nodal cell populations under diverse physiological conditions.
Synchronization and entrainment phenomena in cardiac oscillators have also been investigated through phase response curves (PRCs), phase-locking theory, and bifurcation analysis. Mutual coupling and external forcing can generate a wide spectrum of dynamic behaviors, including 1:1 phase-locking, period-doubling bifurcations, and chaotic oscillations [9]. Phase-resetting analysis further elucidates the influence of stimulus timing on conduction delays and rhythm formation within cardiac pathways.
At larger scales, reaction-diffusion models based on bidomain or monodomain formulations have been employed to simulate cardiac electrophysiology in anatomically realistic geometries, reproducing electrocardiogram (ECG) signals and exploring arrhythmogenic substrates [10] [11]. These models incorporate anisotropic conduction, tissue heterogeneity, and physiologically accurate pacing conditions.
From a control perspective, several studies have sought to regulate cardiac rhythms through feedback and synchronization-based strategies. Adaptive control methods, for instance, have been applied to mitigate arrhythmias or achieve entrainment in coupled oscillator systems [12]. Nevertheless, most of these approaches emphasize local stability, offering limited assurances regarding global stability or numerical convergence.
In this paper, we introduce a nonlinear coupled oscillator model formulated as a system of second-order differential equations that encapsulate physiological coupling and damping mechanisms. The model represents three interacting subsystems-the SA node, AV node, and Purkinje network-each defined by a state variable
and its velocity
, for
. The governing equations are:
(1)
Here,
and
denote the natural frequencies and damping coefficients, while
and
represent coupling parameters. This system embodies the key physical and physiological properties of cardiac conduction-namely inertia, dissipation, and inter-nodal coupling. The nonlinear function
accounts for pathological influences, posing additional challenges for stability and boundedness analysis.
The main contributions of this study are summarized as follows:
Derivation of sufficient conditions for global stability and ultimate boundedness using Lyapunov’s direct method, even with nonlinear perturbations;
Examination of convergence and numerical stability of the fourth-order Runge-Kutta (RK4) method under varying nonlinearity and coupling levels;
Demonstration, through simulations, of how parameter variations (
) lead to transitions between regular cardiac rhythms and pathological oscillations, shedding light on arrhythmia onset.
Further references on Lyapunov’s method and the RK4 approach include works by Omoko et al., Ashiribo, and Moses [13]-[18].
All numerical analyses were carried out using both MATLAB and Wolfram Mathematica, ensuring consistency and reproducibility. The proposed approach offers a robust and interpretable framework that connects physiological realism with analytical depth-bridging existing gaps in the literature and supporting predictive and control-oriented cardiac modeling.
Our study addresses notable gaps in existing research by presenting a framework that is both mathematically rigorous and physiologically meaningful, while remaining analytically tractable for the modeling of cardiac rhythm dynamics.
2. Stability Analysis
The concept of stability is fundamental for predicting, diagnosing, and managing disorders of cardiac rhythm. In the context of heartbeat models, stability refers to the system’s ability to sustain or re-establish a regular rhythm following perturbations.
The Lyapunov direct method provides a systematic approach to stability assessment. It requires the construction of a positive definite Lyapunov function,
, together with its derivative along system trajectories,
, which must be negative definite. When these conditions are satisfied, the qualitative behavior of the system can be determined with mathematical certainty [14].
Consider a system where
, (1) reduces to
(2)
The solutions of System (2) adhere to the principles of stability theory, as established in the following theorem.
Theorem 1 In addition to the assumptions imposed on the model parameters,
in (2) as non negative values, this study also assumed that
,
then the zero solutions to (1) satisfy
,
,
,
,
,
as
.
Proof
Select a Lyapuov function defined by
(3)
(4)
Clearly,
. Considering the time derivatives of (3), then
where
Since
. The system is stable. It means Lyapunov decreases over time, the system settles down implying stable heartbeats.
3. Ultimate Boundedess
A healthy heartbeat is rhythmic and bounded. Ultimate boundedness ensures that the system, despite these nonlinearities and perturbations, does not blow up, which is a minimal but crucial requirement for physiological realism.
It guarantees that no matter the initial conditions, despite nonlinear coupling and pathological inputs, the state variables
will eventually enter a bounded region of the state space and stay there forever. Systems (1) is a model with Nonlinearity
, represented in terms of the ultimate boundedness.
Theorem 2 In addition to the conditions in Theorem 1, this study also assumed that
then
Proof From (3) and (4),
. Time derivatives yield
This implies that trajectories eventually enter and stay in a bounded subset of the state space.
4. Runge-Kutta 4th Order Method (RK4)
Convergence and numerical stability of the fourth-order Runge-Kutta (RK4) method under varying levels of nonlinearity and coupling means the global error (difference between numerical and true solution) goes to zero as step size as
.
Convergence for Heartbeat Oscillator Model
Theorem 3 Let the system of differential equations given in Equation (1) define a vector field
, with initial condition
. Assume:
The nonlinear function
is continuously differentiable:
,
The vector field
is Lipschitz continuous in
,
The true solution
is smooth (i.e.,
) on the interval
.
Then the classical Runge-Kutta 4th-order method applied with fixed step size
produces numerical approximations
such that the global error satisfies:
, as
.
Proof
We define a nonlinear coupled second-order system representing three oscillatory cardiac subsystems. To apply the classical 4th-order Runge–Kutta (RK4) method, we first convert the system into first-order form, derive the update scheme, and then discuss convergence testing.
Let
Then
Step 2: Classical RK4 Method Formulation
For step size
and time
:
where
This updates all six variables
simultaneously.
Step 3: Component-Wise RK4 Update (Expanded)
Let
Then for each
:
where
and the coefficients
follow the classical RK4 tableau.
This formulation are implemented directly in MATLAB, Mathematica.
Step 4: Convergence Testing
To test numerical convergence of the RK4 method for this system:
Choose a reference solution: Compute
using RK4 with a very small step (e.g.,
).
Compute solutions with larger step sizes:
(e.g., 0.1, 0.05, 0.025).
Estimate global error:
Estimate convergence rate
:
For RK4, we observe
, confirming 4th-order convergence.
Step 5: Interpretation of Convergence
The RK4 method is globally 4th-order accurate, meaning the global error is
. For nonlinear oscillatory systems like this one, stability and boundedness of the solution also depend on parameter values
. If the system is stiff (e.g., due to large damping or coupling), an adaptive RK method (e.g., RK45) or implicit integrator may perform better. From Wolfram Mathematica results, systems (1) satisfies Lipschitz continuity of
, sufficient smoothness of
, and existence and uniqueness of the solution.
5. Simulations
Figure 1. Stability analysis of SA and AV nodes for parameters
, illustrating convergence behavior of the system dynamics over time.
Figure 2. System stability behavior when
, showing equilibrium characteristics under different initial conditions.
Figure 3. Boundedness properties of SA and AV nodes for
with
, demonstrating confined state trajectories over extended simulation time.
Figure 4. Boundedness behavior when
, highlighting the effect of nonlinear forcing terms on the system response.
Figure 5. Time evolution of the Lyapunov energy function illustrating monotonic energy decay for the heart-beat model with parameters
, auxiliary values
, and
, confirming the stability of the system.
Figure 6. State trajectories of
,
, and
corresponding to normal heart-beat dynamics. All trajectories converge toward the origin for
,
, and
, indicating stable physiological behavior.
Figure 7. State trajectories of
,
, and
representing malfunctioning heart-beat dynamics. The system response is shown for
, auxiliary parameters
, and control gains
, illustrating altered convergence.
Figure 8. Comparative state trajectories highlighting the differences between normal and abnormal heart-beat dynamics. Results are shown for
, auxiliary values
, and varying control gains
, demonstrating the impact of parameter variation on system behavior.
Figure 9. Convergence plot for a healthy heart model with
.
Figure 10. Convergence behavior of a healthy heart model at
, computed using the fourth-order Runge–Kutta (RK4) method with Wolfram algorithms.
Figure 11. Wolfram code illustrating regular cardiac rhythm for
, corresponding to a healthy heart.
Figure 12. Wolfram algorithm and simulations showing cardiac malfunction for large values of
.
6. Results and Discussion
Figure 1 and Figure 2 present the stability analysis obtained through the Lyapunov function and the associated phase portraits derived from the proposed coupled oscillator framework. These simulations capture the dynamic interactions among the three principal components of the cardiac conduction system-mamely, the atrial (SA node), nodal (AV node), and ventricular (Purkinje system) oscillators.
Figure 3 and Figure 4 investigate the role of a nonlinear damping term, expressed as
, in reproducing pathological cardiac behavior. Unlike linear damping, which scales proportionally with velocity, the nonlinearity dominates at higher amplitudes and effectively drives the system back toward equilibrium. This mechanism enforces boundedness of the trajectories and prevents unphysiological divergence in system energy. Nonlinear stiffness terms of this nature are critical for capturing saturation phenomena and protective thresholds intrinsic to cardiac tissue, particularly under conditions such as electrical remodeling in heart failure or nonlinear ionic responses at the tissue level. In the absence of such nonlinear damping, the model could generate unstable or unrealistic dynamics, resembling uncontrolled fibrillation or excessive signal amplification beyond physiological limits. From a control engineering perspective, the inclusion of nonlinear damping also introduces safety margins that are relevant to artificial pacemaker design and model-based therapeutic strategies.
The Lyapunov function (Figure 5), which represents the system’s total energy (kinetic and potential), provides a global measure of stability. As demonstrated,
decreases monotonically and asymptotically approaches a constant (or zero) value. This behavior reflects the system’s natural tendency to converge toward a stable equilibrium or limit cycle, analogous to the heart restoring a regular rhythm following transient perturbations such as exercise or stress recovery. A smooth, non-oscillatory decay indicates effective damping and stable energy dissipation, whereas minor oscillations in the Lyapunov trajectory correspond to physiological variability, such as mild sinus arrhythmia commonly observed in healthy individuals.
The phase portraits (Figures 6-8) provide further qualitative insights into system dynamics. Spiral trajectories converging toward the origin highlight dissipative behavior and energy loss, ultimately leading to stabilization. The observed coherence and smoothness across oscillator trajectories confirm effective coupling within the system, mirroring healthy synchronization among the SA node, AV node, and Purkinje network. Crucially, the absence of chaotic trajectories or erratic switching suggests that the model remains physiologically plausible and avoids pathological regimes such as fibrillation or conduction block. Under pathological parameter settings, however, one would expect irregular cycles, instability in the Lyapunov function, or chaotic signatures in the phase space.
The influence of the parameter
, which governs the strength of the nonlinear forcing term
, was also examined. When
, the system exhibits regular sinusoidal oscillations consistent with a healthy rhythm. As
increases, the waveforms become progressively distorted, producing irregular and potentially desynchronized oscillations. These distortions serve as proxies for arrhythmic conditions, including ectopic beats or loss of synchrony between atrial and ventricular activity.
Figure 9 further demonstrates the convergence properties of the classical fourth-order Runge-Kutta (RK4) method applied to the system. The error analysis reveals a systematic reduction in numerical error with decreasing step size, thereby confirming the consistency and convergence of RK4 for this class of nonlinear differential equations. This ensures that the simulated oscillations of
and
are reliable and not artifacts of numerical instability. Consequently, the model’s predictions regarding rhythm transitions and arrhythmic onset are validated both physiologically and computationally.
In summary, the simulation results confirm the model’s capacity to reproduce a broad spectrum of cardiac behaviors-from stable sinus rhythm to varying degrees of arrhythmogenicity-while maintaining boundedness and numerical robustness. The implementation in both Wolfram Mathematica and MATLAB as in Figures 10-12, reinforces reproducibility and highlights the framework’s utility for theoretical and computational investigations of cardiac dynamics, arrhythmia mechanisms, and rhythm control strategies.
7. Summary and Conclusion
This study introduced a nonlinear coupled oscillator model of the heartbeat that effectively captures the interactions among key cardiac nodes. The model demonstrates global stability, physiological interpretability, and the ability to reproduce both normal and arrhythmic behaviors. The incorporation of nonlinear damping ensures boundedness of solutions, while parameter variations enable systematic exploration of rhythm disorders. Numerical analysis confirms the reliability of the framework. Collectively, the model provides a robust tool for advancing the understanding of cardiac dynamics and supports future applications in rhythm regulation and predictive cardiology.
In conclusion, the proposed framework bridges the gap between abstract nonlinear dynamical theory and clinically relevant cardiac behavior. It establishes a versatile platform for investigating rhythm formation and disruption, as well as for designing control strategies in diagnostic and therapeutic contexts. Future extensions may incorporate spatial heterogeneity, stochastic perturbations, and patient-specific parameterizations, thereby enhancing its applicability to predictive cardiology and biomedical device development.
Acknowledgements
Spcecial appreciation goes to Dr. D.K. Olukoya, MFM Worlwide.