<!DOCTYPE article
PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD with MathML3 v1.3 20210610//EN" "JATS-archivearticle1-3-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.3" xml:lang="en" article-type="research-article"><?properties manuscript?><processing-meta base-tagset="archiving" mathml-version="3.0" table-model="xhtml" tagset-family="jats"><restricted-by>pmc</restricted-by></processing-meta><front><journal-meta><journal-id journal-id-type="nlm-journal-id">8710219</journal-id><journal-id journal-id-type="pubmed-jr-id">1493</journal-id><journal-id journal-id-type="nlm-ta">AIDS</journal-id><journal-id journal-id-type="iso-abbrev">AIDS</journal-id><journal-title-group><journal-title>AIDS (London, England)</journal-title></journal-title-group><issn pub-type="ppub">0269-9370</issn><issn pub-type="epub">1473-5571</issn></journal-meta><article-meta><article-id pub-id-type="pmid">39497537</article-id><article-id pub-id-type="pmc">11779586</article-id><article-id pub-id-type="doi">10.1097/QAD.0000000000004055</article-id><article-id pub-id-type="manuscript">NIHMS2033393</article-id><article-categories><subj-group subj-group-type="heading"><subject>Article</subject></subj-group></article-categories><title-group><article-title>Predictors of HIV seroconversion in Botswana: machine learning analysis in a representative, population-based HIV incidence cohort</article-title></title-group><contrib-group><contrib contrib-type="author"><name><surname>CUI</surname><given-names>Yifan</given-names></name><xref rid="A1" ref-type="aff">1</xref><xref rid="FN1" ref-type="author-notes">*</xref></contrib><contrib contrib-type="author"><name><surname>MOYO</surname><given-names>Sikhulile</given-names></name><xref rid="A2" ref-type="aff">2</xref><xref rid="A3" ref-type="aff">3</xref><xref rid="A4" ref-type="aff">4</xref><xref rid="FN1" ref-type="author-notes">*</xref><xref rid="CR1" ref-type="corresp">#</xref></contrib><contrib contrib-type="author"><name><surname>PRETORIUS HOLME</surname><given-names>Molly</given-names></name><xref rid="A2" ref-type="aff">2</xref></contrib><contrib contrib-type="author"><name><surname>E HURWITZ</surname><given-names>Kathleen</given-names></name><xref rid="A5" ref-type="aff">5</xref></contrib><contrib contrib-type="author"><name><surname>CHOGA</surname><given-names>Wonderful</given-names></name><xref rid="A3" ref-type="aff">3</xref><xref rid="A4" ref-type="aff">4</xref><xref rid="A6" ref-type="aff">6</xref><xref rid="A7" ref-type="aff">7</xref></contrib><contrib contrib-type="author"><name><surname>BENNETT</surname><given-names>Kara</given-names></name><xref rid="A5" ref-type="aff">5</xref></contrib><contrib contrib-type="author"><name><surname>CHAKALISA</surname><given-names>Unoda</given-names></name><xref rid="A3" ref-type="aff">3</xref></contrib><contrib contrib-type="author"><name><surname>SAN</surname><given-names>James Emmanuel</given-names></name><xref rid="A8" ref-type="aff">8</xref><xref rid="A9" ref-type="aff">9</xref></contrib><contrib contrib-type="author"><name><surname>MANYAKE</surname><given-names>Kutlo</given-names></name><xref rid="A3" ref-type="aff">3</xref></contrib><contrib contrib-type="author"><name><surname>KGATHI</surname><given-names>Coulson</given-names></name><xref rid="A3" ref-type="aff">3</xref></contrib><contrib contrib-type="author"><name><surname>DIPHOKO</surname><given-names>Ame</given-names></name><xref rid="A3" ref-type="aff">3</xref></contrib><contrib contrib-type="author"><name><surname>GASEITSIWE</surname><given-names>Simani</given-names></name><xref rid="A3" ref-type="aff">3</xref></contrib><contrib contrib-type="author"><name><surname>GAOLATHE</surname><given-names>Tendani</given-names></name><xref rid="A3" ref-type="aff">3</xref><xref rid="A8" ref-type="aff">8</xref></contrib><contrib contrib-type="author"><name><surname>ESSEX</surname><given-names>M.</given-names></name><xref rid="A2" ref-type="aff">2</xref><xref rid="A3" ref-type="aff">3</xref></contrib><contrib contrib-type="author"><name><surname>TCHETGEN TCHETGEN</surname><given-names>Eric</given-names></name><xref rid="A9" ref-type="aff">9</xref><xref rid="A10" ref-type="aff">10</xref></contrib><contrib contrib-type="author"><name><surname>MAKHEMA</surname><given-names>Joseph M.</given-names></name><xref rid="A2" ref-type="aff">2</xref><xref rid="A3" ref-type="aff">3</xref></contrib><contrib contrib-type="author"><name><surname>LOCKMAN</surname><given-names>Shahin</given-names></name><xref rid="A2" ref-type="aff">2</xref><xref rid="A3" ref-type="aff">3</xref><xref rid="A11" ref-type="aff">11</xref><xref rid="CR1" ref-type="corresp">#</xref></contrib></contrib-group><aff id="A1"><label>1</label>Center for Data Science, Zhejiang University, Hangzhou, Zhejiang, China;</aff><aff id="A2"><label>2</label>Department of Immunology and Infectious Diseases, Harvard T.H. Chan School of Public Health, Boston, MA, USA;</aff><aff id="A3"><label>3</label>Botswana Harvard Health Partnership, Gaborone, Botswana;</aff><aff id="A4"><label>4</label>Division of Medical Virology, Faculty of Medicine and Health Sciences, Stellenbosch University, Tygerberg, Cape Town, South Africa;</aff><aff id="A5"><label>5</label>Target RWE, Durham, North Carolina;</aff><aff id="A6"><label>6</label>School of Allied Health Sciences, Faculty of Health Sciences, University of Botswana, Gaborone, Botswana;</aff><aff id="A7"><label>7</label>Centre for Epidemic Response and Innovation (CERI), School of Data Science and Computational Thinking, Stellenbosch University, Stellenbosch, South Africa;</aff><aff id="A8"><label>8</label>Department of Internal Medicine, University of Botswana, Gaborone, Botswana;</aff><aff id="A9"><label>9</label>Department of Statistics and Data Science, The Wharton School, University of Pennsylvania, Philadelphia, PA, USA;</aff><aff id="A10"><label>10</label>Department of Biostatistics and Epidemiology, The Wharton School, University of Pennsylvania, Philadelphia, PA, USA;</aff><aff id="A11"><label>11</label>Division of Infectious Diseases, Brigham &#x00026; Women&#x02019;s Hospital, Boston, MA, USA.</aff><author-notes><fn fn-type="equal" id="FN1"><label>*</label><p id="P1">Equal contribution, listed alphabetically</p></fn><corresp id="CR1"><label>#</label><bold>Corresponding Authors:</bold> Sikhulile Moyo, MSc, MPH, PhD (<email>sikhulilemoyo@gmail.com</email>), Botswana Harvard Health Partnership, Gaborone, Botswana. Shahin Lockman, MD, MSc (<email>shahin.lockman@gmail.com</email>), Department of Immunology and Infectious Diseases, Harvard T.H. Chan School of Public Health, Boston, MA, USA.</corresp></author-notes><pub-date pub-type="nihms-submitted"><day>4</day><month>11</month><year>2024</year></pub-date><pub-date pub-type="ppub"><day>01</day><month>3</month><year>2025</year></pub-date><pub-date pub-type="epub"><day>04</day><month>11</month><year>2024</year></pub-date><pub-date pub-type="pmc-release"><day>01</day><month>3</month><year>2026</year></pub-date><volume>39</volume><issue>3</issue><fpage>290</fpage><lpage>297</lpage><abstract id="ABS1"><sec id="S1"><title>Objective:</title><p id="P2">To identify predictors of HIV acquisition in Botswana.</p></sec><sec id="S2"><title>Design:</title><p id="P3">We applied machine learning approaches to identify HIV risk predictors using existing data from a large, well-characterized HIV incidence cohort.</p></sec><sec id="S3"><title>Methods:</title><p id="P4">We applied machine learning (randomForestSRC) to analyze data from a large population-based HIV incidence cohort enrolled in a cluster-randomized HIV prevention trial in 30 communities across Botswana. We sought to identify the most important risk factors for HIV acquisition, starting with 110 potential predictors.</p></sec><sec id="S4"><title>Results:</title><p id="P5">During a median 29-month follow-up of 8,551 HIV-negative adults, 147 (1.7%) acquired HIV. Our machine learning analysis found that for females, the most important variables for predicting HIV acquisition were the use of injectable hormonal contraception, frequency of sex in the prior 3 months with the most recent partner and residing in a community with HIV prevalence of 29% or higher. For the small proportion (0.3%) of females who had all three risk factors, their estimated probability of acquiring HIV during 29 months of follow-up was 34% (approximate annual incidence of 14%). For males, non-long-term relationships with the most recent partner and community HIV prevalence of 34% or higher were the most important HIV risk predictors. The 6% of males who had both risk factors had a 5.1% probability of acquiring HIV during the follow-up period (approximate annual incidence of 2.1%).</p></sec><sec id="S5"><title>Conclusions:</title><p id="P6">Machine learning approaches allowed us to analyze a large number of variables to efficiently identify key factors strongly predictive of HIV risk. These factors could help target HIV prevention interventions in Botswana.</p></sec><sec id="S6"><title>Clinical Trials Registration:</title><p id="P7">
<ext-link xlink:href="https://clinicaltrials.gov/ct2/show/NCT01965470" ext-link-type="uri">NCT01965470</ext-link>
</p></sec></abstract><kwd-group><kwd>HIV risk factors</kwd><kwd>HIV incidence</kwd><kwd>machine learning</kwd><kwd>Ya Tsie Study</kwd><kwd>BCPP</kwd><kwd>Botswana</kwd><kwd>Africa</kwd></kwd-group></article-meta></front><body><sec id="S7"><title>BACKGROUND</title><p id="P8">Despite significant global progress in reducing HIV incidence and HIV-related mortality, new infections continue to undermine efforts to end the HIV epidemic by 2030 [<xref rid="R1" ref-type="bibr">1</xref>]. Sub Saharan Africa (SSA) is the region most severely affected by HIV/AIDS. Many SSA countries have provided antiretroviral treatment (ART) to all people diagnosed with HIV since approximately 2016 (&#x0201c;treat all&#x0201d; approach). Despite progress in ART coverage [<xref rid="R2" ref-type="bibr">2</xref>], global HIV incidence is only 43% lower than a decade ago [<xref rid="R3" ref-type="bibr">3</xref>]. HIV pre-exposure prophylaxis (PrEP) is an important and highly effective HIV prevention tool. However, in the context of generalized HIV epidemics (such as in SSA), it is challenging to identify individuals at highest risk for HIV who may benefit the most from PrEP. While adolescent girls and young women and sero-discordant couples remain at higher risk of HIV acquisition in SSA, exclusive focus of HIV prevention efforts on these groups may miss other individuals with elevated HIV risk. This is important especially important in generalized epidemic settings such as Botswana, which has an estimated HIV prevalence of 20.8% among persons aged 15&#x02013;64 years [<xref rid="R4" ref-type="bibr">4</xref>].</p><p id="P9">In recent years, machine learning algorithms, with their ability to capture complex interactions within data, have shown promise for identifying predictors of HIV infection risk [<xref rid="R5" ref-type="bibr">5</xref>&#x02013;<xref rid="R7" ref-type="bibr">7</xref>], compared with traditional mathematical models. They have been shown to be both efficient and sensitive in classifying and quantifying HIV risk in both high-income and low/middle-income settings [<xref rid="R7" ref-type="bibr">7</xref>&#x02013;<xref rid="R9" ref-type="bibr">9</xref>] and to be useful in decision-making around prioritizing PrEP [<xref rid="R10" ref-type="bibr">10</xref>&#x02013;<xref rid="R12" ref-type="bibr">12</xref>]. Some of the advantages of the random forest approach include the ability to handle highly correlated variables; robustness to data noise, missing data, and outliers; and lack of assumptions regarding distribution of data [<xref rid="R13" ref-type="bibr">13</xref>, <xref rid="R14" ref-type="bibr">14</xref>]. Random forest models are free from the assumptions of generalised linear models. Traditional models are not efficient in handling large numbers of variables and hence assumptions are made or an <italic toggle="yes">a priori</italic> selection of variables is required [<xref rid="R13" ref-type="bibr">13</xref>&#x02013;<xref rid="R15" ref-type="bibr">15</xref>].</p><p id="P10">We applied machine learning techniques to data from a nationwide community-randomized HIV prevention trial in Botswana that prospectively followed a large population-based HIV incidence cohort in which a large number of potential predictor variables were systematically collected. Our goal was to identify the most important individual-level and community-level risk factors for HIV acquisition in the context of high community-level HIV diagnosis and ART rates.</p></sec><sec id="S8"><title>METHODOLOGY</title><sec id="S9"><title>Study population</title><p id="P11">We used data from the completed Botswana Combination Prevention Project (BCPP), also known as Ya Tsie [<xref rid="R16" ref-type="bibr">16</xref>, <xref rid="R17" ref-type="bibr">17</xref>] (<ext-link xlink:href="https://clinicaltrials.gov/ct2/show/NCT01965470" ext-link-type="uri">NCT01965470</ext-link>). BCPP was a pair-matched, cluster-randomized trial in communities across Botswana that tested whether a combination of measures in the intervention communities reduced population-level cumulative incidence of HIV infection [<xref rid="R17" ref-type="bibr">17</xref>]. The intervention included intensive HIV testing campaigns, rapid universal ART initiation with active linkage to care, and enhanced voluntary male circumcision services. The trial was conducted from 2013&#x02013;2018 in 30 rural and peri-urban communities (15 intervention, 15 standard of care) across Botswana. BCPP enrolled a prospective cohort of all consenting persons aged 16&#x02013;64 years residing in a random 20% sample of households in each of the 30 communities. A baseline participant survey collected extensive sociodemographic information, self-reported HIV risk behavior, HIV testing and treatment history, and health history. All participants without documentation of a prior positive HIV test underwent HIV testing. We followed each cohort participant prospectively at approximately 12 and 29 months after enrollment, and re-tested HIV-negative persons for HIV at each visit.</p></sec><sec id="S10"><title>Ethics</title><p id="P12">Participants 16&#x02013;18 years of age provided written assent (with parent/guardian written permission). Adult participants provided written informed consent. The study was approved by the Botswana Health Research and Development Committee and US Centers for Disease Control and Prevention IRB.</p></sec><sec id="S11"><title>Machine Learning Modelling</title><p id="P13">We used information on individual HIV infection status over time in the HIV incidence cohort to build an interpretable prediction model for predictors of HIV seroconversion based on 110 potential predictors collected in the baseline household survey in the study (<xref rid="SD1" ref-type="supplementary-material">Supplemental Table S1</xref>). We excluded persons documented as living with HIV at baseline from this analysis. Missing data were processed by multiple imputation using missForest [<xref rid="R18" ref-type="bibr">18</xref>] with maximum number of iterations of 10 and 50 trees to grow in each forest. We stacked 5-fold imputed datasets together to build the random survival forest model, resulting in 25,995 females and 16,760 males included in the machine learning analysis.</p><p id="P14">We then considered decision trees and random forest to build risk scores, using randomForestSRC [<xref rid="R19" ref-type="bibr">19</xref>] and following <italic toggle="yes">rpart</italic> function in the rpart [<xref rid="R20" ref-type="bibr">20</xref>] R package to grow our decision tree model. A natural risk score was defined as the estimated probability of HIV seroconversion during the follow-up period. We used a two-step tree-based algorithm to build our prediction model. The first step was to run a random survival forest to obtain the variable importance of each covariate. We first screened the variables by selecting the top-K variables (10% of the variables with highest variable importance for predicting the risk of HIV acquisition). The variable importance is defined as the difference between prediction error when a variable is &#x0201c;permuted&#x0201d; versus the prediction error otherwise [<xref rid="R21" ref-type="bibr">21</xref>]. The second step was to build a classification tree based on the top-K important variables to predict the risk score. The obtained tree is interpretable and provides a flowchart-like structure in which each internal node represents a homogeneous group.</p></sec><sec id="S12"><title>Measures of risk score</title><p id="P15">We stratified analyses by sex, as the applicability and importance of some potential HIV incidence predictor variables differs by sex (e.g., male circumcision is relevant only to men, and hormonal contraception only to women). We defined the risk of an individual instance as the percentage of participants within the same terminal node who acquired HIV.</p></sec><sec id="S13"><title>Logistic regression</title><p id="P16">We then performed univariate logistic regression to further validate our tree model, using glm function [<xref rid="R22" ref-type="bibr">22</xref>], including variables that were identified by our tree models (<xref rid="T1" ref-type="table">Table 1</xref>, <xref rid="SD2" ref-type="supplementary-material">Supplemental Tables S2</xref> and <xref rid="SD3" ref-type="supplementary-material">S3</xref>). The regression analysis was done using the full dataset.</p></sec></sec><sec id="S14"><title>RESULTS</title><sec id="S15"><title>Study population</title><p id="P17">We enrolled 12,610 individuals in the prospective cohort (in randomly selected households from the 30 communities): 3,596 (29%) people with HIV and 8,974 (71%) people without HIV at enrollment (the HIV incidence cohort). Most HIV incidence cohort participants were female (60%) with median age 29.6 years (IQR 22.5, 43.2). Retention of the HIV incidence cohort was high: 8551 (95%) of the 8974 HIV-negative participants were-tested for HIV at 12 and/or 29 months after enrollment [<xref rid="R16" ref-type="bibr">16</xref>].</p><p id="P18">During the median 29 months of follow-up of the HIV incidence cohort, 147 HIV seroconversions were observed (i.e. 1.72% of the HIV incidence cohort members seroconverted during follow-up). Annual HIV incidence was lower in the intervention (0.59%) than in the standard of care arm (0.92%), and higher in females (0.71%) than in males (0.40%) [<xref rid="R16" ref-type="bibr">16</xref>].</p></sec><sec id="S16"><title>Top-K important variables</title><p id="P19">The top 11 (10%) variables, ranked by variable importance, are shown in <xref rid="F1" ref-type="fig">Figures 1A</xref> and <xref rid="F1" ref-type="fig">1B</xref> for females and males, respectively.</p><p id="P20">For females, the top 11 variables that most strongly predicted HIV acquisition risk were: education level, age category, alcohol use during last sexual encounter, community HIV prevalence, use of injectable hormonal contraception, type of relationship with 2<sup>nd</sup> most recent partner in past 12 months, energy source, frequency of alcohol use in past 12 months, marital status, perception about whether people work together to solve neighborhood problems, and frequency of sex in last 3 months with most recent sexual partner (<xref rid="F1" ref-type="fig">Figure 1A</xref>).</p><p id="P21">For males, the top 11 variables that most strongly predicted HIV acquisition risk were: type of relationship with most recent sexual partner, community HIV prevalence, education level, type of relationship with 3rd most recent sexual partner in past 12 months, region of country, frequency of sex in past 3 months with second most recent partner, age of most recent partner, reason for most recent HIV test, whether second most recent partner lived within community, age, and timing of most recent HIV test (<xref rid="F1" ref-type="fig">Figure 1B</xref>).</p></sec><sec id="S17"><title>Interpretable classification tree model</title><p id="P22"><xref rid="F2" ref-type="fig">Figures 2A</xref> and <xref rid="F2" ref-type="fig">2B</xref> present the tree models for females and males, respectively. The decimal numbers refer to the estimated probability of acquiring HIV over the follow-up period in the node, and percentages refer to the percentage of the population that is represented in that node. For example, in <xref rid="F2" ref-type="fig">Figure 2A</xref>, the root node includes 100% of female participants, and the estimated probability of overall HIV seroconversion in females is 2.3%.</p><p id="P23">For females, a combination of using injectable hormonal contraception, frequency of sex with the most recent partner in the past 3 months, and community HIV prevalence of 29% or higher were the most important variables for predicting risk of HIV acquisition.</p><p id="P24">In the tree model for females, the estimated probability of acquiring HIV was 5.1% for females using injectable hormonal contraception (who comprised 10% of female participants) (<xref rid="F2" ref-type="fig">Figure 2A</xref>). Among the 90% of women who did not use injectable hormonal contraceptives, who had a lower risk of HIV, the most important variables identified were energy source (not gas or electricity) and being less than 35 years of age (<xref rid="SD4" ref-type="supplementary-material">Supplemental Figure S1</xref>). Among females using injectable hormonal contraception who reported having sex less than 1.5 times in the past 3 months with their most recent sexual partner, their estimated probability of acquiring HIV was 13%. Among females using injectable hormonal contraception who reported having sex less than 1.5 times in the past 3 months with their most recent sexual partner and who lived in a community with HIV prevalence of at least 29%, their estimated probability of acquiring HIV was 34% over the 29-month study period (which translates to approximately 14.1% annual HIV incidence). It is important to note that this latter group that had all 3 of these characteristics comprised only 0.28% of female participants.</p><p id="P25">For males, reporting that they were in a non-long-term relationship with their most recent partner and living in a community with HIV prevalence &#x0003e;34% were the most important variables for predicting HIV risk.</p><p id="P26">In the male group tree model, the estimated probability of acquiring HIV was 1.7% for males reporting that they were in a non-long-term relationship with their most recent partner (<xref rid="F2" ref-type="fig">Figure 2B</xref>). Among males reporting that they were in a non-long-term relationship with their most recent partner, their estimated probability of acquiring HIV during the 29-month follow-up period was 5.1% if their community HIV prevalence was at least 34% (approximate annual incidence 2.1%).</p><sec id="S18"><title>Factors associated with HIV acquisition</title><p id="P27">In the univariate logistic regression analysis of the variables identified in our tree models, we confirmed that female participants using injectable hormonal contraception (odds ratio (OR) = 2.4; 95% confidence interval (CI): 1.9&#x02013;2.9) and community HIV prevalence of &#x0003e;30% (OR = 1.7; 95% CI: 1.3&#x02013;2.3) were associated with increased odds of acquiring HIV during the follow-up period (<xref rid="T1" ref-type="table">Table 1</xref>). While the frequency of sex with the most recent partner was important in identifying the next most important factor in the tree model, this variable had a wide confidence interval (high uncertainty) and was not itself a significant predictor of HIV risk in the logistic model.</p><p id="P28">We also confirmed that males whose most recent sexual partner was a boyfriend/girlfriend (OR = 4.1; 95% CI: 2.6&#x02013;6.4), most recent sexual partner was non-long-term (OR = 9.4; 95% CI: 5.5&#x02013;16.0), and living in a community with HIV prevalence of &#x0003e;30% (OR = 2.2; 95% CI: 1.3&#x02013;3.9) were each associated with increased odds of acquiring HIV during the follow-up period (<xref rid="T1" ref-type="table">Table 1</xref>).</p><p id="P29">Among female participants, HIV acquisition was associated with being aged 16&#x02013;24 years, using an energy source other than gas or electricity, and a partner using alcohol in the last sex encounter. Married female participants had reduced odds of HIV acquisition as compared to single or never-married participants (OR = 0.36; 95% CI: 0.31&#x02013;0.67) (<xref rid="SD2" ref-type="supplementary-material">Supplemental Table S2</xref>).</p><p id="P30">Among male participants, HIV acquisition was associated with having either non-formal education (OR = 5.64; 95% CI: 1.82&#x02013;17.46) or junior secondary education (OR = 3.15; 95% CI: 1.22&#x02013;8.11), as compared to having primary education; with being aged 25&#x02013;34 years (OR = 2.02; 95% CI: 1.34&#x02013;3.05), as compared to 16&#x02013;24 years; and with having an unknown casual partner (OR = 13.24; 95% CI: 3.14&#x02013;55.88), as compared to having a long-term partner (<xref rid="SD3" ref-type="supplementary-material">Supplemental Table S3</xref>). However, among female participants, those aged 25&#x02013;34 years (OR = 0.81; 95% CI :0.66&#x02013;0.99) and greater than 35 years (OR = 0.55; 95% CI: 0.40&#x02013;0.75) had a reduced likelihood of HIV acquisition compared to those aged 16&#x02013;24 years (<xref rid="SD2" ref-type="supplementary-material">Supplemental Table S2</xref>).</p></sec></sec></sec><sec id="S19"><title>DISCUSSION</title><p id="P31">Using machine learning to analyze 110 diverse potential HIV risk predictors in a large, population-level prospective HIV incidence cohort from across Botswana, we identified several factors that were strongly predictive of actual HIV acquisition. In females, the combination of using injectable hormonal contraception, reporting less frequent sex with their most recent sexual partner, and living in a community with high HIV prevalence was associated with HIV seroconversion. And for females, reporting less frequent sex with the most recent partner may be a proxy for that partner being a casual sexual relationship. In males, the combination of having a non-long-term relationship with their most recent sexual partner and high community HIV prevalence was most predictive of HIV risk. These predictors could conceivably be used by clinicians and HIV prevention programs in Botswana, using readily available and regularly updated nationwide and community-specific prevalence data, to help target PrEP to HIV-negative women and men who have a higher risk for HIV infection.</p><p id="P32">Machine learning is a powerful approach to evaluating predictors of HIV infection risk when large numbers of individual-level sociodemographic and behavioral factors and community-level factors are available. Tree-based methods in machine learning, including algorithms like decision trees, random forests, and boosting, offer several advantages. Unlike parametric models, tree-based methods can capture nonlinear relationships between features and the response [<xref rid="R23" ref-type="bibr">23</xref>]. In addition, random forests and boosting leverage ensemble learning by combining multiple trees to improve predictive accuracy. This ensemble approach helps to reduce overfitting and enhance generalizability. Furthermore, decision trees are interpretable models in the sense that they mimic human decision-making processes by partitioning the feature space into segments that are easy to understand [<xref rid="R24" ref-type="bibr">24</xref>]. This makes it easier to explain the machine learner&#x02019;s predictions to practitioners.</p><p id="P33">While both random forests and boosting usually perform similarly in terms of predictive accuracy, random forests might be more robust to overfitting, especially when dealing with noisy data or datasets with a large number of predictors. Moreover, random forests provide a built-in feature, variable importance, which measures the importance of variables in making predictions [<xref rid="R15" ref-type="bibr">15</xref>].</p><p id="P34">Few prior studies have used machine learning approaches to construct risk profiles or risk scores [<xref rid="R7" ref-type="bibr">7</xref>, <xref rid="R25" ref-type="bibr">25</xref>]. These analyses compared the performance of several machine learning algorithms to conventional logistic regression methods and found machine learning methods to be superior for identifying individuals at risk for HIV. Previous observational evidence provided mixed evidence showing a higher risk of HIV acquisition in women using injectable hormonal contraceptive [<xref rid="R26" ref-type="bibr">26</xref>&#x02013;<xref rid="R30" ref-type="bibr">30</xref>] (although the randomized ECHO trial did not observe increased risk [<xref rid="R31" ref-type="bibr">31</xref>]). The other risk factors identified by our machine learning analysis are generally also plausible in the context of the regional HIV epidemic.</p><p id="P35">Our study had several strengths. We collected a rich and broad complement of sociodemographic and behavioral factors and followed a large, population-based, representative sample of adults from across Botswana to ascertain HIV incidence. We had high (95%) follow-up and HIV re-testing rates and high data completeness for relevant variables. Our study also has limitations: it was focused on rural/peri-urban areas and enrolled more females than males.</p><p id="P36">The top 11 variables and the final variables selected by our tree model were consistent with known or potential risk factors for HIV acquisition. However, some of the detailed variables would not likely have been included <italic toggle="yes">a priori</italic> in conventional logistic regression models. In summary, this machine learning approach allowed efficient identification of risk factors that could conceivably be ascertained in a clinical setting in Botswana and even used to help direct and offer interventions such as PrEP.</p></sec><sec sec-type="supplementary-material" id="SM1"><title>Supplementary Material</title><supplementary-material id="SD1" position="float" content-type="local-data"><label>Supplemental Table S1</label><caption><p id="P37"><bold>Supplemental Table S1.</bold> Data dictionary for 110 variables included as potential predictors of HIV acquisition risk</p></caption><media xlink:href="NIHMS2033393-supplement-Supplemental_Table_S1.docx" id="d67e545" position="anchor"/></supplementary-material><supplementary-material id="SD2" position="float" content-type="local-data"><label>Supplemental Table S2</label><caption><p id="P38"><bold>Supplemental Table S2.</bold> Odds ratios of the top 9 variables predicting HIV seroconversion in females</p></caption><media xlink:href="NIHMS2033393-supplement-Supplemental_Table_S2.docx" id="d67e552" position="anchor"/></supplementary-material><supplementary-material id="SD3" position="float" content-type="local-data"><label>Supplemental Table S3</label><caption><p id="P39"><bold>Supplemental Table S3.</bold> Odds ratios of the top 9 variables predicting HIV seroconversion in males</p></caption><media xlink:href="NIHMS2033393-supplement-Supplemental_Table_S3.docx" id="d67e559" position="anchor"/></supplementary-material><supplementary-material id="SD4" position="float" content-type="local-data"><label>Supplemental Figure S1</label><caption><p id="P40"><bold>Supplemental Figure S1.</bold> Tree models for estimated probability of acquiring HIV for females (A) and males (B)</p></caption><media xlink:href="NIHMS2033393-supplement-Supplemental_Figure_S1.pdf" id="d67e566" position="anchor"/></supplementary-material></sec></body><back><ack id="S20"><title>ACKNOWLEDGEMENTS</title><p id="P41">The authors thank study participants, dikgosi and other community leaders, and the clinic staff, District Health Management Teams, and Community Health Facilities at study sites; the <italic toggle="yes">Ya Tsie</italic> Study Team at the Botswana Harvard AIDS Institute Partnership, the Harvard T.H. Chan School of Public Health, the CDC Botswana, and the Botswana Ministry of Health; Ria Madison and Lars Colson for administrative support; our implementing partners, Tebelopele Voluntary Counseling and Testing Centers, and Jhpiego - Botswana; and the NIAID Prevention-Africa Data and Safety Monitoring Board. The authors also thank all the members of the Ya Tsie Community Advisory Board.</p><sec id="S21"><title>FUNDING</title><p id="P42">YC was supported by the National Natural Science Foundation of China. SM was supported by the Fogarty International Center (FIC) at the US National Institutes of Health (K43 TW012350, D43 TW009610). This work was partially supported by grants from FIC (D43 TW009610-09S1) and the National Institute of Allergy and Infectious Diseases (K24 AI131928, K24 AI131924). The BCPP was supported by the United States President&#x02019;s Emergency Plan for AIDS Relief (PEPFAR) through the Centers for Disease Control and Prevention (CDC) (U01 GH000447, U2G GH001911). The views expressed in this publication are those of the authors and not necessarily those of the funding agencies. The funders had no role in the study design, data collection, decision to publish, or preparation of this manuscript.</p></sec></ack><ref-list><title>References</title><ref id="R1"><label>1.</label><mixed-citation publication-type="journal"><name><surname>Govender</surname><given-names>K</given-names></name>, <name><surname>Nyamaruze</surname><given-names>P</given-names></name>, <name><surname>Cowden</surname><given-names>RG</given-names></name>, <name><surname>Pillay</surname><given-names>Y</given-names></name>, <name><surname>Bekker</surname><given-names>L-G</given-names></name>. <article-title>Children and young women in eastern and southern Africa are key to meeting 2030 HIV targets: time to accelerate action</article-title>. <source>Lancet HIV</source>
<year>2023</year>; <volume>10</volume>:<fpage>e343</fpage>&#x02013;<lpage>e350</lpage>.<pub-id pub-id-type="pmid">37149293</pub-id>
</mixed-citation></ref><ref id="R2"><label>2.</label><mixed-citation publication-type="journal"><name><surname>Frescura</surname><given-names>L</given-names></name>, <name><surname>Godfrey-Faussett</surname><given-names>P</given-names></name>, <name><surname>Feizzadeh</surname><given-names>AA</given-names></name>, <name><surname>El-Sadr</surname><given-names>W</given-names></name>, <name><surname>Syarif</surname><given-names>O</given-names></name>, <name><surname>Ghys</surname><given-names>PD</given-names></name>, <etal/>
<article-title>Achieving the 95 95 95 targets for all: A pathway to ending AIDS</article-title>. <source>PLOS ONE</source>
<year>2022</year>; <volume>17</volume>:<fpage>e0272405</fpage>.<pub-id pub-id-type="pmid">35925943</pub-id>
</mixed-citation></ref><ref id="R3"><label>3.</label><mixed-citation publication-type="journal"><name><surname>Stannah</surname><given-names>J</given-names></name>, <name><surname>Soni</surname><given-names>N</given-names></name>, <name><surname>Lam</surname><given-names>JKS</given-names></name>, <name><surname>Gigu&#x000e8;re</surname><given-names>K</given-names></name>, <name><surname>Mitchell</surname><given-names>KM</given-names></name>, <name><surname>Kronfli</surname><given-names>N</given-names></name>, <etal/>
<article-title>Trends in HIV testing, the treatment cascade, and HIV incidence among men who have sex with men in Africa: a systematic review and meta-analysis</article-title>. <source>Lancet HIV</source>
<year>2023</year>:<fpage>e528</fpage>&#x02013;<lpage>e542</lpage>.<pub-id pub-id-type="pmid">37453439</pub-id>
</mixed-citation></ref><ref id="R4"><label>4.</label><mixed-citation publication-type="journal"><name><surname>Mine</surname><given-names>M</given-names></name>, <name><surname>Stafford</surname><given-names>KA</given-names></name>, <name><surname>Laws</surname><given-names>RL</given-names></name>, <name><surname>Marima</surname><given-names>R</given-names></name>, <name><surname>Lekone</surname><given-names>P</given-names></name>, <name><surname>Ramaabya</surname><given-names>D</given-names></name>, <etal/>
<article-title>Progress towards the UNAIDS 95-95-95 targets in the Fifth Botswana AIDS Impact Survey (BAIS V 2021): a nationally representative survey</article-title>. <source>The Lancet HIV</source>
<year>2024</year>; <volume>11</volume>:<fpage>e245</fpage>&#x02013;<lpage>e254</lpage>.<pub-id pub-id-type="pmid">38467135</pub-id>
</mixed-citation></ref><ref id="R5"><label>5.</label><mixed-citation publication-type="journal"><name><surname>Fieggen</surname><given-names>J</given-names></name>, <name><surname>Smith</surname><given-names>E</given-names></name>, <name><surname>Arora</surname><given-names>L</given-names></name>, <name><surname>Segal</surname><given-names>B</given-names></name>. <article-title>The role of machine learning in HIV risk prediction</article-title>. <source>Front Reprod Health</source>
<year>2022</year>; <volume>4</volume>:<fpage>1062387</fpage>.<pub-id pub-id-type="pmid">36619681</pub-id>
</mixed-citation></ref><ref id="R6"><label>6.</label><mixed-citation publication-type="journal"><name><surname>Majam</surname><given-names>M</given-names></name>, <name><surname>Segal</surname><given-names>B</given-names></name>, <name><surname>Fieggen</surname><given-names>J</given-names></name>, <name><surname>Smith</surname><given-names>E</given-names></name>, <name><surname>Hermans</surname><given-names>L</given-names></name>, <name><surname>Singh</surname><given-names>L</given-names></name>, <etal/>
<article-title>Utility of a machine-guided tool for assessing risk behaviour associated with contracting HIV in three sites in South Africa</article-title>. <source>Inform Med Unlocked</source>
<year>2023</year>; <volume>37</volume>:<fpage>101192</fpage>.<pub-id pub-id-type="pmid">36911795</pub-id>
</mixed-citation></ref><ref id="R7"><label>7.</label><mixed-citation publication-type="journal"><name><surname>He</surname><given-names>J</given-names></name>, <name><surname>Li</surname><given-names>J</given-names></name>, <name><surname>Jiang</surname><given-names>S</given-names></name>, <name><surname>Cheng</surname><given-names>W</given-names></name>, <name><surname>Jiang</surname><given-names>J</given-names></name>, <name><surname>Xu</surname><given-names>Y</given-names></name>, <etal/>
<article-title>Application of machine learning algorithms in predicting HIV infection among men who have sex with men: Model development and validation</article-title>. <source>Front Public Health</source>
<year>2022</year>; <volume>10</volume>:<fpage>967681</fpage>.<pub-id pub-id-type="pmid">36091522</pub-id>
</mixed-citation></ref><ref id="R8"><label>8.</label><mixed-citation publication-type="journal"><name><surname>Mutai</surname><given-names>CK</given-names></name>, <name><surname>McSharry</surname><given-names>PE</given-names></name>, <name><surname>Ngaruye</surname><given-names>I</given-names></name>, <name><surname>Musabanganji</surname><given-names>E</given-names></name>. <article-title>Use of machine learning techniques to identify HIV predictors for screening in sub-Saharan Africa</article-title>. <source>BMC Med Res Methodol</source>
<year>2021</year>; <volume>21</volume>:<fpage>159</fpage>.<pub-id pub-id-type="pmid">34332540</pub-id>
</mixed-citation></ref><ref id="R9"><label>9.</label><mixed-citation publication-type="journal"><name><surname>Xu</surname><given-names>X</given-names></name>, <name><surname>Ge</surname><given-names>Z</given-names></name>, <name><surname>Chow</surname><given-names>EPF</given-names></name>, <name><surname>Yu</surname><given-names>Z</given-names></name>, <name><surname>Lee</surname><given-names>D</given-names></name>, <name><surname>Wu</surname><given-names>J</given-names></name>, <etal/>
<article-title>A Machine-Learning-Based Risk-Prediction Tool for HIV and Sexually Transmitted Infections Acquisition over the Next 12 Months</article-title>. <source>J Clin Med</source>
<year>2022</year>; <volume>11</volume>:<fpage>1818</fpage>.<pub-id pub-id-type="pmid">35407428</pub-id>
</mixed-citation></ref><ref id="R10"><label>10.</label><mixed-citation publication-type="journal"><name><surname>Marcus</surname><given-names>JL</given-names></name>, <name><surname>Hurley</surname><given-names>LB</given-names></name>, <name><surname>Krakower</surname><given-names>DS</given-names></name>, <name><surname>Alexeeff</surname><given-names>S</given-names></name>, <name><surname>Silverberg</surname><given-names>MJ</given-names></name>, <name><surname>Volk</surname><given-names>JE</given-names></name>. <article-title>Use of electronic health record data and machine learning to identify candidates for HIV pre-exposure prophylaxis: a modelling study</article-title>. <source>Lancet HIV</source>
<year>2019</year>; <volume>6</volume>:<fpage>e688</fpage>&#x02013;<lpage>e695</lpage>.<pub-id pub-id-type="pmid">31285183</pub-id>
</mixed-citation></ref><ref id="R11"><label>11.</label><mixed-citation publication-type="journal"><name><surname>Krakower</surname><given-names>DS</given-names></name>, <name><surname>Gruber</surname><given-names>S</given-names></name>, <name><surname>Hsu</surname><given-names>K</given-names></name>, <name><surname>Menchaca</surname><given-names>JT</given-names></name>, <name><surname>Maro</surname><given-names>JC</given-names></name>, <name><surname>Kruskal</surname><given-names>BA</given-names></name>, <etal/>
<article-title>Development and validation of an automated HIV prediction algorithm to identify candidates for pre-exposure prophylaxis: a modelling study</article-title>. <source>Lancet HIV</source>
<year>2019</year>; <volume>6</volume>:<fpage>e696</fpage>&#x02013;<lpage>e704</lpage>.<pub-id pub-id-type="pmid">31285182</pub-id>
</mixed-citation></ref><ref id="R12"><label>12.</label><mixed-citation publication-type="journal"><name><surname>Zheng</surname><given-names>W</given-names></name>, <name><surname>Balzer</surname><given-names>L</given-names></name>, <name><surname>van der Laan</surname><given-names>M</given-names></name>, <name><surname>Petersen</surname><given-names>M</given-names></name>. <article-title>Constrained binary classification using ensemble learning: an application to cost-efficient targeted PrEP strategies</article-title>. <source>Stat Med</source>
<year>2018</year>; <volume>37</volume>:<fpage>261</fpage>&#x02013;<lpage>279</lpage>.<pub-id pub-id-type="pmid">28384841</pub-id>
</mixed-citation></ref><ref id="R13"><label>13.</label><mixed-citation publication-type="journal"><name><surname>Esteve</surname><given-names>M</given-names></name>, <name><surname>Aparicio</surname><given-names>J</given-names></name>, <name><surname>Rodriguez-Sala</surname><given-names>JJ</given-names></name>, <name><surname>Zhu</surname><given-names>J</given-names></name>. <article-title>Random Forests and the measurement of super-efficiency in the context of Free Disposal Hull</article-title>. <source>Eur J Oper Res</source>
<year>2023</year>; <volume>304</volume>:<fpage>729</fpage>&#x02013;<lpage>744</lpage>.</mixed-citation></ref><ref id="R14"><label>14.</label><mixed-citation publication-type="journal"><name><surname>Sarker</surname><given-names>IH</given-names></name>. <article-title>Machine Learning: Algorithms, Real-World Applications and Research Directions</article-title>. <source>SN Comput Sci</source>
<year>2021</year>; <volume>2</volume>:<fpage>160</fpage>.<pub-id pub-id-type="pmid">33778771</pub-id>
</mixed-citation></ref><ref id="R15"><label>15.</label><mixed-citation publication-type="journal"><name><surname>Aldrich</surname><given-names>C</given-names></name>
<article-title>Process Variable Importance Analysis by Use of Random Forests in a Shapley Regression Framework</article-title>. <source>Minerals</source>
<year>2020</year>; <volume>10</volume>:<fpage>420</fpage>.</mixed-citation></ref><ref id="R16"><label>16.</label><mixed-citation publication-type="journal"><name><surname>Makhema</surname><given-names>J</given-names></name>, <name><surname>Wirth</surname><given-names>KE</given-names></name>, <name><surname>Pretorius Holme</surname><given-names>M</given-names></name>, <name><surname>Gaolathe</surname><given-names>T</given-names></name>, <name><surname>Mmalane</surname><given-names>M</given-names></name>, <name><surname>Kadima</surname><given-names>E</given-names></name>, <etal/>
<article-title>Universal Testing, Expanded Treatment, and Incidence of HIV Infection in Botswana</article-title>. <source>N Engl J Med</source>
<year>2019</year>; <volume>381</volume>:<fpage>230</fpage>&#x02013;<lpage>242</lpage>.<pub-id pub-id-type="pmid">31314967</pub-id>
</mixed-citation></ref><ref id="R17"><label>17.</label><mixed-citation publication-type="journal"><name><surname>Wirth</surname><given-names>KE</given-names></name>, <name><surname>Gaolathe</surname><given-names>T</given-names></name>, <name><surname>Pretorius Holme</surname><given-names>M</given-names></name>, <name><surname>Mmalane</surname><given-names>M</given-names></name>, <name><surname>Kadima</surname><given-names>E</given-names></name>, <name><surname>Chakalisa</surname><given-names>U</given-names></name>, <etal/>
<article-title>Population uptake of HIV testing, treatment, viral suppression, and male circumcision following a community-based intervention in Botswana (Ya Tsie/BCPP): a cluster-randomised trial</article-title>. <source>Lancet HIV</source>
<year>2020</year>; <volume>7</volume>:<fpage>e422</fpage>&#x02013;<lpage>e433</lpage>.<pub-id pub-id-type="pmid">32504575</pub-id>
</mixed-citation></ref><ref id="R18"><label>18.</label><mixed-citation publication-type="webpage"><name><surname>Stekhoven</surname><given-names>DJ</given-names></name>. <source>Using the missForest package</source>. <year>2011</year>:<fpage>11pp</fpage>. <comment><ext-link xlink:href="https://stat.ethz.ch/education/semesters/ss2012/ams/paper/missForest_2011.2012.pdf" ext-link-type="uri">https://stat.ethz.ch/education/semesters/ss2012/ams/paper/missForest_2011.2012.pdf</ext-link>.</comment></mixed-citation></ref><ref id="R19"><label>19.</label><mixed-citation publication-type="journal"><name><surname>Ishwaran</surname><given-names>H</given-names></name>, <name><surname>Kogalur</surname><given-names>U</given-names></name>, <name><surname>Blackstone</surname><given-names>E</given-names></name>, <name><surname>Lauer</surname><given-names>M</given-names></name>. <article-title>Random survival forests</article-title>. <source>Ann Appl Stat</source>
<year>2008</year>; <volume>2</volume>:<fpage>841</fpage>&#x02013;<lpage>860</lpage>.</mixed-citation></ref><ref id="R20"><label>20.</label><mixed-citation publication-type="webpage"><name><surname>Therneau</surname><given-names>T</given-names></name>, <name><surname>Atkinson</surname><given-names>B</given-names></name>, <name><surname>Ripley</surname><given-names>B</given-names></name>. <source>rpart: Recursive Partitioning and Regression Trees</source>. <year>2023</year>:<fpage>34</fpage>pp. <comment><ext-link xlink:href="https://cran.r-project.org/package=rpart" ext-link-type="uri">https://cran.r-project.org/package=rpart</ext-link>.</comment></mixed-citation></ref><ref id="R21"><label>21.</label><mixed-citation publication-type="journal"><name><surname>Ishwaran</surname><given-names>H</given-names></name>
<article-title>Variable importance in binary regression trees and forests</article-title>. <source>Electron J Statist</source>
<year>2007</year>; <volume>1</volume>:<fpage>519</fpage>&#x02013;<lpage>537</lpage>.</mixed-citation></ref><ref id="R22"><label>22.</label><mixed-citation publication-type="journal"><name><surname>Calcagno</surname><given-names>V</given-names></name>, <name><surname>de Mazancourt</surname><given-names>C</given-names></name>. <article-title>glmulti: an R package for easy automated model selection with (generalized) linear models</article-title>. <source>J Stat Software</source>
<year>2010</year>; <volume>34</volume>:<fpage>1</fpage>&#x02013;<lpage>29</lpage>.</mixed-citation></ref><ref id="R23"><label>23.</label><mixed-citation publication-type="journal"><name><surname>Athey</surname><given-names>S</given-names></name>, <name><surname>Tibshirani</surname><given-names>J</given-names></name>, <name><surname>Wager</surname><given-names>S</given-names></name>. <article-title>Generalized random forests</article-title>. <source>Ann Statist</source>
<year>2019</year>; <volume>47</volume>:<fpage>1148</fpage>&#x02013;<lpage>1178</lpage>.</mixed-citation></ref><ref id="R24"><label>24.</label><mixed-citation publication-type="journal"><name><surname>Hothorn</surname><given-names>T</given-names></name>, <name><surname>Hornik</surname><given-names>K</given-names></name>, <name><surname>Zeileis</surname><given-names>A</given-names></name>. <article-title>Unbiased recursive partitioning: A conditional inference framework</article-title>. <source>J Comput Graph Stat</source>
<year>2006</year>; <volume>15</volume>:<fpage>651</fpage>&#x02013;<lpage>674</lpage>.</mixed-citation></ref><ref id="R25"><label>25.</label><mixed-citation publication-type="journal"><name><surname>Balzer</surname><given-names>LB</given-names></name>, <name><surname>Havlir</surname><given-names>DV</given-names></name>, <name><surname>Kamya</surname><given-names>MR</given-names></name>, <name><surname>Chamie</surname><given-names>G</given-names></name>, <name><surname>Charlebois</surname><given-names>ED</given-names></name>, <name><surname>Clark</surname><given-names>TD</given-names></name>, <etal/>
<article-title>Machine learning to identify persons at high-risk of human immunodeficiency virus acquisition in rural Kenya and Uganda</article-title>. <source>Clin Infect Dis</source>
<year>2020</year>; <volume>71</volume>:<fpage>2326</fpage>&#x02013;<lpage>2333</lpage>.<pub-id pub-id-type="pmid">31697383</pub-id>
</mixed-citation></ref><ref id="R26"><label>26.</label><mixed-citation publication-type="journal"><name><surname>Balkus</surname><given-names>JE</given-names></name>, <name><surname>Brown</surname><given-names>ER</given-names></name>, <name><surname>Hillier</surname><given-names>SL</given-names></name>, <name><surname>Coletti</surname><given-names>A</given-names></name>, <name><surname>Ramjee</surname><given-names>G</given-names></name>, <name><surname>Mgodi</surname><given-names>N</given-names></name>, <etal/>
<article-title>Oral and injectable contraceptive use and HIV acquisition risk among women in four African countries: a secondary analysis of data from a microbicide trial</article-title>. <source>Contraception</source>
<year>2016</year>; <volume>93</volume>:<fpage>25</fpage>&#x02013;<lpage>31</lpage>.<pub-id pub-id-type="pmid">26519646</pub-id>
</mixed-citation></ref><ref id="R27"><label>27.</label><mixed-citation publication-type="journal"><name><surname>Byrne</surname><given-names>EH</given-names></name>, <name><surname>Anahtar</surname><given-names>MN</given-names></name>, <name><surname>Cohen</surname><given-names>KE</given-names></name>, <name><surname>Moodley</surname><given-names>A</given-names></name>, <name><surname>Padavattan</surname><given-names>N</given-names></name>, <name><surname>Ismail</surname><given-names>N</given-names></name>, <etal/>
<article-title>Association between injectable progestin-only contraceptives and HIV acquisition and HIV target cell frequency in the female genital tract in South African women: a prospective cohort study</article-title>. <source>Lancet Infect Dis</source>
<year>2016</year>; <volume>16</volume>:<fpage>441</fpage>&#x02013;<lpage>448</lpage>.<pub-id pub-id-type="pmid">26723758</pub-id>
</mixed-citation></ref><ref id="R28"><label>28.</label><mixed-citation publication-type="journal"><name><surname>Wall</surname><given-names>KM</given-names></name>, <name><surname>Kilembe</surname><given-names>W</given-names></name>, <name><surname>Vwalika</surname><given-names>B</given-names></name>, <name><surname>Htee Khu</surname><given-names>N</given-names></name>, <name><surname>Brill</surname><given-names>I</given-names></name>, <name><surname>Chomba</surname><given-names>E</given-names></name>, <etal/>
<article-title>Hormonal contraception does not increase women&#x02019;s HIV acquisition risk in Zambian discordant couples, 1994&#x02013;2012</article-title>. <source>Contraception</source>
<year>2015</year>; <volume>91</volume>:<fpage>480</fpage>&#x02013;<lpage>487</lpage>.<pub-id pub-id-type="pmid">25708502</pub-id>
</mixed-citation></ref><ref id="R29"><label>29.</label><mixed-citation publication-type="journal"><name><surname>Wand</surname><given-names>H</given-names></name>, <name><surname>Ramjee</surname><given-names>G</given-names></name>. <article-title>The effects of injectable hormonal contraceptives on HIV seroconversion and on sexually transmitted infections</article-title>. <source>AIDS</source>
<year>2012</year>; <volume>26</volume>:<fpage>375</fpage>&#x02013;<lpage>380</lpage>.<pub-id pub-id-type="pmid">22156970</pub-id>
</mixed-citation></ref><ref id="R30"><label>30.</label><mixed-citation publication-type="journal"><name><surname>Curtis</surname><given-names>KM</given-names></name>, <name><surname>Hannaford</surname><given-names>PC</given-names></name>, <name><surname>Rodriguez</surname><given-names>MI</given-names></name>, <name><surname>Chipato</surname><given-names>T</given-names></name>, <name><surname>Steyn</surname><given-names>PS</given-names></name>, <name><surname>Kiarie</surname><given-names>JN</given-names></name>. <article-title>Hormonal contraception and HIV acquisition among women: an updated systematic review</article-title>. <source>BMJ Sex Reprod Health</source>
<year>2020</year>; <volume>46</volume>:<fpage>8</fpage>&#x02013;<lpage>16</lpage>.</mixed-citation></ref><ref id="R31"><label>31.</label><mixed-citation publication-type="journal"><collab>Evidence for Contraceptive Options and HIV Outcomes (ECHO) Trial Consortium</collab>. <article-title>HIV incidence among women using intramuscular depot medroxyprogesterone acetate, a copper intrauterine device, or a levonorgestrel implant for contraception: a randomised, multicentre, open-label trial</article-title>. <source>Lancet</source>
<year>2019</year>; <volume>394</volume>:<fpage>303</fpage>&#x02013;<lpage>313</lpage>.<pub-id pub-id-type="pmid">31204114</pub-id>
</mixed-citation></ref></ref-list></back><floats-group><fig position="float" id="F1"><label>Figure 1.</label><caption><p id="P43">Top 11 most important variables for females (A) and males (B)</p></caption><graphic xlink:href="nihms-2033393-f0001" position="float"/></fig><fig position="float" id="F2"><label>Figure 2.</label><caption><p id="P44">Tree models for estimated probability of acquiring HIV for females (A) and males (B)</p></caption><graphic xlink:href="nihms-2033393-f0002" position="float"/><graphic xlink:href="nihms-2033393-f0003" position="float"/></fig><table-wrap position="float" id="T1"><label>Table 1.</label><caption><p id="P45">Odds ratios for variables predicting HIV seroconversion in females and males (with a focus on variables included in the tree models)</p></caption><table frame="hsides" rules="rows"><colgroup span="1"><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/><col align="left" valign="middle" span="1"/></colgroup><thead><tr><th align="left" valign="top" rowspan="1" colspan="1">Predictor variable</th><th align="center" valign="top" rowspan="1" colspan="1">Odds Ratio</th><th align="center" valign="top" rowspan="1" colspan="1">95% Confidence Interval</th><th align="center" valign="top" rowspan="1" colspan="1">P-value</th></tr></thead><tbody><tr><td colspan="4" align="left" valign="middle" rowspan="1">
<bold>Females</bold>
</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Using injectable hormonal contraception (reference: not using injectable hormonal contraception)</td><td align="center" valign="top" rowspan="1" colspan="1">2.4</td><td align="center" valign="top" rowspan="1" colspan="1">1.9&#x02013;2.9</td><td align="center" valign="top" rowspan="1" colspan="1">&#x0003c;0.001</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Had sex with their most recent partner more than 1.5 times in last 3 months, on average (reference: all others<xref rid="TFN1" ref-type="table-fn">*</xref>)</td><td align="center" valign="top" rowspan="1" colspan="1">0.9</td><td align="center" valign="top" rowspan="1" colspan="1">0.7&#x02013;1.2</td><td align="center" valign="top" rowspan="1" colspan="1">0.37</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Community HIV prevalence 20%&#x02212;30% (reference &#x0003c;20%)</td><td align="center" valign="top" rowspan="1" colspan="1">1.3</td><td align="center" valign="top" rowspan="1" colspan="1">0.98&#x02013;1.8</td><td align="center" valign="top" rowspan="1" colspan="1">0.07</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Community HIV prevalence 30%&#x02212;50% (reference &#x0003c;20%)</td><td align="center" valign="top" rowspan="1" colspan="1">1.7</td><td align="center" valign="top" rowspan="1" colspan="1">1.3&#x02013;2.3</td><td align="center" valign="top" rowspan="1" colspan="1">&#x0003c;0.001</td></tr><tr><td colspan="4" align="left" valign="middle" rowspan="1">
<bold>Males</bold>
</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Most recent sexual partner was boyfriend/girlfriend (reference: most recent sexual partner was a long-term partner)</td><td align="center" valign="top" rowspan="1" colspan="1">4.1</td><td align="center" valign="top" rowspan="1" colspan="1">2.6&#x02013;6.4</td><td align="center" valign="top" rowspan="1" colspan="1">&#x0003c;0.001</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Most recent sexual partner was casual<xref rid="TFN2" ref-type="table-fn">**</xref> (reference: most recent sexual partner was a long-term partner)</td><td align="center" valign="top" rowspan="1" colspan="1">9.4</td><td align="center" valign="top" rowspan="1" colspan="1">5.5&#x02013;16.0</td><td align="center" valign="top" rowspan="1" colspan="1">&#x0003c;0.001</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Community HIV prevalence 20%&#x02212;30% (reference &#x0003c;20%)</td><td align="center" valign="top" rowspan="1" colspan="1">0.7</td><td align="center" valign="top" rowspan="1" colspan="1">0.4&#x02013;1.3</td><td align="center" valign="top" rowspan="1" colspan="1">0.3</td></tr><tr><td align="left" valign="top" rowspan="1" colspan="1">Community HIV prevalence 30%&#x02212;50% (reference &#x0003c;20%)</td><td align="center" valign="top" rowspan="1" colspan="1">2.2</td><td align="center" valign="top" rowspan="1" colspan="1">1.3&#x02013;3.9</td><td align="center" valign="top" rowspan="1" colspan="1">.005</td></tr></tbody></table><table-wrap-foot><fn id="TFN1"><label>*</label><p id="P46">&#x0201c;All others&#x0201d; reference group includes people having sex with their most recent partner &#x02264;1.5 times in last 3 months and people who did not report having a sexual partner in the past year.</p></fn><fn id="TFN2"><label>**</label><p id="P47">Casual sexual partner defined in analysis as: casual partner who is known to the respondent; one-time partner; commercial sex worker; or other type of casual partner (predictor and reference variables both exclude boyfriend/girlfriend for this specific comparison).</p></fn></table-wrap-foot></table-wrap></floats-group></article>