The story of Frankenstein, written by Mary Shelley in 1816, is often regarded as the world's first sci-fi novel and much part of it was inspired by a vivid nightmare she had.