ORIGINAL ARTICLE

Post-treatment infection prediction in CLL using domain adaptation of lymphoma electronic health records

Mehdi Parviza symbol, Christian Brieghelb,c, Mikkel Werlingb,c, Thomas Lacoppidanb,c, Emelie Rotbainb,c, Carsten U. Niemannb,c,d symbol and Rudi Agiusb

aDepartment of Biology, University of Copenhagen, Copenhagen, Denmark; bDepartment of Hematology, Copenhagen University Hospital, Rigshospitalet, Copenhagen, Denmark; cDanish Cancer Institute, Danish Cancer Society, Copenhagen, Denmark; dDepartment of Clinical Medicine, University of Copenhagen, Copenhagen, Denmark

ABSTRACT

Background and purpose: Infections are the leading cause of morbidity and mortality in patients with chronic lymphocytic leukemia (CLL) and occur during and after treatment. When deciding on the type of CLL treatment, the risk of infections is typically assessed based only on age and comorbidities; therefore, there is a need to develop a predictive model that incorporates information from multiple data sources. However, training an effective machine learning model requires a large sample size.

Patient/material and methods: In this study, we developed a machine learning approach using domain adaptation (DA) to predict the risk of severe infection during treatment in patients with CLL. We implemented a DA strategy using lymphoma patient data and compared it with a domain-specific (DS) strategy across multiple models.

Results: The DA strategy outperformed the DS strategy across all models, with an odds ratio of 4.43 for infection risk between high-risk and low-risk groups, compared with an odds ratio of 3.69 for the best DS model and 2.27 for the CLL-IPI alone. Explainability analysis identified predictive features for both the DA and DS models, including medication data and biochemistry tests. Specifically, C-reactive protein levels and non-therapeutic drugs were common features identified by both DA and DS models, while the DA models relied more heavily on alimentary tract drugs, solvents and diluting agents, and antibacterial medications.

Interpretation: These findings highlight the value of integrating data from different diseases (lymphoma) to improve predictions in a target disease (CLL), and represent a step toward data-driven identification of CLL patients at high risk of infection during treatment.

KEYWORDS: CLL; adverse events; infection; treatment; prediction; machine learning

 

Citation: ACTA ONCOLOGICA 2026, VOL. 65, 109–118. https://doi.org/10.2340/1651-226X.2026.44569.

Copyright: © 2026 The Author(s). Published by MJS Publishing on behalf of Acta Oncologica. This is an Open Access article distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/).

Received: 20 September 2025; Accepted: 30 January 2026; Published: 19 February 2026

CONTACT: Rudi Agius rudi.agius.01@regionh.dk Department of Hematology, Rigshospitalet, Copenhagen University Hospital, Blegdamsvej 9, Copenhagen 2100, Denmark

Supplemental data for this article can be accessed online at https://doi.org/10.2340/1651-226X.2026.44569

Competing interests and funding: Mehdi Parviz received research grants from AstraZeneca. Christian Brieghel declares no conflicts of interest. Emelie Curovic Rotbain received research grants and/or consultancy fees from Abbvie, AstraZeneca, and Janssen. Carsten Utoft Niemann received research grants and/or consultancy fees from Abbvie, AstraZeneca, Janssen, Lilly, Beigene, Genmab, Octapharma, Takeda, MSD and CSL Behring.

 

Introduction

Assessing infection risk upon treatment for chronic lymphocytic leukemia (CLL) is essential, as common treatments such as chemoimmunotherapy (CIT) and targeted therapies can weaken the immune system [1, 2]. Recent studies highlight the complex interactions between the development and growth of CLL cells, and the targeted therapies [3, 4]. By impairing immune function, CIT and targeted treatments increase susceptibility to infections [5, 6], leading to reduced quality of life [7] and greater healthcare costs [8]. As CLL treatments have advanced considerably over the last decade, evaluating the risk of adverse events, especially infections, remains crucial. Treatment should ideally be tailored to each patient’s condition within a personalized medicine approach.

Developing a scoring or prediction model can help doctors to more easily identify high-risk patients. Such models have proven to be effective in various clinical contexts, including emergency medicine [9], pediatrics [10], acute myeloid leukemia [11], CLL [12], solid cancers [13], and infectious diseases [14]. Previous studies have examined whether machine learning (ML) can predict infection risk at the time of diagnosis [15, 16]. Recently, an ML-based model designed to predict the combined risk of treatment and infection (also known as CLL-TIM), has been integrated into a hospital information system [17]. This model demonstrated that incorporating a larger volume of data, including more variables and long-term patient histories, along with advanced ML algorithms, leads to improved predictive performance compared to traditional scoring systems. While the CLL-TIM model has been successful in predicting the combined risk of treatment and infection at the time of diagnosis, its utility during the treatment phase is limited. This is because it was not trained on post-diagnosis data and does not account for information related to treatment types. Moreover, CLL-TIM has shown lower accuracy in predicting infections compared to treatment-related risks. Given the challenges of infection prediction and the evidence that historical data combined with ML can improve accuracy, we explored whether incorporating data from other diseases can further enhance infection prediction for CLL patients during treatment.

