Python Forum
How to denoise ECG Signal with median filter using WFDB for Python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to denoise ECG Signal with median filter using WFDB for Python?
#1
Anybody familiar with WFDB application for Python?

So I'm trying to denoise MIT-BIH Arrhythmia Database (mitdb) downloaded from Physionet using median filter. Using WFDB, I can read the signal data with the following code:

 record = wfdb.rdrecord('mitdb/100', sampto=3000) 
 ann = wfdb.rdann('mitdb/100', 'atr', sampto=3000)
Then, when it comes to denoising, I read the WFDB documentation for Python and there is no such function to do median filter, unlike WFDB for Matlab which has the function medfilt

I am aware that SciPy Signal has medfilt function but if I read the signal data with WFDB, how can I input the data in the medfilt SciPy Signal function? Or should I use another method to read/open the data so I can use medfilt in SciPy? Or perhaps anybody know how to do median filtering with WFDB in Python?

TIA
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Finding the median of a column in a huge CSV file markagregory 5 1,732 Jan-24-2023, 04:22 PM
Last Post: DeaD_EyE
  Frequency Filter for wav file plotting in python manukanu 0 10,037 Dec-11-2018, 09:58 AM
Last Post: manukanu
  Calculating median value from time data series mkaru 1 5,034 Aug-22-2018, 08:41 AM
Last Post: Mekire

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020