Automatic heart beats classification has attracted much interest for research recently and we are interested to determine the type of arrhythmia from electrocardiogram (ECG) signal automatically. This paper will discuss thoroughly about study and implementation of FLVQ-PSO, an extension from FLVQ algorithm which use MSA and PSO method, and FN-GLVQ, an extension from GLVQ algorithm which use fuzzy logic concept, to classify ECG signals. By using 10-Fold Cross Validation, the algorithm produced an average accuracy 84.02%, 98.25%, 99.00%, and 97.70%, respectively for FLVQ, FLVQ-PSO, GLVQ, and FN-GLVQ.