A novel machine-learning algorithm to estimate the position and size of myocardial infarction for MRI sequence