The document describes a thesis submitted for the degree of Bachelor of Technology in Electrical Engineering. The thesis aims to classify electrocardiogram (ECG) waveforms in real-time to diagnose cardiac diseases. It uses the discrete Daubechies wavelet transform to preprocess ECG signals and extract features. These features are then classified using a multilayer perceptron neural network. The classification model was implemented in SIMULINK software to simulate real-time detection and verify its performance. The thesis discusses ECG basics, wavelet transforms, neural networks, and presents results of signal decomposition, network training, and SIMULINK implementation.