However, achieving strong performance with ML models usually requires large sample sizes. In medical domain, assembling such extensive datasets is difficult due to strict privacy regulations and the high cost of generating clinical data, such as diagnostic tests or sequencing [18, 19]. This issue limits the performance of domain-specific (DS) models specially when dealing with rare diseases [20]. In machine learning, the challenge of small sample sizes is often addressed with Domain Adaptation (DA), which augments target data with data from related domains (e.g., diseases with similar traits) [20, 21]. DA and, more broadly, transfer learning offer practical, theoretically grounded ways to leverage larger cancer datasets to improve prediction in a narrower target domain. DA assumes identical feature spaces and tasks, which applies here because all domains used the same features and outcome definition [20].

Although leukemia types differ biologically in tissue origin, mutations, and progression, transfer learning remains justified for several reasons. Firstly, ML models trained on large cohorts often learn generalizable features, such as age, blood markers, and medication use, that are common across hematologic malignancies. Such models provide a strong starting point even when fine-tuned on limited data from a specific cancer.

Secondly, annotated outcome data for rare cancer types are scarce, making training complex models from scratch both impractical and prone to overfitting. Transfer learning leverages the statistical richness of large, diverse datasets and introduces inductive biases that stabilize learning in low-data settings [20].

Thirdly, modern methods such as DA and selective fine-tuning mitigate domain mismatch by allowing models to adapt to the biological and clinical specifics of the target disease while retaining useful shared representations.

Finally, empirical studies consistently show performance gains when pre-trained medical models are adapted to specific cancers for tasks such as survival prediction [12], disease subtyping [22], and mortality prediction [23]. These findings indicate that, despite biological differences, clinical patterns overlap sufficiently for transfer learning to be both viable and beneficial.

Overall, transferring knowledge from broad cancer datasets to specific cancer types is often essential for accurate clinical outcome prediction, balancing data scarcity with biological variability.

In this study, we proposed a DA strategy using lymphoma data to train binary classifiers for predicting severe infection risk in treated CLL patients, with DS models as baselines. For DA, we used Balanced Weighting, a model-agnostic method compatible with various ML models [24]. We also employed explainable AI techniques to identify the most influential predictive features [25]. To our knowledge, this is the demonstration of an ML–based approach to infection prediction that improves performance by incorporating data from other leukemia types. This study establishes the feasibility of DA for infection prediction and opens avenues for future research, including models for other adverse events and continuous, time-aware risk prediction beyond diagnosis or treatment time.

Patients/material and methods

Data sources and patients

We assembled a cohort of patients with CLL (Table 1) and lymphomas (Table S1) receiving first-line treatment from the launch of the EPIC®-based Electronic Health Record (EHR) system in the Eastern Denmark (known as Sundhedsplatformen [SP]) between May 2016 and August 2023. Here, small lymphocytic lymphoma (SLL) is considered the same biological entity as CLL. Patients with CLL and B-cell lymphoma from eastern Denmark (i.e., the Capital Region and Region Zealand) were identified from the Danish Clinical Quality Program – National Clinical Registries (RKKP) diagnosed since 2008 in the Danish National Chronic Lymphocytic Leukemia Registry (DCLLR) and since 2005 the Danish National Lymphoma Registry (LYFO), respectively [26, 27]. All data were retrieved and analyzed using the DALY-CARE data resource (Supplementary Data sources) [28].

Table 1. Biological and clinical characteristics of CLL patients grouped by treatment category.
FCR or BR CD20Clb or Clb Venetoclax-based therapya Ibrutinib monotherapy Otherb All patients
Number of patients 113 53 69 29 37 301
Age (median (IQR)) 66 (60–71) 79 (73–83) 62 (55–68) 66 (58–74) 73 (66–78) 68 (60–75)
Sex, male 81 (72) 35 (66) 53 (77) 19 (66) 16 (43) 204 (68)
Binet stage at diagnosis
 A 87 (77) 40 (75) 50 (72) 20 (69) 29 (78) 226 (75)
 B 16 (14) 8 (15) 13 (19) 6 (21) 5 (14) 48 (16)
 C 10 (9) 5 (9) 6 (9) 3 (10) 3 (8) 27 (9)
B2M at diagnosis
 ≤4.0 mg/L 78 (69) 25 (47) 57 (83) 17 (59) 25 (68) 202 (67)
 >4.0 mg/L 20 (18) 26 (49) 11 (16) 11 (38) 6 (16) 74 (25)
 Missing 15 (13) 2 (4) 1 (1) 1 (3) 6 (16) 25 (8)
IGHV status
 Mutated 45 (40) 15 (28) 16 (23) 4 (14) 13 (35) 93 (31)
 Unmutated 50 (44) 21 (40) 38 (55) 21 (72) 13 (35) 143 (48)
 Unknown 18 (16) 17 (32) 15 (22) 4 (14) 11 (30) 65 (22)
TP53
 Mutated 2 (2) 1 (2) 4 (6) 3 (10) 4 (11) 14 (5)
 Wild type 40 (35) 17 (32) 23 (33) 8 (28) 9 (24) 97 (32)
 Missing 71 (63) 35 (66) 42 (61) 18 (62) 24 (65) 190 (63)
