1. (formerly) a doctor specializing in the treatment of mental illness, a psychiatrist.
2. an expert witness in a sanity trial.
French aliéniste, from aliéné, meaning insane.
French aliéné from Latin alienatus, past participle of alienare - to estrange, from alienus.
Alienus defined as insane, mad, unfamiliar, strange, hostile.