Breast Cancer Diagnosis Using Machine Learning Algorithms: A Comparative Study of SVM and Random Forest

Main Article Content

Zheming Mai

Keywords

breast cancer diagnosis, WDBC dataset, support vector machine, random forest, recall rate, multicollinearity

Abstract

Breast cancer diagnosis is a useful setting for evaluating machine-learning classifiers because the cost of missing a malignant case is much greater than the cost of sending a benign case for additional examination. This paper compares a Support Vector Machine (SVM) and a Random Forest (RF) on the Wisconsin Diagnostic Breast Cancer (WDBC) dataset, which contains 569 cases described by 30 numerical cell-nuclei features. The data were divided into an 80% training set and a 20% test set. For the reproducible version of the experiment, the split used random_state=72, and the SVM features were standardized using statistics learned from the training data only. On the 114-case test set, RF achieved 96.49% accuracy and 93.02% recall for malignant tumors. SVM achieved 95.61% accuracy but a higher malignant recall of 95.35%. RF missed three malignant cases, whereas SVM missed two. The comparison therefore does not produce a single best model for every criterion: RF makes fewer errors overall, while SVM is slightly better at avoiding missed cancers. Correlation analysis also shows strong redundancy among size-related variables, especially radius, perimeter, and area. These results suggest that malignant‑class recall and feature multicollinearity should be core considerations in model comparison instead of secondary observations.

Abstract 30 | PDF Downloads 25

References

  • [1]W. N. Street, W. H. Wolberg, and O. L. Mangasarian, ‘Nuclear feature extraction for breast tumor diagnosis,’ in Biomedical Image Processing and Biomedical Visualization, 1993.
  • [2]W. H. Wolberg, W. N. Street, and O. L. Mangasarian, ‘Machine learning techniques to diagnose breast cancer from fine-needle aspirates,’ Cancer Letters, vol. 77, no. 2–3, pp. 163–171, 1994, doi: 10.1016/0304-3835(94)90099-X.
  • [3]C. Cortes and V. Vapnik, ‘Support-vector networks,’ Machine Learning, vol. 20, pp. 273–297, 1995, doi: 10.1007/BF00994018.
  • [4]L. Breiman, ‘Random forests,’ Machine Learning, vol. 45, pp. 5–32, 2001, doi: 10.1023/A:1010933404324.
  • [5]M. F. Akay, ‘Support vector machines combined with feature selection for breast cancer diagnosis,’ Expert Systems with Applications, vol. 36, no. 2, pp. 3240–3247, 2009, doi: 10.1016/j.eswa.2008.01.009.
  • [6]H. Asri, H. Mousannif, H. Al Moatassime, and T. Noël, ‘Using machine learning algorithms for breast cancer risk prediction and diagnosis,’ Procedia Computer Science, vol. 83, pp. 1064–1069, 2016, doi: 10.1016/j.procs.2016.04.224.
  • [7]A. F. M. Agarap, ‘On breast cancer detection: An application of machine learning algorithms on the Wisconsin Diagnostic Dataset,’ in Proceedings of the 2nd International Conference on Machine Learning and Soft Computing, 2018, pp. 5–9.
  • [8]I. Guyon and A. Elisseeff, ‘An introduction to variable and feature selection,’ Journal of Machine Learning Research, vol. 3, pp. 1157–1182, 2003.
  • [9]O. L. Mangasarian, W. N. Street, and W. H. Wolberg, ‘Breast cancer diagnosis and prognosis via linear programming,’ Operations Research, vol. 43, no. 4, pp. 570–577, 1995.
  • [10]R. D. Nindrea, T. Aryandono, L. Lazuardi, and I. Dwiprahasto, ‘Diagnostic accuracy of different machine learning algorithms for breast cancer risk calculation: A meta-analysis,’ Asian Pacific Journal of Cancer Prevention, vol. 19, no. 7, pp. 1747–1752, 2018.