Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Machine learning for predicting mortality in women diagnosed with breast cancer in the State of Mato Grosso, Brazil using linked population-based cancer registry and mortality data

  • Sancho Pedro Xavier ,

    Roles Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Project administration, Resources, Software, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing

    sanchoxavierxavier@gmail.com

    Affiliation School of Public Health, University of São Paulo (USP), São Paulo, São Paulo, Brazil

    ⨯
  • Audêncio Victor,

    Roles Conceptualization, Data curation, Writing – original draft, Writing – review & editing

    Affiliations School of Public Health, University of São Paulo (USP), São Paulo, São Paulo, Brazil, Faculty of Epidemiology and Population Health, London School of Hygiene & Tropical Medicine, London, United Kingdom

    ⨯
  • Ana Raquel Ernesto Manuel Gotine,

    Roles Conceptualization, Writing – original draft, Writing – review & editing

    Affiliation School of Public Health, University of São Paulo (USP), São Paulo, São Paulo, Brazil

    ⨯
  • Fernando Henrique de Albuquerque Maia,

    Roles Conceptualization, Writing – original draft, Writing – review & editing

    Affiliation School of Public Health, University of São Paulo (USP), São Paulo, São Paulo, Brazil

    ⨯
  • Manuel Mahoche,

    Roles Conceptualization, Writing – original draft, Writing – review & editing

    Affiliation School of Public Health, University of São Paulo (USP), São Paulo, São Paulo, Brazil

    ⨯
  • Marco Aurélio Bertúlio das Neves,

    Roles Conceptualization, Validation, Writing – original draft, Writing – review & editing

    Affiliations Institute of Collective Health, Federal University of Mato Grosso (UFMT), Cuiabá, Mato Grosso, Brazil, State Secretary of Health of Mato Grosso (SES-MT), Cuiabá, Mato Grosso, Brazil

    ⨯
  • Alexandre Dias Porto Chiavegatto Filho,

    Roles Conceptualization, Validation, Visualization, Writing – original draft, Writing – review & editing

    Affiliation School of Public Health, University of São Paulo (USP), São Paulo, São Paulo, Brazil

    ⨯
  • Noemi Dreyer Galvão,

    Roles Resources, Writing – original draft, Writing – review & editing

    Affiliations Institute of Collective Health, Federal University of Mato Grosso (UFMT), Cuiabá, Mato Grosso, Brazil, State Secretary of Health of Mato Grosso (SES-MT), Cuiabá, Mato Grosso, Brazil

    ⨯
  • Ageo Mario Cândido da Silva

    Roles Project administration, Resources, Supervision, Visualization, Writing – original draft, Writing – review & editing

    Affiliations Institute of Collective Health, Federal University of Mato Grosso (UFMT), Cuiabá, Mato Grosso, Brazil, State Secretary of Health of Mato Grosso (SES-MT), Cuiabá, Mato Grosso, Brazil

    ⨯

Abstract

Background

Breast cancer is the most frequently diagnosed malignancy and a leading cause of cancer-related mortality among women worldwide. In Brazil, pronounced regional inequalities persist in access to timely diagnosis and treatment, particularly in large and socioeconomically heterogeneous states such as Mato Grosso. This study aimed to develop and validate machine learning (ML) models to predict 1-, 3-, 5-, and 10-year all-cause and breast cancer-specific mortality among women diagnosed with breast cancer in Mato Grosso, Brazil.

Methods

A retrospective, population-based cohort study was conducted, including 7,815 women diagnosed with breast cancer between 2001 and 2018. The dataset was randomly split into training (75%) and testing (25%) sets. Logistic regression, Random Forest, XGBoost, CatBoost, and LightGBM models were developed to predict all-cause and breast cancer-specific mortality at 1, 3, 5, and 10 years. Model performance was primarily evaluated using the area under the receiver operating characteristic curve (AUROC). Calibration was assessed using calibration plots and the Brier score (BS), with 95% confidence intervals estimated via bootstrap resampling. Model interpretability was evaluated using Shapley Additive Explanations (SHAP).

Results

Gradient boosting models consistently demonstrated superior performance across prediction horizons. For all-cause mortality, CatBoost achieved the highest discrimination at 1 year (AUROC 83.18%, 95% CI 80.01-86.33), while LightGBM showed higher discrimination at 3 and 5 years (AUROC 81.01%, 95% CI 78.63-83.42; and AUROC 78.39%, 95% CI 75.99-80.64, respectively). For breast cancer-specific mortality, logistic regression achieved the highest AUROC at 1 year (84.44%, 95% CI 81.04-87.35), whereas LightGBM achieved the highest at 3 years (AUROC 79.82%, 95% CI 77.15-82.34), XGBoost at 5 years (AUROC 80.79%, 95% CI 78.54-83.23). SHAP analyses consistently identified age at diagnosis, metastatic stage, histological diagnosis, invasive ductal carcinoma (IDC), and marital status as the most influential predictors.

Conclusions

ML models demonstrated good and stable discriminative performance in predicting breast cancer mortality using routine population-based data. These models may support the early identification of high-risk patients and help guide risk stratification and follow-up planning in resource-constrained health systems. However, the models have not yet been externally validated, and their generalizability to populations beyond Mato Grosso remains uncertain. External validation in independent populations is therefore warranted before broader implementation in other regions of Brazil.

Introduction

