In Hong Kong, researchers set out to understand why most people abandon a chatbot-delivered therapy for insomnia before it can help them — and found that the mind's own burdens, particularly depression, are what most reliably predict the retreat. A study of 75 participants using a text-based cognitive behavioral program revealed that only one in five completed the full course, yet even partial engagement yielded measurable sleep improvement. The deeper question the work raises is an old one: how do we reach those who need help most when the very condition complicating their lives also makes it
Machine learning identifies depression as key barrier to chatbot-delivered insomnia therapy adherence
Depression drains the motivation required to show up every day
Why does depression specifically tank adherence to a sleep program? Wouldn't someone with depression want help even more?
You'd think so, but depression doesn't work that way. It's not about wanting help—it's about the energy and motivation required to show up every day. Depression flattens both. Even a simple task like opening an app and answering questions feels like climbing a wall. The chatbot can't overcome that neurochemical reality.
So the chatbot itself wasn't the problem. The problem was the person's mental state when they arrived.
Exactly. The chatbot was well-designed, interactive, responsive. But it couldn't compensate for someone who was already depleted. That's why the researchers suggest hybrid models—pairing the chatbot with actual human contact for people flagged as high-risk. A therapist checking in by phone or video might provide the external structure and accountability that depression strips away.
The finding about poor sleep driving next-day engagement is interesting. People used the chatbot more after bad nights. Does that mean the intervention was working?
Not necessarily in the way you'd hope. It suggests people were reaching for help when they were most desperate, which is good. But it also means engagement was reactive, driven by acute distress, not sustained by a sense of progress. That's fragile. Once sleep improved even slightly, they might disappear.
And the blue light thing—nighttime use didn't hurt sleep. That surprised me.
It surprised the researchers too. The conventional wisdom is that screens before bed are sleep poison. But this intervention was different—it was therapeutic, not stimulating. People weren't scrolling social media or watching videos. They were doing sleep restriction calculations and relaxation exercises. The content mattered more than the light.
Only 19 percent finished. That's brutal. Does that mean the chatbot failed?
It means digital interventions are hard. But here's the thing—even people who dropped out early showed improved sleep efficiency. So maybe completion isn't the only measure of success. Some people got what they needed and left. Others needed more support than a chatbot could provide. The real failure would be not knowing the difference.
Le Pouls
- Only 19% of participants finished the 28-day chatbot program, exposing a quiet crisis of attrition at the heart of automated mental health care.
- Depressive symptoms emerged as the single strongest predictor of dropout — the very people most burdened were the least able to persist.
- Counterintuitively, bad nights drove engagement: participants were more likely to reach for the chatbot the morning after poor sleep, not less.
- Machine learning models trained on baseline data showed real promise in flagging high-risk users before treatment even begins.
- Even partial completion produced better sleep efficiency, suggesting the program was working for some who left — they may have stopped because they improved, not because they failed.
In Hong Kong, researchers set out to understand why most people abandon a chatbot-delivered therapy for insomnia before it can help them — and found that the mind's own burdens, particularly depression, are what most reliably predict the retreat. A study of 75 participants using a text-based cognitive behavioral program revealed that only one in five completed the full course, yet even partial engagement yielded measurable sleep improvement. The deeper question the work raises is an old one: how do we reach those who need help most when the very condition complicating their lives also makes it hardest to accept the hand extended toward them?
A chatbot called Master Sleep was designed to guide insomnia sufferers through a month of cognitive behavioral therapy delivered entirely by text message on Telegram. The program covered the standard pillars of insomnia treatment — sleep education, behavioral strategies, cognitive restructuring, and stress management — with participants logging daily sleep data and receiving new lessons in return. It worked, at least for those who stayed. But most didn't: only 19 of 75 eligible participants completed all 28 days.
The study, conducted in Hong Kong between April 2023 and May 2024, used machine learning to search for patterns in who dropped out. Researchers tested four algorithms against baseline characteristics including demographics, sleep measures, depression and anxiety scores, and sleep hygiene habits. One predictor stood above the rest: depressive symptoms. People who reported higher depression at enrollment were significantly more likely to abandon the program — a finding that makes intuitive sense, since depression depletes the motivation and cognitive energy that a digital intervention demands.
The study also surfaced a more surprising pattern. On nights when participants slept poorly, they were more likely to engage with the chatbot the following day — reaching toward the tool rather than away from it. And despite common concerns about screen use before bed, nighttime chatbot use showed no correlation with worse sleep that night.
For those who did persist, the benefits were real. Sleep efficiency improved even among partial completers, and strong adherers saw meaningful reductions in mid-night wakefulness. Some early dropouts may have left not because the program failed them, but because they felt well enough to stop.
The study is small, culturally specific, and limited by self-reported data, but its core implication is clear: machine learning could allow therapists to identify at-risk patients before treatment begins and offer hybrid human-AI support to those most likely to disengage — rather than leaving them to navigate an automated program alone.
A chatbot named Master Sleep was supposed to guide people through a month of cognitive behavioral therapy for insomnia, delivered entirely through text messages on Telegram. The program worked—at least for those who stuck with it. But most people didn't. Only 19 percent of the 75 participants who enrolled and met the study criteria actually completed all 28 days. The rest dropped out somewhere along the way, and researchers wanted to know why.
The study, conducted in Hong Kong between April 2023 and May 2024, recruited people through social media ads and community outreach. Participants had to be between 18 and 65, speak Cantonese, have a smartphone with internet access, and score at least 8 on the Insomnia Severity Index—a clinical threshold for actual insomnia. The chatbot delivered the standard four pillars of insomnia treatment: sleep education, behavioral strategies like stimulus control and sleep restriction, cognitive restructuring to challenge unhelpful thoughts about sleep, and stress management techniques. Each day, participants logged their sleep data, received a new lesson, and could ask questions. The chatbot used machine learning to understand their messages and respond appropriately, even detecting emotional distress when it appeared.
What made some people persist while others vanished? Researchers used machine learning models to hunt for patterns in baseline characteristics—demographics, sleep measures, depression and anxiety scores, beliefs about sleep, sleep hygiene habits. They found that depressive symptoms were the single strongest predictor of dropout. People who reported higher depression at the start were significantly less likely to complete the program. The mechanism is straightforward: depression drains motivation and makes cognitive tasks feel harder. A person already struggling with low mood and low energy faces a steeper hill when asked to engage with a digital intervention, even one designed to help them sleep better.
But the study also uncovered something unexpected about daily patterns. On nights when people slept poorly—when they took longer to fall asleep or woke up repeatedly in the middle of the night—they were more likely to use the chatbot the next day. They weren't avoiding it; they were reaching for it. This suggests that poor sleep itself can drive engagement, at least temporarily. A person lying awake at 3 a.m. might be more motivated to try the intervention than someone sleeping reasonably well. The researchers also tested whether using the chatbot close to bedtime—within two hours of sleep—would disrupt sleep that night. It didn't. Despite the common concern about blue light from screens before bed, nighttime use of the intervention showed no correlation with worse sleep. On average, participants used the chatbot only twice per night, suggesting that most heeded the advice to limit late-night engagement.
The machine learning models showed promise in identifying who would struggle with adherence overall, though predicting day-to-day adherence proved harder. The researchers used four different algorithms—logistic regression, support vector machines, random forests, and gradient boosting—and tested them rigorously with cross-validation. The models worked best when trained on baseline characteristics, suggesting that a therapist could theoretically screen new patients and flag those at high risk of dropout before they even start.
What happened to people who did complete the program? Their sleep improved. Sleep efficiency—the percentage of time in bed actually spent asleep—increased for both those with good adherence and those who only partially engaged. People with strong adherence saw a more dramatic reduction in wake time after sleep onset, the frustrating experience of waking up in the middle of the night. This hints at something important: even incomplete engagement with the intervention produced measurable benefit. Some of those who dropped out early may have done so not because the program failed them, but because their sleep improved enough that they felt they could stop.
The study is small and has real limitations. Seventy-five people is not a large sample. The researchers relied on self-reported sleep data rather than objective measures like actigraphy. They tested the chatbot only in one cultural context, in Cantonese, with a population that may not represent other regions or languages. And they excluded people with existing psychiatric diagnoses, which means the findings don't apply to the people most likely to have both insomnia and depression. Still, the core finding stands: depression is a barrier to engagement with digital mental health tools, and machine learning can spot that barrier before treatment begins. The next step is obvious—therapists could use these predictions to intervene early, offering hybrid human-AI support to people flagged as high-risk, rather than hoping they'll persist with a fully automated program alone.
Citations marquantes
Motivational deficits associated with depression may reduce engagement with digital cognitive behavioral therapy, and cognitive difficulties can make the intervention seem more challenging to use— Study authors
Users may be more inclined to engage with the chatbot after experiencing poor sleep, probably driven by a desire to improve their sleep quality— Study authors