
Saliency maps and attention mechanisms in explainable AI (xAI) enhance the interpretability of ECG analysis models by highlighting key features in the ECG data that contribute to the model's decision-making process. These methods provide insights into which parts of the ECG signal the model is focusing on, enabling clinicians to better understand and trust the model's predictions.
Saliency maps are visual representations that show the importance of different regions in the ECG data. They are generated by assigning a relevance score to each data point in the ECG signal, indicating its contribution to the model's output. By highlighting the most relevant parts of the ECG signal, saliency maps allow clinicians to identify the specific features that led to a particular diagnosis.
Attention mechanisms, on the other hand, allow the model to selectively focus on different parts of the ECG signal during the analysis process. These mechanisms enable the model to weigh the importance of different features and make more informed decisions. By incorporating attention mechanisms, ECG analysis models can better capture the temporal dependencies and patterns in the ECG data, leading to improved accuracy and interpretability.
Overall, saliency maps and attention mechanisms in xAI enhance the interpretability of ECG analysis models by providing visual explanations and highlighting the important features in the ECG data. This helps clinicians understand the reasoning behind the model's predictions and increases trust in the model's diagnostic capabilities.

The xECGArch architecture differentiates between short-term and long-term ECG features by utilizing two independent Convolutional Neural Networks (CNNs). The short-term CNN focuses on a 0.6-second window, which is suitable for analyzing individual heartbeats and capturing rapid, beat-level features. On the other hand, the long-term CNN covers the entire 10-second recording, allowing it to capture broader rhythmic information and cover the whole range of the ECG signal. By combining the outputs of these two CNNs via weighted averaging, the xECGArch architecture effectively leverages distinct temporal features to enhance the accuracy and interpretability of atrial fibrillation detection from ECG signals.

The xECGArch architecture utilizes two independent 1D Convolutional Neural Networks (CNNs) to analyze ECG signals. These CNNs focus on short-term and long-term ECG features, which are essential for interpreting morphological and rhythmic patterns. The short-term CNN analyzes rapid, beat-level features with a receptive field of 0.6 seconds, while the long-term CNN covers the entire 10-second ECG recording to capture broader rhythmic information. Both networks employ global average pooling (GAP) to reduce input dimensions before classification via a softmax layer, enhancing efficiency and performance.