Madness
Up to about the 19th century someone who acted strangely, or outside the socially accepted norms was called mad or insane. This could range from having weird  ideas to someone having delusions or hallucinations, as they are common in some mental illnesses, such as psychosis.