Insanity was a term used to refer to certain behaviors considered to be abnormal and against societal norms. The term was also used to refer to a person exhibiting mental instability. Someone believed to exhibit such behavior is referred to as being insane.
In 2370, Worf proclaimed his belief that Iyaaran Ambassador Byleth was insane after serving as his guide during a visit to the USS Enterprise-D. Worf believed this after Byleth did nothing but exhibit antagonism towards him, which he did not know was actually a deliberate act designed to learn about such behavior. (TNG: "Liaisons")
The following year, Rom speculated that Grand Nagus Zek was insane after he wrote a revised version of the Rules of Acquisition. This version was based on less selfish and greedy principles than those that normal Ferengi society held. Quark dismissed Rom's speculation by stating that Zek was too brilliant to go insane. (DS9: "Prophet Motive")
In 2373, Gul Dukat asked Weyoun if he was insane after he drank a bottle of Kanar laced with Voraxna poison which had been intended to assassinate Tekeny Ghemor. Weyoun pointed out, however, that Vorta are immune to most poisons. (DS9: "Ties of Blood and Water")