Resonance 2026 - Final Presentation Domain 8 -Human-AI Collaboration in Decision Making Team-Pulse Predictors

1. Introduction and context of cardiovascular disease detection

This section introduces the critical need for cardiovascular disease detection, establishes the context using global health statistics, defines core concepts like ECG and arrhythmia, details the selection of the MIT BIH Arrhythmia Dataset, outlines initial preprocessing steps, and justifies the selection of initial machine learning methodologies based on interpretability requirements.

1.1 Global Burden and Diagnostic Foundation

Cardiovascular Diseases (CVDs) represent a significant global health crisis, responsible for 17.9 million deaths annually worldwide, according to the World Health Organization. Within India, the situation is highlighted by a challenging doctor-to-patient ratio (approximately 1:811 in 2025). Furthermore, epidemiological studies show that CVDs are the leading cause of death in many regions, including predominantly tribal districts in India.

The primary non-invasive tool for assessing the heart’s electrical state is the Electrocardiogram (ECG), which records electrical activity via skin electrodes to help detect issues such as heart enlargement, blockages, and coronary artery disease 2.

1.2 Defining ECG Components and Arrhythmia

Arrhythmia is fundamentally defined as an abnormal heart rhythm, which is classified based on its rate (tachycardia if fast, bradycardia if slow), its origin (Atrial or Ventricular), and its regularity. An ECG captures the electrical signature of a single heartbeat, which consists of several key components.

The core elements of a typical heartbeat waveform as recorded by an ECG include the P Wave, the QRS Complex, and the T Wave. The highest spike within the complex is designated as the R Peak.

A diagram illustrating the components of a single heartbeat waveform as recorded by an Electrocardiogram (ECG).

Diagnostic analysis heavily relies on timing intervals and morphology. Key intervals include:

  • PR Interval: The time from the start of the P wave to the start of the QRS complex.
  • QT Interval: The time from the start of the QRS complex to the end of the T wave.
  • RR Interval: The time duration between consecutive R peaks, which is crucial for calculating heart rate using the formula: Heart Rate = 60/RR interval60 / \text{RR interval} (where the RR interval is measured in seconds).

Physicians classify arrhythmias by analyzing these features: checking if the rate is slow (<60<60 beats per minute), normal (60−10060-100 beats per minute), or fast (>100>100 beats per minute), assessing RR interval consistency, and examining the morphology (shape and direction) of the P, QRS, and T waves 3.

1.3 Dataset Selection and Characteristics

For this study, the MIT BIH Arrhythmia Dataset sourced from PhysioNet.org was selected. This dataset is considered the gold standard in biomedical signal research because it features extensive, expert-verified annotations.

The dataset comprises recordings from 47 patients (totaling 48 recordings due to one patient being recorded twice), with each recording lasting 30 minutes and sampled at a frequency of 360 Hz, meaning 360 beats are read per second. Crucially, the heartbeats within the ECG signals are annotated by two cardiologists, distinguishing between Normal beats (N) and numerous types of Abnormal beats (over 15 different arrhythmia types identified). Each patient record yields four primary file types:

  • .dat: Containing the raw ECG signal.
  • .atr: Containing the beat annotations (labels).
  • .hea: Containing metadata.
  • .xws: Containing system-specific configuration information, not primary data 4.

1.4 Preprocessing and Model Selection Rationale

The initial processing stage focused on transforming the classification task into a binary problem: Normal beats (N) were assigned Class 0, and all abnormal beats were assigned Class 1.

To maintain integrity and prevent data leakage, a record-level 70/30 split was enforced, allocating 33 patient records for training and 15 for testing. For model input, either the raw 216-sample waveform or seven calculated statistical features (mean, standard deviation, maximum, minimum, energy, skewness, kurtosis) were used. Feature normalization was consistently applied using StandardScaler 5.

Tip: Record-level splitting is vital in time-series or patient-specific data to ensure that data from the same patient does not appear in both the training and testing sets, which would artificially inflate performance metrics.

