Many researchers fear the consequences of training computers to identify a person’s sexual orientation and criminality based solely on physical appearance.