Electrocardiographic screening for left atrial enlargement in dogs: Derivation and validation of an algorithm combining lead II P-wave duration and the Morris index
Data files
Sep 25, 2026 version files 173.18 KB
-
CJPP_Dryad_revised.zip
165.10 KB
-
README.md
8.08 KB
Abstract
Combining electrocardiographic measurements may improve identification of dogs requiring echocardiographic assessment. This retrospective diagnostic accuracy study derived a three-category algorithm in 150 dogs and evaluated it in 50 separate validation dogs. Three observers independently measured lead II P-wave duration and the V1 Morris index, with observer A providing the primary analysis. Left atrium-to-aorta ratio (LA/Ao) ≥1.6 was the primary outcome; normalized left ventricular internal diameter in diastole (LVIDDN) ≥1.7 was evaluated independently as a secondary outcome. Thresholds from 114 reference dogs were 48 and 52 ms for P duration and 3.04 mV·ms for Morris. Positive triage comprised intermediate and high categories. Primary-outcome sensitivity and specificity were 90.6% and 50.0% in derivation and 100% and 85.7% in validation. Validation sensitivity had a 95% confidence interval of 88.1%–100%. The ordinal algorithm area under the curve was 0.961 in validation, compared with 0.868 for P and 0.844 for Morris; paired differences were not significant after Holm adjustment. Secondary-outcome validation sensitivity and specificity were 88.0% and 60.0%. The algorithm provided complementary detection of left atrial enlargement and reproducible measurements across observers, supporting further evaluation as an adjunct to echocardiographic triage.
ECG triage for left atrial enlargement in dogs
This dataset and code archive accompanies the manuscript Electrocardiographic screening for left atrial enlargement in dogs: derivation and validation of an algorithm combining lead II P-wave duration and the Morris index, by José Luís de Sousa Santana and colleagues. It supports the complete primary and independent secondary analyses in 150 derivation and 50 validation dogs, each with three ECG observers. The unit of analysis is the dog.
Contact: Flávio Ribeiro Alves, Federal University of Piauí, flavioribeiro@ufpi.edu.br.
Ethics: CEUA/UFPI 824/2024; written owner consent. Source files contain animal identifiers and no owner fields. The source archive described these identifiers as anonymized. Study records are linked using D001–D150 and V001–V050 codes; id_crosswalk.csv provides the original animal-code mapping.
Endpoints and algorithm
Primary: LA/Ao ≥1.6. Secondary: LVIDDN ≥1.7, independently of the primary outcome. The secondary endpoint is not the conjunction of these criteria. LVIDDN is LVIDd (cm) / weight (kg)^0.294. Outcomes are evaluated for every dog; no main-analysis record is excluded.
Observer A defines the reference thresholds using 114 derivation dogs recorded as ACVIM A/B1 with LA/Ao <1.6 (65 A, 49 B1). Empirical type 7 quantiles yield P70 =48 ms, P90 =52 ms and Morris P70 =3.04 mV·ms.
- Score 2: P ≥52 OR (P ≥48 AND Morris ≥3.04).
- Score 0: P <48 AND Morris <3.04.
- Score 1: all remaining patterns.
- Positive triage: score ≥1, equivalent to P ≥48 OR Morris ≥3.04.
Thresholds are fixed for all observers, validation and both endpoints. Clinical referral decisions and outcomes were not measured; scores are not calibrated probabilities or scheduling instructions.
Files and variables
file_inventory.csv identifies and describes every included data CSV, including the six source worksheets converted to CSV (Observer A, Observer B and Observer C for each cohort). data_dictionary.csv defines every column in every included CSV, its measurement unit or allowed category, its row count, and number of blank cells. A blank cell means the value is absent, not zero; the PR segment, PR interval, and Macruz ratio were not collected for the validation cohort. CSV files are UTF-8, comma-delimited, with header rows and decimal points.
The six original source CSVs preserve the source workbook values and original source column names, including Ae/ao and DIVED. Their original Excel sheets were named Planilha A, Planilha B, Planilha C; these correspond respectively to Observer A, Observer B, Observer C. The spreadsheets were removed because the same tabular records are present in accessible unformatted CSV files. No cell colours, formatting, or annotations encode data needed for analysis. The source workbooks contained formatted empty rows beyond the 150 or 50 data records; these are omitted in CSV. The source CSVs are byte-identical to those included in the previous package. The translated sheet mapping is recorded in file_inventory.csv.
data/dogs.csv has one row per dog (200); data/ecg_observers.csv has one row per observer per dog (600). data/id_crosswalk.csv maps study codes to original animal IDs. results/ includes analysis-ready dog-level scores and computational results. code/ includes scripts reproducing the analysis, source checks, and manuscript tables. results/analysis.json contains full-precision numerical results and results/manuscript_tables.json contains generated table values; these JSON outputs are derived, not original observations. source_manifest.json holds checksums for the six original CSVs. LICENSE.txt and CITATION.cff document the CC0 dedication and citation metadata. Publication figures and original ECG tracing images have been removed because these are manuscript figure materials.
Reproduction
Use Python 3.12.14 with the pinned dependencies in requirements.txt. In this directory run:
python -m pip install -r requirements.txt
python code/verify_sources.py
python code/analyze.py
python code/tables.py
The fixed random seed is 20260910. The source verification checks six original CSV hashes and 8,550 analysis-linked source values. Scripts generate result files but do not require the removed formatted Excel files or image files.
Statistical specifications
Proportion intervals are exact Clopper–Pearson 95% intervals. Log likelihood-ratio intervals are supplied when their cell-based standard errors are estimable; a missing interval at a zero cell is not replaced by a spurious zero interval. AUCs use continuous P/Morris and the ordinal score. DeLong placements provide individual CIs and paired tests. Source measurements are preserved without modification. For threshold comparisons and rank-based analyses of Morris (ROC/AUC, DeLong comparisons, Friedman and Spearman), analytical values are rounded to 12 decimal places to treat mathematically equal values as ties. Paired Morris differences are rounded to 12 decimal places before Wilcoxon ranking. Descriptive summaries, ICC, and Bland–Altman retain the stored source measurements. This numerical normalization removes binary floating-point artifacts and does not add measurement precision.
Holm families: three marker pairs for each cohort/observer/endpoint/AUC or operating-point metric; three observer pairs for each cohort/endpoint/marker or metric; three category pairs within cohort/observer/endpoint; overall category association across the three observers within cohort/endpoint. Friedman adjustment covers four cohort-by-marker tests; Wilcoxon adjustment covers three observer pairs within cohort/marker. CIs are individual, not simultaneously adjusted. Secondary and ancillary analyses are exploratory.
Agreement uses ICC(A,1) for one stored observer mean, with 3,000 dog-level bootstrap resamples. Individual triplicates were not retained, so within-observer repeatability cannot be recovered. Five-fold internal checking re-estimates thresholds within each training reference subgroup; validation always uses the full-derivation fixed thresholds. Net benefit evaluates fixed binary referral strategies with assumed utility weights, not fitted individual risks or measured clinical benefits.
Access and citation
The data and author-generated code in this package are dedicated under CC0 1.0; publication figures are not included. The associated journal article has its own publication license. Cite the public Dryad DOI once assigned. The associated manuscript reports the Dryad DOI https://doi.org/10.5061/dryad.x0k6djj23; verify that it resolves to this revised dataset after curation before treating it as a public citation.
Alignment with the manuscript
The revised manuscript supplied for this review defines the secondary endpoint as LVIDDN ≥1.7 independently of LA/Ao. The 150/50 cohort sizes, 32/29 primary cases, 38/25 secondary cases, observer A category counts, primary and secondary operating points, and AUCs in manuscript Tables 1–6 are supported by the included data and results. No scientific measurement or computed result was changed during the Dryad formatting revision. Original animal ID 158511 has LA/Ao 1.51 in this source package; the supplied manuscript does not report a different individual value for that dog.
The manuscript data availability paragraph currently lists source spreadsheets, the original Figure 1 image, and scripts for analytical figures. Those files are intentionally omitted from this Dryad revision following the curator's request. The manuscript statement should describe the six unformatted source CSVs, normalized data, data dictionary, analysis scripts, and numerical results in this deposit. The journal-hosted figures remain with the article.
Study population
Reporting was guided by STARD 2015 and STROBE-Vet recommendations (Bossuyt et al. 2015; Cohen et al. 2016; O’Connor et al. 2016). This retrospective diagnostic accuracy study included 150 dogs in a derivation cohort and 50 dogs in a separate validation cohort. Derivation examinations were performed at the veterinary diagnostic imaging center NUDIVE, Federal University of Piauí (UFPI), Brazil, between July 2024 and June 2025. Eligibility required a 12-lead electrocardiogram (ECG) and complete echocardiographic examination obtained on the same day. All 200 dogs were included in the principal analyses. The sample comprised the available eligible records; no prospective sample-size calculation was documented. American College of Veterinary Internal Medicine (ACVIM) stages were recorded using the consensus framework (Keene et al. 2019). The study was approved by the UFPI Animal Use Ethics Committee (CEUA/UFPI; protocol 824/2024), and written owner consent was obtained.
Electrocardiographic acquisition and measurements
ECGs were recorded with a digital 12-lead INCardio X system with dogs in right lateral recumbency without sedation, at 50 mm/s and 10 mm/mV, for 3 min. V1 placement followed the precordial lead system described by Santilli et al. (2019). Three observers, designated A, B, and C, independently measured the ECGs while blinded to the other readings and clinical and echocardiographic findings. When baseline instability, artifacts, or indistinct wave boundaries prevented reliable measurement, other readable regions of the same tracing were examined under the same blinding conditions.
Each stored ECG value represented the automatically generated mean of three measurements. Individual measurements were not retained; therefore, within-tracing repeatability could not be assessed. P-wave duration in lead II was expressed in milliseconds. The Morris index was calculated as the duration of the terminal negative P-wave component in V1 multiplied by its absolute amplitude, in mV·ms. Measurement of the terminal negative component and calculation of the index are illustrated in Fig. 1. P-wave termination was referenced to the isoelectric T–P baseline when the P–R segment was sloped. In derivation, the PR interval was calculated as lead II P duration plus the PR segment, and the Macruz index as P duration divided by the PR segment. PR and Macruz were ancillary variables and did not enter the algorithm.
Echocardiographic reference
One echocardiographer, blinded to ECG results, performed the reference examinations using a GE Vivid iq v203 system. LA/Ao was measured in early diastole in the right parasternal short-axis view at the aortic valve level, following the ACVIM approach (Keene et al. 2019). LA/Ao ≥1.6 defined the primary outcome of left atrial enlargement. Left ventricular internal diameter in diastole (LVIDd), LVIDDN, and peak early diastolic transmitral E velocity were measured by the same echocardiographer. LVIDDN was calculated as LVIDd in centimeters divided by body weight in kilograms raised to 0.294 (Cornell et al. 2004). LVIDDN ≥1.7 defined the secondary outcome, independently of LA/Ao. A single reference examination was shared by all ECG observers for each dog.
Data management and algorithm derivation
Records were matched by animal identifier. Checks included completeness, duplicate identifiers, agreement of shared echocardiographic measurements, consistency of derived variables, and the relationship between terminal V1 duration and total P duration in lead II. Each dog contributed one stored value per variable and observer. No principal measurement was imputed. Observer A provided the primary diagnostic analysis; B and C were evaluated separately without averaging ECG readings across observers.
The reference subgroup comprised derivation dogs in ACVIM stages A or B1 with LA/Ao <1.6. Empirical type 7 quantiles from observer A defined the 70th and 90th percentiles of P duration and the 70th percentile of Morris. The resulting decision rule assigned score 2 when P ≥52 ms or when P ≥48 ms and Morris ≥3.04 mV·ms; score 0 required P <48 ms and Morris <3.04 mV·ms; all other combinations received score 1 (Fig. 2). Categories were termed low, intermediate and high and represented increasing electrical evidence of enlargement, rather than predicted future events. Scores 1–2 defined positive triage, equivalent to P ≥48 ms or Morris ≥3.04 mV·ms. Score 2 alone was assessed as a more selective operating point. All thresholds were fixed for validation, other observers and the secondary outcome.
Statistical analysis
Continuous characteristics were summarized using medians and interquartile ranges; counts and percentages described categorical variables. Diagnostic performance included sensitivity, specificity, positive and negative predictive values, accuracy and likelihood ratios. Proportions received exact Clopper–Pearson 95% confidence intervals (CIs) (Clopper and Pearson 1934); likelihood-ratio intervals used the log approximation when estimable. Receiver operating characteristic analysis used the ordinal score and continuous P and Morris values. Areas under the curve (AUCs), CIs, and within-cohort paired comparisons were calculated using DeLong covariance estimates (DeLong et al. 1988). Between-cohort results were described separately.
Paired proportions were compared within McNemar’s framework (McNemar 1947), using two-sided exact conditional tests for sensitivity among outcome-positive dogs, specificity among outcome-negative dogs, and accuracy among all dogs. This implementation controls the nominal type I error rate but can be conservative and have reduced power (Fagerland et al. 2013). Holm adjustment was applied to the three marker pairs within each cohort, observer, outcome, and metric (Aickin and Gensler 1996). Associations between categories and outcomes were assessed with the Fisher–Freeman–Halton exact test; pairwise category comparisons used Fisher exact tests with Holm adjustment. B and C underwent the same analyses against the shared reference. Paired observer comparisons used corresponding three-comparison families. All tests were two-sided; adjusted p <0.05 indicated statistical evidence within the specified family.
Between-observer agreement of stored P and Morris means was assessed using the two-way absolute-agreement intraclass correlation coefficient for a single observer value, ICC(A,1) (McGraw and Wong 1996; Koo and Li 2016). Confidence intervals were estimated using 3,000 dog-level bootstrap samples, with complete observer sets retained during resampling (Efron 1979). Bland–Altman bias and limits of agreement were calculated for each observer pair (Bland and Altman 1986). Linear-weighted kappa assessed ordinal scores (Cohen 1968), and unweighted kappa assessed triage decisions (Cohen 1960). Friedman and paired Wilcoxon tests examined observer differences (Friedman 1937; Wilcoxon 1945).
An exploratory stratified five-fold derivation check re-estimated thresholds within each training reference subgroup and applied them to held-out dogs. This internal check evaluated the development procedure within the available derivation sample, consistent with the distinction between apparent performance and performance assessed by resampling (Steyerberg et al. 2001). Additional analyses included ancillary PR/Macruz discrimination, descriptive Spearman correlations, and exploratory net benefit of fixed referral strategies (Vickers and Elkin 2006; Vickers et al. 2019). Supplementary methods, tables and figures provide complete specifications and results.[1]
Analyses were performed in Python 3.12.14 with NumPy 2.3.5, pandas 2.2.3, SciPy 1.17.0, and scikit-learn 1.8.0; figures were produced with Matplotlib 3.10.8. Code, exact package versions, and the random seed (20260910) are provided with the data.
[1] Supplementary methods, Tables S1–S8, Figures S1–S4 and the data and code archive accompany this article.