The subsequent machine learning methodologies chosen were: Random Forest Classifier, Decision Tree Classifier (CART), and Logistic Regression. The selection was explicitly guided by the need to evaluate the trade-off between interpretability (essential for building physician trust) and predictive power (critical for patient safety). Note that the initial workflow, as documented here, deliberately excluded filtering, normalization scaling (beyond the initial feature scaling), and class balancing techniques 6.

1.5 Logistic Regression as an Interpretable Baseline

Logistic Regression serves as a fundamental linear classification model in this context. It is defined as a method that predicts the probability of a binary outcome by utilizing the logistic, or sigmoid, function.

The basic equation governing this process involves the sigmoid function, which maps any real-valued input to a value between 0 and 1, representing the probability P(Y=1∣X)P(Y=1|X):

Probability=P(Y=1∣X)=11+e−z\text{Probability} = P(Y=1|X) = \frac{1}{1 + e^{-z}}

Where zz is the linear combination of features and weights, typically expressed as: z=β0+∑i=1nβiXiz = \beta_0 + \sum_{i=1}^{n} \beta_i X_i

The basic equation for logistic regression, representing the sigmoid function used to calculate the probability of a binary outcome.

In arrhythmia detection research, Logistic Regression is valued because it generates calibrated probability scores rather than yielding only hard class labels. This feature is highly relevant to clinical workflows, especially Human-in-the-Loop (HITL) decision-making, as it allows for the adjustment of sensitivity thresholds used for triage decisions. Clinically, using these probabilities supports risk-based assessment, allowing cardiologists to interpret outputs based on specific risk tolerance rather than simple binary predictions 7.

The performance of the Logistic Regression model in this context was evaluated using the Receiver Operating Characteristic (ROC) curve, which plots the True Positive Rate against the False Positive Rate. The resulting model achieved an Area Under the Curve (AUC) of 0.830.83.

This Receiver Operating Characteristic (ROC) curve illustrates the performance of a Logistic Regression model.

Example: If the Logistic Regression outputs a probability of 0.900.90 for an abnormal beat, a clinician might set a high threshold (e.g., 0.850.85) to flag this case for immediate review, balancing the need for sensitivity against the risk of unnecessary alerts. The 0.830.83 AUC suggests the model performs reasonably well in distinguishing between the two classes 8.

2. Detailed examination of decision tree and tree-based models

This section provides an in-depth analysis of three distinct classification models: the Decision Tree Classifier (CART), the ensemble method Random Forest Classifier, and the probabilistic Gaussian Naive Bayes model, focusing on their structure, application, and performance implications, particularly in contexts like ECG signal analysis.

2.1 Decision Tree Classifier (CART)

The Classification and Regression Tree (CART) algorithm builds a supervised learning model that uses a series of hierarchical splits based on feature thresholds to reach a classification decision. This structure is highly valued because it mimics clinical reasoning, creating explicit, rule-based pathways for diagnosis (e.g., an R-R interval falling below a specific duration).

For splitting criteria, the CART algorithm often employs the Gini Index to measure impurity within a node. The Gini Index is calculated based on the squared probabilities of all classes present in the data subset: Gini Index=1−∑i=1Cpi2\text{Gini Index} = 1 - \sum_{i=1}^{C} p_i^2 where pip_i is the probability of class ii belonging to the set. The optimal split is the one that minimizes this impurity measure.

Tip: Decision Trees are considered "white-box" models due to their interpretability, which allows researchers to explicitly derive feature importance, highlighting which ECG morphological features (like P-wave or QRS complex characteristics) are most critical for a given arrhythmia diagnosis 10.

A significant limitation of unconstrained Decision Trees is their propensity to overfit, especially when dealing with noisy physiological data like ECG signals. As the tree depth increases, the model perfectly memorizes the training data, leading to high training accuracy but poor generalization on unseen test data.

