# AI-Based Prediction of Myocardial Infarction Risk as an Element of Preventive Medicine
## 2 Materials and Methods
### Material
\begin{table}
\begin{tabular}{l l l} \hline \hline
**No.** & **Feature Name** & **Description** \\ \hline
1. & age & Age in years \\ \hline
2. & sex & 1 = male \\  & & 0 = female \\ \hline  & & Chest pain type: \\  & & \(\bullet\) 0: Typical angina: chest pain related decrease blood supply to the heart \\
3. & cp & \(\bullet\) 1: atypical angina: chest pain not related to heart \\  & & \(\bullet\) 2: non-anginal pain: typically, oesophageal \\  & & spasms (non-heart related) \\  & & \(\bullet\) 3: Asymptomatic: chest pain not showing signs of disease \\ \hline
4. & trestbps &
\begin{tabular}{l} Resting blood pressure (in mm Hg on admission to the hospital) \\ \(\bullet\) \\ \end{tabular} \\ \hline
5. & chol &
\begin{tabular}{l} Serum cholesterol in mg/dl \\ \(\bullet\) \\ \end{tabular} \\  & & \(\bullet\) serum = LDL + HDL + 0.2 * triglycerides \\  & & \(\bullet\) above 200 is cause for concern \\ \hline
6. & fbs &
\begin{tabular}{l} Fasting blood sugar \(>\) 120 mg/dl (1 = true; 0 = false) \\ \(\bullet\) \\ \end{tabular} \\ \hline
7. & restecg &
\begin{tabular}{l} Resting electrocardiographic results \\ \(\bullet\) \\ \end{tabular} \\  & & \(\bullet\) 0: Nothing to note \\
4. & 1: ST-T Wave abnormality—can range from mild symptoms to \\  & & \(\bullet\) severe problems–signals non-normal heartbeat \\  & & \(\bullet\) 2: Possible or definite left ventricular hypertrophy–Enlarged \\  & & heart’s main pumping chamber \\ \hline
8. & thalach & Maximum heart rate achieved \\ \hline
9. & exang & Exercise induced angina (1 = yes; 0 = no) \\ \hline
10. & oldpeak & \begin{tabular}{l} ST depression induced by exercise relative to rest \\ \(\bullet\) \\ \end{tabular} \\  & & \
\begin{tabular}{l} ST depression induced by exercise relative to rest \\ \(\bullet\) \\ \end{tabular} \\  & &
\begin{tabular}{l} looks at stress of heart during exercise \\ \(\bullet\) \\ \end{tabular} \\ \hline
11. & slope & \begin{tabular}{l} The slope of the peak exercise ST segment \\ \(\bullet\) \\ \end{tabular} \\  & & \begin{tabular}{l} \(\bullet\) 0: Upsoloping: better heart rate with exercise (uncommon) \\ \(\bullet\) \\ \end{tabular} \\  & & \
\begin{tabular}{l} \(\bullet\) 1: Flat sloping: minimal change (typical healthy heart) \\ \(\bullet\) \\ \end{tabular} \\  & &
\begin{tabular}{l} \(\bullet\) 2: Down sloping: signs of unhealthy heart \\ \end{tabular} \\ \hline
12. & ca & \begin{tabular}{l} Number of major vessels (0–3) coloured in fluoroscopy \\ \(\bullet\) \\ \end{tabular} \\  & & \
\begin{tabular}{l} \(\bullet\) coloured vessel means the doctor can see the blood \\ passing through \\ \(\bullet\) \\ \end{tabular} \\  & &
\begin{tabular}{l} \(\bullet\) the more blood movement the better (no clots) \\ \end{tabular} \\ \hline
13. & thal & \begin{tabular}{l} Thallium stress result \\ \(\bullet\) \\ \end{tabular} \\  & & \begin{tabular}{l} \(\bullet\) 1, 3: normal \\ \(\bullet\) \\ \end{tabular} \\  & & \
\begin{tabular}{l} \(\bullet\) 6: fixed defect: used to be defect but ok now \\ \(\bullet\) \\ \end{tabular} \\  & &
\begin{tabular}{l} \(\bullet\) 7: reversable defect: no proper blood movement when exercising \\ \end{tabular} \\ \hline
14. & target & Have disease or not (1 = yes, 0 = no) (= the predicted attribute) \\ \hline \hline \end{tabular}  
* in feature no. 4 means multiplication sign  
\end{table} 
Table 1: Features of the study group. Analysis showed a normal distribution but skewing to the right. This was checked using the Shapiro-Wilk test.