The present disclosure is directed to the classification of cardiac episodes using an algorithm. In various examples, an episode classification algorithm evaluates electrogram signal data using a probabilistic ventricular oversensing algorithm. The algorithm may look at a plurality of factors weighing for and against a determination of ventricular oversensing. In some examples, the algorithm may also determine whether the cardiac episode includes atrial sensing issues.