-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
why always miss the first R peak while using the "ecg_findpeaks" function #937
Comments
It probably has to do with the algorithm. You can try with a different peak detection method |
def find_r_peaks(signal):
"""""""" 生成心电数据的循环num_images = 1 # 要生成的图像数量 window_size = 5 # 窗口大小,单位秒 初始化一个空列表来存储每个窗口的特征all_windows_features = [] 用于存储所有特征的DataFramefeatures_df = pd.DataFrame() for i in tqdm(range(num_images), desc="Generating Images"):
|
I use the neurokit method, it seems to have some issues with the heartbeat detection of windowed ECG signals: r_peaks_dict = nk.ecg_findpeaks(signal, sampling_rate=256,method="neurokit") |
The |
As the title, I always miss the first R peak while using the "ecg_findpeaks" function to deal the windows ECG. I'm very thank, if someone can help me.
The text was updated successfully, but these errors were encountered: