The researchers from Carnegie Mellon University said the results could help people improve their sex lives.