Abstract
Echocardiography video is a primary modality for diagnosing heart diseases, but the limited data poses challenges for both clinical teaching and machine learning training. Recently, video generative models have emerged as a promising strategy to alleviate this issue. However, previous methods often relied on holistic conditions during generation, hindering the flexible movement control over specific cardiac structures. In this context, we propose an explainable and controllable method for echocardiography video generation, taking an initial frame and a motion curve as guidance. Our contributions are three-fold. First, we extract motion information from each heart substructure to construct motion curves, enabling the diffusion model to synthesize customized echocardiography videos by modifying these curves. Second, we propose the structure-to-motion alignment module, which can map semantic features onto motion curves across cardiac structures. Third, The position-aware attention mechanism is designed to enhance video consistency utilizing Gaussian masks with structural position information. Extensive experiments on three echocardiography datasets show that our method outperforms others regarding fidelity and consistency.
Introduction
Echocardiography (cardiac ultrasound) is the primary tool for diagnosing heart disease. However, high-quality, labeled video data is scarce due to privacy concerns and the high level of expertise required for annotation. This lack of data hampers both the training of new cardiologists and the development of robust machine learning models.
While AI video generation has advanced rapidly, medical imaging presents unique hurdles. Standard models often rely on "holistic" conditions—like a single text prompt or a rough edge map—which are too coarse for clinical use. A clinician might need to simulate a specific pathology, such as a valve moving differently or a chamber contracting less efficiently. Previous models lacked this fine-grained, "explainable" control over individual cardiac substructures.
Methodology: The ECM Framework
The proposed Explainable and Controllable Motion Curve (ECM) framework moves away from vague text prompts toward precise geometric guidance. The pipeline consists of three core components:
- Motion Curve Extraction: The system uses a pre-trained anatomy detector to track the bounding boxes of key heart structures (e.g., Left Ventricle, Mitral Valve) across a video. These coordinates are converted into a high-dimensional frequency representation using a Fourier Transform (FT), making the motion representation robust to noise.
- Structure-to-Motion Alignment: To help the model understand which curve belongs to which part of the heart, an alignment module crops regions of interest (ROIs) from the initial frame and passes them through a CLIP image encoder. This maps visual semantic features directly onto the motion curves.
- Position-Aware Attention: To ensure video consistency and prevent "jitter," the model uses Gaussian masks. These masks act like spotlights, guiding the attention mechanism to the expected location of a specific structure based on its motion curve.
Experimental Results
The ECM model was evaluated on the public EchoNet-Dynamic dataset and two private in-house datasets (A4C and A2C views).
Quantitative Performance
ECM significantly outperformed existing state-of-the-art methods like 3D ControlNet and standard Stable Diffusion across several metrics:
- Fidelity: On the A4C dataset, ECM achieved a Fréchet Video Distance (FVD) of 189.27, a substantial improvement over the 792.19 seen in standard Stable Diffusion models.
- Consistency: An IoU (Intersection over Union) metric was used to measure how well generated structures followed intended paths. ECM scored 0.766, indicating high spatial accuracy.
Qualitative Controllability
A key strength of ECM is its "explainability." Because motion curves are derived from bounding box coordinates, they are human-readable and editable. Users can manually scale a curve to simulate a weaker heart contraction or replace a curve from one patient with another.
Discussion and Conclusion
By using visual prompts from the first frame (via CLIP) instead of generic text, ECM provides patient-specific context. The use of Fourier Transforms for motion curves leverages the rhythmic nature of the heart, enhancing robustness.
Limitations: The framework currently depends on the accuracy of the initial anatomy detector. Furthermore, while it can scale and replace curves, synthesizing complex, rare pathologies that deviate from standard periodic motion remains a challenge. Future work will focus on improving detector reliability and expanding the model's ability to handle non-periodic pathological movements.
The authors have committed to releasing the full code at https://github.com/mlmi-2024-72/ECM, facilitating further research in controllable medical video generation.
Summary updated