Abstract
The electrocardiogram (ECG) is used for diagnosis and risk stratification in myocardial infarction (MI). Women have a higher incidence of missed MI diagnosis and complications following infarction, and to address this we aim to provide quantitative information on sex-differences in ECG and torso-ventricular anatomical features and their interdependence. A novel computational automated pipeline is presented enabling the three-dimensional reconstruction of torso-ventricular anatomies for 425 post-MI subjects and 1051 healthy controls from UK Biobank clinical images. Regression models were created relating torso-ventricular and ECG parameters. We found that female hearts were positioned more posteriorly and superiorly than male, and in MI hearts were oriented more horizontally, especially for women. Post-MI women exhibited less QRS prolongation, requiring 27% more prolongation than men to exceed 120ms. Only half of the sex difference in QRS duration was associated with smaller female cavities. Lower STj amplitude in women was striking, associated with smaller ventricles, but also more superior and posterior cardiac position. Post-MI, T wave amplitude and R axis deviations were more strongly associated with posterior and horizontal cardiac positioning in women than in men. Our study highlights the need to quantify sex differences in anatomical features, their implications in ECG interpretation, and the application of clinical ECG thresholds in post-MI.
Introduction
The electrocardiogram (ECG) is a vital tool for routine clinical assessment of cardiac electrical abnormalities. Patient differences in anatomy and electrophysiology both determine the ECG. Computational and experimental studies have demonstrated that torso-ventricular orientation can substantially affect the ECG, potentially confounding disease diagnosis, and anatomy rather than electrophysiology is the strongest contributor to ECG variability in healthy subjects [1–4]. Sex and body mass index (BMI) are strongly associated with differences in torso and heart anatomy, and thus it is crucial to take them into consideration in ECG interpretation [5–7]. ECG abnormalities are caused by alterations in the electrophysiological substrate, but importantly they are modulated by anatomical factors such as heart size, location and orientation with respect to the ECG leads [2, 3].
Ischemic heart disease is the leading single cause of mortality worldwide, killing 0.1% of the global population per year [8]. Therefore, effective patient diagnosis of myocardial infarction (MI) and risk stratification for treatment selection are crucial for survival and quality of life [9]. There is a higher incidence of missed diagnosis of acute MI in women, and hospital care can be less aggressive [10–12]. This is a potential contributor to the higher female mortality following MI [13], alongside factors such as differing demographic risk characteristics and comorbidities [14, 15].
Current guidelines for assessing arrhythmic risk post-MI use primarily mechanical markers and invasive testing [16]. They fail to identify the majority of sudden cardiac death cases, prompting calls for research into alternatives [17]. Several ECG-based biomarkers have been proposed building on mechanistic knowledge of the underlying electrophysiological substrate post-MI. QRS duration (QRSd) and its dispersion have been a key component of proposed electrocardiographic risk stratification following MI. However, findings of its effectiveness are mixed, with some trials suggesting it is a predictor of arrhythmic risk following MI [18, 19], while others showing it is more likely a predictor of general mortality than arrhythmic inducibility [20, 21]. T wave amplitude (TWA) and ST segment changes are also important, reflecting repolarisation heterogeneity [22]. Both of these biomarkers are included in current criteria for diagnosis and patient risk stratification in acute MI, with ST-elevation MI (STEMI) mandating immediate reperfusion therapy [23]. More recently, markers of repolarisation heterogeneity have also shown promise in risk stratification following MI [24, 25].
Women’s ECGs typically exhibit shorter QRSd and lower ST junction (STj) and TWA, but longer QT intervals, than male [26]. Both electrophysiological and structural factors contribute to these differences. Testosterone increases repolarising potassium currents and decreases L-type calcium currents, both acting to speed up repolarisation [5]. Additionally, left ventricular (LV) mass is smaller in women than men [27], explaining in part the shorter QRSd and lower STj and TWA [28, 29]. Smaller torso volume can also increase amplitudes of the QRS and T waves in women [1, 2]. However, the impact on STj amplitude and whether anatomy is the only factor explaining these differences is unknown. In women, electrophysiological remodelling post-infarction may be less substantial than in men, partially from the protective effects of estrogen [30]. However, sex differences are often overlooked in the interpretation of ECG biomarkers, and thus investigations are urgently needed to fill these gaps for improvements in patient diagnosis, risk stratification, and treatment selection.
This study aims to quantify sex-differences in heart-torso anatomy and ECG biomarkers, as well as their relative associations, in healthy and post-MI subjects. To enable a population-wide study of heart-torso anatomy, we first develop and validate an automated image processing pipeline to reconstruct three-dimensional torso anatomical models using clinically standard cardiac magnetic resonance (CMR) images. We then apply the methodology to a cohort of 1476 UK Biobank (UKB) participants to statistically relate extracted anatomical parameters to relevant ECG biomarkers, including the effects of sex and MI status differences. We hypothesise that sex-differences in ECG biomarkers are only partially explained by smaller female heart and torso anatomies, and that sex-differences in electrophysiology and torso-heart position and orientation are particularly important, especially post-MI. These insights will lay the groundwork for a process to correct for the impact of torso-ventricular anatomy on the ECG, enabling personalised, automated ECG interpretation.
Methods
Overview
A novel pipeline was first developed and validated to reconstruct torso anatomy from CMR imaging, which enabled the extraction of anatomical biomarkers describing the geometric relationship between the heart and torso. These anatomical biomarkers were then statistically related to relevant clinical ECG biomarkers in both healthy and post-MI populations in order to assess the effect of anatomical sex differences on the ECG.
Computational pipeline
Figure 1A illustrates the fully automated pipeline used to generate personalised torso anatomical reconstructions from clinically standard CMR imaging. This integrates and reformulates state-of-the-art image processing techniques in order to give the first fully automated, and extensively validated, torso-ventricular reconstruction pipeline of its kind.

Structure and validation of novel, automated torso reconstruction pipeline.
A: proposed end-to-end automated 3D torso reconstruction pipeline from 2D standard clinical cardiac magnetic resonance scans. The torso contours are first extracted from the images. A statistical shape model (SSM) is fitted to the contours, which is then optimally deformed. a: spin of the cardiac short axis plane around the torso vertical axis, 0: verticality of the cardiac long axis, γ: tilt of the cardiac short axis plane. B: (i) comparison of Dice coefficient between single stage contouring (blue) and 3 stage segmentation, postprocessing and refinement (red). (ii) surface-to-contour distance for an example case between the automatically reconstructed surface and the automatically generated torso contours. (iii) surface-to-surface distance between the torso mesh created using the automated pipeline and the manually annotated contours for the subjects with the smallest (left) and largest (right) electrode error respectively.
The pipeline combines machine learning-based segmentation and contour extraction, statistical shape modelling and automated mesh deformation in the following steps:
Three-stage torso contour extraction from CMR imaging using machine learning to form sparse torso representation: Approximately 60 localiser and scout images per subject were first segmented using a convolutional neural network, then their outline was extracted with automated post-processing, and finally refined using a second network. U-net [31] was used for both network architectures; detailed description of the architecture of these network, and the validation of the torso extraction (but not reconstruction) have been described in Smith et al. 2022 [32].
Reconstruction: To generate the initial 3D torso mesh, a statistical shape model (SSM) was applied over the automatically extracted sparse torso contours in 3D space, which was then optimally deformed by minimising the distance to the extracted contours to produce the final 3D torso mesh.
Fitting the SSM: In order to generate the torso meshes from sparse torso contours, a highresolution SSM of human body shapes was employed for the initial 3D torso reconstruction. The SSM was generated from 3D optical body surface scanning of 4308 subjects in the CAESAR study, the largest commercially available scan database to date [33]. Detailed information on the SSM generation is provided in Pishchulin et al. 2017 [34]. As the initial condition, the mean SSM was translated into the subject’s coordinate system by positioning the centre of heart from the mean SSM onto the centre of the subject’s heart. The latter centre was approximated by the closest point to the intersection lines between the cine short axis (SAX) and long axis (LAX) slices. Over the automatically extracted sparse torso contours in 3D space, the SSM was fitted by the optimal estimation of principal components, followed by rigid transformation, such that:

where Ci is the ith point on sparse torso representation, 
Deforming for patient-specific torso reconstruction: The initial generated torso mesh is inherently limited by the variability in the SSM. Hence, in order to accurately capture subject-specific variations, a final deformation step was performed via approximate thin plate splines (TPS) [35] to produce the final 3D torso mesh, minimising the distance to the extracted contours. In case the automated torso contour extraction generated sparse outlier points, any torso points over the 95th percentile were removed.
The initial deformation field was computed by considering the closest point on the SSM-generated mesh from the points on the sparse representation. A series of small, smooth deformations using approximate TPS was then applied to push the 3D mesh closer to the torso points, while preserving the smoothness and local topological properties [36]. Let F be the deformation field such that:

where {Pi} is the set of closest points on the surface Mt to the torso points {Qi} on the sparse model, and 
Integration with a sparse cardiac mesh and subsequent extraction of torso-ventricular anatomical parameters: Anatomical data for the size, position, and orientation of the heart were obtained in order to describe the geometrical relationship between the heart and torso. Cardiac surfaces were segmented using the method in Banerjee et al. 2021 [38] to give sparse cardiac anatomies, and thus calculate the cardiac size. Torso-ventricular anatomical parameters were extracted - full details for the calculation of each parameter are given in Supplementary Appendix 1.2. The torso volume and two metrics of cardiac size were estimated. The locations of the ECG electrodes were identified on the mean SSM torso, and their positions were transformed with the mesh such that the resulting torso had electrodes located in equivalent locations. As illustrated in Supplementary Figure 2, the position of the heart centre relative to the electrodes was estimated in the x (lateral), y (posterior) and z (superior) directions. Relative (dimensionless) parameters describing the percentage of the cardiac centre position between the most lateral and the most medial electrode were used in order to avoid the problem of collinearity with using multiple absolute distance measures, and similarly for the posterior and superior position. The orientation of the heart was quantified by the Euler angles of the cardiac axes with respect to the torso axes, shown in Supplementary Figure 3. This includes the spin of the cardiac short axis plane around the torso vertical axis, the verticality of the cardiac long axis, and the tilt of the cardiac short axis plane.
Validation of the torso reconstruction pipeline
The CMR images of 30 subjects, chosen to be representative of the underlying dataset (as detailed in Supplementary Appendix 1.1), were manually annotated to form an independent test set for validation. Final results of the three-stage torso contour extraction process were compared with simply using a single u-net architecture to process raw images directly to refined contours in order to assess the accuracy of the torso-air boundary placement. Separate reconstructions of the 30 test subjects were made using the fully automated pipeline and using manually annotated contours. For each subject, the surface-to-surface distance between the two reconstructions was calculated to evaluate error propagation from contouring to reconstruction, as detailed in Supplementary Appendix 1.3. The mean surface-to-contour distance was calculated for each test subject to evaluate the quality of the reconstruction.
Dataset
The UKB dataset [39] was chosen for its high quality CMR imaging and 12-lead ECGs in a large population. 1646 control subjects were randomly selected from the UKB cohort alongside the 479 subjects with a history of MI, as defined in Supplementary Appendix 1.1. The healthy cohort was made by excluding control subjects with disease diagnoses, and subjects in either population were excluded if their ECG or imaging data was not complete, as described in Supplementary Appendix 1.1. The final population for reconstruction and statistical analysis comprised 1051 healthy and 425 post-MI subjects (total 1476), as shown in Table 1 and Supplementary Table 1. 92.7% of subjects identified as White British. The post-MI population was 6.1±0.4 years older and had 2.4±0.2 kg/m2 higher BMI, with no statistically significant differences in ethnicity. This data was obtained through UK Biobank Resource under Application Number ‘40161’ and the data was processed according to their guidelines. All participants gave written informed consent before enrolment in the UKB cohort.

Demographic characteristics of the 1476 subjects from the UK Biobank cohort.
Statistical analysis
ECG parameters were obtained from the UKB database, which were automatically extracted with the proprietary software Cardiosoft [40]. QT and QTc interval were only available for lead I. The distribution of each anatomical and ECG parameter was compared between populations as in Supplementary Appendix 1.4. STj amplitude refers to the amplitude of the ST segment measured at the junction point (the end of the QRS complex). Each ECG parameter was separately linearly regressed against the set of anatomical parameters (chosen to minimise collinearity) for each subpopulation. This includes the cardiac and torso size, the relative position of the cardiac centre with respect to the electrodes in the lateral, posterior and superior directions and the three cardiac orientation parameters (spin, verticality, and tilt), all as previously defined. Additional linear models that also included the categorical sex parameter were obtained for mixed sex populations, and multiplied by the difference in the parameter between men and women to estimate their contribution to the ECG biomarker sex difference. The effect of electrophysiology was estimated as the coefficient of the sex variable after all anatomical parameters had been controlled for. The contributors to the difference between healthy and post-MI populations were similarly calculated, separately for men and women. A linear model was trained to estimate, and therefore correct, the total anatomical contribution to ECG parameters using only demographic features (sex, height, BMI, and age), as described in Supplementary Appendix 1.4.
Results
Reconstructed torso surfaces matched input contours to within 2.19mm:
Figure 1B illustrates the validation of the torso reconstruction pipeline, showcasing its capability to extract torso contours and reconstruct them into 3D meshes. The three-stage segmentation, automated post-processing, and refinement procedure improved the Dice coefficient of torso contour extraction, compared to a single-stage contouring network, across all image views (Figure 1B(i)). The median surface-to-contour distance, showing the quality of the reconstructed torso surface (Figure 1B(ii)), for the test subjects was 2.19mm (inter-quartile range - IQR: 1.982.37mm). The median surface-to-surface distance between torso meshes reconstructed using the manually annotated contours and the machine learning pipeline for the 30 test subjects was 0.82mm (IQR: 0.69-1.10mm). Figure 1B(iii) shows the reconstructed surfaces for the test subjects with the smallest and largest median reconstruction errors. Both reconstructed surfaces were smooth and anatomically realistic, and, across most of the torsos, errors were within the millimetre range.
Torso volume was larger in post-MI than in healthy subjects in women and men, by 3.7±0.9 dm3 (10.2±3.3%) and 3.5±0.5 dm3 (8.2±1.9%) respectively (Supplementary Figure 4). Additionally, for women, in post-MI the heart was positioned more posteriorly by 3.1±0.9mm, than in healthy subjects. The heart was also oriented with its long axis more horizontally by 6.0±1.2° and 4.3±0.5° in post-MI versus healthy women and men, respectively. These changes were related to the increased BMI of post-MI subjects (Supplementary Figure 4K). Age was also considered (Supplementary Figure 4J), but its effects were considerably less substantial.
QRS duration was shorter in women than in men, particularly post-MI, due to smaller hearts and reduced impact of electrophysiological abnormalities:
For both healthy and post-MI subjects, QRSd was shorter in women versus men in all leads (Figures 2A and 2B), with contributions from each anatomical factor displaying sex differences (Figures 2C and 2D). Sex differences in cavity volume explained approximately half of the sex difference in QRSd in both healthy and post-MI subjects (a mean value across all leads of 3.4±1.3ms out of the 6.0±1.5ms mean total in healthy, and 4.5±1.4ms of a total sex difference of 8.3±2.5ms in post-MI). In healthy subjects, the electrophysiological contribution to QRSd sex differences was similar in all precordial leads (1.0±1.0ms to 2.3±1.2ms). In post-MI subjects, it was considerably more variable (0.2±2.8ms in V1 to 6.3±3.0ms in V6). The total estimated impact of anatomy on the QRSd was over 5ms in lead V6 for 12.4% of healthy subjects. After correction by a linear model that was trained only on demographic features (sex, height, BMI, and age), this proportion reduced to 2.9%.

Sex differences in QRS duration in healthy and post-MI subjects.
A, B: mean QRS duration (QRSd) for each ECG lead in healthy and post-MI subjects respectively with women (red circles) and men (cyan triangles). C,D: contribution of anatomical parameters and electrophysiology to sex differences in QRSd for healthy and post-MI subjects (calculated by multiplying the regression coefficient for each factor by its mean difference between male and female populations). E, F: mean QRSd for each ECG lead in men and women respectively for healthy (black squares) and post-MI (red diamonds) subjects. G, H: contribution of anatomical parameters and electrophysiology to differences in QRSd between healthy and post-MI subjects for male and female subjects (calculated by multiplying the regression coefficient for each factor by its mean difference between healthy and post-MI populations).
Post-MI women exhibited less QRS prolongation than men (Figures 2E and 2F), with mean percentage increase in QRSd from healthy to post-MI, across all leads, of 3.4±2.3% and 5.8±1.5% respectively. This is explained by a reduced contribution of electrophysiological abnormalities post-MI in women, as shown in Figures 2G and 2H (smaller grey bars).
The QT interval was 6.3±2.0ms and 1.1±3.9ms longer in healthy and post-MI women than men respectively in lead I (the only lead with available QT interval data). Figure 3A shows the electrophysiological and anatomical contributions to these differences. While electrophysiological differences prolongated the female QT interval in comparison with male (shown as negative gray contributions), this was partially compensated by the smaller female ventricles (resulting in shorter female QT interval). Figure 3B shows the contributions to the 15.2±1.6ms and 11.0±3.3ms longer QTc interval in healthy and post-MI women respectively than in male. Importantly this shows that the anatomical contribution was substantially reduced – for example from 18.9±5.9ms to 2.5±2.1ms in the healthy population, primarily by near elimination of the contribution from the cardiac size. Additionally including heart rate in the QRSd correction model reduced the proportion of cases where corrected anatomical contribution exceeded 5ms from 2.9% to 2.3%.

Sex differences in raw versus corrected QT interval.
Contribution of anatomical parameters and electrophysiology to sex differences in raw QT (A) and corrected QT (B, QTc) intervals for healthy and post-MI subjects in lead I (calculated by multiplying the regression coefficient for each factor by its mean difference between male and female populations).
ST junction amplitude was lower in women than men in both healthy and post-MI subjects, explained by smaller hearts in more superior and posterior position:
STj amplitude was lower in women versus men, particularly in the septal and anterior leads, in healthy and post-MI subjects (Figures 4A and 4B). As for QRSd, this was partly explained by women’s smaller LV mass (by 29.3±5.4% and 27.1±5.7% in healthy and post-MI subjects respectively), but also by a more superior position in women than men for healthy subjects (by 9.6±0.9mm) and more posterior position for post-MI subjects (by 4.3±1.0mm) (Figures 4C and 4D). Both smaller LV mass and electrophysiology contributed to lower female STj amplitude, whereas a smaller female torso volume was generally associated with a higher STj amplitude (yellow and grey versus orange bars in Figures 4C and 4D). This pattern was consistent for differing measurement times of the ST level (Supplementary Figure 8). Baseline STj amplitude in lead V4 was 0.028±0.003mV lower in healthy women than healthy men. Healthy women with BMI>25kgm-2 had a STj amplitude 0.047±0.004mV lower than healthy men with BMI<25kgm-2, associated with their smaller ventricles, but larger torsos.

Sex differences in ECG amplitudes in healthy and post-MI subjects.
A, B: mean STj amplitude (measured at QRS offset) for each ECG lead in healthy and post-MI subjects respectively for women (red circles) and men (cyan triangles). C, D: contribution of anatomical parameters and electrophysiology to sex differences in STj amplitude for healthy and post-MI subjects (calculated by multiplying the regression coefficient for each factor by its mean difference between male and female populations). E, F: mean T wave amplitude (TWA) for each ECG lead in men and women respectively for healthy (black squares) and post-MI (red diamonds) subjects. G, H: contribution of anatomical parameters and electrophysiology to differences in TWA between healthy and post-MI subjects for male and female subjects (calculated by multiplying the regression coefficient for each factor by its mean difference between healthy and post-MI populations).
Lower T wave amplitude following MI was more strongly associated with a more posterior cardiac position and more horizontal orientation in women than men:
Precordial TWA was lower in women than men, by 41.7±20.3% and 31.2±20.0% in healthy and post-MI populations respectively (Supplementary Figure 9). MI resulted in reduced TWA, in all leads in men, whereas only in V4-6 and limb leads in women (Figures 4E and 4F). For men, this was largely associated with electrophysiological factors substantially reducing TWA across leads (Figure 4G). However, for women, the reduced precordial TWA was largely associated with more posterior and horizontal ventricles from their larger BMI (Figure 4H), and electrophysiological factors actually counteracted the TWA post-MI reduction for septal leads (shown as positive contributions).
R axis deviations following MI were associated with more horizontal cardiac orientation in women, but MI-related electrophysiological abnormalities in men:
Figures 5A and 5B break down the anatomical contributions to R and T axis shifts in post-MI compared with healthy subjects. For men, the electrophysiological contribution dominated their 12.0±2.8° left deviated R axis following MI (Figure 5A). However, for women their 5.3±4.0° left deviation in the R axis was mainly associated with a more horizontal cardiac long axis, with electrophysiological factors playing very little role (Figure 5B). This was partly explained by female R axes being more sensitive to changes in verticality - the regression coefficient between R axis and verticality was higher for women than men (Figure 5C). The female T axis was more right deviated following MI than male, largely associated with electrophysiology (Figures 5A and 5B), with less contribution from orientation (Figure 5D).

Sex differences in ECG axis angles in healthy and post-MI subjects
A, B: contribution of anatomical parameters and electrophysiology to differences in R and T axis angles between healthy and post-MI subjects for male and female subjects (calculated by multiplying the regression coefficient for each factor by its mean difference between healthy and post-MI populations). C, D: normalised regression coefficients showing the association between the verticality of the cardiac long axis and the R and T axis angles respectively for the healthy and post-MI populations. Bars shown in red represent regression coefficients significantly different from 0, at a significance level of 0.05. E, F: normalised regression coefficients showing the association between torso volume and the R and T axis angles respectively for the healthy and post-MI populations.
Torso volume significantly affected R axis for both sexes in healthy, but not post-MI subjects (Figure 5E, regression coefficient of R axis against torso volume). For example, in healthy women, every 10dm3 increase in torso volume was associated with a decrease in R axis of 7.2±3.0°. This was related to an increased distance to the left leg electrode (inversely related to the R axis) without as substantial an increase in distance to the left arm electrode (positively related to the R axis). For healthy women, every 10dm3 increase in torso volume was associated with an increased distance to the heart centre of 19.4±0.7mm and 5.9±0.6mm for the left leg and arm electrodes, respectively. However, in post-MI women, the gap between these differences was smaller, with corresponding increased distances of 16.6±1.8mm and 8.3±1.7mm. This association was less strong for the T wave (Figure 5F).
Discussion
This study provides quantification of sex differences in image-based anatomical factors and their implications for ECG biomarkers in healthy and post-MI subjects, enabled by a novel computational clinical image processing pipeline. With this work, we aim to contribute to addressing the higher incidence of missed diagnosis and increased female MI mortality following infarction [12, 13, 41]. Our analysis of a large cohort of healthy and post-MI subjects’ images and ECG data provides quantitative evidence on the importance of considering demographic characteristics and their anatomical differences, particularly sex, for corrections of ECG biomarkers, key to patient risk stratification.
An important contribution is the novel computational pipeline for automated 3D torso reconstruction, which enables high-throughput investigations into the effects of anatomical variability on the study of a wide range of cardiac diseases. The adaptation of the pipeline to standard clinical cardiac imaging allows for the exploitation of large databases, such as the UKB, and sets the groundwork for clinical tools to personalise ECG interpretation considering patient anatomy.
Our analysis provides the following insights into sex-related anatomical differences of the impact of MI on key ECG biomarkers: 1) Half of the shorter QRSd in women was explained by smaller cavity volumes in both healthy and post-MI subjects. 2) Female STj amplitude was lower than male in all precordial leads for healthy and post-MI subjects, associated with a smaller LV mass and more superior and posterior position. 3) In women, anatomical factors had a stronger impact on TWA changes following MI than in men. 4) R axis was more left deviated in MI than healthy populations; for women this was associated with a more horizontal cardiac long axis, but for men with electrophysiology.
Both clinically and moderately prolonged QRSd have been associated with increased risk following MI [18, 19]. Importantly, our analysis reports that mean QRSd would have had to increase by 27% more for women than men to exceed 120ms, and by 68% more to exceed 100ms, both in lead aVL. Sex differences in QRSd are only partly explained by cardiac size, in line with Mincholé et al. 2019 [1], and with the biophysical understanding that larger distances require longer to traverse [42]. However, even after accounting for anatomical factors, there seems to be an electrophysiological component to the increased male QRSd, which supports previous works finding that men had more complex activation pathways, prolonging their QRSd [43]. Our finding showed that taking into account only simple demographic information (age, sex, BMI, and height) substantially reduced the impact of anatomy on QRSd. This suggests that correction methods without complex reconstruction may be sufficient to capture anatomy-ECG relationships in MI diagnosis and risk stratification. Nonetheless, detailed characterisation of cardiac shape utilising 3D reconstruction has been shown to provide additional prognostic value and improve risk stratification following infarction [44, 45]. QRS prolongation in post-MI subjects has been reported in previous studies, particularly cooccurring with ST changes in leads exploring the affected region [46]. It can be explained by slowed conduction velocity in the affected region, involvement of the conduction system such as the bundle branches and Purkinje, and in the chronic case, with dilation and hypertrophy of non-infarcted myocardium [20, 47, 48]. The fact that the pattern across leads of the electrophysiological prolongation of QRSd following MI differed between men and women potentially points to differences in the location or direction of those conduction disturbances. Our finding that sex differences in QTc had much less contribution from cardiac size than in QT suggests that part of the anatomical masking of the longer QT interval in women is because their smaller hearts naturally beat faster, shortening the QT interval. There is some evidence that QRS duration also shortens with faster heart rate, though to a lesser extent, and the heart rate may serve as an easily obtained proxy for cardiac size, so correction by heart rate may play a role in QRSd-based risk stratification [49].
The finding that STj amplitude was substantially lower in women than men in all septal and anterior leads (V1-V4) is also striking. Based on our findings, the dual effects of cardiac and torso volume need to be considered in the interpretation of ST-elevation through the lens of the anatomical context of the patient. As we considered healthy and post-MI subjects (rather than with acute ischemia), our data reflect the normal baseline of STj amplitude, from which any deviations in acute ischemia can be measured. The Fourth Universal Definition of Myocardial Infarction only has sex-specific thresholds in leads V2 and V3 for identifying ST-elevation, a key component in the diagnosis of STEMI [50]. For example, in lead V4, the clinical threshold for both female and male ST-elevation is 0.1mV [50]. Based on our findings, due to their lower baseline values, overweight healthy women would need a 63% larger increase in STj amplitude in this lead to be classified as ST-elevated than normal weight healthy men. Therefore, this work represents a significant step forward in the characterisation of anatomical influences of its baseline level, from which deviations can then be more accurately identified in the context of anatomical variation. It also highlights the important intersectional effects of demographic characteristics such as sex and BMI, suggesting that both of these factors should be accounted for in assessing ST-elevation to improve accuracy of MI diagnosis and classification. We found a substantial electrophysiological component to the sex difference in STj amplitude in both healthy and post-MI subjects. This potentially happens as the longer female action potential duration causes less overlap between activation and early repolarisation in different sections of tissue occurring at the same time [51]. Again, as this occurred in leads without sex specific MI diagnostic guidelines such as V1 and V4, such thresholds should be reconsidered.
Alterations to the polarity and amplitude of the T wave are used in diagnosis of acute MI [50] and TWA affects proposed risk stratification tools, particularly markers of repolarisation abnormalities [9, 52]. Our data reveal that, particularly in women, a substantial proportion of TWA reductions were associated with anatomical differences, such as the decreased verticality of the post-MI heart. This implies that without anatomical corrections, such as adjusting for BMI, the female TWA may be less representative of its underlying electrophysiology, and therefore less representative of any pathology. This increased effect of anatomical parameters in women was partly due to their larger difference in key anatomical factors such as posterior position and long axis orientation from healthy to post-MI subjects. This reflects their larger increase in BMI, associated with a more horizontal cardiac long axis, as described in previous works, suggesting this was related to an upwards shift in the diaphragm [6, 53]. Furthermore, the female TWA was more sensitive to changes in anatomical parameters. This could be explained by sex differences in the directions of the T wave vectors and nonlinearities in the structure-function relationships. Our finding that TWA was affected by cardiac position and orientation is in line with previous simulation studies [2] albeit in a small number of anatomies (N=5) and without electrophysiological variation. Electrophysiologically, TWA variations are caused by differences in the magnitude and timing of repolarisation gradients, and lower TWA in healthy women than men is in part related to their slower repolarisation [54]. TWA drops, and even inverts, in MI due to disruption of the usual direction of the transmural repolarisation gradient from adverse remodelling, alongside tissue death [55]. Our results found a different pattern of electrophysiologically-driven TWA changes following infarction between men and women. This could point to either differences in the nature of the repolarisation remodelling, or how this remodelling interacts with naturally present sex differences in cellular electrophysiology.
Our data revealed that the verticality of the cardiac long axis was particularly significant in determining R axis angle, especially for women. This represents a step forward in understanding the complex relationship between electrical and anatomical axes [6, 56, 57]. Moreover, the leftdeviation of the R axis following infarction may look similar in both sexes; in men this was representative of an electrophysiological change, presumably alterations to the direction of the QRS vector caused by both hypertrophy and areas of electrical inactivity [47]. However, for women this change was almost entirely associated with anatomical differences. This suggests that it is particularly important to correct R axis angles for anatomical factors in women to avoid misattribution of deviations to electrophysiological pathology. The significant relationship between torso volume and R axis angle for healthy subjects indicates that BMI and height may be critical considerations when using ECG based biomarkers that are sensitive to axis angles. The fact that increased torso volume moved the left leg electrode further away from the heart centre than the left arm electrode suggests that this relationship is caused by a stretching of the anatomical plane in which these angles are viewed. Therefore, this represents another area in which a clinical tool that accounts for anatomical variation in interpreting ECG biomarkers would reduce differential accuracy in risk stratification between demographic groups.
The computational pipeline presented here is available to be applied to further studies. Validation was performed by demonstrating that the extracted contours are near the ground truth torso-air boundary on the clinical imaging, as well as to the final reconstructed surfaces (i.e. high Dice coefficient for contour extraction and low surface-to-contour distances). As detailed in Smith et al. 2022 [32], the three-step segmentation, automated post-processing, and refinement process was particularly effective at removing errors inside the torso at locations of sharp gradient between dark and light, for example due to air in the lungs. Whilst reconstructed 3D torso surfaces were largely smooth and realistic, there were small irregularities, generally on the shoulder and waist regions. These were not typically associated with incomplete CMR artifact removal and may instead result from images being taken on different breath-holds or the image sparsity. The low surface-to-surface distance between reconstructions made using the automatically and manually derived contours demonstrates that the small errors in contour extraction did not lead to significant errors in electrode placement on the torso meshes. Surfaces were generally more accurate on the upper left quadrant of the torso, which is where most electrodes are placed. The validity of the torso-ventricular reconstruction pipeline is further supported as known trends in torso and cardiac size, position, and orientation were qualitatively reproduced, and furthermore were quantitively characterised. This includes the more superior female cardiac position [58, 59] and the horizontal shift in the cardiac long axis for subjects with a larger BMI [6, 53]. As this pipeline uses clinically standard CMR imaging, it can be more easily translated to a clinical tool to correct for the effect of anatomical variation on the ECG in a variety of medical contexts.
Due to the demographics of the UKB [39], this study only included subjects aged 45-80 years old; however, the incidence of MI is very low in people younger than this range [13]. The ethnic background of the dataset also had limited diversity; however, this is roughly representative of the UKB population and thus the ethnic composition of the United Kingdom at the time of recruitment [60]. As databases become more diverse, the mediating effect of ethnic background on the cardiac structure-function relationship should be investigated. Whilst the healthy subjects had a roughly equal sex balance, the post-MI subjects had a male-female ratio of approximately 4:1. Whilst this is in line with sex differences in diagnosed MI events [61], the proportion of female MI events may be underrepresented due to more missed diagnoses, particularly for more mild cases [12]. This may have skewed the diagnosed female post-MI ECG phenotype to be more severely affected, and the demographics to be, for example, older. Taking anatomical sex differences into account when diagnosing acute MI may aid in addressing this imbalance in future MI investigations.
The statistical shape model used for initial torso reconstruction did not have separate male and female models, which may have led to an underestimation of the sex differences in the torsos of male and female anatomies. However, the deformation step of the reconstruction was designed to address this issue by modelling personalised torso variations. The exact electrode positions of the obtained ECGs were not available in the UKB dataset, so these were estimated by placing the electrodes on standard positions on the personalised torso. However, this estimation process allows for use of many similar clinically standard datasets, avoiding complex acquisition protocols. Both voluntary and involuntary patient movement impedes precise determination of the cardiac positioning and the reconstruction of a static torso surface, and is one factor explaining remaining reconstruction errors. The large number of subjects in this study likely reduced the impact of this noise on the statistical results.
As the anatomical factors cannot represent a perfectly complete and independent basis set, the electrophysiological contribution can only be estimated. However, as there is more anatomical variation than can be represented using the given factors, such as the smaller scale geometry of the heart, the role of the anatomy versus electrophysiology was likely under- rather than overestimated. Computational modelling and simulation techniques [62, 63] are well suited to further investigate the impact of electrophysiological sex differences on the ECG in future works. Whilst the study benefits from the electrophysiological and anatomical variation that using clinical data facilitates, it is impossible to fully separate the effects of these factors on ECG biomarkers, as characteristics such as sex affect both categories, making them interdependent. This means that this work complements computational studies, which have less interpersonal variability, but isolate the effect of positional and rotational changes. Scar characteristics were not available in the UKB, but the effect of scar geometry variation could be considered in future studies with the development of scar delineation tools. Future work should focus on the characterisation of ECG biomarkers in MI and other disease conditions. The automated torso reconstruction pipeline this work proposes enables the expansion of the number of anatomies such future computational studies could investigate.
Conclusion
To conclude, this work presents a novel automated pipeline for personalised torso reconstruction and demonstrates its power in exploiting large clinical databases by relating torso-ventricular anatomy and ECG biomarkers for 1051 healthy and 425 post-MI subjects. Results show the considerable influence of anatomical factors in demographic differences of ECG biomarkers. Women and individuals with higher BMI may be disproportionately affected. This underlines the importance of, and lays the foundations for, personalised ECG interpretation that considers a subject’s individual torso-ventricular anatomy, facilitating improvement in diagnosis and risk stratification tools.
Data availability
The UKB data is publicly available and can be accessed by application upon approval here: https://www.ukbiobank.ac.uk/enable-your-research/register. The reconstruction pipeline code is publicly available here: https://github.com/MultiMeDIA-Oxford/TORSO-MPP, with explanatory documentation for its use.
Supplementary Appendix 1: Methods
1.1 Dataset
Myocardial infarction (MI) was defined as any history of MI including ST- and non-ST-elevation MI, as obtained from patients’ self-report in the baseline questionnaire and nurse-led interview, and linked hospital admission data [64]. The exclusion criteria for the subjects used in the larger statistical analysis are shown in Supplementary Figure 1. From the 1646 controls, 3 cases were excluded for incomplete image sets, and 592 were excluded for having at least one of 82 disease diagnoses in their UKB records, including circulatory system, renal, genitourinary, and endocrine disorders. The final set included 1051 ‘healthy’ controls (581 female and 470 male), as shown in the left panel of Supplementary Figure 1. From the 479 post-MI subjects, 6 were excluded for incomplete image sets, 13 for missing ECG data, and 35 were excluded due to their imaging occurring before the MI event, thus retaining 425 post-MI subjects (84 female and 341 male), as shown in the right panel of Supplementary Figure 1. To select the test set used to evaluate the automated pipeline, both male and female subjects in the control population were split into deciles by their BMI. Then each decile was evenly sampled to create a test set that spanned the range of BMI for both sexes. The range of ages of the test subjects was then calculated to ensure that they represented the underlying population.
Note that the UKB protocol for imaging and ECG involved both being performed in a supine position.
1.2 Definition of anatomical parameters
The torso volume was calculated using PyVista [65], as the volume enclosed by the reconstructed torso surface. The cardiac volume was estimated from the extracted cardiac contours [66]. Volume of the cavity was obtained using Simpson’s rule over the segmented endocardial surfaces - as described in Beetz et al. 2023 [67] this provides good estimates of cardiac volumes. Left ventricular (LV) mass was measured as the volume difference between LV epicardial and endocardial surfaces multiplied by 1.05 [68].
The x position (lateral) of the heart relative to the ECG electrodes was determined by setting the location of the most rightward electrode on the body in the torso frame as x = 0 and the most leftward as x = 1, and noting the position of the centre of the heart along this scale. y (posterior) and z (superior) positions were found similarly by setting the most frontward electrode as y = 0, backward as y = 1, downward as z = 0, and upward as z = 1.
For estimating the heart centre position, the intersection point of the LAX four-chamber plane, LAX two-chamber plane, and the middle slice of the SAX stack was identified. For estimating the heart orientation, the X-axis was first measured in the cardiac system as the intersecting line between the LAX four-chamber plane and the mid SAX slice, while the Z-axis was identified as the perpendicular line to the X-axis that passed through the LAX four-chamber plane. The Y-axis was estimated as normal to the XZ-plane. For calculating the Euler angles (α, β, γ), as shown in Supplementary Figure 3, the intersecting line, denoted as x’, between the XY-plane in the cardiac system and the xy-plane in the real (torso) coordinate system was first identified. α was measured as the angle between the x-axis in the real system and the intersecting line x’, essentially describing the spin of the XY-plane around the z-axis. β was measured as the angle between the Z-axis in the cardiac system and the z-axis in the real (torso) system, i.e., the verticality of the cardiac long axis. The γ angle was calculated as the angle between the X-axis in the cardiac system and the intersecting line, i.e. the tilt of the X-axis with respect to the xy-plane. The calculations of the coordinate systems and angles are presented in Supplementary Figures 2 and 3.
1.3 Reconstruction validation
In order to evaluate the performance of the contour extraction procedure, reconstructions of 30 subjects made using the fully automated pipeline were compared with those made using manually annotated contours. A ray tracing method [69] was applied to obtain the distance between 3D torso surfaces. For each point on one surface, the normal to the surface was found, and the nearest intersection between that line and the second surface (in either direction) was obtained. Since the normal is not guaranteed to intersect the surface or may intersect at a point on the opposing side of the torso, the nearest neighbouring point on the second surface was also found for each point. The minimum between these two distances was taken for each point as the surface-to-surface distance. The distance between each electrode location on the different torsos was also taken as a measure of similarity for the reconstructions. The mean surface-to-contour distance was calculated for each test subject to evaluate the quality of the reconstruction.
1.4 Statistical methods
Choice of ECG parameters
ECG parameters were chosen due to their availability in the UKB dataset and their relevance to diagnosis and risk stratification of MI. A range of durations, amplitudes and axis angles were chosen in order to investigate the differing effect of anatomical parameters on each category.
Distribution of anatomical and ECG parameters for all subpopulations
Split violin plots were created to show the distribution of each anatomical and electrophysiological parameter separately for healthy males, healthy females, post-MI males and post-MI females. Outliers were removed, as defined by values that were more than three times the inter quartile range above the third quartile or similarly below the first quartile. Mean values of all biomarkers were compared between healthy and post-MI subjects of either sex, and male and female subjects of either MI status. The Shapiro-Wilk test was used to ascertain whether both subpopulations had a normal distribution. If there was significant evidence of non-normality, the Wilcoxon test was used. The Levene test was used to determine whether the subpopulations had an equal variance. If there was sufficient evidence of nonequal variance, the Welch’s t-test was used, otherwise, the standard t-test was used. For populations with statistically significant differences between them, arrows were drawn from the lower mean population to the higher mean population with stars denoting the statistical significance of the relationship. * denotes relationships with p-values between 0.05 and 0.01, ** between 0.01 and 0.001, *** between 0.001 and 0.0001, and **** less than 0.0001. The mean and standard deviation of each anatomical and ECG biomarker was recorded, alongside the p-values for differences between subpopulations.
Age and body mass index (BMI) association
Each anatomical parameter was separately regressed against age for the healthy male, healthy female, post-MI male, and post-MI female populations. This was repeated against BMI. This was recorded in a heat map and associated table, with the confidence intervals and twosided p-values for the regression coefficient to be non-zero.
Normalised correlation coefficients
As the two measures of cardiac size (total cavity volume and LV mass) were highly colinear, one was selected for each ECG biomarker depending on the minimisation of mean Akaike information criterion (AIC) across the 12 leads. For each lead, the ECG parameter was regressed against the chosen cardiac size parameter, torso volume, the relative heart centre positions in the x, y and z directions and the three cardiac orientation parameters (spin, verticality and tilt). These anatomical parameters were chosen in order to reduce collinearity, and their variance inflation factors were all acceptably low, as shown in Supplementary Tables 2 and 3. In order to compare the regression coefficients for anatomical and ECG parameters on different scales, the regression coefficients were normalised by multiplying by the standard deviation of the anatomical parameter and then dividing by the standard deviation of the ECG biomarker, before being plotted. This was done separately for the healthy male, healthy female, post-MI male and post-MI female populations.
Sex differences
The contribution of each anatomical and electrophysiological parameter to the sex difference in an ECG parameter was estimated using linear regression as follows:
Separate the population into post-MI and healthy populations, and do the following procedure on each.
Regress the ECG parameter against the anatomical parameters (cavity volume/LV mass, torso volume, relative heart centre positions in the x, y, and z directions, and the three cardiac orientation parameters), and also the sex categorical parameter.
Calculate the difference in anatomical parameters between the male and female subpopulations.
Multiply the anatomical sex difference in the parameter by its regression coefficient to give its estimated contribution to the sex difference in the ECG parameter.
The regression coefficient for sex is the remaining sex difference when all of the chosen anatomical parameters were controlled for, so is taken as an estimate for the electrophysiological contribution to the ECG sex difference.
MI status differences
Similarly, the contribution of each anatomical and electrophysiological parameter to the difference between the post-MI and healthy populations was estimated using linear regression as follows:
Separate the population into male and female populations and do the following procedure on each.
Regress the ECG parameter against the anatomical parameters (cavity volume/LV mass, torso volume, relative heart centre positions in the x, y, and z directions, and the three cardiac orientation parameters), and also the healthy/post-MI categorical parameter.
Calculate the difference in anatomical parameters between the healthy and post-MI subpopulations.
Multiply the anatomical MI status difference in the parameter by its regression coefficient to give its estimated contribution to the MI status difference in the ECG parameter.
The regression coefficient for MI is the remaining MI status difference when all of the chosen anatomical parameters were controlled for, so is taken as an estimate for the electrophysiological contribution to the ECG MI status difference.
Correction for anatomical contributions from demographic parameters in the healthy population
For each subject, the difference between the population mean anatomical parameter and the subject parameter was multiplied by the regression coefficient between the ECG biomarker and that anatomical parameter. These contributions were summed to give the overall contribution of anatomy to the difference between the ECG parameter of the hypothetical ‘mean subject’ and that subject. Then, a linear model was made estimating this anatomical contribution from the subject’s sex, height, BMI, and age. This correction was subtracted from the anatomical contribution to give a corrected anatomical contribution for each subject.
Supplementary Appendix 2: Results
2.1 Anatomy-QRS duration relationship
Mean AIC across leads, a measure of prediction error, was lower with cavity volume than LV mass (12311 and 12316 respectively). Therefore, cavity volume was chosen as the representative of cardiac size for QRSd.
2.2 Anatomy-STj amplitude relationship
Mean AIC across leads was lower with LV mass than cavity volume (4841 and -4834 respectively). Therefore, LV mass was chosen as the representative of cardiac size for STj amplitude.
The analysis for sex differences in the ST amplitudes was repeated with differing measurement times to examine the sensitivity of the ECG-anatomy relationship to the method of calculating ST amplitude. STX amplitude was defined as the amplitude at time QRS offset (J point) + RR interval/16. STE amplitude was similarly the amplitude at time QRS offset + RR interval/8. Whilst the overall scale of the amplitude was higher for STX than STj, and higher still for STE, the obtained pattern of anatomical contributions to the sex difference in amplitude was conversed. As for STj, the smaller female ventricles decreased anteroseptal ST amplitude, and smaller female torso increased anteroseptal ST amplitude, for each ST calculation point.
The analysis for STj amplitude was included in the main manuscript, as this is the point at which ST-deviation should be measured in acute MI diagnosis, according to the Fourth Universal definition of Myocardial Infarction [50].
2.3 Anatomy-TWA amplitude relationship
Mean AIC across leads was lower with cavity volume than LV mass (-965 and -963 respectively). Therefore, cavity volume was chosen as the representative of cardiac size for TWA.
2.4 Anatomy-axis angles relationship
Mean AIC across R and T axes was lower with cavity volume than LV mass (14659 and 14660 respectively). Therefore, cavity volume was chosen as the representative of cardiac size for both axis angles.

Exclusion pipeline for reconstruction dataset.
Both healthy and post-myocardial infarction (MI) subjects were required to have sufficient images across the view subtypes to reconstruct the torso and cardiac geometries. Subjects also were excluded if the ECG was missing or invalid (all healthy subjects had completed ECG). In the healthy dataset, subjects with at least 1 of 82 disease diagnoses were omitted, including circulatory system disorders, renal disease, genitourinary disorders, and endocrine disorders. The most common reason for exclusion was primary hypertension. Post-MI subjects were excluded if the recorded date of the MI event was after that of the imaging visit where the cardiac magnetic resonance images and ECG were taken.

Depiction of the relative coordinate system in which the heart position was measured.
Left: three principle directions on an example torso-cardiac anatomy. Right: the calculation of the relative superior position of the cardiac centre on an example anatomy. Blue circles: ECG electrodes. Green circles: most superior and inferior electrodes. Green cross: heart centre position.

Depiction of the parameters used to describe the cardiac orientation with respect to the torso.
Upper left: cardiac and torso axes, upper right: cardiac spin orientation calculation, lower left: cardiac verticality orientation calculation, lower right: cardiac tilt orientation calculation.

Anatomical biomarkers and their relationship with age and BMI.
A-I Distributions of anatomical biomarkers. Horizontal lines show statistically significant differences between subpopulation means with arrows pointing to the larger mean. Heat map of correlation coefficients for each geometrical parameter with age (J) and BMI (K). Correlations with p>0.05 are shaded grey. CVol: total cavity volume, LVm: left ventricular mass, TVol: torso volume, x: lateral heart centre position, y: posterior position, z: superior position, Vert: verticality of the cardiac long axis. HM: healthy male, HF: healthy female, PM: post-MI male, and PF: post-MI female.

Distributions of ECG biomarkers.
Distributions of ECG biomarkers for healthy and post-MI populations and proportions of subjects with AV block and pathological Q waves. ST amplitude was measured at the J point (QRS offset), X point (QRS offset + RR interval/16) and E point (QRS offset + RR interval/8). Horizontal lines show statistically significant differences between subpopulation means with arrows pointing to the larger mean. Many distributions show features of non-normality, such as skew, heavy tails or bimodality. Post-MI subjects had longer PQ and QT intervals and P wave duration, and a lower T amplitude for both sexes. Post-MI than healthy males also had a slower heart rate, lower P amplitude, longer QRS duration, left-deviated R axis, and longer QTc. Post-MI subjects were substantially more likely to have AV block and pathological Q waves. The T axis showed a higher variability in post-MI individuals for both sexes. AV: atrioventricular, QTc: corrected QT interval.

QRS duration-anatomy relationship.
Normalised regression coefficients with 95% confidence intervals for QRS duration (QRSd) in all ECG leads for healthy (upper) and post-MI (lower) subjects. CVol: total cavity volume, TVol: torso volume, x, y, z: x (medial), y (posterior), z (superior) coordinate of the heart centre relative to the electrodes, Vert: verticality of the cardiac long axis. Bars shown in red represent regression coefficients that are significantly different from 0, at a significance level of 0.05. QRSd was shortened by a more vertical cardiac orientation (less negative β) for at least one sex in a majority of leads. Increasing cavity volume prolonged the QRSd. QRSd was largely unaffected by adjustments in the cardiac centre location. Unlike healthy subjects, for post-MI individuals QRSd was largely unaffected by cardiac orientation. QRSd again usually did not significantly vary with cardiac location.

Difference between healthy and post-MI STj amplitude, separated by sex.
A, B: mean STj amplitudes for each ECG lead in men and women respectively for healthy (black squares) and post-MI (red diamonds). C, D: contribution of anatomical parameters and electrophysiology to differences in STj amplitudes between healthy and post-MI subjects for male and female subjects (calculated by multiplying the regression coefficient for each factor by its mean difference between healthy and post-MI populations).

Sex differences in ST amplitudes for differing measurement points in healthy and post-MI subjects.
A, B: mean STX amplitude (measured at QRS offset + RR interval/16) for each ECG lead in healthy and post-MI subjects respectively with women (red circles) and men (cyan triangles). C, D: contribution of anatomical parameters and electrophysiology to sex differences in STX amplitude for healthy and post-MI subjects (calculated by multiplying the regression coefficient for each factor by its mean difference between male and female populations). E, F: mean STE amplitude (measured at QRS offset + RR interval/8) for each ECG lead in healthy and post-MI subjects respectively with women (red circles) and men (cyan triangles). G, H: contribution of anatomical parameters and electrophysiology to sex differences in STE amplitude for healthy and post-MI subjects (calculated by multiplying the regression coefficient for each factor by its mean difference between male and female populations).

Sex differences in T wave amplitude in healthy and post-MI subjects.
A, B: mean T wave amplitude (TWA) for each ECG lead in healthy and post-MI subjects respectively with women (red circles) and men (cyan triangles). C,D: contribution of anatomical parameters and electrophysiology to sex differences in TWA for healthy and post-MI subjects (calculated by multiplying the regression coefficient for each factor by its mean difference between male and female populations).

STj amplitude-anatomy relationship.
Normalised regression coefficients with 95% confidence intervals for STj amplitude in all ECG leads for healthy (upper) and post-MI (lower) subjects. LVm: left ventricular mass, TVol: torso volume, x, y, z: x (medial), y (posterior), z (superior) coordinate of the heart centre relative to the electrodes, Vert: verticality of the cardiac long axis. Bars shown in red represent regression coefficients that are significantly different from 0, at a significance level of 0.05. Significant positional correlations generally followed the pattern that the closer the heart centre was to the position of the exploring electrode, the higher the STj amplitude. Increases in left ventricular mass were associated with increased STj amplitude in some of the precordial leads.

T wave amplitude-anatomy relationship.
Normalised regression coefficients with 95% confidence intervals for T wave amplitude (TWA) in all ECG leads for healthy (upper) and post-MI (lower) subjects. CVol: total cavity volume, TVol: torso volume, x, y, z: x (medial), y (posterior), z (superior) coordinate of the heart centre relative to the electrodes, Vert: verticality of the cardiac long axis. Bars shown in red represent regression coefficients that are significantly different from 0, at a significance level of 0.05. TWA in many leads increases as the heart is oriented more vertically (less negative β). Significant positional correlations generally followed the pattern that the closer the heart centre was to the position of the exploring electrode, the higher the TWA.

Axis angles-anatomy relationship.
Normalised regression coefficients with 95% confidence intervals for R axis (top) and T axis (bottom), in healthy (left) and post-MI (right) subjects. For healthy but not post-MI subjects, R axis was negatively associated with torso volume. R axis was significantly affected by cardiac orientation, but not T axis. CVol: total cavity volume, TVol: torso volume, x, y, z: x (medial), y (posterior), z (superior) coordinate of the heart centre relative to the electrodes, Vert: verticality of the cardiac long axis. Bars shown in red represent regression coefficients significantly different from 0, at a significance level of 0.05.

