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.
The term originates with British philosopher Gilbert Ryle's description of René Descartes' mind–body dualism. Ryle introduced the phrase in The Concept of Mind (1949)[1] to highlight the view of Descartes and others that mental and physical activity occur simultaneously but separately.[2]