Cambridge Festival: Speaker Spotlight
Dr Sam Nallaperuma-Herzberg, Senior Research Associate at the Department of Computer Science and Technology, Fellow in Artificial Intelligence (AI) for Science and Society at the Accelerate Programme for Scientific Discovery.

Dr Sam Nallaperuma-Herzberg is a Senior Research Associate at Cambridge University’s Department of Computer Science and Technology, and a Fellow in Artificial Intelligence (AI) for Science and Society at the Accelerate Programme for Scientific Discovery.
How does relaxation music affect our brains, and can it be tailored for therapy? New research from the BrainTwin project, part of the Accelerate Programme for Scientific Discovery, shows how AI and neuroscience can create sleep and relaxation treatments. At this event, Dr Sam Nallaperuma-Herzberg and her team will discuss their ongoing work and showcase a simple demo of early versions of the music therapy and brain signal analysis modules.
What inspired your interest in using Artificial Intelligence (AI) to treat brain disorders like insomnia?
I’m an insomnia sufferer myself. My interest in healthcare may be due to my family background with first-hand experience into the amazing world of healers. Clinicians and healthcare professionals do wonderful work, around the clock, caring for the fellow humans from cradle to the grave. And yet, they are under enormous pressure: the pandemic has created such huge backlogs for some treatments.
So when I first started working in AI, I began wondering if I could use my skills to help. At the time, I was modelling the use of AI in transport and communications infrastructure networks. These are complex networks, as are the ones in the brain. I realised that aspects of my work could be applied to brain networks.
It inspired my interest in neuroscience and I began thinking about how we could build digital twin models of the brain to understand it better. I developed a research proposal, was fortunate enough to receive funding, and now I’m leading the ‘Brain Twin’ research project in this area.
How can music help the brain?
Cognitive behavioural therapy is seen as the best of the NHS therapies offered for insomnia. But it’s expensive so patients can only have group, rather than individual, therapy (from a patient privacy point of view, this is not ideal). There are also some patients who are resistant to CBT, so they need different treatments.
Medication is another option, but it can cause side effects. The NHS doesn’t currently offer music therapy (though it can recommend it). Yet there is scientific evidence to show music can have a positive effect on insomnia. There are also clinical studies suggesting that the effects of music on people differ from person to person. These studies haven’t explored whether that is true specifically for insomnia – and that’s where the BrainTwin project comes in.
I’m hoping that music therapy could be a tool to lessen the burden on the NHS by providing an easily accessible digital treatment for patients with mild insomnia.
How is artificial intelligence and neuroscience being used in the BrainTwin project to create music therapy?
We think music can be adapted to work for insomnia sufferers based on analysing the physiological signals from their brains. So we’re starting work on two studies to generate both subjective and objective data on that. We’ll be using a pre-trained AI model that identifies effective relaxation / sleep music.
Participants in the first study will be asked to listen to different types of music and tell us which makes them feel most relaxed. This will give us subjective feedback. (We already have volunteers for this study, but if anyone who comes along to our demo at the Cambridge Festival is interested, they too could take part.) This will give us subjective feedback. Then, to test whether people’s perceptions of what music works for them are correct, we’ll subsequently run a clinical trial and receive objective physiological feedback.
What else will the visitors be able experience at the Cambridge festival event?
Visitors will be invited to wear an EEG headset – or observe a team member wearing one. They can then hear sleep music generated by our models and see the live EEG waveforms, along with the sleepiness parameters. So they will basically see how AI generated therapeutic music makes them feel sleepy.
Do you expect to see any difference between what music the participants say relaxes them and what their brainwaves tell you?
We know from our work with two sleep clinics that sometimes people’s perceptions of themselves do not always match with their physiological responses. Insomnia sufferers who are being monitored in a sleep clinic sometimes tell doctors in the morning that they had a very bad night when in fact the feedback from their physiological monitoring shows they actually got quite a few hours’ sleep. That’s why gathering the neurophysiological data as well as subjective feedback in our study will be so important.
How do you envision the future of music therapy in healthcare? Could AI-generated music become a mainstream solution for people struggling with sleep and relaxation issues?
I’m hoping that music therapy could be a tool to lessen the burden on the NHS by providing an easily accessible digital treatment for patients with mild insomnia. It could also be used for patients who are resistant to cognitive behavioural therapy. They could try it out and see if it works for them before the alternative, which is prescription medication that can have adverse side effects.
Other events at the Department of Computer Science and Technology
Tour the Computer Science Department
A chance to tour the first computer science department in the country, and one that has built computers of all sizes, ranging from those in the 1940s that took up a whole room, to those that today sit in the palm of your hand.
Take a tour of Dawn, the UK’s fastest AI supercomputer
Take a tour of Dawn, the UK’s most powerful AI supercomputer, via one of our virtual reality headsets. Meet researchers from ai@cam - the University of Cambridge’s mission to develop AI that serves science, citizens, and society - who can tell you how it works.
Developing AI for Science, Citizens and Society
Join ai@Cam at the Computer Science and Technology Open Day to meet some of the researchers from the AI-deas programme and learn about the exciting projects they are working on.
Meet Furhat, the conversational robot
Come along to the Department of Computer Science and Technology Open Day to meet Furhat, a robot science ambassador, to chat about computer science and your experiences of it.
Play guitar like an AI Jimi Hendrix!
Come and play with an AI tool that lets you manipulate the sounds of an electric guitar and meet the researcher working on ways to create music with AI. Using hands-on devices, experiment with changing the quality of the notes.
Measure your heart rate from your earphones!
In this workshop you will meet the computer science researchers who have created an algorithm to take an ear canal facing microphone, commonly found in noise-cancelling earphones, and use the signal to estimate your heart rate and breathing rate.
The Cambridge Festival is a mixture of online, on-demand and in-person events covering all aspects of the world-leading research happening at Cambridge. Meet some of the researchers and thought-leaders working in some of the pioneering fields that will impact us all.
Sign up to our mailing list here or keep up to date by following us on social media.
Instagram: Camunifestivals | Facebook: CambridgeFestival |
X: Cambridge_Fest | LinkedIn: cambridge-festival

