alienist (n.)
"one who treats mental illness, 'mad doctor,' " 1864, from French aliéniste, from alienation in the sense of "insanity, loss of mental faculty," a sense attested in English from late 15c. (see alienate).