Preprocessing: the signals on the two databases have different sampling frequencies. You will need to change the signal and annotations sampling frequencies in at least one of the databases. You may use some of the functions: 'wfdb.processing.resample_singlechan', 'wfdb.processing.resample_multichan', 'wfdb.processing.resample_ann', 'wfdb.processing.resample_sig'. |
Posprocessing: your detector must produce a numpy array with the QRS locations (samples). That numpy array will be given to the function 'wfdb.wrann' that will produce a file wich will be read by 'wfdb.processing.compare_annotations', in order to evaluate the accuracy of your QRS detector. The function 'wfdb.processing.find_local_peaks' might be useful to help producing the array of QRS locations from the output of your neural network. |