Introduction
Deep learning has significantly advanced the field of echocardiography, yet standard Vision Transformers (ViTs) encounter substantial obstacles when applied to ultrasound videos. Primary among these are spurious correlations, where models learn from non-diagnostic background noise or text annotations rather than cardiac structures. Additionally, the computational complexity of transformers—which scales quadratically with the number of input tokens—makes high-resolution video processing resource-prohibitive. Finally, while segmentation is common, few models effectively address point tracking, a prerequisite for calculating myocardial strain.
To address these challenges, we present ViACT (Video Anatomically Constrained Transformer), a framework designed to focus exclusively on clinically relevant heart structures through an innovative anatomical tokenization strategy.
Methodology: The ViACT Framework
The core innovation of ViACT is the Anatomical Tokenizer. Unlike standard ViTs that partition images into a rigid grid, ViACT represents the myocardium as a set of discrete anatomical points.
Anatomical Tokenization and Pre-training
The model samples small image patches centered on these anatomical points. To handle non-integer coordinates, bilinear interpolation is employed for patch extraction. This approach ensures that the transformer's attention is strictly confined to the heart muscle.
To further enhance feature representation, we introduce the Anatomical Masked Autoencoder (MAE) pre-training strategy. During this phase, a sequence of anatomical patches is provided with specific regions randomly masked. The model is tasked with reconstructing the missing myocardial textures from the surrounding context, forcing it to internalize the complex relationship between cardiac geometry and tissue texture.
Task-Specific Adaptations
The point-set representation allows ViACT to be fine-tuned for diverse clinical tasks:
- Classification: Utilizing a class token for the detection of Cardiac Amyloidosis (CA).
- Regression: Predicting the Ejection Fraction (EF) to assess global heart function.
- Point Tracking: Predicting displacement ($\Delta P$) to track myocardial motion throughout the cardiac cycle.
Experimental Setup
The framework was evaluated using a combination of clinical and synthetic datasets:
- Cardiac Amyloidosis Dataset: 1,959 4-chamber echocardiograms (1,520 controls, 439 CA cases) for classification and EF regression.
- CAMUS Synthetic: 100 simulated videos with ground-truth tracking points.
- Leuven Simulated: 105 clips across seven commercial ultrasound vendors (e.g., GE, Siemens, Philips) to evaluate cross-vendor generalization.
Results and Discussion
ViACT demonstrates superior performance and efficiency across all evaluated metrics.
Clinical Performance
In Cardiac Amyloidosis detection, ViACT achieved an accuracy of 81.84%, surpassing standard ViViT (78.08%) and full-frame MAE-ST (80.25%). For point tracking, the model achieved a Mean Error (ME) of 0.88mm to 1.42mm on the Leuven dataset, consistently outperforming specialized trackers like EchoTracker and MyoTracker. In EF regression, the model reached a Mean Error of 7.39, proving that myocardial features alone provide sufficient information for global function assessment.
Interpretability and Efficiency
By constraining the model's field of view, the resulting attention maps become highly interpretable. In CA cases, attention naturally clusters in the basal and mid-sections, mirroring the "apical sparing" pattern recognized by cardiologists. Furthermore, by processing only myocardial tokens rather than a full image grid, ViACT significantly reduces memory and computational overhead compared to standard video MAE models.
Conclusion
ViACT represents a shift toward anatomically-aware deep learning in cardiology. By integrating clinical knowledge into the transformer architecture, the model achieves state-of-the-art results while maintaining computational efficiency and clinical relevance. Future work will focus on integrating the initial segmentation step directly into the pipeline to create a fully end-to-end diagnostic system.
Summary updated