How Can I Detect the QRS Complex of an ECG Byte Array in Java?

  • Context: Medical 
  • Thread starter Thread starter ShahKhalid
  • Start date Start date
  • Tags Tags
    Complex
Click For Summary

Discussion Overview

The discussion revolves around detecting the QRS complex from an ECG byte array in Java. Participants explore methods for identifying this feature within the context of ECG data obtained from a Lifegain defibrillator, addressing both theoretical and practical aspects of the task.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant seeks guidance on detecting the QRS complex from an ECG byte array, asking for generalized formulas or methods applicable in Java.
  • Another participant questions whether the ECG rhythm can be assumed to be normal sinus rhythm or if the software needs to accommodate various dysrhythmias, noting the challenges in detecting the QRS complex in such cases.
  • A different participant inquires about the specific lead being used for ECG interpretation, highlighting that the interpretation can vary significantly based on the lead.
  • The original poster clarifies they are using lead 2 and mentions difficulties with existing software due to format incompatibility, sharing a specific data array and seeking a standard format for ECG data storage.

Areas of Agreement / Disagreement

Participants express differing views on the assumptions regarding ECG rhythms and the challenges of detecting QRS complexes in various contexts. The discussion remains unresolved regarding the best approach to detect the QRS complex and the compatibility of data formats.

Contextual Notes

There are limitations regarding the assumptions about ECG rhythms and the specific lead used, which may affect the detection methods. Additionally, the compatibility of different data formats for ECG storage is not established.

ShahKhalid
Messages
2
Reaction score
0
HI
i read ecg byte array from file.now i want to detect QRS of read ecg byte. how can i achieve this in java.Is there any generalized formula or any thing from where i can easiliy calculate this?

i get byte array from Lifegain defibrilator(an ecg device).i draw ecg on android from these bytes.now i want to detect QRS complex(term used for calculation of time and voltage of a wave of one heart beat).DATA=LeadData":"-284,-127,-122,17,-35,10,32,10,52,16,49,33,38,69,70,58,45,93,47,88,58,90,149,5,82,-12,-4,40,-34,29,-29,5,-4,-17,-13,-29,-13,-4,-9,-9,-10,-20,-15,-22,-32,-25,-23,-2,-15,-7,-13,-19,-17,-28,-27,-27,-33,-20,-16,-13,-20,-10,-22,-20,-19,-28,-15,-19,-22,-21,-9,-3,-6,-8,-6,-11,-8,-8,-5,-10,-5,-6,-9,-4,-6,3,20,3,14,7,11,10,5,11,5,10,2,10,13,14"

Any help would be highly appreciated.
Regards,

shah
 
Biology news on Phys.org
ShahKhalid said:
HI
i read ecg byte array from file.now i want to detect QRS of read ecg byte. how can i achieve this in java.Is there any generalized formula or any thing from where i can easiliy calculate this?

i get byte array from Lifegain defibrilator(an ecg device).i draw ecg on android from these bytes.now i want to detect QRS complex(term used for calculation of time and voltage of a wave of one heart beat).DATA=LeadData":"-284,-127,-122,17,-35,10,32,10,52,16,49,33,38,69,70,58,45,93,47,88,58,90,149,5,82,-12,-4,40,-34,29,-29,5,-4,-17,-13,-29,-13,-4,-9,-9,-10,-20,-15,-22,-32,-25,-23,-2,-15,-7,-13,-19,-17,-28,-27,-27,-33,-20,-16,-13,-20,-10,-22,-20,-19,-28,-15,-19,-22,-21,-9,-3,-6,-8,-6,-11,-8,-8,-5,-10,-5,-6,-9,-4,-6,3,20,3,14,7,11,10,5,11,5,10,2,10,13,14"

Any help would be highly appreciated.
Regards,

shah

Can you assume that the EKG rhythm is a normal sinus rhythm? Or do you need to accommodate the various dysrhythmias? Finding the QRS complex in some dysrhythmias can be quite a challenge for software (if the QRS complex is there at all)...

http://en.wikipedia.org/wiki/Cardiac_dysrhythmia

.
 
Which lead are you using? Interpreting an ECG depends on which lead is being used. Most people are familiar with lead I, but there can be up to 6 leads used for diagnostic purposes.
 
Hi,

I am using lead 2 of ecg to get data.
i have searchd on it a lot and found some code project also. For reference http://www.codeproject.com/Articles/4353/ECG-recording-storing-filtering-and-recognition
but i think it save data in its particular format.my data format is not compatible with its format.so this software does not detect QRS from my Data file/Array.my data array is like
data_array={-757,-671,-583,-500,-427,-343,-269,-208,-131,-61,-5,57,109,174,237,285,334,381,439,486,524,566,604,642,677,711,742,776,810,838,866,892,920,947,961,974,996,1019,1029,1037,1059,1067,1075,1090,1094,1103,1109,1109,1117,1121,1123,1125,1123,1124,1121,1114,1116,1106,1099,1102,1094,1081,1082,1081,1074,1069,1062,1055,1060,1057,1056,1063,1049,1054,1015,1040,1025,1020,1051,987,1083,964,1097,970,1050,1074,855,2088,1624,881,1067,1019,1036,926,1256,467,3321,7968,7933,7482};

i s there any standerd fromat for ecg data storage.so that that can be compatible for all.

Regards

Shah Khalid.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
9K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
2K
  • · Replies 42 ·
2
Replies
42
Views
7K
  • · Replies 1 ·
Replies
1
Views
7K
  • · Replies 5 ·
Replies
5
Views
3K