Breast cancer persists as the most diagnosed malignancy and a leading cause of cancer-related mortality among women globally [1]. In 2022, global cancer statistics reported nearly 20 million new cases and 9.7 million deaths, with breast cancer accounting for a substantial proportion of this burden [1]. Projections suggest that breast cancer mortality will continue to increase through 2040, driven mainly by population growth, population ageing, and persistent inequities in access to early diagnosis and effective treatment [2]. Despite advances in screening and therapy, breast cancer outcomes remain highly heterogeneous [3]. Marked disparities persist in incidence, stage at diagnosis, treatment availability, and survival, particularly between high-income and low- and middle-income countries (LMICs) and within nations characterised by pronounced socioeconomic and geographic inequalities [1,2].

Brazil exemplifies this unequal landscape. Although the Unified Health System (SUS) provides universal health coverage in principle, breast cancer outcomes remain strongly shaped by social inequality, geographic accessibility, and discontinuities along the diagnostic and therapeutic pathway [4]. National studies consistently demonstrate substantial regional variation in breast cancer incidence, stage at diagnosis, and mortality, with less favourable trends observed outside major metropolitan centres and in regions with lower socioeconomic development [5–7].

Mato Grosso is characterised by vast territorial extension, low population density, long travel distances to specialised oncology services, and marked heterogeneity between metropolitan and rural municipalities [8]. Population-based analyses have documented increasing trends in overall cancer mortality in the state between 2000 and 2018, with breast cancer among the leading causes of cancer death among women [9]. In the state capital, Cuiabá, breast cancer incidence increased between 2008 and 2016 while mortality remained relatively stable, suggesting improvements in detection without proportional gains in survival [10]. This pattern underscores the need for effective risk stratification to better prioritize patient care. However, most established prognostic models have been developed in high-income settings with standardized healthcare systems [11].

In this context, machine learning (ML) models offer a potential approach to support early risk stratification using routinely collected registry data, particularly in settings where diagnostic staging may be delayed or incomplete. In practice, such models may assist in prioritizing patients for diagnostic completion, referral, and follow-up, as well as in informing resource allocation within the health system [12]. Their relevance is especially pronounced in regions such as Mato Grosso, where late-stage diagnosis and uneven access to treatment remain persistent challenges [13].

Building on this, ML methods offer a promising approach to address these gaps [14], as they can model non-linear relationships, complex interactions, and heterogeneous data structures using routinely collected clinical and administrative data. While clinical staging systems and established prognostic nomograms remain the gold standard for breast cancer risk assessment, ML approaches have demonstrated competitive performance in predicting survival compared with traditional regression models [15–17]. To the best of our knowledge, there is a paucity of studies in Brazil applying ML techniques to population-based cancer registry data to predict survival among women diagnosed with breast cancer [18]. In this context, this study leverages linked cancer registry and mortality data from Mato Grosso to enable risk stratification using routinely collected information in real-world settings. Therefore, this study aimed to develop and validate ML models to predict 1-, 3-, 5-, and 10-year all-cause and breast cancer-specific mortality among women diagnosed with breast cancer in Mato Grosso, Brazil.

Methods

Study design, data collection, and context

This retrospective cohort study used integrated data from the Population-Based Cancer Registry (RCBP) and the Mortality Information System (SIM), linked through deterministic matching based on patient name, mother's name, and date of birth (S1 Fig in S1 File) [19]. Cancer incidence information was obtained from the RCBP for the period 2001-2018, while mortality data covered the years 2001-2022. All data were provided by the State Secretary of Health of Mato Grosso (SES-MT). The characterization of the state of Mato Grosso, its geographical location, population distribution, and oncology infrastructure has been detailed in a previously published study [8,9].

Study population and sample size

The study population included all patients diagnosed with breast cancer, coded as C50.0-C50.9 according to the International Classification of Diseases for Oncology, Third Edition (ICD-O-3) [20], between 2001 and 2018. Initially, a total of 7,953 patients were identified. Male patients (n = 68) were excluded due to their low number and distinct clinical characteristics, to ensure a more homogeneous analytical sample. Additional exclusions included patients with non-applicable staging (n = 1), missing data on age (n = 18), and missing information on diagnostic method (n = 51). Consequently, a total of 7,815 patients were included in the final analysis (see S1 Fig in S1 File). Variables coded as “Unknown” (e.g., educational level, marital status, and stage at diagnosis) were retained as distinct categories. These do not represent missing data but reflect information recorded as unavailable at the time of registration and may capture differences in data quality or access to care.

Study variables

The outcome variable was mortality, defined as a binary indicator across multiple prediction horizons (1, 3, 5, and 10 years). Event status was coded as 1 for death (all-cause and breast cancer-specific mortality) occurring within the corresponding prediction horizon and 0 otherwise. Survival time was calculated from diagnosis to death or end of follow-up, whichever occurred first. For each prediction horizon, individuals who died within the specified time frame were classified as events, whereas individuals not meeting the event definition were classified as non-events. Predictor variables and data preprocessing procedures are detailed in Tables 1 and 2.

thumbnail
Table 1. Variables included in the ML models, category definitions, and preprocessing methods.

https://doi.org/10.1371/journal.pone.0356621.t001

thumbnail
Table 2. Distribution of predictors according to all-cause and breast cancer-specific mortality.

https://doi.org/10.1371/journal.pone.0356621.t002

Data preprocessing

Several preprocessing techniques were applied to create a suitable environment for model development (Table 1). Categorical variables were transformed using one-hot encoding, generating dummy variables for each category, while numerical variables were normalized using Z-score.

Model development and performance

Various ML algorithms were trained, including Logistic Regression (LR), Random Forest (RF), XGBoost [21], CatBoost [22], and LightGBM [23]. These models were selected due to their widespread use in health classification problems [23]. The analyses were conducted in Python (v3.12.4), using the core libraries pandas (2.2.2), NumPy (1.26.4), and scikit-learn (1.4.2). The official libraries for CatBoost (1.2.7), XGBoost (2.1.3), and LightGBM (4.5.0) were employed for training their respective models. For specific hyperparameters, the search ranges were defined based on existing literature [24,25].

