Research Article

The application and analysis of the KNN algorithm in machine learning for breast cancer prediction

Hangyu Li*
WenZhou University

* Corresponding author: [email protected]

Abstract

When female patients are tested for cancer, breast cancer tends to be detected more often than other cancers. Breast cancer also accounts for a large percentage of deaths of female patients due to cancer. Timely prediction of whether one has breast cancer or not is of great significance in the treatment of breast cancer. In this study, K Nearest Neighbors (KNN) algorithm is used for data analysis as well as probability prediction to determine the probability of having breast cancer and compare it with traditional machine learning algorithms. The variation of accuracy versus K-value for a given dataset was experimentally represented by a graph. Also, the experiment gives and compares the accuracy of different learning algorithms in the same situation. According to the experimental results, the KNN algorithm tends to be more accurate than the other algorithms, with an accuracy of 98 percent. This turned out to be significantly higher than the remaining two algorithms. This experiment has significant implications for the healthcare industry. Because the use of this method can greatly improve the efficiency of doctors and the diagnosis of breast cancer, so that more people with the risk of breast cancer can be diagnosed and treated in a timely manner. In addition, hospitals can use the study to predict the incidence of breast cancer in a given area of the population.

Keywords: Breast Cancer; Prediction; KNN Algorithm; Healthcare Industry
Published: February 21, 2024
DOI: 10.54254/2755-2721/40/20230666
Volume: ACE Vol.40
pp. 274-279
Download PDF

References

  1. Sharma G N Dave R Sanadya J et al 2010 Various types and management of breast cancer: an overview Journal of advanced pharmaceutical technology & research 1(2): p 109
  2. McCowan C, Donnan P T Dewar J et al 2011 Identifying suspected breast cancer: development and validation of a clinical prediction rule British Journal of General Practice 61(586): pp e205-e214
  3. Kim G Bahl M 2021 Assessing risk of breast cancer: a review of risk prediction models Journal of breast imaging 3(2): pp 144-155
  4. Nichols S Waters W E Wheeler M J 1980 Management of female breast disease by Southampton general practitioners Br Med J 281(6253): pp 1450-1453
  5. Newton P Hannay D R Laver R 1999 The presentation and management of female breast symptoms in general practice in Sheffield Family Practice 16(4): pp 360-365
  6. Roberts M M Elton R A Robinson S E et al 1987 Consultations for breast disease in general practice and hospital referral patterns British Journal of Surgery 74(11): pp 1020-1022
  7. Edwards A G Robling M R Wilkinson C E et al 1999 The presentation and management of breast symptoms in general practice in South Wales The BRIDGE Study Group British Journal of General Practice 49(447): pp 811-812
  8. Samers J M Galetakis S Scott C J et al 2004 Breast cancer management: the perspective of general practitioners in inner and eastern Melbourne The Breast 13(6): pp 468-475
  9. Fatima N Liu L Hong S et al 2020 Prediction of breast cancer, comparative review of machine learning techniques, and their analysis IEEE Access 8: pp 150360-150376
  10. Islam M M Haque M R Iqbal H et al 2020 Breast cancer prediction: a comparative study using machine learning techniques SN Computer Science 1: pp 1-14
  11. Dataset https://www.kaggle.com/datasets/yasserh/breast-cancer-dataset