A method for diagnosis includes receiving from a sensor coupled to a body of a sleeping patient a photoplethysmograph signal. The photoplethysmograph signal is processed independently of any other physiological measurements in order to identify sleep stages of the patient.