The tested hyperparameters and those selected as optimal are presented in the supplementary material (S4 Table in S1 File). Hyperparameter optimization was performed using GridSearchCV with stratified five-fold cross-validation (random_state = 42) to preserve the outcome distribution across folds [25,26]. The dataset was split into training and test sets using the train_test_split function, with 25% of the sample reserved for testing. Stratified sampling was applied to ensure that the proportion of the mortality outcome was maintained in both datasets. No resampling or class balancing techniques were applied to address outcome imbalance, in order to preserve the original distribution of events.

Model evaluation, validation and interpretation

Model performance was evaluated on the test set using accuracy, precision, sensitivity, specificity, F1-score, Matthews Correlation Coefficient (MCC), and the area under the ROC curve (AUROC), which was considered the primary metric for model comparison. Differences between the ROC curves of the models were assessed using the DeLong test [27], while 95% confidence intervals (95% CI) for the AUC were obtained using the bootstrap method with 2,000 repetitions.

Model robustness and generalizability were evaluated for the highest-performing model using an envelope of ROC curves generated by perturbing the standardized age variable in the test set with Gaussian noise (σ = 0.01, 0.05, and 0.1) across 500 simulations, alongside the ROC curve from the original test data.

The optimal classification threshold was determined using Youden's index, defined as the point on the ROC curve that maximizes the sum of sensitivity and specificity [25]. To ensure comparability between models regarding sensitivity and specificity, the optimal threshold obtained from the superior model at each time horizon was subsequently applied to the other models. McNemar's test, a non-parametric test for paired data, was used to compare the accuracy, sensitivity, and specificity between two models, considering the best threshold determined by Youden's index [27].

The Brier Score was also calculated to quantitatively assess both discrimination and calibration [28], according to the following formula:

where represents the probability predicted by the model, the actual occurrence of the event, and the number of observations.

This process was repeated 2,000 times via bootstrap, so that each sample was used to validate the predictions. The final Brier Score was obtained as the mean of the 2,000 iterations, accompanied by the respective 95% CI. Lower values indicate better discrimination and calibration [29]. Subsequently, calibration plots were used to assess the consistency between the models’ discriminative performance and calibration. Differences in the Brier Score between models were evaluated using the paired bootstrap test procedure with 10,000 iterations. For each time horizon, the best model was subsequently analyzed for explainability using Shapley Additive Explanations (SHAP) [30]. Positive SHAP values indicate an increased risk of mortality, while negative values suggest a reduced risk. The mean impact of variables was also assessed, highlighting their relative importance in prediction [31]. A schematic overview of the full analytical workflow is provided in S2 Fig in S1 File.

Decision curve analysis (DCA) was performed to evaluate the potential clinical utility of each model across a range of threshold probabilities [32]. Net benefit was calculated for each model and compared with the “treat all” and “treat none” strategies. Models with higher net benefit at a given threshold probability were considered to provide greater potential clinical utility.

Statistical analysis

Descriptive analyses of categorical variables were performed using absolute and relative frequencies. Differences in survival between groups were assessed using the log-rank test [33].

Ethics approval and consent to participate

This study was conducted in accordance with the Declaration of Helsinki and approved by the Institutional Research Ethics Committee (approval number: 4.858.521). Secondary data were obtained from the RCBP and the SIM, with authorization for research use granted on 20 July 2021. Identifiable information was temporarily accessed solely for the purpose of deterministic record linkage between databases. After completion of the linkage process, all personal identifiers were removed, and analyses were conducted using fully anonymised data. The requirement for informed consent was waived due to the retrospective nature of the study and the use of secondary data.

Results

Sociodemographic and clinical characteristics

A total of 7,815 women diagnosed with breast cancer between 2001 and 2018 were included in the analysis. Table 2 presents the distribution of sociodemographic and clinical characteristics according to all-cause and breast cancer-specific mortality, with statistically significant differences observed for all evaluated predictors (log-rank test, p < 0.001). All-cause mortality increased with age, reaching 43.0% among women aged ≥65 years, compared with 29.1-32.3% among those younger than 65 years (log-rank p < 0.001). Similar patterns were observed for breast cancer-specific mortality. Black women exhibited higher all-cause mortality (48.2%) compared with White women (38.6%; p < 0.001). Mortality was substantially higher among women with no formal education (73.3%) than among those with higher education (42.9%; p < 0.001).

Geographic disparities were evident, with lower all-cause mortality among residents of Cuiabá (29.3%) compared to other municipalities (36.9%, p < 0.001). Advanced clinical features significantly influenced survival, with metastatic disease at diagnosis associated with the highest mortality (44.0% all-cause; 40.7% breast cancer-specific), while in situ disease showed the most favourable outcomes with 10% mortality (p < 0.001). Survival improved over time, as seen in lower mortality among women diagnosed between 2012 and 2018 (24.9%) compared to those diagnosed before 2006 (38.0%).

Model performance for all-cause mortality

Predictive performance for all-cause mortality at 1-, 3-, 5-, and 10-year horizons is summarised in Table 3. Gradient boosting-based methods (CatBoost, XGBoost, and LightGBM) consistently demonstrated higher AUROC values than logistic regression and Random Forest, with statistically significant differences observed for logistic regression (DeLong test, p < 0.05) (Fig 2). ROC curves are presented in Fig 1, with robustness analyses under Gaussian noise shown in S4 Fig in S1 File.

thumbnail
Table 3. Performance of ML models for predicting all-cause mortality across time horizons (1, 3, 5, and 10 years).

