Conan Doyle was inspired by Edgar Allan Poe's detective stories and his own experiences as a medical student.