Runxi Tsn

Results 2 comments of Runxi Tsn

def find_r_peaks(signal): r_peaks_dict = nk.ecg_findpeaks(signal, sampling_rate=256,method="neurokit") # 获取R波峰值和对应的索引位置 r_peaks = r_peaks_dict["ECG_R_Peaks"] r_waveform = signal[r_peaks] r_peak_values = r_waveform # 绘制心电图及检测的R波位置 plt.figure(figsize=(12, 6)) plt.plot(signal, label='Normalized ECG Signal') plt.plot(r_peaks, r_peak_values, 'r*', label='Detected R-peaks')...

> 这可能与算法有关。您可以尝试使用不同的峰值检测方法 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")