From Latin non (“not”) + compos (“in control, having mastery”) + mentis (“of mind”).
non compos mentis (not comparable)