Chaotic Dynamics Analysis of Magnetocardiography Signals for Early Detection of Myocardial Ischemia
Keyi Li, Xiangyang Zhou, Yuchen Liu, Jiaojiao Pang, Rui Shang, Yadan Zhang, Yangyang Cui, Dong Xu, Min Xiang

TL;DR
This paper introduces a new method using magnetocardiography and machine learning to detect heart issues early.
Contribution
The novel contribution is the Magnetocardiography Chaotic Dynamics Map (MCDM) framework for early myocardial ischemia detection.
Findings
MCDM patterns show significant differences between healthy and ischemic subjects.
The MCDM-based model achieved 92.19% accuracy in detecting myocardial ischemia.
The framework is computationally simple and noninvasive, suitable for scalable screening.
Abstract
The heart exhibits inherently nonlinear and chaotic electrical dynamics, making the early detection of myocardial ischemia (MI) challenging using traditional electrocardiography (ECG) or standard magnetocardiography (MCG). In this study, we propose an engineering-oriented framework that integrates classical nonlinear dynamics with machine-learning-based analysis, termed the Magnetocardiography Chaotic Dynamics Map (MCDM), to reconstruct nonlinear phase-space trajectories from 36-channel MCG recordings and capture differences in reconstructed nonlinear dynamics associated with ischemic conditions. Morphological and quantitative analyses of the MCDM patterns reveal marked differences between healthy and ischemic subjects. Using a machine-learning classifier trained on HOG and LBP descriptors, the proposed MCDM-based model achieved an accuracy of 92.19%, a sensitivity of 88.75%, a…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14- —National Key Research and Development Program of China
- —National Natural Science Foundation of China
- —Innovation Program for Quantum Science and Technology
- —Special Fund for Basic Scientific Research Business Expenses of Central Universities
- —2022 Industrial Technology Basic Public Service Platform Project
- —Key R&D Program of Shandong Province
- —China National Postdoctoral Program for Innovative Talents
- —Zhejiang Provincial Natural Science Foundation Exploration Project
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAtomic and Subatomic Physics Research · ECG Monitoring and Analysis · Non-Invasive Vital Sign Monitoring
1. Introduction
Myocardial ischemia (MI) is a pathological cardiac condition caused by insufficient blood supply from the coronary arteries. Persistent myocardial ischemia may result in severe cardiac injury, leading to myocardial infarction and even sudden cardiac death [1]. Therefore, early and accurate diagnosis of myocardial ischemia is crucial for patient treatment and prognosis. It is important to note that there is no absolute, universally accepted gold standard for diagnosing myocardial ischemia in routine clinical practice. Common clinical tests (e.g., resting or stress ECG, biomarkers, and imaging examinations) each reflect different aspects of ischemia and therefore cannot be regarded as a single definitive reference in all scenarios. Following a practical and widely used strategy adopted in prior nonlinear-dynamics-based ischemia studies, we use the final hospital diagnosis as the reference standard in this work [2]. Specifically, the final clinical diagnosis was determined by physicians through a comprehensive review of available clinical evidence, including clinical history, ECG, MPI, CTA, CAG, and other relevant examinations. Our clinical framing follows a pragmatic perspective and is also informed by the CDG study, which provides important methodological guidance for ischemia detection in real-world diagnostic workflows [2]. Recently, nonlinear dynamic analysis of cardiac signals has gained attention, as the heart is considered a complex dynamic system characterised by significant chaos and nonlinear properties [3,4]. Nonlinear dynamic analysis can effectively capture the complex features of cardiac signals, showing substantial potential for the early diagnosis of myocardial ischemia [5]. Building upon this perspective, researchers have explored various nonlinear metrics to complement traditional diagnostic approaches. However, despite their widespread clinical use, conventional techniques such as electrocardiography (ECG) and myocardial perfusion imaging (MPI) still exhibit inherent limitations in sensitivity and specificity for early ischemia detection. ECG provides high temporal resolution but often fails to capture subtle ischemic alterations, resulting in relatively low sensitivity. Although MPI demonstrates higher sensitivity and specificity, its reliance on radioactive tracers, long acquisition time, and inability to characterize the underlying electrophysiological dynamics constrain its application for real-time or early-stage assessment. In contrast, MCG—as an emerging noninvasive modality—offers richer and more sensitive electrophysiological information on cardiac activity, thereby showing greater potential for the early detection of myocardial ischemia [6,7].
Recent advances in nonlinear dynamic analysis of myocardial ischemia signals have shown remarkable progress. Wang et al. introduced the Cardiodynamicsgram method based on deterministic learning, which extracts three-dimensional dynamic information from the ST–T segments of standard 12-lead ECG, achieving a sensitivity of 90.3% and specificity of 87.8% [2]. This seminal work provides important clinical and methodological guidance for framing ischemia detection under a practical reference standard and motivates our chaos-inspired MCG representation design. Yaga et al. developed an unshielded MCG system using room-temperature magnetoresistive sensors, demonstrating reliable acquisition of high-quality cardiac magnetic field signals under clinical conditions [8]. Saleh and Brachmann further combined MCG with two-dimensional speckle-tracking strain imaging for coronary artery disease detection, attaining a sensitivity of 88.5% [9]. In parallel, nonlinear dynamic metrics such as Lyapunov exponents [10], fractal dimensions [3], phase-space reconstruction [11], sample entropy [12], and multiscale entropy [4] have been employed to quantify the chaotic behavior of cardiac systems. These approaches have revealed the multilevel complexity of cardiac electrophysiology and demonstrated strong discriminative capability between ischemic and healthy states. However, most existing studies focus on a single modality or a limited feature domain, either electrocardiographic or magnetocardiographic data or only one class of nonlinear parameters. Recent studies have also explored data-driven and deep learning-based feature representation for magnetocardiography signals, including self-supervised frameworks for enhanced MCG feature extraction [13]. Consequently, an integrated, multimodal, and multiscale analytical framework that unifies these complementary perspectives remains largely unexplored.
In this work, we present a novel noninvasive framework for early myocardial ischemia detection based on MCG. By leveraging nonlinear-dynamics-based representation learning (MCDM) and feature-extraction techniques, our approach substantially enhances the diagnostic accuracy and specificity of MCG beyond current standards (Traditional MCG analysis methods usually achieve approximately 83% sensitivity and 77% specificity [14], whereas recent MIG-enhanced MCG approaches have reported improved results (93.5% sensitivity and 85.3% specificity)). We validate the concept through a series of preliminary experiments, demonstrating robust performance (i.e., accuracy of 92.19%, sensitivity of 88.75%, specificity of 95.63%, F1-score of 91.91%) and offering new insights into the electrophysiological alterations that characterize ischemic myocardium.
Rather than introducing new chaos-theoretic measures, this work focuses on representation construction and practical integration of established nonlinear dynamics into a machine-learning pipeline for ischemia screening.
The remainder of this manuscript is structured as follows. Section 2 (Materials and Methods) details the acquisition and preprocessing of MCG signals, the development of our nonlinear dynamical model, and the feature-extraction and classification pipeline. Section 3 (Results) reports the diagnostic performance metrics obtained in our proof-of-concept study. Section 4 (Discussion) examines the implications of our findings, addresses methodological considerations and potential limitations, and explores clinical relevance. Finally, Section 5 (Conclusions) summarizes the key contributions of this work and outlines directions for future investigation.
An overview of the proposed pipeline is presented in Figure 1.
2. Materials and Methods
2.1. Materials
A total of 400 validation cases were recruited for this study and divided into two groups: (i) 200 healthy volunteers from Qilu Hospital; and (ii) 200 patients with myocardial ischemia from Qilu Hospital. Both healthy volunteers and patients with myocardial ischemia were labeled based on the final diagnosis made by the hospital physicians, which was determined by analyzing all available clinical data, including clinical history, electrocardiogram (ECG), myocardial perfusion imaging (MPI), computed tomography angiography (CTA), coronary angiography (CAG), and other relevant examination results.
2.2. Methods
If a time series is generated by a deterministic nonlinear dynamical system, the process of reconstructing and characterizing the original system from the time series is referred to as phase space reconstruction. Phase space reconstruction is most commonly performed using Takens’ Delay Embedding Theorem, also known as Takens’ Theorem [15]. In simple terms, the system consists of n variables, where the evolution of each component is determined by the interactions with other components. Therefore, the information of all n variables is implicitly contained in the development of any one component. Of course, this explanation is not entirely precise, as systems may be unpredictable or the variables might not be coupled. To reconstruct an equivalent state space, it is sufficient to examine a single component and use measurements of this component at specific time delay points as new dimensions, which preserves many properties of the original system [16]. Typically, time series are studied in the time domain, but for chaotic time series, whether it is the calculation of chaotic invariants, the establishment of chaotic models, or prediction, all these processes are performed in the so-called phase space. Therefore, phase space reconstruction is a crucial step in the processing of chaotic time series. Discrete chaotic phenomena often manifest as nonlinear time series, and these time series encapsulate rich dynamical information about the system. Extracting this information and applying it practically is an important aspect of chaotic theory applications. Analyzing nonlinear dynamical systems using time series, based on chaos theory, is a significant task [17]. The heart, as a typical nonlinear dynamical system, is constantly influenced by various environmental regulatory factors and undergoes physiological and biochemical changes to adapt to life activities [18,19,20]. This study uses a 36-channel MCG system to collect heart magnetic data, followed by noise reduction processing. To ensure reliable phase-space reconstruction, all magnetocardiographic signals were preprocessed using established denoising and artefact-suppression procedures [21]. The time series of the MCG signal is then subjected to phase space reconstruction, resulting in a chaotic time series :
where is the i-th sample of the MCG time series; is the reconstructed state vector; m is the embedding dimension; and is the time delay. The time delay is determined by the first zero crossing of the autocorrelation function of the time series. The embedding dimension m is determined by the false nearest neighbor method. The reconstructed phase space is then used to construct the MCDM. The delay time and embedding dimension are estimated separately for each subject-specific MCG signal and may therefore vary across subjects. For , the modeling of the chaotic dynamics map is performed, and the reconstructed heart magnetic chaotic attractor is then validated through surrogate data testing methods. Phase space reconstruction involves two critical parameters: the embedding dimension and the delay time. In Takens’ embedding theorem, both the embedding dimension and delay time are theoretically proven to exist, but specific expressions are not provided. Moreover, in practical applications, time series are typically noisy and finite. As such, the embedding dimension and delay time must be chosen according to the specific characteristics of the data.
Regarding the selection of embedding dimension and delay time, two main viewpoints exist: The first viewpoint considers delay time and embedding dimension as unrelated parameters. Under this approach, the delay time is determined first, and then an appropriate embedding dimension is chosen based on that. Common methods for estimating delay time include autocorrelation, average displacement, reciprocal autocorrelation, and mutual information. The key idea is to ensure that the original time series, after applying time delays, can be used as independent coordinates. Methods for finding the embedding dimension primarily include geometric invariants, the False Nearest Neighbor (FNN) method [22], and its improvements, such as the Cao method [23].
The second viewpoint posits that delay time and embedding dimension are related. In 1996, Kugiumtzis [24] proposed the time window length as an important parameter that takes both into account. In 1999, Kim et al. introduced the C-C [25] method, which uses correlation integrals to estimate both the delay time and time window simultaneously.
In this study, the autocorrelation method [26] will be employed to estimate the optimal delay time, while the Grassberger–Procaccia (G–P) [27] algorithm will be utilised to determine the correlation dimension. The FNN [22] method will be applied to calculate the appropriate embedding dimension for phase-space reconstruction of cardiac magnetic data. Furthermore, the Wolf algorithm [28] will be used to compute the Lyapunov exponent of the MCG signals. A positive Lyapunov exponent value greater than zero will indicate the presence of chaotic dynamics in the cardiac system.
After constructing the two-dimensional MCDM representations, data augmentation was applied to expand the dataset and enhance model generalization. While classical chaos metrics provide scalar summaries of system dynamics, the proposed two-dimensional MCDM preserves geometric and topological characteristics of reconstructed trajectories, enabling spatial pattern analysis that is not readily accessible through single-valued indices. As a result, a balanced dataset consisting of 800 MCDMs from healthy subjects and 800 MCDMs from patients with myocardial ischemia was generated for subsequent binary classification using machine learning algorithms. To avoid overfitting and improve robustness, several augmentation techniques were employed, including random rotation ( ), translation in both horizontal and vertical directions, Gaussian noise perturbation, and contrast–brightness adjustment. Each augmentation operation was applied uniformly across all samples to ensure balanced expansion among different transformation types. These operations effectively preserved the intrinsic spatiotemporal characteristics of the original MCDM while introducing realistic variations, thereby improving the model’s ability to discriminate between healthy and ischemic cardiac conditions [29,30].
The comparison between the traditional electrocardiogram, the one-dimensional magnetocardiogram, the two-dimensional isomagnetic map, and the MCDM is shown in Figure 2.
This study collected 36 channels of MCG data using an MCG acquisition system developed independently by Beihang University. Noise reduction processing was performed to obtain 36 one-dimensional MCG signals corresponding to a single cardiac cycle, as illustrated in Figure 3. The 36 channels were subsequently superimposed, averaged, and smoothed to generate a representative MCG waveform, as shown in Figure 4, which was treated as a one-dimensional time series for further analysis. To suppress various sources of interference, several preprocessing filters were applied. A band-pass filter (0.5–150 Hz) was used to remove baseline drift and high-frequency noise. In addition, a 50 Hz notch filter was employed to attenuate power-line interference. To further enhance signal quality, a high-pass filter at 0.5 Hz and a low-pass filter at 150 Hz were applied, along with a median filter (window size = 5), to eliminate transient spikes and motion artifacts. These operations effectively preserved the physiological frequency band of cardiac magnetic activity while minimizing non-cardiac interference.
2.2.1. Autocorrelation Method for Estimating Delay Time
It is simple to compute and does not require sophisticated or computationally expensive methods. It works well when there is a clear decay in correlation, which is typical for many real-world time series. Compute the autocorrelation function of the time series :
When the autocorrelation function value decreases to of the initial value, the corresponding is taken as the time delay parameter. As shown in Figure 5 (Blue curve: , the autocorrelation as a function of delay . Orange line: the threshold , where is the zero-lag autocorrelation. Intersection point: the first at which falls below the threshold, taken as the time delay for phase-space reconstruction).
2.2.2. Correlation Dimension of Phase Space Reconstruction
Given a time series , a series of vectors in a high-dimensional phase space can be obtained by performing phase space reconstruction:
The correlation dimension of the reconstructed phase space is as follows:
In the above equations, . The time delay is denoted by , where k is an integer and is the sampling interval. The embedding dimension is m. Here, , where is the number of reconstructed vectors. The variable r represents the radius of the m-dimensional hypersphere, and denotes the Heaviside function. The scaling behavior of the correlation integral with respect to r is illustrated in Figure 6.
2.2.3. Calculating the Embedding Dimension Using False Nearest Neighbors
For each vector in the m-dimensional phase space, where and N is the total number of reconstructed vectors, find its nearest neighbor (with ), and compute the Euclidean distance between them:
Their distance in the (m+1)-dimensional space is calculated as follows:
If , then it is a false nearest neighbor. Define the ratio as follows:
If , then is considered a false nearest neighbor of . The threshold is typically set to a value greater than 10. The proportion of false nearest neighbors at a given embedding dimension m is then computed. This process is repeated by incrementally increasing m until the percentage of false nearest neighbors becomes sufficiently small or ceases to decrease. The corresponding value of m at this point is regarded as the optimal embedding dimension. As shown in Figure 7.
2.2.4. Calculate the Lyapunov Exponent
The Lyapunov exponent is used to describe the characteristics of a system’s motion. The sign and magnitude of its value along a certain direction indicate the rate at which nearby trajectories in the attractor either diverge or converge over time. When the Lyapunov exponent is less than zero, it means that the volume of the attractor’s trajectory contracts, the system’s motion tends to stabilize, and the system is insensitive to initial conditions. When the Lyapunov exponent is greater than zero, it indicates that the attractor’s trajectory expands, and two initially close trajectories will gradually separate, with their differences growing over time, eventually leading the system into chaotic behavior. When the Lyapunov exponent equals zero, the system is in a critically stable state. If the system is in a chaotic state, there will necessarily be a Lyapunov exponent greater than zero. A positive indicates sensitive dependence on initial conditions—a hallmark of chaotic dynamics. Therefore, determining the size and sign of the Lyapunov exponent serves as a criterion for determining whether the system has entered chaos. As shown in Figure 8. Consider a dynamical system:
Through the point , a trajectory is formed in the phase space. If the initial value is perturbed by a deviation , another trajectory is formed starting from , and they form a tangent space vector . Define the deviation vector , which satisfies the following:
If the initial separation between two nearby trajectories is given by , then the separation at time t is denoted as . Define the growth rate of this separation (see Figure 9) as
Here, denotes the n-dimensional Lyapunov exponent, which characterizes the average exponential rate of divergence or convergence of nearby trajectories in the reconstructed phase space as the time interval tends to zero. If is an n-dimensional deviation vector at time t, and its initial length is , then the components of along the principal directions yield n Lyapunov exponents. The set is typically ordered as .
A positive largest Lyapunov exponent ( ) indicates sensitive dependence on initial conditions, a key signature of chaotic dynamics.
Signal Preprocessing and Noise Control
All magnetocardiographic signals were preprocessed using a standardised pipeline developed and maintained by a dedicated signal-processing team. This pipeline includes baseline correction, denoising, and artifact suppression to reduce environmental interference and improve signal quality prior to phase-space reconstruction and MCDM generation. The present study focuses on nonlinear representation and classification; dedicated robustness evaluation under sensor displacement, channel dropout/interruption, or extreme noise conditions was not conducted and is beyond the scope of this work.
2.2.5. Machine Learning-Based Classification Method
We constructed a binary classification pipeline for MCDM data, combining handcrafted features with a Random Forest classifier [31].
Training and test sets were separated at the subject level to ensure that MCDM samples derived from the same patient did not appear in both sets, thereby avoiding data leakage. Data augmentation was applied exclusively to the training set and served as a regularisation strategy rather than introducing new physiological information.
Two types of features were used, namely:
- Histogram of Oriented Gradients (HOG): Captures edge and gradient structure. Gradients were calculated and binned into orientation histograms with fixed cell and block sizes, following the method of Dalal and Triggs [32].
- Local Binary Pattern (LBP): Encodes texture by thresholding neighborhood pixels [33]. The LBP code for a central pixel with neighbors is defined as follows:
The symbols used in the LBP formulation are summarized in Table 1. The final feature vector was the concatenation of HOG and LBP features.
A Random Forest classifier [31] was trained using n trees and optimised via grid search. Prediction for an input is given by majority vote (the meaning of each symbol is shown in Table 2):
We computed four performance metrics [34]:
where , , , and are the confusion matrix components (The meaning of each symbol is shown in Table 3).
3. Results
3.1. Feature Reconstruction and Chaotic Dynamics Visualization
To investigate the dynamical differences between healthy and ischemic cardiac magnetic activity, magnetocardiographic signals were reconstructed into chaotic attractors using the proposed MCDM framework. Figure 10 illustrates representative two-dimensional projections of the reconstructed phase-space attractors from both healthy and ischemic subjects. Healthy subjects exhibit compact, symmetric attractor structures with smooth trajectories, indicating stable cardiac dynamics, whereas ischemic subjects show irregular, dispersed, and asymmetric attractors, suggesting disrupted nonlinear coupling in cardiac electrophysiology. In this context, state-space formulations have also been adopted in non-invasive electroanatomical mapping to estimate myocardial current density, further supporting the relevance of dynamical-system representations in cardiac electrophysiology [35].
To quantify these nonlinear differences, several chaos-based indicators, including Lyapunov exponent and correlation dimension, were computed. Patients with ischemia generally exhibited higher maximum Lyapunov exponents and correlation dimensions, indicating increased instability and complexity in their cardiac magnetic fields. This finding supports that the reconstructed attractor topology in the MCDM captures pathophysiological alterations associated with ischemia.
3.2. Quantitative Evaluation of Classification Performance
The proposed MCDM–RF model was quantitatively evaluated using a held-out test set, while the remaining samples were used for training. Specifically, the dataset was split at the subject level into training and test sets with a fixed ratio (80%/20%) using stratified sampling to preserve class balance. Multiple baseline classifiers—SVM (RBF kernel), k-nearest neighbors (k = 5), and Random Forest with conventional HOG + LBP features—were implemented for comparison. As shown in Table 4, the proposed MCDM–RF achieved the highest diagnostic performance, outperforming all baseline models in accuracy, sensitivity, specificity, and F1-score. Although the same HOG and LBP descriptors are employed, the baseline Random Forest operates on conventional MCG-derived representations, whereas the proposed MCDM–RF uses nonlinear dynamics-based MCDM images as input, leading to different input representations and corresponding feature distributions.
Figure 11 visualizes the classification outcomes, including a grouped bar chart of major evaluation metrics, a receiver operating characteristic (ROC) curve, and a confusion matrix. The MCDM–RF model shows strong class separability and balanced performance across metrics.
Figure 12 further compares the performance of SVM, Random Forest, k-NN, and the proposed MCDM–RF using grouped bar charts and heatmaps, suggesting that the proposed MCDM-based representation is associated with improved performance on the current dataset.
To enhance model generalization, data augmentation was applied (rotation, translation, Gaussian noise, brightness–contrast adjustment). Figure 13 shows examples of augmented MCDM images that preserve the global chaotic structure while introducing physiologically plausible variation.
Feature importance analysis revealed that orientation- and texture-based descriptors contributed most to classification. As shown in Figure 14, LBP-related microtexture variations played a decisive role in differentiating ischemic from healthy subjects, indicating that certain texture- and orientation-related descriptors contribute strongly to classification on the current dataset.
3.3. Comparison with Existing ECG-/MCG-Based Methods
To further evaluate the clinical relevance and generalizability of the proposed framework, we compared its diagnostic performance with that of representative ECG- and MCG-based studies from the recent literature. As shown in Table 5, while several state-of-the-art ECG and traditional MCG methods report accuracy in the range of 80–91%, their sensitivity remains limited. The proposed MCDM–RF model achieves higher sensitivity and comparable or superior accuracy, confirming its effectiveness in capturing early nonlinear signatures of ischemia.
4. Discussion
The quantitative evaluation presented in Section 3 demonstrated that the proposed MCDM–RF pipeline can improve classification performance on the studied magnetocardiographic (MCG) dataset. Accordingly, the contribution of this study should be viewed as an engineering integration and representation framework, rather than a fundamental theoretical advance in nonlinear dynamical systems. Data augmentation was applied exclusively to the training set as a regularization strategy to improve robustness and does not introduce new physiological information. These findings confirm that incorporating nonlinear dynamical mapping and texture-based feature fusion can enhance ischemia detection capability.
Recent AI-ECG models have achieved high diagnostic accuracy for acute myocardial ischemia or occlusion. Herman et al. (2024) reached 90.9% accuracy and 80.6% sensitivity using a large-scale 12-lead ECG model, while Al-Zaiti et al. (2023) reported approximately 85% sensitivity in a multicentre ECG-ML cohort [36,37]. These comparisons are provided as contextual benchmarks rather than direct head-to-head evaluations. The proposed framework is intended to be complementary to existing ECG- and MCG-based approaches, rather than a competitive replacement for large-scale deep-learning systems. These approaches demonstrate the strength of deep learning on widely available ECG signals but rely heavily on massive annotated datasets and still provide indirect information about cardiac magnetic fields. These studies are cited here as contextual benchmarks rather than direct head-to-head comparisons with the proposed method.
In the magnetocardiography domain, Zhang et al. (2024) developed machine learning models validated by SPECT imaging, achieving high sensitivity (87.0–91.3%) but reporting limited specificity (10.0–50.0%), which poses challenges for screening false positives [38]. Although these studies highlight the diagnostic potential of MCG, their reliance on conventional time- or frequency-domain features limits sensitivity to early, subtle abnormalities.
The proposed MCDM–RF framework differs fundamentally from these prior methods. Instead of characterizing amplitude or spectral morphology, it reconstructs MCG signals into a chaotic phase-space map that reflects the underlying nonlinear dynamics of cardiac electrophysiology. Rather than introducing new chaos-theoretic measures, this framework focuses on constructing a structured representation of reconstructed dynamics suitable for downstream pattern-based analysis. The MCDM representation is intended to complement traditional chaos metrics, not to replace them. This process exposes subtle dynamical disruptions that precede overt ECG or magnetic amplitude changes, offering improved sensitivity to early ischemic alterations. The integration of histogram-of-oriented-gradient (HOG) and local-binary-pattern (LBP) descriptors enables the model to quantify both global spatial orientation and local texture irregularities in the chaotic attractor, providing a richer representation of cardiac complexity.
It should be noted that HOG and LBP are generic computer-vision descriptors and do not directly correspond to specific electrophysiological variables. In this study, these features act as surrogate descriptors of spatial organisation, gradient continuity, and local irregularity within reconstructed attractor geometries. Similar to recent physics-informed biomedical monitoring studies that combine finite element modelling with AI to link signal patterns to underlying physical mechanisms [40], our current approach remains data-driven, while the integration of physics-based constraints represents an important future direction for enhancing interpretability and translational relevance [40].
Compared with conventional MCG classifiers, the proposed model achieved a sensitivity increase of nearly 18% and an accuracy gain of about 6%. The Random Forest classifier with manually engineered features was selected to prioritize interpretability, computational efficiency, and suitability for limited clinical datasets. From a computational perspective, phase-space reconstruction and image-based feature extraction scale approximately linearly with signal length, while Random Forest inference is computationally lightweight, making the overall pipeline compatible with near-real-time deployment under modern computational resources. Deep learning baselines directly trained on MCDM images were not included in this study to reduce overfitting risk under the current dataset scale and to maintain interpretability; such comparisons will be pursued in future work with larger multi-centre cohorts. Hybrid FEM–AI strategies have demonstrated advantages in robustness and physical interpretability in related biomedical monitoring tasks [41]; integrating such physics-based reasoning with the proposed MCDM framework [40] is a natural extension of this work. These literature results are provided as contextual benchmarks rather than direct head-to-head comparisons, given differences in datasets, reference standards, and experimental settings. Because the MCDM–RF uses an interpretable ensemble classifier rather than a deep neural network, its feature-importance distribution (Figure 14) can be directly inspected, supporting transparency and potential clinical trust.
Clinically, this framework provides several advantages. In this study, early ischemia refers to ischemic conditions identified prior to overt myocardial infarction, based on comprehensive clinical diagnosis rather than prospective early detection. We acknowledge that the reference standard reflects established clinical diagnosis integrating multiple modalities, and does not represent a purely prospective early-detection setting. First, it is completely non-invasive and radiation-free, offering a safer and more accessible alternative to imaging-based techniques such as CT-FFR or SPECT. Second, it may facilitate ischemia screening by leveraging differences in reconstructed nonlinear dynamics in cardiac magnetic signals that may be subtle in conventional morphology-based assessments. In this study, model optimisation was performed with explicit emphasis on sensitivity in order to minimise false-negative predictions, reflecting the clinical priority of avoiding missed myocardial ischemia. Although no explicit cost-sensitive learning or asymmetric loss functions were implemented in the current framework, sensitivity-oriented performance evaluation was adopted as a pragmatic strategy under limited data conditions. We acknowledge that incorporating cost-sensitive learning, threshold tuning for clinically preferred operating points, or asymmetric optimization objectives could further enhance tolerance to false negatives and represent an important direction for future work. Third, data augmentation was used as a training-time regularization strategy to improve robustness within the current dataset; external validation across centers and acquisition conditions remains necessary. Consequently, the MCDM–RF method may serve as a valuable adjunct to ECG for rapid, cost-effective, and early ischemia screening in both clinical and pre-clinical settings. It is emphasised that data augmentation was applied exclusively to the training data and not to the test set, thereby avoiding information leakage. The purpose of augmentation is regularization rather than the introduction of new physiological information. Several figures in this study are intended primarily for qualitative visualization of reconstructed dynamics and classification behavior, rather than for formal statistical inference. Formal statistical analysis of individual chaos metrics is beyond the scope of the present work due to its exploratory nature and limited cohort size, and will be addressed in future studies.
We acknowledge that averaging the 36-channel recordings into a single 1D waveform may discard spatial information related to sensor geometry and regional field patterns. Extending MCDM to channel-resolved or spatially structured representations is therefore an important direction for future work.
Future work will focus on expanding multicentre validation with larger datasets, optimizing hyperparameters for real-time deployment, and developing multimodal diagnostic pipelines that integrate ECG and MCG information within a unified nonlinear dynamic framework. Beyond MCG, the proposed representation-learning paradigm may be extended to other biomedical modalities characterised by nonlinear or chaotic behaviour. This integration could further improve diagnostic confidence and help bridge the gap between early functional assessment and anatomical imaging of coronary artery disease.
5. Conclusions
This study proposed a novel Magnetocardiographic Chaotic Dynamics Mapping (MCDM) framework for the early detection of myocardial ischemia. By reconstructing magnetocardiographic signals into a nonlinear chaotic phase space and combining histogram-of-oriented-gradients (HOGs) and local-binary-patterns (LBPs) feature descriptors, the proposed MCDM–RF model effectively captures both global and local spatial-temporal variations in cardiac magnetic fields.
In the magnetocardiography domain, Zhang et al. (2024) obtained 90.4% accuracy and 70.6% sensitivity when detecting perfusion defects validated by SPECT imaging [38], and He et al. (2025) reported 78.5% accuracy and 72.1% sensitivity for coronary artery disease detection using CAG and FFR as references [39]. Although these studies highlight the diagnostic potential of MCG, their reliance on conventional time- or frequency-domain features limits sensitivity to early, subtle abnormalities.
Clinically, the MCDM–RF framework provides a non-invasive, radiation-free, and cost-effective tool for early ischemia screening, particularly as a noninvasive adjunct for ischemia screening under the retrospective hospital-diagnosis reference standard adopted in this study. The model’s interpretability and performance on the current held-out test set suggest feasibility, while external validation is required before real-world deployment claims can be made.
Future research will focus on multicentre validation with larger cohorts, cross-device calibration, and integration of ECG and MCG signals into a unified nonlinear diagnostic model, paving the way for more accurate and interpretable cardiovascular disease detection. Beyond MCG, the proposed representation-learning paradigm may be extended to other biomedical modalities characterised by nonlinear or chaotic behaviour. For example, infrared thermographic signals analysed using deep learning have shown similar spatial–temporal complexity in biomedical quality assessment [42]. While signal characteristics and physical constraints differ across modalities, these studies highlight methodological parallels that support the broader applicability of chaos-inspired representations [42].
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Heusch G. Myocardial ischaemia-reperfusion injury and cardioprotection in perspective Nat. Rev. Cardiol.20201777378910.1038/s 41569-020-0403-y 32620851 · doi ↗ · pubmed ↗
- 2Wang C. Dong X. Ou S. Wang W. Hu J. Yang F. A New Method for Early Detection of Myocardial Ischemia: Cardiodynamicsgram (CDG)Sci. China Inf. Sci.20165901210410.1007/s 11432-015-5309-7 · doi ↗
- 3Acharya U.R. Faust O. Kadri N.A. Suri J.S. Yu W. Automated identification of normal and diabetes heart rate signals using nonlinear measures Comput. Biol. Med.2013431523152910.1016/j.compbiomed.2013.05.02424034744 · doi ↗ · pubmed ↗
- 4Costa M. Goldberger A.L. Peng C.K. Multiscale entropy analysis of complex physiologic time series Phys. Rev. Lett.20028906810210.1103/physrevlett.89.06810212190613 · doi ↗ · pubmed ↗
- 5Shi B. Zhang Y. Yuan C. Wang S. Li P. Entropy Analysis of Short-Term Heartbeat Interval Time Series during Regular Walking Entropy 20171956810.3390/e 19100568 · doi ↗
- 6Fenici R. Brisinda D. Meloni A.M. Clinical application of magnetocardiography Expert Rev. Mol. Diagn.2005529131310.1586/14737159.5.3.29115934809 · doi ↗ · pubmed ↗
- 7Kwong J.S. Leithäuser B. Park J.W. Lee Y.H. Diagnostic value of magnetocardiography in coronary artery disease and cardiac arrhythmias: A review of clinical data Int. J. Cardiol.20131671835184210.1016/j.ijcard.2012.12.05623336954 · doi ↗ · pubmed ↗
- 8Yaga L. Amemiya M. Natsume Y. Shibuya T. Sasano T. Recording of Cardiac Excitation Using a Novel Magnetocardiography System with Magnetoresistive Sensors Outside a Magnetic Shielded Room Sensors 202525464210.3390/s 2515464240807806 PMC 12349235 · doi ↗ · pubmed ↗
