A total of 31 psychiatric inpatients from the Department of Psychiatry, Psychosomatics, and Psychotherapy at the University of Wuerzburg, Wuerzburg, Germany, diagnosed (according to ICD-10 criteria [DSM-IV codes 296.xx]) with recurrent depressive disorder (category F33), depressive episodes (category F32), or bipolar affective disorder (category F31) on the basis of the consensus of 2 trained psychiatrists participated in the study. One patient was excluded owing to a panic attack during the measurement procedure, leaving 30 patients for further analysis. We explicitly recruited patients who were on a variety of medications and who, at the time of the measurement procedures, presented with varying degrees of depressive symptoms (from severe to almost symptom free). Accordingly, self-report scores in the German version of the Beck Depression Inventory–Second Edition33 ranged from 2 to 42 (mean [SD] score, 19.0 [9.4]). Choosing a well-diagnosed but heterogeneous group of patients with varying degrees of depressive symptoms while not excluding medicated patients should provide a more realistic estimate of the algorithm's potential utility. Exclusion criteria were age younger than 18 years or older than 60 years, comorbidity with other currently present axis I disorders, mental retardation or mood disorder secondary to substance abuse, medical conditions, and severe somatic or neurological diseases. Patients with a bipolar affective disorder were in a depressed phase or were recovering from a recent one; none showed manic symptoms. All patients were taking standard antidepressant medications, including selective serotonin reuptake inhibitors (n = 14), tricyclic antidepressants (n = 14), tetracyclic antidepressants (n = 8), or noradrenaline and serotonin selective inhibitors (n = 8). For a detailed description of the patients' medication, see the supplementary methods in the eAppendix.