Skip to main content
. Author manuscript; available in PMC: 2013 Dec 2.
Published in final edited form as: J Biomed Sci Eng. 2013 Jul 18;6(7B):10.4236/jbise.2013.67A2001. doi: 10.4236/jbise.2013.67A2001

Algorithm II-B.

Signal Alignment

Step 1: Initial alignment
  • Determine initial pulse locations LEMG and LECG.

  • Determine the signed offset Ldiff = LEMGLECG.

  • Shift the ECG using Ldiff to align it with the EMG.

Step 2: Binarize the raw ECG
  • if QRS is present then replace with 1 else replace with 0.

Step 3: Local alignment
  • Extract the ECG noise locations from the EMG and the binary ECG.

  • Binarize the extracted EMG.

  • Determine the EMG, LEMG:ref, and ECG, LECG:ref, pulse locations.

  • Determine the signed offset Lref = L EMG:refLECG:ref.

  • Align the ECG with the EMG using Lref.