Scientists have reconstructed Pink Floyd's classic track 'Another Brick in the Wall' using people's brainwaves.

A Pink Floyd song has been reconstructed using brainwaves

A Pink Floyd song has been reconstructed using brainwaves

It is the first time a recognisable song has been decoded from recordings of electrical brain activity and it is hoped that the breakthrough can restore the musicality of speech in patients with neurological conditions.

The team analysed brain recordings from 29 patients who were played a three-minute segment from the 1979 song and artificial intelligence was used to reproduce the sounds and words.

Despite being very muffled, the line 'All in all, it's just another brick in the wall' is recognisable in the reconstructed song.

Professor Robert Knight, a neurologist at the University of California, Berkeley, said: "Music, by its very nature, is emotional and prosodic - it has rhythm, stress, accent and intonation. It contains a much bigger spectrum of things than limited phonemes in whatever language, that could add another dimension to an implantable speech decoder.

"It sounds a bit like they're speaking underwater, but it's our first shot at this."