Skip to main content

Smartphone-Based Heart Attack Prediction Using Artificial Neural Network

  • Conference paper
  • First Online:
Proceedings of International Joint Conference on Advances in Computational Intelligence


Heart attack is among a few of the deadly diseases that cause the death of thousands of people each year globally. It is possible to minimize morbidity and mortality by early screening for those who are at high risk of getting acute myocardial infarction (AMI), known as a heart attack. Android software was implemented to anticipate the risk of getting a heart attack to walk of sudden death. We conducted a survey and collected clinical data from 835 patients that have been analyzed and correlated with 14 risk factors. To predict the heart attack, we used the neural network technology to learn from the clinical data and make predictions. We chose Nesterov-accelerated adaptive moment estimation (Nadam) as an optimizer and categorical cross-entropy as loss function as it fit the best for our neural network model for the best prediction performance. We were able to train our model to predict AMI with 91% accurately. Then, we evaluated our model performance by computing sensitivity (i.e., 81%), specificity (i.e., 98%), precision (i.e., 96%), and F1-score is (i.e., 88%). This trained model was used to implement android software. A user has to answer 14 questions, and based on these answers, the software will predict if the user has a chance to get AMI. This software is free to use, and anyone can use it. The main goal of our research is to implement a simple system to track AMI on a daily basis to lead a healthy life and to avoid sudden deaths.

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

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
USD 169.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 219.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 219.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others


  1. Cardiovascular diseases (CVDs), WHO (2020) (Online). Available: Accessed: 19- Jan- 2020

  2. Coronary heart disease in Bangladesh, World life expectancy (2020) (Online). Available: Accessed 19 Jan 2020

  3. Sonawane JS, Patil DR (2014) Prediction of heart disease using learning vector quantization algorithm. In: 2014 conference on IT in business, industry and government (CSIBIG), Indore, pp 1-5.

  4. Srinivas K, Rao GR, Govardhan A (2010) Analysis of coronary heart disease and prediction of heart attack in coal mining regions using data mining techniques. In: 2010 5th international conference on computer science and education, Hefei, pp 1344–1349.

  5. Raihan M, Mondal S, More A, Boni P, Sagor M (2017) Smartphone based heart attack risk prediction system with statistical analysis and data mining approaches. Adv Sci Technol Eng Syst J 2(3):1815–1822

    Article  Google Scholar 

  6. Raihan M, Mandal PK, Islam M, Hossain T, Ghosh P, Shaj S, Anik A, Chowdhury M, Mondal S, More A (2019) Risk Prediction of ischemic heart disease using artificial neural network. In: 2019 international conference on electrical, computer and communication engineering (ECCE), Cox’sBazar, Bangladesh, pp 1–5.

  7. Raihan M, Islam M, Ghosh P, Shaj S, Chowdhury M, Mondal S, More A (2018) A comprehensive Analysis on risk prediction of acute coronary syndrome using machine learning approaches. In: 21st international conference of computer and information technology (ICCIT). Dhaka, Bangladesh, pp 1–6.

  8. More K, Raihan M, More A, Padule S, Mondal S (2018) Smart phone based heart attack risk prediction; innovation of clinical and social approach for preventive cardiac health. J Hypertension 36:e321

    Article  Google Scholar 

  9. Chen AH, Huang SY, Hong PS, Cheng CH, Lin EJ (2011) HDPS: heart disease prediction system. In: Computing in cardiology. Hangzhou, pp 557–560

    Google Scholar 

  10. What is a multilayer perceptron (MLP)?—definition from techopedia, Techopedia (2020) Online. Available: Accessed 27 Jan 2020

  11. An overview of gradient descent optimization algorithms, Sebastian Ruder (2020) Online. Available: Accessed 28 Jan 2020

Download references


We would like to acknowledge Rural Health Progress Trust (RHPT), Murud, Latur, India, AFC Fortis Escorts Heart Institute, Khulna, Bangladesh and Computer Science and Engineering Discipline, Khulna University, Khulna, Bangladesh for giving us their valuable information and clinical support in collecting the data.

Author information

Authors and Affiliations


Corresponding author

Correspondence to M. Raihan .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Raihan, M., Nazmos Sakib, M., Nizam Uddin, S., Arin Islam Omio, M., Mondal, S., More, A. (2021). Smartphone-Based Heart Attack Prediction Using Artificial Neural Network. In: Uddin, M.S., Bansal, J.C. (eds) Proceedings of International Joint Conference on Advances in Computational Intelligence. Algorithms for Intelligent Systems. Springer, Singapore.

Download citation

Publish with us

Policies and ethics