This paper presents a theoretical study for making intelligent robots with human-like mind. For the development of a cognitive mental model, we developed three algorithms based on the cognitive process for human psychoanalysis. Specifically, the concept of id, ego and superego from the theory of Sigmund Freud was adopted and the procedural algorithms were presented.