Technological advances have allowed the development and availability of specialized tools for the use of historical data.In many of the times used for decision-making in institutions of a multidisciplinary nature and that require support for the development of their activities in particular the health sector. The purpose of this study is to make use of a machine learning algorithm to predict heart attacks using demographic and family health data.The methodology focused on the extraction of open data from the Demographic and Family Health Survey (ENDES) applied in 2021 in Peru, characterization and execution of machine learning techniques using Orange Data Mining software. In this first approach, the results show that the logistic regression model has an accuracy of 0.99%, on the prediction of heart attacks under the use of ENDES Peru 2021 data.For future studies, it is suggested to incorporate unstructured data such as text documents, sensor data, and images to strengthen the reliability of the model.