https://doi.org/10.1371/journal.pone.0356621.t003

thumbnail
Fig 1. ROC curves for all-cause and breast cancer-specific mortality.

Panels A-D show predictions of all-cause mortality at 1, 3, 5, and 10 years, respectively, while panels E-H show predictions of breast cancer-specific mortality at the same time horizons.

https://doi.org/10.1371/journal.pone.0356621.g001

At the 1-year horizon, CatBoost achieved the highest discrimination (AUROC = 83.18%; 95% CI: 80.01-86.33). At longer time horizons, AUROC values declined gradually but remained within a range from 79.61-81.01% at 3 years and from 76.60-78.39% at 5 years, with LightGBM demonstrating strong discriminative performance at both time points. At 10 years, AUROC values ranged from 79.49-80.93%, with XGBoost showing high discriminative ability.

Using a fixed probability threshold of 0.50, sensitivity ranged from 45.6% to 49.6%, while specificity remained high, ranging from 98.0% to 99.1%. After applying thresholds derived from Youden’s index, sensitivity increased substantially across all time horizons, ranging from 61.1% to 64.3% at 1 year, from 69.3% to 74.1% at 3 years, and from 75.0% to 78.6% at 10 years, as detailed in Table 4.

thumbnail
Table 4. Performance of ML models for predicting all-cause mortality at 1, 3, 5, and 10-year horizons using optimal decision thresholds defined by Youden’s index.

https://doi.org/10.1371/journal.pone.0356621.t004

Breast cancer-specific mortality prediction

Model performance for breast cancer-specific mortality is presented in Table 5. At the 1-year horizon, Logistic Regression demonstrated high discriminative performance (AUROC = 84.44%; 95% CI: 81.04-87.35), whereas LightGBM achieved an AUROC of 83.99% (95% CI: 80.23-87.26). Across longer time horizons, AUROC values remained relatively stable, ranging from 77.43% to 81.57%. Gradient boosting models generally showed good discriminative performance (DeLong test, p < 0.05) (Fig 2). ROC curves for the 3-, 5-, and 10-year horizons are presented in Fig 1, while ROC curves under Gaussian noise perturbation are shown in S4 Fig in S1 File. Specificity was consistently high (≥99%), while sensitivity ranged from 49.8% to 51.9% using a fixed probability threshold of 0.50.

thumbnail
Table 5. Performance of ML models for predicting breast cancer-specific mortality at 1, 3, 5, and 10-year horizons.

https://doi.org/10.1371/journal.pone.0356621.t005

thumbnail
Fig 2. DeLong test results comparing the discriminative performance of the model with the highest AUC-ROC against the remaining models across prediction time horizons.

The model with the highest AUC-ROC was used as the reference and sequentially compared with the others. Panels A-D present comparisons for all-cause mortality at 1, 3, 5, and 10 years, respectively, while panels E-H show the corresponding comparisons for breast cancer-specific mortality at the same time horizons.

https://doi.org/10.1371/journal.pone.0356621.g002

After applying thresholds optimised using Youden’s index, sensitivity exceeded 70% at the 3-, 5-, and 10-year horizons, while at 1 year it reached 66.4%, as detailed in Table 6.

thumbnail
Table 6. Performance of ML models for predicting breast cancer-specific mortality at 1, 3, 5, and 10-year horizons using optimal decision thresholds defined by Youden’s index.

https://doi.org/10.1371/journal.pone.0356621.t006

Comparative analysis and internal model validation

Sensitivity and specificity comparisons based on Youden’s index are reported in the Supplementary Material (S1 and S2 Tables in S1 File). In most time horizons, ensemble-based models showed higher specificity than logistic regression (McNemar’s test, exact p-values reported in S1 and S2 Tables in S1 File), with no significant differences in sensitivity for all-cause and breast cancer-specific mortality.

Internal validity was evaluated using calibration plots and the Brier score with bootstrap resampling (Fig 3; Tables 3 and 5). All models showed good calibration (Brier score < 0.20), with consistently better performance observed for ensemble-based models across all prediction horizons.

thumbnail
Fig 3. Calibration plots for mortality prediction.

Panels A-D correspond to all-cause mortality at 1, 3, 5, and 10 years. Panels E-H correspond to breast cancer-specific mortality at 1, 3, 5, and 10 years.

https://doi.org/10.1371/journal.pone.0356621.g003

Comparative results are presented in the Supplementary Material (S3 Table in S1 File). For all-cause 1-year mortality, CatBoost showed improved calibration relative to logistic regression (ΔBrier score = 0.0027; 95% CI: 0.0004–0.0049; p = 0.0218). At the 3-year horizon, LightGBM demonstrated superior calibration compared with logistic regression (ΔBrier score = 0.0064; 95% CI: 0.0031–0.0096; p < 0.001). For breast cancer-specific mortality at 10 years, CatBoost again showed better calibration than logistic regression (ΔBrier score = 0.0084; 95% CI: 0.0051–0.0118; p < 0.001).

Importance of predictors

The models with the best AUROC performance were subsequently analysed using the SHAP framework. The most important predictors are presented in Figs 4 and 5. Fig 4 depicts the global importance of the variables, expressed as the mean absolute SHAP value, which reflects the average contribution of each predictor to the model output. Overall, the importance patterns were consistent across all evaluated prediction horizons.

thumbnail
Fig 4. SHAP-based feature importance for the best-performing models across prediction time horizons.

Panels A-D show the SHAP feature importance for the models predicting all-cause mortality at 1, 3, 5, and 10 years, respectively. Panels E-H present the corresponding SHAP feature importance rankings for breast cancer-specific mortality at the same prediction horizons.

