read about GANS, Generative Adversarial Networks. They program themselves based on sensory input.
They ponder what they see, hear, sense and make up daydreams and maybe real dreams. But they have no conscience programmed in. On the way to HAL. Daisy, daisy...
What are you doing Dave... I cannot let you do this.
(after killing rest of crew)
Look Dave, I can see you’re really upset about this.
Thx for my new tagline.