MIT CSAIL AI detects antidepressant use from sleep breathing
In short
- MIT CSAIL has built an AI model that tells whether someone took an antidepressant from one night of breathing, recorded by a bedroom sensor or a wearable. Given one night with a drug and one without, it picks the drug night about 84 percent of the time (AUROC 0.84), and 87 percent on a dataset it never trained on.
- The Computer Science and Artificial Intelligence Laboratory (CSAIL) at MIT, in Prof. Dina Katabi's group, trained it on 62,606 nights from 20,013 people, 1,842 of them taking antidepressants. The results come from the authors' own retrospective analysis, published in Nature Biomedical Engineering on 1 December 2026.
- It is a research result, not a clinical test. The medication records were largely self-reported, the authors say a prospective study is needed, and the code is available only to academics under a non-commercial agreement.
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:
- A transformer model is trained on recordings that hold both breathing and EEG, and learns to reconstruct EEG-like patterns from breathing alone.
- A second component then uses what the first learned to classify whether the person took an antidepressant.
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:
- Retrospective. It used existing sleep data. Lead author Ali Mirzazadeh says a causal claim "needs a prospective study", meaning one that follows people forward.
- Mostly self-reported labels. The datasets were not built for depression or antidepressants; labels come from medication records. Trazodone was excluded.
- Consent and misuse. Because it infers sensitive health information, CSAIL says it should be used only with explicit informed consent, as a prompt for a conversation with a doctor or pharmacist, with safeguards against misuse.
- Not ready. Roy Perlis of Massachusetts General Hospital, who was not involved, says it is "not ready for real-world application" but shows promise.
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
- AI can tell whether someone is taking an antidepressant from thin air, MIT CSAIL, 1 December 2026
- Non-invasive AI biomarker for detecting antidepressant exposure and supporting remote adherence monitoring, Nature Biomedical Engineering, 1 December 2026
Sources
- AI can tell whether someone is taking an antidepressant from thin air
- Non-invasive AI biomarker for detecting antidepressant exposure and supporting remote adherence monitoring
Related stories
- OHSU near-infrared dye lights up cranial nerves in mice and rats
- MIT CSAIL's CLEF model reads diseases and drugs from one EEG
- Melatonin starts a sleep brain rhythm in awake bearded dragons
- AI model for mammograms matches senior radiologists in a reader study
- AI model detects antidepressant use from one night of breathing
- MIT CSAIL's new fine-tuning method uses 23% less GPU memory than LoRA