data. We compared the performance of our method with the methods of Berntson and Clifford on the same data. We identified 257,458 R-peak detections, of which 235,644 (91.5%) were true detections and 21,814 (8.5%) arose from artifacts. Our method showed superior performance for detecting artifacts with sensitivity 100%, specificity 99%, precision 99%, positive likelihood ratio of 100 and negative likelihood ratio <0.001 compared to Berntson's and Clifford's method with a sensitivity, specificity, precision and positive and negative likelihood ratio of 99%, 78%, 82%, 4.5, 0.013 for Berntson's method and 55%, 98%, 96%, 27.5, 0.460 for Clifford's method, respectively. A novel algorithm using a patient-independent threshold derived from the distribution of adRRI values in ICU ECG data identifies artifacts accurately, and outperforms two other methods in common use. Furthermore, the threshold was calculated based on real data from critically ill patients and the algorithm is easy to implement.