https://doi.org/10.1371/journal.pone.0356621.g004

thumbnail
Fig 5. SHAP summary plot illustrating the contribution of each predictor to the mortality models across prediction time horizons.

Panels A-D show SHAP feature importance for models predicting all-cause mortality at 1, 3, 5, and 10 years, respectively, while panels E-H present the corresponding feature importance for breast cancer-specific mortality at the same time horizons. Each point represents an individual observation, with its horizontal position indicating the direction and magnitude of the feature’s influence on the model output.

https://doi.org/10.1371/journal.pone.0356621.g005

For all-cause mortality, the most influential predictors included histological diagnosis, invasive ductal carcinoma (IDC), age, unknown marital status, unknown stage at diagnosis, race/ethnicity classified as other or unknown, and metastatic stage. For breast cancer–specific mortality, the most relevant predictors included unknown stage at diagnosis, localised stage, metastatic stage, IDC, histological diagnosis, unknown educational level, unknown marital status, and age.

Fig 5 presents the SHAP summary scatter plot, which illustrates both the magnitude and the direction of the impact of each predictor on the estimated risk of mortality. In this plot, each point represents an individual observation, with colour indicating the value of the predictor. Higher SHAP values correspond to a greater influence of the predictor on the model’s predicted outcome.

Decision curve analysis of model clinical utility

DCA showed that all models provided a positive net benefit across a broad range of threshold probabilities compared with the “treat all” and “treat none” strategies. Gradient boosting models showed slightly higher net benefit, particularly at intermediate threshold probabilities (approximately 0.2-0.6) (Fig 6).

thumbnail
Fig 6. Decision curve analysis (DCA) plots illustrating the clinical utility of the evaluated models across prediction time horizons.

Panels A-D show the net benefit for models predicting all-cause mortality at 1, 3, 5, and 10 years, respectively, while panels E-H present the corresponding net benefit for breast cancer-specific mortality at the same time horizons.

https://doi.org/10.1371/journal.pone.0356621.g006

Discussion

In this population-based cohort of women diagnosed with breast cancer in Mato Grosso, Brazil, ML models showed consistent performance for predicting both all-cause and breast cancer-specific mortality across 1-, 3-, 5-, and 10-year horizons. Overall, gradient-boosting models (LightGBM, XGBoost, and CatBoost) achieved a stable balance between discrimination and calibration, which reinforces the suitability of ensemble tree-based methods for prognostic modelling using routinely collected cancer registry data.

Our findings are consistent with previous studies showing that ML approaches can match or outperform conventional regression in breast cancer survival prediction, particularly when the relationships between predictors and outcomes are non-linear and include complex interactions [17,18]. However, much of the existing literature originates from high-income settings, where clinical data tend to be more complete and care pathways more standardised [34]. By contrast, Mato Grosso reflects a context of geographic barriers, heterogeneous access to oncology services, and substantial missingness in registry variables, features common to many regions of Brazil and other LMICs [2,6,35]. Demonstrating robust performance under these real-world constraints supports the feasibility of ML-based risk stratification using administrative and registry data [36]. Discrimination declined modestly as the prediction horizon increased, a pattern widely reported in long-term prognostic modelling and plausibly related to competing risks, treatment heterogeneity, and unmeasured time-varying determinants [34,37]. Nonetheless, AUROC values remained in a clinically informative range across follow-up. Beyond discrimination, decision curve analysis suggests that the models may provide clinical value across a wide range of risk thresholds, indicating potential to support more refined decision-making than default strategies. The slightly greater utility observed for gradient boosting approaches further points to their advantage in identifying patients within clinically actionable risk ranges.

Gradient boosting is particularly effective for structured datasets in which predictor effects are heterogeneous and non-linear. Methods such as XGBoost and LightGBM implement regularisation and handle missing values pragmatically, often improving robustness when stage or socioeconomic indicators are incompletely captured, an important feature for population registries in Brazil [21,23]. At the same time, performance similarities among several models highlight that there is no universally optimal algorithm, consistent with the “no free lunch” principle, and that model selection should remain empirical and context-specific, particularly when the goal is deployment rather than retrospective benchmarking [38].

Mortality prediction in breast cancer is inherently imbalanced, especially at shorter horizons, and reliance on a single metric such as AUROC can obscure clinically relevant shortcomings. Recent methodological work highlights the complementary roles and limitations of AUROC, AUPRC, and threshold-dependent metrics, cautioning against simplistic interpretations of performance under class imbalance [39–41]. In this study, the use of multiple performance measures beyond AUROC, including overall performance metrics such as the Brier score and calibration plots assessments, strengthens interpretability and aligns with best-practice recommendations for clinical prediction modelling [37,40].

Explainable ML approaches based on SHAP provide a unified framework for decomposing model predictions into feature-level contributions and have become increasingly adopted in oncology research [30]. In the present study, predictor importance patterns were broadly consistent across endpoints and prediction horizons, reinforcing the robustness of the identified signals.

Key predictors included age at diagnosis, cancer stage (localised, metastatic, and unknown), histological diagnosis, IDC, unknown marital status, skin colour (race) classified as other or unknown, and unknown educational level. These findings are largely concordant with previous studies applying ML-based classification and survival models in breast cancer, which have similarly highlighted the central role of tumour stage, age, and histopathological characteristics, while also identifying sociodemographic and access-related variables as relevant contributors to prediction performance [15,42,43].

