B-261 AI-R Apparent: Using artificial intelligence and refineR on big data to unmask chloride-driven anion gap differences across a multi-laboratory, multi-platform enterprise
Jonathan Tucci, Joe Wiencek, Marisa Germaine
Key points
From the paper's conclusion- Conclusion Here, we first demonstrate the utility of artificial intelligence and R to automate and simplify large data analysis and reference interval review across a multi-site, multi-vendor laboratory enterprise.
Abstract
Background Clinical laboratories must harmonize results across sites and vendors and ensure the continued suitability of reference intervals (RIs). Even electrolytes—typically low in biologic variability with standardized RIs—can exhibit systematic bias across platforms despite similar methodologies. Using large-scale data analysis, we show how laboratory and instrument-specific differences in electrolyte results meaningfully alter calculated anion gap (AG) values across a multi-site enterprise. Methods We retrospectively analyzed all adult (18 years and older) sodium, chloride, carbon dioxide, and calculated AG results over six months from five major sites. Sodium and chloride were measured on Roche cobas c503 ISE (Metrocenter; off-site reference lab) and Abbott Alinity c ICT (Bedford County, Main Campus, Tullahoma-Harton, Wilson County; inpatient hospitals and adjacent clinics). Carbon dioxide was measured on the Roche cobas c503 or Abbott Alinity c. ICD-10 codes associated with each order were captured. Microsoft Copilot-assisted Python coding automated parsing and statistical analysis. Ordinary least squares models used medical record number–clustered standard errors to account for repeated measures. Frisch–Waugh–Lovell residualization estimated the incremental effect of each ICD-10 code (if present in 200 or more unique patients) on each test site, with Benjamini–Hochberg false discovery rate control (q<0.05). Adjusted RIs were derived for each analyte via the refineR package in R, excluding values associated with ICD-10 codes conferring significant bias. Site comparisons were expressed as percent effect size, standard error, and 95% confidence intervals normalized to RI width, referenced to the Main Campus hospital lab. Results We obtained >435,000 results per analyte and AG from >170,000 unique patients; tests per patient ranged from 1.23 at Metrocenter (primarily outpatient) to 1.98–4.08 (hospital labs). Historical RIs were identical across sites/instruments. The largest site/vendor effect was seen in AG (Figure 1A): Metrocenter values were 50.2% higher relative to RI width than Main Campus (p<0.001); other hospitals were 7.4–25.3% higher (each p<0.001). Chloride (Figure 1B) drove this discrepancy: Metrocenter showed a -37.9% relative bias (p<0.001), while regional hospitals showed -5.8% to -15.3% bias vs Main Campus (each p<0.001). Sodium (Figure 1C) differences were more variable: Metrocenter +6.3% relative bias; hospitals -11.4% to +8.9%. Carbon dioxide (Figure 1D) bias was negligible at Metrocenter (-0.5%; p=0.19) but consistently negative at hospitals (-8.2% to -9.1%; each p<0.001). These patterns yielded divergent adjusted RIs for AG: Metrocenter/Roche 9.7–16.0 mmol/L vs. combined hospital labs/Abbott 5.0–15.0 mmol/L, largely due to a lower chloride adjusted RI at Metrocenter/Roche (99–108 mmol/L) vs hospitals/Abbott (101–113 mmol/L). Conclusion Here, we first demonstrate the utility of artificial intelligence and R to automate and simplify large data analysis and reference interval review across a multi-site, multi-vendor laboratory enterprise. Using this, we highlight the significant differences that can exist between analyte values derived across different test sites and different vendor platforms, despite having the same analytical methodologies or even instruments. However, the largest difference was the significantly lower chloride values obtained by the Roche cobas ISE compared to the Abbott Alinity c ICT, which alone alters anion gap interpretation between sites utilizing these instruments.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- B-240 From Prompt to Reference Intervals: Analytical Validation of a Deterministic Generative AI System Using Routine Laboratory DataClinical Chemistry · 2026
- B-257 Evaluation of Diagnostic Performance of Artificial Intelligence in Providing Biological Reference Intervals for Routine Clinical BiomarkersClinical Chemistry · 2026
- Harmonizing laboratory test data in electronic health records across different medical centers.Health informatics journal · 2026
- rendehR: a cohort-first, provenance-aware, agentic-ready pipeline for harmonizing multi-source electronic health recordsmedRxiv · 2026
- Reproducible variability: assessing human vs. AI discordance in attempting to reproduce the same observational studymedRxiv · 2026
- Separating biomarker association from incremental EHR value: a reproducible LAR and troponin benchmark in older high-acuity patientsFrontiers in Medicine · 2026