FISH status
 del(17p) 1 (1) 1 (2) 4 (6) 9 (31) 7 (19) 22 (7)
 del(11q) 19 (17) 9 (17) 9 (13) 2 (7) 1 (3) 40 (13)
 tri(12) 22 (19) 11 (21) 8 (12) 2 (7) 4 (11) 47 (16)
 Normal 12 (11) 4 (8) 10 (14) 5 (17) 1 (3) 32 (11)
 del(13q) 43 (38) 13 (25) 23 (33) 9 (31) 15 (41) 103 (34)
 Unknown 16 (14) 15 (28) 15 (22) 2 (7) 9 (24) 57 (19)
Performance status at diagnosis
 0 99 (88) 41 (77) 63 (91) 25 (86) 35 (95) 263 (87)
 1 12 (11) 9 (17) 6 (9) 3 (10) 2 (5) 32 (11)
 >1 2 (2) 3 (6) 0 (0) 1 (3) 0 (0) 6 (2)
CLL-IPI at diagnosis
 Very high 0 (0) 0 (0) 2 (3) 4 (14) 2 (5) 8 (3)
 High 13 (12) 9 (17) 6 (9) 7 (24) 7 (19) 42 (14)
 Intermediate 29 (26) 15 (28) 24 (35) 12 (41) 5 (14) 85 (28)
 Low 31 (27) 6 (11) 9 (13) 0 (0) 7 (19) 53 (18)
 Unknown 40 (35) 23 (43) 28 (41) 6 (21) 16 (43) 113 (38)
Note. n (%) unless otherwise specified. aVenetoclax monotherapy or in combination with any of the following treatments: ibrutinib or other BTK inhibitors, rituximab, or obinutuzumab. bOther treatments such as ABVD, CHOEP, rituximab monotherapy, and bone marrow transplantation were included in the category. B2M: β2-microglobulin.

Infection definition

Severe infection was defined as being administered IV antimicrobials and having a blood culture drawn concurrently (within two days of each other) in a 1-year post-treatment initiation outlook. Only the intravenous antimicrobials defined by a set of ATC codes (J01-J05 and P01) were included; oral antimicrobials and prophylactic antimicrobials (such as sulfamethoxazole with trimethoprim [J01EE01] and acyclovir/valacyclovir [J05AB01/J05AB11]) were excluded. To exclude cases where antimicrobials were administered merely on suspicion of infection, we only included antimicrobial treatments with a duration of more than 24 h.

Data preprocessing and feature extraction

Hospitalization history was defined as being hospitalized for more than 24 h within one year prior to treatment. In a few cases, patients underwent treatment while already experiencing severe infections. These cases, which were categorized as continuation of infection, were excluded from the test set to avoid bias, i.e., predicting obvious instances. Patients who died or had a follow-up period of less than a year after the treatment, and who did not experience a severe infection, were also excluded.

Prediction point was defined at the time of first-line treatment. To avoid future information leakage only data available prior to the prediction point were used for feature extraction and aggregation.

To make the collected data usable by a ML algorithm, we performed data preprocessing and feature extraction steps customized for a group of variables as detailed in the following. Binary variables such as sex, B2M, FISH, IGHV and TP53 status, were directly encoded as features. Categorical variables, like treatment types, with L levels were converted into L binary features indicating the presence of the corresponding level.

Feature extraction from timeseries data was performed using the timeseriesflattener Python package [29]. Three lookback periods (30, 90 and 365 days), ending at the prediction point, were defined to aggregate variable values using several aggregation functions. Previous ICD-10 diagnoses and SNOMED codes, as well as prescribed and administered medications, were aggregated using counts. For prescribed and administered medications, the cumulative dosage of individual drugs was also calculated. From microbiology cultures and analyses, the total number of events including drawn blood cultures were extracted. In previous studies, drawn blood cultures has been used as a proxy for clinical infection [16, 30, 31]. For biochemistry tests, multiple aggregators such as the minimum, maximum, average, number of tests, and the most recent value prior to the prediction point were employed, for example, low IgG, IgM, and IgA levels were extracted using this approach. The missing values of numerical features were imputed using the median value estimated during training. Features that had many missing values (more than 90%) were removed from the data. In total, 5,749 features were extracted, of which the complete list is provided in the Supplementary materials.

Modeling and statistical analysis

In this study, we framed severe infection prediction as a binary classification problem. Three strategies were advised to investigate the benefit of a DA compared to a DS modeling and disease-specific International Prognostic Score (IPI) [32]. In the DS strategy (CLLDS), only data from CLL patients were used to develop classifiers, while in the DA strategy (CLLDA) data from patients with lymphoma were also included, but only during the training (Figure 1). The third strategy limited the features included in the CLL-IPI index [32]. Three classifiers including Logistic Regression (LR), Light Gradient-Boosting Machine (LGBM), and Radom Forest (RF), were developed using the three strategies.

Figure 1
Figure 1. Schematic representation of the domain-specific and proposed domain adaptation strategies for training a predictive model of infection in CLL. Domain-specific (DS) strategy uses only CLL samples for training, while domain adaptation (DA) strategy exploits extra samples from lymphoma patients. Both strategies are evaluated on CLL sample only. The number of patients and the proportion of each group, infection and no infection, as well as missing rate are provided.

We opted to use Balanced Weighting [24], a model agnostic technique, which allows for optimizing the ratio by which the samples from the source and the target domain contribute during training. We used ADAPT Python package to implement Balanced Weighting [33].

