The video will start in 8 Cancel

Get the stories that matter to you sent straight to your inbox with our daily newsletter. Subscribe Thank you for subscribing We have more newsletters Show me See our privacy notice Invalid Email

Edinburgh was transformed into a terrifying vision of the future as campaigners bid to ban "killer robots".

Areas around the Old Town were used in a seven-minute film released by the Campaign To Stop Killer Robots at the UN Convention on Conventional Weapons in Geneva.

A classroom full of dead students is shown after a swarm of tiny killer drones were sent from the Braid Hills.

The machines in the short film use facial recognition to pick up targets before shooting them in the skull.

Professor Stuart Russell, an expert in artificial intelligence at the University of California, spoke at the end of the film.

He said: "This short film is more than just speculation, it shows the results of integrating and miniturising technologies that we already have.

"I've worked in AI for more than 35 years. Its potential to benefit humanity is enormous, even in defence.

"But allowing machines to kill humans will be devastating to our security and freedom - thousands of my fellow researchers agree.

"We have an opportunity to prevent the future you just saw, but the window to act is closing fast."

Film Edinburgh say they were contacted by Space Digital to shoot in locations such as Calton Road and the Cowgate after filmmakers wanted "iconic parts of the UK".