This line chart illustrates the relationship between the depth of a Decision Tree Classifier (CART) and its corresponding training and testing accuracy.

The figure above clearly illustrates this common challenge: training accuracy (1.001.00 for deep trees) rapidly separates from test accuracy, which fluctuates significantly, indicating high variance and overfitting after a depth of approximately 5.0 12.

2.2 Random Forest Classifier

The Random Forest Classifier addresses the primary weakness of single decision trees—high variance and overfitting—by employing an ensemble learning approach known as bagging (Bootstrap Aggregating). This method constructs an ensemble of many independent decision trees and aggregates their final predictions, typically via majority voting for classification tasks.

The final prediction f^(x)\hat{f}(x) of the Random Forest is calculated as the average of the predictions output by BB individual trees: f^(x)=1B∑b=1BTb(x)\hat{f}(x) = \frac{1}{B} \sum_{b=1}^{B} T_b(x) where Tb(x)T_b(x) is the prediction made by the bb-th tree in the forest.

This formula for the Random Forest Classifier prediction, which is the average of the predictions from B individual trees.

This ensemble structure makes the Random Forest significantly more robust against noise, outliers, and artifacts commonly present in real-world monitoring data, such as those recorded by Holter monitors. This improved generalization ability helps prevent the model from memorizing specific abnormal beats encountered during training 13.

Feature importance analysis can still be extracted from Random Forests, often revealing which input features contribute most to the impurity reduction across all trees in the forest.

A bar chart illustrating the importance of various features as determined by a Random Forest Classifier.

Performance analysis related to the number of trees used shows that while increasing the number of estimators (n_estimatorsn\text{\_estimators}) keeps the training accuracy consistently near perfect, the test accuracy stabilizes around a specific value (e.g., 0.68 in the observed context) after an initial rapid gain, indicating where diminishing returns on variance reduction are met 15.

This line chart illustrates the performance metrics (Accuracy and Loss) of a Random Forest Classifier as the number of trees (n_estimators) increases.

2.3 Gaussian Naive Bayes Model

In contrast to tree-based methods, the Gaussian Naive Bayes (GNB) model is a probabilistic classifier rooted in Bayes’ Theorem. This model operates under the strong assumption that all features are conditionally independent given the class label, and crucially, it assumes that continuous variables associated with each class follow a Gaussian (Normal) distribution.

The fundamental relationship governing this model is Bayes' Theorem: P(C∣X)=P(X∣C)P(C)P(X)P(C|X) = \frac{P(X|C) P(C)}{P(X)} where P(C∣X)P(C|X) is the posterior probability, P(X∣C)P(X|C) is the likelihood, and P(C)P(C) is the prior probability.

The basic equation for Gaussian Naive Bayes, derived from Bayes' Theorem.

In the context of analyzing temporal ECG features (e.g., time windows taken immediately before and after a beat), GNB has demonstrated strong performance. This success suggests that the extracted feature distributions are statistically distinct across different arrhythmia classes. A key advantage of GNB is its computational efficiency, making it an excellent candidate for deployment on resource-constrained edge devices used for wearable cardiac monitoring 16.

Example: When evaluating ECG signals, GNB calculates the likelihood P(X∣C)P(X|C) for a patient's feature vector XX belonging to a specific arrhythmia class CC by assuming that each feature (like the duration of a T-wave) is normally distributed within the dataset for that class CC.

For completeness regarding model tuning, an earlier exploration of threshold optimization, though associated with Logistic Regression, highlights that model calibration (finding the optimal decision threshold) is vital for maximizing accuracy, where performance peaks before declining sharply 9.

This line chart illustrates the relationship between the classification threshold and the resulting accuracy for a Logistic Regression model.

3. Results, conclusion, and future direction

This section summarizes the comparative results across machine learning classifiers, details the ultimate conclusion regarding clinical deployment and Human-in-the-Loop (HITL) necessity, and outlines the necessary future work required to advance performance.

