B-240 From Prompt to Reference Intervals: Analytical Validation of a Deterministic Generative AI System Using Routine Laboratory Data
Italo Cavalcante, Lais Masullo, Rachel Petrola
Key points
From the paper's conclusion- Methods In this cross-sectional analytical validation study, a custom-configured GPT-based GenAI system estimated indirect 95% RIs from 2024 LIS data (N = 6,065) across ten routine chemistry analytes.
Abstract
Background Periodic verification of reference intervals (RIs) is required under ISO 15189; however, implementation of indirect methods using laboratory information system (LIS) data remains limited due to the need for structured preprocessing, outlier control, and reproducible statistical workflows. Generative artificial intelligence (GenAI) has been proposed to streamline such analyses, yet conventional large language model applications raise concerns regarding stochastic variability, mathematical reliability, and auditability. We evaluated a custom-configured GenAI system engineered to execute a deterministic, code-based RI estimation pipeline from a standardized prompt and benchmarked its analytical performance against a validated indirect RI algorithm. Methods In this cross-sectional analytical validation study, a custom-configured GPT-based GenAI system estimated indirect 95% RIs from 2024 LIS data (N = 6,065) across ten routine chemistry analytes. A single standardized prompt was finalized a priori (“prompt-locked”). Deterministic execution was enforced via a restricted Python Code Interpreter environment, constraining the model to structured statistical processing: data sanitization, moderate winsorization (1st–99th percentiles), Tukey outlier detection, and robust nonparametric estimation of the 2.5th–97.5th percentiles (CLSI EP28-A3c). Free-text inference was disabled. Agreement was benchmarked against the validated reflimR algorithm using 20 paired RI limits assessed by Pearson correlation, Deming regression, and Lin concordance correlation coefficient (CCC). Execution stability was evaluated across 25 standardized runs (5/day over 5 days) for repeatability and within-laboratory reproducibility, compared with EuBIVAS biological-variation specifications. Precision outliers were screened using one-sided Grubbs testing (99% confidence). Results GenAI-derived RI limits demonstrated very strong agreement with reflimR (Pearson r = 0.9956; Lin CCC = 0.9948) with minimal proportional and constant bias (Deming slope = 0.973; intercept = -0.276). Nine analytes produced specification-compliant outputs without prompt refinement. Estimated RIs were: calcium 8.3–10.0 mg/dL; total bilirubin 0.26–1.12 mg/dL; urea 18–55 mg/dL; sodium 137–145 mEq/L; potassium 3.7–5.0 mEq/L; AST 17–45 U/L; ALT 13–53 U/L; GGT 7–56 U/L; alkaline phosphatase 37–117 U/L; and creatinine 0.49–1.16 mg/dL (female) and 0.56–1.36 mg/dL (male). Precision met EuBIVAS specifications: repeatability CVs 0.35%–7.31% and within-laboratory reproducibility CVs 0.21%–4.35%. No significant precision outliers were detected. Structured reporting compliance was 86% (25/29 executions); non-compliant sex-stratified creatinine outputs were excluded from precision analysis. Conclusion A deterministically constrained GenAI system achieved non-inferior analytical performance compared with a validated indirect RI algorithm, demonstrating high concordance, EuBIVAS-compliant precision, and reproducible execution. When configured as a controlled code-execution interface rather than a probabilistic text generator, GenAI can satisfy analytical reliability requirements consistent with clinical laboratory standards. This approach provides a scalable, auditable pathway for ISO 15189-aligned RI verification using routine LIS data.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- B-257 Evaluation of Diagnostic Performance of Artificial Intelligence in Providing Biological Reference Intervals for Routine Clinical BiomarkersClinical Chemistry · 2026
- RefInterval studio: development of a guided R shiny workflow for establishing discrete and age-continuous reference intervals.Clinica chimica acta; international journal of clinical chemistry · 2026
- AI- vs Human-Based Assessment of Medical Interview Transcripts in a Generative AI–Simulated Patient System: Cross-Sectional Validation StudyJMIR Medical Education · 2025
- ChatGPT and reference intervals: a comparative analysis of repeatability in GPT-3.5 Turbo, GPT-4, and GPT-4oFrontiers in Artificial Intelligence · 2025
- Partnering With Generative Artificial Intelligence for Quantitative Data Analysis in Nursing Research: A Practical Workflow for Ethical Collaboration.Biological research for nursing · 2026
- 4 Artificial Intelligence in Clinical Laboratory: A Tool for Laboratory Document ReviewAmerican Journal of Clinical Pathology · 2026