We next evaluated the models using stratified K-Fold cross-validation with K set to five. We repeated the K-Fold 10 times by introducing different data splits to measure the variability of the performance and subsequently a more robust estimate of the feature contributions. The contribution of the features and their interactions were measured using SHapley Additive exPlanations (SHAP) [25]. The preprocess and data compilation steps were performed in R, whereas the modeling and post analysis codes were developed in Python. Several Python packages including Scikit-learn [34], Scikit-survival [35], and lifelines [36] were used to perform feature extraction, K-fold cross-validation, and to generate cumulative incidence plots and statistical tests, respectively. The Matthews correlation coefficient (MCC) was used to evaluate the performance of the classifiers as it is a more reliable metric to measure the performance of a binary classifier compared with other metrics [37]. The significance of the differences between models’ performances were tested using paired t-tests. Overall survival (OS) was calculated by Kaplan–Meier estimator implemented by survival package in R [38]. Finally, we performed the proportional odds cumulative modeling to compute the odds ratio (OR) across risk groups for each strategy [39].

Results

Study population

The cohort consisted of 301 patients with CLL and 2,397 patients with lymphoma, who had received first-line treatment between May of 2016 and August of 2023. The inclusion criteria are depicted in a CONSORT diagram (Figure S1).

The median age at diagnosis was 68 years for CLL patients (interquartile range [IQR]: 60−75) and 68 years (IQR: 56−76) for lymphoma patients (Table S1). Patients with CLL were followed in active surveillance for a median of 31 months, whereas patients with non-Hodgkin lymphoma or other non-DLBCL lymphoma (n = 954) were followed for a median of one month before starting therapy (Table S1). The median age at the time of treatment was 72 years (IQR: 64−78) and 68 years (IQR: 56−76) for CLL and lymphoma, respectively. The median follow-up after treatment for CLL patients was 3.9 years (IQR: 2.5−5.1) and 3.1 years (IQR: 1.7−4.7) for patients with lymphoma. The 1-year OS from first-line treatment was 87% (95% confidence interval [CI]: 84%−91%) for CLL and 89% (CI: 88%−90%) for lymphoma. Considering death as a competing risk, the 1-year cumulative incidence rate of severe infections after treatment among CLL patients was 35.5% and 33.3% among lymphoma patients.

Of the 301 patients with CLL, 290 (96.3%) had either an infectious event or a full one-year follow-up. Those who did not have a full one-year follow-up were included in the survival time analysis. Of the remaining patients, 19 had an infection close to the time of treatment and were therefore not included during testing but were used for training. The prevalence of severe infection among the patients used in testing was 32.5% (n = 88/271). Out of 2,397 patients in the lymphoma cohort, 2,214 (92.4%) had an infectious event or a full-one year follow-up. Since lymphoma patients were excluded from the test set, those with infections near treatment were included in training. The prevalence of severe infection among the lymphoma patients used in training was 35.9% (n = 795/2,214).

Lymphoma data improve the predictions for CLL patients through domain adaptation

We compared the performance of the three strategies, i.e., IPI, CLLDS, and CLLDA, using three models, namely LR, LGBM, and RF. Measured by MCC, CLLDA outperformed both CLLDS and IPI across the three models and CLLDS ranked higher than IPI in two (RF and LGBM) out of the three models (Figure 2A). Among the three models, RF achieved the best performance across all the three strategies with an MCC of 0.166 (0.126–0.206), 0.290 (CI: 0.255–325) and 0.342 (CI: 0.309–0.375) for IPI, CLLDS, and CLLDA, respectively.

Figure 2
Figure 2. Performance measured by MCC of infection prediction strategies using different models. Box plot of IPI the domain-specific, and the domain adaptation strategies across three models, i.e., Logistic Regression (LR), Light Gradient-Boosting Machine (LGBM), and Radom Forest (RF) on all samples (A), patients with hospitalization history (B), and patients without hospitalization history (C). The significance tests were performed using paired t-test. MCC: Matthew’s correlation coefficient.

We further investigated the RF model’s performance across the three strategies using cumulative incidence plots of the samples classified by the model as either high risk or low risk. When comparing the results across all samples, we observed that CLLDA showed better separation between high-risk and low-risk cases compared with CLLDS and IPI (Figure 3A-C). The confusion matrices for the IPI, CLLDS, and CLLDA strategies using RF, the best-performing model evaluated on all patients, are shown in Table S2. Overall, the confusion matrices indicate that CLLDA achieved a substantially lower false acceptance rate and higher precision, but at the cost of a higher false rejection rate and lower recall, compared with IPI and CLLDS.

Figure 3
Figure 3. Cumulative incidence curve of time-to-first infection estimated from the prediction point on all samples (A, B, C), patients with hospitalization history (D, E, F), and patients without hospitalization history (G, H, I) using IPI model (A, D, G), DS strategy (B, E, H), and DA strategy (C, F, I). CI: 95% confidence interval. P-values were calculated by Gray’s test.

Infection predictions are more accurate for patients with a hospitalization history

As a significant proportion of the identified high ranked features (Figure 4A) upon DA was derived from variables recorded during hospitalization for a certain period (at least 24 hours), we specifically assessed whether the performance of the RF model was sensitive to prior hospitalizations. To achieve this, we stratified patients based on hospitalization history. The majority of the CLL and lymphoma patients had a history of hospitalization (69.0% or 187 and 69.2% or 1,531, respectively). The rate of severe infection in a 1-year outlook post-treatment for CLL patients with and without a hospitalization history was 35.8% (n = 67) and 25.0% (n = 21), respectively. Likewise, the proportion of lymphoma patients with and without hospitalization was 41.5% (n = 636) and 23.3% (n = 159), respectively.

