Sexual cues have been well established in evolutionary psychology as indicators of genetic compatibility/useful genes.
How does the human brain know that a cue is an indicator of a useful trait in order that a person perceives the trait as being an attractive one? What cognitive mechanisms are involved in the perception of sexual cues as being attractive?