In this work, we present a semiautomatic algorithm for ECG heartbeat classification, based on a previously developed automatic classifier and a clustering algorithm. Both classifier and clustering algorithms include features from the RR interval series and morphology descriptors calculated from the wavelet transform. Integrating the decisions of both algorithms, the presented algorithm can work automatically or with several degrees of assistance, depending the user expertise. The algorithm was evaluated in the MIT-BIH Arrhythmia database for comparison purposes. In the automatic mode, the algorithm obtained performance figures slightly higher than the original automatic algorithm; but with 5 manually annotated heartbeats in 22 recordings, an improvement of 5% in accuracy (A), global sensitivity (S) and global positive predictive value (P+) is achieved. For the full-assisted modes the algorithm achieved comparable performance with 55 times less annotation effort, and improved the performance with 42 times less effort. These results represent an improvement in the field of ECG heartbeats classification, concluding that the reference performance can be improved with an efficient use of the assistance provided to the algorithm.