The electrocardiogram (ECG) is a medical examination method used to record the electrical activity of the heart and plays an important role in detecting cardiac abnormalities such as atrial fibrillation. An ECG signal is considered good when the P wave, QRS complex, and T wave patterns are clearly visible and free from noise contamination. Noise is an unwanted interference signal that contamina…