Skip to main content

Advertisement

Log in

Development of framework by combining CNN with KNN to detect Alzheimer’s disease using MRI images

  • Track 2: Medical Applications of Multimedia
  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Alzheimer’s disease (AD) is an irremediable, irrecoverable brain illness without proper treatment. Therefore, AD recognition is essential for precluding and dominating its advancement. The conventional method considers the patient history, MRI, and empirical tests to detect AD. This method is effective, but it lacks accuracy. The primary objective is to create an efficient framework for timely AD identification from MRI images. This work combines a Convolutional Neural Network (CNN) with the K-nearest neighbor (KNN) to detect AD from 6400 MRI images. The dataset consists of four types of AD MRI images such as Moderate Demented (MOD), Mild Demented (MID), Very Mild Demented (VMD), and Non-Demented (ND). The dataset was split into training (80%) and validation (20%) sets. The CNN was utilized to extract the informative features automatically from the MRI dataset images, and these extracted features are used to train and validate the KNN model. The CNN-KNN framework is accessed utilising the Receiver Operating Characteristic (ROC) curve, stratified K-fold, Cohen’s Matthews Correlation Coefficient (MCC) and Kappa Coefficient (CKC). This method achieved average 99.58% accuracy, 99.63% precision, 99.31% recall, 99.43% F1-score, 99.31% MCC, and 0.9931 CKC. Furthermore, three deep CNNs (DCNNs), ResNet50, VGG16, and MobileNetV2, were employed to detect AD and compare their performance with CNN-KNN. The proposed CNN-KNN method’s performance has significantly improved compared to the DCNN and literature.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

Data availability

https://www.kaggle.com/datasets/tourist55/alzheimers-dataset-4-class-of-images