Figure 4
Figure 4. Most informative feature groups predictive of infection. Accumulated absolute SHAP values of all features constructed from each variable, one variable can be represented by several features as detailed in methods, (B) alongside the number of features from each variable (A) for both domain-specific and domain adaptation strategies. Univariate Mann–Whitney U test was performed for ranking of feature groups based on the average P-value (C). The ratio of samples with non-missing values (D). Feature names are color coded: Medications (green), Biochemistry (purple), Treatment (orange), and others in grey.

We investigated the effect of prior hospitalization on the results by evaluating all the nine models stratified on hospitalization history. When testing on samples with a hospitalization history, RF achieved the best performance across all the three strategies with MCC of 0.361 (CI: 0.319–0.404), 0.320 (CI: 0.280–0.360) and 0.200 (0.149–0.251) for CLLDA, CLLDS, and IPI, respectively (Figure 2B). All three strategies showed improved MCCs relative to the results obtained on the full patient cohort (Figure 2A vs. 2B).

For patients without a hospitalization history, the models underperformed compared to those with a hospitalization history across all three strategies. For comparison, in the case of RF, the MCCs dropped to 0.113 (CI: 0.052–0.174), 0.075 (CI: 0.015–0.134) and 0.115 (0.036–0.195) for CLLDA, CLLDS, and IPI, respectively (Figure 2C).

Improving survival time distribution stratification by DA

The analysis of cumulative incidence using the proportional odds model also showed that employing DA strategy improved the odd ratio (OR) (Figure 3A–C). Similar analysis also showed a better performance of the models on patients with hospitalization history (Figure 3D–F) compared to patients without hospitalization history (Figure 3G–I).

Administered medications and biochemistry tests predict severe infection

To identify the features contributing most to these models, we performed explainability analysis. The RF model trained using CLLDA was mainly using features extracted from administered medications including non-therapeutic drugs (ATC V07, e.g., disinfectants and ban-aids), alimentary tract drugs (ATC A, e.g., proton pump inhibitors and antiemetics), solvent and diluting agents, antibacterial medications, and biochemistry results including c-reactive protein level (Figure 4A). Out of 46 features, 37 (~80%) features were extracted from administered medications and eight were extracted from biochemistry tests (Figure 4B). In case of CLLDS, an equal number of features were identified from biochemistry tests and administered medications at 16 (~47%) out of 34, favoring biochemistry test with higher contributions (Figure S1). The most important features were albumin and C-reactive protein level extracted from biochemistry tests and non-therapeutic drugs from administered medications. The number of previously drawn blood cultures and age were among the predictive features, but only for DS. Overall, DA resulted in a larger number of features, (46 versus 34 with no DA) that according to Mann–Whitney U test majority of them were statistically significant (Figure 4C).

Discussion and conclusion

Infections are a major concern for CLL patients, impacting treatment and quality of life. For medically frail patients or those with comorbidities, infections can be life-threatening. Identifying high-risk patients may help physicians to select optimal treatments. Building on previous studies [15, 16], we aimed to predict severe infection risk upon treatment in a CLL population in Eastern Denmark, using first-line treatment data. Given the low number of CLL cases, we explored whether data from neighboring diseases, such as lymphomas, could improve predictive performance through DA.

Our results showed that including lymphoma patient data in the CLL training pool improved infection predictions for CLL patients. Compared with training on CLL data alone, DA increased the number of predictive features for infections occurring during first-line treatment. This suggests that lymphoma data may help to identify infection risk factors in CLL. Although DA and transfer learning are common in other fields, their use in healthcare has largely been limited to medical imaging [40] due to challenges in integrating diverse electronic health records [41]. Access to the DALY-CARE data resource helped overcome these challenges by enabling cross-disease analysis [28]. While CLL and lymphomas differ in some characteristics, their clinical management is often similar, as in cases of febrile neutropenia.

Our analysis showed that most patients in both the CLL and lymphoma cohorts had been hospitalized prior to initiating treatment. Because the risk factors predictive of severe infection during treatment were derived primarily from hospital-based data, the models achieved higher accuracy for patients with a prior hospitalization history and lower accuracy for those without one. This underscores the challenge of predicting infections in patients without previous hospitalizations, likely reflecting their generally better health status and lower baseline risk of severe infection, as well as the potential influence of surveillance bias.

The explainability analysis of DS models confirmed previous findings that biochemistry test features are predictive [15, 16], while the DA strategy identified additional features related to patient comorbidity and frailty prior to treatment. This reinforces the link between comorbidities and increased risk of infection and mortality [42]. Antibacterial, anti-infective, and immunosuppressive medications (e.g., glucocorticoids and corticosteroids) were predictive of severe infection, consistent with prior findings associating pre-diagnosis antibiotic use with worse outcomes in CLL [43]. The association between alimentary tract medication and infection risk may be indirect, as it includes diverse medications like proton-pump inhibitors and cardiovascular drugs [44, 45]. However, the CLL comorbidity index highlighted gastrointestinal, metabolic, and cardiovascular comorbidities as key prognostic indicators in CLL and lymphoma [46, 47]. C-reactive protein, identified by both DS and DA, may reflect prior infections or disease-driven reactive states [48]. Albumin levels, a strong predictor by DS, are often monitored for kidney, liver, and nutritional status, with low levels suggesting frailty and heightened infection risk [49].

