Research could lead to better education and treatment of sex