Artificial intelligence used to be something that featured in science fiction films. Now, it's writing the scripts.

Following the debut in June of Sunspring, a hilariously disjointed short film written entirely by AI, a feature-length movie has been written by AI – with human input – in an effort to nail the formula for box office success.

Funds are being raised to make Impossible Things on Kickstarter, where it is billed as "the first AI co-written feature film".

Jack Zhang, the 24-year-old Canadian mathematician and software architect behind the project, used AI to analyse reams of movie data and identify the plot combinations audiences like. The trailer incorporates key tropes of the horror genre: a secluded house; a dead child; something unspeakable in the bathtub.