The results are comparable to our previous study with a similar sample size, which assessed risk from time of CLL diagnosis rather than from time of treatment [15]. Analyzing patients based on hospitalization history showed that both DS and DA strategies, and to a lesser extent CLL-IPI, had better predictive performance for recently hospitalized patients. Likely, hospitalization history provided more details about patient comorbidities, yielding more informative features that enhanced prediction [46].

Our analysis is limited to using lymphoma patients to test DA on CLL patients. Future work should focus on extending our DA approach by including data from other hematological malignancies such as multiple myeloma might be beneficial for DA. Including treatment naïve CLL patients as source data also might improve the performance of DA strategy. Predicting less severe infection cases as an auxiliary outcome could help conditions that are precursor of severe cases. In addition, this probably improves the performance for patients that have no hospitalization history. From a modeling perspective, employing DA techniques that learn the shifts in data across diseases [20], along with the use of deep learning models, may be a promising approach to explore.

Acknowledgments

This project was supported by AstraZeneca and Sygesikring Danmark, and within the CLL-CLUE project by Innovation Fund Denmark, under the framework of ERA PerMed.

Data availability statement

Under Danish and EU legislation, the data cannot be deposited in a public repository; however, it can be accessed through DALYCARE upon reasonable request.

Ethics declarations & trial registry information

For this study, the required ethical approvals were obtained from appropriate authorities, including the Danish Health and Medicine Authorities (jr. no. 3-3013-1141/1), Danish National Ethics Committee (1804410), and the Danish Data Protection Agency (jr. no. RH-2015-96 03856).

Authors’ contributions

C.U.N., R.A., and M.P. conceived the study; M.P. performed the data preparation and analysis with support from C.B., M.W., R.A., and T.L; M.P. wrote the original manuscript together with C.U.N., with input from R.A., C.B., M.W., T.L., and E.R., who reviewed and approved the final manuscript.

References

[1]     Matsukane R, Watanabe H, Minami H, Hata K, Suetsugu K, Tsuji T, et al. Continuous monitoring of neutrophils to lymphocytes ratio for estimating the onset, severity, and subsequent prognosis of immune related adverse events. Sci Rep. 2021;11(1):1–11. https://doi.org/10.1038/s41598-020-79397-6

[2]     Morelli T, Fujita K, Redelman-Sidi G, Elkington PT. Infections due to dysregulated immunity: an emerging complication of cancer immunotherapy. Thorax. 2021;77(3): 304–311. https://doi.org/10.1136/thoraxjnl-2021-217260

[3]     Svanberg R, Janum S, Patten PEM, Ramsay AG, Niemann CU. Targeting the tumor microenvironment in chronic lymphocytic leukemia. Haematologica. 2021;106(9):2312–24. https://doi.org/10.3324/HAEMATOL.2020.268037

[4]     Teglgaard RS, Marquart HV, Hartling HJ, Bay JT, Da Cunha-Bang C, Brieghel C, et al. Improved innate immune function in patients with chronic lymphocytic leukemia treated with targeted therapy in clinical trials. Clin Cancer Res. 2024;30(9):1959–71. https://doi.org/10.1158/1078-0432.CCR-23-2522

[5]     Lipsky A, Lamanna N. Managing toxicities of Bruton tyrosine kinase inhibitors. Hematol Am Soc Hematol Educ Progr. 2020;2020(1):336. https://doi.org/10.1182/HEMATOLOGY.2020000118

[6]     Vainer N, Aarup K, Andersen MA, Wind-Hansen L, Nielsen T, Frederiksen H, et al. Real-world outcomes upon second-line treatment in patients with chronic lymphocytic leukaemia. Br J Haematol. 2023;201(5):874–886. https://doi.org/10.1111/bjh.18715

[7]     Ruppert AS, Booth AM, Ding W, Bartlett NL, Brander DM, Coutre S, et al. Adverse event burden in older patients with CLL receiving bendamustine plus rituximab or ibrutinib regimens: Alliance A041202. Leukemia. 2021;35(10):2854. https://doi.org/10.1038/S41375-021-01342-X

[8]     Goyal RK, Nagar SP, Kabadi SM, Le H, Davis KL, Kaye JA. Overall survival, adverse events, and economic burden in patients with chronic lymphocytic leukemia receiving systemic therapy: real‐world evidence from the medicare population. Cancer Med. 2021;10(8):2690. https://doi.org/10.1002/CAM4.3855

[9]     Launay CP, Lubov J, Galery K, Vilcocq C, Maubert É, Afilalo M, et al. Prognosis tools for short-term adverse events in older emergency department users: result of a Québec observational prospective cohort. BMC Geriatr. 2021;21(1):1–10. https://doi.org/10.1186/s12877-020-01999-6

[10]   Gu Y, Li Q, Lin R, Jiang W, Wang X, Zhou G, et al. Prognostic model to predict postoperative adverse events in pediatric patients with aortic coarctation. Front Cardiovasc Med. 2021;8:1–12. https://doi.org/10.3389/fcvm.2021.672627

