Masked Training for Robust Arrhythmia Detection from Digitalized Multiple Layout ECG Images