Electrocardiogram profiling of myocardial infarction history using MLP and HMLP networks