In this paper, we propose to apply spatio-temporal filtering to atrial activity enhancement, prior to the detection of possible atrial arrhythmias. During normal sinus rhythm, the atrial activity is well synchronized with the ventricular one. The distances between ventricular QRS complexes and the preceding atrial P waves are approximately constant. However, during atrial arrhythmias such a synchronization does not exist. Although both atrial fibrillation (AF) and atrial flutter (AFL) are also characterized by irregularity of RR intervals, nevertheless it is this lack of atrioventricular synchronization and the associated irregularity of atrial activity (AA) that is the most straightforward symptom of atrial arrhythmias. In AFL episodes, the atrial activity tends to be more regular, whereas in AF it is almost completely unpredictable. Our objective is to enhance this activity to facilitate discrimination between the two arrhythmias.