Lab: An R Package for Generating Analysis-Ready Data from Laboratory Records

檔案

  • 10.7717_peerj-cs.1528.pdf (1.69 MB, Adobe PDF)
    出版社正式版,依 CC BY 授權轉載,來源 https://doi.org/10.7717/peerj-cs.1528

日期

2022-01-01

類型

期刊名稱

PeerJ Computer Science

卷期與頁次

第 9 卷,頁 e1528

ISSN

2376-5992

語言

英文

摘要

Background: Electronic health records (EHRs) play a crucial role in healthcare decision-making by giving physicians insights into disease progression and suitable treatment options. Within EHRs, laboratory test results are frequently utilized for predicting disease progression. However, processing laboratory test results often poses challenges due to variations in units and formats. In addition, leveraging the temporal information in EHRs can improve outcomes, prognoses, and diagnosis predication. Nevertheless, the irregular frequency of the data in these records necessitates data preprocessing, which can add complexity to time-series analyses. Methods: To address these challenges, we developed an open-source R package that facilitates the extraction of temporal information from laboratory records. The proposed lab package generates analysis-ready time series data by segmenting the data into time-series windows and imputing missing values. Moreover, users can map local laboratory codes to the Logical Observation Identifier Names and Codes (LOINC), an international standard. This mapping allows users to incorporate additional information, such as reference ranges and related diseases. Moreover, the reference ranges provided by LOINC enable us to categorize results into normal or abnormal. Finally, the analysis-ready time series data can be further summarized using descriptive statistics and utilized to develop models using machine learning technologies. Results: Using the lab package, we analyzed data from MIMIC-III, focusing on newborns with patent ductus arteriosus (PDA). We extracted time-series laboratory records and compared the differences in test results between patients with and without 30-day in-hospital mortality. We then identified significant variations in several laboratory test results 7 days after PDA diagnosis. Leveraging the time series-analysis-ready data, we trained a prediction model with the long short-term memory algorithm, achieving an area under the receiver operating characteristic curve of 0.83 for predicting 30-day in-hospital mortality in model training. These findings demonstrate the lab package's effectiveness in analyzing disease progression. Conclusions: The proposed lab package simplifies and expedites the workflow involved in laboratory records extraction. This tool is particularly valuable in assisting clinical data analysts in overcoming the obstacles associated with heterogeneous and sparse laboratory records.

所屬典藏

期刊論文
顯示完整詮釋資料 統計資料

引用此條目

Tseng, Y.-J., Chen, C. J., & Chang, C. W. (2022). Lab: An R Package for Generating Analysis-Ready Data from Laboratory Records. PeerJ Computer Science, 9, e1528. https://doi.org/10.7717/peerj-cs.1528

BibTeX RIS

引用文字依 APA 第 7 版格式自動產生,使用前請再核對。

分享