T wave alternans implementation in Matlab

Job ID: 32357837

Budget: $30 – $250 USD

I have a matlab script that measures T wave alternans using spectral method (Figure 1). The input is an ECG recording in WFDB format, 2-5 minutes in length, with 1 to 12 signals and QRS beat annotation.

I need an additional integrated script that measures T wave alternans using modified moving average method (Figure 2) and create an output similar to Figure 3 with the maximum TWA for each lead (signal). More precisely, the analysis approach to modified moving average (MMA) method: The algorithm continuously streams odd and even beats into separate bins and creates median complexes for each bin. These complexes are then superimposed, and the maximum difference between the odd and even median complexes at any point within the JT segment is averaged for every 10 to 15 s and reported as the TWA value. End of T wave for JT interval can be automatically detected using ecgpuwave of WFDB package (I can provide you more details on this aspect). A series of beats, ranging from 16 (weighting or update factor of 1/8) through 128 (weighting factor of 1/64), can be used. The algorithm should exclude extrasystoles (a beat occurring 20-30% earlier or later than previous beats) or noisy beats (a beat that varies more than 20-30% in absolute integral than previous beats). Maximum, mean, median, minimum, SD and IQR for TWA in each lead (signal) should be returned.

For the entire recording, a pdf report should be made with images from the spectral method and from the MMA method. The results should be also exported in a csv of xlsx file.

My budget is between 100-200 usd, depending on your experience. I can provide more help and details if you don’t understand any theoretical or technical details. I will provide more projects if we can collaborate well.