See https://github.com/profjsb/heart_rhythm_attentive_rnn/blob/master/af_classifier/feature_extractor.py How to handle irregularly sampled time series?