<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" article-type="research-article" dtd-version="2.3" xml:lang="EN">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Endocrinol.</journal-id>
<journal-title>Frontiers in Endocrinology</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Endocrinol.</abbrev-journal-title>
<issn pub-type="epub">1664-2392</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fendo.2025.1634358</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Endocrinology</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>Machine learning-based prediction of hypoglycemia severity in hospitalized diabetic patients</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name>
<surname>Jia</surname>
<given-names>Hongjian</given-names>
</name>
<uri xlink:href="https://loop.frontiersin.org/people/3078013/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/conceptualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/data-curation/"/>
<role content-type="https://credit.niso.org/contributor-roles/formal-analysis/"/>
<role content-type="https://credit.niso.org/contributor-roles/funding-acquisition/"/>
<role content-type="https://credit.niso.org/contributor-roles/investigation/"/>
<role content-type="https://credit.niso.org/contributor-roles/methodology/"/>
<role content-type="https://credit.niso.org/contributor-roles/project-administration/"/>
<role content-type="https://credit.niso.org/contributor-roles/resources/"/>
<role content-type="https://credit.niso.org/contributor-roles/software/"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/validation/"/>
<role content-type="https://credit.niso.org/contributor-roles/visualization/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-original-draft/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
</contrib>
<contrib contrib-type="author" corresp="yes">
<name>
<surname>Zhang</surname>
<given-names>Jietao</given-names>
</name>
<xref ref-type="author-notes" rid="fn001">
<sup>*</sup>
</xref>
<uri xlink:href="https://loop.frontiersin.org/people/3080570/overview"/>
<role content-type="https://credit.niso.org/contributor-roles/supervision/"/>
<role content-type="https://credit.niso.org/contributor-roles/writing-review-editing/"/>
</contrib>
</contrib-group>
<aff id="aff1">
<institution>Department of General Practice, The Affiliated Hospital of Qingdao University</institution>, <addr-line>Qingdao</addr-line>,&#xa0;<country>China</country>
</aff>
<author-notes>
<fn fn-type="edited-by">
<p>Edited by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/2886848/overview">Hong Sun</ext-link>, Jiaxing University, China</p>
</fn>
<fn fn-type="edited-by">
<p>Reviewed by: <ext-link ext-link-type="uri" xlink:href="https://loop.frontiersin.org/people/1130513/overview">Jayakumar Kaliappan</ext-link>, Vellore Institute of Technology (VIT), India</p>
<p>Alaa F. Sheta, Southern Connecticut State University, United States</p>
</fn>
<fn fn-type="corresp" id="fn001">
<p>*Correspondence: Jietao Zhang, <email xlink:href="mailto:qdszjt163@163.com">qdszjt163@163.com</email>
</p>
</fn>
</author-notes>
<pub-date pub-type="epub">
<day>17</day>
<month>09</month>
<year>2025</year>
</pub-date>
<pub-date pub-type="collection">
<year>2025</year>
</pub-date>
<volume>16</volume>
<elocation-id>1634358</elocation-id>
<history>
<date date-type="received">
<day>24</day>
<month>05</month>
<year>2025</year>
</date>
<date date-type="accepted">
<day>01</day>
<month>09</month>
<year>2025</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#xa9; 2025 Jia and Zhang.</copyright-statement>
<copyright-year>2025</copyright-year>
<copyright-holder>Jia and Zhang</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p>
</license>
</permissions>
<abstract>
<sec>
<title>Objective</title>
<p>To identify risk factors for hypoglycemia in hospitalized patients with type 2 diabetes mellitus (T2DM) and develop predictive models for hypoglycemia severity based on machine learning algorithms.</p>
</sec>
<sec>
<title>Methods</title>
<p>Adult non-pregnant hospitalized patients diagnosed with T2DM were retrospectively enrolled from the electronic medical record system of the Affiliated Hospital of Qingdao University. Patients were categorized into hypoglycemia groups (mild, moderate-to-severe) or a non-hypoglycemia group based on inpatient venous plasma glucose levels. After data preprocessing, univariate and multivariate analyses were conducted to identify significant predictors. Three predictive models (XGBoost, Random Forest [RF], and Logistic Regression) were subsequently constructed and validated to evaluate their predictive performances.</p>
</sec>
<sec>
<title>Results</title>
<p>From an initial cohort of 8,947 patients, 1,798 patients were included after data screening. Among the evaluated models, the RF model demonstrated the highest predictive accuracy (93.3%) and Kappa coefficient (0.873), followed by XGBoost (accuracy: 92.6%, Kappa: 0.860). Logistic regression exhibited comparatively lower performance (accuracy: 83.8%, Kappa: 0.685). The macro-average area under the ROC curve (AUC) values for RF, XGBoost, and logistic regression were 0.960, 0.955, and 0.788, respectively, highlighting the superior discriminative capability of the RF model. While both XGBoost and RF models identified glycemic control metrics and glucose variability as core predictors for hypoglycemia, the RF model additionally emphasized medication usage, whereas XGBoost prioritized basal metabolic parameters.</p>
</sec>
<sec>
<title>Conclusions</title>
<p>The RF model outperformed XGBoost and conventional logistic regression in predicting hypoglycemia severity among hospitalized T2DM patients. The results emphasize the importance of closely monitoring glucose levels and glucose variability during diabetes management to prevent hypoglycemia. The developed model provides a foundation for implementing preventive strategies to reduce hypoglycemia occurrence in hospitalized patients with T2DM.</p>
</sec>
</abstract>
<kwd-group>
<kwd>type 2 diabetes mellitus</kwd>
<kwd>hypoglycemia</kwd>
<kwd>risk prediction</kwd>
<kwd>machine learning</kwd>
<kwd>clinical analysis</kwd>
</kwd-group>
<counts>
<fig-count count="7"/>
<table-count count="4"/>
<equation-count count="0"/>
<ref-count count="20"/>
<page-count count="11"/>
<word-count count="5164"/>
</counts>
<custom-meta-wrap>
<custom-meta>
<meta-name>section-in-acceptance</meta-name>
<meta-value>Clinical Diabetes</meta-value>
</custom-meta>
</custom-meta-wrap>
</article-meta>
</front>
<body>
<sec id="s1" sec-type="intro">
<title>Introduction</title>
<p>Diabetes mellitus (DM) is a major chronic disease worldwide, with prevalence rates steadily rising over recent decades (<xref ref-type="bibr" rid="B1">1</xref>). Diabetes and its associated complications pose significant threats to patient health and quality of life, greatly impacting patients&#x2019; daily activities and potentially leading to mortality in severe cases. Among these complications, hypoglycemia is particularly critical to prevent and manage due to its frequent occurrence and substantial health risks for diabetic patients (<xref ref-type="bibr" rid="B2">2</xref>). Hypoglycemic events in diabetic patients are multifactorial, influenced by medications, diet, lifestyle, and comorbidities (<xref ref-type="bibr" rid="B3">3</xref>&#x2013;<xref ref-type="bibr" rid="B5">5</xref>). Recently, stringent glycemic control strategies have been associated with an increased risk of hypoglycemia. However, hypoglycemia can undermine the long-term benefits gained from good glycemic management, underscoring the importance of carefully balancing the benefits and risks of intensive glucose management.</p>
<p>Hospitals play a central role in glycemic control, adjustments of antidiabetic medications, and individualized care for diabetic patients, placing heightened responsibilities on healthcare professionals. Patients with diabetes commonly exhibit multiple comorbidities that contribute independently to hypoglycemia risk. Studies have identified older age, renal impairment, liver dysfunction, poor nutritional status, inappropriate medication use, and debilitating diseases as critical risk factors for hypoglycemia. Clinical practitioners thus must analyze these risk factors systematically to accurately assess the probability of hypoglycemia and implement effective preventive measures.</p>
<p>Predicting hypoglycemia accurately, however, remains challenging due to the complex interplay of various clinical and biological factors. Although multiple studies have confirmed insulin therapy (<xref ref-type="bibr" rid="B6">6</xref>), impaired renal function, and suboptimal glycemic control as significant predictors of hypoglycemia, reliably forecasting such events remains difficult. Traditional logistic regression models have been widely employed to identify risk factors but are limited by their assumption of linear relationships between predictors and outcomes.</p>
<p>Given the limitations of traditional statistical methods in capturing complex clinical relationships, this study was motivated to explore advanced machine learning algorithms for predicting hypoglycemia severity in hospitalized T2DM patients. Thus, the current study aimed to develop and systematically compare three predictive models&#x2014;multinomial logistic regression, XGBoost, and RF&#x2014;to identify independent risk factors and predict hypoglycemia severity. We further conducted a feature importance analysis to highlight clinically significant predictors of hypoglycemia risk. This comparative approach is expected to improve early clinical intervention and personalized management. The paper is structured as follows: the methods section describes the study population, data collection, and model development; the results section presents patient characteristics and model performances; the discussion elaborates clinical implications and comparative insights from the modeling results; finally, limitations and future research directions are provided.</p>
</sec>
<sec id="s2">
<title>Literature review</title>
<p>Hypoglycemia remains a significant challenge in managing hospitalized patients with type 2 diabetes mellitus (T2DM), often resulting from complex interactions among clinical factors such as medication usage, renal function, and glycemic variability. Traditionally, logistic regression models have been widely employed to identify predictors of hypoglycemia risk due to their interpretability and simplicity. However, these models assume linear relationships and may not effectively capture intricate interactions among clinical variables, limiting their predictive capabilities in clinical practice.</p>
<p>With advancements in machine learning techniques, models such as Extreme Gradient Boosting (XGBoost) and Random Forest (RF) have shown remarkable performance in predicting complex clinical outcomes due to their ability to capture nonlinear interactions and handle high-dimensional data. Several previous studies have explored machine learning approaches to predict hypoglycemia in diabetic patients. For instance, Melih Agraz et&#xa0;al. used multi-view collaborative training of machine learning models on imbalanced datasets to improve hypoglycemia prediction (<xref ref-type="bibr" rid="B7">7</xref>). Harald Witte et&#xa0;al. used XGBoost alone to train models related to glycemic decompensation (<xref ref-type="bibr" rid="B8">8</xref>). Christopher Duckworth et&#xa0;al. also used XGBoost alone to predict glycemic decompensation (hyperglycemia and hypoglycemia) (<xref ref-type="bibr" rid="B9">9</xref>). Mai Shi et&#xa0;al. developed a multidimensional ML model based on electronic health records (EHR) to predict hypoglycemia in the elderly population (<xref ref-type="bibr" rid="B10">10</xref>). However, most of these studies have focused solely on hypoglycemia or hyperglycemia, lacking analysis of the severity of hypoglycemia. Additionally, few studies have used real hospital patient data to comprehensively compare multiple models. This study addresses this shortcoming by evaluating logistic regression, random forest, and XGBoost models to perform multi-class classification of hypoglycemia severity using clinical variables.</p>
</sec>
<sec id="s3">
<title>Methods</title>
<sec id="s3_1">
<title>Study design and population</title>
<p>This retrospective study was conducted using data from the electronic medical record system of the Affiliated Hospital of Qingdao University. Initially, 8,947 adult, non-pregnant hospitalized patients with a confirmed diagnosis of T2DM were identified. After applying inclusion and exclusion criteria, a total of 1,798 patients were included in the final analysis.</p>
</sec>
<sec id="s3_2">
<title>Data collection</title>
<p>Clinical and demographic data were extracted from electronic medical records, including demographic characteristics, clinical features, laboratory findings, and antidiabetic medication use. Variables collected were age, gender, body mass index (BMI) classification, Charlson Comorbidity Index (CCI), glycated hemoglobin (HbA1c), mean blood glucose levels, serum creatinine, C-peptide, lipid profile, and use of antidiabetic medications (e.g., insulin, metformin, DPP&#xa0;-&#xa0;4 inhibitors).</p>
</sec>
<sec id="s3_3">
<title>Patient grouping</title>
<p>Patients were categorized into three groups based on venous plasma glucose levels measured during hospitalization:</p>
<list list-type="bullet">
<list-item>
<p>Normal glycemia: &gt;3.9 mmol/L</p>
</list-item>
<list-item>
<p>Mild hypoglycemia: 3.0&#xa0;&#x2013;&#xa0;3.9 mmol/L</p>
</list-item>
<list-item>
<p>Moderate-to-severe hypoglycemia: &lt;3.0 mmol/L</p>
</list-item>
</list>
</sec>
<sec id="s3_4">
<title>Statistical analysis</title>
<p>Univariate analyses were conducted using the chi-square test for categorical variables and the Kruskal-Wallis test for continuous variables. Variables with a P-value &lt;0.05 were entered into a multivariate multinomial logistic regression analysis. Model performance was evaluated using overall accuracy, Kappa statistic, the area under the receiver operating characteristic (ROC) curve (AUC), and confusion matrices. All statistical analyses were performed using R software and SPSS.</p>
</sec>
<sec id="s3_5">
<title>Machine learning model development</title>
<p>Three predictive models were developed and evaluated: multinomial logistic regression, XGBoost, and Random Forest. Hyperparameters for the XGBoost and RF models were optimized using cross-validation. Multiclass ROC curves were constructed using a One-vs-Rest approach to visualize and compare the models&#x2019; predictive capabilities.</p>
<p>No independent testing set was separated in this study. Model development and evaluation were entirely conducted using 5-fold cross-validation on the full dataset. During training, hyperparameters of XGBoost and Random Forest were optimized within each fold using grid search. For XGBoost, the number of boosting rounds (nrounds), tree depth (max_depth), and learning rate (eta) were tuned. For Random Forest, the number of trees (ntree) and the number of variables randomly selected at each split (mtry) were adjusted. The best parameter set in each case was selected based on the highest average accuracy and Kappa coefficient across the cross-validation folds. Final performance metrics, including accuracy, Kappa coefficient, and area under the ROC curve (AUC), represent the average results across the cross-validation folds. This strategy ensured internal validation while minimizing overfitting and allowing fair comparison across models.</p>
</sec>
<sec id="s3_6">
<title>Model performance evaluation</title>
<p>Model performance evaluation was based on three key metrics: overall accuracy, Cohen&#x2019;s Kappa coefficient, and area under the receiver operating characteristic curve (AUC). These metrics were calculated for each fold and averaged to obtain the final performance results. Additionally, multiclass ROC curves were generated using a One-vs-Rest approach to evaluate model discrimination across the three hypoglycemia severity classes.</p>
</sec>
</sec>
<sec id="s4" sec-type="results">
<title>Results</title>
<sec id="s4_1">
<title>Patient characteristics</title>
<p>A total of 1,798 hospitalized diabetic patients were included in the final analysis. Based on inpatient blood glucose measurements, patients were divided into three groups: normoglycemic, mild hypoglycemia, and moderate-to-severe hypoglycemia. Significant differences were observed among the three groups in age, Charlson Comorbidity Index (CCI), the number of glucose-lowering medication classes, triglycerides (TG), serum creatinine, glycated hemoglobin (HbA1c), C-peptide, mean glucose levels, cholesterol, gender distribution, BMI classification, and use of various glucose-lowering medications (including SGLT2 inhibitors, &#x3b1;-glucosidase inhibitors, metformin, thiazolidinediones, and insulin) (all P &lt; 0.05). Baseline characteristics of the study population are detailed in <xref ref-type="table" rid="T1">
<bold>Table&#xa0;1</bold>
</xref>.</p>
<table-wrap id="T1" position="float">
<label>Table&#xa0;1</label>
<caption>
<p>Baseline characteristics of patients by hypoglycemia severity group.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="left">Variables</th>
<th valign="middle" align="left">Total (n = 1798)</th>
<th valign="middle" align="left">Normal (n = 1046)</th>
<th valign="middle" align="left">Mild hypoglycemia (n = 593)</th>
<th valign="middle" align="left">Moderate-to-severe hypoglycemia (n = 159)</th>
<th valign="middle" align="left">P</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">Age, M (Q<sub>1</sub>, Q<sub>3</sub>)</td>
<td valign="middle" align="left">62.00 (54.00, 68.00)</td>
<td valign="middle" align="left">61.00 (54.00,67.00)</td>
<td valign="middle" align="left">63.00 (54.00,69.00)</td>
<td valign="middle" align="left">62.00 (56.00,71.00)</td>
<td valign="middle" align="left">
<bold>0.012</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">Charlson, M (Q<sub>1</sub>, Q<sub>3</sub>)</td>
<td valign="middle" align="left">1.00 (1.00, 1.00)</td>
<td valign="middle" align="left">1.00 (1.00,1.00)</td>
<td valign="middle" align="left">1.00 (1.00,3.00)</td>
<td valign="middle" align="left">2.00 (1.00,3.00)</td>
<td valign="middle" align="left">
<bold>&lt;.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">DrugClassCount, M (Q<sub>1</sub>, Q<sub>3</sub>)</td>
<td valign="middle" align="left">2.00 (1.00, 3.00)</td>
<td valign="middle" align="left">2.00 (1.00,3.00)</td>
<td valign="middle" align="left">3.00 (2.00,3.00)</td>
<td valign="middle" align="left">2.00 (1.00,3.00)</td>
<td valign="middle" align="left">
<bold>&lt;.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">TG, M (Q<sub>1</sub>, Q<sub>3</sub>)</td>
<td valign="middle" align="left">1.10 (0.77, 1.67)</td>
<td valign="middle" align="left">1.15 (0.79,1.75)</td>
<td valign="middle" align="left">1.04 (0.75,1.48)</td>
<td valign="middle" align="left">1.02 (0.68,1.63)</td>
<td valign="middle" align="left">
<bold>&lt;.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">Creatinine, M (Q<sub>1</sub>, Q<sub>3</sub>)</td>
<td valign="middle" align="left">76.60 (57.00, 93.00)</td>
<td valign="middle" align="left">73.00 (55.00,90.25)</td>
<td valign="middle" align="left">79.50 (59.00,97.00)</td>
<td valign="middle" align="left">90.00 (64.80,133.22)</td>
<td valign="middle" align="left">
<bold>&lt;.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">HbA1c, M (Q<sub>1</sub>, Q<sub>3</sub>)</td>
<td valign="middle" align="left">6.20 (5.90, 7.30)</td>
<td valign="middle" align="left">6.10 (5.80,6.30)</td>
<td valign="middle" align="left">7.70 (6.50,9.50)</td>
<td valign="middle" align="left">7.60 (6.50,9.45)</td>
<td valign="middle" align="left">
<bold>&lt;.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">C Peptide, M (Q<sub>1</sub>, Q<sub>3</sub>)</td>
<td valign="middle" align="left">1.67 (0.70, 2.67)</td>
<td valign="middle" align="left">2.10 (1.45,3.04)</td>
<td valign="middle" align="left">0.69 (0.33,1.63)</td>
<td valign="middle" align="left">0.73 (0.24,2.00)</td>
<td valign="middle" align="left">
<bold>&lt;.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">GlucoseAvg, M (Q<sub>1</sub>, Q<sub>3</sub>)</td>
<td valign="middle" align="left">4.92 (3.84, 5.63)</td>
<td valign="middle" align="left">5.19 (4.78,5.65)</td>
<td valign="middle" align="left">3.73 (3.48,4.45)</td>
<td valign="middle" align="left">4.77 (2.79,8.49)</td>
<td valign="middle" align="left">
<bold>&lt;.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">Cholesterol, M (Q<sub>1</sub>, Q<sub>3</sub>)</td>
<td valign="middle" align="left">4.25 (3.42, 5.03)</td>
<td valign="middle" align="left">4.21 (3.39,4.95)</td>
<td valign="middle" align="left">4.35 (3.51,5.28)</td>
<td valign="middle" align="left">4.06 (3.28,4.98)</td>
<td valign="middle" align="left">
<bold>0.005</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">Sex, n(%)</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left">
<bold>0.014</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;M</td>
<td valign="middle" align="left">999 (55.56)</td>
<td valign="middle" align="left">609 (58.22)</td>
<td valign="middle" align="left">301 (50.76)</td>
<td valign="middle" align="left">89 (55.97)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;W</td>
<td valign="middle" align="left">799 (44.44)</td>
<td valign="middle" align="left">437 (41.78)</td>
<td valign="middle" align="left">292 (49.24)</td>
<td valign="middle" align="left">70 (44.03)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">BMI Class, n(%)</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left">
<bold>&lt;.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Overweight</td>
<td valign="middle" align="left">708 (39.38)</td>
<td valign="middle" align="left">439 (41.97)</td>
<td valign="middle" align="left">227 (38.28)</td>
<td valign="middle" align="left">42 (26.42)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Obese</td>
<td valign="middle" align="left">339 (18.85)</td>
<td valign="middle" align="left">232 (22.18)</td>
<td valign="middle" align="left">88 (14.84)</td>
<td valign="middle" align="left">19 (11.95)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Underweight</td>
<td valign="middle" align="left">49 (2.73)</td>
<td valign="middle" align="left">14 (1.34)</td>
<td valign="middle" align="left">22 (3.71)</td>
<td valign="middle" align="left">13 (8.18)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Normal</td>
<td valign="middle" align="left">702 (39.04)</td>
<td valign="middle" align="left">361 (34.51)</td>
<td valign="middle" align="left">256 (43.17)</td>
<td valign="middle" align="left">85 (53.46)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">DPP4, n(%)</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left">0.869</td>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Not used</td>
<td valign="middle" align="left">1063 (59.12)</td>
<td valign="middle" align="left">615 (58.80)</td>
<td valign="middle" align="left">351 (59.19)</td>
<td valign="middle" align="left">97 (61.01)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Used</td>
<td valign="middle" align="left">735 (40.88)</td>
<td valign="middle" align="left">431 (41.20)</td>
<td valign="middle" align="left">242 (40.81)</td>
<td valign="middle" align="left">62 (38.99)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">GLP1, n(%)</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left">0.056</td>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Not used</td>
<td valign="middle" align="left">1753 (97.50)</td>
<td valign="middle" align="left">1012 (96.75)</td>
<td valign="middle" align="left">584 (98.48)</td>
<td valign="middle" align="left">157 (98.74)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Used</td>
<td valign="middle" align="left">45 (2.50)</td>
<td valign="middle" align="left">34 (3.25)</td>
<td valign="middle" align="left">9 (1.52)</td>
<td valign="middle" align="left">2 (1.26)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">SGLT2, n(%)</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left">
<bold>0.027</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Not used</td>
<td valign="middle" align="left">1560 (86.76)</td>
<td valign="middle" align="left">894 (85.47)</td>
<td valign="middle" align="left">518 (87.35)</td>
<td valign="middle" align="left">148 (93.08)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Used</td>
<td valign="middle" align="left">238 (13.24)</td>
<td valign="middle" align="left">152 (14.53)</td>
<td valign="middle" align="left">75 (12.65)</td>
<td valign="middle" align="left">11 (6.92)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">AGI, n(%)</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left">
<bold>&lt;.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Not used</td>
<td valign="middle" align="left">796 (44.27)</td>
<td valign="middle" align="left">519 (49.62)</td>
<td valign="middle" align="left">214 (36.09)</td>
<td valign="middle" align="left">63 (39.62)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Used</td>
<td valign="middle" align="left">1002 (55.73)</td>
<td valign="middle" align="left">527 (50.38)</td>
<td valign="middle" align="left">379 (63.91)</td>
<td valign="middle" align="left">96 (60.38)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">Metformin, n(%)</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left">
<bold>&lt;.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Not used</td>
<td valign="middle" align="left">740 (41.16)</td>
<td valign="middle" align="left">346 (33.08)</td>
<td valign="middle" align="left">298 (50.25)</td>
<td valign="middle" align="left">96 (60.38)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Used</td>
<td valign="middle" align="left">1058 (58.84)</td>
<td valign="middle" align="left">700 (66.92)</td>
<td valign="middle" align="left">295 (49.75)</td>
<td valign="middle" align="left">63 (39.62)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">TZD, n(%)</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left">
<bold>0.013</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Not used</td>
<td valign="middle" align="left">1700 (94.55)</td>
<td valign="middle" align="left">975 (93.21)</td>
<td valign="middle" align="left">571 (96.29)</td>
<td valign="middle" align="left">154 (96.86)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Used</td>
<td valign="middle" align="left">98 (5.45)</td>
<td valign="middle" align="left">71 (6.79)</td>
<td valign="middle" align="left">22 (3.71)</td>
<td valign="middle" align="left">5 (3.14)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">Insulin, n(%)</td>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left"/>
<td valign="middle" align="left">
<bold>&lt;.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Not used</td>
<td valign="middle" align="left">931 (51.78)</td>
<td valign="middle" align="left">811 (77.53)</td>
<td valign="middle" align="left">96 (16.19)</td>
<td valign="middle" align="left">24 (15.09)</td>
<td valign="middle" align="left"/>
</tr>
<tr>
<td valign="middle" align="left">&#x2003;Used</td>
<td valign="middle" align="left">867 (48.22)</td>
<td valign="middle" align="left">235 (22.47)</td>
<td valign="middle" align="left">497 (83.81)</td>
<td valign="middle" align="left">135 (84.91)</td>
<td valign="middle" align="left"/>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Values highlighted in red indicate statistical significance (P &lt; 0.05). Values in black indicate no significant difference.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>To visualize the distributional characteristics of numeric clinical variables across hypoglycemia severity groups, boxplots were generated (<xref ref-type="fig" rid="f1">
<bold>Figure&#xa0;1</bold>
</xref>). These plots provide an intuitive depiction of intergroup variability and outliers, complementing the statistical summary presented in <xref ref-type="table" rid="T1">
<bold>Table&#xa0;1</bold>
</xref>. Categorical variables were not included in this visualization due to the nature of boxplots being suited for continuous variables only.</p>
<fig id="f1" position="float">
<label>Figure&#xa0;1</label>
<caption>
<p>Boxplots of eight clinical variables across hypoglycemia severity groups (Normal, Mild, and Moderate-to-severe).</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fendo-16-1634358-g001.tif">
<alt-text content-type="machine-generated">Box plots displaying values for Age, C-Peptide, Charlson, Cholesterol, Creatinine, Glucose Average (GlucoseAvg), HbA1c, and Triglycerides (TG) across Normal, Mild, and Moderate-to-severe blood sugar groups. Each plot shows variations in data distribution, with a legend indicating group colors: Normal in green, Mild in orange, and Moderate-to-severe in blue.</alt-text>
</graphic>
</fig>
</sec>
<sec id="s4_2">
<title>Univariate and Multivariate Logistic Regression Analyses</title>
<p>In the univariate logistic regression analysis (<xref ref-type="table" rid="T2">
<bold>Table&#xa0;2</bold>
</xref>), gender, Charlson comorbidity index, number of glucose-lowering medication classes, BMI classification, triglycerides (TG), serum creatinine, HbA1c, C-peptide, mean glucose levels, cholesterol, and use of specific hypoglycemic drugs (metformin, &#x3b1;-glucosidase inhibitors, insulin) were significantly associated with the risk of hypoglycemia (P &lt; 0.05). Specifically, an increased Charlson index, lower BMI, reduced C-peptide levels, decreased TG, elevated HbA1c, elevated creatinine levels, and insulin use were linked to a higher risk of hypoglycemia.</p>
<table-wrap id="T2" position="float">
<label>Table&#xa0;2</label>
<caption>
<p>Univariate multinomial logistic regression analysis for predictors of hypoglycemia severity.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="left">Variables</th>
<th valign="middle" align="left">Mild hypoglycemia vs normal (OR [95%CI])</th>
<th valign="middle" align="left">P value</th>
<th valign="middle" align="left">Moderate-to-severe hypoglycemia vs normal (OR [95%CI])</th>
<th valign="middle" align="left">P value</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">Sex (Male vs Female)</td>
<td valign="middle" align="left">0.74 (0.60&#xa0;&#x2013;&#xa0;0.91)</td>
<td valign="middle" align="left">
<bold>0.004</bold>
</td>
<td valign="middle" align="left">0.91 (0.65&#xa0;&#x2013;&#xa0;1.28)</td>
<td valign="middle" align="left">0.593</td>
</tr>
<tr>
<td valign="middle" align="left">Age (per year)</td>
<td valign="middle" align="left">1.01 (1.00&#xa0;&#x2013;&#xa0;1.02)</td>
<td valign="middle" align="left">0.156</td>
<td valign="middle" align="left">1.01 (1.00&#xa0;&#x2013;&#xa0;1.03)</td>
<td valign="middle" align="left">0.133</td>
</tr>
<tr>
<td valign="middle" align="left">Charlson score</td>
<td valign="middle" align="left">3.81 (3.18&#xa0;&#x2013;&#xa0;4.56)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">4.07 (3.35&#xa0;&#x2013;&#xa0;4.94)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">Drug Class Count</td>
<td valign="middle" align="left">1.59 (1.44&#xa0;&#x2013;&#xa0;1.75)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">1.28 (1.09&#xa0;&#x2013;&#xa0;1.51)</td>
<td valign="middle" align="left">
<bold>0.002</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">BMI Overweight vs Normal</td>
<td valign="middle" align="left">0.73 (0.58&#xa0;&#x2013;&#xa0;0.91)</td>
<td valign="middle" align="left">
<bold>0.006</bold>
</td>
<td valign="middle" align="left">0.41 (0.27&#xa0;&#x2013;&#xa0;0.60)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">BMI Obese vs Normal</td>
<td valign="middle" align="left">0.54 (0.40&#xa0;&#x2013;&#xa0;0.72)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">0.35 (0.21&#xa0;&#x2013;&#xa0;0.59)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">BMI Underweight vs Normal</td>
<td valign="middle" align="left">2.22 (1.11&#xa0;&#x2013;&#xa0;4.41)</td>
<td valign="middle" align="left">
<bold>0.024</bold>
</td>
<td valign="middle" align="left">3.94 (1.79&#xa0;&#x2013;&#xa0;8.70)</td>
<td valign="middle" align="left">
<bold>0.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">TG (mmol/L)</td>
<td valign="middle" align="left">0.85 (0.77&#xa0;&#x2013;&#xa0;0.94)</td>
<td valign="middle" align="left">
<bold>0.002</bold>
</td>
<td valign="middle" align="left">0.95 (0.83&#xa0;&#x2013;&#xa0;1.09)</td>
<td valign="middle" align="left">0.454</td>
</tr>
<tr>
<td valign="middle" align="left">HbA1c (%)</td>
<td valign="middle" align="left">10.15 (7.76&#xa0;&#x2013;&#xa0;13.27)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">10.07 (7.65&#xa0;&#x2013;&#xa0;13.26)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">Creatinine (umol/L)</td>
<td valign="middle" align="left">1.005 (1.003&#xa0;&#x2013;&#xa0;1.007)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">1.006 (1.004&#xa0;&#x2013;&#xa0;1.008)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">GlucoseAvg (mmol/L)</td>
<td valign="middle" align="left">0.77 (0.72&#xa0;&#x2013;&#xa0;0.83)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">1.11 (1.04&#xa0;&#x2013;&#xa0;1.18)</td>
<td valign="middle" align="left">
<bold>0.003</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">C-Peptide (ng/mL)</td>
<td valign="middle" align="left">0.68 (0.63&#xa0;&#x2013;&#xa0;0.74)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">0.87 (0.80&#xa0;&#x2013;&#xa0;0.95)</td>
<td valign="middle" align="left">
<bold>0.002</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">Cholesterol (mmol/L)</td>
<td valign="middle" align="left">1.15 (1.07&#xa0;&#x2013;&#xa0;1.23)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">0.99 (0.88&#xa0;&#x2013;&#xa0;1.11)</td>
<td valign="middle" align="left">0.811</td>
</tr>
<tr>
<td valign="middle" align="left">DPP4i (No vs Yes)</td>
<td valign="middle" align="left">1.02 (0.83&#xa0;&#x2013;&#xa0;1.25)</td>
<td valign="middle" align="left">0.876</td>
<td valign="middle" align="left">1.10 (0.78&#xa0;&#x2013;&#xa0;1.54)</td>
<td valign="middle" align="left">0.597</td>
</tr>
<tr>
<td valign="middle" align="left">GLP1-RA (No vs Yes)</td>
<td valign="middle" align="left">2.18 (1.04&#xa0;&#x2013;&#xa0;4.58)</td>
<td valign="middle" align="left">
<bold>0.039</bold>
</td>
<td valign="middle" align="left">2.64 (0.63&#xa0;&#x2013;&#xa0;11.09)</td>
<td valign="middle" align="left">0.186</td>
</tr>
<tr>
<td valign="middle" align="left">SGLT2i (No vs Yes)</td>
<td valign="middle" align="left">1.17 (0.87&#xa0;&#x2013;&#xa0;1.58)</td>
<td valign="middle" align="left">0.289</td>
<td valign="middle" align="left">2.29 (1.21&#xa0;&#x2013;&#xa0;4.32)</td>
<td valign="middle" align="left">
<bold>0.011</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">AGI (No vs Yes)</td>
<td valign="middle" align="left">0.57 (0.47&#xa0;&#x2013;&#xa0;0.70)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">0.67 (0.47&#xa0;&#x2013;&#xa0;0.94)</td>
<td valign="middle" align="left">
<bold>0.019</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">Metformin (No vs Yes)</td>
<td valign="middle" align="left">2.04 (1.66&#xa0;&#x2013;&#xa0;2.51)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">3.08 (2.19&#xa0;&#x2013;&#xa0;4.34)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">TZD (No vs Yes)</td>
<td valign="middle" align="left">1.89 (1.16&#xa0;&#x2013;&#xa0;3.08)</td>
<td valign="middle" align="left">
<bold>0.011</bold>
</td>
<td valign="middle" align="left">2.24 (0.89&#xa0;&#x2013;&#xa0;5.64)</td>
<td valign="middle" align="left">0.086</td>
</tr>
<tr>
<td valign="middle" align="left">Insulin (No vs Yes)</td>
<td valign="middle" align="left">0.06 (0.04&#xa0;&#x2013;&#xa0;0.07)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">0.05 (0.03&#xa0;&#x2013;&#xa0;0.08)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Values highlighted in red indicate statistical significance (P &lt; 0.05). Values in black indicate no significant difference.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>In the multivariate multinomial logistic regression analysis (<xref ref-type="table" rid="T3">
<bold>Table&#xa0;3</bold>
</xref>), independent factors associated with mild hypoglycemia included older age (OR&#xa0;=&#xa0;0.966, 95% CI: 0.951&#xa0;&#x2013;&#xa0;0.981, P &lt; 0.001), higher Charlson comorbidity index (OR&#xa0;=&#xa0;2.684, 95% CI: 2.121&#xa0;&#x2013;&#xa0;3.398, P &lt; 0.001), increased creatinine (OR&#xa0;=&#xa0;1.005, 95% CI: 1.003&#xa0;&#x2013;&#xa0;1.007, P &lt; 0.001), elevated HbA1c (OR&#xa0;=&#xa0;10.570, 95% CI: 7.554&#xa0;&#x2013;&#xa0;14.789, P &lt; 0.001), lower mean glucose levels (OR&#xa0;=&#xa0;0.545, 95% CI: 0.479&#xa0;&#x2013;&#xa0;0.619, P &lt; 0.001), and insulin use (OR&#xa0;=&#xa0;0.205, 95% CI: 0.127&#xa0;&#x2013;&#xa0;0.332, P &lt; 0.001).</p>
<table-wrap id="T3" position="float">
<label>Table&#xa0;3</label>
<caption>
<p>Multivariate multinomial logistic regression results for mild and moderate-to-severe hypoglycemia.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="left">Variables</th>
<th valign="middle" align="left">Mild hypoglycemia vs normal (OR [95%CI])</th>
<th valign="middle" align="left">P value</th>
<th valign="middle" align="left">Moderate-to-severe hypoglycemia vs normal (OR [95%CI])</th>
<th valign="middle" align="left">P value</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">Age</td>
<td valign="middle" align="left">0.966 (0.951&#xa0;&#x2013;&#xa0;0.981)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">0.973 (0.954&#xa0;&#x2013;&#xa0;0.993)</td>
<td valign="middle" align="left">
<bold>0.007</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">Charlson Score</td>
<td valign="middle" align="left">2.684 (2.121&#xa0;&#x2013;&#xa0;3.398)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">2.744 (2.141&#xa0;&#x2013;&#xa0;3.517)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">Drug Class Count</td>
<td valign="middle" align="left">0.788 (0.571&#xa0;&#x2013;&#xa0;1.086)</td>
<td valign="middle" align="left">0.146</td>
<td valign="middle" align="left">0.791 (0.520&#xa0;&#x2013;&#xa0;1.202)</td>
<td valign="middle" align="left">0.272</td>
</tr>
<tr>
<td valign="middle" align="left">TG</td>
<td valign="middle" align="left">0.857 (0.712&#xa0;&#x2013;&#xa0;1.033)</td>
<td valign="middle" align="left">0.105</td>
<td valign="middle" align="left">0.904 (0.717&#xa0;&#x2013;&#xa0;1.139)</td>
<td valign="middle" align="left">0.391</td>
</tr>
<tr>
<td valign="middle" align="left">Creatinine</td>
<td valign="middle" align="left">1.005 (1.003&#xa0;&#x2013;&#xa0;1.007)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">1.005 (1.003&#xa0;&#x2013;&#xa0;1.007)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">HbA1c</td>
<td valign="middle" align="left">10.570 (7.554&#xa0;&#x2013;&#xa0;14.789)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">10.047 (7.127&#xa0;&#x2013;&#xa0;14.163)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">C-Peptide</td>
<td valign="middle" align="left">1.023 (0.945&#xa0;&#x2013;&#xa0;1.108)</td>
<td valign="middle" align="left">0.570</td>
<td valign="middle" align="left">1.092 (0.994&#xa0;&#x2013;&#xa0;1.200)</td>
<td valign="middle" align="left">0.067</td>
</tr>
<tr>
<td valign="middle" align="left">Glucose Avg</td>
<td valign="middle" align="left">0.545 (0.479&#xa0;&#x2013;&#xa0;0.619)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">0.633 (0.554&#xa0;&#x2013;&#xa0;0.723)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">Cholesterol</td>
<td valign="middle" align="left">1.021 (0.894&#xa0;&#x2013;&#xa0;1.166)</td>
<td valign="middle" align="left">0.758</td>
<td valign="middle" align="left">0.856 (0.728&#xa0;&#x2013;&#xa0;1.006)</td>
<td valign="middle" align="left">0.059</td>
</tr>
<tr>
<td valign="middle" align="left">Sex (Male)</td>
<td valign="middle" align="left">0.995 (0.692&#xa0;&#x2013;&#xa0;1.431)</td>
<td valign="middle" align="left">0.980</td>
<td valign="middle" align="left">1.086 (0.682&#xa0;&#x2013;&#xa0;1.730)</td>
<td valign="middle" align="left">0.728</td>
</tr>
<tr>
<td valign="middle" align="left">SGLT2 Not Used</td>
<td valign="middle" align="left">0.953 (0.500&#xa0;&#x2013;&#xa0;1.817)</td>
<td valign="middle" align="left">0.883</td>
<td valign="middle" align="left">1.809 (0.714&#xa0;&#x2013;&#xa0;4.580)</td>
<td valign="middle" align="left">0.211</td>
</tr>
<tr>
<td valign="middle" align="left">AGI Not Used</td>
<td valign="middle" align="left">0.680 (0.425&#xa0;&#x2013;&#xa0;1.089)</td>
<td valign="middle" align="left">0.109</td>
<td valign="middle" align="left">0.680 (0.362&#xa0;&#x2013;&#xa0;1.277)</td>
<td valign="middle" align="left">0.230</td>
</tr>
<tr>
<td valign="middle" align="left">Metformin Not Used</td>
<td valign="middle" align="left">1.034 (0.628&#xa0;&#x2013;&#xa0;1.701)</td>
<td valign="middle" align="left">0.895</td>
<td valign="middle" align="left">1.162 (0.607&#xa0;&#x2013;&#xa0;2.223)</td>
<td valign="middle" align="left">0.651</td>
</tr>
<tr>
<td valign="middle" align="left">TZD Not Used</td>
<td valign="middle" align="left">1.640 (0.673&#xa0;&#x2013;&#xa0;3.999)</td>
<td valign="middle" align="left">0.277</td>
<td valign="middle" align="left">1.601 (0.475&#xa0;&#x2013;&#xa0;5.390)</td>
<td valign="middle" align="left">0.447</td>
</tr>
<tr>
<td valign="middle" align="left">Insulin Not Used</td>
<td valign="middle" align="left">0.205 (0.127&#xa0;&#x2013;&#xa0;0.332)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
<td valign="middle" align="left">0.170 (0.086&#xa0;&#x2013;&#xa0;0.336)</td>
<td valign="middle" align="left">
<bold>&lt;0.001</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">BMI Class - Overweight</td>
<td valign="middle" align="left">1.043 (0.699&#xa0;&#x2013;&#xa0;1.557)</td>
<td valign="middle" align="left">0.836</td>
<td valign="middle" align="left">0.511 (0.302&#xa0;&#x2013;&#xa0;0.865)</td>
<td valign="middle" align="left">
<bold>0.012</bold>
</td>
</tr>
<tr>
<td valign="middle" align="left">BMI Class - Obese</td>
<td valign="middle" align="left">1.254 (0.765&#xa0;&#x2013;&#xa0;2.057)</td>
<td valign="middle" align="left">0.370</td>
<td valign="middle" align="left">0.747 (0.380&#xa0;&#x2013;&#xa0;1.470)</td>
<td valign="middle" align="left">0.399</td>
</tr>
<tr>
<td valign="middle" align="left">BMI Class - Underweight</td>
<td valign="middle" align="left">1.964 (0.600&#xa0;&#x2013;&#xa0;6.427)</td>
<td valign="middle" align="left">0.265</td>
<td valign="middle" align="left">3.654 (1.045&#xa0;&#x2013;&#xa0;12.781)</td>
<td valign="middle" align="left">
<bold>0.043</bold>
</td>
</tr>
</tbody>
</table>
<table-wrap-foot>
<fn>
<p>Values highlighted in red indicate statistical significance (P &lt; 0.05). Values in black indicate no significant difference.</p>
</fn>
</table-wrap-foot>
</table-wrap>
<p>For moderate-to-severe hypoglycemia, independent predictors included older age (OR&#xa0;=&#xa0;0.973, 95% CI: 0.954&#xa0;&#x2013;&#xa0;0.993, P&#xa0;=&#xa0;0.007), elevated Charlson comorbidity index (OR&#xa0;=&#xa0;2.744, 95% CI: 2.141&#xa0;&#x2013;&#xa0;3.517, P &lt; 0.001), increased serum creatinine (OR&#xa0;=&#xa0;1.005, 95% CI: 1.003&#xa0;&#x2013;&#xa0;1.007, P &lt; 0.001), elevated HbA1c (OR&#xa0;=&#xa0;10.047, 95% CI: 7.127&#xa0;&#x2013;&#xa0;14.163, P &lt; 0.001), lower mean glucose levels (OR&#xa0;=&#xa0;0.633, 95% CI: 0.554&#xa0;&#x2013;&#xa0;0.723, P &lt; 0.001), and insulin use (OR&#xa0;=&#xa0;0.170, 95% CI: 0.086&#xa0;&#x2013;&#xa0;0.336, P &lt; 0.001). Additionally, overweight status was a protective factor against moderate-to-severe hypoglycemia (OR&#xa0;=&#xa0;0.511, 95% CI: 0.302&#xa0;&#x2013;&#xa0;0.865, P&#xa0;=&#xa0;0.012), while underweight status significantly increased the risk (OR&#xa0;=&#xa0;3.654, 95% CI: 1.045&#xa0;&#x2013;&#xa0;12.781, P&#xa0;=&#xa0;0.043).</p>
<p>Overall, the multivariate logistic regression model demonstrated good fit (&#x3c7;&#xb2; = 1585.430, df = 40, P &lt; 0.001; Cox-Snell R&#xb2; = 0.586; Nagelkerke R&#xb2; = 0.703; McFadden R&#xb2; = 0.492).</p>
</sec>
<sec id="s4_3">
<title>Machine learning model evaluation</title>
<p>The predictive performances of multinomial logistic regression, XGBoost, and random forest (RF) models were evaluated using receiver operating characteristic (ROC) curves constructed through a One-vs-Rest approach. ROC curves for each model are illustrated individually in <xref ref-type="fig" rid="f2">
<bold>Figures&#xa0;2</bold>
</xref>&#x2013;<xref ref-type="fig" rid="f4">
<bold>4</bold>
</xref>, and a direct comparative analysis among the three models is presented in <xref ref-type="fig" rid="f5">
<bold>Figure&#xa0;5</bold>
</xref>.</p>
<fig id="f2" position="float">
<label>Figure&#xa0;2</label>
<caption>
<p>One-vs-rest ROC curves for multinomial logistic regression model.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fendo-16-1634358-g002.tif">
<alt-text content-type="machine-generated">Receiver Operating Characteristic (ROC) curve comparing three conditions: normal (blue line, AUC 0.938), mild hypoglycemia (orange line, AUC 0.889), and moderate-to-severe hypoglycemia (red line, AUC 0.754). The curve plots sensitivity against specificity, with a diagonal reference line.</alt-text>
</graphic>
</fig>
<fig id="f3" position="float">
<label>Figure&#xa0;3</label>
<caption>
<p>One-vs-rest ROC curves for the XGBoost model.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fendo-16-1634358-g003.tif">
<alt-text content-type="machine-generated">ROC curve comparing three conditions: normal (blue), mild hypoglycemia (orange), and moderate-to-severe (red). The curves are plotted with specificity on the x-axis and sensitivity on the y-axis. Area under the curve (AUC) scores are 0.991 for normal, 0.980 for mild hypoglycemia, and 0.943 for moderate-to-severe.</alt-text>
</graphic>
</fig>
<fig id="f4" position="float">
<label>Figure&#xa0;4</label>
<caption>
<p>One-vs-rest ROC curves for random forest model.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fendo-16-1634358-g004.tif">
<alt-text content-type="machine-generated">ROC curve graph showing sensitivity versus specificity for three conditions: Normal (blue line, AUC: 0.991), Mild hypoglycemia (orange line, AUC: 0.983), and Moderate-to-severe (red line, AUC: 0.952). The graph includes a diagonal reference line.</alt-text>
</graphic>
</fig>
<fig id="f5" position="float">
<label>Figure&#xa0;5</label>
<caption>
<p>Comparison of ROC curves across logistic regression, XGBoost, and random forest models.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fendo-16-1634358-g005.tif">
<alt-text content-type="machine-generated">ROC curves compare model performance, plotting sensitivity versus specificity for logistic regression (Normal, Mild, Moderate-to-severe), XGBoost (Normal, Mild, Moderate-to-severe), and Random Forest (Normal, Mild, Moderate). The diagonal line represents random chance.</alt-text>
</graphic>
</fig>
<p>The multinomial logistic regression model yielded area under the curve (AUC) values of 0.938 for predicting normoglycemia, 0.889 for mild hypoglycemia, and 0.754 for moderate-to-severe hypoglycemia. The XGBoost model demonstrated notably higher AUCs of 0.991, 0.980, and 0.943, respectively. Similarly, the RF model achieved AUCs of 0.991, 0.983, and 0.952 for the three respective severity categories.</p>
<p>Comparative ROC analysis (<xref ref-type="fig" rid="f5">
<bold>Figure&#xa0;5</bold>
</xref>) clearly indicated superior discriminative performance of both XGBoost and RF models across all hypoglycemia severity categories compared to logistic regression.</p>
</sec>
<sec id="s4_4">
<title>Model performance comparison</title>
<p>To comprehensively evaluate predictive performances, we compared the overall accuracy, Kappa coefficient, and macro-average AUC of the three models (<xref ref-type="table" rid="T4">
<bold>Table&#xa0;4</bold>
</xref>). The RF model achieved the highest accuracy (93.3%) and Kappa coefficient (0.873), followed closely by XGBoost (accuracy: 92.6%, Kappa: 0.860). Logistic regression demonstrated relatively lower performance, with an accuracy of 83.8% and Kappa of 0.685. Consistently, the macro-average AUC values for RF, XGBoost, and logistic regression were 0.960, 0.955, and 0.788, respectively, further emphasizing the superior predictive capability of the tree-based machine learning algorithms.</p>
<table-wrap id="T4" position="float">
<label>Table&#xa0;4</label>
<caption>
<p>Performance comparison of three models: Accuracy, AUC, and Kappa.</p>
</caption>
<table frame="hsides">
<thead>
<tr>
<th valign="middle" align="left">Model</th>
<th valign="middle" align="left">Accuracy</th>
<th valign="middle" align="left">Kappa</th>
<th valign="middle" align="left">Macro AUC</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="middle" align="left">Logistic Regression</td>
<td valign="middle" align="left">0.838</td>
<td valign="middle" align="left">0.6845</td>
<td valign="middle" align="left">0.7878</td>
</tr>
<tr>
<td valign="middle" align="left">XGBoost</td>
<td valign="middle" align="left">0.9255</td>
<td valign="middle" align="left">0.8603</td>
<td valign="middle" align="left">0.9553</td>
</tr>
<tr>
<td valign="middle" align="left">Random Forest</td>
<td valign="middle" align="left">0.9330</td>
<td valign="middle" align="left">0.8729</td>
<td valign="middle" align="left">0.9596</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>To further evaluate the consistency and robustness of model performance, we applied 5-fold cross-validation and visualized the distribution of prediction accuracy and Kappa coefficient for each model (<xref ref-type="fig" rid="f6">
<bold>Figure&#xa0;6</bold>
</xref>). The Random Forest model consistently demonstrated the highest predictive performance (mean accuracy &#x2248; 93.2%, Kappa &#x2248; 0.872), followed closely by XGBoost (accuracy &#x2248; 92.6%, Kappa &#x2248; 0.860). Logistic regression showed comparatively lower performance (accuracy &#x2248; 84.0%, Kappa &#x2248; 0.682). These values were consistent with the results in <xref ref-type="table" rid="T4">
<bold>Table&#xa0;4</bold>
</xref>, confirming the superiority of tree-based models in this context.</p>
<fig id="f6" position="float">
<label>Figure&#xa0;6</label>
<caption>
<p>Boxplots comparing model performance (Accuracy and Kappa coefficient) across three classifiers using 5-fold cross-validation.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fendo-16-1634358-g006.tif">
<alt-text content-type="machine-generated">Box plots comparing model performance for Logistic, RF, and XGBoost. The left plot shows accuracy scores; Logistic has the lowest, XGBoost the highest. The right plot shows Kappa scores, with similar trends. Models are color-coded: red for Logistic, green for RF, blue for XGBoost.</alt-text>
</graphic>
</fig>
<p>Note: The boxplot metrics are derived from 5-fold cross-validation, while <xref ref-type="table" rid="T4">
<bold>Table&#xa0;4</bold>
</xref> reports final model performance on evaluation sets.</p>
</sec>
<sec id="s4_5">
<title>Feature importance analysis</title>
<p>Feature importance analysis (<xref ref-type="fig" rid="f7">
<bold>Figure&#xa0;7</bold>
</xref>) identified mean blood glucose level and HbA1c as the two most critical predictors in both XGBoost and RF models. Subsequent important predictors in the XGBoost model included creatinine, C-peptide, and triglycerides (TG). In the RF model, following mean glucose and HbA1c, important predictors included C-peptide, insulin usage, and the Charlson comorbidity index.</p>
<fig id="f7" position="float">
<label>Figure&#xa0;7</label>
<caption>
<p>Top 10 feature importance.</p>
</caption>
<graphic mimetype="image" mime-subtype="tiff" xlink:href="fendo-16-1634358-g007.tif">
<alt-text content-type="machine-generated">Two bar charts display the top 10 feature importances for Random Forest and XGBoost models. The Random Forest chart shows GlucoseAvg and HbA1c as the most important features. The XGBoost chart also highlights GlucoseAvg and HbA1c at the top. Both charts rank features like C_Peptide, Insulin, and Creatinine among others. The Random Forest importance is measured by MeanDecreaseGini, while XGBoost uses Gain.</alt-text>
</graphic>
</fig>
</sec>
</sec>
<sec id="s5" sec-type="discussion">
<title>Discussion</title>
<p>In the present study, we developed and systematically compared three predictive models&#x2014;multinomial logistic regression, XGBoost, and random forest (RF)&#x2014;to identify key predictors of hypoglycemia severity among hospitalized patients with diabetes. Our results demonstrated that both machine learning models (XGBoost and RF) exhibited superior discriminative performance compared to traditional logistic regression, especially for detecting moderate-to-severe hypoglycemia, this has some modeling studies with the same results (<xref ref-type="bibr" rid="B11">11</xref>). We utilized the One-vs-Rest strategy, a standard and effective approach for generating ROC curves in multiclass classification problems, allowing robust evaluation and comparison of each model&#x2019;s predictive performance across hypoglycemia categories.</p>
<p>As detailed in <xref ref-type="table" rid="T4">
<bold>Table&#xa0;4</bold>
</xref>, the random forest model demonstrated the best overall predictive performance, with the highest accuracy (93.3%), Kappa coefficient (0.873), and macro-average AUC (0.960). These values reflect excellent classification agreement and discrimination for hypoglycemia severity prediction. The XGBoost model showed slightly lower but still robust performance (accuracy 92.6%, Kappa 0.860, AUC 0.955), confirming its strength in handling complex nonlinear data. In contrast, the logistic regression model yielded lower accuracy (83.8%) and Kappa (0.685), along with a substantially lower AUC (0.788), possibly due to its linear assumptions and inability to capture complex feature interactions. These findings highlight the superior performance of ensemble learning models in identifying subtle patterns and interactions in clinical data, and support their potential value in hypoglycemia risk stratification.</p>
<p>The dataset used to construct our predictive models comprised common clinical and laboratory variables routinely available for hospitalized patients with type 2 diabetes mellitus (T2DM). The logistic regression model identified seven statistically significant predictors (P &lt; 0.05), while both XGBoost and RF models highlighted the top 10 most influential variables. Notably, six predictors&#x2014;age, Charlson Comorbidity Index (CCI), serum creatinine, HbA1c, mean glucose levels, and insulin use&#x2014;emerged consistently as significant factors across all three models. A number of previous modeling studies and factor analysis studies have similarly given the same conclusions for one or more of these factors (<xref ref-type="bibr" rid="B12">12</xref>&#x2013;<xref ref-type="bibr" rid="B14">14</xref>). While previous studies have individually confirmed the significance of one or several of these factors, our research uniquely integrated multiple models for comprehensive comparison, offering a broader perspective than single-model studies previously reported.</p>
<p>A key advantage of our study lies in its reliance on routinely collected clinical data. This facilitates rapid assessment of hypoglycemia risk without additional specialized testing, thus granting medical staff valuable time to implement preventive strategies and appropriate treatments.</p>
<p>Regarding predictive variables, HbA1c has consistently been identified as a crucial factor in hypoglycemia research. Prior studies have reported that both excessively high HbA1c levels (&gt;9%) and overly stringent glycemic control (HbA1c &lt;7%) are associated with increased hypoglycemia risk (<xref ref-type="bibr" rid="B15">15</xref>). Additionally, insulin use within these HbA1c ranges further exacerbates hypoglycemia risk. Both our univariate and multivariate analyses supported these findings, reinforcing that elevated HbA1c levels and insulin therapy are critical risk factors for hypoglycemia in diabetic patients.</p>
<p>In recent years, growing attention has focused on the association between the Charlson Comorbidity Index (CCI) and hypoglycemia. Most prior studies investigating comorbidities typically examined only one or a few components of the CCI, such as cardiovascular disease, renal impairment, or malignancy (<xref ref-type="bibr" rid="B16">16</xref>). These comorbid conditions have been associated with glucose instability and heightened risk of adverse glycemic events. Patients with multiple chronic diseases often experience altered drug metabolism, polypharmacy, and malnutrition, potentially interfering with glucose regulation and insulin sensitivity. Incorporating the CCI into all three predictive models in our study enhances its utility as a comprehensive clinical indicator. Unlike individual diagnoses, the CCI provides an aggregated measure of overall disease burden, capturing complex interactions between comorbidities and thereby improving the generalizability and interpretability of the predictive models. Integrating the CCI into predictive assessments may assist clinicians in accurately stratifying risk, particularly among elderly hospitalized patients or those with multiple chronic diseases, who inherently have higher susceptibility to hypoglycemic episodes (<xref ref-type="bibr" rid="B17">17</xref>). Early identification of high-CCI patients could facilitate personalized monitoring, medication adjustments, and tailored nutritional plans, thereby mitigating hypoglycemia risk.</p>
<p>Lastly, we conducted feature importance analyses for the top ten variables in the XGBoost and RF models. Both models consistently identified glycemic control and glucose variability as key predictors. Additionally, XGBoost emphasized basal metabolic parameters (e.g., creatinine and C-peptide), whereas the RF model placed greater emphasis on medication use. These findings highlight nuanced differences between machine learning approaches, underscoring their ability to provide targeted clinical insights into managing and preventing hypoglycemic events in hospitalized diabetic patients.</p>
</sec>
<sec id="s6" sec-type="conclusions">
<title>Conclusions</title>
<p>In this study, we developed and compared three prediction models - multinomial logistic regression, XGBoost, and random forest - to identify factors associated with hypoglycemia severity in hospitalized diabetic patients. Our results showed that both machine learning models outperformed the traditional logistic regression model in terms of predictive performance, with higher accuracy and AUC values in all hypoglycemia categories. This time, the three models were designed with all commonly used clinical indicators, without the need for special tests, to prevent hypoglycemia as early as possible in type 2 diabetic patients and to avoid the adverse consequences caused by hypoglycemia. In a comparison of the three models and the focus of the models, the six variables of age, Charlson comorbidity index, creatinine, glycosylated hemoglobin, mean blood glucose level, and insulin use were consistently identified as core predictors in almost all models (<xref ref-type="bibr" rid="B7">7</xref>, <xref ref-type="bibr" rid="B18">18</xref>, <xref ref-type="bibr" rid="B19">19</xref>), This further enhances their clinical relevance. Future studies should focus on the prospective validation and practical application of these models to assess their clinical utility and impact on patient safety.</p>
</sec>
<sec id="s7">
<title>Strengths and limitations</title>
<p>This study has several strengths. First, it comprehensively compared the performance of traditional and ensemble machine learning models in predicting hypoglycemia severity, highlighting the superior capability of tree-based algorithms. Second, it utilized a multiclass classification approach to stratify hypoglycemia into different severity levels, which has greater clinical relevance than binary classification. Third, model performance was rigorously evaluated using stratified 5-fold cross-validation, and visual comparisons were provided through ROC curves and boxplots, enhancing interpretability. Finally, the study was based on a large cohort of hospitalized patients with diabetes, offering real-world insights.</p>
<p>However, some limitations should be acknowledged. The data were derived from a single center, which may limit the generalizability of the findings. External validation using independent datasets from other institutions is needed. Additionally, the reliance on internal cross-validation without a separate test set may lead to optimistic performance estimates. Some potentially important predictors, such as postprandial glucose or nutritional interventions, were not available in the dataset. Moreover, the models have not yet been tested in real-time clinical settings, and their clinical utility remains to be validated.</p>
</sec>
</body>
<back>
<sec id="s8" sec-type="data-availability">
<title>Data availability statement</title>
<p>The datasets presented in this article are not readily available because The datasets generated and/or analyzed during the current study are not publicly available due to The Affiliated Hospital of Qingdao University but are available from the corresponding author on reasonable request. Requests to access the datasets should be directed to Hongjian Jia, <email xlink:href="mailto:jhj200018@163.com">jhj200018@163.com</email>.</p>
</sec>
<sec id="s9" sec-type="ethics-statement">
<title>Ethics statement</title>
<p>The studies involving humans were approved by The Affiliated Hospital of Qingdao University. The studies were conducted in accordance with the local legislation and institutional requirements. Written informed consent for participation was not required from the participants or the participants&#x2019; legal guardians/next of kin in accordance with the national legislation and institutional requirements.</p>
</sec>
<sec id="s10" sec-type="author-contributions">
<title>Author contributions</title>
<p>HJ: Conceptualization, Data curation, Formal Analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing &#x2013; original draft, Writing &#x2013; review &amp; editing. JZ: Supervision, Writing &#x2013; review &amp; editing.</p>
</sec>
<sec id="s11" sec-type="funding-information">
<title>Funding</title>
<p>The author(s) declare that no financial support was received for the research and/or publication of this article.</p>
</sec>
<ack>
<title>Acknowledgments</title>
<p>This manuscript was previously made available as a preprint on Research Square (DOI: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.21203/rs.3.rs-6619286/v1">https://doi.org/10.21203/rs.3.rs-6619286/v1</ext-link>) (<xref ref-type="bibr" rid="B20">20</xref>).</p>
</ack>
<sec id="s12" sec-type="COI-statement">
<title>Conflict of interest</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
<sec id="s13" sec-type="ai-statement">
<title>Generative AI statement</title>
<p>The author(s) declare that no Generative AI was used in the creation of this manuscript.</p>
<p>Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.</p>
</sec>
<sec id="s14" sec-type="disclaimer">
<title>Publisher&#x2019;s note</title>
<p>All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.</p>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<label>1</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ong</surname> <given-names>KL</given-names>
</name>
<name>
<surname>Stafford</surname> <given-names>LK</given-names>
</name>
<name>
<surname>Mclaughlin</surname> <given-names>SA</given-names>
</name>
<etal/>
</person-group>. <article-title>Global, regional, and national burden of diabetes from 1990 to 2021, with projections of prevalence to 2050: a systematic analysis for the Global Burden of Disease Study 2021</article-title>. <source>Lancet (London, England)</source>. (<year>2023</year>) <volume>402</volume>(<issue>10397</issue>):<page-range>203&#x2013;34</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/S0140-6736(23)01301-6</pub-id>, PMID: <pub-id pub-id-type="pmid">37356446</pub-id></citation></ref>
<ref id="B2">
<label>2</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Yunir</surname> <given-names>E</given-names>
</name>
<name>
<surname>Nugraha</surname> <given-names>ARA</given-names>
</name>
<name>
<surname>Rosana</surname> <given-names>M</given-names>
</name>
<name>
<surname>Kurniawan</surname> <given-names>J</given-names>
</name>
<name>
<surname>Iswati</surname> <given-names>E</given-names>
</name>
<name>
<surname>Sarumpaet</surname> <given-names>A</given-names>
</name>
<etal/>
</person-group>. <article-title>Risk factors of severe hypoglycemia among patients with type 2 diabetes mellitus in outpatient clinic of tertiary hospital in Indonesia</article-title>. <source>Sci Rep</source>. (<year>2023</year>) <volume>13</volume>(<issue>1</issue>):<fpage>16259</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1038/s41598-023-43459-2</pub-id>, PMID: <pub-id pub-id-type="pmid">37758787</pub-id></citation></ref>
<ref id="B3">
<label>3</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Bonaventura</surname> <given-names>A</given-names>
</name>
<name>
<surname>Montecucco</surname> <given-names>F</given-names>
</name>
<name>
<surname>Dallegri</surname> <given-names>F</given-names>
</name>
</person-group>. <article-title>Update on strategies limiting iatrogenic hypoglycemia</article-title>. <source>Endocr. Conn</source>. (<year>2015</year>) <volume>4</volume>(<issue>3</issue>):<page-range>R37&#x2013;45</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1530/EC-15-0044</pub-id>, PMID: <pub-id pub-id-type="pmid">26099256</pub-id></citation></ref>
<ref id="B4">
<label>4</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Akirov</surname> <given-names>A</given-names>
</name>
<name>
<surname>Amitai</surname> <given-names>O</given-names>
</name>
<name>
<surname>Masri-Iraqi</surname> <given-names>H</given-names>
</name>
<name>
<surname>Diker-Cohen</surname> <given-names>T</given-names>
</name>
<name>
<surname>Shochat</surname> <given-names>T</given-names>
</name>
<name>
<surname>Eizenberg</surname> <given-names>Y</given-names>
</name>
<etal/>
</person-group>. <article-title>Predictors of hypoglycemia in hospitalized patients with diabetes mellitus</article-title>. <source>Internal Emergency Med</source>. (<year>2018</year>) <volume>13</volume>(<issue>3</issue>):<page-range>343&#x2013;50</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1007/s11739-018-1787-0</pub-id>, PMID: <pub-id pub-id-type="pmid">29340912</pub-id></citation></ref>
<ref id="B5">
<label>5</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Borz&#xec;</surname> <given-names>V</given-names>
</name>
<name>
<surname>Frasson</surname> <given-names>S</given-names>
</name>
<name>
<surname>Gussoni</surname> <given-names>G</given-names>
</name>
<name>
<surname>Di Lillo</surname> <given-names>M</given-names>
</name>
<name>
<surname>Gerloni</surname> <given-names>R</given-names>
</name>
<name>
<surname>Augello</surname> <given-names>G</given-names>
</name>
<etal/>
</person-group>. <article-title>Risk factors for hypoglycemia in patients with type 2 diabetes, hospitalized in internal medicine wards: Findings from the FADOI-DIAMOND study</article-title>. <source>Diabetes Res Clin Pract</source>. Available online at: <uri xlink:href="https://www.diabetesresearchclinicalpractice.com/article/S0168-8227(16)00069-3/abstract">https://www.diabetesresearchclinicalpractice.com/article/S0168-8227(16)00069-3/abstract</uri>., PMID: <pub-id pub-id-type="pmid">27242119</pub-id></citation></ref>
<ref id="B6">
<label>6</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Khunti</surname> <given-names>K</given-names>
</name>
<name>
<surname>Alsifri</surname> <given-names>S</given-names>
</name>
<name>
<surname>Aronson</surname> <given-names>R</given-names>
</name>
<name>
<surname>Cigrovski Berkovi&#x107;</surname> <given-names>M</given-names>
</name>
<name>
<surname>Enters-Weijnen</surname> <given-names>C</given-names>
</name>
<name>
<surname>Fors&#xe9;n</surname> <given-names>T</given-names>
</name>
<etal/>
</person-group>. <article-title>Rates and predictors of hypoglycaemia in 27&#x2013;585 people from 24 countries with insulin-treated type 1 and type 2 diabetes: the global HAT study</article-title>. <source>Diabetes Obes Metab</source>. (<year>2016</year>) <volume>18</volume>(<issue>9</issue>):<page-range>907&#x2013;15</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1111/dom.12689</pub-id>, PMID: <pub-id pub-id-type="pmid">27161418</pub-id></citation></ref>
<ref id="B7">
<label>7</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Agraz</surname> <given-names>M</given-names>
</name>
<name>
<surname>Deng</surname> <given-names>Y</given-names>
</name>
<name>
<surname>Karniadakis</surname> <given-names>GE</given-names>
</name>
<name>
<surname>Mantzoros</surname> <given-names>CS</given-names>
</name>
</person-group>. <article-title>Enhancing severe hypoglycemia prediction in type 2 diabetes mellitus through multi-view co-training machine learning model for imbalanced dataset</article-title>. <source>Sci Rep</source>. (<year>2024</year>) <volume>14</volume>(<issue>1</issue>):<fpage>22741</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1038/s41598-024-69844-z</pub-id>, PMID: <pub-id pub-id-type="pmid">39349500</pub-id></citation></ref>
<ref id="B8">
<label>8</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Witte</surname> <given-names>H</given-names>
</name>
<name>
<surname>Nakas</surname> <given-names>C</given-names>
</name>
<name>
<surname>Bally</surname> <given-names>L</given-names>
</name>
<name>
<surname>Leichtle</surname> <given-names>AB</given-names>
</name>
</person-group>. <article-title>Machine learning prediction of hypoglycemia and hyperglycemia from electronic health records: algorithm development and validation</article-title>. <source>JMIR Form. Res</source>. (<year>2022</year>) <volume>6</volume>:<elocation-id>e36176</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.2196/36176</pub-id>, PMID: <pub-id pub-id-type="pmid">35526139</pub-id></citation></ref>
<ref id="B9">
<label>9</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Duckworth</surname> <given-names>C</given-names>
</name>
<name>
<surname>Guy</surname> <given-names>MJ</given-names>
</name>
<name>
<surname>Kumaran</surname> <given-names>A</given-names>
</name>
<name>
<surname>O&#x2019;Kane</surname> <given-names>AA</given-names>
</name>
<name>
<surname>Ayobi</surname> <given-names>A</given-names>
</name>
<name>
<surname>Chapman</surname> <given-names>A</given-names>
</name>
<etal/>
</person-group>. <article-title>Explainable machine learning for real-time hypoglycemia and hyperglycemia prediction and personalized control recommendations</article-title>. <source>J Diabetes Sci Technol</source>. (<year>2024</year>) <volume>18</volume>(<issue>1</issue>):<page-range>113&#x2013;23</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1177/19322968221103561</pub-id>, PMID: <pub-id pub-id-type="pmid">35695284</pub-id></citation></ref>
<ref id="B10">
<label>10</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Shi</surname> <given-names>M</given-names>
</name>
<name>
<surname>Yang</surname> <given-names>A</given-names>
</name>
<name>
<surname>Lau</surname> <given-names>ESH</given-names>
</name>
<name>
<surname>Luk</surname> <given-names>AOY</given-names>
</name>
<name>
<surname>Ma</surname> <given-names>RCW</given-names>
</name>
<name>
<surname>Kong</surname> <given-names>APS</given-names>
</name>
<etal/>
</person-group>. <article-title>A novel electronic health record-based, machine-learning model to predict severe hypoglycemia leading to hospitalizations in older adults with diabetes: A territory-wide cohort and modeling study</article-title>. <source>PloS Med</source>. (<year>2024</year>) <volume>21</volume>:<elocation-id>e1004369</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1371/journal.pmed.1004369</pub-id>, PMID: <pub-id pub-id-type="pmid">38607977</pub-id></citation></ref>
<ref id="B11">
<label>11</label>
<citation citation-type="web">
<person-group person-group-type="author">
<name>
<surname>Niu</surname> <given-names>W</given-names>
</name>
<name>
<surname>Liu</surname> <given-names>C</given-names>
</name>
<name>
<surname>Wang</surname> <given-names>S</given-names>
</name>
<name>
<surname>Zhang</surname> <given-names>R</given-names>
</name>
<name>
<surname>Zhang</surname> <given-names>X</given-names>
</name>
<name>
<surname>Jia</surname> <given-names>H</given-names>
</name>
<etal/>
</person-group>. <article-title>Interdisciplinary nursing research</article-title>. Available online at: <uri xlink:href="https://journals.lww.com/inr/fulltext/2025/03000/machine_learning_based_prediction_model_for.4.aspx">https://journals.lww.com/inr/fulltext/2025/03000/machine_learning_based_prediction_model_for.4.aspx</uri>.</citation></ref>
<ref id="B12">
<label>12</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Chen</surname> <given-names>NC</given-names>
</name>
<name>
<surname>Chen</surname> <given-names>CL</given-names>
</name>
<name>
<surname>Shen</surname> <given-names>FC</given-names>
</name>
</person-group>. <article-title>The risk factors of severe hypoglycemia in older patients with dementia and type 2 diabetes mellitus</article-title>. <source>J Pers. Med</source>. (<year>2022</year>) <volume>12</volume>:<elocation-id>67</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.3390/jpm12010067</pub-id>, PMID: <pub-id pub-id-type="pmid">35055382</pub-id></citation></ref>
<ref id="B13">
<label>13</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Gonz&#xe1;lez-Vidal</surname> <given-names>T</given-names>
</name>
<name>
<surname>Rivas-Otero</surname> <given-names>D</given-names>
</name>
<name>
<surname>Guti&#xe9;rrez-Hurtado</surname> <given-names>A</given-names>
</name>
<name>
<surname>Alonso Felgueroso</surname> <given-names>C</given-names>
</name>
<name>
<surname>Mart&#xed;nez Tam&#xe9;s</surname> <given-names>G</given-names>
</name>
<name>
<surname>Lambert</surname> <given-names>C</given-names>
</name>
<etal/>
</person-group>. <article-title>Hypoglycemia in patients with type 2 diabetes mellitus during hospitalization: associated factors and prognostic value</article-title>. <source>Diabetol Metab Syndr</source>. (<year>2023</year>) <volume>15</volume>(<issue>1</issue>):<fpage>249</fpage>. doi:&#xa0;<pub-id pub-id-type="doi">10.1186/s13098-023-01212-9</pub-id>, PMID: <pub-id pub-id-type="pmid">38044455</pub-id></citation></ref>
<ref id="B14">
<label>14</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Akirov</surname> <given-names>A</given-names>
</name>
<name>
<surname>Amitai</surname> <given-names>O</given-names>
</name>
<name>
<surname>Masri-Iraqi</surname> <given-names>H</given-names>
</name>
<name>
<surname>Diker-Cohen</surname> <given-names>T</given-names>
</name>
<name>
<surname>Shochat</surname> <given-names>T</given-names>
</name>
<name>
<surname>Eizenberg</surname> <given-names>Y</given-names>
</name>
<etal/>
</person-group>. <article-title>Predictors of hypoglycemia in hospitalized patients with diabetes mellitus</article-title>. <source>Intern Emerg Med</source>. (<year>2018</year>) <volume>13</volume>(<issue>3</issue>):<page-range>343&#x2013;50</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.1007/s11739-018-1787-0</pub-id>, PMID: <pub-id pub-id-type="pmid">29340912</pub-id></citation></ref>
<ref id="B15">
<label>15</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Lipska</surname> <given-names>KJ</given-names>
</name>
<name>
<surname>Warton</surname> <given-names>EM</given-names>
</name>
<name>
<surname>Huang</surname> <given-names>ES</given-names>
</name>
<name>
<surname>Moffet</surname> <given-names>HH</given-names>
</name>
<name>
<surname>Inzucchi</surname> <given-names>SE</given-names>
</name>
<name>
<surname>Krumholz</surname> <given-names>HM</given-names>
</name>
<etal/>
</person-group>. <article-title>HbA1c and risk of severe hypoglycemia in type 2 diabetes</article-title>. <source>Diabetes Care</source>. (<year>2013</year>) <volume>36</volume>(<issue>15</issue>): <page-range>3535&#x2013;42</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.2337/dc13-0610</pub-id>, PMID: <pub-id pub-id-type="pmid">23900589</pub-id></citation></ref>
<ref id="B16">
<label>16</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Pratiwi</surname> <given-names>C</given-names>
</name>
<name>
<surname>Mokoagow</surname> <given-names>MI</given-names>
</name>
<name>
<surname>Made Kshanti</surname> <given-names>IA</given-names>
</name>
<name>
<surname>Soewondo</surname> <given-names>P</given-names>
</name>
</person-group>. <article-title>The risk factors of inpatient hypoglycemia: A systematic review</article-title>. <source>Heliyon</source>. (<year>2020</year>) <volume>6</volume>(<issue>5</issue>):<elocation-id>e03913</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1016/j.heliyon.2020.e03913</pub-id>, PMID: <pub-id pub-id-type="pmid">32420485</pub-id></citation></ref>
<ref id="B17">
<label>17</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Al-Azayzih</surname> <given-names>A</given-names>
</name>
<name>
<surname>Kanaan</surname> <given-names>RJ</given-names>
</name>
<name>
<surname>Altawalbeh</surname> <given-names>SM</given-names>
</name>
<name>
<surname>Alzoubi</surname> <given-names>KH</given-names>
</name>
<name>
<surname>Kharaba</surname> <given-names>Z</given-names>
</name>
<name>
<surname>Jarab</surname> <given-names>A</given-names>
</name>
</person-group>. <article-title>Prevalence and predictors of hypoglycemia in older outpatients with type 2 diabetes mellitus</article-title>. <source>PloS One</source>. (<year>2024</year>) <volume>19</volume>(<issue>8</issue>):<elocation-id>e0309618</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.1371/journal.pone.0309618</pub-id>, PMID: <pub-id pub-id-type="pmid">39208059</pub-id></citation></ref>
<ref id="B18">
<label>18</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Zhang</surname> <given-names>RT</given-names>
</name>
<name>
<surname>Liu</surname> <given-names>Y</given-names>
</name>
<name>
<surname>Sun</surname> <given-names>C</given-names>
</name>
<name>
<surname>Wu</surname> <given-names>QY</given-names>
</name>
<name>
<surname>Guo</surname> <given-names>H</given-names>
</name>
<name>
<surname>Wang</surname> <given-names>GM</given-names>
</name>
<etal/>
</person-group>. <article-title>Predicting hypoglycemia in elderly inpatients with type 2 diabetes: the ADOCHBIU model</article-title>. <source>Front Endocrinol</source>. (<year>2024</year>) <volume>15</volume>:<elocation-id>1366184</elocation-id>. doi:&#xa0;<pub-id pub-id-type="doi">10.3389/fendo.2024.1366184</pub-id>, PMID: <pub-id pub-id-type="pmid">39610841</pub-id></citation></ref>
<ref id="B19">
<label>19</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Ruan</surname> <given-names>Y</given-names>
</name>
<name>
<surname>Bellot</surname> <given-names>A</given-names>
</name>
<name>
<surname>Moysova</surname> <given-names>Z</given-names>
</name>
<name>
<surname>Tan</surname> <given-names>GD</given-names>
</name>
<name>
<surname>Lumb</surname> <given-names>A</given-names>
</name>
<name>
<surname>Davies</surname> <given-names>J</given-names>
</name>
<etal/>
</person-group>. <article-title>Predicting the risk of inpatient hypoglycemia with machine learning using electronic health records</article-title>. <source>Diabetes Care</source>. (<year>2020</year>) <volume>43</volume>(<issue>7</issue>):<page-range>1504&#x2013;11</page-range>. doi:&#xa0;<pub-id pub-id-type="doi">10.2337/dc19-1743</pub-id>, PMID: <pub-id pub-id-type="pmid">32350021</pub-id></citation></ref>
<ref id="B20">
<label>20</label>
<citation citation-type="journal">
<person-group person-group-type="author">
<name>
<surname>Jia</surname> <given-names>H</given-names>
</name>
<name>
<surname>Zhang</surname> <given-names>J</given-names>
</name>
</person-group>. <article-title>Machine learning-based prediction of hypoglycemia severity in hospitalized diabetic patients</article-title>. <source>Res Square</source>. (<year>2025</year>). doi:&#xa0;<pub-id pub-id-type="doi">10.21203/rs.3.rs-6619286/v1</pub-id>
</citation></ref>
</ref-list>
</back>
</article>