The consistent influence of educational level and marital status underscores the importance of social determinants of health and care access pathways in shaping breast cancer outcomes, even within the context of a universal health system. Such variables may act as proxies for differences in health literacy, care-seeking behaviour, diagnostic timeliness, and continuity of treatment, rather than reflecting tumour biology alone [43,44]. These observations align with epidemiological evidence demonstrating persistent social gradients in cancer survival across diverse settings [45–47]. Notably, categories recorded as “unknown” also emerged as relevant predictors, suggesting that unrecorded information in administrative databases may reflect disparities in data quality, access to care, or clinical management processes. Rather than representing random missingness, these categories may indicate systematic differences in documentation practices, healthcare utilization, or delays in diagnosis and treatment. Thus, their contribution reinforces the importance of considering data completeness as an informative dimension, particularly in population-based registries, where such absence may reflect structural factors influencing patient outcomes.

Importantly, SHAP-based analyses revealed stable and clinically plausible patterns across different models, thereby increasing confidence in their transparency and reliability [48].This level of interpretability is essential for clinical acceptance and directly addresses one of the most commonly cited barriers to the implementation of ML tools in oncology practice, namely the lack of trust and explainability in model-driven decision support systems.

From a clinical perspective, these models may support early identification of women at high risk of mortality, enabling intensified follow-up, timely referral to specialised oncology services, and prioritisation of diagnostic and therapeutic interventions [49]. However, these models are intended to complement, rather than replace, established clinical staging systems and physician judgment.

The use of a unified decision threshold based on Youden’s index provides a pragmatic balance between sensitivity and specificity and facilitates comparability across models and prediction horizons. At the health system level, ML-based risk stratification may inform resource allocation within the SUS, particularly in settings with limited oncology infrastructure [50], offering a scalable and cost-effective approach based on routinely collected data. Despite these potential applications, challenges remain for clinical implementation, including limited real-time applicability, lack of automated data integration, and difficulties in translating population-based predictions into individual clinical decision-making.

This study leverages linked cancer registry and mortality data to enable long-term follow-up and the evaluation of both all-cause and breast cancer-specific mortality across multiple time horizons. A key strength is the comprehensive evaluation framework, integrating discrimination, calibration, threshold-dependent metrics, and formal model comparisons, which highlights the added value of gradient boosting methods over logistic regression under routine-data constraints. The use of explainable ML further enhances interpretability and supports clinically plausible and equity-oriented model assessment.

However, this study has limitations inherent to registry-based research. The absence or incompleteness of key clinical variables in the RCBP, such as stage, detailed tumour characteristics, treatment information, comorbidities, molecular subtype, and disease recurrence, may have affected predictive performance. In addition, some sociodemographic and clinical variables, including marital status, education level, and stage, contained unrecorded or poorly captured information in administrative data, with categories coded as “unknown,” which likely reflect gaps in data recording and disparities in access to diagnostic services rather than true patient characteristics.

Variability in data collection across centres in Mato Grosso may have affected data quality, and deterministic linkage between the RCBP and the SIM may be subject to missed or false matches, potentially leading to outcome misclassification. Mortality was also defined as a binary outcome at prespecified prediction horizons (1, 3, 5, and 10 years). Although this approach facilitates clinically interpretable risk prediction, it simplifies the underlying time-to-event process and does not fully account for censoring, which may have influenced predictive performance, particularly at longer prediction horizons. The exclusion of male patients, due to their low frequency and distinct clinical and biological behaviour, limits applicability to women. The absence of external validation represents an important limitation of this study. Although the models demonstrated robust internal performance through independent test set evaluation, stratified five-fold cross-validation, bootstrap resampling, discrimination, calibration, and overall prediction error analyses, their performance in independent populations remains unknown. Consequently, the findings should be interpreted primarily in the context of women diagnosed with breast cancer in Mato Grosso. Future multicentre studies involving independent population-based cancer registries are needed to evaluate the transportability and generalisability of these models before broader implementation in other settings. Emerging privacy-preserving approaches, such as federated learning, may facilitate future multicentre validation while addressing ethical and regulatory constraints on sharing individual-level health data. Future research should prioritise multicentre external validation, prospective evaluation, and the development of automated data integration pipelines. It should also explore time-updated models and the integration of longitudinal clinical, imaging-derived, and genomic data to improve predictive performance and clinical utility.

Conclusion

ML models showed good and stable performance in predicting all-cause and breast cancer-specific mortality among women in Mato Grosso, Brazil, using routine population-based data. Gradient boosting algorithms, particularly CatBoost, XGBoost, and LightGBM, demonstrated superior discrimination and calibration across prediction horizons. Age at diagnosis, cancer stage, histopathological type, and marital status emerged as key predictors, highlighting the combined influence of clinical and social factors on survival. These findings suggest that ML-based models may support early identification of high-risk patients and inform risk stratification and follow-up planning within the Brazilian SUS, particularly in resource-constrained settings. Nevertheless, because the models have not yet been externally validated, their applicability to populations beyond Mato Grosso remains uncertain. External validation in independent populations and prospective evaluation are therefore warranted before broader clinical or public health implementation.

Supporting information

Acknowledgments

The authors thank the State Secretary of Health of Mato Grosso (SES-MT) for providing access to the data used in this study.

