MIT CSAIL AI detects antidepressant use from sleep breathing

In short

62,606 nights of sleep analysed; 20,013 people across six datasets (1,842 on antidepressants); 0.84 AUROC overall; 0.87 on the unseen Wisconsin dataset; 0.75 and 0.77 AUROC of expert sleep-feature baselines

Can AI tell if you take antidepressants from your sleep?

According to the study, yes, with limits. The model reads only the rise and fall of a sleeper's chest, and outputs a score between 0 and 1 for how likely it is that the person took an antidepressant. The CSAIL page says roughly half of people with major depression are no longer taking their medicine as prescribed within six months of starting it, and that spotting a lapse mostly depends on patients remembering and reporting it.

The idea is to make that check passive. A contactless sensor in the bedroom uses radio waves to track chest movement, so nobody has to log a pill, open an app or wear anything. The paper names the sensor it used, Emerald, and says a consumer wearable that captures breathing could feed the same model.

How does it work?

Antidepressants change sleep, including REM sleep and the brain's electrical activity, which is normally measured with an EEG through electrodes on the scalp. That is impractical to wear at home every night. So the team used a two-stage training, as the paper and CSAIL page describe:

After training, only breathing goes in. The paper calls the EEG reconstruction an "auxiliary task": it pushes the model to learn brain-related physiology that matters for the drugs' effects. (The wording of this explanation is ours.)

How accurate is it?

The headline figure is an AUROC of 0.84, averaged across datasets (0.84 ± 0.03). CSAIL's plain version: shown two nights, one with an antidepressant and one without, the model picks correctly about 84 percent of the time. That is not the same as being right 84 percent of the time on a single night, and the paper also reports a fixed-threshold sensitivity and specificity for some drugs.

The 20–30 group is small: it holds only 1.4 percent of the antidepressant users, so its range of uncertainty is wide.

Which antidepressants does it detect best?

It works best on the most prescribed classes. SSRIs such as sertraline and fluoxetine score about 0.90 to 0.93 per drug in the paper's text (CSAIL rounds this to "around 90 percent"). SNRIs do better still: venlafaxine 0.950, duloxetine 0.987, grouped 0.957 (CSAIL: "around 95 percent"). Older tricyclics are moderate (imipramine 0.814, nortriptyline 0.761), and the atypical drugs are weakest: mirtazapine 0.716 and bupropion 0.612.

The Fig. 3 legend in the paper gives class-level values of 0.86 for SSRIs and 0.96 for SNRIs, which differ from the per-drug figures in its text. We quote the per-drug numbers and CSAIL's rounded ones; the paper does not explain the gap on the pages we read.

Is it detecting the drug, or something else?

The authors checked several confounders. Scores stayed robust to hypnotics, anxiety medicines, anticholinergics, antipsychotics and anticonvulsants, and to sleep apnoea, body mass index and depression severity. Model scores rose with dose, lower at subtherapeutic doses and clearly higher at and above the standard dose, which the paper reads as a sign the model picks up a physical drug effect rather than the mere presence of a prescription. Scores for other psychiatric drugs did sit slightly above those of people taking no psychotropic drug, with antidepressants highest.

In the year-long home dataset from MIT, the model followed real events: a rise in score when someone started a drug, a gradual fall during a taper, and a rise and fall for inconsistent use. For one participant with detailed dosing records, CSAIL says about four consecutive nights of data were enough to reliably detect a dose change.

What is new, and what is the catch?

Today adherence is checked by asking, pill counts, refill records or smart bottles, which show that a pill was collected or a lid opened, not that it was taken. Blood tests and brain imaging confirm the drug but need clinic visits. This model measures a physical effect, at home, without effort from the patient.

The catches, as the authors state them:

Numbers that differ between the two sources

CSAIL's news page gives 20,552 people and "about 1,800" on antidepressants. The Nature paper gives 20,013 people and 1,842 users. We use the paper's figures. The wireless-sensor data is only one of the six datasets; the other five are sleep-clinic studies whose breathing came from chest belts. Competing interests: the paper's declaration says Dina Katabi is a cofounder and President of Emerald Innovations, Inc., and the Emerald sensor produced the wireless dataset.

Terms in plain English

Where things stand

CSAIL sees two near-term uses: an early signal to a psychiatrist that a patient may have stopped, and an objective check on who is taking a drug in clinical trials. A longer-term idea, helping judge how strongly a drug is acting so the right one is found sooner, would need further study. Nothing here has been tested prospectively.

Access: no weights are released. The paper says code "will be available for non-commercial academic purposes" under a formal use agreement, via ADAIM@csail.mit.edu. Public datasets are on the National Sleep Research Resource, and the MIT dataset is available case by case under a data use agreement. The work was supported by Panasonic, KACST and Wistron; the paper is open access under CC BY-NC-ND.

Official channels of MIT CSAIL: Website · LinkedIn · X · YouTube

Sources

Sources

Related stories

More from AI Research Labs

All stories from AI Research Labs