[Paper Review] A Rigorous Machine Learning Analysis Pipeline for Biomedical Binary Classification: Application in Pancreatic Cancer Nested Case-control Studies with Implications for Bias Assessments
This paper presents a rigorous, customizable machine learning pipeline for biomedical binary classification, emphasizing reproducibility, bias mitigation, and interpretability. It integrates data preprocessing, feature selection, nine ML algorithms with hyperparameter tuning, and novel visualizations—demonstrating its utility in pancreatic cancer nested case-control studies and highlighting ExSTraCS’s strength in detecting heterogeneous associations despite not always achieving peak predictive performance.
Machine learning (ML) offers a collection of powerful approaches for detecting and modeling associations, often applied to data having a large number of features and/or complex associations. Currently, there are many tools to facilitate implementing custom ML analyses (e.g. scikit-learn). Interest is also increasing in automated ML packages, which can make it easier for non-experts to apply ML and have the potential to improve model performance. ML permeates most subfields of biomedical research with varying levels of rigor and correct usage. Tremendous opportunities offered by ML are frequently offset by the challenge of assembling comprehensive analysis pipelines, and the ease of ML misuse. In this work we have laid out and assembled a complete, rigorous ML analysis pipeline focused on binary classification (i.e. case/control prediction), and applied this pipeline to both simulated and real world data. At a high level, this 'automated' but customizable pipeline includes a) exploratory analysis, b) data cleaning and transformation, c) feature selection, d) model training with 9 established ML algorithms, each with hyperparameter optimization, and e) thorough evaluation, including appropriate metrics, statistical analyses, and novel visualizations. This pipeline organizes the many subtle complexities of ML pipeline assembly to illustrate best practices to avoid bias and ensure reproducibility. Additionally, this pipeline is the first to compare established ML algorithms to 'ExSTraCS', a rule-based ML algorithm with the unique capability of interpretably modeling heterogeneous patterns of association. While designed to be widely applicable we apply this pipeline to an epidemiological investigation of established and newly identified risk factors for pancreatic cancer to evaluate how different sources of bias might be handled by ML algorithms.
Motivation & Objective
- To address the lack of standardized, rigorous ML pipelines in biomedical research that ensure reproducibility and reduce bias.
- To develop a comprehensive, automated yet customizable pipeline for binary classification in complex, high-dimensional biomedical data.
- To evaluate the performance of diverse ML algorithms—including the rule-based ExSTraCS—on real and simulated pancreatic cancer datasets.
- To assess the impact of study design biases (e.g., case/control matching, confounding) on ML model outcomes and feature selection.
- To promote transparency and interpretability in ML by incorporating novel visualizations and collective feature selection.
Proposed method
- The pipeline is structured into four stages: data preprocessing and transformation, collective feature selection using multiple algorithms, training nine established ML models with automated hyperparameter optimization, and post-analysis evaluation.
- Feature selection employs a collective approach combining results from multiple algorithms to improve robustness and reduce bias in variable importance estimation.
- Model training includes nine algorithms (e.g., Random Forest, XGBoost, SVM, Logistic Regression) with Bayesian hyperparameter optimization via Optuna.
- ExSTraCS, a rule-based learning algorithm, is integrated to detect complex, heterogeneous associations such as epistasis, offering interpretability beyond black-box models.
- Evaluation uses multiple metrics (AUC, accuracy, F1), statistical tests, and novel compound feature importance bar plots (CFIBPs) for model interpretation.
- The pipeline is implemented in Python and designed to be extensible, supporting both scikit-learn-compatible and standalone algorithms like ExSTraCS.
Experimental results
Research questions
- RQ1How does the proposed ML pipeline improve reproducibility and reduce bias in biomedical binary classification compared to ad hoc approaches?
- RQ2To what extent do different ML algorithms, including ExSTraCS, perform across diverse pancreatic cancer datasets with varying levels of confounding and feature complexity?
- RQ3How do study design choices—such as case/control matching and inclusion of dietary variables—affect ML model performance and feature selection outcomes?
- RQ4Can ExSTraCS detect heterogeneous patterns of association that other algorithms miss, despite not always achieving the highest predictive accuracy?
- RQ5What role do novel visualizations like CFIBPs play in enhancing model interpretability and bias assessment in ML-driven biomedical research?
Key findings
- The pipeline successfully mitigated bias from case/control matching and confounding variables, confirming known pancreatic cancer risk factors across all three datasets.
- Incorporating dietary variables provided a small but consistent predictive advantage, though the most informative factors varied across datasets.
- ExSTraCS did not achieve the highest AUC in all datasets but demonstrated robust performance across diverse evaluation metrics and datasets, indicating strong generalization.
- The collective feature selection approach improved stability and reduced over-reliance on individual algorithm biases, enhancing reliability of variable importance rankings.
- The pipeline revealed that different ML algorithms performed best on different datasets, underscoring the need for algorithmic diversity in model evaluation.
- ExSTraCS’s interpretability and ability to model heterogeneous associations make it a valuable addition to ML pipelines, especially in discovery-oriented epidemiological studies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.