3.1 Classifier performance comparison and threshold analysis

The analysis involved comparing various machine learning models, with Gaussian Naive Bayes (GNB) showing specific characteristics related to its feature assumptions. For GNB, the distribution of Feature 1 (Mean ECG value) for both Normal and Abnormal classes showed significant overlap, centered near zero, indicating the Gaussian assumption might not perfectly separate the classes based on this single feature alone.

This histogram shows the frequency distribution of Feature 1 (Mean ECG value) for both Normal and Abnormal classes under a Gaussian Naive Bayes model.

The classification threshold plays a crucial role in balancing precision and recall. For the GNB model, increasing the threshold generally improved accuracy up to an optimum point. Specifically, the maximum observed accuracy reached 0.76240.7624 when the classification threshold was set to 0.920.92. Moving the threshold towards 1.01.0 resulted in a notable decline in accuracy.

This line chart illustrates the relationship between the classification threshold and the resulting accuracy for a Gaussian Naive Bayes model.

When comparing the holistic performance metrics (Accuracy, Precision, Recall) across several tested models, it was clear that no single model dominated across all metrics. Logistic Regression achieved the highest overall Accuracy at 72.4472.44 percent. Conversely, Random Forest demonstrated the superior Recall (Sensitivity) at 0.860.86, suggesting it was best at capturing positive cases, though this came at the cost of higher false alarms. Decision Tree performed poorly in terms of Precision, registering only 0.280.28 19.

A comparison table summarizing the performance metrics (Accuracy, Precision, Recall) for four different machine learning models.

Tip: In critical triage scenarios, prioritizing high precision is often more valuable than high recall, as excessive false positives lead to alarm fatigue and waste clinical resources, which is less desirable than occasionally missing a true positive that a human can subsequently catch.

3.2 Clinical conclusion: The necessity of Human-in-the-Loop (HITL)

The primary conclusion drawn from the comparative analysis is that effective arrhythmia detection relies on trust-calibrated Human–AI collaboration, especially considering the challenging clinical environment, such as India's significant doctor-to-patient ratio of 1:8111:811 .

The Random Forest model, while exhibiting high sensitivity (Recall = 0.860.86), generated an unacceptable volume of false positives, severely limiting its precision and clinical usability due to the risk of alarm fatigue.

In contrast, the Gaussian Naive Bayes (GNB) model was identified as the most suitable choice for initial triage gateway because it achieved the highest precision score of 0.600.60. This high precision minimizes unnecessary alarms, allowing the system to function effectively as a filter. The system's role is conceptualized as a cognitive offloader, filtering out clearly normal or easily identifiable cases, thereby enabling cardiologists to dedicate their focus to complex, high-risk arrhythmias requiring expert judgment.

Example: An ECG tracing, such as the one below showing distinct P, QRS, and T complexes, requires expert analysis to verify subtle abnormalities, making automated flagging of clear cases (via high-precision filtering) highly valuable 21.

An electrocardiogram (ECG) tracing showing heart rhythm over time, with markings indicating specific points or measurements.

3.3 Future Directions for Enhanced ECG Analysis

The performance plateau reached by classical machine learning techniques, hovering around 74%74\% accuracy, necessitates the exploration of more sophisticated deep learning methodologies. The primary area for future work involves integrating advanced neural network architectures capable of better capturing complex temporal and morphological features inherent in ECG signals. Specifically, the integration of 1D-Convolutional Neural Networks (1D-CNNs) and Long Short-Term Memory (LSTMs) models is deemed essential to enhance the system's ability to learn intricate pattern dependencies within the ECG data . Improving model performance is crucial for increasing clinical trust and expanding the system’s utility in high-volume diagnostic settings 20.

Common mistakes to avoid

  • Review all topics thoroughly before exams
  • Pay attention to formulas and key definitions
  • Practice with examples provided in each section
  • Don't memorize without understanding the underlying concepts

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also