I am struggling with a problem regarding ECG data analysis. I need your great help.
I am using Nihon Koden EEG system and import the data as below.
The data includes ECG data, recording with X1 and X2 (channel names)
Therefore, real ECG data is the subtraction from X1 to X2.
I would like to find ecg_events (R waves) as below.
ecg_events, _, _ = mne.preprocessing.find_ecg_events(eegdata,event_id = 999,ch_name='X2')
However, this code shows the events based on X2, not subtraction from X1 to X2.
I was wondering if it could be possible to let me know the best code for R detection.
- MNE-Python version: 0.23.0
- operating system: macOS Big Sur
I look forward to hearing from you.