Detection of atrial fibrillation involves detecting a plurality of ventricular events and obtaining a series of probabilities of AF, each corresponding to a probability of AF for a different beat window having a plurality of ventricular events. AF onset is detected when one or each of a plurality of consecutive AF probabilities satisfies an AF trigger threshold. AF termination is detected when one or each of a plurality of consecutive AF probabilities does not satisfy the AF trigger threshold. Upon detection of AF onset, ventricular events are processed to detect for a sudden onset of irregularity of the ventricular events. AF onset is confirmed when sudden onset is detected and overturned when sudden onset is not detected.