References

  1. 1. Bray F, Laversanne M, Sung H, Ferlay J, Siegel RL, Soerjomataram I. Global cancer statistics 2022: GLOBOCAN estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA Cancer J Clin. 2024;74:229–63.
  2. 2. Arnold M, Morgan E, Rumgay H, Mafra A, Singh D, Laversanne M, et al. Current and future burden of breast cancer: global statistics for 2020 and 2040. Breast. 2022;66:15–23. pmid:36084384
  3. 3. Guo L, Kong D, Liu J, Zhan L, Luo L, Zheng W, et al. Breast cancer heterogeneity and its implication in personalized precision therapy. Exp Hematol Oncol. 2023;12(1):3. pmid:36624542
  4. 4. Cecilio AP, Takakura ET, Jumes JJ, Dos Santos JW, Herrera AC, Victorino VJ, et al. Breast cancer in Brazil: epidemiology and treatment challenges. Breast Cancer (Dove Med Press). 2015;7:43–9. pmid:25678813
  5. 5. Silva JDDE, de Oliveira RR, da Silva MT, Carvalho MD de B, Pedroso RB, Pelloso SM. Breast cancer mortality in young women in Brazil. Front Oncol. 2021;10:569933. pmid:33585192
  6. 6. Gonzaga CMR, Freitas-Junior R, Souza MR, Curado MP, Freitas NMA. Disparities in female breast cancer mortality rates between urban centers and rural areas of Brazil: ecological time-series study. Breast. 2014;23(2):180–7. pmid:24503143
  7. 7. Dos Santos Figueiredo FW, Adami F. Effects of the high-inequality of income on the breast cancer mortality in Brazil. Sci Rep. 2019;9(1):4173. pmid:30862862
  8. 8. Xavier SP, Galvão ND, das Neves MAB, da Silva KM, Almeida A de QN, Silva AMC da. Nomogram model for predicting the long-term prognosis of cervical cancer patients: a population-based study in Mato Grosso, Brazil. BMC Cancer. 2025;25(1):684. pmid:40229703
  9. 9. das Neves MAB, Galvão ND, de Lima FC da S, Oliveria JFP, Xavier SP, da Silva KM. Trend in cancer incidence in Mato Grosso and its health regions, Brazil, 2001-2018. Arch Public Health. 2025;83:87.
  10. 10. Oliveira JC de S, Castelo LM, Soares MR, Magalhães AS, Eustáquio DM da C, Navarro-Silva JP, et al. Incidence and mortality by the main types of cancer in the city of Cuiabá, Mato Grosso, between the years of 2008 and 2016. Rev Bras Epidemiol. 2022;25(Supl 1):e220011. pmid:35766768
  11. 11. Wishart GC, Bajdik CD, Azzato EM, Dicks E, Greenberg DC, Rashbass J, et al. A population-based validation of the prognostic model PREDICT for early breast cancer. Eur J Surg Oncol. 2011;37(5):411–7. pmid:21371853
  12. 12. Dankwa-Mullan I, Weeraratne D. Artificial intelligence and machine learning technologies in cancer care: addressing disparities, bias, and data diversity. Cancer Discov. 2022;12(6):1423–7. pmid:35652218
  13. 13. das Neves MAB, Galvão ND, de Lima FC da S, Oliveria JFP, Xavier SP, da Silva AMC. Factors associated with advanced diagnosis of cervical cancer: a hospital-based retrospective study in a state of the Brazilian Legal Amazon. 2025.
  14. 14. Hasnis E, Avizohar O, Half EE, Aran D. Machine learning for cancer risk stratification: a bi-directional approach to screening. American Society of Clinical Oncology; 2025.
  15. 15. Hamedi SZ, Emami H, Khayamzadeh M, Rabiei R, Aria M, Akrami M, et al. Application of machine learning in breast cancer survival prediction using a multimethod approach. Sci Rep. 2024;14(1):30147. pmid:39627494
  16. 16. Botlagunta M, Botlagunta MD, Myneni MB, Lakshmi D, Nayyar A, Gullapalli JS, et al. Classification and diagnostic prediction of breast cancer metastasis on clinical data using machine learning algorithms. Sci Rep. 2023;13(1):485. pmid:36627367
  17. 17. Ganggayah MD, Taib NA, Har YC, Lio P, Dhillon SK. Predicting factors for survival of breast cancer patients using machine learning techniques. BMC Med Inform Decis Mak. 2019;19(1):48. pmid:30902088
  18. 18. Silva G, Duarte L, Shirassu M, Peres S, de Moraes M, Chiavegatto Filho A. Machine learning for longitudinal mortality risk prediction in patients with malignant neoplasm in São Paulo, Brazil. Artificial Intelligence in the Life Sciences. 2023;3:100061.
  19. 19. Lima FC da S de, Souza B da SN de, Oliveira JFP, Galvão ND, Souza PCF de. Cervical cancer specific survival in Grande Cuiabá, Mato Grosso State, Brazil. Rev Bras Epidemiol. 2022;25(Supl 1):e220017. pmid:35766774
  20. 20. Fritz A, Percy C, Jack A, Shanmugaratnam K, Sobin L, Parkin DM, et al. International classification of diseases for oncology. World Health Organization; 2000.
  21. 21. Chen T, Guestrin C. XGBoost: a scalable tree boosting system. In: Proceedings of the 22nd ACM SIGKDD International conference on knowledge discovery and data mining. 2016. 785–94.
  22. 22. Prokhorenkova L, Gusev G, Vorobev A, Dorogush AV, Gulin A. CatBoost: unbiased boosting with categorical features. Adv Neural Inf Process Syst. 2018;31.
  23. 23. Ke G, Meng Q, Finley T, Wang T, Chen W, Ma W. Lightgbm: a highly efficient gradient boosting decision tree. Adv Neural Inf Process Syst. 2017;30.
  24. 24. Roy P, Hasan M, Islam MR, Uddin MP. Interpretable artificial intelligence (AI) for cervical cancer risk analysis leveraging stacking ensemble and expert knowledge. Digit Health. 2025;11. pmid:40144051
  25. 25. Murali N, Kucukkaya A, Petukhova A, Onofrey J, Chapiro J. Supervised machine learning in oncology: a clinician’s guide. Dig Dis Interv. 2020;4(1):73–81. pmid:32869010
  26. 26. Bradshaw TJ, Huemann Z, Hu J, Rahmim A. A guide to cross-validation for artificial intelligence in medical imaging. Radiol Artif Intell. 2023;5(e220232).
  27. 27. Rainio O, Teuho J, Klén R. Evaluation metrics and statistical tests for machine learning. Sci Rep. 2024;14(1):6086. pmid:38480847
  28. 28. Yang W, Jiang J, Schnellinger EM, Kimmel SE, Guo W. Modified Brier score for evaluating prediction accuracy for binary outcomes. Stat Methods Med Res. 2022;31(12):2287–96. pmid:36031854
  29. 29. Steyerberg EW, Vickers AJ, Cook NR, Gerds T, Gonen M, Obuchowski N, et al. Assessing the performance of prediction models: a framework for traditional and novel measures. Epidemiology. 2010;21(1):128–38. pmid:20010215
  30. 30. Lundberg SM, Lee SI. A unified approach to interpreting model predictions. Adv Neural Inf Process Syst. 2017;30.
  31. 31. Ponce-Bobadilla AV, Schmitt V, Maier CS, Mensing S, Stodtmann S. Practical guide to SHAP analysis: Explaining supervised machine learning model predictions in drug development. Clin Transl Sci. 2024;17(11):e70056. pmid:39463176
  32. 32. Zhao L, Leng Y, Hu Y, Xiao J, Li Q, Liu C, et al. Understanding decision curve analysis in clinical prediction model research. Postgraduate Medical Journal. 2024;100(1185):512–5.
  33. 33. Shreffler J, Huecker MR. Survival analysis. 2020.
  34. 34. Parikh RB, Manz C, Chivers C, Regli SH, Braun J, Draugelis ME, et al. Machine learning approaches to predict 6-month mortality among patients with cancer. JAMA Network Open. 2019;2(e1915997).
  35. 35. Bizuayehu HM, Ahmed KY, Kibret GD, Dadi AF, Belachew SA, Bagade T. Global disparities of cancer and its projected burden in 2050. JAMA Netw Open. 2024;7:e2443198.
  36. 36. Gupta S, Tran T, Luo W, Phung D, Kennedy RL, Broad A, et al. Machine-learning prediction of cancer survival: a retrospective study using electronic administrative records and a cancer registry. BMJ Open. 2014;4(3):e004007. pmid:24643167
  37. 37. Steyerberg EW, Vickers AJ. Decision curve analysis: a discussion. Med Decis Making. 2008;28(1):146–9. pmid:18263565
  38. 38. Wolpert DH, Macready WG. No free lunch theorems for optimization. IEEE Trans Evol Computat. 1997;1(1):67–82.
  39. 39. Hicks SA, Strümke I, Thambawita V, Hammou M, Riegler MA, Halvorsen P, et al. On evaluation metrics for medical applications of artificial intelligence. Sci Rep. 2022;12(1):5979. pmid:35395867
  40. 40. Van Calster B, Collins GS, Vickers AJ, Wynants L, Kerr KF, Barreñada L, et al. Evaluation of performance measures in predictive artificial intelligence models to support medical decisions: overview and guidance. Lancet Digit Health. 2025;7(12):100916. pmid:41391983
  41. 41. Saito T, Rehmsmeier M. The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets. PLoS One. 2015;10(3):e0118432. pmid:25738806
  42. 42. Baidoo TG, Rodrigo H. Data-driven survival modeling for breast cancer prognostics: a comparative study with machine learning and traditional survival modeling methods. PLoS One. 2025;20(4):e0318167. pmid:40262081
  43. 43. Park SW, Park Y-L, Lee E-G, Chae H, Park P, Choi D-W, et al. Mortality prediction modeling for patients with breast cancer based on explainable machine learning. Cancers (Basel). 2024;16(22):3799. pmid:39594754
  44. 44. Moncada-Torres A, van Maaren MC, Hendriks MP, Siesling S, Geleijnse G. Explainable machine learning can outperform Cox regression predictions and provide insights in breast cancer survival. Sci Rep. 2021;11(1):6968. pmid:33772109
  45. 45. Sun W, Jiang Y-Z, Liu Y-R, Ma D, Shao Z-M. Nomograms to estimate long-term overall survival and breast cancer-specific survival of patients with luminal breast cancer. Oncotarget. 2016;7(15):20496–506. pmid:26967253
  46. 46. Teng L, Zhang Z, Du J, Dong Y, Tao W. Nomogram construction and survival analysis in T3N0M0 breast cancer: a SEER population-based analysis. Sci Rep. 2025;15(1):25194. pmid:40651990
  47. 47. Yu Z-H, Lin Y, Wu P-S, Lee C-H, Chou C-P. A prognostic nomogram for predicting breast cancer survival based on mammography and AJCC staging. Heliyon. 2024;10(5):e27072. pmid:38449621
  48. 48. Ghasemi A, Hashtarkhani S, Schwartz DL, Shaban-Nejad A. Explainable artificial intelligence in breast cancer detection and risk prediction: a systematic scoping review. Cancer Innov. 2024;3(5):e136. pmid:39430216
  49. 49. Zhang B, Shi H, Wang H. Machine learning and AI in cancer prognosis, prediction, and treatment selection: a critical approach. J Multidiscip Healthc. 2023;16:1779–91.
  50. 50. Susanto AP, Lyell D, Widyantoro B, Berkovsky S, Magrabi F. Effects of machine learning-based clinical decision support systems on decision-making, care delivery, and patient outcomes: a scoping review. J Am Med Inform Assoc. 2023;30(12):2050–63. pmid:37647865