i think it's been more from the cultural ideas we've built up on/in scifi. you get all the automoton and their struggle for humanity stories from asimov and all the others, each one building up to the idea that a sufficiently complex machine could feel ways about stuff.