Abstract: A method for training a system for predicting a probability of occurrence of cardiac event is provided. The method includes obtaining sets of electrocardiograms of subjects, each set of electrocardiograms comprising at least one electrocardiogram each obtained, a) prior to and b) during or after an occurrence of a cardiac event, or both. The method includes extracting a first approximation of a time series data. The method also includes obtaining electrocardiograph signals that produced the electrocardiograms. The method also includes creating a training dataset from the extracted time series signals and the electrocardiograph signals for training a first and a second approximation of an electrocardiogram for representing an electrocardiograph signal that produced the electrocardiogram. The method further includes training a second model for extracting a cardiac marker from the second approximation of the electrocardiogram of the subject and calculating a probability of occurrence of a cardiac event.