The internal sense of being male or female, or something other than or in between the binary gender categories.