References

  1. Al-Rakhami MS, Islam MdM, Islam MdZ, et al (2020) Diagnosis of COVID-19 from X-rays Using Combined CNN-RNN Architecture with Transfer Learning. Health Informatics. https://doi.org/10.1101/2020.08.24.20181339

  2. Al-Shoukry S, Rassem TH, Makbol NM (2020) Alzheimer’s diseases detection by using deep learning algorithms: a Mini-review. IEEE Access 8:77131–77141. https://doi.org/10.1109/ACCESS.2020.2989396

    Article  Google Scholar 

  3. Alzheimer’s Association (2019) 2019 Alzheimer’s disease facts and figures. Alzheimers Dement 15:321–387. https://doi.org/10.1016/j.jalz.2019.01.010

    Article  Google Scholar 

  4. Alzheimer’s Dataset (4 class of Images). (n.d.) https://www.kaggle.com/datasets/tourist55/alzheimers-dataset-4-class-of-images. Accessed 6 Aug 2022

  5. Arafa DA, Moustafa HE-D, Ali-Eldin AMT, Ali HA (2022) Early detection of Alzheimer’s disease based on the state-of-the-art deep learning approach: a comprehensive survey. Multimed Tools Appl 81:23735–23776. https://doi.org/10.1007/s11042-022-11925-0

    Article  Google Scholar 

  6. Arco JE, Ramírez J, Górriz JM, Ruz M (2021) Data fusion based on searchlight analysis for the prediction of Alzheimer’s disease. Expert Syst Appl 185:115549. https://doi.org/10.1016/j.eswa.2021.115549

    Article  Google Scholar 

  7. Asraf A, Islam MZ, Haque MR, Islam MM (2020) Deep learning applications to combat novel coronavirus (COVID-19) pandemic. SN Comput Sci 1:363. https://doi.org/10.1007/s42979-020-00383-w

    Article  Google Scholar 

  8. Ayon SI, Islam MM, Hossain MR (2020) Coronary artery heart disease prediction: a comparative study of computational intelligence techniques. IETE J Res:1–20. https://doi.org/10.1080/03772063.2020.1713916

  9. Baik R (2019) Class imbalance learning–driven Alzheimer’s detection using hybrid features. Int J Distrib Sens Netw 15:155014771982604. https://doi.org/10.1177/1550147719826048

    Article  Google Scholar 

  10. Bi X, Li S, Xiao B, Li Y, Wang G, Ma X (2020) Computer aided Alzheimer’s disease diagnosis by an unsupervised deep learning technology. Neurocomputing 392:296–304. https://doi.org/10.1016/j.neucom.2018.11.111

    Article  Google Scholar 

  11. Bron EE, Smits M, van der Flier WM, Vrenken H, Barkhof F, Scheltens P, Papma JM, Steketee RM, Méndez Orellana C, Meijboom R, Pinto M, Meireles JR, Garrett C, Bastos-Leite AJ, Abdulkadir A, Ronneberger O, Amoroso N, Bellotti R, Cárdenas-Peña D, … Alzheimer's Disease Neuroimaging Initiative (2015) Standardized evaluation of algorithms for computer-aided diagnosis of dementia based on structural MRI: the CADDementia challenge. NeuroImage 111:562–579. https://doi.org/10.1016/j.neuroimage.2015.01.048

    Article  Google Scholar 

  12. Department of Computer Science and Engineering, Khulna University of Engineering & Technology, Khulna-9203, Bangladesh, Islam Ayon S, Milon Islam M (2019) Diabetes prediction: a deep learning approach. IJIEEB 11:21–27. https://doi.org/10.5815/ijieeb.2019.02.03

    Article  Google Scholar 

  13. Feng J, Zhang S-W, Chen L, Xia J (2021) Alzheimer’s disease classification using features extracted from nonsubsampled contourlet subband-based individual networks. Neurocomputing 421:260–272. https://doi.org/10.1016/j.neucom.2020.09.012

    Article  Google Scholar 

  14. Gao S, Lima D (2022) A review of the application of deep learning in the detection of Alzheimer’s disease. Int J Cogn Comput Eng 3:1–8. https://doi.org/10.1016/j.ijcce.2021.12.002

    Article  Google Scholar 

  15. Goenka N, Tiwari S (2022) AlzVNet: a volumetric convolutional neural network for multiclass classification of Alzheimer’s disease through multiple neuroimaging computational approaches. Biomed Signal Process Control 74:103500. https://doi.org/10.1016/j.bspc.2022.103500

    Article  Google Scholar 

  16. Grandini M, Bagli E, Visani G (2020) Metrics for multi-class classification: an overview. https://doi.org/10.48550/ARXIV.2008.05756

  17. Gunawardena KANNP, Rajapakse RN, Kodikara ND (2017) Applying convolutional neural networks for pre-detection of alzheimer’s disease from structural MRI data. In: 2017 24th international conference on mechatronics and machine vision in practice (M2VIP). IEEE, Auckland, pp. 1–7

  18. Haque MdR, Islam MdM, Iqbal H et al (2018) Performance evaluation of random forests and artificial neural networks for the classification of liver disorder. In: 2018 international conference on computer, communication, chemical, material and electronic engineering (IC4ME2). IEEE, Rajshahi, pp. 1–5

  19. Hasan MdK, Islam MdM, Hashem MMA (2016) Mathematical model development to detect breast cancer using multigene genetic programming. In: 2016 5th international conference on informatics, electronics and vision (ICIEV). IEEE, Dhaka, Bangladesh, pp. 574–579

  20. Helaly HA, Badawy M, Haikal AY (2021) Deep learning approach for early detection of Alzheimer’s disease. Cogn Comput 14:1711–1727. https://doi.org/10.1007/s12559-021-09946-2

    Article  Google Scholar 

  21. Islam J, Zhang Y (2017) A novel deep learning based multi-class classification method for Alzheimer’s disease detection using brain MRI data. In: Zeng Y, He Y, Kotaleski JH et al (eds) Brain informatics. Springer International Publishing, Cham, pp 213–222

    Chapter  Google Scholar 

  22. Islam MdM, Iqbal H, Haque MdR, Hasan MdK (2017) Prediction of breast cancer using support vector machine and K-Nearest neighbors. In: 2017 IEEE region 10 humanitarian technology conference (R10-HTC). IEEE, Dhaka, pp. 226–229

  23. Islam MM, Haque MR, Iqbal H, Hasan MM, Hasan M, Kabir MN (2020) Breast Cancer prediction: a comparative study using machine learning techniques. SN Comput Sci 1:290. https://doi.org/10.1007/s42979-020-00305-w

    Article  Google Scholar 

  24. Islam MZ, Islam MM, Asraf A (2020) A combined deep CNN-LSTM network for the detection of novel coronavirus (COVID-19) using X-ray images. Inform Med Unlocked 20:100412. https://doi.org/10.1016/j.imu.2020.100412

    Article  Google Scholar 

  25. Islam MM, Karray F, Alhajj R, Zeng J (2021) A review on deep learning techniques for the diagnosis of novel coronavirus (COVID-19). IEEE Access 9:30551–30572. https://doi.org/10.1109/ACCESS.2021.3058537

    Article  Google Scholar 

  26. Jain R, Jain N, Aggarwal A, Hemanth DJ (2019) Convolutional neural network based Alzheimer’s disease classification from magnetic resonance brain images. Cogn Syst Res 57:147–159. https://doi.org/10.1016/j.cogsys.2018.12.015

    Article  Google Scholar 

  27. Jie B, Liu M, Shen D (2018) Integration of temporal and spatial properties of dynamic connectivity networks for automatic diagnosis of brain disease. Med Image Anal 47:81–94. https://doi.org/10.1016/j.media.2018.03.013

    Article  Google Scholar 

  28. Khvostikov A, Aderghal K, Krylov A et al (2018) 3D inception-based CNN with sMRI and MD-DTI data fusion for Alzheimer’s disease diagnostics. https://doi.org/10.48550/ARXIV.1809.03972

  29. KNN Algorithm - Finding Nearest Neighbors. https://www.tutorialspoint.com/machine_learning_with_python/machine_learning_with_python_knn_algorithm_finding_nearest_neighbors.htm. Accessed 6 Aug 2022

  30. Kong Z, Zhang M, Zhu W, Yi Y, Wang T, Zhang B (2022) Multi-modal data Alzheimer’s disease detection based on 3D convolution. Biomed Signal Process Control 75:103565. https://doi.org/10.1016/j.bspc.2022.103565

    Article  Google Scholar 

  31. Kruthika KR, Rajeswari, Maheshappa HD (2019) Multistage classifier-based approach for Alzheimer’s disease prediction and retrieval. Informatics in Medicine Unlocked 14:34–42. https://doi.org/10.1016/j.imu.2018.12.003

  32. Lanjewar MG, Gurav OL (2022) Convolutional neural networks based classifications of soil images. Multimed Tools Appl 81:10313–10336. https://doi.org/10.1007/s11042-022-12200-y

    Article  Google Scholar 

  33. Lanjewar MG, Morajkar PP, Parab J (2022) Detection of tartrazine colored rice flour adulteration in turmeric from multi-spectral images on smartphone using convolutional neural network deployed on PaaS cloud. Multimed Tools Appl 81:16537–16562. https://doi.org/10.1007/s11042-022-12392-3

    Article  Google Scholar 

  34. Lanjewar MG, Parate RK, Parab JS (2022) Machine learning approach with data normalization technique for early stage detection of hypothyroidism. In: Artificial Intelligence Applications for Health Care. CRC Press

    Google Scholar 

  35. Lin W, Tong T, Gao Q, Guo D, Du X, Yang Y, Guo G, Xiao M, Du M, Qu X, The Alzheimer’s Disease Neuroimaging Initiative (2018) Convolutional neural networks-based MRI image analysis for the Alzheimer’s disease prediction from mild cognitive impairment. Front Neurosci 12:777. https://doi.org/10.3389/fnins.2018.00777

    Article  Google Scholar 

  36. Liu L, Zhao S, Chen H, Wang A (2020) A new machine learning method for identifying Alzheimer’s disease. Simul Model Pract Theory 99:102023. https://doi.org/10.1016/j.simpat.2019.102023

    Article  Google Scholar 

  37. Liu J, Li M, Luo Y, Yang S, Li W, Bi Y (2021) Alzheimer’s disease detection using depthwise separable convolutional neural networks. Comput Methods Prog Biomed 203:106032. https://doi.org/10.1016/j.cmpb.2021.106032

    Article  Google Scholar 

  38. McHugh ML (2012) Interrater reliability: the kappa statistic. Biochem Med:276–282. https://doi.org/10.11613/BM.2012.031

  39. MobileNetV2: The Next Generation of On-Device Computer Vision Networks. In: Google AI Blog. (n.d.) http://ai.googleblog.com/2018/04/mobilenetv2-next-generation-of-on.html. Accessed 6 Aug 2022

  40. Mueller SG, Weiner MW, Thal LJ, Petersen RC, Jack CR, Jagust W, Trojanowski JQ, Toga AW, Beckett L (2005) Ways toward an early diagnosis in Alzheimer’s disease: the Alzheimer’s Disease Neuroimaging Initiative (ADNI). Alzheimers Dement 1:55–66. https://doi.org/10.1016/j.jalz.2005.06.003

    Article  Google Scholar 

  41. Muhammad LJ, Islam MdM, Usman SS, Ayon SI (2020) Predictive Data Mining Models for Novel Coronavirus (COVID-19) Infected Patients’ Recovery. SN COMPUT SCI 1:206. https://doi.org/10.1007/s42979-020-00216-w

  42. Muhammed Raees PC, Thomas V (1921) Automated detection of Alzheimer’s disease using deep learning in MRI. J Phys Conf Ser 2021:012024. https://doi.org/10.1088/1742-6596/1921/1/012024

    Article  Google Scholar 

  43. Nawaz A, Anwar SM, Liaqat R et al (2021) Deep convolutional neural network based classification of Alzheimer’s disease using MRI data. https://doi.org/10.48550/ARXIV.2101.02876

  44. Noor MBT, Zenia NZ, Kaiser MS, Mamun SA, Mahmud M (2020) Application of deep learning in detecting neurological disorders from magnetic resonance images: a survey on the detection of Alzheimer’s disease, Parkinson’s disease and schizophrenia. Brain Inf 7:11. https://doi.org/10.1186/s40708-020-00112-2

    Article  Google Scholar 

  45. Nozadi SH, Kadoury S, The Alzheimer’s Disease Neuroimaging Initiative (2018) Classification of Alzheimer’s and MCI patients from semantically Parcelled PET images: a comparison between AV45 and FDG-PET. Int J Biomed Imaging 2018:1–13. https://doi.org/10.1155/2018/1247430

    Article  Google Scholar 

  46. Odusami M, Maskeliūnas R, Damaševičius R, Krilavičius T (2021) Analysis of features of Alzheimer’s disease: detection of early stage from functional brain changes in magnetic resonance images using a Finetuned ResNet18 network. Diagnostics 11:1071. https://doi.org/10.3390/diagnostics11061071

    Article  Google Scholar 

  47. Pan D, Zeng A, Jia L, Huang Y, Frizzell T, Song X (2020) Early detection of Alzheimer’s disease using magnetic resonance imaging: a novel approach combining convolutional neural networks and ensemble learning. Front Neurosci 14:259. https://doi.org/10.3389/fnins.2020.00259

    Article  Google Scholar 

  48. Parmar H, Nutter B, Long R et al (2020) Spatiotemporal feature extraction and classification of Alzheimer’s disease using deep learning 3D-CNN for fMRI data. J Med Imag 7. https://doi.org/10.1117/1.JMI.7.5.056001

  49. Poloni KM, Ferrari RJ (2022) A deep ensemble hippocampal CNN model for brain age estimation applied to Alzheimer’s diagnosis. Expert Syst Appl 195:116622. https://doi.org/10.1016/j.eswa.2022.116622

    Article  Google Scholar 

  50. Poloni KM, Duarte de Oliveira IA, Tam R, Ferrari RJ (2021) Brain MR image classification for Alzheimer’s disease diagnosis using structural hippocampal asymmetrical attributes from directional 3-D log-Gabor filter responses. Neurocomputing 419:126–135. https://doi.org/10.1016/j.neucom.2020.07.102

    Article  Google Scholar 

  51. Prince M, Bryce R, Albanese E et al (2013) The global prevalence of dementia: a systematic review and metaanalysis. Alzheimers Dement 9:63. https://doi.org/10.1016/j.jalz.2012.11.007

    Article  Google Scholar 

  52. Pulido MLB, Hernández JBA, Ballester MÁF, González CMT, Mekyska J, Smékal Z (2020) Alzheimer’s disease and automatic speech analysis: a review. Expert Syst Appl 150:113213. https://doi.org/10.1016/j.eswa.2020.113213

    Article  Google Scholar 

  53. Qiu S, Joshi PS, Miller MI, et al (2020) Development and validation of an interpretable deep learning framework for Alzheimer’s disease classification. Brain 143:1920–1933. https://doi.org/10.1093/brain/awaa137

  54. Rahman MM, Islam MdM, Manik MdMH, et al (2021) Machine Learning Approaches for Tackling Novel Coronavirus (COVID-19) Pandemic. SN COMPUT SCI 2:384. https://doi.org/10.1007/s42979-021-00774-7

  55. Rallabandi VPS, Tulpule K, Gattu M (2020) Automatic classification of cognitively normal, mild cognitive impairment and Alzheimer’s disease using structural MRI analysis. Informatics in Medicine Unlocked 18:100305. https://doi.org/10.1016/j.imu.2020.100305

  56. Saha P, Sadi MS, Islam MM (2021) EMCNet: automated COVID-19 diagnosis from X-ray images using convolutional neural network and ensemble of machine learning classifiers. Inform Med Unlocked 22:100505. https://doi.org/10.1016/j.imu.2020.100505

    Article  Google Scholar 

  57. Sarraf S, Tofighi G (2016) Classification of Alzheimer’s Disease Structural MRI Data by Deep Learning Convolutional Neural Networks. https://doi.org/10.48550/ARXIV.1607.06583

  58. Scheltens P, Blennow K, Breteler MMB, et al (2016) Alzheimer’s disease. The Lancet 388:505–517. https://doi.org/10.1016/S0140-6736(15)01124-1

  59. Spasov SE, Passamonti L, Duggento A et al (2018) A multi-modal convolutional neural network framework for the prediction of Alzheimer’s disease. In: 2018 40th annual international conference of the IEEE engineering in medicine and biology society (EMBC). IEEE, Honolulu, HI, pp. 1271–1274

  60. Thakur R (2020) Step by step VGG16 implementation in Keras for beginners. In: Medium. https://towardsdatascience.com/step-by-step-vgg16-implementation-in-keras-for-beginners-a833c686ae6c. Accessed 19 Sep 2022

  61. Understanding Deep Convolutional Neural Networks. (n.d.) https://www.run.ai/guides/deep-learning-for-computer-vision/deep-convolutional-neural-networks. Accessed 6 Aug 2022

  62. Vaithinathan K, Parthiban L (2019) A novel texture extraction technique with T1 weighted MRI for the classification of Alzheimer’s disease. J Neurosci Methods 318:84–99. https://doi.org/10.1016/j.jneumeth.2019.01.011

    Article  Google Scholar 

  63. Vemuri P, Jones DT, Jack CR (2012) Resting state functional MRI in Alzheimer’s disease. Alz Res Therapy 4:2. https://doi.org/10.1186/alzrt100

    Article  Google Scholar 

  64. Voulodimos A, Doulamis N, Doulamis A, Protopapadakis E (2018) Deep learning for computer vision: a brief review. Comput Intell Neurosci 2018:1–13. https://doi.org/10.1155/2018/7068349

    Article  Google Scholar 

  65. Wang S-H, Phillips P, Sui Y, Liu B, Yang M, Cheng H (2018) Classification of Alzheimer’s disease based on eight-layer convolutional neural network with leaky rectified linear unit and max pooling. J Med Syst 42:85. https://doi.org/10.1007/s10916-018-0932-7

    Article  Google Scholar 

Download references

Funding

The authors declare that no funds, grants, or other support were received during the preparation of this manuscript.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Madhusudan G Lanjewar.

Ethics declarations

Competing interests

The authors have no relevant financial or non-financial interests to disclose.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Lanjewar, M.G., Parab, J.S. & Shaikh, A.Y. Development of framework by combining CNN with KNN to detect Alzheimer’s disease using MRI images. Multimed Tools Appl 82, 12699–12717 (2023). https://doi.org/10.1007/s11042-022-13935-4

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-022-13935-4

Keywords

Navigation