Code for the paper:
Jesús Presedo , Paulo Félix, Adrián Pérez-Herrero, Guillermo J. Ortega, Alberto Cecconi, Beatriz López-Melgar, Álvaro Montes, Luis Jesús Jiménez-Borreguero. "Predicting atrial fibrillation onset from the short to the long term with longitudinal survival analysis using serial ECG recordings" (2026)
You will need to install the prerequisites with the following command
conda env create -f af.yml
- Survival Analysis
You can run the code to train the model by typing the following command on the train directory
python3 train_model.py