The word you might be thinking of is "demented", meaning mentally ill or insane. The prefix "under-" usually implies something is less than, but there's no established meaning for "underdemented."
It's possible you've encountered a misspelling or a made-up word.