Deriving ECGs #74
Replies: 2 comments 2 replies
-
Yes, it is pseudo-bidomain. Although I've implemented the function. I'am not very familiarized how to use it. I know that there is an additional step that is needed to generate the 12-lead ECG. This additional step is not included in the simulator. The output of the ecg function is used to generate the final result. Basically, the simulator solves equation 11 of the pseudo-bidomain paper for each lead. |
Beta Was this translation helpful? Give feedback.
-
Talking to a a colleague that uses the function, he sent me a snippet of code that he uses to generate a 8 lead ECG: def import_simulated_ecg_8leads_raw(filename):
data = np.genfromtxt(filename, skip_footer=1)
t = data[:, 0]
LA = data[:, 1]
RA = data[:, 2]
LL = data[:, 3]
RL = data[:, 4]
V1 = data[:, 5]
V2 = data[:, 6]
V3 = data[:, 7]
V4 = data[:, 8]
V5 = data[:, 9]
V6 = data[:, 10]
# Ealuate Wilson's central terminal
VW = 1.0 / 3.0 * (RA + LA + LL)
# Evaluate simulated ECG lead traces
V1 = V1 - VW
V2 = V2 - VW
V3 = V3 - VW
V4 = V4 - VW
V5 = V5 - VW
V6 = V6 - VW
I = LA - RA
II = LL - RA
III = LL - LA
aVL = LA - (RA + LL) / 2.0
aVF = LL - (LA + RA) / 2.0
aVR = RA - (LA + LL) / 2.0
ecgs = np.vstack((I, II, V1, V2, V3, V4, V5, V6)) |
Beta Was this translation helpful? Give feedback.
-
Here goes another discussion.
The built-in ECG derivation function is super useful. However I am not clear on how the reference potential, i.e. ground, is set while calculating$$\Phi_e$$ . How is the reference point decided? Here I am assuming pseudo-bidomain.
Reading through a pseudo-bidomain paper it seems the authors chose a reference point within an infinite bath in Fig 1, though it is not shown exactly how they determined the location of the reference point.
I have been looking at CALC_ECG and calc_reference_potential but am unfortunately still unclear.
I am asking because it is unclear to me whether I need to include a ground electrode(typically right leg, aka RL), and account for the reference point that way, or if it is already accounted for while solving pseudo-bidomain.
Best,
Lucas
Beta Was this translation helpful? Give feedback.
All reactions