When Assistant Professor Zhang Dachuan started teaching a computer to recognize sleep-friendly smells, he worked with a massive library: 2,391 scent molecules from 991 different plants, from common lavender to lesser-known herbs. His team at the National University of Singapore wanted to answer a simple question that scientists have struggled with for years — which plant fragrances actually help people sleep, and why?

Sleep problems affect up to one-third of people worldwide. While prescription sleeping pills help some patients, they can also cause unwanted side effects and are not suitable for everyone. Aromatic plants like lavender have been used for centuries to promote relaxation, but it has been hard to know which specific scent molecules are responsible and how they work.

Zhang and his team took a data-driven approach, combining artificial intelligence with large-scale information about plant chemistry. They built a curated library of scent molecules from 991 aromatic plants, then trained a machine-learning model to spot patterns linked to sleep-promoting activity. The results were striking: the model achieved 96.1% accuracy during testing, meaning it could correctly identify sleep-friendly compounds most of the time.

The AI flagged hundreds of promising candidates. To test whether the computer predictions held up in real biology, the team selected five compounds for experiments. Four of them — carvacrol, safranal, vanillin and methyl eugenol — reduced wakefulness and increased a restorative sleep stage called non-rapid eye movement sleep. These molecules appeared to work by influencing GABA receptors, part of the brain's main calming signaling system that conventional sleep medications also target.

Beyond individual molecules, the research also ranked entire plant families by their sleep-promoting potential. Asteraceae, Lamiaceae and Lauraceae stood out as the richest sources of promising compounds. Lavender and perilla were highlighted as species worthy of further study.

The findings, published in the journal Digital Discovery, do not represent a sleep product ready for your bedside table. Instead, they provide what Zhang calls a "practical map" — a guide for future research into safer, more natural sleep aids. His team plans next to examine long-term safety, how mixtures of scent molecules interact, and whether the same effects appear in broader biological and human studies. The approach demonstrates how AI could accelerate the discovery of natural ingredients for health products, fragrances and well-being applications in the years ahead.

Assistant Professor Zhang said many people associate calming plant aromas with better sleep, but stronger evidence is needed to understand which molecules are responsible. "Our aim is to transform traditional knowledge and scattered chemical data into a practical map that can guide the development of safer and more targeted sleep-related products in the future," he explained.