Cargando…

Predicting Risk of Hypoglycemia in Patients With Type 2 Diabetes by Electronic Health Record–Based Machine Learning: Development and Validation

BACKGROUND: Hypoglycemia is a common adverse event in the treatment of diabetes. To efficiently cope with hypoglycemia, effective hypoglycemia prediction models need to be developed. OBJECTIVE: The aim of this study was to develop and validate machine learning models to predict the risk of hypoglyce...

Descripción completa

Detalles Bibliográficos
Autores principales: Yang, Hao, Li, Jiaxi, Liu, Siru, Yang, Xiaoling, Liu, Jialin
Formato: Online Artículo Texto
Lenguaje:English
Publicado: JMIR Publications 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9247813/
https://www.ncbi.nlm.nih.gov/pubmed/35708754
http://dx.doi.org/10.2196/36958
_version_ 1784739244718161920
author Yang, Hao
Li, Jiaxi
Liu, Siru
Yang, Xiaoling
Liu, Jialin
author_facet Yang, Hao
Li, Jiaxi
Liu, Siru
Yang, Xiaoling
Liu, Jialin
author_sort Yang, Hao
collection PubMed
description BACKGROUND: Hypoglycemia is a common adverse event in the treatment of diabetes. To efficiently cope with hypoglycemia, effective hypoglycemia prediction models need to be developed. OBJECTIVE: The aim of this study was to develop and validate machine learning models to predict the risk of hypoglycemia in adult patients with type 2 diabetes. METHODS: We used the electronic health records of all adult patients with type 2 diabetes admitted to West China Hospital between November 2019 and December 2021. The prediction model was developed based on XGBoost and natural language processing. F1 score, area under the receiver operating characteristic curve (AUC), and decision curve analysis (DCA) were used as the main criteria to evaluate model performance. RESULTS: We included 29,843 patients with type 2 diabetes, of whom 2804 patients (9.4%) developed hypoglycemia. In this study, the embedding machine learning model (XGBoost3) showed the best performance among all the models. The AUC and the accuracy of XGBoost are 0.82 and 0.93, respectively. The XGboost3 was also superior to other models in DCA. CONCLUSIONS: The Paragraph Vector–Distributed Memory model can effectively extract features and improve the performance of the XGBoost model, which can then effectively predict hypoglycemia in patients with type 2 diabetes.
format Online
Article
Text
id pubmed-9247813
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher JMIR Publications
record_format MEDLINE/PubMed
spelling pubmed-92478132022-07-02 Predicting Risk of Hypoglycemia in Patients With Type 2 Diabetes by Electronic Health Record–Based Machine Learning: Development and Validation Yang, Hao Li, Jiaxi Liu, Siru Yang, Xiaoling Liu, Jialin JMIR Med Inform Original Paper BACKGROUND: Hypoglycemia is a common adverse event in the treatment of diabetes. To efficiently cope with hypoglycemia, effective hypoglycemia prediction models need to be developed. OBJECTIVE: The aim of this study was to develop and validate machine learning models to predict the risk of hypoglycemia in adult patients with type 2 diabetes. METHODS: We used the electronic health records of all adult patients with type 2 diabetes admitted to West China Hospital between November 2019 and December 2021. The prediction model was developed based on XGBoost and natural language processing. F1 score, area under the receiver operating characteristic curve (AUC), and decision curve analysis (DCA) were used as the main criteria to evaluate model performance. RESULTS: We included 29,843 patients with type 2 diabetes, of whom 2804 patients (9.4%) developed hypoglycemia. In this study, the embedding machine learning model (XGBoost3) showed the best performance among all the models. The AUC and the accuracy of XGBoost are 0.82 and 0.93, respectively. The XGboost3 was also superior to other models in DCA. CONCLUSIONS: The Paragraph Vector–Distributed Memory model can effectively extract features and improve the performance of the XGBoost model, which can then effectively predict hypoglycemia in patients with type 2 diabetes. JMIR Publications 2022-06-16 /pmc/articles/PMC9247813/ /pubmed/35708754 http://dx.doi.org/10.2196/36958 Text en ©Hao Yang, Jiaxi Li, Siru Liu, Xiaoling Yang, Jialin Liu. Originally published in JMIR Medical Informatics (https://medinform.jmir.org), 16.06.2022. 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, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on https://medinform.jmir.org/, as well as this copyright and license information must be included.
spellingShingle Original Paper
Yang, Hao
Li, Jiaxi
Liu, Siru
Yang, Xiaoling
Liu, Jialin
Predicting Risk of Hypoglycemia in Patients With Type 2 Diabetes by Electronic Health Record–Based Machine Learning: Development and Validation
title Predicting Risk of Hypoglycemia in Patients With Type 2 Diabetes by Electronic Health Record–Based Machine Learning: Development and Validation
title_full Predicting Risk of Hypoglycemia in Patients With Type 2 Diabetes by Electronic Health Record–Based Machine Learning: Development and Validation
title_fullStr Predicting Risk of Hypoglycemia in Patients With Type 2 Diabetes by Electronic Health Record–Based Machine Learning: Development and Validation
title_full_unstemmed Predicting Risk of Hypoglycemia in Patients With Type 2 Diabetes by Electronic Health Record–Based Machine Learning: Development and Validation
title_short Predicting Risk of Hypoglycemia in Patients With Type 2 Diabetes by Electronic Health Record–Based Machine Learning: Development and Validation
title_sort predicting risk of hypoglycemia in patients with type 2 diabetes by electronic health record–based machine learning: development and validation
topic Original Paper
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9247813/
https://www.ncbi.nlm.nih.gov/pubmed/35708754
http://dx.doi.org/10.2196/36958
work_keys_str_mv AT yanghao predictingriskofhypoglycemiainpatientswithtype2diabetesbyelectronichealthrecordbasedmachinelearningdevelopmentandvalidation
AT lijiaxi predictingriskofhypoglycemiainpatientswithtype2diabetesbyelectronichealthrecordbasedmachinelearningdevelopmentandvalidation
AT liusiru predictingriskofhypoglycemiainpatientswithtype2diabetesbyelectronichealthrecordbasedmachinelearningdevelopmentandvalidation
AT yangxiaoling predictingriskofhypoglycemiainpatientswithtype2diabetesbyelectronichealthrecordbasedmachinelearningdevelopmentandvalidation
AT liujialin predictingriskofhypoglycemiainpatientswithtype2diabetesbyelectronichealthrecordbasedmachinelearningdevelopmentandvalidation