1 / 44

Senior Capstone Design Project Real-Time Electrocardiogram Spectral Analyzer

Senior Capstone Design Project Real-Time Electrocardiogram Spectral Analyzer. Ryan Carnathan, Keith Berry, Mark Stadick, & Greg Michaelson Electrical & Computer Engineering. Presentation Overview. Introduction Hardware QRS Detector Spectral Analysis User Interface Summary and Conclusion

Download Presentation

Senior Capstone Design Project Real-Time Electrocardiogram Spectral Analyzer

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Senior Capstone Design Project Real-Time Electrocardiogram Spectral Analyzer Ryan Carnathan, Keith Berry, Mark Stadick, & Greg Michaelson Electrical & Computer Engineering

  2. Presentation Overview • Introduction • Hardware • QRS Detector • Spectral Analysis • User Interface • Summary and Conclusion • Demonstration

  3. Requirements • Apply knowledge • Solve Real World Problems • Work in Multidisciplinary Teams • To become actively involved in a company or community organization.

  4. Purpose • Used in conjunction with the HP Merlin bedside monitor • Real-time spectral analysis of the beat-to-beat variability • Assess the potential for: • Improved bedside clinical monitoring • Diagnostic and predictive information

  5. Function • Graphical interface for the display and analysis of: • ECG Waveforms • QRS Complex Detection • Heart Rate Variability (HRV) Spectrogram • These functions are performed and displayed in real-time.

  6. Implementation • Hardware • QRS Detection • Spectral Analysis • Integration and User Interface

  7. Definition of terms • Electrocardiogram (ECG) • Heart Rate Variability (HRV) • QRS Complex • RR v.s. NN • The ECG Waveform • The QRS Complex

  8. Presentation Overview • Introduction • Hardware • QRS Detector • Spectral Analysis • User Interface • Summary and Conclusion • Demonstration

  9. Hardware • Data Acquisition Card (DAQ) • Laptop Computer • Accessories

  10. Capabilities Sample Rate 500 kS/s Number of Channels 8 Differential 16 Single Ended Gains 0.5, 1, 2, 5, 10, 20, 50, 100 Voltage Levels ±10 V - ±50 mV Configuration Sample Rate 1 kS/s Number of Channels 1 Differential Gain Setting 1 Voltage Levels ±5 V Data Acquisition Card

  11. CPU Intel 600 MHz Pentium 256 k Level 2 Cache Storage 20 GB Hard Drive 3 ½ inch Floppy Drive Memory 512 MB of Ram Peripherals Infrared Transfer 10/100 Network Card 56k Modem (2) PCMCIA Slots 1 Taken by DAQ Operating System Windows 2000 SP 1 Laptop Computer

  12. CPU 600 MHz 500 MHz (Battery) Hard Drive 15.4 GB Free Ram Used 128 MB (System) 384 MB Available DAQ Input 1 Differential Channel 1 kHz Sample Rate BNC Connection Laptop Configuration

  13. Accessory Box • Component Box • Connector Block • BNC Connection • Ribbon Cable • Strain Relief Device

  14. Connections • Merlin To DAQ • 6.35 mm Audio Cable To BNC • DAQ to Laptop • 68 Pin Ribbon Cable (0.2 M)

  15. Program Functions Initialize DAQ Start Acquisition Check Buffer Transfer Buffer Stop Acquisition Software LabWindows CVI MatLab 6.0 Software Integration

  16. Acquisition Sample

  17. CPU Voltage = 1.35V (Full Power) Average Power < 2.0 Watts Voltage = 1.1V (Battery) Average Power < 1.0 Watts Battery Life 3:15 per Battery 2 Batteries Possible DAQ Requirements ±5 VDC (±5%) 280 mA typ 400 mA max 70 mA unused Battery Efficiency

  18. Presentation Overview • Introduction • Hardware • QRS Detector • Spectral Analysis • User Interface • Summary and Conclusion • Demonstration

  19. QRS Detection Overview • QRS detection algorithm • Current Status • Future work • Summary

  20. Remove Offset Filter Clip QRS Peak Detection Peak Acceptance/ Rejection Output QRS p-p Interval QRS Detector Algorithm • Block Diagram

  21. QRS Detector Algorithm cont. • ECG Input Data • Remove Offset • Filter • Clip • QRS Peak Detection • Output QRS N-N Interval

  22. QRS Detector Sample Output

  23. Current Status • Operational • Remove d.c. offset • Clip below amplitude threshold • Detect QRS complexes (clean signals only) • Pending • Integration with graphical user interface • Digital Filter • QRS Accept/Reject function

  24. Future Work • 1st Priority • Integration with graphical user interface • Digital Filter • QRS Accept/Reject function • Final report outline • Testing and debugging

  25. Future Work Continued • 2nd Priority • Adaptive amplitude threshold function • Final report draft • Speed and performance improvements • 3rd Priority • Final report • Final presentation

  26. Presentation Overview • Introduction • Hardware • QRS Detector • Spectral Analysis • User Interface • Summary and Conclusion • Demonstration

  27. Spectral Analysis • Heart Rate Variability (HRV) • Inter Beat Intervals (IBI) • variation in the time intervals between beats • assumes irregular beats have been removed • normal to normal (NN) beats • Instantaneous Heart Rate (IHR) • variation in consecutive instantaneous heart rates • inverse of IBI

  28. Spectral Analysis • Power Spectral Density (PSD) • Distribution of Variance Over Frequency • Three Operations • Resample • Filter • Generate Spectrogram • Fast Fourier Transform (FFT) • Transforms Time Signal to Frequency

  29. Block Diagram QRS Detector Resample Filter FFT GUI Plot

  30. QRS Output • Elapsed Time vs Number of Heart Beats

  31. NN Intervals • Re-Interpreted Data From QRS Detector • NN Intervals • Indexed by Heart Beats

  32. Resampling Overview • Interpolate • Generate Continuous Curve • Passes Through Existing Points • Sample New Series • Constant Time Period • Required for Fast Fourier Transform (FFT) • NN Intervals vs Time

  33. Resampling • Input Signal from QRS Detector: • Resampled Signal:

  34. Filtering • Spikes in Signal • Missed Beats by QRS Detector • Distort Valid Data • Filter • Flattens Large Excursions • Modifies Only Large Outlying Data Points

  35. Filtering • Resampled Signal: • Filtered Signal:

  36. Spectrogram Algorithm • Estimating Spectral Power • Remove Mean Value • Perform FFT • Power Calculation - |FFT|2

  37. Spectrogram Example • PSD vs Time

  38. Presentation Overview • Introduction • Hardware • QRS Detector • Spectral Analysis • User Interface • Summary and Conclusion • Demonstration

  39. Implemented Plots ECG User Controls Start/Stop Window Size Scrolling Modes Historical Real Time Planned Plots Beat to Beat Spectrogram Scaleogram User Controls Graph Selection Notes Features

  40. Process Budget • Limits • Data Acquisition • 10-15% of CPU • Little Memory • Beat Detection • 5-10% of CPU • Lots of Memory • Spectrogram Calculation • 30% of CPU

  41. Presentation Overview • Introduction • Hardware • QRS Detector • Spectral Analysis • User Interface • Summary and Conclusion • Demonstration

  42. Hardware Specified Needs Purchased / Acquired Built Software Completed Tested on Merlin GUI 2 Plots Scrolling Integration of Hardware Real-time ECG Display Historical Mode QRS Detector Literature Review Scaling Clipping Beat Detection Spectrogram Resampling Median Filter Spectral Estimation Completed

  43. GUI Spectrogram Integration QRS Detector Integration User Notepad QRS Detector Filtering Ectopic Beat Rejection Spectral Analysis Filter Refinement Higher Resolution Spectrogram Plot Remaining Tasks

  44. Presentation Overview • Introduction • Hardware • QRS Detector • Spectral Analysis • User Interface • Summary and Conclusion • Demonstration

More Related