<?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">v14i1e78964</article-id><article-id pub-id-type="doi">10.2196/78964</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Prediction of First and Multiple Antiretroviral Therapy Interruptions in People Living With HIV: Comparative Survival Analysis Using Cox and Explainable Machine Learning Models</article-title></title-group><contrib-group><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Salami</surname><given-names>Donald</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Koech</surname><given-names>Emily</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Turan</surname><given-names>Janet M</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff3">3</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Stafford</surname><given-names>Kristen A</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Nyagah</surname><given-names>Lilly Muthoni</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff4">4</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Ohakanu</surname><given-names>Stephen</given-names></name><degrees>BEng</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Ngugi</surname><given-names>Anthony K</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff5">5</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Charurat</surname><given-names>Manhattan</given-names></name><degrees>Prof Dr</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib></contrib-group><aff id="aff1"><institution>Center for International Health, Education and Biosecurity, Institute of Human Virology, School of Medicine, University of Maryland</institution><addr-line>725 W Lombard St</addr-line><addr-line>Baltimore</addr-line><addr-line>MD</addr-line><country>United States</country></aff><aff id="aff2"><institution>Center for International Health, Education, and Biosecurity, Kenya</institution><addr-line>Nairobi</addr-line><country>Kenya</country></aff><aff id="aff3"><institution>Department of Health Policy and Organization, School of Public Health, The University of Alabama</institution><addr-line>Birmingham</addr-line><addr-line>AL</addr-line><country>United States</country></aff><aff id="aff4"><institution>Department of Strategic Information, Ministry of Health&#x2019;s National AIDS and STI Control Program Kenya</institution><addr-line>Nairobi</addr-line><country>Kenya</country></aff><aff id="aff5"><institution>Department of Population Health, Aga Khan University Nairobi</institution><addr-line>Nairobi</addr-line><country>Kenya</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>A</surname><given-names>Razia Sulthana</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Shi</surname><given-names>Yewen</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Donald Salami, PhD, Center for International Health, Education and Biosecurity, Institute of Human Virology, School of Medicine, University of Maryland, 725 W Lombard St, Baltimore, MD, 21201, United States, 1 410-706-8614; <email>dsalami@ihv.umaryland.edu</email></corresp></author-notes><pub-date pub-type="collection"><year>2026</year></pub-date><pub-date pub-type="epub"><day>4</day><month>2</month><year>2026</year></pub-date><volume>14</volume><elocation-id>e78964</elocation-id><history><date date-type="received"><day>16</day><month>06</month><year>2025</year></date><date date-type="rev-recd"><day>24</day><month>12</month><year>2025</year></date><date date-type="accepted"><day>29</day><month>12</month><year>2025</year></date></history><copyright-statement>&#x00A9; Donald Salami, Emily Koech, Janet M Turan, Kristen A Stafford, Lilly Muthoni Nyagah, Stephen Ohakanu, Anthony K Ngugi, Manhattan Charurat. 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.2.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/e78964"/><abstract><sec><title>Background</title><p>The Cox proportional hazards (CPH) model is a common choice for analyzing time-to-treatment interruptions in patients on antiretroviral therapy (ART), valued for its straightforward interpretability and flexibility in handling time-dependent covariates. Machine learning (ML) models have increasingly been adapted for handling temporal data, with added advantages of handling complex, nonlinear relationships and large datasets, and providing clear practical interpretations.</p></sec><sec><title>Objective</title><p>This study aims to compare the predictive performance of the traditional CPH model and ML models in predicting treatment interruptions among patients on ART, while also providing both global and individual-level explanations to support personalized, data-driven interventions for improving treatment retention.</p></sec><sec sec-type="methods"><title>Methods</title><p>Using data from 621,115 patients who started ART between 2017 and 2023, in Kenya, we compared the performance of the CPH with the following ML models&#x2014;gradient boosting machine, extreme gradient boosting, regularized generalized linear models (Ridge, Lasso, and Elastic-Net), and recursive partitioning&#x2014;in predicting first and multiple treatment interruptions. Explainable surrogate technique (model-agnostic) was applied to interpret the best performing model&#x2019;s predictions globally, using variable importance and partial dependence profiles, and at individual level, using breakdown additive, Shapley Additive Explanations, and ceteris paribus.</p></sec><sec sec-type="results"><title>Results</title><p>The recursive partitioning model achieved the best performance with a predictive concordance index score of 0.81 for first treatment interruptions and 0.89 for multiple interruptions, outperforming the CPH model, which scored 0.78 and 0.87 for the same scenarios, respectively. Recursive partitioning&#x2019;s performance can be attributed to its ability to model nonlinear relationships and automatically detect complex interactions. The global model-agnostic explanations aligned closely with the interpretations offered by hazard ratios in the CPH model, while offering additional insights into the impact of specific features on the model&#x2019;s predictions. The breakdown additive and Shapley Additive Explanations explainers demonstrated how different variables contribute to the predicted risk at the individual patient level. The ceteris paribus profiles further explored the time-varying model to illustrate how changes in a patient&#x2019;s covariates over time could impact their predicted risk of treatment interruption.</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>Our results highlight the superior predictive performance of ML models and their ability to provide patient-specific risk predictions and insights that can support targeted interventions to reduce treatment interruptions in ART care.</p></sec></abstract><kwd-group><kwd>antiretroviral therapy</kwd><kwd>explainable machine learning</kwd><kwd>machine learning</kwd><kwd>recursive partitioning</kwd><kwd>treatment interruptions.</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>The Cox proportional hazards (CPH) model has long been a foundational tool for time-to-event analysis, widely used in health care research to examine treatment interruptions, including among patients on antiretroviral therapy (ART). The CPH model is a favorable choice due to its straightforward interpretability; its coefficients can be easily understood as hazard ratios, which quantify the relative effect of each covariate on the likelihood of an event, offering clear insights for clinical decision-making and risk assessment [<xref ref-type="bibr" rid="ref1">1</xref>,<xref ref-type="bibr" rid="ref2">2</xref>]. In addition, its flexibility in handling time-dependent covariates allows it to incorporate variables that change over time, providing a more accurate reflection of patient dynamics [<xref ref-type="bibr" rid="ref3">3</xref>-<xref ref-type="bibr" rid="ref5">5</xref>]. Our previous work [<xref ref-type="bibr" rid="ref6">6</xref>] focused on using time-dependent covariates within the CPH model to enhance its application in modeling the complex patterns of multiple treatment interruptions in patients on ART, aiming to capture the nuanced and changing influences on treatment adherence.</p><p>Despite its popularity, the CPH model has limitations. A key disadvantage is its handling of high-dimensional data with many covariates, as it can be prone to overfitting and may yield unreliable results due to multicollinearity [<xref ref-type="bibr" rid="ref4">4</xref>]. This risk is particularly pronounced in time-dependent CPH models, where changing covariates can amplify the potential for erroneous inferences [<xref ref-type="bibr" rid="ref4">4</xref>]. In addition, as a semiparametric model, it does not fully specify the baseline hazard function, potentially limiting its ability to capture complex, nonlinear relationships [<xref ref-type="bibr" rid="ref7">7</xref>]. These limitations highlight the need for more flexible modeling approaches, especially when working with complex health care datasets with nonlinear, time-varying, or high-dimensional characteristics.</p><p>Machine learning (ML) models are increasingly used in time-to-event analysis due to their ability to capture complex, nonlinear relationships at scale. In HIV and ART research, however, most survival ML applications such as random survival forests and gradient boosting primarily rely on baseline or time-invariant covariates, limiting their ability to reflect the dynamic nature of ART care. Although some methods, including recursive partitioning (RP), have been adapted to incorporate temporal structures and time-varying effects [<xref ref-type="bibr" rid="ref8">8</xref>-<xref ref-type="bibr" rid="ref10">10</xref>], support for fully time-varying covariates remains limited in many survival ML frameworks. RP provides a flexible alternative by modeling nonlinear effects and interactions with time-varying covariates, yet its application to large-scale, longitudinal ART cohorts has been limited. In addition, advances in model interpretability have made ML models more explainable, helping to bridge the gap between predictive accuracy and practical applicability. Through methods such as permutation importance, partial dependence plots, and Shapley Additive Explanations (SHAP) values [<xref ref-type="bibr" rid="ref11">11</xref>-<xref ref-type="bibr" rid="ref13">13</xref>], ML models now provide insights into variable importance and individual predictions, making them increasingly useful for clinical decision-making and patient-centered care.</p><p>The aim of this paper is first to compare the performance of traditional CPH model and ML models in predicting treatment interruptions among patients on ART. This comparison aims to evaluate whether ML models, with their flexibility in handling nonlinear relationships and time-dependent covariates, can provide more accurate and reliable predictions than the CPH model. Second, provide clear, intuitive explanations for the predictions at both the global level to understand overall patterns and key risk factors and the local level for individualized predictions for a patient. By combining predictive accuracy with interpretability, this study aims to support health care providers in identifying patients at high risk for treatment interruption and in implementing personalized interventions to enhance treatment retention.</p></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Study Population and Data</title><p>The analysis used longitudinal, deidentified electronic medical record (EMR) data from patients initiated on ART between January 1, 2017, and November 30, 2023, across 2156 facilities in all 47 counties of Kenya. Eligible patients had at least 2 follow-up visits or drug pickups after ART initiation, were followed for more than 28 days postinitiation, and had returned to care if they had experienced an initial treatment interruption.</p></sec><sec id="s2-2"><title>Data Preprocessing and Definitions</title><p>The preprocessing, cleaning, feature engineering, and covariate definitions are detailed in our previous work [<xref ref-type="bibr" rid="ref6">6</xref>]. Treatment interruption was defined as no ART drug pickup and no clinical contact for greater than 28 days after the last expected contact [<xref ref-type="bibr" rid="ref14">14</xref>]. Time-invariant covariates included age, gender, education, marital and employment status, noncommunicable disease, baseline regimen, and ART initiation year, while time-varying covariates were adherence, alcohol intake, World Health Organization stage, viral load, clinical stability assessment, regimen line, multimonth dispensing (MMD), differentiated service delivery (DSD) model, and prevention with positives package. Full list of covariates and description is included in Table S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>. A key preprocessing step included creating an &#x201C;unknown&#x201D; category for categorical variables with missing data. Engineered features included the COVID-19 pandemic period&#x2014;dummy variable to indicate the COVID-19 pandemic; missed appointment&#x2014;failure to attend a scheduled visit within 1-3 days of the scheduled date; defaulted appointment&#x2014;failure to attend a scheduled visit within 4-28 days; and the duration of treatment interruption&#x2014;average duration of any treatment interruption before a patient returned to care. &#x2003;</p></sec><sec id="s2-3"><title>Analysis and Models</title><p>We performed 2 sets of modeling, that is, time-invariant model, for first-ever treatment interruption, and a time-varying model, for multiple interruptions. The data structure differs between the models: in a time-invariant model, covariates were fixed, with 1 row per patient containing the time to interruption and interruption status. In a time-varying model, covariates change over time, with multiple rows per patient representing different time intervals and multiple interruption statuses.</p><p>Our base reference model was the traditional CPH model. The time-invariant CPH assessed the effect of fixed covariates on time to first interruption, with an assumption that the hazard ratio remains constant over time, while the time-varying allowed covariates to change over time, capturing the dynamic effects of these covariates on the hazard at different intervals.</p><p>Our choice of ML models was based on algorithms with the ability to fit time-varying covariates and their computational feasibility at scale. We evaluated 3 classes of algorithms: boosting methods for their efficiency and predictive performance, regularized shrinkage models for handling multicollinearity and improving generalization, and RP for its ability to capture nonlinear relationships and interactions while remaining interpretable. Although random survival forests are widely used in survival analysis, their computational demands and limited support for fully time-varying covariates constrained their applicability in this study. The trained models are as described:</p><list list-type="bullet"><list-item><p>Gradient boosting machine (GBM): an ensemble learning method that builds a series of decision trees, where each new tree corrects the errors of the previous ones. It is powerful for time-invariant survival analysis due to its ability to handle complex, nonlinear relationships and improve predictive accuracy by minimizing loss iteratively.</p></list-item><list-item><p>Extreme gradient boosting (XGBoost): an optimized version of GBM, known for its speed and performance, especially with large datasets. It is well suited for our analysis due to its efficiency, scalability, and ability to manage missing data, offering robust predictions in survival tasks. The Accelerated Failure Time model was trained for a time-varying dataset.</p></list-item><list-item><p>Regularized generalized linear models: Extends traditional regression models with regularization techniques&#x2014;Ridge (L2), Lasso (L1), and Elastic Net (a combination of both)&#x2014;to prevent overfitting and handle multicollinearity. These models are beneficial in time-invariant survival analysis for selecting relevant covariates while improving model generalization, especially with high-dimensional data.</p></list-item><list-item><p>Recursive partitioning (LTRCtrees/Rpart): Uses decision trees to model survival data, splitting the dataset based on covariates to form homogeneous subgroups. It is advantageous due to its interpretability and ability to handle nonlinear relationships without making parametric assumptions.</p></list-item></list><p>We initially trained each model using default hyperparameters as a baseline, followed by hyperparameter tuning through a 10-fold cross-validation over a grid of parameter combinations. The optimal set of hyperparameters was selected based on the highest Harrell&#x2019;s concordance index (C-index) score, reflecting the study&#x2019;s primary objective of ranking patients by treatment interruption risk. The optimal parameter sets were then used for final model training. All analysis and modeling were performed using R Statistical Software (version 4.4.0; R Foundation for Statistical Computing).</p></sec><sec id="s2-4"><title>Model Evaluation</title><p>We evaluated model performance using an 80:20 train-test split (including the Cox models to ensure comparability). Likewise, a 10-fold cross-validation was performed on the train set, and models were trained on k-1 folds and validated on the remaining fold, repeating this process 10 times, with each fold serving as the validation set once.</p><p>Final model evaluation and comparison were performed using the C-index, a widely used metric for assessing the performance of survival models. The C-index measures the model&#x2019;s ability to correctly rank pairs of observations based on survival times, with values ranging from 0.5 (random prediction) to 1.0 (perfect ranking). We calculated the C-index for each model on both the training and test sets to evaluate predictive accuracy. This approach ensured that the models performed well during training and on validation data, providing a reliable measure of generalizability. Furthermore, to assess the sensitivity and uncertainty of the predictive performance measures, we conducted 200 bootstrap resampling iterations to estimate the IQR distribution of the scores for our best performing model.</p></sec><sec id="s2-5"><title>Model Interpretability</title><p>To interpret our model predictions, we used the DALEX package in R [<xref ref-type="bibr" rid="ref15">15</xref>] and applied 2 levels of model-agnostic explanation, that is, model level global explanations&#x2014;using permutation variable importance and partial dependence plots, and individual-level explanations&#x2014;using variable attribution&#x2014;breakdown and SHAP values and ceteris paribus (CP) analysis.</p></sec><sec id="s2-6"><title>Global-Level Explanations</title><p>The global-level explanations are listed as follows:</p><list list-type="order"><list-item><p>Variable importance: Using a permutation-based approach, we assessed how removing the effect of selected variables through multiple permutations impacts model performance.</p></list-item><list-item><p>Partial dependence profiles: We explored the effects of selected variables by examining how the model&#x2019;s predicted values change as a function of individual variables, based on randomly selected observations.</p></list-item></list></sec><sec id="s2-7"><title>Individual-Level Explanations</title><p>The individual-level explanations are listed as follows:</p><list list-type="order"><list-item><p>Variable attributions: This explains how a model&#x2019;s prediction for a single observation differs from the average prediction and distributes the difference among explanatory variables. We applied two methods: (1) Breakdown additive attribution, a procedure that decomposes the model&#x2019;s prediction into contributions from each explanatory variable. (2) SHAP, the averaging of variable attribution values over all (or several) possible orderings to show their individual impacts.</p></list-item><list-item><p>CP profiles: This explores how the model&#x2019;s prediction changes when the value of a single explanatory variable is altered, while keeping all other variables constant.</p></list-item></list></sec><sec id="s2-8"><title>Ethical Considerations</title><p>This study was reviewed and approved as nonhuman subject research by the institutional review boards of the University of Maryland, Baltimore (HP-00108126), and the Aga Khan University Nairobi (2023/ISERC-94 (v2)). The analysis used secondary EMR data that were fully deidentified prior to receipt by the study team in accordance with Kenya&#x2019;s Data Protection Act and institutional guidelines; therefore, written informed consent was not required.</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><p>Our dataset comprised 621,115 unique patients on ART, with 432,041 first treatment interruption events and 959,170 multiple treatment interruption events. Data were split into an 80:20 ratio for the training and test sets, respectively. The hyperparameters for each model, along with the final parameter combinations used in the final model, are shown in <xref ref-type="table" rid="table1">Table 1</xref>. The predictive performance of ML models and their comparison with the CPH are shown in <xref ref-type="table" rid="table2">Table 2</xref> and <xref ref-type="fig" rid="figure1">Figure 1</xref>, summarized by the estimated C-index scores and 95% CIs for both the train and test sets.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Hyperparameters for the machine learning models.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Model (R package) and parameter</td><td align="left" valign="bottom">Chosen value (time-invariant model)</td><td align="left" valign="bottom">Chosen value (time-varying model)</td></tr></thead><tbody><tr><td align="left" valign="top">Cox proportional hazards (survival)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>N/A<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup></td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td></tr><tr><td align="left" valign="top">Gradient boosting machine (gbm3)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>distribution</td><td align="left" valign="top">coxPH (ties = Efron)</td><td align="left" valign="top">coxph (ties = Efron)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>n.trees</td><td align="left" valign="top">100</td><td align="left" valign="top">3000</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>interaction.depth</td><td align="left" valign="top">3</td><td align="left" valign="top">3</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>n.minobsinnode</td><td align="left" valign="top">5</td><td align="left" valign="top">20</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>shrinkage</td><td align="left" valign="top">0.01</td><td align="left" valign="top">0.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>bag.fraction</td><td align="left" valign="top">1</td><td align="left" valign="top">0.5</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>cv.folds</td><td align="left" valign="top">10</td><td align="left" valign="top">10</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>id</td><td align="left" valign="top">Unique value of patient ID</td><td align="left" valign="top">Unique value of patient ID</td></tr><tr><td align="left" valign="top">Extreme gradient boosting (xgboost)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Objective</td><td align="left" valign="top">survival:cox</td><td align="left" valign="top">survival:aft&#x2014;accelerated failure time</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>eval_metric</td><td align="left" valign="top">cox-nloglik</td><td align="left" valign="top">aft-nloglik</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>max_depth</td><td align="left" valign="top">5</td><td align="left" valign="top">6</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>eta</td><td align="left" valign="top">0.2</td><td align="left" valign="top">0.3</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>colsample_bytree</td><td align="left" valign="top">0.8</td><td align="left" valign="top">1</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>min_child_weight</td><td align="left" valign="top">5</td><td align="left" valign="top">1</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>subsample</td><td align="left" valign="top">1</td><td align="left" valign="top">1</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>n_folds</td><td align="left" valign="top">10</td><td align="left" valign="top">10</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>best nrounds</td><td align="left" valign="top">99</td><td align="left" valign="top">N/A</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>aft_loss_distribution</td><td align="left" valign="top">N/A</td><td align="left" valign="top">normal</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>aft_loss_distribution_scale</td><td align="left" valign="top">N/A</td><td align="left" valign="top">1</td></tr><tr><td align="left" valign="top">Regularized generalized linear models (glmnet)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>lambda</td><td align="left" valign="top">Length of 100, ranging logarithmically from 10<sup>10</sup> to 10<sup>&#x2212;2</sup>. With minimum lambda = c (Ridge: 0.01, Lasso: 0.023, Elastic Net: 0.01748)</td><td align="left" valign="top">Length of 100, ranging logarithmically from 10<sup>10</sup> to 10<sup>&#x2212;2</sup>. With minimum lambda=c (Ridge: 0.01, Lasso: 0.01, Elastic Net: 0.01)</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>type.measure</td><td align="left" valign="top">&#x201C;C&#x201D;&#x2014;Harrel&#x2019;s concordance measure</td><td align="left" valign="top">&#x201C;C&#x201D;&#x2014;Harrel&#x2019;s concordance measure</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>nfolds</td><td align="left" valign="top">10</td><td align="left" valign="top">10</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>maxit</td><td align="left" valign="top">1.00E+05</td><td align="left" valign="top">1.00E+05</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>alpha</td><td align="left" valign="top">c (0, 0.5, 1)<break/>where<break/>0&#x2014;Ridge penalty, L2 regularization only<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup>.<break/>0.5&#x2014;Elastic-Net, L1 and L2 regularization<sup><xref ref-type="table-fn" rid="table1fn3">c</xref></sup>.<break/>1&#x2014;Lasso, L1 regularization only<sup><xref ref-type="table-fn" rid="table1fn4">d</xref></sup>.</td><td align="left" valign="top">c (0, 0.5, 1)<break/>where<break/>0&#x2014;Ridge penalty, L2 regularization only<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup>.<break/>0.5&#x2014;Elastic-Net, L1 and L2 regularization<sup><xref ref-type="table-fn" rid="table1fn3">c</xref></sup>.<break/>1&#x2014;Lasso, L1 regularization only<sup><xref ref-type="table-fn" rid="table1fn4">d</xref></sup>.</td></tr><tr><td align="left" valign="top">Recursive partition (LTRCtrees/rpart)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>complexity parameter</td><td align="left" valign="top">0.0001</td><td align="left" valign="top">0.0214</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>xval (cross validations)</td><td align="left" valign="top">10</td><td align="left" valign="top">10</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>maxsurrogate</td><td align="left" valign="top">5</td><td align="left" valign="top">0</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>maxdepth</td><td align="left" valign="top">20</td><td align="left" valign="top">30</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>minsplit</td><td align="left" valign="top">20</td><td align="left" valign="top">10</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>maxcompete</td><td align="left" valign="top">4</td><td align="left" valign="top">4</td></tr></tbody></table><table-wrap-foot><fn id="table1fn1"><p><sup>a</sup>N/A: not applicable.</p></fn><fn id="table1fn2"><p><sup>b</sup>Ridge&#x2014;applies L2 regularization which penalizes the sum of the squared coefficients and is effective in cases where multicollinearity is present in the predictor variables.</p></fn><fn id="table1fn3"><p><sup>c</sup>Elastic-Net regression&#x2014;applies a combination of L1 and L2 regularization.</p></fn><fn id="table1fn4"><p><sup>d</sup>Lasso&#x2014;applies L1 regularization which can shrink some coefficients to zero, effectively performing feature selection.</p></fn></table-wrap-foot></table-wrap><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Models&#x2019; comparison: C-Index with 95% CIs. (A) C-Index comparison for the time-invariant models. (B) C-Index comparison for the time-varying models.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e78964_fig01.png"/></fig><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Models&#x2019; comparison of the time-invariant and time-varying models, using C-index scores for train and test sets.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom"/><td align="left" valign="bottom" colspan="2">Time-invariant model</td><td align="left" valign="bottom" colspan="2">Time-varying model</td></tr><tr><td align="left" valign="top">Model</td><td align="left" valign="top">C-Index&#x2014;train (95% CI)</td><td align="left" valign="top">C-Index&#x2014;test (95% CI)</td><td align="left" valign="top">C-Index&#x2014;train (95% CI)</td><td align="left" valign="top">C-Index&#x2014;test (95% CI)</td></tr></thead><tbody><tr><td align="left" valign="top">Coxph</td><td align="left" valign="top">0.7873 (0.7865&#x2010;0.7881)</td><td align="left" valign="top">0.7886 (0.7871&#x2010;0.7903)</td><td align="left" valign="top">0.8757 (0.8754&#x2010;0.8761)</td><td align="left" valign="top">0.8755 (0.8748&#x2010;0.8762)</td></tr><tr><td align="left" valign="top">glmnet&#x2014;Lasso</td><td align="left" valign="top">0.7801 (0.7793&#x2010;0.7809)</td><td align="left" valign="top">0.7797 (0.7780&#x2010;0.7813)</td><td align="left" valign="top">0.7747 (0.7741&#x2010;0.7754)</td><td align="left" valign="top">0.7745 (0.7732&#x2010;0.7758)</td></tr><tr><td align="left" valign="top">glmnet&#x2014;Ridge</td><td align="left" valign="top">0.7799 (0.7791&#x2010;0.7807)</td><td align="left" valign="top">0.7794 (0.7778&#x2010;0.7810)</td><td align="left" valign="top">0.7816 (0.7810&#x2010;0.7821)</td><td align="left" valign="top">0.7812 (0.7800&#x2010;0.7824)</td></tr><tr><td align="left" valign="top">glmnet&#x2014;Elastic-net</td><td align="left" valign="top">0.7801 (0.7793&#x2010;0.7809)</td><td align="left" valign="top">0.7796 (0.7780&#x2010;0.7812)</td><td align="left" valign="top">0.7795 (0.7789&#x2010;0.7801)</td><td align="left" valign="top">0.7793 (0.7780&#x2010;0.7805)</td></tr><tr><td align="left" valign="top">gbm</td><td align="left" valign="top">0.5765 (0.5758&#x2010;0.5773)</td><td align="left" valign="top">0.5764 (0.5749&#x2010;0.5780)</td><td align="left" valign="top">0.5334 (0.5330&#x2010;0.5337)</td><td align="left" valign="top">0.5335 (0.5328&#x2010;0.5342)</td></tr><tr><td align="left" valign="top">Xgboost</td><td align="left" valign="top">0.7157 (0.7149&#x2010;0.7165)</td><td align="left" valign="top">0.7143 (0.7127&#x2010;0.7157)</td><td align="left" valign="top">0.8351 (0.8346&#x2010;0.8356)</td><td align="left" valign="top">0.8347 (0.8338&#x2010;0.8357)</td></tr><tr><td align="left" valign="top">LTRCtrees</td><td align="left" valign="top">0.8115 (0.8108&#x2010;0.8123)</td><td align="left" valign="top">0.8105 (0.8091&#x2010;0.8120)</td><td align="left" valign="top">0.8918 (0.8915&#x2010;0.8921)</td><td align="left" valign="top">0.8901 (0.8895&#x2010;0.8907)</td></tr></tbody></table></table-wrap><p>In the time-invariant analysis, the glmnet models&#x2014;Lasso, Ridge, and Elastic-Net&#x2014;produced comparable results to the CPH model, with train C-index values ranging from 0.7799 to 0.7801 and test C-index values ranging from 0.7794 to 0.7796. XGBoost performed slightly worse than the CPH model, while the GBM model had the lowest performance. The LTRCtrees model outperformed all other ML models and the CPH model with a C-index value of 0.8115 for the train set and 0.8105 for the test set. The LTRCtrees model remained the top performer in the time-varying analysis with a C-index of 0.8918 for the train set and 0.8901 for the test set. XGBoost was the next best performing ML model and slightly comparable with the CPH model. We further evaluated the best-performing model (ie, LTRCtrees), using a 200-bootstrap resamples; the C-index interquartile range remained stable across resamples.</p><p><xref ref-type="fig" rid="figure2">Figures 2</xref> and <xref ref-type="fig" rid="figure3">3</xref> show the permutation-based variable importance for the top 10 variables in both the time-invariant and time-varying models. MMD emerged as the most important variable in the time-invariant model, while the duration of treatment interruption was most important in the time-varying model. In addition, variables such as viral load, ART start year, stability assessment, baseline regimen, and occupation were consistently ranked among the top 10 most influential variables in both models. The permutation-based variable importance results were similar to the ranking of the absolute values of the coefficients of the CPH models (<xref ref-type="table" rid="table3">Table 3</xref>). MMD, missed and defaulted appointments, year of ART initiation, occupation, and stability assessment consistently ranked among the top 10 variables in both the time-invariant LTRCtree and CPH models. In the time-varying models, duration of interruption, MMD, year of ART initiation, baseline regimen, and occupation were consistently top influencers in both LTRCtree and CPH models.</p><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>LTRCtree time-invariant model top 10 most important variables. ART: antiretroviral therapy; MMD: multimonth dispensing; PwP: prevention with positives package.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e78964_fig02.png"/></fig><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>LTRCtree time-varying model top 10 most important variables. ART: antiretroviral therapy; MMD: multimonth dispensing.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e78964_fig03.png"/></fig><table-wrap id="t3" position="float"><label>Table 3.</label><caption><p>Hazard ratio of the top 10 variables from the time-invariant and time-varying Cox proportional hazards models.</p></caption><table id="table3" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Covariates</td><td align="left" valign="bottom" colspan="2">Time invariant&#x2014;first treatment interruption</td><td align="left" valign="bottom" colspan="2">Time varying&#x2014;multiple treatment interruption</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom" colspan="2">N=497,208; events=346,118<sup><xref ref-type="table-fn" rid="table3fn1">a</xref></sup></td><td align="left" valign="bottom" colspan="2">N=7,352,030; events=842,500</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Hazard ratio (95% CI)<sup><xref ref-type="table-fn" rid="table3fn2">b</xref></sup></td><td align="left" valign="bottom"><italic>P</italic> value</td><td align="left" valign="bottom">Hazard ratio (95% CI)<sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup></td><td align="left" valign="bottom"><italic>P</italic> value</td></tr></thead><tbody><tr><td align="left" valign="top">Marital status</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Other</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Cohabiting</td><td align="left" valign="top">1.02 (0.97-1.07)</td><td align="left" valign="top">.39</td><td align="left" valign="top">1.02 (0.99-1.05)</td><td align="left" valign="top">.26</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Divorced</td><td align="left" valign="top">1.00 (0.95-1.04)</td><td align="left" valign="top">.91</td><td align="left" valign="top">0.98 (0.95-1.01)</td><td align="left" valign="top">.21</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Married, monogamous</td><td align="left" valign="top">1.00 (0.95-1.05)</td><td align="left" valign="top">.89</td><td align="left" valign="top">0.99 (0.96-1.02)</td><td align="left" valign="top">.45</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Married, polygamous</td><td align="left" valign="top">1.07 (1.02-1.12)</td><td align="left" valign="top">.01</td><td align="left" valign="top">0.86 (0.84-0.89)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Separated</td><td align="left" valign="top">1.10 (1.03-1.18)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">1.18 (1.13-1.23)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Single</td><td align="left" valign="top">1.06 (1.01-1.11)</td><td align="left" valign="top">.02</td><td align="left" valign="top">1.01 (0.98-1.04)</td><td align="left" valign="top">.45</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Widowed</td><td align="left" valign="top">1.07 (1.02-1.13)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">1.00 (0.97-1.03)</td><td align="left" valign="top">.91</td></tr><tr><td align="left" valign="top">Employment status</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Employed</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Unemployed</td><td align="left" valign="top">1.00 (0.99-1.01)</td><td align="left" valign="top">.72</td><td align="left" valign="top">1.00 (0.99-1.01)</td><td align="left" valign="top">.75</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Unknown</td><td align="left" valign="top">1.34 (1.33-1.36)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">1.24 (1.23-1.25)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top">Adherence</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Good</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Fair</td><td align="left" valign="top">1.26 (1.23-1.29)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.97 (0.95-0.99)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Bad</td><td align="left" valign="top">1.81 (1.69-1.94)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">1.09 (1.03-1.15)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Unknown</td><td align="left" valign="top">1.13 (1.10-1.17)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.95 (0.93-0.97)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top">Alcohol intake</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Never</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Monthly or less</td><td align="left" valign="top">0.93 (0.89-0.97)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.98 (0.95-1.00)</td><td align="left" valign="top">.08</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2-4 times a month</td><td align="left" valign="top">0.95 (0.89-1.02)</td><td align="left" valign="top">.13</td><td align="left" valign="top">1.02 (0.98-1.07)</td><td align="left" valign="top">.26</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2-3 times a week</td><td align="left" valign="top">0.99 (0.94-1.05)</td><td align="left" valign="top">.85</td><td align="left" valign="top">1.02 (0.98-1.05)</td><td align="left" valign="top">.36</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>4 or more times a week</td><td align="left" valign="top">0.96 (0.91-1.01)</td><td align="left" valign="top">.09</td><td align="left" valign="top">1.01 (0.98-1.04)</td><td align="left" valign="top">.59</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Unknown</td><td align="left" valign="top">0.99 (0.95-1.03)</td><td align="left" valign="top">.53</td><td align="left" valign="top">1.18 (1.15-1.21)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top">Viral load</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x003C;200</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>200&#x2010;999</td><td align="left" valign="top">1.10 (1.09-1.11)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">1.00 (1.00-1.01)</td><td align="left" valign="top">.27</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x003E;1000</td><td align="left" valign="top">1.14 (1.12-1.16)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">1.10 (1.09-1.11)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Unknown</td><td align="left" valign="top">0.82 (0.81-0.83)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">1.11 (1.10-1.11)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top">Clinical stability assessment</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Stable</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Unstable</td><td align="left" valign="top">1.31 (1.30-1.32)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">1.09 (1.08-1.09)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top">Baseline ART<sup><xref ref-type="table-fn" rid="table3fn4">d</xref></sup> regimen</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Other</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2NRTIs<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup> + Boosted PI<sup><xref ref-type="table-fn" rid="table3fn6">f</xref></sup>.</td><td align="left" valign="top">0.85 (0.83-0.87)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.89 (0.88-0.91)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2NRTIs + INSTI<sup><xref ref-type="table-fn" rid="table3fn7">g</xref></sup>.</td><td align="left" valign="top">1.11 (1.08-1.13)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">1.02 (1.01-1.04)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2NRTIs + NNRTI<sup><xref ref-type="table-fn" rid="table3fn8">h</xref></sup></td><td align="left" valign="top">1.59 (0.79-3.17)</td><td align="left" valign="top">.19</td><td align="left" valign="top">0.99 (0.71-1.39)</td><td align="left" valign="top">.97</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>NRTI + INSTI</td><td align="left" valign="top">1.14 (1.04-1.25)</td><td align="left" valign="top">.01</td><td align="left" valign="top">1.30 (1.24-1.36)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top">Multimonth dispensing (months)</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>1</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2</td><td align="left" valign="top">0.57 (0.57-0.58)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.75 (0.75-0.76)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>3&#x2010;5</td><td align="left" valign="top">0.28 (0.28-0.28)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.46 (0.46-0.46)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>6</td><td align="left" valign="top">0.15 (0.14-0.15)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.27 (0.27-0.28)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>6+</td><td align="left" valign="top">0.04 (0.04-0.05)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.22 (0.21-0.22)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top">Prevention with positives package</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>0</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>1</td><td align="left" valign="top">0.86 (0.85-0.86)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.93 (0.92-0.94)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2</td><td align="left" valign="top">0.61 (0.60-0.62)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.85 (0.84-0.86)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>3 or more</td><td align="left" valign="top">0.59 (0.59-0.60)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.85 (0.84-0.85)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top">ART initiation year</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2017</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2018</td><td align="left" valign="top">1.21 (1.20-1.22)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">1.20 (1.19-1.21)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2019</td><td align="left" valign="top">1.50 (1.48-1.52)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">1.48 (1.47-1.49)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2020</td><td align="left" valign="top">1.68 (1.66-1.71)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">1.83 (1.82-1.85)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2021</td><td align="left" valign="top">2.02 (1.99-2.05)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">2.22 (2.20-2.25)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2022</td><td align="left" valign="top">2.08 (2.05-2.12)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">2.64 (2.61-2.68)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>2023</td><td align="left" valign="top">0.63 (0.61-0.65)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">3.51 (3.42, 3.60)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top">COVID-19 pandemic period</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Non&#x2013;COVID-19 period</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>COVID-19 period</td><td align="left" valign="top">1.17 (1.16-1.18)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.92 (0.91-0.92)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top">Prior missed appointment</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>No</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">N/A<sup><xref ref-type="table-fn" rid="table3fn9">i</xref></sup></td><td align="left" valign="top">N/A</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Yes</td><td align="left" valign="top">0.35 (0.34-0.35)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td></tr><tr><td align="left" valign="top">Prior default appointment</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>No</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Yes</td><td align="left" valign="top">0.52 (0.51-0.53)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td></tr><tr><td align="left" valign="top">Missed appointments</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>0</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>1-3</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">0.93 (0.93-0.94)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>4-6</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">0.81 (0.80-0.82)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>7+</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">0.73 (0.72-0.75)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top">Default appointments</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>0</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>1-3</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">1.00 (1.00-1.01)</td><td align="left" valign="top">.1</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>4-6</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">0.97 (0.96-0.98)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>7+</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">0.95 (0.94-0.96)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top">Duration of treatment interruptions</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>0 (No interruptions)</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">Reference category</td><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>&#x003C;30 days</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">29.94 (29.63-30.26)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>30-197 days</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">19.63 (19.51-19.75)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>180-364 days</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">8.15 (8.08-8.23)</td><td align="left" valign="top">&#x003C;.001</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>365 days or more</td><td align="left" valign="top">N/A</td><td align="left" valign="top">N/A</td><td align="left" valign="top">2.85 (2.82-2.88)</td><td align="left" valign="top">&#x003C;.001</td></tr></tbody></table><table-wrap-foot><fn id="table3fn1"><p><sup>a</sup>N=number of observations in the train dataset, that is, 80% of the entire dataset; events=number of treatment interruptions.</p></fn><fn id="table3fn2"><p><sup>b</sup>Concordance=0.79 (se=0).</p></fn><fn id="table3fn3"><p><sup>c</sup>Concordance=0.88 (se=0).</p></fn><fn id="table3fn4"><p><sup>d</sup>ART: antiretroviral therapy.</p></fn><fn id="table3fn5"><p><sup>e</sup>NRTIs: nucleoside analog reverse transcriptase inhibitors.</p></fn><fn id="table3fn6"><p><sup>f</sup>PI: protease inhibitor.</p></fn><fn id="table3fn7"><p><sup>g</sup>INSTI: integrase strand transfer inhibitor.</p></fn><fn id="table3fn8"><p><sup>h</sup>NNRTI: nonnucleoside analog reverse transcriptase inhibitor.</p></fn><fn id="table3fn9"><p><sup>i</sup>N/A: not applicable.</p></fn></table-wrap-foot></table-wrap><p>The full results of the time-invariant and time-varying CPH models are included in Table S2 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref>. The partial dependence plots for the top 4 variables from both models are displayed in <xref ref-type="fig" rid="figure4">Figures 4</xref> and <xref ref-type="fig" rid="figure5">5</xref>. These plots show the average predicted risk for each of these variables. Short dispensing interval (MMD of 1 month), initiating ART in 2021, and having not missed or defaulted on an appointment were associated with higher predicted risks of first treatment interruption. Conversely, longer dispensing intervals (6+ months MMD), initiating ART in 2023, and having missed or defaulted on an appointment had a lower predicted risk of first treatment interruption. Short interruption durations (&#x003C;30 days), unknown viral load, separated marital status, and unspecified alcohol use were all associated with higher predicted risk of multiple treatment interruption, while having no prior interruptions (ie, interruption duration of zero), lower viral load (&#x003C;200), and no alcohol consumption showed lower predicted risk of multiple treatment interruption.</p><fig position="float" id="figure4"><label>Figure 4.</label><caption><p>Time-invariant model; partial dependence plots for top 4 variables. Panels show the marginal effect of each variable on the average predicted risk of treatment interruption. (A) Multimonth dispensing duration, (B) ART initiation year, (C) missed appointment, and (D) defaulted appointment. ART: antiretroviral therapy; MMD: multimonth dispensing.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e78964_fig04.png"/></fig><fig position="float" id="figure5"><label>Figure 5.</label><caption><p>Time-varying model; partial dependence plots for top 4 variables. Panels show the marginal effect of each variable on the average predicted risk of treatment interruption. (A) Treatment interruption duration, (B) viral load count, (C) alcohol use, and (D) marital status.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e78964_fig05.png"/></fig><p>To examine individual-level predictions for the time-invariant model, we randomly selected 2 observations from the dataset: one representing a patient (labeled &#x201C;patient A&#x201D;) who experienced a first treatment interruption, and another representing a patient (labeled &#x201C;patient B&#x201D;) who did not experience an interruption by the end of the follow-up period.</p><p>The row labeled &#x201C;intercept&#x201D; represents the overall average prediction value (1.516) for the model&#x2014;baseline prediction (<xref ref-type="fig" rid="figure6">Figure 6A</xref>). The subsequent rows show how the mean prediction changes when a specific covariate is fixed. Green bars indicate an increase in the risk of treatment interruption, while red bars show a decrease in the risk. The final row (prediction), shown with a blue bar, displays the overall mean value and change, giving the final predicted risk of treatment interruption for the patient. Patient A had a high predicted risk of treatment interruption, with a risk score of 2.051, which is 0.535 points higher than the model&#x2019;s average prediction (<xref ref-type="fig" rid="figure6">Figure 6</xref>). Covariates influencing this prediction are short MMD intervals (1 month), viral load of 200&#x2010;999, did not receive a prevention with positive package, not defaulted on appointment, non&#x2013;COVID-19 pandemic period, aged 25&#x2010;34 years at the start of ART, and baseline regimen of 2NRTIs + NNRTI. Patient B, on the other hand, had a low predicted risk (0) of interruption, largely driven by the long MMD interval (6+ months), enrolled in the DSD fast-track model, and had prior missed and defaulted appointments contributing to a reduced risk (<xref ref-type="fig" rid="figure7">Figure 7</xref>).</p><fig position="float" id="figure6"><label>Figure 6.</label><caption><p>Time-invariant model breakdown and SHAP attribution plots for patient A. <bold>(A)</bold> Breakdown plot decomposing the model prediction into cumulative covariate contributions. Intercept&#x2014;model&#x2019;s overall average prediction value; green bars, with (+) sign indicate increased risk of treatment interruption; red bars, with (&#x2212;) sign indicate decreased risk of interruption; and blue bar, &#x201C;prediction&#x201D; is the individual predicted risk of interruption for the patient. <bold>(B)</bold> SHAP plot summarizing the direction and magnitude of individual covariate effects on the predicted risk of treatment interruption. Note: variable labels shown in the plots represent categorical levels of the corresponding covariates; see Table S1 in <xref ref-type="supplementary-material" rid="app1">Multimedia Appendix 1</xref> for full description. ART: antiretroviral therapy; MMD: multimonth dispensing; NNRTI: nonnucleoside analog reverse transcriptase inhibitor; NRTIs: nucleoside analog reverse transcriptase inhibitors; PwP: prevention with positives package; SHAP: Shapley Additive Explanations.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e78964_fig06.png"/></fig><fig position="float" id="figure7"><label>Figure 7.</label><caption><p>Time-invariant model breakdown and SHAP attribution plots for patient B. <bold>(A)</bold> Breakdown plot decomposing the model prediction into cumulative covariate contributions. Intercept&#x2014;model&#x2019;s overall average prediction value; green bars, with (+) sign indicate increased risk of treatment interruption; red bars, with (&#x2212;) sign indicate decreased risk of interruption; and blue bar, &#x201C;prediction&#x201D; is the individual predicted risk of interruption for the patient. <bold>(B)</bold> SHAP plot summarizing the direction and magnitude of individual covariate effects on the predicted risk of treatment interruption. ART: antiretroviral therapy; MMD: multimonth dispensing; PwP: prevention with positives package; SHAP: Shapley Additive Explanations.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e78964_fig07.png"/></fig><p>The right plots of both <xref ref-type="fig" rid="figure6">Figures 6</xref> and <xref ref-type="fig" rid="figure7">7</xref> show the SHAP plots for the patients, where the SHAP values represent the computed mean attribution across 25 random orderings of the explanatory variables. The red bars indicate an average increase in risk, while the green bars show a decrease in risk. The violet box plots summarize the distribution of the attributions over the 25 orderings. The plots reveal similar influential variables as in the breakdown attributions, with a slight reordering of importance and the inclusion of additional variables&#x2014;such as education level and stability assessment for patient A, and COVID-19 pandemic period for patient B.</p><p>To examine the time-varying model&#x2019;s prediction for a single time-interval instance for a patient, we randomly selected 2 patients: patient C, who had experienced 1 or more interruptions and subsequently returned to care; patient D, who had no history of treatment interruption. <xref ref-type="fig" rid="figure6">Figure 6</xref> shows the breakdown and SHAP attribution plots for a single time interval for patient C. After considering all variable contributions, the final predicted risk of subsequent treatment interruption for this patient was 2.43, which is 1.614 points above the average prediction. The key covariate contributing to this risk prediction is the patient&#x2019;s previous interruption duration (duration of 30&#x2010;179 days). In contrast, being on a 6-month MMD interval and having not missed or defaulted on any appointments were associated with a lower risk of subsequent interruptions. The SHAP plot reflects similar variable contributions (<xref ref-type="fig" rid="figure8">Figure 8B</xref>). The predicted risk of treatment interruption for patient D was 0.181, which is 0.635 lower than the average model prediction (<xref ref-type="fig" rid="figure9">Figure 9A</xref>). Key covariates contributing to this reduced risk include no prior treatment interruptions (interruption duration of zero), being on a 3&#x2010; to 5-month MMD interval, having a viral load between 200 and 999 cp/mL, the COVID-19 pandemic period, no defaulted appointments, good adherence, and starting ART between the ages of 35 and 44 years. SHAP plots (<xref ref-type="fig" rid="figure9">Figure 9B</xref>) further highlighted covariates associated with a lower risk for this patient.</p><fig position="float" id="figure8"><label>Figure 8.</label><caption><p>Time-varying model, breakdown, and SHAP attribution plots for patient C. <bold>(A)</bold> Breakdown plot decomposing the model prediction into cumulative covariate contributions. Intercept&#x2014;model&#x2019;s overall average prediction value; green bars, with (+) sign indicate increased risk of treatment interruption; red bars, with (&#x2212;) sign indicate decreased risk of interruption; and blue bar, &#x201C;prediction&#x201D; is the individual predicted risk of interruption for the patient. <bold>(B)</bold> SHAP plot summarizing the direction and magnitude of individual covariate effects on the predicted risk of treatment interruption. ART: antiretroviral therapy; MMD: multimonth dispensing; PwP: prevention with positives package; SHAP: Shapley Additive Explanations.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e78964_fig08.png"/></fig><fig position="float" id="figure9"><label>Figure 9.</label><caption><p>Time-varying model, breakdown, and SHAP attribution plots for patient D. <bold>(A)</bold> Breakdown plot decomposing the model prediction into cumulative covariate contributions. Intercept&#x2014;model&#x2019;s overall average prediction value; green bars, with (+) sign indicate increased risk of treatment interruption; red bars, with (&#x2212;) sign indicate decreased risk of interruption; and blue bar, &#x201C;prediction&#x201D; is the individual predicted risk of interruption for the patient. <bold>(B)</bold> SHAP plot summarizing the direction and magnitude of individual covariate effects on the predicted risk of treatment interruption. ART: antiretroviral therapy; MMD: multimonth dispensing; NNRTI: nonnucleoside analog reverse transcriptase inhibitor; NRTIs: nucleoside analog reverse transcriptase inhibitors; SHAP: Shapley Additive Explanations.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e78964_fig09.png"/></fig><p>Using CP profile plots, we further examined how the model&#x2019;s predictions for these patients would shift if key covariates&#x2014;such as the duration of the previous interruption, viral load, DSD model, MMD, missed appointments, and defaulted appointments&#x2014;were altered. This allowed us to explore how changes in time-varying covariates impact the risk of multiple treatment interruptions. The blue dot and dotted line in the CP plot (<xref ref-type="fig" rid="figure10">Figures 10</xref> and <xref ref-type="fig" rid="figure11">11</xref>) represent the values of the covariates and the corresponding prediction for the patient. Each green bar in the plot shows the predicted change in value and direction for a specific covariate, with bars pointing to the right of the dotted line indicating an increased risk of interruption and bars pointing to the left indicating a decreased risk.</p><fig position="float" id="figure10"><label>Figure 10.</label><caption><p>Ceteris paribus profile plots for patient C. Panels show the marginal effect of changes of each variable on the predicted risk of treatment interruption. (A) Defaulted appointments, (B) differentiated care model, (C) interruption duration, (D) missed appointments, (E) multimonth dispensing duration, and (F) viral load. Blue dot is the value of the covariate; blue dotted line corresponding prediction for the patient; green bars&#x2014;predicted change in value and direction for a specific covariate; and bars right of the dotted line indicate increased risk, while those to the left indicate decreased risk. ART: antiretroviral therapy; HCW: health care worker; MMD: multimonth dispensing.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e78964_fig10.png"/></fig><fig position="float" id="figure11"><label>Figure 11.</label><caption><p>Ceteris paribus profile plots for patient D. Panels show the marginal effect of changes of each variable on the predicted risk of treatment interruption. (A) Defaulted appointments, (B) differentiated care model, (C) interruption duration, (D) missed appointments, (E) multimonth dispensing duration, and (F) viral load. Blue dot is the value of the covariate; blue dotted line corresponding prediction for the patient; green bars&#x2014;predicted change in value and direction for a specific covariate; and bars right of the dotted line indicate increased risk, while those to the left indicate decreased risk. ART: antiretroviral therapy; HCW: health care worker; MMD: multimonth dispensing.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="medinform_v14i1e78964_fig11.png"/></fig><p>The CP plot (<xref ref-type="fig" rid="figure10">Figure 10</xref>) for patient C indicates that their risk of future treatment interruptions would increase significantly if they were to miss or default on an appointment or be placed on a shorter MMD interval. However, the predicted risk remains unchanged if they were to transition across different DSD models. The future risk of treatment interruption would increase for patient D if they miss or default on an appointment, had an increase in their viral load, were placed on a 1-month MMD interval, or experienced a treatment interruption, irrespective of how long it took to return to care (<xref ref-type="fig" rid="figure11">Figure 11</xref>). Transitioning from their current standard care DSD model to fast track or community ART distribution health care worker&#x2013;led models would slightly reduce the risk of interruption.</p></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><sec id="s4-1"><title>Principal Findings</title><p>We compared the traditional CPH model with 6 different ML models to predict the risk of treatment interruption in 621,115 patients receiving ART in 256 facilities across all 47 counties in Kenya. The analysis was conducted in 2 parts: time-invariant models for predicting time-to-first treatment interruptions and time-varying models for predicting time-to-multiple treatment interruptions. Model evaluation was performed using an 80:20 train-test split, and Harrell&#x2019;s C-index was applied to compare the performance of the models on both the train and test sets. Prediction from the best-performing model was then interpreted at both global and individual levels.</p><p>The RP model outperformed all other models in both the time-invariant and time-varying analyses. It achieved C-index values of 0.8115 for the train set and 0.8105 for the test set in the time-invariant model, and 0.8918 for the train set and 0.8901 for the test set in the time-varying model. These results align with findings from previous studies that have compared CPH models with ML models, demonstrating the effectiveness of RP models in survival analysis. Previous studies have reported C-index values ranging from 0.63 to 0.96, primarily from ML models such as GBM, random survival forest, and survival support vector machines in predicting survival for patients with cancer [<xref ref-type="bibr" rid="ref16">16</xref>-<xref ref-type="bibr" rid="ref19">19</xref>]. Other studies that focused on predicting treatment interruptions in patients on ART had typically reported metrics such as sensitivity, specificity, and area under the curve, with values ranging between 61.9% and 76.0% [<xref ref-type="bibr" rid="ref20">20</xref>-<xref ref-type="bibr" rid="ref24">24</xref>]. Few of these studies have incorporated time-varying covariates [<xref ref-type="bibr" rid="ref16">16</xref>,<xref ref-type="bibr" rid="ref25">25</xref>]. Even when compared with prior studies that evaluated ML models against CPH [<xref ref-type="bibr" rid="ref17">17</xref>], our RP approach achieved higher discrimination, with C-index values of 0.8105 and 0.8901 compared with reported XGBoost performance of approximately 0.73. Notably, our study stands out as one of the few to apply RP within a time-varying survival framework, effectively constructing a survival tree that accommodates time-varying covariates.</p><p>The RP method offers flexibility in detecting complex interactions without assuming proportional hazards. They automatically select covariates and split points, allowing more adaptive modeling of survival times [<xref ref-type="bibr" rid="ref26">26</xref>]. This method is advantageous for identifying nonlinear relationships and interactions, making it particularly useful in our case where covariate effects changed over time. The RP model also had the advantage of simple hyperparameter tuning and faster computational times compared with the other ML models we evaluated. We attempted to train a random survival forest model but were unsuccessful due to the large computational resources and extensive time required to handle our large dataset. Likewise, the widely used randomForestSRC R package does not currently support time-varying covariates directly. While random forests are known for their high predictive performance, their significant computational requirements make them less practical for real-world applications [<xref ref-type="bibr" rid="ref16">16</xref>].</p><p>To ensure that our results were fully comparable with the traditional CPH, we implemented a cohesive framework for explaining the ML predictions with meaningful insights. Using a model-agnostic [<xref ref-type="bibr" rid="ref15">15</xref>] explainer framework, we gained detailed insights into how specific variables influenced individual-level predictions and overall global outcomes, similar to the interpretations provided by hazard ratios in the CPH model. The explainer framework offers additional advantages by capturing complex, nonlinear relationships that traditional CPH may overlook.</p><p>On a global level, the permutation-based variable importance from the RP model was similar to the ranking of the absolute values of the coefficients of the CPH model for both time-invariant and time-varying models. In addition, the effects of the selected covariates we considered in the partial dependence plots were consistent with the direction of hazard ratios in the CPH model. This combination of techniques offers diverse insights into our model predictive performance. They reveal the most significant effects and risks associated with treatment interruption across various covariates without the assumptions of linearity, hence capturing potential nonlinear effects that traditional CPH models might overlook. Overall, these methods provide more comprehensive global explanations, particularly for complex variable interactions.</p><p>Further exploration using breakdown attribution and SHAP plots reveals how individual variables influence each patient&#x2019;s predicted risk within specific time intervals. On a global level, the time-invariant model was primarily influenced by MMD. Considering this at the patient level, the breakdown and SHAP plots provide detailed insights into how MMD increases or decreases risk, explaining why patient A was at a higher risk than patient B based on MMD. In addition, these plots highlight the most influential covariates for predicting the risk of a first treatment interruption for each patient, emphasizing individual variability in risk factors. For the time-varying model, we furthered the instance-level exploration using CP profiles. These plots provided insights into how a patient&#x2019;s predicted risk would change if certain variables were adjusted. For example, with patient C&#x2014;who has no history of treatment interruption&#x2014;we explored the predicted risk of an interruption if the patient were to miss or default on an appointment, transition to a less intensive DSD model, or receive a different drug-dispensing interval. In contrast, for patient D&#x2014;a patient with a history of interruptions&#x2014;the focus was on understanding how the predicted risk of another interruption might change if they transitioned to a less intensive care model, adjusted their dispensing interval, or missed an appointment. The changes highlighted for each patient provide actionable insights to guide transitions between DSD models and targeted interventions to prevent treatment interruptions. Following ART initiation, CP profiles can identify patients whose interruption risk under standard care would decrease with earlier DSD enrollment or longer dispensing intervals. For patients returning to care after an interruption, CP profiles quantify how changes in follow-up intensity or MMD duration influence recurrent interruption risk, supporting tailored rather than routine care. These scenario-based insights align with recent World Health Organization and global guidance [<xref ref-type="bibr" rid="ref27">27</xref>,<xref ref-type="bibr" rid="ref28">28</xref>] emphasizing person-centered, targeted care packages for patients reengaging in treatment.</p><p>Bringing the various components together, our model could be integrated into an EMR system to predict a patient&#x2019;s risk of treatment interruption in real time. This integration would allow the model to continuously process each patient&#x2019;s historical data, current visit date, and next scheduled visit date, creating a new data point for each interaction. With each visit, the EMR system would automatically update risk predictions, enabling health care providers to proactively identify high-risk patients before interruptions occur. The Kenya EMR currently includes an ML module that generates interruption risk scores based on a limited set of patient-centric covariates. By leveraging our model&#x2019;s broader range of covariates, the current system can be optimized for improved prediction accuracy and comprehensive risk assessment.</p></sec><sec id="s4-2"><title>Limitations</title><p>Our study had some limitations. First is the issue of missing data, as highlighted in our previous work [<xref ref-type="bibr" rid="ref6">6</xref>]. This was addressed by creating an &#x201C;unknown&#x201D; category for affected variables, given that the data were not missing at random. Variables with more than 60% missingness, such as baseline and follow-up CD4 counts, were excluded, which may have introduced bias. Sensitivity analyses comparing complete-case models with alternative &#x201C;unknown&#x201D; category specifications were conducted in prior work [<xref ref-type="bibr" rid="ref6">6</xref>] and showed consistent results. Multiple imputation was not considered, given data were not missing at random. Second, while the explainer we used is model-agnostic, it lacks built-in support for survival-specific metrics such as Brier score and area under the curve. Survex explainer is specifically designed for survival models, but it currently does not support the LTRCtrees package or time-varying survival models. A potential work-around could be treating the model as a classification task, focusing on whether there was an interruption or not within a specified fixed time, although this approach will sacrifice the temporal dimension of survival analysis or future studies can consider implementing other Survex-supported algorithms with the ability to fit time-varying covariates. Finally, generating breakdown and SHAP attribution profiles for individual predictions was computationally intensive, particularly for SHAP, which may limit real-time EMR use. However, subsampling across observations or feature permutations can substantially reduce computational cost while preserving accurate SHAP approximations.</p></sec><sec id="s4-3"><title>Conclusions</title><p>Our study compared the predictive performance of the traditional Cox model with 6 different ML models for predicting the risk of treatment interruptions in patients on ART. Overall, our results demonstrate that ML models outperform the traditional Cox model, with RP, in particular, effectively capturing nonlinear effects and complex interactions without relying on proportional hazards assumptions, making it well suited for time-varying survival analyses. Our model-agnostic explanation aligns well with the Cox model results while also offering additional, patient-specific insights for targeted interventions. The combination of enhanced predictive performance and interpretability demonstrates how ML models can effectively support patient-centered care strategies to reduce the likelihood of treatment interruptions in ART.</p></sec></sec></body><back><ack><p>The authors acknowledge the technical inputs of Davies Kimanga (Centers for Disease Control and Prevention&#x2014;Kenya) and Jacob Odhiambo (The Palladium Group Kenya) during the early phases of the study design. The authors also acknowledge the following staff of The Palladium Group Kenya, that is, Mary Gikura, Kennedy Muthoka, Ashley Odhiambo, and Evans Munene, for their support with data access and validation. Finally, the authors also thank members of the INSIGHT technical working group from CIHEB Kenya&#x2014;Sam Wafula, Rebecca Wangusi, Patrick Awuor, Violet Makokha, Dinah Nakhanu Mamai, Sarah Nzioka, and Emmah Momanyi&#x2014;for their valuable contribution and insights into the Kenya treatment program.</p></ack><notes><sec><title>Funding</title><p>This work was supported by the National Institutes of Health (NIH) D43 Fogarty Global health research training program and Integrated Networks of Scholars in Global Health Research Training (INSIGHT D43TW012274). The findings and conclusions in this paper are solely those of the authors and do not reflect the official positions of their respective institutions. All authors take full responsibility for the decision to submit this manuscript for publication.</p></sec></notes><fn-group><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">ART</term><def><p>antiretroviral therapy</p></def></def-item><def-item><term id="abb2">C-index</term><def><p>concordance index</p></def></def-item><def-item><term id="abb3">CP</term><def><p>ceteris paribus</p></def></def-item><def-item><term id="abb4">CPH</term><def><p>Cox proportional hazards</p></def></def-item><def-item><term id="abb5">DSD</term><def><p>differentiated service delivery</p></def></def-item><def-item><term id="abb6">EMR</term><def><p>electronic medical record</p></def></def-item><def-item><term id="abb7">GBM</term><def><p>gradient boosting machine</p></def></def-item><def-item><term id="abb8">ML</term><def><p>machine learning</p></def></def-item><def-item><term id="abb9">MMD</term><def><p>multimonth dispensing</p></def></def-item><def-item><term id="abb10">RP</term><def><p>recursive partitioning</p></def></def-item><def-item><term id="abb11">SHAP</term><def><p>Shapley Additive Explanations</p></def></def-item><def-item><term id="abb12">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>Cox</surname><given-names>DR</given-names> </name></person-group><article-title>Regression models and life-tables</article-title><source>J R Stat Soc Series B</source><year>1972</year><month>01</month><day>1</day><volume>34</volume><issue>2</issue><fpage>187</fpage><lpage>202</lpage><pub-id pub-id-type="doi">10.1111/j.2517-6161.1972.tb00899.x</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>Kalbfleisch</surname><given-names>JD</given-names> </name><name name-style="western"><surname>Schaubel</surname><given-names>DE</given-names> </name></person-group><article-title>Fifty years of the Cox model</article-title><source>Annu Rev Stat Appl</source><year>2023</year><month>03</month><day>10</day><volume>10</volume><issue>1</issue><fpage>1</fpage><lpage>23</lpage><pub-id pub-id-type="doi">10.1146/annurev-statistics-033021-014043</pub-id></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Cox</surname><given-names>DR</given-names> </name><name name-style="western"><surname>Oakes</surname><given-names>D</given-names> </name></person-group><source>Analysis of Survival Data</source><year>1987</year><access-date>2025-02-11</access-date><publisher-name>Chapman and Hall</publisher-name><comment><ext-link ext-link-type="uri" xlink:href="https://www.routledge.com/Analysis-of-Survival-Data/Cox-Oakes/p/book/9780412244902?srsltid=AfmBOop9h4oTLfhsnPee_a42cacTol4DIAPZfcQtE7YWoTGaGLqw_ai1">https://www.routledge.com/Analysis-of-Survival-Data/Cox-Oakes/p/book/9780412244902?srsltid=AfmBOop9h4oTLfhsnPee_a42cacTol4DIAPZfcQtE7YWoTGaGLqw_ai1</ext-link></comment><pub-id pub-id-type="other">9780412244902</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>Fisher</surname><given-names>LD</given-names> </name><name name-style="western"><surname>Lin</surname><given-names>DY</given-names> </name></person-group><article-title>Time-dependent covariates in the Cox proportional-hazards regression model</article-title><source>Annu Rev Public Health</source><year>1999</year><volume>20</volume><issue>1</issue><fpage>145</fpage><lpage>157</lpage><pub-id pub-id-type="doi">10.1146/annurev.publhealth.20.1.145</pub-id><pub-id pub-id-type="medline">10352854</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>Zhang</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Reinikainen</surname><given-names>J</given-names> </name><name name-style="western"><surname>Adeleke</surname><given-names>KA</given-names> </name><name name-style="western"><surname>Pieterse</surname><given-names>ME</given-names> </name><name name-style="western"><surname>Groothuis-Oudshoorn</surname><given-names>CGM</given-names> </name></person-group><article-title>Time-varying covariates and coefficients in Cox regression models</article-title><source>Ann Transl Med</source><year>2018</year><month>04</month><volume>6</volume><issue>7</issue><fpage>121</fpage><pub-id pub-id-type="doi">10.21037/atm.2018.02.12</pub-id><pub-id pub-id-type="medline">29955581</pub-id></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Salami</surname><given-names>D</given-names> </name><name name-style="western"><surname>Koech</surname><given-names>E</given-names> </name><name name-style="western"><surname>Turan</surname><given-names>JM</given-names> </name><etal/></person-group><article-title>Using big data to evaluate the impact of differentiated care on first and recurrent HIV treatment interruptions in Kenya</article-title><source>SSRN</source><comment>Preprint posted online on  Dec 23, 2025</comment><pub-id pub-id-type="doi">10.2139/ssrn.5954474</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>Andersen</surname><given-names>PK</given-names> </name></person-group><article-title>Fifty years with the Cox proportional hazards regression model</article-title><source>J Indian Inst Sci</source><year>2022</year><month>10</month><volume>102</volume><issue>4</issue><fpage>1135</fpage><lpage>1144</lpage><pub-id pub-id-type="doi">10.1007/s41745-021-00283-9</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>Ishwaran</surname><given-names>H</given-names> </name><name name-style="western"><surname>Kogalur</surname><given-names>UB</given-names> </name><name name-style="western"><surname>Blackstone</surname><given-names>EH</given-names> </name><name name-style="western"><surname>Lauer</surname><given-names>MS</given-names> </name></person-group><article-title>Random survival forests</article-title><source>Ann Appl Stat</source><year>2008</year><month>09</month><volume>2</volume><issue>3</issue><fpage>841</fpage><lpage>860</lpage><pub-id pub-id-type="doi">10.1214/08-AOAS169</pub-id></nlm-citation></ref><ref id="ref9"><label>9</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Bender</surname><given-names>A</given-names> </name><name name-style="western"><surname>R&#x00FC;gamer</surname><given-names>D</given-names> </name><name name-style="western"><surname>Scheipl</surname><given-names>F</given-names> </name><name name-style="western"><surname>Bischl</surname><given-names>B</given-names> </name></person-group><article-title>A general machine learning framework for survival analysis</article-title><conf-name>Joint European Conference on Machine Learning and Knowledge Discovery in Databases</conf-name><conf-date>Sep 14-18, 2020</conf-date><pub-id pub-id-type="doi">10.1007/978-3-030-67664-3_10</pub-id></nlm-citation></ref><ref id="ref10"><label>10</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Nagpal</surname><given-names>C</given-names> </name><name name-style="western"><surname>Jeanselme</surname><given-names>V</given-names> </name><name name-style="western"><surname>Dubrawski</surname><given-names>A</given-names> </name></person-group><article-title>Deep parametric time-to-event regression with time-varying covariates</article-title><access-date>2026-01-22</access-date><conf-name>Proceedings of AAAI Spring Symposium on Survival Prediction - Algorithms, Challenges, and Applications 2021</conf-name><conf-date>Mar 22-24, 2021</conf-date><comment><ext-link ext-link-type="uri" xlink:href="https://proceedings.mlr.press/v146/nagpal21a.html">https://proceedings.mlr.press/v146/nagpal21a.html</ext-link></comment></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>Breiman</surname><given-names>L</given-names> </name></person-group><article-title>Random forests</article-title><source>Mach Learn</source><year>2001</year><month>10</month><volume>45</volume><issue>1</issue><fpage>5</fpage><lpage>32</lpage><pub-id pub-id-type="doi">10.1023/A:1010933404324</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>Friedman</surname><given-names>JH</given-names> </name></person-group><article-title>Greedy function approximation: a gradient boosting machine</article-title><source>Ann Statist</source><year>2001</year><month>10</month><volume>29</volume><issue>5</issue><fpage>1189</fpage><lpage>1232</lpage><pub-id pub-id-type="doi">10.1214/aos/1013203451</pub-id></nlm-citation></ref><ref id="ref13"><label>13</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Lundberg</surname><given-names>S</given-names> </name><name name-style="western"><surname>Lee</surname><given-names>SI</given-names> </name></person-group><article-title>A unified approach to interpreting model predictions</article-title><source>arXiv</source><comment>Preprint posted online on  May 22, 2017</comment><pub-id pub-id-type="doi">10.48550/arXiv.1705.07874</pub-id></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="report"><article-title>Monitoring, evaluation, and reporting indicator reference guide MER 2.0</article-title><year>2024</year><access-date>2024-12-19</access-date><publisher-name>PEPFAR US President&#x2019;s Emergency Plan for AIDS Relief</publisher-name><comment><ext-link ext-link-type="uri" xlink:href="https://www.state.gov/wp-content/uploads/2025/01/FY25-MER-v2.8-Indicator-Reference-Guide_508-Compliant.pdf">https://www.state.gov/wp-content/uploads/2025/01/FY25-MER-v2.8-Indicator-Reference-Guide_508-Compliant.pdf</ext-link></comment></nlm-citation></ref><ref id="ref15"><label>15</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Maksymiuk</surname><given-names>S</given-names> </name><name name-style="western"><surname>Gosiewska</surname><given-names>A</given-names> </name><name name-style="western"><surname>Biecek</surname><given-names>P</given-names> </name></person-group><article-title>Landscape of R packages for explainable artificial intelligence</article-title><source>arXiv</source><comment>Preprint posted online on  Sep 24, 2020</comment><pub-id pub-id-type="doi">10.48550/arXiv.2009.13248</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>Cygu</surname><given-names>S</given-names> </name><name name-style="western"><surname>Seow</surname><given-names>H</given-names> </name><name name-style="western"><surname>Dushoff</surname><given-names>J</given-names> </name><name name-style="western"><surname>Bolker</surname><given-names>BM</given-names> </name></person-group><article-title>Comparing machine learning approaches to incorporate time-varying covariates in predicting cancer survival time</article-title><source>Sci Rep</source><year>2023</year><month>01</month><day>25</day><volume>13</volume><issue>1</issue><fpage>1370</fpage><pub-id pub-id-type="doi">10.1038/s41598-023-28393-7</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>Moncada-Torres</surname><given-names>A</given-names> </name><name name-style="western"><surname>van Maaren</surname><given-names>MC</given-names> </name><name name-style="western"><surname>Hendriks</surname><given-names>MP</given-names> </name><name name-style="western"><surname>Siesling</surname><given-names>S</given-names> </name><name name-style="western"><surname>Geleijnse</surname><given-names>G</given-names> </name></person-group><article-title>Explainable machine learning can outperform Cox regression predictions and provide insights in breast cancer survival</article-title><source>Sci Rep</source><year>2021</year><month>03</month><day>26</day><volume>11</volume><issue>1</issue><fpage>6968</fpage><pub-id pub-id-type="doi">10.1038/s41598-021-86327-7</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>Tran</surname><given-names>TT</given-names> </name><name name-style="western"><surname>Lee</surname><given-names>J</given-names> </name><name name-style="western"><surname>Gunathilake</surname><given-names>M</given-names> </name><etal/></person-group><article-title>A comparison of machine learning models and Cox proportional hazards models regarding their ability to predict the risk of gastrointestinal cancer based on metabolic syndrome and its components</article-title><source>Front Oncol</source><year>2023</year><volume>13</volume><fpage>1049787</fpage><pub-id pub-id-type="doi">10.3389/fonc.2023.1049787</pub-id><pub-id pub-id-type="medline">36937438</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>Xu</surname><given-names>L</given-names> </name><name name-style="western"><surname>Cai</surname><given-names>L</given-names> </name><name name-style="western"><surname>Zhu</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>G</given-names> </name></person-group><article-title>Comparison of the Cox regression to machine learning in predicting the survival of anaplastic thyroid carcinoma</article-title><source>BMC Endocr Disord</source><volume>23</volume><issue>1</issue><fpage>129</fpage><pub-id pub-id-type="doi">10.1186/s12902-023-01368-5</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>Esra</surname><given-names>RT</given-names> </name><name name-style="western"><surname>Carstens</surname><given-names>J</given-names> </name><name name-style="western"><surname>Estill</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Historical visit attendance as predictor of treatment interruption in South African HIV patients: extension of a validated machine learning model</article-title><source>PLOS Global Public Health</source><year>2023</year><volume>3</volume><fpage>e0002105</fpage><pub-id pub-id-type="doi">10.1371/journal.pgph.0002105</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>Ogbechie</surname><given-names>MD</given-names> </name><name name-style="western"><surname>Fischer Walker</surname><given-names>C</given-names> </name><name name-style="western"><surname>Lee</surname><given-names>MT</given-names> </name><etal/></person-group><article-title>Predicting treatment interruption among people living with HIV in Nigeria: machine learning approach</article-title><source>JMIR AI</source><year>2023</year><month>05</month><day>12</day><volume>2</volume><issue>1</issue><fpage>e44432</fpage><pub-id pub-id-type="doi">10.2196/44432</pub-id><pub-id pub-id-type="medline">38875546</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>Maskew</surname><given-names>M</given-names> </name><name name-style="western"><surname>Sharpey-Schafer</surname><given-names>K</given-names> </name><name name-style="western"><surname>De Voux</surname><given-names>L</given-names> </name><etal/></person-group><article-title>Applying machine learning and predictive modeling to retention and viral suppression in South African HIV treatment cohorts</article-title><source>Sci Rep</source><year>2022</year><month>07</month><day>26</day><volume>12</volume><issue>1</issue><fpage>12715</fpage><pub-id pub-id-type="doi">10.1038/s41598-022-16062-0</pub-id><pub-id pub-id-type="medline">35882962</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>Pettit</surname><given-names>AC</given-names> </name><name name-style="western"><surname>Bian</surname><given-names>A</given-names> </name><name name-style="western"><surname>Schember</surname><given-names>CO</given-names> </name><etal/></person-group><article-title>Development and validation of a multivariable prediction model for missed HIV health care provider visits in a large US clinical cohort</article-title><source>Open Forum Infect Dis</source><year>2021</year><month>07</month><volume>8</volume><issue>7</issue><fpage>ofab130</fpage><pub-id pub-id-type="doi">10.1093/ofid/ofab130</pub-id><pub-id pub-id-type="medline">34327249</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>Ramachandran</surname><given-names>A</given-names> </name><name name-style="western"><surname>Kumar</surname><given-names>A</given-names> </name><name name-style="western"><surname>Koenig</surname><given-names>H</given-names> </name><etal/></person-group><article-title>Predictive analytics for retention in care in an urban HIV clinic</article-title><source>Sci Rep</source><year>2020</year><month>Summer</month><volume>10</volume><issue>1</issue><fpage>6421</fpage><pub-id pub-id-type="doi">10.1038/s41598-020-62729-x</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>Suresh</surname><given-names>K</given-names> </name><name name-style="western"><surname>Severn</surname><given-names>C</given-names> </name><name name-style="western"><surname>Ghosh</surname><given-names>D</given-names> </name></person-group><article-title>Survival prediction models: an introduction to discrete-time modeling</article-title><source>BMC Med Res Methodol</source><year>2022</year><month>07</month><day>26</day><volume>22</volume><issue>1</issue><fpage>207</fpage><pub-id pub-id-type="doi">10.1186/s12874-022-01679-6</pub-id><pub-id pub-id-type="medline">35883032</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>Fu</surname><given-names>W</given-names> </name><name name-style="western"><surname>Simonoff</surname><given-names>JS</given-names> </name></person-group><article-title>Survival trees for left-truncated and right-censored data, with application to time-varying covariate data</article-title><source>Biostatistics</source><year>2017</year><month>04</month><day>1</day><volume>18</volume><issue>2</issue><fpage>352</fpage><lpage>369</lpage><pub-id pub-id-type="doi">10.1093/biostatistics/kxw047</pub-id><pub-id pub-id-type="medline">28025180</pub-id></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="web"><article-title>Supporting re-engagement in HIV treatment services</article-title><source>World Health Organization</source><year>2024</year><access-date>2026-01-22</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.who.int/publications/i/item/9789240097339">https://www.who.int/publications/i/item/9789240097339</ext-link></comment></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="web"><article-title>Differentiation at re-engagement in HIV care: a multi-country workshop</article-title><source>International AIDS Society (IAS)</source><year>2024</year><access-date>2025-11-17</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.differentiatedservicedelivery.org/resources/differentiation-at-re-engagement-in-hiv-care-a-multi-country-workshop/">https://www.differentiatedservicedelivery.org/resources/differentiation-at-re-engagement-in-hiv-care-a-multi-country-workshop/</ext-link></comment></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1</label><p>Full list of covariates and descriptions.</p><media xlink:href="medinform_v14i1e78964_app1.docx" xlink:title="DOCX File, 66 KB"/></supplementary-material></app-group></back></article>