The Development of Stacking Techniques in Machine Learning for Breast Cancer Detection
Abstract
This study addresses the challenges of accurately detecting breast cancer using machine learning (ML) models, particularly when handling imbalanced datasets that often cause model bias toward the majority class. To tackle this, the Synthetic Minority Over-sampling Technique (SMOTE) was applied not only to balance the class distribution but also to improve the model's sensitivity in detecting malignant tumors, which are underrepresented in the dataset. SMOTE was effective in generating synthetic samples for the minority class without introducing overfitting, enhancing the model's generalization on unseen data. Additionally, AdaBoost was employed as the meta model in the stacking framework, chosen for its ability to focus on misclassified instances during training, thereby boosting the overall performance of the combined base models. The study evaluates several models and combinations, with K-Nearest Neighbors (KNN) + SMOTE achieving an accuracy of 97%, precision, recall, and F1-score of 97%. Similarly, C4.5 + Hyperparameter Tuning + SMOTE reached 95% in all metrics. The stacking model with Logistic Regression (LR) as the meta model and SMOTE achieved a strong performance with 97% accuracy, precision, recall, and F1-score all at 97%. The best result was obtained using the combination of Stacking AdaBoost + Hyperparameter Tuning + SMOTE, reaching an accuracy of 98%. These findings highlight the effectiveness of combining SMOTE with stacking techniques to develop robust predictive models for medical applications. The novelty of this study lies in the integration of SMOTE and advanced stacking methods, particularly using AdaBoost and Logistic Regression, to address the issue of class imbalance in medical datasets. Future work will explore deploying this model in clinical settings for accurate and timely breast cancer detection.
Keywords
Full Text:
PDFReferences
J. Kufel et al., “What Is Machine Learning, Artificial Neural Networks and Deep Learning?—Examples of Practical Applications in Medicine,” Diagnostics, vol. 13, no. 15, pp. 1–22, 2023, doi: 10.3390/diagnostics13152582.
N. Seman and N. A. Razmi, “Machine learning-based technique for big data sentiments extraction,” IAES International Journal of Artificial Intelligence, vol. 9, no. 3, pp. 473–479, Sep. 2020, doi: 10.11591/ijai.v9.i3.pp473-479.
B. van Giffen, D. Herhausen, and T. Fahse, “Overcoming the pitfalls and perils of algorithms: A classification of machine learning biases and mitigation methods,” J Bus Res, vol. 144, pp. 93–106, May 2022, doi: 10.1016/j.jbusres.2022.01.076.
M. M. Taye, “Understanding of Machine Learning with Deep Learning: Architectures, Workflow, Applications and Future Directions,” Computers, vol. 12, no. 5, pp. 1–26, May 2023, doi: 10.3390/computers12050091.
Y. Yunitasari, A. Musdholifah, and A. K. Sari, “Sarcasm Detection For Sentiment Analysis in Indonesian Tweets,” IJCCS (Indonesian Journal of Computing and Cybernetics Systems), vol. 13, no. 1, pp. 53–62, 2019, doi: doi.org/10.22146/ijccs.41136.
C. J. Varshney, A. Sharma, and D. P. Yadav, “Sentiment analysis using ensemble classification technique,” in 2020 IEEE Students’ Conference on Engineering and Systems, SCES 2020, Institute of Electrical and Electronics Engineers Inc., Jul. 2020, pp. 1–20. doi: 10.1109/SCES50439.2020.9236754.
B. Brahimi, M. Touahria, and A. Tari, “Improving sentiment analysis in Arabic: A combined approach,” Journal of King Saud University - Computer and Information Sciences, vol. 33, no. 10, pp. 1242–1250, 2019, doi: 10.1016/j.jksuci.2019.07.011.
P. P. Putra, M. K. Anam, S. Defit, and A. Yunianta, “Enhancing the Decision Tree Algorithm to Improve Performance Across Various Datasets,” INTENSIF: Jurnal Ilmiah Penelitian dan Penerapan Teknologi Sistem Informasi, vol. 8, no. 2, pp. 200–212, Aug. 2024, doi: 10.29407/intensif.v8i2.22280.
T. Kawichai, “Stacking Ensemble Learning with Regression Models for Predicting Damage from Terrorist Attacks,” ECTI Transactions on Computer and Information Technology Published by the ECTI Association, vol. 18, no. 3, pp. 250–259, 2024, doi: 10.37936/ecti-cit.2024183.255276.
M. Arifin, W. Widowati, and F. Farikhin, “Optimization of Hyperparameters in Machine Learning for Enhancing Predictions of Student Academic Performance,” Ingenierie des Systemes d’Information, vol. 28, no. 3, pp. 575–582, Jun. 2023, doi: 10.18280/isi.280305.
T. Zhao, Y. Zheng, and Z. Wu, “Feature selection-based machine learning modeling for distributed model predictive control of nonlinear processes,” Comput Chem Eng, vol. 169, no. 1, pp. 1–17, Jan. 2023, doi: 10.1016/j.compchemeng.2022.108074.
T. A. Assegie, “An optimized K-Nearest neighbor based breast cancer detection,” Journal of Robotics and Control (JRC), vol. 2, no. 3, pp. 115–118, May 2021, doi: 10.18196/jrc.2363.
H. I. Mohammed, S. A. Abdulkareem, and S. K. Ahmed, “Prediction of breast cancer based on machine learning,” Computer Science & IT Research Journal, vol. 5, no. 7, pp. 1605–1620, Jul. 2024, doi: 10.51594/csitrj.v5i7.1306.
P. A. Jusia, A. Rahim, H. Yani, and J. Jasmir, “Improving Performance of KNN and C4.5 using Particle Swarm Optimization in Classification of Heart Diseases,” Jurnal RESTI, vol. 8, no. 3, pp. 333–339, Jun. 2024, doi: 10.29207/resti.v8i3.5710.
M. K. Anam, T. A. Fitri, Agustin, Lusiana, M. B. Firdaus, and A. T. Nurhuda, “Sentiment Analysis for Online Learning using The Lexicon-Based Method and The Support Vector Machine Algorithm,” ILKOM Jurnal Ilmiah, vol. 15, no. 2, pp. 290–302, 2023, doi: 10.33096/ilkom.v15i2.1590.290-302.
J. Liu et al., “Lasso-Based Machine Learning Algorithm for Predicting Postoperative Lung Complications in Elderly: A Single-Center Retrospective Study from China,” Clin Interv Aging, vol. 18, pp. 597–606, 2023, doi: 10.2147/CIA.S406735.
N. R. Octavianto and A. Wibowo, “Stacking classifier method for prediction of human body performance,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 34, no. 3, pp. 1832–1839, Jun. 2024, doi: 10.11591/ijeecs.v34.i3.pp1832-1839.
A. Ghasemieh, A. Lloyed, P. Bahrami, P. Vajar, and R. Kashef, “A novel machine learning model with Stacking Ensemble Learner for predicting emergency readmission of heart-disease patients,” Decision Analytics Journal, vol. 7, pp. 1–13, Jun. 2023, doi: 10.1016/j.dajour.2023.100242.
Q. Sui and S. K. Ghosh, “Active Learning for Stacking and AdaBoost-Related Models,” Stats (Basel), vol. 7, no. 1, pp. 110–137, Mar. 2024, doi: 10.3390/stats7010008.
W. A. G. Kodri and S. Hadianti, “Optimization of The Machine Learning Approach using Optuna in Heart Disease Prediction,” Journal Medical Informatics Technology, vol. 1, no. 3, pp. 59–64, Sep. 2023, doi: 10.37034/medinftech.v1i3.15.
N. G. Ramadhan, “Comparative Analysis of ADASYN-SVM and SMOTE-SVM Methods on the Detection of Type 2 Diabetes Mellitus,” Scientific Journal of Informatics, vol. 8, no. 2, pp. 276–282, Nov. 2021, doi: 10.15294/sji.v8i2.32484.
W. Jia, M. Sun, J. Lian, and S. Hou, “Feature dimensionality reduction: a review,” Complex and Intelligent Systems, vol. 8, no. 3, pp. 2663–2693, Jun. 2022, doi: 10.1007/s40747-021-00637-x.
S. D. Cahya, B. Sartono, I. Indahwati, and E. Purnaningrum, “Performance of LAD-LASSO and WLAD-LASSO on High Dimensional Regression in Handling Data Containing Outliers,” JTAM (Jurnal Teori dan Aplikasi Matematika), vol. 6, no. 4, p. 844, Oct. 2022, doi: 10.31764/jtam.v6i4.8968.
K. Satyanarayana, D. Shankar, and D. Raju, “An Approach For Finding Emotions Using Seed Dataset With Knn Classifier,” Turkish Journal of Computer and Mathematics Education, vol. 12, no. 10, pp. 2838–2846, 2021, doi: 10.17762/turcomat.v12i10.4930.
Y. Q. Song, X. Yao, Z. Liu, X. Shen, and J. Mao, “An Improved C4.5 Algorthm in Bagging Integration Model,” IEEE Access, vol. 8, pp. 206866–206875, 2020, doi: 10.1109/ACCESS.2020.3032291.
I. F. Ashari, M. C. Untoro, E. M. Sutowo, D. Salsabila, and D. A. Zhabiyan, “Hyperparameter Tuning Feature Selection with Genetic Algorithm and Gaussian Naïve Bayes for Diabetes Disease Prediction,” Jurnal Telematika, vol. 17, no. 1, pp. 17–23, 2022, doi: 10.61769/jurtel.v17i1.488.
S. Mohapatra, I. Mishra, and S. Mohanty, “Stacking Model for Heart Stroke Prediction using Machine Learning Techniques,” EAI Endorsed Trans Pervasive Health Technol, vol. 9, no. 1, pp. 1–5, May 2023, doi: 10.4108/eetpht.9.4057.
A. Tikaningsih, P. Lestari, A. Nurhopipah, I. Tahyudin, E. Winarto, and N. Hassa, “Optuna Based Hyperparameter Tuning for Improving the Performance Prediction Mortality and Hospital Length of Stay for Stroke Patients,” Telematika, vol. 17, no. 1, pp. 1–16, Feb. 2024, doi: 10.35671/telematika.v17i1.2816.
R. Keniya et al., “Disease prediction from various symptoms using machine learning,” SSRN, pp. 1–7, 2020, doi: 10.2139/ssrn.3661426.
Y. Khourdifi and M. Bahaj, “Heart disease prediction and classification using machine learning algorithms optimized by particle swarm optimization and ant colony optimization,” International Journal of Intelligent Engineering and Systems, vol. 12, no. 1, pp. 242–252, 2019, doi: 10.22266/ijies2019.0228.24.
P. Banasode, M. Patil, and N. Ammanagi, “A Melanoma Skin Cancer Detection Using Machine Learning Technique: Support Vector Machine,” in IOP Conference Series: Materials Science and Engineering, IOP Publishing Ltd, Feb. 2021, pp. 1–5. doi: 10.1088/1757-899X/1065/1/012039.
K. Gaurav, A. Kumar, P. Singh, A. Kumari, M. Kasar, and T. Suryawanshi, “Human Disease Prediction using Machine Learning Techniques and Real-life Parameters,” International Journal of Engineering, Transactions B: Applications, vol. 36, no. 6, pp. 1092–1098, Jun. 2023, doi: 10.5829/ije.2023.36.06c.07.
B. P. Doppala, D. Bhattacharyya, M. Janarthanan, and N. Baik, “A Reliable Machine Intelligence Model for Accurate Identification of Cardiovascular Diseases Using Ensemble Techniques,” J Healthc Eng, vol. 2022, pp. 1–13, 2022, doi: 10.1155/2022/2585235.
S. Tuba, “Optimization Heart Disease Prediction using Machine Learning Models,” Fidelity : Jurnal Teknik Elektro, vol. 5, no. 1, pp. 53–59, Jan. 2023, doi: 10.52005/fidelity.v5i1.142.
C. M. Bhatt, P. Patel, T. Ghetia, and P. L. Mazzeo, “Effective Heart Disease Prediction Using Machine Learning Techniques,” Algorithms, vol. 16, no. 2, pp. 1–14, Feb. 2023, doi: 10.3390/a16020088.
R. Rabiei, S. M. Ayyoubzadeh, S. Sohrabei, M. Esmaeili, and A. Atashi, “Prediction of Breast Cancer using Machine Learning Approaches,” J Biomed Phys Eng, vol. 12, no. 3, pp. 297–308, Jun. 2022, doi: 10.31661/jbpe.v0i0.2109-1403.
A. Khalid et al., “Breast Cancer Detection and Prevention Using Machine Learning,” Diagnostics, vol. 13, no. 19, pp. 1–21, Oct. 2023, doi: 10.3390/diagnostics13193113.
DOI: https://doi.org/10.47738/jads.v6i1.416
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)