Related Experiment Video
Updated: Jan 15, 2026

A User-friendly and Powerful R Analysis of Large-scale Datasets
Published on: November 4, 2025
Automated standardization and harmonization of laboratory units in large-scale clinical data using open-source R
Ahmed Medhat Zayed1, Ilias Sarikakis2, Nicolas Delvaux3
1Department of Public Health and Primary Care, Faculty of Medicine, KU Leuven, Leuven, Belgium; Laboratory Medicine Department, Menoufia University National Liver Institute, Shebin El-Kom, Egypt.
Automated functions standardize and harmonize clinical laboratory units, significantly improving data consistency and interoperability for large datasets. This enhances data integration for analytics and machine learning applications.
Area of Science:
- Biomedical Informatics
- Clinical Data Science
- Health Data Standardization
Background:
- Secondary use of clinical laboratory data is hindered by inconsistent unit representations in electronic medical records.
- Heterogeneous multi-source databases suffer from non-standard unit strings and fragmented mappings, limiting interoperability and introducing bias.
- Existing standards like UCUM and LOINC face challenges in real-world data application.
Purpose of the Study:
- To develop and evaluate open-source functions for automated standardization of laboratory units to UCUM-valid formats.
- To harmonize laboratory results to reference units within LOINC groups for improved data consistency.
- To enhance the secondary use and interoperability of large-scale clinical laboratory data.
Main Methods:
- Developed two scalable open-source R functions for unit standardization and value harmonization.
- Standardization employed preprocessing, deterministic mapping, and rule-based correction for heterogeneous unit expressions.
- Applied functions to 163.9 million LOINC-mapped quantitative results; validation used UCUM web service checks.
Main Results:
- Successfully standardized 96.2% of 163.9 million records, reducing unit heterogeneity by 81% (2,019 to 381 UCUM units).
- Harmonization converted 83.4% of records to reference units within minutes, with 100% concordance to UCUM API outputs.
- Harmonization corrected LOINC property inconsistencies in 2.8 million records and improved distributional characteristics in 23% of LOINC groups.
Conclusions:
- Automated, scalable standardization and harmonization of laboratory units are feasible and crucial for large multi-source datasets.
- These functions enable reliable data integration for analytics and machine learning, reducing bias from unit variability.
- The open-source implementation facilitates routine ETL pipeline integration, advancing real-world laboratory data reuse.
More Related Videos
Related Concept Videos
Statistical Software for Data Analysis and Clinical Trials
Introduction to R
Statistical Methods for Analyzing Epidemiological Data
Biostatistics: Overview
Discrete variables are...
Statistical Analysis System (SAS)
Applications: SAS finds applications in numerous fields, including healthcare for clinical trial analysis, finance for risk assessment, marketing for customer data analysis, and...
Overview of Biostatistics in Health Sciences

