Enantiodromia
From Memory Alpha, the free Star Trek reference
Enantiodromia is a dysfunction of the mind which literally means "conversion into the opposite." It is sometimes experienced in conjunction with symptoms of neurosis.
In 2368, Timothy adopted the android behavior of Data in an attempt to cope with the loss of his parents and the misplaced guilt he experienced due to his belief that he caused their deaths. (TNG: "Hero Worship")