[11]   Buckley SA, Othus M, Vainstein V, Abkowitz JL, Estey EH, Walter RB. Prediction of adverse events during intensive induction chemotherapy for acute myeloid leukemia or high-grade myelodysplastic syndromes. Am J Hematol. 2014;89(4):423–8. https://doi.org/10.1002/ajh.23661

[12]   Parviz M, Agius R, Rotbain EC, Vainer N, Aarup K, Niemann CU. Identifying CLL patients at high risk of atrial fibrillation on treatment using machine learning. Leuk Lymphoma. 2024;65(4):449–59. https://doi.org/10.1080/10428194.2023.2299737

[13]   Kim JW, Lee YG, Hwang IG, Song HS, Koh SJ, Ko YH, et al. Predicting cumulative incidence of adverse events in older patients with cancer undergoing first-line palliative chemotherapy: Korean Cancer Study Group (KCSG) multicentre prospective study. Br J Cancer. 2018;118(9):1169–75. https://doi.org/10.1038/s41416-018-0037-6

[14]   Sakakibara T, Shindo Y, Kobayashi D, Sano M, Okumura J, Murakami Y, et al. A prediction rule for severe adverse events in all inpatients with community-acquired pneumonia: a multicenter observational study. BMC Pulm Med. 2022;22(1):1–13. https://doi.org/10.1186/s12890-022-01819-0

[15]   Parviz M, Brieghel C, Agius R, Niemann CU. Prediction of clinical outcome in CLL based on recurrent gene mutations, CLL-IPI variables, and (para)clinical data. Blood Adv. 2022;6(12):3716–28. https://doi.org/10.1182/bloodadvances.2021006351

[16]   Agius R, Brieghel C, Andersen MA, Pearson AT, Ledergerber B, Cozzi-Lepri A, et al. Machine learning can identify newly diagnosed patients with CLL at high risk of infection. Nat Commun. 2020;11(363):1–16. https://doi.org/10.1038/s41467-019-14225-8

[17]   Agius R, Riis-Jensen AC, Wimmer B, da Cunha-Bang C, Murray DD, Poulsen CB, et al. Deployment and validation of the CLL treatment infection model adjoined to an EHR system. NPJ Digit Med. 2024;7(1):1–12. https://doi.org/10.1038/s41746-024-01132-6

[18]   Leusder M, Porte P, Ahaus K, van Elten H. Original research: cost measurement in value-based healthcare: a systematic review. BMJ Open. 2022;12(12):e066568. https://doi.org/10.1136/BMJOPEN-2022-066568

[19]   Schwarze K, Buchanan J, Fermont JM, Dreau H, Tilley MW, Taylor JM, et al. The complete costs of genome sequencing: a microcosting study in cancer and rare diseases from a single center in the United Kingdom. Genet Med. 2020;22(1):85–94. https://doi.org/10.1038/S41436-019-0618-7

[20]   Daumé H, Marcu D. Domain adaptation for statistical classifiers. J Artif Intell Res. 2006;26:101–26. https://doi.org/10.1613/jair.1872

[21]   Agius R, Parviz M, Niemann CU. Artificial intelligence models in chronic lymphocytic leukemia – recommendations toward state-of-the-art. Leuk Lymphoma. 2022;63(2):265–78. https://doi.org/10.1080/10428194.2021.1973672

[22]   Bungărdean RM, Şerbănescu MS, Streba CT, Crişan M. Deep learning with transfer learning in pathology. Case study: classification of basal cell carcinoma. Rom J Morphol Embryol. 2021;62(4):1017–28. https://doi.org/10.47162/RJME.62.4.14

[23]   Bjerregaard-Michelsen S, Poulsen LØ, Bjerrum A, Bøgsted M, Vesteghem C. Machine learning for prediction of 30-day mortality in patients with advanced cancer: comparing pan-cancer and single-cancer models. ESMO Real World Data Digit Oncol. 2025;8:100146. https://doi.org/10.1016/J.ESMORW.2025.100146

[24]   Wu P, Dietterich TG. Improving SVM accuracy by training on auxiliary data sources. Proceedings, Twenty-First Int. Conf. Mach. Learn. ICML. 2004;871–8. https://doi.org/10.1145/1015330.1015436

[25]   Lundberg SM, Lee SI. A unified approach to interpreting model predictions. In Advances in Neural Information Processing Systems, 2017, pp. 4766–75. [Cited 8th of July 2024]. Available from: https://github.com/slundberg/shap

[26]   Da Cunha-Bang C, Geisler CH, Enggaard L, Poulsen CB, De Nully Brown P, Frederiksen H, et al. The Danish National Chronic Lymphocytic Leukemia Registry. Clin Epidemiol. 2016;8:561–5. https://doi.org/10.2147/CLEP.S99486

[27]   Arboe B, Josefsson P, Jørgensen J, Haaber J, Jensen P, Poulsen C, et al. Danish National Lymphoma Registry. Clin Epidemiol. 2016;8:577–81. https://doi.org/10.2147/CLEP.S99470

[28]   Brieghel C, Werling M, Frederiksen CM, Parviz M, Lacoppidan T, Faitova T, et al. The Danish Lymphoid Cancer Research (DALY-CARE) Data Resource: The Basis for Developing Data-Driven Hematology. Clin Epidemiol. 2025;17:131–145. https://doi.org/10.2147/CLEP.S479672

