Philosophical concept
The "ghost in the machine" is a term originally used to describe and critique the concept of the mind existing alongside and separate from the body. In more recent times, the term has several uses, including the concept that the intellectual part of the human mind is influenced by emotions; and within fiction, for an emergent consciousness residing in a computer. Wikipedia