Peimankar A, Garvik OS, Nørgård BM, Søndergaard J, Jarbøl DE, Wehberg S, Sheikh SP, Ebrahimi A, Wiil UK, Iachina M. Prescription data and demographics: An explainable machine learning exploration of colorectal cancer risk factors based on data from Danish national registries.
COMPUTER METHODS AND PROGRAMS IN BIOMEDICINE 2025;
267:108774. [PMID:
40287990 DOI:
10.1016/j.cmpb.2025.108774]
[Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Track Full Text] [Subscribe] [Scholar Register] [Received: 12/22/2024] [Revised: 02/23/2025] [Accepted: 04/10/2025] [Indexed: 04/29/2025]
Abstract
OBJECTIVES
Despite substantial advancements in both treatment and prevention, colorectal cancer continues to be a leading cause of global morbidity and mortality. This study investigated the potential of using demographics and prescribed drug information to predict risk of colorectal cancer using a machine learning approach.
METHODS
Five different machine learning algorithms, including Logistic Regression, XGBoost, Random Forests, kNN, and Voting Classifier, were initially developed and evaluated for their predictive capabilities across various time horizons (3, 6, 12, and 36 months). To enhance transparency and interpretability, explainable techniques were employed to understand the model's predictions and identify the relative contributions of factors like age, sex, social status, and prescribed medications, promoting trust and clinical insights. While all developed models, including simpler ones such as Logistic Regression, demonstrated comparable performance, the Voting Classifier, as an ensemble model, was selected for further investigation due to its inherent diversity and generalizability. This ensemble model combines predictions from multiple base models, reducing the risk of overfitting and improving the robustness of the final prediction.
RESULTS
The model demonstrated consistent performance across these time horizons, achieving a precision consistently above 0.99, indicating high ability in identifying patients at risk. However, the recall remained relatively low (around 0.6), highlighting the model's limitations in comprehensively identifying all at risk patients, despite its high precision. This suggests additional investigations in future studies to further enhance the performance of the proposed model.
CONCLUSION
Machine learning models can identify individuals at higher risk for developing colorectal cancer, enabling earlier interventions and personalized risk management strategies. However, further studies are needed before implementation in clinical practice.
Collapse