Machine Learning–Based Prediction of Breast Cancer in Women: Insights From Feature Selection of Clinical and Lifestyle Data
Authors:
- Leila AllahqoliLALeila Allahqoli
- Mohammad Hassan BehzadiMBMohammad Hassan Behzadi
- Seyedeh Zahra AghamohammadiSASeyedeh Zahra Aghamohammadi
- Sevil HakimiSHSevil Hakimi
- Hamid SalehiniyaHSHamid Salehiniya
- Arezoo FallahiAFArezoo Fallahi
- Azam RahmaniARAzam Rahmani
- Zahra ShahabiniaZSZahra Shahabinia
- Afrooz MazidimoradiAMAfrooz Mazidimoradi
- Zohre MomenimovahedZMZohre Momenimovahed
- Mohammadmatin GhiyasvandMGMohammadmatin Ghiyasvand
Open Access
- 1 January 2026
- journal article
- Published by Wiley in International Journal of Breast Cancer
- Vol. 2026 (1) , 8510185
Abstract
Objective: This study is aimed at developing and evaluating a machine learning–based model for breast cancer classification using integrated clinical, demographic, reproductive, and lifestyle data. Methods: A retrospective machine learning framework was developed using data from a case–control study conducted in Tehran. The dataset included demographic, clinical, reproductive, lifestyle, and screening‐related variables. Data preprocessing was performed within machine learning pipelines to ensure data quality and prevent data leakage. Duplicate records and noninformative variables were removed. Missing values were imputed using median values for numerical variables and the most frequent value for categorical variables. Categorical features were encoded appropriately, and Min–Max normalization was applied where required. Feature selection was conducted using mutual information (MI) and analysis of variance (ANOVA) within a stratified cross‐validation framework. The data were split into training (80%) and test (20%) sets. Several supervised learning algorithms, including Gaussian Naive Bayes (GNB), K‐nearest neighbors (KNN), decision tree (DT), random forest (RF), support vector machine (SVM), logistic regression (LR), and artificial neural network (ANN), were trained and evaluated. Model performance was assessed using accuracy, precision, recall (sensitivity), F1‐score, and receiver operating characteristic–area under the curve (ROC‐AUC), with stratified 5‐fold cross‐validation and final evaluation on an independent test set. Results: Significant differences were observed between breast cancer patients and healthy controls across multiple demographic and clinical variables. Patients were generally older and more likely to be widowed, belong to higher socioeconomic classes, and be housewives, whereas higher education levels and employment were more frequent among healthy individuals ( p < 0.001). Reproductive factors, including age at first marriage and breastfeeding duration, also showed significant differences. Feature selection reduced 414 initial variables to 40 key predictors. The most influential features included genetic factors (BRCA1/2 mutations and family history), reproductive and hormonal characteristics (age at menarche, menopause, and infertility), lifestyle behaviors (dietary patterns and physical activity), anthropometric measures (BMI and weight at age 30), and screening‐related variables (mammography, ultrasound, and biopsy). All models demonstrated strong and stable performance with minimal differences between cross‐validation and test results, indicating good generalization. RF achieved the highest performance (accuracy: 0.9897, precision: 0.9946, recall: 0.9840, F1‐score: 0.9892), followed by SVM and LR, whereas ANN showed the lowest overall performance. Conclusion: Machine learning models can effectively classify breast cancer using multidimensional patient data. Ensemble methods, particularly RF, demonstrated superior accuracy and robustness, highlighting their ability to capture complex nonlinear relationships. The identified predictors are consistent with established clinical and epidemiological risk factors, supporting the validity of the proposed models. These findings suggest that machine learning approaches hold strong potential for personalized risk assessment and early detection of breast cancer; however, external validation across diverse populations is necessary to confirm generalizability.Keywords
This publication has 27 references indexed in Scilit:
- Evolution of Breast Cancer Recurrence Risk Prediction: A Systematic Review of Statistical and Machine Learning–Based ModelsJCO Clinical Cancer Informatics, 2023
- Machine learning approaches for predicting 5‐year breast cancer survival: A multicenter studyCancer Science, 2023
- Prediction of Breast Cancer using Machine Learning ApproachesJournal of Biomedical Physics and Engineering, 2022
- Application of Machine Learning Algorithms in Breast Cancer Diagnosis and Classification.2021
- Evaluation of Feature Selection Techniques for Breast Cancer Risk PredictionInternational Journal of Environmental Research and Public Health, 2021
- Machine Learning in MedicineThe New England journal of medicine, 2019
- High-performance medicine: the convergence of human and artificial intelligenceNature Medicine, 2019
- Machine Learning and Deep Learning Approaches in Breast Cancer Survival Prediction Using Clinical DataFolia Biologica, 2019
- Risk factors for breast cancer in a cohort of mammographic screening program: a nested case–control study within the FRiCaM studyCancer Medicine, 2018
- Predicting breast cancer survivability: a comparison of three data mining methodsArtificial Intelligence in Medicine, 2005