Myocardial infarction is a serious medical condition that requires prompt and accurate diagnosis for effective treatment. In this paper, we present a novel approach for detecting and classifying MI in echocardiogram frames using an enhanced CNN algorithm and ECV-3D network. The proposed method aims to improve the accuracy and efficiency of MI diagnosis by leveraging advanced deep learning techniques. Through extensive experimentation, we demonstrate the effectiveness of our approach in achieving high accuracy and robustness in MI detection and classification. The results indicate the potential of our method to aid in the early and precise diagnosis of MI, thereby contributing to improved patient outcomes and clinical decision-making. After conducting thorough experimentation, our proposed approach has achieved an impressive accuracy of 97.05% in the detection and classification of myocardial infarction in echocardiogram frames. This accomplishment showcases the robustness and reliability of our method, indicating its potential to significantly impact the accurate diagnosis of MI and subsequently improve patient outcomes. Furthermore, the area under the curve attained by our model is 0.82%, reaffirming the efficacy of the enhanced CNN algorithm and ECV-3D network in accurately detecting and classifying MI.It is noteworthy that all the parameters utilized in our approach have demonstrated a high level of accuracy, emphasizing the effectiveness of our deep learning techniques in enhancing the diagnostic process for MI. Moreover, the proposed method is capable of efficiently processing large volumes of echocardiogram frames, making it suitable for real-time clinical applications.