Disease and treatment characteristics of 425 post-MI subjects from the UK Biobank cohort.

Variance inflation factors for linear regression models with total cavity volume.

Variance inflation factors for linear regression models with left ventricular mass.

Mean and standard deviation values of anatomical and ECG biomarkers in each subpopulation.

Associations between age and BMI and anatomical biomarkers.
Acknowledgements
This research has been conducted using the UK Biobank Resource under Application Number ‘40161’. The authors would like to thank Dr Ernesto Zacur for providing valuable suggestions on the 3D anatomical mesh reconstruction.
Additional information
Author contributions statement
HJS, BR, VG, and AB conceptualised the study and designed the research. BR, VG, RPC, and AB supervised the research. HJS and AB acquired and curated the dataset. AB and HJS developed the reconstruction pipeline. HJS, AB, YS, and MB pre-processed and cleaned the data. HJS and AB conducted the study and analysed the data and the results. HJS, AB, BR, and VG prepared the original draft and reviewed and edited the manuscript. All authors discussed the results, provided comments regarding the manuscript, and agreed on the final draft.
Funding
Wellcome Trust (WT)
https://doi.org/10.35802/102161
Hannah Joy Smith
Royal Society (The Royal Society) (URF\R1\221314)
Abhirup Banerjee
British Heart Foundation (BHF) (PG/20/21/35082)
Vicente Grau
Wellcome Trust (WT)
https://doi.org/10.35802/214290
Blanca Rodriguez
European Commission (EC)
https://doi.org/10.3030/823712
Blanca Rodriguez
References
- 1.MRI-based computational torso/biventricular multiscale models to investigate the impact of anatomical variability on the ECG QRS complexFrontiers in Physiology :10https://doi.org/10.3389/fphys.2019.01103PubMedGoogle Scholar
- 2.An in-silico analysis of the effect of heart position and orientation on the ECG morphology and vectorcardiogram parameters in patients with heart failure and intraventricular conduction defectsJournal of Electrocardiology 48:617–625https://doi.org/10.1016/j.jelectrocard.2015.05.004PubMedGoogle Scholar
- 3.Effects of heart position on the body-surface electrocardiogramJournal of Electrocardiology 33:229–237https://doi.org/10.1054/jelc.2000.20357PubMedGoogle Scholar
- 4.Geometrical aspects of the interindividual variability of multilead ECG recordingsIEEE Transactions on Biomedical Engineering 48:551–559https://doi.org/10.1109/10.918594PubMedGoogle Scholar
- 5.Sex differences in heart: from basics to clinicsEuropean Journal of Medical Research 27:241https://doi.org/10.1186/s40001-022-00880-zPubMedGoogle Scholar
- 6.Computed tomography-guided in vivo cardiac orientation and correlation with ECG in individuals without structural heart disease and in age-matched obese and older individualsClinical Anatomy 28:487–493https://doi.org/10.1002/ca.22532PubMedGoogle Scholar
- 7.Generation of 12-Lead Electrocardiogram with Subject Specific, Image-Derived Characteristics Using a Conditional Variational AutoencoderIn: 2022 IEEE 19th International Symposium on Biomedical Imaging (ISBI) https://doi.org/10.1109/isbi52829.2022.9761431Google Scholar
- 8.Global burden of 288 causes of death and life expectancy decomposition in 204 countries and territories and 811 subnational locations, 1990–2021: a systematic analysis for the Global Burden of Disease Study 2021The Lancet 403:2100–2132https://doi.org/10.1016/s0140-6736(24)00367-2PubMedGoogle Scholar
- 9.Risk stratification of sudden cardiac death after acute myocardial infarctionJournal of Innovation in Cardiac Rhythm Management 9:3035–3049https://doi.org/10.19102/icrm.2018.090201PubMedGoogle Scholar
- 10.Sex differences in myocardial infarction deathsThe Lancet 396:72–73https://doi.org/10.1016/s0140-6736(20)31049-7PubMedGoogle Scholar
- 11.Sex differences in symptom phenotypes among patients with acute myocardial infarctionCirculation: Cardiovascular Quality and Outcomes 13:e005948https://doi.org/10.1161/circoutcomes.119.005948PubMedGoogle Scholar
- 12.Missed diagnoses of acute cardiac ischemia in the emergency departmentNew England Journal of Medicine 342:1163–1170https://doi.org/10.1056/nejm200004203421603PubMedGoogle Scholar
- 13.Heart disease and stroke statistics—2019 update: a report from the American Heart AssociationCirculation 139:e56-e528https://doi.org/10.1161/cir.0000000000000659PubMedGoogle Scholar
- 14.Insights from the NHLBI-sponsored Women’s Ischemia Syndrome Evaluation (WISE) studyJournal of the American College of Cardiology 47:S21–S29https://doi.org/10.1016/j.jacc.2004.12.084PubMedGoogle Scholar
- 15.Sex differences in symptom presentation in acute myocardial infarction: A systematic review and meta-analysisHeart & Lung 40:477–491https://doi.org/10.1016/j.hrtlng.2011.05.001PubMedGoogle Scholar
- 16.2022 ESC Guidelines for the management of patients with ventricular arrhythmias and the prevention of sudden cardiac death: Developed by the task force for the management of patients with ventricular arrhythmias and the prevention of sudden cardiac death of the European Society of Cardiology (ESC) Endorsed by the Association for European Paediatric and Congenital Cardiology (AEPC)European Heart Journal 43:3997–4126Google Scholar
- 17.Risk stratification after myocardial infarction: is left ventricular ejection fraction enough to prevent sudden cardiac death?European Heart Journal 34:1964–1971https://doi.org/10.1093/eurheartj/eht109PubMedGoogle Scholar
- 18.Association of prolonged QRS duration with ventricular tachyarrhythmias and sudden cardiac death in the Multicenter Automatic Defibrillator Implantation Trial II (MADIT-II)Heart Rhythm 5:807–813https://doi.org/10.1016/j.hrthm.2008.02.013PubMedGoogle Scholar
- 19.Electrocardiographic Predictors of Arrhythmic Death and Total Mortality in the Multicenter Unsustained Tachycardia TrialCirculation 110:766–769https://doi.org/10.1161/01.cir.0000139311.32278.32PubMedGoogle Scholar
- 20.Association of QRS duration and outcomes after myocardial infarction: the VALIANT trialHeart Rhythm 3:313–316https://doi.org/10.1016/j.hrthm.2005.11.024PubMedGoogle Scholar
- 21.QRS duration does not predict occurrence of ventricular tachyarrhythmias in patients with implanted cardioverter-defibrillatorsJournal of the American College of Cardiology 46:310–316https://doi.org/10.1016/j.jacc.2005.03.060PubMedGoogle Scholar
- 22.Global electrical heterogeneity: A review of the spatial ventricular gradientJournal of Electrocardiology 49:824–830https://doi.org/10.1016/j.jelectrocard.2016.07.025PubMedGoogle Scholar
- 23.2020 ESC Guidelines for the management of acute coronary syndromes in patients presenting without persistent ST-segment elevation: The Task Force for the management of acute coronary syndromes in patients presenting without persistent ST-segment elevation of the European Society of Cardiology (ESC)European Heart Journal 42:1289–1367Google Scholar
- 24.Association of increased Tpeak-to-end/QT ratio with malignant ventricular arrhythmias in acute anterior ST-segment elevation myocardial infarctionBangladesh Heart Journal :10https://doi.org/10.3329/bhj.v32i1.34164Google Scholar
- 25.Tpeak-to-Tend/QT is an independent predictor of early ventricular arrhythmias and arrhythmic death in anterior ST elevation myocardial infarction patientsEuropean Heart Journal Acute Cardiovascular Care 5:473–480https://doi.org/10.1177/2048872615598616PubMedGoogle Scholar
- 26.Sex related differences in electrocardiographyPhysiological Research :72https://doi.org/10.33549/physiolres.934952PubMedGoogle Scholar
- 27.Effect of lean body mass, fat mass, blood pressure, and sexual maturation on left ventricular mass in children and adolescentsCirculation 92:3249–3254https://doi.org/10.1161/01.cir.92.11.3249PubMedGoogle Scholar
- 28.A quantitative relationship of electrocardiographic criteria of left ventricular hypertrophy with echocardiographic left ventricular mass: a multivariate approachClinical cardiology 6:456–463https://doi.org/10.1002/clc.4960060907PubMedGoogle Scholar
- 29.T wave amplitudes in normal populations: Variation with ECG lead, sex, and ageJournal of Electrocardiology 28:191–197https://doi.org/10.1016/s0022-0736(05)80257-2PubMedGoogle Scholar
- 30.Sex-related differences in myocardial remodelingJournal of the American College of Cardiology 55:1057–1065https://doi.org/10.1016/j.jacc.2009.09.065PubMedGoogle Scholar
- 31.U-Net: Convolutional networks for biomedical image segmentationIn: Medical Image Computing and Computer-Assisted Intervention - MICCAI 2015 https://doi.org/10.48550/arxiv.1505.04597Google Scholar
- 32.Automated torso contour extraction from clinical cardiac MR slices for 3D torso reconstructionIn: 2022 44th Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC) https://doi.org/10.1109/embc48229.2022.9871643PubMedGoogle Scholar
- 33.The CAESAR project: a 3-D surface anthropometry surveyIn: Second International Conference on 3-D Digital Imaging and Modeling (Cat. No.PR00062) https://doi.org/10.1109/im.1999.805368Google Scholar
- 34.Building statistical shape spaces for 3D human modelingPattern Recognition 67:276–286https://doi.org/10.1016/j.patcog.2017.02.018Google Scholar
- 35.Landmark-based elastic registration using approximating thin-plate splinesIEEE Transactions on Medical Imaging 20:526–534https://doi.org/10.1109/42.929618PubMedGoogle Scholar
- 36.Surface mesh reconstruction from cardiac MRI contoursJournal of Imaging :4https://doi.org/10.3390/jimaging4010016Google Scholar
- 37.Generalised primal-dual grids for unstructured co-volume schemesJournal of Computational Physics 375:155–176https://doi.org/10.1016/j.jcp.2018.07.025Google Scholar
- 38.A completely automated pipeline for 3D reconstruction of human heart from 2D cine magnetic resonance slicesPhilosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences 379:20200257https://doi.org/10.1098/rsta.2020.0257PubMedGoogle Scholar
- 39.Imaging in population science: cardiovascular magnetic resonance in 100,000 participants of UK Biobank - rationale, challenges and approachesJournal of Cardiovascular Magnetic Resonance 15:46https://doi.org/10.1186/1532-429x-15-46PubMedGoogle Scholar
- 40.Real-time, high frequency QRS electrocardiographGoogle Patents Google Scholar
- 41.Acute Myocardial Infarction Hospitalization in the United States, 1979 to 2005The American Journal of Medicine 123:259–266https://doi.org/10.1016/j.amjmed.2009.08.018PubMedGoogle Scholar
- 42.Geometrical factors affecting the interindividual variability of the ECG and the VCGJournal of Electrocardiology 33:219–227https://doi.org/10.1054/jelc.2000.20356PubMedGoogle Scholar
- 43.Spatial distribution of physiologic 12-lead QRS complexScientific Reports 11:4289https://doi.org/10.1038/s41598-021-83378-8PubMedGoogle Scholar
- 44.Understanding and improving risk assessment after myocardial infarction using automated left ventricular shape analysisJACC: Cardiovascular Imaging :1563–1574https://doi.org/10.1016/j.jcmg.2021.11.027PubMedGoogle Scholar
- 45.Comprehensive characterization of cardiac contraction for improved post-infarction risk assessmentScientific Reports 14:8951https://doi.org/10.1038/s41598-024-59114-3PubMedGoogle Scholar
- 46.QRS duration and dispersion for predicting ventricular arrhythmias in early stage of acute myocardial infractionMedicina Intensiva (English Edition) 41:347–355https://doi.org/10.1016/j.medin.2016.09.008PubMedGoogle Scholar
- 47.Imaging QRS complex and ST segment in myocardial infarctionJournal of Electrocardiology 47:438–447https://doi.org/10.1016/j.jelectrocard.2014.02.004PubMedGoogle Scholar
- 48.Electrophysiological disturbances associated with acute myocardial infarctionEuropean Heart Journal 7:11–18https://doi.org/10.1093/eurheartj/7.suppl_b.11PubMedGoogle Scholar
- 49.A fundamental relationship between intraventricular conduction and heart rateJournal of Electrocardiology 49:362–370https://doi.org/10.1016/j.jelectrocard.2016.03.008PubMedGoogle Scholar
- 50.Fourth universal definition of myocardial infarction (2018)European Heart Journal 40:237–269https://doi.org/10.1093/eurheartj/ehy462PubMedGoogle Scholar
- 51.Sex differences on the electrocardiographic pattern of cardiac repolarization: Possible role of testosteroneAmerican Heart Journal 140:678–683https://doi.org/10.1067/mhj.2000.109918PubMedGoogle Scholar
- 52.ECG marker of adverse electrical remodeling post-myocardial infarction predicts outcomes in MADIT II studyPLOS One 7:e51812https://doi.org/10.1371/journal.pone.0051812PubMedGoogle Scholar
- 53.Determination of the left ventricular long-axis orientation from a single short-axis MR image: relation to BMI and ageClinical Physiology and Functional Imaging 24:310–315https://doi.org/10.1111/j.1475-097x.2004.00569.xPubMedGoogle Scholar
- 54.Differences between ventricular repolarization in men and women: description, mechanism and implicationsAnnals of Noninvasive Electrocardiology 8:333–340https://doi.org/10.1046/j.1542-474x.2003.08411.xPubMedGoogle Scholar
- 55.Persistent T-wave inversion predicts myocardial damage after ST-elevation myocardial infarctionInternational Journal of Cardiology 241:76–82https://doi.org/10.1016/j.ijcard.2017.03.164PubMedGoogle Scholar
- 56.The relationship between electrical axis by 12-lead electrocardiogram and anatomical axis of the heart by cardiac magnetic resonance in healthy subjectsAmerican Heart Journal 150:507–512https://doi.org/10.1016/j.ahj.2004.10.041PubMedGoogle Scholar
- 57.Cardiac orientation: is there a correlation between the anatomical and the electrical axis of the heart?The British Journal of Cardiology 22Google Scholar
- 58.Examination of the levels of structures in the thorax in multidetector computerized tomography imagesJournal of Surgery and Medicine 4:784–789https://doi.org/10.28982/josam.730332Google Scholar
- 59.A reappraisal of adult thoracic surface anatomyClinical Anatomy 25:827–834https://doi.org/10.1002/ca.22091PubMedGoogle Scholar
- 60.Comparison of sociodemographic and health-related characteristics of UK biobank participants with those of the general populationAmerican Journal of Epidemiology 186:1026–1034https://doi.org/10.1093/aje/kwx246PubMedGoogle Scholar
- 61.The epidemiology of cardiovascular disease in the UK 2014Heart 101:1182https://doi.org/10.1136/heartjnl-2015-307516PubMedGoogle Scholar
- 62.In silico evaluation of cell therapy in acute versus chronic infarction: role of automaticity, heterogeneity and Purkinje in humanScientific Reports 14:21584https://doi.org/10.1038/s41598-024-67951-5PubMedGoogle Scholar
- 63.Human biventricular electromechanical simulations on the progression of electrocardiographic and mechanical abnormalities in post-myocardial infarctionEP Europace 23:i143–i152https://doi.org/10.1093/europace/euaa405PubMedGoogle Scholar
- 64.UK Biobank: opportunities for cardiovascular researchEuropean Heart Journal 40:1158–1166https://doi.org/10.1093/eurheartj/ehx254PubMedGoogle Scholar
- 65.PyVista: 3D plotting and mesh analysis through a streamlined interface for the Visualization Toolkit (VTK)Journal of Open Source Software 4:1450https://doi.org/10.21105/joss.01450Google Scholar
- 66.Automated cardiovascular magnetic resonance image analysis with fully convolutional networksJournal of Cardiovascular Magnetic Resonance 20:65https://doi.org/10.1186/s12968-018-0471-xPubMedGoogle Scholar
- 67.Multi-class point cloud completion networks for 3D cardiac anatomy reconstruction from cine magnetic resonance imagesMedical Image Analysis 90:102975https://doi.org/10.1016/j.media.2023.102975PubMedGoogle Scholar
- 68.Determination of left ventricular mass by magnetic resonance imaging in hearts deformed by acute infarctionCirculation 79:706–11https://doi.org/10.1161/01.cir.79.3.706PubMedGoogle Scholar
- 69.Distance Between Two Surfaceshttps://docs.pyvista.Org/examples/01-filter/distance-between-surfaces.html#distance-between-two-surfaces
Article and author information
Author information
Version history
- Preprint posted:
- Sent for peer review:
- Reviewed Preprint version 1:
- Reviewed Preprint version 2:
Cite all versions
You can cite all versions using the DOI https://doi.org/10.7554/eLife.108119. This DOI represents all versions, and will always resolve to the latest one.
Copyright
© 2025, Smith et al.
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics
- views
- 485
- downloads
- 38
- citation
- 1
Views, downloads and citations are aggregated across all versions of this paper published by eLife.