A method for diagnosis includes receiving from a sensor coupled to a body of a patient a photoplethysmograph signal, which is indicative of blood flow in the body. The photoplethysmograph signal is processed so as to identify at least one irregularity in a heart rhythm of the patient. A record indicating a time of occurrence of the at least one irregularity is made and processed so as to diagnose a pathological cardiac condition of the patient.