A new sci-fi movie featuring a sexual relationship between a man and a robot that looks like a 10-year-old girl has sparked walkouts and complaints at a Berlin film festival.

The Trouble With Being Born includes nude scenes of a young girl using computer-generated images, with the film leaving little doubt that the main actor has sexual contact with the child robot.

The robot was originally scripted to be a 20-year-old, but Austrian director Sandra Wollner (pictured) decided to cast a child after removing some of the more explicit scenes.

Played by Lena Watson (10), the robot calls her owner “Daddy”, and is built to replicate his real daughter who disappeared ten years before.

The movie has been slammed as ‘paedophile propaganda” by some critics, with a FilmGoblin review announcing “Pedophilia gets mainstream nod in The Trouble with Being Born.”

The Hollywood Reporter however called the film a “hidden gem”, as Wollner admitted to them how she was “scared” to choose a child for the role.

“I found it fascinating to show the perspective of the world through this machine that does not judge and does not care, and doesn’t need the meanings that we do.”

She said the child had to come from “the sort of open-minded family who would understand the story they wanted to tell and also allow them to do it.”

“Of course, her parents were there during the shoot. She was never naked, she was never running around naked, she never saw anybody naked on set. We just did that in the edit,” she added.

“We had really honest talks with the family, who were there during the shoot. It was very open, very transparent. And of course we talked to [Watson] about the film in a very child-appropriate way,” she told The Hollywood Reporter.