[29]   Bernstorff M, Enevoldsen K, Damgaard J, Danielsen A, Hansen L. timeseriesflattener: a Python package for summarizing features from (medical) time series. J Open Source Softw. 2023;8(83):5197. https://doi.org/10.21105/JOSS.05197

[30]   Andersen MA, Moser CE, Lundgren J, Niemann CU. Epidemiology of bloodstream infections in patients with chronic lymphocytic leukemia: a longitudinal nation-wide cohort study. Leukemia. 2018;33(3):662–70. https://doi.org/10.1038/s41375-018-0316-5

[31]   Sørrig R, Klausen TW, Salomo M, Vangsted A, Gimsing P. Risk factors for blood stream infections in multiple myeloma: a population-based study of 1154 patients in Denmark. Eur J Haematol. 2018;101(1):21–7. https://doi.org/10.1111/EJH.13066

[32]   International T. An international prognostic index for patients with chronic lymphocytic leukaemia (CLL-IPI): a meta-analysis of individual patient data. Lancet Oncol. 2016;17(6):779–90. https://doi.org/10.1016/S1470-2045(16)30029-8

[33]   de Mathelin A, Atiq M, Richard G, de la Concha A, Yachouti M, Deheeger F, et al. ADAPT : Awesome Domain Adaptation Python Toolbox. 2021 [cited 2024 Jun 05]. Available from: https://arxiv.org/abs/2107.03049v2

[34]   Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, et al. Scikit-learn: machine learning in Python. J Mach Learn Res. 2011;12(85):2825–30. [Cited 8th of July 2024] Available from: http://jmlr.org/papers/v12/pedregosa11a.html

[35]   Pölsterl S. Scikit-survival: a library for time-to-event analysis built on top of scikit-learn. J Mach Learn Res. 2020;21:1–6. https://doi.org/10.1007/978-1-4842-5373-1_1

[36]   Davidson-Pilon C. Lifelines: survival analysis in Python. J Open Source Softw. 2019;4(40):1317. https://doi.org/10.21105/joss.01317

[37]   Chicco D, Jurman G. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics. 2020;21(1):1–13. https://doi.org/10.1186/S12864-019-6413-7/TABLES/5

[38]   Therneau TM, Grambsch PM. A Package for Survival Analysis in S, version 2.38. Model Surviv. Data Extending Cox Model; 2000 [cited 2024 Jul 08]. Available from: http://cran.r-project.org/package=survival

[39]   Eriksson F, Li J, Scheike T, Zhang MJ. The proportional odds cumulative incidence model for competing risks. Biometrics. 2015;71(3):687. https://doi.org/10.1111/BIOM.12330

[40]   Guan H, Liu M. Domain adaptation for medical image analysis: a survey. IEEE Trans Biomed Eng. 2022;69(3):1173–85. https://doi.org/10.1109/TBME.2021.3117407

[41]   Laparra E, Mascio A, Velupillai S, Miller T. A review of recent work in transfer learning and domain adaptation for natural language processing of electronic health records. Yearb Med Inform. 2021;30(1):239. https://doi.org/10.1055/S-0041-1726522

[42]   Crassini KR, Best OG, Mulligan SP. Immune failure, infection and survival in chronic lymphocytic leukemia. Haematologica. 2018;103(7):e329. https://doi.org/10.3324/HAEMATOL.2018.196543

[43]   Andersen MA, Niemann CU. Immune failure, infection and survival in chronic lymphocytic leukemia in Denmark. Haematologica. 2018;103(7):e330. https://doi.org/10.3324/HAEMATOL.2018.197889

[44]   Syed-Ahmed M, Narayanan M. Immune dysfunction and risk of infection in chronic kidney disease. Adv Chronic Kidney Dis. 2019;26(1):8–15. https://doi.org/10.1053/J.ACKD.2019.01.004

[45]   Eichhorst B, Ghia P, Niemann CU, Kater AP, Gregor M, Hallek M, et al. ESMO Clinical Practice Guideline interim update on new targeted therapies in the first-line and at relapse of chronic lymphocytic leukaemia. Ann Oncol Off J Eur Soc Med Oncol. 2024:35(9):762–768. https://doi.org/10.1016/j.annonc.2024.06.016

[46]   Rotbain EC, Niemann CU, Rostgaard K, da Cunha-Bang C, Hjalgrim H, Frederiksen H. Mapping comorbidity in chronic lymphocytic leukemia: impact of individual comorbidities on treatment, mortality, and causes of death. Leukemia. 2021;35(9):2570–80. https://doi.org/10.1038/S41375-021-01156-X

[47]   Gordon MJ, Huang J, Chan RJ, Bhargava P, Danilov AV, Medical comorbidities in patients with chronic lymphocytic leukaemia treated with idelalisib: analysis of two large randomised clinical trials. Br J Haematol. 2021;192(4):720–8. https://doi.org/10.1111/BJH.16879

[48]   Levinson T, Wasserman A. C-Reactive Protein Velocity (CRPv) as a new biomarker for the early detection of acute infection/inflammation. Int J Mol Sci. 2022;23(15):1–10. https://doi.org/10.3390/IJMS23158100

[49]   Wiedermann CJ. Hypoalbuminemia as surrogate and culprit of infections. Int J Mol Sci. 2021;22(9):1–25. https://doi.org/10.3390/IJMS22094496