Real time AF detection is one of the main priority aspects of the proposed algorithm. Since the information contained in single beats is not sufficient to discriminate AF episodes, a sliding window analysis is used. A minimum of 12 beats per analysis window is established. For real time applications, the length of the present analysis window is estimated based on the heart rate frequency observed in the previous window. For offline operation, each window length is set according to the established number of beats. In each analysis window a set of five features is extracted,