An implantable cardioverter-defibrillator (ICD) is a device that must detect VT and VF arrhythmias on time and treat them. In this project, three CNN networks are designed to introduce the practical methods of using deep learning in heart electrophysiology signals processing. This project presents two speedy intelligent detection methods of ventricular fibrillation and ventricular tachycardia arrhythmias for ICD devices. It also provides another quick, innovative diagnosis method for use in intelligent electrocardiograph devices to detect abnormal cardiac signals. The first network is 1D-CNN for smart electrocardiographic devices to detect abnormal ECG signals. Dataset MIT-BIH has been used to train this network. This network with the most optimal number of parameters due to high detection speed has a high accuracy of 91%. The second and third networks are 2D-CNNs for use in implantable defibrillators. For the second network, a data set of 20 patients with cardiac arrhythmia and 20 patients without cardiac arrhythmia in an 8-month period of ICD check-up has been prepared. The third network is trained using the Spontaneous Ventricular Tachyarrhythmia Database. The second and third networks are designed to detect EGM signals in VF and VT modes with the optimal number of parameters and 100% accuracy in the second network and 90% in the third network. All three designed networks are in an optimal condition regarding the number of parameters and layers, so they have optimal speed and energy consumption.