<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "journalpublishing.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="2.0" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="nlm-ta">JMIR Med Inform</journal-id><journal-id journal-id-type="publisher-id">medinform</journal-id><journal-id journal-id-type="index">7</journal-id><journal-title>JMIR Medical Informatics</journal-title><abbrev-journal-title>JMIR Med Inform</abbrev-journal-title><issn pub-type="epub">2291-9694</issn><publisher><publisher-name>JMIR Publications</publisher-name><publisher-loc>Toronto, Canada</publisher-loc></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">v14i1e83889</article-id><article-id pub-id-type="doi">10.2196/83889</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Prediction of Blood Transfusion Need and Dose in Patients With Upper Gastrointestinal Bleeding: Retrospective Multicenter Prediction Model Study</article-title></title-group><contrib-group><contrib contrib-type="author" equal-contrib="yes"><name name-style="western"><surname>Li</surname><given-names>Xiaoyu</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff2">2</xref><xref ref-type="fn" rid="equal-contrib1">*</xref></contrib><contrib contrib-type="author" equal-contrib="yes"><name name-style="western"><surname>He</surname><given-names>Yuqin</given-names></name><degrees>BMedSci</degrees><xref ref-type="aff" rid="aff3">3</xref><xref ref-type="fn" rid="equal-contrib1">*</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Hou</surname><given-names>Mingyang</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Yu</surname><given-names>Zhi</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Miao</surname><given-names>Shuai</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Huang</surname><given-names>Zhiyong</given-names></name><degrees>PhD, Prof Dr</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Yang</surname><given-names>Min</given-names></name><degrees>PhD, Prof Dr Med</degrees><xref ref-type="aff" rid="aff3">3</xref></contrib></contrib-group><aff id="aff1"><institution>School of Microelectronics and Communication Engineering, Chongqing University</institution><addr-line>No. 174 Shazheng Street, Shapingba District</addr-line><addr-line>Chongqing</addr-line><country>China</country></aff><aff id="aff2"><institution>Bioengineering College of Chongqing University, Chongqing University</institution><addr-line>Chongqing</addr-line><country>China</country></aff><aff id="aff3"><institution>Department of Gastroenterology, Daping Hospital, Army Medical Center of PLA, Army Medical University</institution><addr-line>Chongqing</addr-line><country>China</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Benis</surname><given-names>Arriel</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Yang</surname><given-names>Chih-Yuan</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Dixit</surname><given-names>Rinku Sharma</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Palama</surname><given-names>Valentina</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Zhiyong Huang, PhD, Prof Dr, School of Microelectronics and Communication Engineering, Chongqing University, No. 174 Shazheng Street, Shapingba District, Chongqing, 400044, China, 86 023-65678860; <email>zyhuang@cqu.edu.cn</email></corresp><fn fn-type="equal" id="equal-contrib1"><label>*</label><p>these authors contributed equally</p></fn></author-notes><pub-date pub-type="collection"><year>2026</year></pub-date><pub-date pub-type="epub"><day>4</day><month>8</month><year>2026</year></pub-date><volume>14</volume><elocation-id>e83889</elocation-id><history><date date-type="received"><day>10</day><month>09</month><year>2025</year></date><date date-type="rev-recd"><day>01</day><month>06</month><year>2026</year></date><date date-type="accepted"><day>12</day><month>06</month><year>2026</year></date></history><copyright-statement>&#x00A9; Xiaoyu Li, Yuqin He, Mingyang Hou, Zhi Yu, Shuai Miao, Zhiyong Huang, Min Yang. Originally published in JMIR Medical Informatics (<ext-link ext-link-type="uri" xlink:href="https://medinform.jmir.org">https://medinform.jmir.org</ext-link>), 4.8.2026. </copyright-statement><copyright-year>2026</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link>), 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 <ext-link ext-link-type="uri" xlink:href="https://medinform.jmir.org/">https://medinform.jmir.org/</ext-link>, as well as this copyright and license information must be included.</p></license><self-uri xlink:type="simple" xlink:href="https://medinform.jmir.org/2026/1/e83889"/><abstract><sec><title>Background</title><p>Transfusion thresholds in upper gastrointestinal bleeding are debated; hemoglobin cutoffs of 70&#x2010;80 g/L are widely cited yet inconsistently applied. Common risk scores offer limited individualized guidance and rarely provide calibrated, interpretable predictions for transfusion decisions.</p></sec><sec><title>Objective</title><p>This study aimed to develop and validate a two-stage, clinically constrained gradient-boosting framework (Medically Constrained Gradient Boosting [MCGB]) that predicts transfusion need and estimates transfusion dose with quantified uncertainty and to implement a prototype recommendation system for clinical use.</p></sec><sec sec-type="methods"><title>Methods</title><p>We analyzed a retrospective multicenter cohort of 849 adults with endoscopically confirmed upper gastrointestinal bleeding admitted to 3 hospitals in Chongqing, China (January 2019 to August 2025). Predictors available before the transfusion decision included demographics, first recorded vital signs, initial laboratory indices, and clinician-adjudicated etiology. Stage 1 used a calibrated classifier with prespecified monotonic constraints and stability-screened, clinically justified interactions. Stage 2 modeled transfusion dose via quantile predictions with conformal adjustment to generate 95% prediction intervals. Performance was assessed using a cross-site hold-out design. Overall, 2 hospitals were used as the development cohort, within which stratified 5-fold cross-validation was performed for model development, hyperparameter tuning, interaction screening, and calibration. The remaining hospital was held out as an independent test cohort for final evaluation. Hospital-wise alternating external testing was further conducted as a supplementary robustness analysis to assess performance stability across institutions. Classification performance was evaluated using discrimination metrics (area under the receiver operating characteristic curve and area under the precision-recall curve), calibration metrics, and decision-curve analysis; regression performance was evaluated using <italic>R</italic>&#x00B2;, mean absolute error, and prediction-interval coverage. A graphical user interface was implemented to enable clinicians to input patient data and obtain calibrated predictions of transfusion probability and corresponding dose recommendations.</p></sec><sec sec-type="results"><title>Results</title><p>MCGB achieved strong discrimination and good calibration across subgroups (area under the receiver operating characteristic curve=0.97 and area under the precision-recall curve=0.91). At a reference probability threshold of .50, sensitivity, specificity, and <italic>F</italic><sub>1</sub>-scores were 0.99, 0.87, and 0.85, respectively, providing a representative operating point for comparison. For dose prediction among transfused patients, MCGB achieved <italic>R</italic>&#x00B2; of 0.95 and mean absolute error 0.04; 95% prediction-interval coverage was 0.94, indicating accurate point estimates with reliable uncertainty quantification. The software prototype further demonstrated feasibility of real-time decision support at the bedside.</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>MCGB provides calibrated, interpretable predictions of transfusion need and individualized dose in upper gastrointestinal bleeding and may support bedside decision-making and blood-bank planning, with a prototype interface demonstrating potential for clinical deployment. External validation in additional settings is warranted to confirm generalizability.</p></sec></abstract><kwd-group><kwd>blood transfusion</kwd><kwd>decision support systems, clinical</kwd><kwd>electronic health records</kwd><kwd>gastrointestinal hemorrhage</kwd><kwd>machine learning</kwd><kwd>regression analysis</kwd><kwd>ROC curve</kwd><kwd>receiver operating characteristic</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>Upper gastrointestinal bleeding (UGIB) is a frequent emergency in gastroenterology and acute care [<xref ref-type="bibr" rid="ref1">1</xref>]. Common etiologies include rupture of esophageal or gastric varices in cirrhosis, peptic ulcer disease, erosive hemorrhagic gastritis, and malignant tumors [<xref ref-type="bibr" rid="ref2">2</xref>]. Rapid blood loss can precipitate hypotension and coagulopathy with peripheral circulatory failure, progressing to shock and death without timely resuscitation and blood transfusion [<xref ref-type="bibr" rid="ref3">3</xref>-<xref ref-type="bibr" rid="ref5">5</xref>]. Although hemoglobin thresholds of 70&#x2010;80 g/L are widely cited, clinical application varies across centers and patient profiles [<xref ref-type="bibr" rid="ref6">6</xref>,<xref ref-type="bibr" rid="ref7">7</xref>], reflecting differences in comorbidity burden, cardiopulmonary reserve, ongoing hemorrhage risk, and the rate and dose of bleeding [<xref ref-type="bibr" rid="ref8">8</xref>,<xref ref-type="bibr" rid="ref9">9</xref>]. These realities motivate decision support that is both individualized and reproducible.</p><p>Risk scores such as Glasgow-Blatchford, admission Rockall, and AIMS65 are widely used for early triage in UGIB [<xref ref-type="bibr" rid="ref10">10</xref>-<xref ref-type="bibr" rid="ref12">12</xref>]. They stratify short-term risk but do not provide calibrated, individualized probabilities of transfusion or quantitative guidance on transfusion dose. Fixed cutoffs may be sensitive to local practice and case mix and can underperform when clinical heterogeneity is high [<xref ref-type="bibr" rid="ref13">13</xref>,<xref ref-type="bibr" rid="ref14">14</xref>]. From a systems perspective, uncertainty about transfusion need and dose complicates blood-bank operations, cross-matching, and inventory management during busy endoscopy schedules or resource-constrained periods. A tool that yields reliable risk estimates and dose guidance could improve bedside decision-making while supporting operational planning.</p><p>Machine learning has improved discrimination in many clinical prediction tasks and sometimes outperforms traditional scores [<xref ref-type="bibr" rid="ref15">15</xref>,<xref ref-type="bibr" rid="ref16">16</xref>]. However, prior work on transfusion decision support has several limitations that hinder clinical uptake. First, models are often difficult to interpret, which impedes bedside discussion and auditability [<xref ref-type="bibr" rid="ref17">17</xref>]. Second, probability calibration is inconsistent, limiting safe threshold selection and net-benefit optimization [<xref ref-type="bibr" rid="ref18">18</xref>,<xref ref-type="bibr" rid="ref19">19</xref>]. Third, performance can degrade across hospitals and etiologies due to distributional shift. Fourth, preprocessing pipelines sometimes use the full dataset rather than being refit within cross-validation folds, increasing the risk of information leakage and optimistic estimates [<xref ref-type="bibr" rid="ref20">20</xref>,<xref ref-type="bibr" rid="ref21">21</xref>]. Finally, most studies stop at binary classification and do not estimate transfusion dose or communicate uncertainty for resource allocation. These gaps suggest that methodological choices should encode clinical directionality, preserve interpretability, control information flow during training, and report both discrimination and calibration alongside clinical utility [<xref ref-type="bibr" rid="ref22">22</xref>,<xref ref-type="bibr" rid="ref23">23</xref>].</p><p>Electronic health records (EHRs) capture the measurements typically available before a transfusion decision, including demographics, initial vital signs, key laboratory indices, and clinician-adjudicated etiology [<xref ref-type="bibr" rid="ref24">24</xref>]. Leveraging these data for actionable decision support requires models that map to clinical reasoning while remaining robust across centers [<xref ref-type="bibr" rid="ref25">25</xref>]. Monotonic constraints can encode established relationships such as higher international normalized ratio (INR) or longer prothrombin time (PT) increasing transfusion risk, and higher hemoglobin, hematocrit, or blood pressure decreasing risk. Curating a small, clinically justified set of feature interactions can improve fit without sacrificing transparency. Calibration methods can align predicted probabilities with observed risks, enabling thresholds derived from decision-curve analysis to reflect clinical utility [<xref ref-type="bibr" rid="ref26">26</xref>].</p><p>This study develops and validates a 2-stage, clinically constrained framework&#x2014;Medically Constrained Gradient Boosting (MCGB)&#x2014;for transfusion decision support in UGIB using multicenter EHR data. Stage 1 produces calibrated, interpretable probabilities of transfusion need by imposing monotonic clinical directionality and retaining a stability-screened set of clinically justified interactions. Stage 2 estimates transfusion dose using quantile predictions with conformal adjustment to provide 95% prediction intervals, communicating uncertainty for blood-bank planning. The aim is to deliver a reproducible, well-calibrated, and robust tool that supports bedside decisions and operational workflows across heterogeneous hospitals and etiologies.</p></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Overview</title><p>The transfusion decision system used a 2-stage framework termed MCGB. A calibrated classifier first estimates the probability of transfusion using monotonic constraints on prespecified laboratory and physiological variables to encode clinically consistent directionality, together with a stability-screened interaction allowlist. To enhance robustness across settings, training optimizes a group distributionally robust objective over hospital, etiology, and admission-period strata; predicted probabilities are calibrated by temperature scaling, and the operating threshold is selected with decision-curve analysis to align classification with clinical utility [<xref ref-type="bibr" rid="ref27">27</xref>,<xref ref-type="bibr" rid="ref28">28</xref>]. Patients predicted to require transfusion are then modeled with a regression component that estimates blood units via quantile predictions with conformal adjustment, yielding 95% prediction intervals to communicate uncertainty for blood-allocation planning [<xref ref-type="bibr" rid="ref29">29</xref>,<xref ref-type="bibr" rid="ref30">30</xref>]. All preprocessing&#x2014;Winsorization at the first and 99th percentiles, median imputation, indicator encoding, and interaction construction&#x2014;is confined to cross-validation folds and applied only to the corresponding calibration and test splits to prevent information leakage. Candidate interactions arise from continuous-by-etiology and continuous-by-continuous pairs, are filtered for high correlation, ranked by mutual information and distance correlation, and retained when they meet prespecified stability criteria, following a screen-in principle that preserves interpretability, reproducibility, and transparency; the overall workflow is shown in <xref ref-type="fig" rid="figure1">Figure 1</xref>.</p><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Overall workflow of the MCGB (Medically Constrained Gradient Boosting) framework for transfusion decision support.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e83889_fig01.png"/></fig></sec><sec id="s2-2"><title>Ethical Considerations</title><p>The study protocol was reviewed and approved by the institutional ethics committees of Daping Hospital, Army Medical Center of PLA, Army Medical University; the Third People&#x2019;s Hospital of Chongqing; and the 13th People&#x2019;s Hospital of Chongqing. The requirement for individual informed consent was waived because the analysis used routinely collected EHR data that were deidentified before analysis and posed minimal risk to participants. Data were handled in secure, access-controlled environments under institutional data-use agreements; only coded study identifiers were used, and direct personal identifiers were not accessible to investigators. All procedures complied with the Declaration of Helsinki and applicable local regulations. The project did not involve any prospective intervention and was not registered as a clinical trial.</p></sec><sec id="s2-3"><title>Data and Dataset</title><p>Routinely collected data were retrieved from the clinical data warehouses of 3 hospitals in Chongqing, China. Consecutive adults with endoscopically confirmed UGIB between January 2019 and August 2025 were screened. A total of 849 patients met the inclusion criteria, including 655 nontransfusion cases and 194 transfusion cases. The cohort comprised 264 patients from the Third Affiliated Hospital of the Third Military Medical University, 326 patients from the Third People&#x2019;s Hospital of Chongqing, and 259 patients from the 13th People&#x2019;s Hospital of Chongqing. Exclusion criteria included insufficient clinical data, non-UGIB bleeding, incomplete diagnostic or therapeutic care, self-discharge, transfusion before the index decision, and missing key variables required for model development. The study was approved by the institutional ethics committees of all 3 hospitals, with a waiver of informed consent due to the retrospective design.</p><p>Predictors available within 24 hours before the transfusion decision were extracted from the EHR and included demographics, first recorded vital signs at presentation, and initial laboratory results obtained prior to the transfusion decision (covering hematology, coagulation, renal function, albumin, and electrolytes), as well as clinician-adjudicated bleeding etiology encoded as 5 binary indicators. Units were harmonized across centers, and variables not available before the transfusion decision were excluded to prevent data leakage. Patients with missing key variables required for modeling were excluded during cohort construction, resulting in a largely complete analytic dataset. Continuous variables were processed using a median imputation strategy as part of a standardized preprocessing pipeline, although imputation was rarely required in practice due to the near-complete nature of the data. Categorical variables were one-hot encoded, and missingness indicators for selected laboratory tests were constructed to preserve compatibility with potential real-world scenarios in which data may be incomplete. Pairwise correlations were summarized to characterize relationships among predictors while preserving clinically relevant variables. For descriptive comparisons, transfused and nontransfused groups were analyzed using Student <italic>t</italic> tests or nonparametric equivalents for continuous variables and chi-square or Fisher exact tests for categorical variables; 2-sided <italic>P</italic> values are reported in <xref ref-type="table" rid="table1">Table 1</xref>.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Baseline characteristics for the nontransfusion and transfusion groups.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Variable</td><td align="left" valign="bottom">Nontransfusion group (n=655)</td><td align="left" valign="bottom">Transfusion group (n=194)</td><td align="left" valign="bottom"><italic>P</italic> value</td></tr></thead><tbody><tr><td align="left" valign="top" colspan="4">Demographics</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Male, n (%)</td><td align="char" char="." valign="top">435 (66.4)</td><td align="char" char="." valign="top">126 (64.9)</td><td align="char" char="." valign="top">.67</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Female, n (%)</td><td align="char" char="." valign="top">220 (33.6)</td><td align="char" char="." valign="top">68 (35.1)</td><td align="char" char="." valign="top">.67</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Age (y), mean (SD)</td><td align="char" char="." valign="top">66.09 (13.74)</td><td align="char" char="." valign="top">66.77 (13.74)</td><td align="char" char="." valign="top">.55</td></tr><tr><td align="left" valign="top" colspan="4">Vital signs, mean (SD)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Temperature (&#x00B0;C)</td><td align="char" char="." valign="top">36.53 (0.28)</td><td align="char" char="." valign="top">36.58 (0.28)</td><td align="char" char="." valign="top">.03</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Pulse (beats/min)</td><td align="char" char="." valign="top">86.61 (14.72)</td><td align="char" char="." valign="top">93.19 (16.85)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Respiratory rate (breaths/min)</td><td align="char" char="." valign="top">20.03 (2.62)</td><td align="char" char="." valign="top">20.34 (2.62)</td><td align="char" char="." valign="top">.15</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>SBP<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup> (mm Hg)</td><td align="char" char="." valign="top">123.72 (18.64)</td><td align="char" char="." valign="top">114.37 (20.51)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>DBP<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup> (mm Hg)</td><td align="char" char="." valign="top">72.84 (11.28)</td><td align="char" char="." valign="top">65.07 (12.44)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top" colspan="4">Laboratory parameters, mean (SD)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Hematocrit (%)</td><td align="char" char="." valign="top">36.40 (7.21)</td><td align="char" char="." valign="top">22.57 (6.48)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Platelets (&#x00D7;10&#x2079;/L)</td><td align="char" char="." valign="top">177.00 (32.40)</td><td align="char" char="." valign="top">187.10 (35.20)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Hemoglobin (g/L)</td><td align="char" char="." valign="top">105.28 (21.46)</td><td align="char" char="." valign="top">71.72 (18.35)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Fibrinogen (g/L)</td><td align="char" char="." valign="top">3.09 (0.81)</td><td align="char" char="." valign="top">2.76 (0.77)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>INR<sup><xref ref-type="table-fn" rid="table1fn3">c</xref></sup></td><td align="char" char="." valign="top">1.19 (0.31)</td><td align="char" char="." valign="top">2.72 (1.16)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>PT<sup><xref ref-type="table-fn" rid="table1fn4">d</xref></sup> (s)</td><td align="char" char="." valign="top">12.17 (2.18)</td><td align="char" char="." valign="top">17.64 (6.21)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>APTT<sup><xref ref-type="table-fn" rid="table1fn5">e</xref></sup> (s)</td><td align="char" char="." valign="top">29.39 (5.75)</td><td align="char" char="." valign="top">30.66 (5.75)</td><td align="char" char="." valign="top">.01</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>BUN<sup><xref ref-type="table-fn" rid="table1fn6">f</xref></sup> (mmol/L)</td><td align="char" char="." valign="top">10.68 (2.46)</td><td align="char" char="." valign="top">11.58 (2.83)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Albumin (g/L)</td><td align="char" char="." valign="top">37.91 (5.07)</td><td align="char" char="." valign="top">34.51 (5.45)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Potassium (mmol/L)</td><td align="char" char="." valign="top">4.13 (0.14)</td><td align="char" char="." valign="top">4.08 (0.16)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Calcium (mmol/L)</td><td align="char" char="." valign="top">2.26 (0.17)</td><td align="char" char="." valign="top">2.07 (0.19)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top" colspan="4">Etiology, n (%)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>REV<sup><xref ref-type="table-fn" rid="table1fn7">g</xref></sup></td><td align="char" char="." valign="top">141 (21.5)</td><td align="char" char="." valign="top">57 (29.4)</td><td align="char" char="." valign="top">.02</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>PU<sup><xref ref-type="table-fn" rid="table1fn8">h</xref></sup></td><td align="char" char="." valign="top">116 (17.7)</td><td align="char" char="." valign="top">91 (46.9)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>AG<sup><xref ref-type="table-fn" rid="table1fn9">i</xref></sup></td><td align="char" char="." valign="top">116 (17.7)</td><td align="char" char="." valign="top">12 (6.2)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>MT<sup><xref ref-type="table-fn" rid="table1fn10">j</xref></sup></td><td align="char" char="." valign="top">99 (15.1)</td><td align="char" char="." valign="top">19 (9.8)</td><td align="char" char="." valign="top">.01</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Others</td><td align="char" char="." valign="top">183 (27.9)</td><td align="char" char="." valign="top">15 (7.7)</td><td align="char" char="." valign="top">&#x003C;.001</td></tr></tbody></table><table-wrap-foot><fn id="table1fn1"><p><sup>a</sup>SBP: systolic blood pressure.</p></fn><fn id="table1fn2"><p><sup>b</sup>DBP: diastolic blood pressure.</p></fn><fn id="table1fn3"><p><sup>c</sup>INR: international normalized ratio.</p></fn><fn id="table1fn4"><p><sup>d</sup>PT: prothrombin time.</p></fn><fn id="table1fn5"><p><sup>e</sup>APTT: activated partial thromboplastin time.</p></fn><fn id="table1fn6"><p><sup>f</sup>BUN: blood urea nitrogen.</p></fn><fn id="table1fn7"><p><sup>g</sup>REV: rupture of esophageal varices. </p></fn><fn id="table1fn8"><p><sup>h</sup>PU: peptic ulcer.</p></fn><fn id="table1fn9"><p><sup>i</sup>AG: acute gastritis.</p></fn><fn id="table1fn10"><p><sup>j</sup>MT: malignant tumor.</p></fn></table-wrap-foot></table-wrap><p>To further characterize the relationships among predictors and enhance transparency in model interpretation, pairwise correlations were first examined using a heat map <xref ref-type="fig" rid="figure2">Figure 2A</xref>, providing an overview of feature dependencies while retaining clinically relevant variables. Building on this analysis, model outputs were subsequently examined using Shapley additive explanations (SHAP), as illustrated in <xref ref-type="fig" rid="figure2">Figure 2B</xref>. Each point represents an individual patient from the evaluation set, and the horizontal axis indicates the SHAP value, which quantifies the contribution of each feature to the predicted probability of transfusion [<xref ref-type="bibr" rid="ref31">31</xref>,<xref ref-type="bibr" rid="ref32">32</xref>]. Positive SHAP values indicate an increased predicted risk, whereas negative values indicate a decreased risk, and the color represents the original feature value, with red denoting higher values and blue denoting lower values. Key predictors showed clinically coherent patterns: lower hemoglobin and hematocrit levels were associated with a higher predicted probability of transfusion, whereas higher values shifted predictions toward lower risk. Coagulation-related indices and hemodynamic variables also exhibited consistent directional effects that aligned with established clinical understanding of bleeding severity and transfusion requirements. Overall, these findings indicate that the model captures clinically meaningful and plausible relationships among predictors, supporting the interpretability and reliability of the MCGB classifier.</p><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>(A) Variable correlation heat map. (B) SHAP summary for transfusion predictors: each dot=patient; x-axis=SHAP value (positive &#x2192; higher probability, negative &#x2192; lower); color=feature value (red high, blue low). AG: acute erosive gastritis; Alb: albumin; APTT: activated partial thromboplastin time; BUN: blood urea nitrogen; Ca: calcium; DBP: diastolic blood pressure; Fib: fibrinogen; Hb: hemoglobin; Hct: hematocrit; INR: international normalized ratio; K: potassium; MT: malignant tumor; P: pulse; Plt: platelets; PT: prothrombin time; PU: peptic ulcer; R: respiratory rate; REV: rupture of esophageal varices; SBP: systolic blood pressure; Scr: serum creatinine; SHAP: Shapley additive explanations; T: temperature.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e83889_fig02.png"/></fig></sec><sec id="s2-4"><title>Model Building</title><p>In this study, the MCGB framework is proposed to extend standard gradient boosting by integrating 3 clinically motivated components: (1) monotonic constraints to enforce clinically consistent relationships, (2) interaction whitelisting to restrict feature interactions to stable and interpretable pairs, and (3) subgroup-aware reweighting to improve robustness across heterogeneous populations. These extensions are designed to improve both predictive performance and clinical reliability.</p><p>The dataset is represented as <inline-formula><mml:math id="ieqn1"><mml:msub><mml:mrow><mml:mi>D</mml:mi><mml:mo>=</mml:mo><mml:mo>(</mml:mo><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:math></inline-formula>, where <inline-formula><mml:math id="ieqn2"><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2208;</mml:mo><mml:msup><mml:mrow><mml:mi mathvariant="double-struck">R</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:math></inline-formula> denotes the input features, <inline-formula><mml:math id="ieqn3"><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2208;</mml:mo><mml:mi mathvariant="double-struck">R</mml:mi></mml:math></inline-formula> denotes the corresponding outcome, and <inline-formula><mml:math id="ieqn4"><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1,2</mml:mn><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:mi>n</mml:mi></mml:math></inline-formula> indexes the samples. Following the standard gradient boosting formulation, the boosted predictor after <inline-formula><mml:math id="ieqn5"><mml:mi>T</mml:mi></mml:math></inline-formula> rounds can be expressed as:</p><disp-formula id="E1"><label>(1)</label><mml:math id="eqn1"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mtable rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:mtext>&#x00A0;</mml:mtext><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:munderover><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>t</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:munderover><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mtext>&#x00A0;</mml:mtext><mml:mtext>&#x00A0;</mml:mtext><mml:mtext>&#x00A0;</mml:mtext><mml:mtext>&#x00A0;</mml:mtext><mml:mtext>&#x00A0;</mml:mtext><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2208;</mml:mo><mml:mrow><mml:mi mathvariant="fraktur">F</mml:mi></mml:mrow><mml:mo>,</mml:mo><mml:mtext>&#x00A0;</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:mstyle></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>where <inline-formula><mml:math id="ieqn6"><mml:mi mathvariant="script">F</mml:mi></mml:math></inline-formula> denotes the space of regression trees mapping <inline-formula><mml:math id="ieqn7"><mml:msup><mml:mrow><mml:mi mathvariant="double-struck">R</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:math></inline-formula> to <inline-formula><mml:math id="ieqn8"><mml:mi mathvariant="double-struck">R</mml:mi></mml:math></inline-formula>. Each tree partitions the data into leaves and assigns a score <inline-formula><mml:math id="ieqn9"><mml:msub><mml:mrow><mml:mi>w</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>. The boosting procedure iteratively refines predictions through stage-wise optimization, while the proposed extensions introduce clinically informed constraints and reweighting mechanisms to enhance robustness and consistency. The optimization objective at iteration <italic>t</italic> is expressed as:</p><disp-formula id="E2"><label>(2)</label><mml:math id="eqn2"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mtable rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:mi>O</mml:mi><mml:mi>b</mml:mi><mml:msub><mml:mi>j</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:munderover><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:munderover><mml:mrow><mml:mi mathvariant="fraktur">l</mml:mi></mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mi>&#x03B3;</mml:mi><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mfrac><mml:mi>&#x03BB;</mml:mi><mml:mn>2</mml:mn></mml:mfrac><mml:munderover><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:munderover><mml:msubsup><mml:mi>w</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mtext>&#x00A0;</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:mstyle></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>where &#x03B3; controls model complexity by penalizing the number of leaves, and &#x03BB; is an L2 regularization parameter on leaf weights.</p><p>A second-order Taylor expansion is applied around <inline-formula><mml:math id="ieqn10"><mml:msub><mml:mrow><mml:mi>F</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>. With first- and second-order derivatives defined as<inline-formula><mml:math id="ieqn11"><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mo>&#x2202;</mml:mo></mml:mrow><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow></mml:msub><mml:mi mathvariant="script">l</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mover accent="true"><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mo>)</mml:mo><mml:msub><mml:mrow><mml:mo>|</mml:mo></mml:mrow><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>F</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="ieqn12"><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msubsup><mml:mrow><mml:mo>&#x2202;</mml:mo></mml:mrow><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mi mathvariant="script">l</mml:mi><mml:mo>(</mml:mo><mml:msub><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mover accent="true"><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mo>)</mml:mo><mml:msub><mml:mrow><mml:mo>|</mml:mo></mml:mrow><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>y</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>F</mml:mi></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:msub></mml:math></inline-formula>, the approximated loss becomes:</p><disp-formula id="E3"><label>(3)</label><mml:math id="eqn3"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mtable rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:mi>l</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mtext>&#x00A0;</mml:mtext><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2248;</mml:mo><mml:mi>l</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mtext>&#x00A0;</mml:mtext><mml:msub><mml:mi>F</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:msub><mml:mi>y</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mtext>&#x00A0;</mml:mtext><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:mrow><mml:mtext>&#x00A0;</mml:mtext></mml:mrow><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mtext>&#x00A0;</mml:mtext><mml:msub><mml:mi>f</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mtd></mml:mtr></mml:mtable></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>To improve robustness across heterogeneous subgroups, MCGB introduces subgroup-aware reweighting of gradients. Specifically, for each predefined subgroup <inline-formula><mml:math id="ieqn13"><mml:mi>g</mml:mi></mml:math></inline-formula>, a softmax-based weighting scheme is defined as:</p><disp-formula id="E4"><label>(4)</label><mml:math id="eqn4"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mtable rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:msub><mml:mi>&#x03C0;</mml:mi><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>&#x03B7;</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mi>exp</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>&#x03B7;</mml:mi><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mover><mml:mi>g</mml:mi><mml:mrow><mml:mo>&#x00B4;</mml:mo></mml:mrow></mml:mover></mml:munder><mml:mi>exp</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>&#x03B7;</mml:mi><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mover><mml:mi>g</mml:mi><mml:mrow><mml:mo>&#x00B4;</mml:mo></mml:mrow></mml:mover></mml:mrow></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mfrac><mml:mo>,</mml:mo><mml:mi mathvariant="normal">#</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:mstyle></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>where <inline-formula><mml:math id="ieqn14"><mml:msub><mml:mrow><mml:mi>L</mml:mi></mml:mrow><mml:mrow><mml:mi>g</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> denotes the loss associated with group <inline-formula><mml:math id="ieqn15"><mml:mi>g</mml:mi></mml:math></inline-formula>, and <inline-formula><mml:math id="ieqn16"><mml:mi>&#x03B7;</mml:mi><mml:mo>&#x00A7;amp;gt;</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula> is a temperature parameter that controls the sharpness of the weighting distribution. For each sample <inline-formula><mml:math id="ieqn17"><mml:mi>i</mml:mi></mml:math></inline-formula>, let <inline-formula><mml:math id="ieqn18"><mml:mi>g</mml:mi><mml:mo>(</mml:mo><mml:mi>i</mml:mi><mml:mo>)</mml:mo></mml:math></inline-formula> denote the group to which the sample belongs. The reweighted derivatives are then defined as <inline-formula><mml:math id="ieqn19"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mo>~</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>&#x03C0;</mml:mi></mml:mrow><mml:mrow><mml:mi>g</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:mi>&#x03B7;</mml:mi><mml:mo>)</mml:mo><mml:mi> </mml:mi><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>and <inline-formula><mml:math id="ieqn20"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mo>~</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>&#x03C0;</mml:mi></mml:mrow><mml:mrow><mml:mi>g</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:mi>&#x03B7;</mml:mi><mml:mo>)</mml:mo><mml:mi> </mml:mi><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, where <inline-formula><mml:math id="ieqn21"><mml:msub><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="ieqn22"><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> are the original first- and second-order derivatives. This design prevents the model from being dominated by majority subgroups and reduces overfitting to site-specific patterns.</p><p>At the tree level, gradients are aggregated within each leaf node. For a leaf <italic>j</italic> with the instance set <inline-formula><mml:math id="ieqn23"><mml:msub><mml:mrow><mml:mi>I</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, the sufficient statistics are defined as <inline-formula><mml:math id="ieqn24"><mml:msub><mml:mrow><mml:mi>G</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:munder><mml:mo stretchy="false">&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi>I</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:munder><mml:mrow><mml:mi mathvariant="normal"> </mml:mi><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>g</mml:mi></mml:mrow><mml:mo>~</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mrow></mml:math></inline-formula> and <inline-formula><mml:math id="ieqn25"><mml:msub><mml:mrow><mml:mi>H</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:munder><mml:mo stretchy="false">&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msub><mml:mrow><mml:mi>I</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:munder><mml:mrow><mml:mi mathvariant="normal"> </mml:mi><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mo>~</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mrow></mml:math></inline-formula>. The quadratic surrogate objective is then approximated as:</p><disp-formula id="E5"><label>(5)</label><mml:math id="eqn5"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mtable rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:mover><mml:mrow><mml:mi>O</mml:mi><mml:mi>b</mml:mi><mml:msup><mml:mi>j</mml:mi><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:mrow><mml:mo>&#x223C;</mml:mo></mml:mover><mml:mo>=</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:munderover><mml:mo movablelimits="false">&#x2211;</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:munderover><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>w</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mi>&#x03BB;</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:msubsup><mml:mi>w</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mi>&#x03B3;</mml:mi><mml:msub><mml:mi>T</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>.</mml:mo><mml:mi mathvariant="normal">#</mml:mi></mml:mtd></mml:mtr></mml:mtable></mml:mstyle></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>The unconstrained optimal leaf weight is given by <inline-formula><mml:math id="ieqn26"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>w</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo>-</mml:mo><mml:mfrac><mml:mrow><mml:msub><mml:mrow><mml:mi>G</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:msub><mml:mrow><mml:mi>H</mml:mi></mml:mrow><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mi>&#x03BB;</mml:mi></mml:mrow></mml:mfrac></mml:math></inline-formula>. In MCGB, this solution is further adjusted to satisfy clinical monotonicity constraints of the form <inline-formula><mml:math id="ieqn27"><mml:mfrac><mml:mrow><mml:mo>&#x2202;</mml:mo><mml:msub><mml:mrow><mml:mi>F</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mo>&#x2202;</mml:mo><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:mfrac><mml:msub><mml:mrow><mml:mi>&#x03C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2265;</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula>, where <inline-formula><mml:math id="ieqn28"><mml:mi> </mml:mi><mml:mi>k</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mi>M</mml:mi></mml:math></inline-formula> denotes features subject to monotonic constraints and <inline-formula><mml:math id="ieqn29"><mml:msub><mml:mrow><mml:mi>&#x03C3;</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2208;</mml:mo><mml:mo>{</mml:mo><mml:mo>-</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mo>+</mml:mo><mml:mn>1</mml:mn><mml:mo>}</mml:mo></mml:math></inline-formula> specifies the expected direction. The feasible solution is obtained by projecting <inline-formula><mml:math id="ieqn30"><mml:mover accent="true"><mml:mrow><mml:mi>w</mml:mi></mml:mrow><mml:mo>^</mml:mo></mml:mover><mml:mi> </mml:mi></mml:math></inline-formula>onto the isotonic cone:</p><disp-formula id="E6"><label>(6)</label><mml:math id="eqn6"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mtable rowspacing="4pt" columnspacing="1em"><mml:mtr><mml:mtd><mml:msup><mml:mi>w</mml:mi><mml:mrow><mml:mo>&#x2217;</mml:mo></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:munder><mml:mrow><mml:mi mathvariant="normal">a</mml:mi><mml:mi mathvariant="normal">r</mml:mi><mml:mi mathvariant="normal">g</mml:mi><mml:mi mathvariant="normal">m</mml:mi><mml:mi mathvariant="normal">i</mml:mi><mml:mi mathvariant="normal">n</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mi mathvariant="italic">A</mml:mi><mml:mi mathvariant="italic">w</mml:mi></mml:mrow><mml:mo>&#x2264;</mml:mo><mml:mi>b</mml:mi></mml:mrow></mml:munder><mml:mfrac><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>w</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mrow><mml:mover><mml:mi>w</mml:mi><mml:mo stretchy="false">^</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:msubsup><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>ensuring that model predictions follow clinically expected trends and preventing implausible extrapolations, thereby improving generalization and trustworthiness.</p><p>The reduction in the surrogate objective when splitting a node into left and right children is quantified by the gain, defined as:</p><disp-formula id="E7"><label>(7)</label><mml:math id="eqn7"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mtext>Gain</mml:mtext><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mfrac><mml:msubsup><mml:mi>G</mml:mi><mml:mi>L</mml:mi><mml:mn>2</mml:mn></mml:msubsup><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mi>L</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mi>&#x03BB;</mml:mi></mml:mrow></mml:mfrac><mml:mo>+</mml:mo><mml:mfrac><mml:msubsup><mml:mi>G</mml:mi><mml:mi>R</mml:mi><mml:mn>2</mml:mn></mml:msubsup><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mi>R</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mi>&#x03BB;</mml:mi></mml:mrow></mml:mfrac><mml:mo>&#x2212;</mml:mo><mml:mfrac><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:msub><mml:mi>G</mml:mi><mml:mi>L</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>G</mml:mi><mml:mi>R</mml:mi></mml:msub><mml:msup><mml:mo stretchy="false">)</mml:mo><mml:mn>2</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:msub><mml:mi>H</mml:mi><mml:mi>L</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>H</mml:mi><mml:mi>R</mml:mi></mml:msub><mml:mo>+</mml:mo><mml:mi>&#x03BB;</mml:mi></mml:mrow></mml:mfrac></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2212;</mml:mo><mml:mi>&#x03B3;</mml:mi></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>To further enhance interpretability and reproducibility, MCGB restricts candidate splits using an interaction whitelist <inline-formula><mml:math id="ieqn31"><mml:mi>W</mml:mi><mml:mo>.</mml:mo></mml:math></inline-formula> To construct this whitelist, a stability-driven selection procedure is employed. Candidate feature pairs are first evaluated using the Friedman <italic>H</italic>-statistic to quantify interaction strength. Pairs with a median <italic>H</italic>-statistic greater than 0.10 across cross-validation folds are retained. To ensure robustness, only interactions that rank among the top five strongest interactions in at least four out of five folds are selected. This process ensures that retained interactions are both statistically stable and clinically plausible. If a node path already includes feature <inline-formula><mml:math id="ieqn32"><mml:mi>p</mml:mi></mml:math></inline-formula>, then a split on feature <inline-formula><mml:math id="ieqn33"><mml:mi>q</mml:mi></mml:math></inline-formula> is admissible only if <inline-formula><mml:math id="ieqn34"><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>p</mml:mi><mml:mo>,</mml:mo><mml:mi> </mml:mi><mml:mi>q</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mi>W</mml:mi></mml:math></inline-formula>. The whitelist itself is defined by a reproducibility criterion,</p><disp-formula id="E8"><label>(8)</label><mml:math id="eqn8"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mn>1</mml:mn><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>p</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mi>q</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mi>W</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mi>m</mml:mi><mml:mi>e</mml:mi><mml:mi>d</mml:mi><mml:mi>i</mml:mi><mml:mi>a</mml:mi><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub><mml:mtext>&#x00A0;</mml:mtext><mml:msubsup><mml:mi>H</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:mi>q</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mi>r</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msubsup><mml:mo>&#x003E;</mml:mo><mml:mn>0.10</mml:mn><mml:mtext>&#x00A0;</mml:mtext><mml:mo>&#x2227;</mml:mo><mml:mi>T</mml:mi><mml:mi>o</mml:mi><mml:mi>p</mml:mi><mml:msub><mml:mn>5</mml:mn><mml:mrow><mml:mi>p</mml:mi><mml:mi>q</mml:mi></mml:mrow></mml:msub><mml:mtext>&#x00A0;</mml:mtext><mml:mo>&#x2265;</mml:mo><mml:mn>4</mml:mn></mml:mrow><mml:mo>}</mml:mo></mml:mrow></mml:mrow><mml:mo>}</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi mathvariant="normal">#</mml:mi></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>Where <inline-formula><mml:math id="ieqn35"><mml:msubsup><mml:mrow><mml:mi>H</mml:mi></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>q</mml:mi></mml:mrow><mml:mrow><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>r</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msubsup></mml:math></inline-formula> is the Friedman <inline-formula><mml:math id="ieqn36"><mml:mi>H</mml:mi></mml:math></inline-formula>-statistic in fold <inline-formula><mml:math id="ieqn37"><mml:mi>r</mml:mi><mml:mi> </mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="ieqn38"><mml:msub><mml:mrow><mml:mi>T</mml:mi><mml:mi>o</mml:mi><mml:mi>p</mml:mi><mml:mn>5</mml:mn></mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mi>q</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the number of folds in which <inline-formula><mml:math id="ieqn39"><mml:mo>(</mml:mo><mml:mi>p</mml:mi><mml:mo>,</mml:mo><mml:mi> </mml:mi><mml:mi>q</mml:mi><mml:mo>)</mml:mo></mml:math></inline-formula> ranks among the 5 strongest interactions. This stability-based selection ensures robustness and reproducibility.</p><p>In summary, the MCGB framework extends classical gradient boosting by incorporating 3 clinically motivated components: monotonicity constraints to enforce clinically consistent relationships, interaction whitelisting to restrict feature interactions to stable and interpretable pairs, and group-wise loss reweighting to improve robustness across heterogeneous clinical subgroups. Together, these components enable the model to achieve not only strong predictive performance but also improved interpretability and stability in real-world clinical settings.</p><p>To evaluate the effectiveness of the proposed framework, all comparator models were implemented using standard libraries (scikit-learn, extreme gradient boosting [XGBoost], and categorical boosting [CatBoost]) and evaluated under the same cross-site hold-out design as the proposed MCGB model. Within the development cohort, each comparator was trained using the same stratified 5-fold cross-validation splits and fold-specific preprocessing pipeline, and the resulting cross-validation&#x2013;derived models were subsequently applied to the independent test cohort. This design ensured a fair comparison while maintaining consistent separation between model development and final evaluation. For the classification task, the compared models included logistic regression (LogReg), multilayer perceptron (MLP), random forest (RF), adaptive boosting (AdaBoost), XGBoost [<xref ref-type="bibr" rid="ref32">32</xref>], and CatBoost [<xref ref-type="bibr" rid="ref33">33</xref>]; for the regression task, the compared models included linear regression (LR), MLP [<xref ref-type="bibr" rid="ref34">34</xref>], RF, AdaBoost, XGBoost, and CatBoost. Hyperparameters for all baseline models were tuned via grid search within the training folds only, with model selection based on validation performance.</p></sec><sec id="s2-5"><title>Model Training</title><p>Model development and validation were conducted using a predefined cross-site hold-out design to assess generalizability. Data from the Third People&#x2019;s Hospital of Chongqing and the 13th People&#x2019;s Hospital of Chongqing were combined as the development cohort, whereas data from the Third Affiliated Hospital of the Third Military Medical University were held out as an independent test cohort. The independent test cohort was not used for preprocessing fitting, feature interaction screening, hyperparameter tuning, calibration, threshold selection, or model selection. Within the development cohort, stratified 5-fold cross-validation was used to preserve the transfusion event rate across folds and to perform model development and internal validation. In each fold, preprocessing steps, including median imputation, one-hot encoding, and interaction construction, were fitted exclusively on the training split and then applied to the corresponding validation fold and the independent test cohort, ensuring strict separation and preventing information leakage. Each fold yielded a cross-validation&#x2013;derived model, and final performance on the independent test cohort was summarized as the mean (SD) across the 5 models. To further examine cross-site robustness, hospital-wise alternating external testing was conducted as a supplementary analysis, in which each hospital was alternately treated as the external test cohort and the remaining 2 hospitals were used for model development. This supplementary analysis was used only to evaluate institutional stability and was not mixed with the primary independent test evaluation.</p><p>Given the moderate class imbalance (655 nontransfusion vs 194 transfusion cases), no explicit resampling was performed in order to preserve the original clinical distribution. Model evaluation therefore emphasized metrics robust to class imbalance, including the area under the precision-recall curve (AUPRC) alongside the area under the receiver operating characteristic curve (AUROC). Predicted probabilities were calibrated using temperature scaling within the development cohort, and the learned calibration parameters were then applied unchanged to the independent test cohort. Model performance was primarily assessed across a range of clinically relevant threshold probabilities using decision curve analysis to reflect potential clinical utility. Results at a reference threshold of 0.50 were additionally reported as a conventional operating point for comparison with prior binary prediction studies. For the interaction ablation analysis, net benefit was additionally evaluated at a threshold probability of 0.20 because this value lies within the low-to-moderate risk range in which clinicians may consider early preparation, closer monitoring, or cross-matching rather than immediate transfusion. Therefore, &#x0394;NB@0.20 was used to assess whether the retained interactions improved clinical utility in an early decision-support setting and was not intended to replace the 0.50 reference threshold used for reporting primary classification performance. Primary discrimination metrics included AUROC and AUPRC, whereas secondary metrics included sensitivity, specificity, positive predictive value, negative predictive value, accuracy, <italic>F</italic><sub>1</sub>-score, and expected calibration error.</p><p>For the regression component among transfused patients, predictive accuracy was evaluated using mean absolute error (MAE) and root-mean-square error, explanatory performance using R&#x00B2;, and uncertainty using empirical coverage and interval width of 95% prediction intervals derived from conformalized quantile prediction. Agreement between predicted and observed transfusion dose was further assessed using Bland&#x2013;Altman analysis.</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><p>As shown in <xref ref-type="fig" rid="figure3">Figures 3A and 3B</xref>, MCGB achieved the best discrimination across all models with an AUROC of mean 0.971 (SD 0.008) and an AUPRC of mean 0.913 (SD 0.022). Relative to the strongest baseline, RF, MCGB improved AUROC by 0.049 (0.971 vs 0.922) and AUPRC by 0.093 (0.913 vs 0.820); gains were larger versus XGBoost (&#x0394;AUROC 0.051; &#x0394;AUPRC 0.126) and CatBoost (&#x0394;AUROC 0.071; &#x0394;AUPRC 0.162). The receiver operating characteristic (ROC) and precision&#x2013;recall curves for MCGB dominate the comparators across clinically relevant thresholds, with the precision&#x2013;recall separation indicating sustained precision at high recall under class imbalance. For AUROC, the 95% bootstrap intervals do not overlap between MCGB (mean 0.971, SD 0.008) and the leading baselines (RF mean 0.922, SD 0.031; XGBoost mean 0.920, SD 0.020); CatBoost mean 0.900 (SD 0.025), supporting a statistically meaningful improvement. AUPRC intervals are largely separated as well, with only marginal overlap relative to RF.</p><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>Discrimination and subgroup robustness of MCGB (Medically Constrained Gradient Boosting). (A) ROC curves on the independent test cohort. (B) Precision&#x2013;recall curves on the independent test cohort. (C) AUROC stratified by hospital in the supplementary hospital-wise alternating external testing analysis. AdaBoost: adaptive boosting; AUPRC: area under the precision-recall curve; AUROC: area under the receiver operating characteristic curve; CatBoost: categorical boosting; MLP: multilayer perceptron; ROC: receiver operating characteristic; XGBoost: extreme gradient boosting.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e83889_fig03.png"/></fig><p>As shown in <xref ref-type="fig" rid="figure3">Figures 3A and 3B</xref>, MCGB achieved the best discrimination across all models with an AUROC of mean 0.971 (SD 0.008) and an AUPRC of mean 0.913 (SD 0.022). Relative to the strongest baseline, RF, MCGB improved AUROC by 0.049 (0.971 vs 0.922) and AUPRC by 0.093 (0.913 vs 0.820); gains were larger versus XGBoost (&#x0394;AUROC 0.051; &#x0394;AUPRC 0.126) and CatBoost (&#x0394;AUROC 0.071; &#x0394;AUPRC 0.162). The ROC and precision&#x2013;recall curves for MCGB dominate the comparators across clinically relevant thresholds, with the precision&#x2013;recall separation indicating sustained precision at high recall under class imbalance. For AUROC, the 95% bootstrap intervals do not overlap between MCGB (mean 0.971, SD 0.008) and the leading baselines (RF mean 0.922, SD 0.031; XGBoost mean 0.920, SD 0.020); CatBoost mean 0.900 (SD 0.025), supporting a statistically meaningful improvement. AUPRC intervals are largely separated as well, with only marginal overlap relative to RF.</p><p><xref ref-type="table" rid="table2">Table 2</xref> summarizes classification performance on the independent test cohort. Values are reported as the mean (SD) across the 5 cross-validation&#x2013;derived models trained within the development cohort. MCGB achieves the best overall performance, with the highest AUROC mean 0.971 (SD 0.008) and AUPRC mean 0.913 (SD 0.022), indicating strong discriminative ability under class imbalance. It also attains the highest accuracy mean 0.922 (SD 0.026) and <italic>F</italic><sub>1</sub>-score mean 0.847 (SD 0.041), reflecting a favorable balance between precision and recall. Notably, MCGB achieves near-perfect sensitivity mean 0.990 (SD 0.013) while maintaining relatively high specificity mean 0.873 (SD 0.032), suggesting effective identification of patients requiring transfusion with acceptable false-positive rates. Tree-based baselines such as RF and XGBoost show competitive discrimination but consistently lower composite performance, whereas linear and shallow models exhibit reduced recall and <italic>F</italic><sub>1</sub>-score despite reasonable AUROC. Overall, MCGB provides a more favorable error profile, which is desirable in safety-critical clinical settings.</p><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Classification performance.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Model</td><td align="left" valign="bottom">AUROC<sup><xref ref-type="table-fn" rid="table2fn1">a</xref></sup>, mean (SD)</td><td align="left" valign="bottom">AUPRC<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup>, mean (SD)</td><td align="left" valign="bottom">Accuracy, mean (SD)</td><td align="left" valign="bottom">Sensitivity, mean (SD)</td><td align="left" valign="bottom">Specificity, mean (SD)</td><td align="left" valign="bottom"><italic>F</italic><sub>1</sub><italic>-</italic>score, mean (SD)</td></tr></thead><tbody><tr><td align="left" valign="top">AdaBoost<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup></td><td align="left" valign="top">0.828 (0.032)</td><td align="left" valign="top">0.617 (0.070)</td><td align="left" valign="top">0.691 (0.028)</td><td align="left" valign="top">0.856 (0.050)</td><td align="left" valign="top">0.642 (0.033)</td><td align="left" valign="top">0.557 (0.044)</td></tr><tr><td align="left" valign="top">CatBoost<sup><xref ref-type="table-fn" rid="table2fn4">d</xref></sup></td><td align="left" valign="top">0.900 (0.025)</td><td align="left" valign="top">0.751 (0.062)</td><td align="left" valign="top">0.721 (0.033)</td><td align="left" valign="top">0.927 (0.037)</td><td align="left" valign="top">0.661 (0.036)</td><td align="left" valign="top">0.602 (0.051)</td></tr><tr><td align="left" valign="top">LogReg<sup><xref ref-type="table-fn" rid="table2fn5">e</xref></sup></td><td align="left" valign="top">0.854 (0.031)</td><td align="left" valign="top">0.649 (0.071)</td><td align="left" valign="top">0.855 (0.024)</td><td align="left" valign="top">0.585 (0.068)</td><td align="left" valign="top">0.934 (0.021)</td><td align="left" valign="top">0.647 (0.058)</td></tr><tr><td align="left" valign="top">MLP<sup><xref ref-type="table-fn" rid="table2fn6">f</xref></sup></td><td align="left" valign="top">0.849 (0.033)</td><td align="left" valign="top">0.652 (0.065)</td><td align="left" valign="top">0.688 (0.030)</td><td align="left" valign="top">0.854 (0.052)</td><td align="left" valign="top">0.639 (0.032)</td><td align="left" valign="top">0.555 (0.049)</td></tr><tr><td align="left" valign="top">RF<sup><xref ref-type="table-fn" rid="table2fn7">g</xref></sup></td><td align="left" valign="top">0.922 (0.031)</td><td align="left" valign="top">0.820 (0.076)</td><td align="left" valign="top">0.705 (0.031)</td><td align="left" valign="top">0.877 (0.047)</td><td align="left" valign="top">0.654 (0.038)</td><td align="left" valign="top">0.575 (0.047)</td></tr><tr><td align="left" valign="top">XGBoost<sup><xref ref-type="table-fn" rid="table2fn8">h</xref></sup></td><td align="left" valign="top">0.920 (0.020)</td><td align="left" valign="top">0.787 (0.056)</td><td align="left" valign="top">0.737 (0.029)</td><td align="left" valign="top">0.944 (0.035)</td><td align="left" valign="top">0.676 (0.034)</td><td align="left" valign="top">0.620 (0.047)</td></tr><tr><td align="left" valign="top">MCGB<sup><xref ref-type="table-fn" rid="table2fn9">i</xref></sup></td><td align="left" valign="top">0.971 (0.008)</td><td align="left" valign="top">0.913 (0.022)</td><td align="left" valign="top">0.922 (0.026)</td><td align="left" valign="top">0.990 (0.013)</td><td align="left" valign="top">0.873 (0.032)</td><td align="left" valign="top">0.847 (0.041)</td></tr></tbody></table><table-wrap-foot><fn id="table2fn1"><p><sup>a</sup>AUROC: area under the receiver operating characteristic curve.</p></fn><fn id="table2fn2"><p><sup>b</sup>AUPRC: area under the precision-recall curve. </p></fn><fn id="table2fn3"><p><sup>c</sup>AdaBoost: adaptive boosting.</p></fn><fn id="table2fn4"><p><sup>d</sup>CatBoost: categorical boosting.</p></fn><fn id="table2fn5"><p><sup>e</sup>LogReg: logistic regression.</p></fn><fn id="table2fn6"><p><sup>f</sup>MLP: multilayer perceptron.</p></fn><fn id="table2fn7"><p><sup>g</sup>RF: random forest.</p></fn><fn id="table2fn8"><p><sup>h</sup>XGBoost: extreme gradient boosting.</p></fn><fn id="table2fn9"><p><sup>i</sup>MCGB: Medically Constrained Gradient Boosting. </p></fn></table-wrap-foot></table-wrap><p><xref ref-type="fig" rid="figure3">Figure 3C</xref> presents model performance stratified by hospital, etiology, and age. Across all strata, MCGB maintained consistently high AUROC with relatively narrow 95% CIs estimated via bootstrapping, indicating stable performance despite variation in subgroup sample sizes (eg, n&#x2248;264/326/259 across hospitals). Although some strata contained fewer samples, the corresponding CIs did not show substantial widening, suggesting that performance estimates remain reliable. As a supplementary robustness analysis, hospital-wise alternating external testing was conducted by alternately holding out each institution as the external test cohort and using the remaining 2 institutions for model development. This analysis was separate from the primary independent test evaluation and was intended to examine cross-site stability under institutional heterogeneity. In contrast, comparator models exhibited greater variability across strata, with more pronounced performance fluctuations in smaller subgroups. This stability of MCGB is consistent with its design, including monotonic constraints that encode clinically plausible relationships and a curated interaction structure that reduces overfitting to site-specific patterns. Overall, these results indicate that MCGB achieves not only strong discrimination but also robust and consistent performance across demographic and clinical subgroups, supporting its applicability in multicenter settings.</p><p>In addition to discrimination and subgroup robustness, the calibration and clinical usability of the proposed MCGB model were further evaluated. As shown in <xref ref-type="fig" rid="figure2">Figure 2</xref>, the reliability curves illustrate the agreement between predicted probabilities and observed outcomes across models. MCGB achieves the lowest Brier score, indicating superior overall probabilistic accuracy, although its calibration slope and intercept suggest a degree of overconfidence, which is commonly observed in high-capacity models. To address this, temperature scaling was applied as a post hoc calibration method, resulting in improved probability reliability. Furthermore, decision curve analysis demonstrates that MCGB provides competitive or superior net benefit across most clinically relevant threshold ranges. While RF shows slightly higher net benefit in certain threshold intervals, this difference does not persist across clinically relevant ranges, where MCGB demonstrates consistently strong clinical utility.</p><p>To move beyond aggregate discrimination, we evaluated whether MCGB captures clinically meaningful interactions as shown in <xref ref-type="fig" rid="figure4">Figure 4</xref>. A stability-based screen-in rule combined the Friedman <italic>H</italic>-statistic across folds with mean SHAP interaction values and retained reproducible pairs such as INR &#x00D7; PT and systolic blood pressure &#x00D7; pulse, while interactions including blood urea nitrogen &#x00D7; serum creatinine and age &#x00D7; etiology were discarded. Paired ablation on out-of-fold predictions showed reductions in Brier score and gains in net clinical benefit at a decision threshold of 0.20, and the corresponding 95% CIs did not cross zero. Because the interaction analysis was designed to evaluate whether the retained interaction terms improved clinical utility in the early decision-support range, net benefit was assessed at a threshold probability of 0.20. This threshold corresponds to a low-to-moderate predicted risk level at which clinicians may initiate closer monitoring, prepare blood products, or consider cross-matching, whereas the 0.50 threshold was retained as the conventional reference operating point for reporting primary classification performance. Paired ablation on out-of-fold predictions showed reductions in Brier score and gains in net clinical benefit at this threshold, and the corresponding 95% CIs did not cross zero. These findings indicate that MCGB encodes physiologically plausible structure, with INR &#x00D7; PT reflecting coagulation synergy and systolic blood pressure &#x00D7; pulse capturing hemodynamic coupling, which enhances robustness and interpretability beyond overall discrimination.</p><fig position="float" id="figure4"><label>Figure 4.</label><caption><p>Calibration and decision curve analysis of different models. (A) calibration curves comparing predicted probabilities with observed outcomes. The dashed line represents perfect calibration. (B) Decision curve analysis (DCA) showing the net benefit of each model across threshold probabilities. AdaBoost: adaptive boosting; CatBoost: categorical boosting; DCA: decision curve analysis; LR: linear regression; LogReg: logistic regression; MCGB: Medically Constrained Gradient Boosting; MLP: multilayer perceptron; XGBoost: extreme gradient boosting.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e83889_fig04.png"/></fig><p>Among transfused patients, MCGB achieved the lowest prediction error and the highest explanatory power, with a mean MAE of 0.038 (SD 0.016), mean RMSE of 0.099 (SD 0.042), and a mean <italic>R</italic>&#x00B2; of 0.95 (SD 0.024). Because the transfusion dose was normalized during model training, these error values represent deviations on a relative scale; in practical terms, such small deviations indicate that predicted doses are closely aligned with clinician-determined transfusion decisions, typically differing only by a small margin that is unlikely to alter clinical management or blood allocation planning. Compared with the strongest baseline (RF), MCGB substantially reduced MAE (0.128-0.038) and RMSE (0.245-0.099), while improving <italic>R</italic>&#x00B2; (0.88-0.95), with consistent gains across evaluation metrics, suggesting improved predictive accuracy and stability rather than metric-specific improvements. For uncertainty estimation, conformalized quantile prediction achieved a 95% prediction-interval coverage of mean 0.943 (SD 0.021), which is close to the nominal level while maintaining practically useful interval widths; from a clinical perspective, these prediction intervals provide an interpretable range of likely transfusion requirements, supporting communication between clinicians and blood-bank services and facilitating more informed resource planning. In contrast, baseline models showed either under-coverage or less stable interval performance across folds. Overall, these findings indicate that MCGB not only achieves high statistical accuracy but also produces dose estimates that are clinically meaningful, reliable, and directly applicable to transfusion decision-making and operational planning, as summarized in <xref ref-type="table" rid="table3">Table 3</xref>.</p><table-wrap id="t3" position="float"><label>Table 3.</label><caption><p>Dose regression performance across models among transfused patients. Values are reported as mean (SD) across cross-validation folds. MAE<sup><xref ref-type="table-fn" rid="table3fn1">a</xref></sup> and RMSE<sup><xref ref-type="table-fn" rid="table3fn2">b</xref></sup> measure the deviation between predicted and actual transfusion dose (normalized scale), <italic>R</italic>&#x00B2; reflects explanatory power, and Coverage at 95% denotes the empirical coverage of 95% prediction intervals.</p></caption><table id="table3" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Model</td><td align="left" valign="bottom">MAE</td><td align="left" valign="bottom">RMSE</td><td align="left" valign="bottom"><italic>R</italic><sup>2<xref ref-type="table-fn" rid="table3fn5">l</xref></sup></td><td align="left" valign="bottom">Coverage at 95%</td></tr></thead><tbody><tr><td align="left" valign="top">AdaBoost<sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup></td><td align="left" valign="top">0.285 (0.058)</td><td align="left" valign="top">0.373 (0.102)</td><td align="left" valign="top">0.716 (0.041)</td><td align="left" valign="top">0.845 (0.045)</td></tr><tr><td align="left" valign="top">CatBoost<sup><xref ref-type="table-fn" rid="table3fn4">d</xref></sup></td><td align="left" valign="top">0.262 (0.051)</td><td align="left" valign="top">0.320 (0.094)</td><td align="left" valign="top">0.829 (0.052)</td><td align="left" valign="top">0.867 (0.036)</td></tr><tr><td align="left" valign="top">LR<sup><xref ref-type="table-fn" rid="table3fn6">f</xref></sup></td><td align="left" valign="top">0.302 (0.049)</td><td align="left" valign="top">0.386 (0.103)</td><td align="left" valign="top">0.670 (0.039)</td><td align="left" valign="top">0.838 (0.048)</td></tr><tr><td align="left" valign="top">MLP<sup><xref ref-type="table-fn" rid="table3fn7">g</xref></sup></td><td align="left" valign="top">0.247 (0.065)</td><td align="left" valign="top">0.298 (0.098)</td><td align="left" valign="top">0.809 (0.049)</td><td align="left" valign="top">0.918 (0.033)</td></tr><tr><td align="left" valign="top">Random forest</td><td align="left" valign="top">0.128 (0.027)</td><td align="left" valign="top">0.245 (0.086)</td><td align="left" valign="top">0.88 (0.035)</td><td align="left" valign="top">0.912 (0.034)</td></tr><tr><td align="left" valign="top">XGBoost<sup><xref ref-type="table-fn" rid="table3fn8">h</xref></sup></td><td align="left" valign="top">0.158 (0.036)</td><td align="left" valign="top">0.263 (0.081)</td><td align="left" valign="top">0.85 (0.033)</td><td align="left" valign="top">0.881 (0.032)</td></tr><tr><td align="left" valign="top">MCGB<sup><xref ref-type="table-fn" rid="table3fn9">i</xref></sup></td><td align="left" valign="top">0.038 (0.016)</td><td align="left" valign="top">0.099 (0.042)</td><td align="left" valign="top">0.95 (0.024)</td><td align="left" valign="top">0.943 (0.021)</td></tr></tbody></table><table-wrap-foot><fn id="table3fn1"><p><sup>a</sup>MAE: mean absolute error.</p></fn><fn id="table3fn2"><p><sup>b</sup>RMSE: root-mean-square error.</p></fn><fn id="table3fn3"><p><sup>c</sup>AdaBoost: adaptive boosting.</p></fn><fn id="table3fn4"><p><sup>d</sup>CatBoost: categorical boosting.</p></fn><fn id="table3fn5"><p><sup>e</sup>Regression performance.</p></fn><fn id="table3fn6"><p><sup>f</sup>LR: linear regression.</p></fn><fn id="table3fn7"><p><sup>g</sup>MLP: multilayer perceptron.</p></fn><fn id="table3fn8"><p><sup>h</sup>XGBoost: extreme gradient boosting.</p></fn><fn id="table3fn9"><p><sup>i</sup>MCGB: Medically Constrained Gradient Boosting. </p></fn></table-wrap-foot></table-wrap><p>As illustrated in <xref ref-type="fig" rid="figure5">Figure 5</xref>, the MCGB regression model demonstrated a close alignment between predicted and true transfusion dose across all 5 cross-validation folds. The predicted curves (blue) consistently tracked the observed transfusion doses (red) with minimal deviation, yielding low MAE and RMSE, alongside a high coefficient of determination. These results indicate that MCGB was able to capture the fine-grained dose-response relationship while maintaining robustness across heterogeneous patient subgroups. The stability of the predictions across folds further suggests that the model generalizes well and avoids overfitting, making it potentially reliable for practical deployment in transfusion planning and blood inventory management.</p><fig position="float" id="figure5"><label>Figure 5.</label><caption><p>Screening and ablation of feature interactions in MCGB (Medically Constrained Gradient Boosting). (A) Stability-based screen-in rule using the Friedman <inline-formula><mml:math id="ieqn40"><mml:mi>H</mml:mi></mml:math></inline-formula>-statistic and Shapley additive explanations.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e83889_fig05.png"/></fig><p>Comparison with clinical risk scores. To further assess clinical relevance, the proposed MCGB model was compared with established clinical risk scores, including AIMS65, Glasgow-Blatchford Score, and Rockall. As shown in <xref ref-type="table" rid="table4">Table 4</xref>, these conventional scoring systems demonstrated modest discrimination, with AUROC values ranging from 0.613 to 0.693 and AUPRC from 0.310 to 0.377, whereas MCGB achieved substantially higher performance (AUROC: mean 0.971, SD 0.008; AUPRC: mean 0.913, SD 0.022). Notably, a marked discrepancy between AUROC and AUPRC was observed for the clinical scores. This pattern is consistent with the class imbalance of the cohort and indicates that, although these rule-based scores retain some ability to rank patients by risk, they have limited precision in identifying patients who truly require transfusion, resulting in a higher proportion of false-positive predictions at the individual level. In contrast, MCGB maintained consistently high values across both AUROC and AUPRC, suggesting not only strong global discrimination but also improved precision in detecting clinically relevant cases. This distinction is of particular importance in clinical practice, where AUPRC provides a more informative assessment of a model&#x2019;s ability to correctly identify patients requiring intervention. The observed differences may be attributed to the design of traditional scores, which rely on a small set of predefined variables and are primarily intended for coarse risk stratification, thereby limiting their capacity to capture complex and nonlinear relationships underlying transfusion decisions. By comparison, MCGB incorporates data-driven modeling with clinically informed constraints, enabling more individualized and reliable predictions. Collectively, these findings suggest that, while established clinical scores remain useful for general risk assessment, they may be insufficient for precise transfusion prediction, and the proposed approach offers potential advantages for supporting clinical decision-making in upper gastrointestinal bleeding.</p><table-wrap id="t4" position="float"><label>Table 4.</label><caption><p>Performance of established clinical risk scores for transfusion prediction under stratified five-fold cross-validation.</p></caption><table id="table4" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Model</td><td align="left" valign="bottom">AUROC<sup><xref ref-type="table-fn" rid="table4fn1">a</xref></sup></td><td align="left" valign="bottom">AUPRC<sup><xref ref-type="table-fn" rid="table4fn2">b</xref></sup></td></tr></thead><tbody><tr><td align="left" valign="top">AIMS65</td><td align="left" valign="top">0.613 (0.050)</td><td align="left" valign="top">0.325 (0.062)</td></tr><tr><td align="left" valign="top">GBS<sup><xref ref-type="table-fn" rid="table4fn3">c</xref></sup></td><td align="left" valign="top">0.693 (0.053)</td><td align="left" valign="top">0.377 (0.060)</td></tr><tr><td align="left" valign="top">Rockall</td><td align="left" valign="top">0.619 (0.045)</td><td align="left" valign="top">0.310 (0.042)</td></tr><tr><td align="left" valign="top">MCGB<sup><xref ref-type="table-fn" rid="table4fn4">d</xref></sup></td><td align="left" valign="top">0.971 (0.008)</td><td align="left" valign="top">0.913 (0.022)</td></tr></tbody></table><table-wrap-foot><fn id="table4fn1"><p><sup>a</sup>AUROC: area under the receiver operating characteristic curve.</p></fn><fn id="table4fn2"><p><sup>b</sup>AUPRC: area under the precision-recall curve.</p></fn><fn id="table4fn3"><p><sup>c</sup>GBS: Glasgow-Blatchford Score.</p></fn><fn id="table4fn4"><p><sup>d</sup>MCGB: Medically Constrained Gradient Boosting.</p></fn></table-wrap-foot></table-wrap><p>Through the preceding analyses, the MCGB model demonstrated strong performance in predicting transfusion requirements among patients with UGIB. To facilitate clinical translation, an interactive transfusion recommendation system was developed based on the MCGB model. This system functions as a user-oriented calculator that enables clinicians to estimate the probability of transfusion by inputting routinely available demographic and clinical variables. For patients predicted to require transfusion, the system additionally provides an individualized estimate of the recommended blood dose, thereby supporting both decision-making and treatment planning.</p><p>The graphical user interface, implemented using the QT Designer platform (Trolltech), is designed to be intuitive and easy to operate, allowing real-time interaction within clinical workflows. As illustrated in <xref ref-type="fig" rid="figure6">Figure 6</xref>, for a representative patient, the system estimated a transfusion probability of 89% and recommended a red blood cell dose of 400 mL. By integrating predictive modeling into a practical interface, the proposed system provides a feasible pathway for incorporating data-driven decision support into routine clinical practice. In this setting, clinicians can obtain rapid, standardized predictions without additional computational burden, which may contribute to more consistent and timely transfusion decision-making (<xref ref-type="fig" rid="figure7">Figure 7</xref>).</p><fig position="float" id="figure6"><label>Figure 6.</label><caption><p>Cross-validation performance of MCGB (Medically Constrained Gradient Boosting) regression model. Comparison of predicted versus true transfusion dose across five cross-validation folds. Red lines denote true transfusion doses and blue lines denote MCGB predictions. Shaded background regions indicate fold partition. CV: cross-validation; MAE: mean absolute error; RMSE: root-mean-square error.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e83889_fig06.png"/></fig><fig position="float" id="figure7"><label>Figure 7.</label><caption><p>Interface of the UGIB blood transfusion recommendation system. The system integrates patient demographic information, vital signs, laboratory measurements, and clinical diagnosis as inputs, and provides individualized predictions of transfusion probability along with estimated blood component requirements. The interface enables clinicians to obtain real-time decision support for transfusion need assessment and dosage planning, facilitating standardized and interpretable clinical decision-making. ALB: albumin; APPT: activated partial thromboplastin time; BUN: blood urea nitrogen; Ca: calcium; DBP: diastolic blood pressure; FFP: fresh frozen plasma; Fib: fibrinogen; Hb: hemoglobin; Hct: hematocrit; INR: international normalization ratio; K: potassium; Plt: platelet; PT: prothrombin time; RBC: red blood cell; SBP: systolic blood pressure; Scr: serum creatinine.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e83889_fig07.png"/></fig></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><sec id="s4-1"><title>Principal Findings</title><p>This study shows that a clinically constrained, 2-stage framework can provide end-to-end decision support for transfusion in UGIB. The classifier delivered very high discrimination together with good calibration, and it maintained performance across hospitals, etiologies, and age strata. These characteristics matter more than a single accuracy number: calibration enables risk thresholds to be interpreted as probabilities, subgroup stability reduces the chance that performance collapses when case mix shifts, and explicit operating thresholds translate model output into consistent actions. In addition, calibration performance is reflected not only in visual agreement but also in quantitative metrics such as expected calibration error and Brier score, which are critical for clinical decision-making [<xref ref-type="bibr" rid="ref35">35</xref>]. The innovation is not only the use of gradient boosting but the way clinical knowledge is built into the learning process. Monotonic constraints encode clinically expected relationships, and interaction constraints improve interpretability. In the second stage, dose regression provides point estimates with uncertainty, enabling actionable planning rather than binary decisions. In the primary cross-site hold-out evaluation, MCGB maintained strong discrimination and calibration when applied to an independent institutional test cohort.</p></sec><sec id="s4-2"><title>Comparison With Prior Work</title><p>Traditional UGIB scores are useful for triage but do not provide patient-level probabilities of transfusion or quantitative guidance on dose. Many machine-learning studies report high AUROC yet give little attention to calibration, interpretability, or robustness across sites, and most stop at binary classification [<xref ref-type="bibr" rid="ref36">36</xref>]. The present work addresses those gaps through several design choices. First, clinical constraints are imposed at training time rather than post hoc, which prevents clinically nonsensical relationships from emerging and reduces the need for manual rule fixes later. Second, interaction curation is principled: interactions such as INR &#x00D7; PT and systolic blood pressure &#x00D7; pulse are retained because they are stable across folds and supported by domain knowledge, and ablation confirms that they improve both calibration and net benefit. Third, evaluation extends beyond global curves to threshold performance, decision-curve analysis, and subgroup reporting, which are the quantities clinicians use when deciding whether and how to act. Finally, the dose module elevates the scope of decision support by estimating the quantity of blood required with explicit uncertainty, which is rarely attempted and directly relevant to operations [<xref ref-type="bibr" rid="ref37">37</xref>,<xref ref-type="bibr" rid="ref38">38</xref>].</p></sec><sec id="s4-3"><title>Clinical Implications and Workflow</title><p>The proposed MCGB framework is designed to support bedside and blood-bank decision-making using routinely collected clinical data. At presentation, the calibrated classifier provides an individualized probability of transfusion need, and a prespecified threshold derived from decision curve analysis encodes the trade-off between missed transfusion and unnecessary cross-matching, enabling standardized triage and reducing subjective variability [<xref ref-type="bibr" rid="ref39">39</xref>]. For patients exceeding this threshold, the dose model generates both a unit estimate and a 95% prediction interval, supporting clinical communication, cross-matching, and inventory planning [<xref ref-type="bibr" rid="ref40">40</xref>]. These outputs can be delivered through the interactive UGIB transfusion recommendation system (<xref ref-type="fig" rid="figure6">Figure 6</xref>) and integrated into electronic health record systems to enable automated data extraction and real-time risk assessment without disrupting existing workflows. To support safe use, model outputs are intended as decision support rather than definitive recommendations, with probability estimates and uncertainty information provided to assist clinician interpretation and reduce the risk of automation bias. In practice, implementation also requires careful configuration of thresholds and alerts to align with clinical pathways and avoid alert fatigue [<xref ref-type="bibr" rid="ref41">41</xref>]. Finally, as a clinical decision support tool, MCGB would require prospective validation, external evaluation, and compliance with relevant regulatory frameworks prior to deployment, with clinician oversight and transparent documentation to ensure accountability and safe integration into routine care.</p></sec><sec id="s4-4"><title>Limitations and Future Directions</title><p>The analysis is retrospective and limited to 3 hospitals within a single regional health care system, which may restrict generalizability to other settings and populations; external and temporal validation is needed to assess transportability and inform recalibration strategies. The dataset is imbalanced with fewer transfusion events, and larger, more balanced cohorts are warranted. Some subgroup strata are relatively small, increasing uncertainty in stratum-specific estimates, although CIs suggest overall stability. In addition, patients with missing key variables were excluded during cohort construction, resulting in model development and validation on a largely complete analytic dataset. While this improves internal consistency, it may not fully reflect real-world deployment conditions, where laboratory measurements may be delayed, unavailable, or selectively ordered at the time of decision-making, requiring explicit strategies for incomplete inputs such as minimum-data requirements or clinician review. Furthermore, thromboelastography and other advanced coagulation indices were not included because they are not routinely available across centers. While such variables may provide additional physiological information, the model was intentionally developed using routinely collected clinical features to enhance generalizability and real-world applicability, and the strong performance observed suggests that commonly available variables capture the majority of clinically relevant signals for transfusion decision-making [<xref ref-type="bibr" rid="ref42">42</xref>]. Future work should evaluate whether incorporating advanced coagulation markers can further improve performance in settings where such data are available. Although conformal prediction achieved near-nominal coverage, the clinical utility of interval width requires prospective validation. Finally, deployment will require human-in-the-loop safeguards, appropriate alert configuration, and attention to automation bias to ensure safe and effective clinical use.</p></sec><sec id="s4-5"><title>Conclusions</title><p>This study developed a clinically constrained, 2-stage framework MCGB&#x2014;to support transfusion decisions in UGIB. By incorporating monotonic constraints that encode established clinical directionality and retaining only stability-screened, clinically plausible interactions, MCGB achieved superior discrimination, reliable calibration, and interpretable predictions. Beyond classification of transfusion need, the framework extends to individualized dose estimation with well-calibrated prediction intervals, offering actionable guidance for both bedside decision-making and blood-bank resource planning. These results demonstrate that MCGB can bridge methodological advances in machine learning with clinical requirements for transparency, robustness, and operational relevance, highlighting its potential as a practical decision-support tool for UGIB management.</p></sec></sec></body><back><ack><p>This work was supported by the Special Project to Enhance the Scientific and Technological Innovation Capabilities of the Army Military Medical University (No. 2022XLC07) and the Chongqing Natural Science Foundation (No. CSTB2024NSCQ-MSX0663).</p></ack><notes><sec><title>Funding</title><p>The authors declared no financial support was received for this work.</p></sec><sec><title>Data Availability</title><p>The datasets generated and/or analyzed during this study are not publicly available due to institutional privacy regulations and patient confidentiality policies but are available from the corresponding author on reasonable request. Data sharing will follow JMIR Publications&#x2019; data sharing policy, and deidentified data can be provided upon approval of a data access agreement.</p></sec></notes><fn-group><fn fn-type="con"><p>Conceptualization, Methodology, Formal analysis, Visualization, Writing &#x2013; original draft: XL</p><p>Conceptualization, Methodology, Investigation, Writing &#x2013; original draft: YH</p><p>Methodology, Software, Formal analysis, Visualization: MH</p><p>Methodology, Software, Formal analysis, Visualization: ZY</p><p>Data curation, Investigation, Validation: SM</p><p>Supervision, Project administration, Resources, Writing &#x2013; review &#x0026; editing: ZH</p><p>Supervision, Validation, Resources, Writing &#x2013; review &#x0026; editing: MY</p></fn><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">AdaBoost</term><def><p>adaptive boosting</p></def></def-item><def-item><term id="abb2">AUPRC</term><def><p>area under the precision-recall curve</p></def></def-item><def-item><term id="abb3">AUROC</term><def><p>area under the receiver operating characteristic curve</p></def></def-item><def-item><term id="abb4">CatBoost</term><def><p>categorical boosting</p></def></def-item><def-item><term id="abb5">EHR</term><def><p>electronic health record</p></def></def-item><def-item><term id="abb6">INR</term><def><p>international normalized ratio</p></def></def-item><def-item><term id="abb7">LogReg</term><def><p>logistic regression</p></def></def-item><def-item><term id="abb8">LR</term><def><p>linear regression</p></def></def-item><def-item><term id="abb9">MAE</term><def><p>mean absolute error</p></def></def-item><def-item><term id="abb10">MCGB</term><def><p>Medically Constrained Gradient Boosting</p></def></def-item><def-item><term id="abb11">MLP</term><def><p>multilayer perceptron</p></def></def-item><def-item><term id="abb12">PT</term><def><p>prothrombin time</p></def></def-item><def-item><term id="abb13">RF</term><def><p>random forest</p></def></def-item><def-item><term id="abb14">RMSE</term><def><p>root-mean-square error</p></def></def-item><def-item><term id="abb15">ROC</term><def><p>receiver operating characteristic</p></def></def-item><def-item><term id="abb16">SHAP</term><def><p>Shapley additive explanations</p></def></def-item><def-item><term id="abb17">UGIB</term><def><p>upper gastrointestinal bleeding</p></def></def-item><def-item><term id="abb18">XGBoost</term><def><p>extreme gradient boosting</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Long</surname><given-names>B</given-names> </name><name name-style="western"><surname>Gottlieb</surname><given-names>M</given-names> </name></person-group><article-title>Emergency medicine updates: upper gastrointestinal bleeding</article-title><source>Am J Emerg Med</source><year>2024</year><month>07</month><volume>81</volume><fpage>116</fpage><lpage>123</lpage><pub-id pub-id-type="doi">10.1016/j.ajem.2024.04.052</pub-id><pub-id pub-id-type="medline">38723362</pub-id></nlm-citation></ref><ref id="ref2"><label>2</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Stanley</surname><given-names>AJ</given-names> </name><name name-style="western"><surname>Laine</surname><given-names>L</given-names> </name></person-group><article-title>Management of acute upper gastrointestinal bleeding</article-title><source>BMJ</source><year>2019</year><month>03</month><day>25</day><volume>364</volume><fpage>l536</fpage><pub-id pub-id-type="doi">10.1136/bmj.l536</pub-id><pub-id pub-id-type="medline">30910853</pub-id></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Orpen-Palmer</surname><given-names>J</given-names> </name><name name-style="western"><surname>Stanley</surname><given-names>AJ</given-names> </name></person-group><article-title>Update on the management of upper gastrointestinal bleeding</article-title><source>BMJ Med</source><year>2022</year><volume>1</volume><issue>1</issue><fpage>e000202</fpage><pub-id pub-id-type="doi">10.1136/bmjmed-2022-000202</pub-id><pub-id pub-id-type="medline">36936565</pub-id></nlm-citation></ref><ref id="ref4"><label>4</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Barkun</surname><given-names>AN</given-names> </name><name name-style="western"><surname>Almadi</surname><given-names>M</given-names> </name><name name-style="western"><surname>Kuipers</surname><given-names>EJ</given-names> </name><etal/></person-group><article-title>Management of nonvariceal upper gastrointestinal bleeding: guideline recommendations from the International Consensus Group</article-title><source>Ann Intern Med</source><year>2019</year><month>12</month><day>3</day><volume>171</volume><issue>11</issue><fpage>805</fpage><lpage>822</lpage><pub-id pub-id-type="doi">10.7326/M19-1795</pub-id><pub-id pub-id-type="medline">31634917</pub-id></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Gralnek</surname><given-names>IM</given-names> </name><name name-style="western"><surname>Stanley</surname><given-names>AJ</given-names> </name><name name-style="western"><surname>Morris</surname><given-names>AJ</given-names> </name><etal/></person-group><article-title>Endoscopic diagnosis and management of nonvariceal upper gastrointestinal hemorrhage (NVUGIH): European Society of Gastrointestinal Endoscopy (ESGE) Guideline - update 2021</article-title><source>Endoscopy</source><year>2021</year><month>03</month><volume>53</volume><issue>3</issue><fpage>300</fpage><lpage>332</lpage><pub-id pub-id-type="doi">10.1055/a-1369-5274</pub-id><pub-id pub-id-type="medline">33567467</pub-id></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Laine</surname><given-names>L</given-names> </name><name name-style="western"><surname>Barkun</surname><given-names>AN</given-names> </name><name name-style="western"><surname>Saltzman</surname><given-names>JR</given-names> </name><name name-style="western"><surname>Martel</surname><given-names>M</given-names> </name><name name-style="western"><surname>Leontiadis</surname><given-names>GI</given-names> </name></person-group><article-title>ACG clinical guideline: upper gastrointestinal and ulcer bleeding</article-title><source>Am J Gastroenterol</source><year>2021</year><month>05</month><day>1</day><volume>116</volume><issue>5</issue><fpage>899</fpage><lpage>917</lpage><pub-id pub-id-type="doi">10.14309/ajg.0000000000001245</pub-id><pub-id pub-id-type="medline">33929377</pub-id></nlm-citation></ref><ref id="ref7"><label>7</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>de Franchis</surname><given-names>R</given-names> </name><name name-style="western"><surname>Bosch</surname><given-names>J</given-names> </name><name name-style="western"><surname>Garcia-Tsao</surname><given-names>G</given-names> </name><name name-style="western"><surname>Reiberger</surname><given-names>T</given-names> </name><name name-style="western"><surname>Ripoll</surname><given-names>C</given-names> </name><collab>Baveno VII Faculty</collab></person-group><article-title>Baveno VII - renewing consensus in portal hypertension</article-title><source>J Hepatol</source><year>2022</year><month>04</month><volume>76</volume><issue>4</issue><fpage>959</fpage><lpage>974</lpage><pub-id pub-id-type="doi">10.1016/j.jhep.2021.12.022</pub-id><pub-id pub-id-type="medline">35120736</pub-id></nlm-citation></ref><ref id="ref8"><label>8</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Carson</surname><given-names>JL</given-names> </name><name name-style="western"><surname>Stanworth</surname><given-names>SJ</given-names> </name><name name-style="western"><surname>Dennis</surname><given-names>JA</given-names> </name><etal/></person-group><article-title>Transfusion thresholds for guiding red blood cell transfusion</article-title><source>Cochrane Database Syst Rev</source><year>2021</year><month>12</month><day>21</day><volume>12</volume><issue>12</issue><fpage>CD002042</fpage><pub-id pub-id-type="doi">10.1002/14651858.CD002042.pub5</pub-id><pub-id pub-id-type="medline">34932836</pub-id></nlm-citation></ref><ref id="ref9"><label>9</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Vlaar</surname><given-names>APJ</given-names> </name><name name-style="western"><surname>Dionne</surname><given-names>JC</given-names> </name><name name-style="western"><surname>de Bruin</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Transfusion strategies in bleeding critically ill adults: a clinical practice guideline from the European Society of Intensive Care Medicine</article-title><source>Intensive Care Med</source><year>2021</year><month>12</month><volume>47</volume><issue>12</issue><fpage>1368</fpage><lpage>1392</lpage><pub-id pub-id-type="doi">10.1007/s00134-021-06531-x</pub-id><pub-id pub-id-type="medline">34677620</pub-id></nlm-citation></ref><ref id="ref10"><label>10</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Blatchford</surname><given-names>O</given-names> </name><name name-style="western"><surname>Murray</surname><given-names>WR</given-names> </name><name name-style="western"><surname>Blatchford</surname><given-names>M</given-names> </name></person-group><article-title>A risk score to predict need for treatment for upper-gastrointestinal haemorrhage</article-title><source>Lancet</source><year>2000</year><month>10</month><day>14</day><volume>356</volume><issue>9238</issue><fpage>1318</fpage><lpage>1321</lpage><pub-id pub-id-type="doi">10.1016/S0140-6736(00)02816-6</pub-id><pub-id pub-id-type="medline">11073021</pub-id></nlm-citation></ref><ref id="ref11"><label>11</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Rockall</surname><given-names>TA</given-names> </name><name name-style="western"><surname>Logan</surname><given-names>RFA</given-names> </name><name name-style="western"><surname>Devlin</surname><given-names>HB</given-names> </name><name name-style="western"><surname>Northfield</surname><given-names>TC</given-names> </name></person-group><article-title>Risk assessment after acute upper gastrointestinal haemorrhage</article-title><source>Gut</source><year>1996</year><month>03</month><volume>38</volume><issue>3</issue><fpage>316</fpage><lpage>321</lpage><pub-id pub-id-type="doi">10.1136/gut.38.3.316</pub-id><pub-id pub-id-type="medline">8675081</pub-id></nlm-citation></ref><ref id="ref12"><label>12</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Stanley</surname><given-names>AJ</given-names> </name><name name-style="western"><surname>Laine</surname><given-names>L</given-names> </name><name name-style="western"><surname>Dalton</surname><given-names>HR</given-names> </name><etal/></person-group><article-title>Comparison of risk scoring systems for patients presenting with upper gastrointestinal bleeding: international multicentre prospective study</article-title><source>BMJ</source><year>2017</year><month>01</month><day>4</day><volume>356</volume><fpage>i6432</fpage><pub-id pub-id-type="doi">10.1136/bmj.i6432</pub-id><pub-id pub-id-type="medline">28053181</pub-id></nlm-citation></ref><ref id="ref13"><label>13</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Laursen</surname><given-names>SB</given-names> </name><name name-style="western"><surname>Oakland</surname><given-names>K</given-names> </name><name name-style="western"><surname>Laine</surname><given-names>L</given-names> </name><etal/></person-group><article-title>ABC score: a new risk score that accurately predicts mortality in acute upper and lower gastrointestinal bleeding: an international multicentre study</article-title><source>Gut</source><year>2021</year><month>04</month><volume>70</volume><issue>4</issue><fpage>707</fpage><lpage>716</lpage><pub-id pub-id-type="doi">10.1136/gutjnl-2019-320002</pub-id><pub-id pub-id-type="medline">32723845</pub-id></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Saltzman</surname><given-names>JR</given-names> </name><name name-style="western"><surname>Tabak</surname><given-names>YP</given-names> </name><name name-style="western"><surname>Hyett</surname><given-names>BH</given-names> </name><name name-style="western"><surname>Sun</surname><given-names>X</given-names> </name><name name-style="western"><surname>Travis</surname><given-names>AC</given-names> </name><name name-style="western"><surname>Johannes</surname><given-names>RS</given-names> </name></person-group><article-title>A simple risk score accurately predicts in-hospital mortality, length of stay, and cost in acute upper GI bleeding</article-title><source>Gastrointest Endosc</source><year>2011</year><month>12</month><volume>74</volume><issue>6</issue><fpage>1215</fpage><lpage>1224</lpage><pub-id pub-id-type="doi">10.1016/j.gie.2011.06.024</pub-id><pub-id pub-id-type="medline">21907980</pub-id></nlm-citation></ref><ref id="ref15"><label>15</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Redondo-Cerezo</surname><given-names>E</given-names> </name><name name-style="western"><surname>Vadillo-Calles</surname><given-names>F</given-names> </name><name name-style="western"><surname>Stanley</surname><given-names>AJ</given-names> </name><etal/></person-group><article-title>MAP(ASH): a new scoring system for the prediction of intervention and mortality in upper gastrointestinal bleeding</article-title><source>J Gastroenterol Hepatol</source><year>2020</year><month>01</month><volume>35</volume><issue>1</issue><fpage>82</fpage><lpage>89</lpage><pub-id pub-id-type="doi">10.1111/jgh.14811</pub-id><pub-id pub-id-type="medline">31359521</pub-id></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Shung</surname><given-names>DL</given-names> </name><name name-style="western"><surname>Au</surname><given-names>B</given-names> </name><name name-style="western"><surname>Taylor</surname><given-names>RA</given-names> </name><etal/></person-group><article-title>Validation of a machine learning model that outperforms clinical risk scoring systems for upper gastrointestinal bleeding</article-title><source>Gastroenterology</source><year>2020</year><month>01</month><volume>158</volume><issue>1</issue><fpage>160</fpage><lpage>167</lpage><pub-id pub-id-type="doi">10.1053/j.gastro.2019.09.009</pub-id><pub-id pub-id-type="medline">31562847</pub-id></nlm-citation></ref><ref id="ref17"><label>17</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Shung</surname><given-names>DL</given-names> </name><name name-style="western"><surname>Simonov</surname><given-names>M</given-names> </name><name name-style="western"><surname>Gentry</surname><given-names>M</given-names> </name><name name-style="western"><surname>Au</surname><given-names>B</given-names> </name><name name-style="western"><surname>Laine</surname><given-names>L</given-names> </name></person-group><article-title>Machine learning to predict outcomes in patients with acute gastrointestinal bleeding: a systematic review</article-title><source>Dig Dis Sci</source><year>2019</year><month>08</month><volume>64</volume><issue>8</issue><fpage>2078</fpage><lpage>2087</lpage><pub-id pub-id-type="doi">10.1007/s10620-019-05645-z</pub-id><pub-id pub-id-type="medline">31055722</pub-id></nlm-citation></ref><ref id="ref18"><label>18</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Shung</surname><given-names>DL</given-names> </name><name name-style="western"><surname>Chan</surname><given-names>CE</given-names> </name><name name-style="western"><surname>You</surname><given-names>K</given-names> </name><etal/></person-group><article-title>Validation of an electronic health record-based machine learning model compared with clinical risk scores for gastrointestinal bleeding</article-title><source>Gastroenterology</source><year>2024</year><month>11</month><volume>167</volume><issue>6</issue><fpage>1198</fpage><lpage>1212</lpage><pub-id pub-id-type="doi">10.1053/j.gastro.2024.06.030</pub-id><pub-id pub-id-type="medline">38971198</pub-id></nlm-citation></ref><ref id="ref19"><label>19</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Shung</surname><given-names>DL</given-names> </name><name name-style="western"><surname>Lin</surname><given-names>JK</given-names> </name><name name-style="western"><surname>Laine</surname><given-names>L</given-names> </name></person-group><article-title>Achieving value by risk stratification with machine learning model or clinical risk score in acute upper gastrointestinal bleeding: a cost minimization analysis</article-title><source>Am J Gastroenterol</source><year>2024</year><month>02</month><day>1</day><volume>119</volume><issue>2</issue><fpage>371</fpage><lpage>373</lpage><pub-id pub-id-type="doi">10.14309/ajg.0000000000002520</pub-id><pub-id pub-id-type="medline">37753930</pub-id></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Collins</surname><given-names>GS</given-names> </name><name name-style="western"><surname>Reitsma</surname><given-names>JB</given-names> </name><name name-style="western"><surname>Altman</surname><given-names>DG</given-names> </name><name name-style="western"><surname>Moons</surname><given-names>KGM</given-names> </name><name name-style="western"><surname>Group</surname><given-names>T</given-names> </name></person-group><article-title>Transparent reporting of a multivariable prediction model for individual prognosis or diagnosis (TRIPOD): the TRIPOD statement</article-title><source>Ann Intern Med</source><year>2015</year><month>01</month><day>6</day><volume>162</volume><issue>1</issue><fpage>55</fpage><lpage>63</lpage><pub-id pub-id-type="doi">10.7326/M14-0697</pub-id><pub-id pub-id-type="medline">25560714</pub-id></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Wolff</surname><given-names>RF</given-names> </name><name name-style="western"><surname>Moons</surname><given-names>KGM</given-names> </name><name name-style="western"><surname>Riley</surname><given-names>RD</given-names> </name><etal/></person-group><article-title>PROBAST: a tool to assess the risk of bias and applicability of prediction model studies</article-title><source>Ann Intern Med</source><year>2019</year><month>01</month><day>1</day><volume>170</volume><issue>1</issue><fpage>51</fpage><lpage>58</lpage><pub-id pub-id-type="doi">10.7326/M18-1376</pub-id><pub-id pub-id-type="medline">30596875</pub-id></nlm-citation></ref><ref id="ref22"><label>22</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Dhiman</surname><given-names>P</given-names> </name><name name-style="western"><surname>Ma</surname><given-names>J</given-names> </name><name name-style="western"><surname>Andaur Navarro</surname><given-names>CL</given-names> </name><etal/></person-group><article-title>Methodological conduct of prognostic prediction models developed using machine learning in oncology: a systematic review</article-title><source>BMC Med Res Methodol</source><year>2022</year><month>04</month><day>8</day><volume>22</volume><issue>1</issue><fpage>101</fpage><pub-id pub-id-type="doi">10.1186/s12874-022-01577-x</pub-id><pub-id pub-id-type="medline">35395724</pub-id></nlm-citation></ref><ref id="ref23"><label>23</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Andaur Navarro</surname><given-names>CL</given-names> </name><name name-style="western"><surname>Damen</surname><given-names>JAA</given-names> </name><name name-style="western"><surname>Takada</surname><given-names>T</given-names> </name><etal/></person-group><article-title>Risk of bias in studies on prediction models developed using supervised machine learning techniques: systematic review</article-title><source>BMJ</source><year>2021</year><month>10</month><day>20</day><volume>375</volume><fpage>n2281</fpage><pub-id pub-id-type="doi">10.1136/bmj.n2281</pub-id><pub-id pub-id-type="medline">34670780</pub-id></nlm-citation></ref><ref id="ref24"><label>24</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Steyerberg</surname><given-names>EW</given-names> </name><name name-style="western"><surname>Vergouwe</surname><given-names>Y</given-names> </name></person-group><article-title>Towards better clinical prediction models: seven steps for development and an ABCD for validation</article-title><source>Eur Heart J</source><year>2014</year><month>08</month><day>1</day><volume>35</volume><issue>29</issue><fpage>1925</fpage><lpage>1931</lpage><pub-id pub-id-type="doi">10.1093/eurheartj/ehu207</pub-id><pub-id pub-id-type="medline">24898551</pub-id></nlm-citation></ref><ref id="ref25"><label>25</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Steyerberg</surname><given-names>EW</given-names> </name><name name-style="western"><surname>Vickers</surname><given-names>AJ</given-names> </name><name name-style="western"><surname>Cook</surname><given-names>NR</given-names> </name><etal/></person-group><article-title>Assessing the performance of prediction models: a framework for traditional and novel measures</article-title><source>Epidemiology</source><year>2010</year><month>01</month><volume>21</volume><issue>1</issue><fpage>128</fpage><lpage>138</lpage><pub-id pub-id-type="doi">10.1097/EDE.0b013e3181c30fb2</pub-id><pub-id pub-id-type="medline">20010215</pub-id></nlm-citation></ref><ref id="ref26"><label>26</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Van Calster</surname><given-names>B</given-names> </name><name name-style="western"><surname>Nieboer</surname><given-names>D</given-names> </name><name name-style="western"><surname>Vergouwe</surname><given-names>Y</given-names> </name><name name-style="western"><surname>De Cock</surname><given-names>B</given-names> </name><name name-style="western"><surname>Pencina</surname><given-names>MJ</given-names> </name><name name-style="western"><surname>Steyerberg</surname><given-names>EW</given-names> </name></person-group><article-title>A calibration hierarchy for risk models was defined: from utopia to empirical data</article-title><source>J Clin Epidemiol</source><year>2016</year><month>06</month><volume>74</volume><fpage>167</fpage><lpage>176</lpage><pub-id pub-id-type="doi">10.1016/j.jclinepi.2015.12.005</pub-id><pub-id pub-id-type="medline">26772608</pub-id></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Vickers</surname><given-names>AJ</given-names> </name><name name-style="western"><surname>Elkin</surname><given-names>EB</given-names> </name></person-group><article-title>Decision curve analysis: a novel method for evaluating prediction models</article-title><source>Med Decis Making</source><year>2006</year><volume>26</volume><issue>6</issue><fpage>565</fpage><lpage>574</lpage><pub-id pub-id-type="doi">10.1177/0272989X06295361</pub-id><pub-id pub-id-type="medline">17099194</pub-id></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Vickers</surname><given-names>AJ</given-names> </name><name name-style="western"><surname>van Calster</surname><given-names>B</given-names> </name><name name-style="western"><surname>Steyerberg</surname><given-names>EW</given-names> </name></person-group><article-title>A simple, step-by-step guide to interpreting decision curve analysis</article-title><source>Diagn Progn Res</source><year>2019</year><volume>3</volume><fpage>18</fpage><pub-id pub-id-type="doi">10.1186/s41512-019-0064-7</pub-id><pub-id pub-id-type="medline">31592444</pub-id></nlm-citation></ref><ref id="ref29"><label>29</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Brier</surname><given-names>GW</given-names> </name></person-group><article-title>Verification of forecasts expressed in terms of probability</article-title><source>Mon Wea Rev</source><year>1950</year><month>01</month><volume>78</volume><issue>1</issue><fpage>1</fpage><lpage>3</lpage><pub-id pub-id-type="doi">10.1175/1520-0493(1950)078&#x003C;0001:VOFEIT&#x003E;2.0.CO;2</pub-id></nlm-citation></ref><ref id="ref30"><label>30</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Romano</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Patterson</surname><given-names>E</given-names> </name><name name-style="western"><surname>Cand&#x00E8;s</surname><given-names>EJ</given-names> </name></person-group><article-title>Conformalized quantile regression</article-title><source>Advances in Neural Information Processing Systems</source><volume>2019</volume><fpage>3543</fpage><lpage>3553</lpage></nlm-citation></ref><ref id="ref31"><label>31</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ponce-Bobadilla</surname><given-names>AV</given-names> </name><name name-style="western"><surname>Schmitt</surname><given-names>V</given-names> </name><name name-style="western"><surname>Maier</surname><given-names>CS</given-names> </name><name name-style="western"><surname>Mensing</surname><given-names>S</given-names> </name><name name-style="western"><surname>Stodtmann</surname><given-names>S</given-names> </name></person-group><article-title>Practical guide to SHAP analysis: explaining supervised machine learning model predictions in drug development</article-title><source>Clin Transl Sci</source><year>2024</year><month>11</month><volume>17</volume><issue>11</issue><fpage>e70056</fpage><pub-id pub-id-type="doi">10.1111/cts.70056</pub-id><pub-id pub-id-type="medline">39463176</pub-id></nlm-citation></ref><ref id="ref32"><label>32</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Chen</surname><given-names>T</given-names></name><name name-style="western"><surname>Guestrin</surname><given-names>C</given-names></name></person-group><article-title>XGBoost: a scalable tree boosting system</article-title><source>Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</source><publisher-name>Association for Computing Machinery</publisher-name><fpage>785</fpage><lpage>794</lpage><pub-id pub-id-type="doi">10.1145/2939672.2939785</pub-id></nlm-citation></ref><ref id="ref33"><label>33</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Prokhorenkova</surname><given-names>L</given-names> </name><name name-style="western"><surname>Gusev</surname><given-names>G</given-names> </name><name name-style="western"><surname>Vorobev</surname><given-names>A</given-names> </name><name name-style="western"><surname>Dorogush</surname><given-names>AV</given-names> </name><name name-style="western"><surname>Gulin</surname><given-names>A</given-names> </name></person-group><article-title>CatBoost: unbiased boosting with categorical features</article-title><source>Advances in Neural Information Processing Systems</source><volume>2018</volume><fpage>6638</fpage><lpage>6648</lpage></nlm-citation></ref><ref id="ref34"><label>34</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Guo</surname><given-names>C</given-names> </name><name name-style="western"><surname>Pleiss</surname><given-names>G</given-names> </name><name name-style="western"><surname>Sun</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Weinberger</surname><given-names>KQ</given-names> </name></person-group><article-title>On calibration of modern neural networks</article-title><conf-name>Proceedings of the 34th international conference on machine learning</conf-name><conf-date>Aug 6-11, 2017</conf-date></nlm-citation></ref><ref id="ref35"><label>35</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Meier</surname><given-names>JM</given-names> </name><name name-style="western"><surname>Tschoellitsch</surname><given-names>T</given-names> </name></person-group><article-title>Artificial intelligence and machine learning in patient blood management: a scoping review</article-title><source>Anesth Analg</source><year>2022</year><month>09</month><day>1</day><volume>135</volume><issue>3</issue><fpage>524</fpage><lpage>531</lpage><pub-id pub-id-type="doi">10.1213/ANE.0000000000006047</pub-id><pub-id pub-id-type="medline">35977362</pub-id></nlm-citation></ref><ref id="ref36"><label>36</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Maynard</surname><given-names>S</given-names> </name><name name-style="western"><surname>Farrington</surname><given-names>J</given-names> </name><name name-style="western"><surname>Alimam</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Machine learning in transfusion medicine: a scoping review</article-title><source>Transfusion</source><year>2024</year><month>01</month><volume>64</volume><issue>1</issue><fpage>162</fpage><lpage>184</lpage><pub-id pub-id-type="doi">10.1111/trf.17582</pub-id><pub-id pub-id-type="medline">37950535</pub-id></nlm-citation></ref><ref id="ref37"><label>37</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Goodnough</surname><given-names>LT</given-names> </name><name name-style="western"><surname>Hollenhorst</surname><given-names>MA</given-names> </name></person-group><article-title>Clinical decision support and improved blood use in patient blood management</article-title><source>Hematology Am Soc Hematol Educ Program</source><year>2019</year><month>12</month><day>6</day><volume>2019</volume><issue>1</issue><fpage>577</fpage><lpage>582</lpage><pub-id pub-id-type="doi">10.1182/hematology.2019000062</pub-id><pub-id pub-id-type="medline">31808902</pub-id></nlm-citation></ref><ref id="ref38"><label>38</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Goodnough</surname><given-names>LT</given-names> </name><name name-style="western"><surname>Shieh</surname><given-names>L</given-names> </name><name name-style="western"><surname>Hadhazy</surname><given-names>E</given-names> </name><name name-style="western"><surname>Cheng</surname><given-names>N</given-names> </name><name name-style="western"><surname>Khari</surname><given-names>P</given-names> </name><name name-style="western"><surname>Maggio</surname><given-names>P</given-names> </name></person-group><article-title>Improved blood utilization using real-time clinical decision support</article-title><source>Transfusion</source><year>2014</year><month>05</month><volume>54</volume><issue>5</issue><fpage>1358</fpage><lpage>1365</lpage><pub-id pub-id-type="doi">10.1111/trf.12445</pub-id><pub-id pub-id-type="medline">24117533</pub-id></nlm-citation></ref><ref id="ref39"><label>39</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Strickland</surname><given-names>M</given-names> </name><name name-style="western"><surname>Nguyen</surname><given-names>A</given-names> </name><name name-style="western"><surname>Wu</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Assessment of machine learning methods to predict massive blood transfusion in trauma</article-title><source>World J Surg</source><year>2023</year><month>10</month><volume>47</volume><issue>10</issue><fpage>2340</fpage><lpage>2346</lpage><pub-id pub-id-type="doi">10.1007/s00268-023-07098-y</pub-id><pub-id pub-id-type="medline">37389644</pub-id></nlm-citation></ref><ref id="ref40"><label>40</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Goodnough</surname><given-names>LT</given-names> </name><name name-style="western"><surname>Shah</surname><given-names>N</given-names> </name></person-group><article-title>Is there a &#x201C;magic&#x201D; hemoglobin number? clinical decision support promoting restrictive blood transfusion practices</article-title><source>Am J Hematol</source><year>2015</year><month>10</month><volume>90</volume><issue>10</issue><fpage>927</fpage><lpage>933</lpage><pub-id pub-id-type="doi">10.1002/ajh.24101</pub-id><pub-id pub-id-type="medline">26113442</pub-id></nlm-citation></ref><ref id="ref41"><label>41</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Crispin</surname><given-names>P</given-names> </name><name name-style="western"><surname>Akers</surname><given-names>C</given-names> </name><name name-style="western"><surname>Brown</surname><given-names>K</given-names> </name><etal/></person-group><article-title>A review of electronic medical records and safe transfusion practice for guideline development</article-title><source>Vox Sang</source><year>2022</year><month>06</month><volume>117</volume><issue>6</issue><fpage>761</fpage><lpage>768</lpage><pub-id pub-id-type="doi">10.1111/vox.13254</pub-id><pub-id pub-id-type="medline">35089600</pub-id></nlm-citation></ref><ref id="ref42"><label>42</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Zapf</surname><given-names>MAC</given-names> </name><name name-style="western"><surname>Fabbri</surname><given-names>DV</given-names> </name><name name-style="western"><surname>Andrews</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Development of a machine learning model to predict intraoperative transfusion and guide type and screen ordering</article-title><source>J Clin Anesth</source><year>2023</year><month>12</month><volume>91</volume><fpage>111272</fpage><pub-id pub-id-type="doi">10.1016/j.jclinane.2023.111272</pub-id><pub-id pub-id-type="medline">37774648</pub-id></nlm-citation></ref></ref-list></back></article>