Cargando…

lab: an R package for generating analysis-ready data from laboratory records

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 l...

Descripción completa

Detalles Bibliográficos
Autores principales: Tseng, Yi-Ju, Chen, Chun Ju, Chang, Chia Wei
Formato: Online Artículo Texto
Lenguaje:English
Publicado: PeerJ Inc. 2023
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10495959/
https://www.ncbi.nlm.nih.gov/pubmed/37705643
http://dx.doi.org/10.7717/peerj-cs.1528
_version_ 1785105005201588224
author Tseng, Yi-Ju
Chen, Chun Ju
Chang, Chia Wei
author_facet Tseng, Yi-Ju
Chen, Chun Ju
Chang, Chia Wei
author_sort Tseng, Yi-Ju
collection PubMed
description 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.
format Online
Article
Text
id pubmed-10495959
institution National Center for Biotechnology Information
language English
publishDate 2023
publisher PeerJ Inc.
record_format MEDLINE/PubMed
spelling pubmed-104959592023-09-13 lab: an R package for generating analysis-ready data from laboratory records Tseng, Yi-Ju Chen, Chun Ju Chang, Chia Wei PeerJ Comput Sci Bioinformatics 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. PeerJ Inc. 2023-08-25 /pmc/articles/PMC10495959/ /pubmed/37705643 http://dx.doi.org/10.7717/peerj-cs.1528 Text en © 2023 Tseng et al. https://creativecommons.org/licenses/by/4.0/This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (PeerJ Computer Science) and either DOI or URL of the article must be cited.
spellingShingle Bioinformatics
Tseng, Yi-Ju
Chen, Chun Ju
Chang, Chia Wei
lab: an R package for generating analysis-ready data from laboratory records
title lab: an R package for generating analysis-ready data from laboratory records
title_full lab: an R package for generating analysis-ready data from laboratory records
title_fullStr lab: an R package for generating analysis-ready data from laboratory records
title_full_unstemmed lab: an R package for generating analysis-ready data from laboratory records
title_short lab: an R package for generating analysis-ready data from laboratory records
title_sort lab: an r package for generating analysis-ready data from laboratory records
topic Bioinformatics
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10495959/
https://www.ncbi.nlm.nih.gov/pubmed/37705643
http://dx.doi.org/10.7717/peerj-cs.1528
work_keys_str_mv AT tsengyiju labanrpackageforgeneratinganalysisreadydatafromlaboratoryrecords
AT chenchunju labanrpackageforgeneratinganalysisreadydatafromlaboratoryrecords
AT changchiawei labanrpackageforgeneratinganalysisreadydatafromlaboratoryrecords