Ned seeks therapy after having recurrent episodes of feeling "detached from himself" for several months, but he has not lost his self-awareness or memory. He notes that he feels like a robot, disconnected from his movements and actions. He is most likely suffering from
depersonalization disorder
the fugue
schizophrenia
panic disorder
or dissociative identity disorder