Updated

The latest sign that artificial intelligence appears ready to disrupt every portion of humanity is here.

The technology can tell if a person is gay or straight, just by scanning a picture of their face, researchers say.

A new AI software, developed at the University of Stanford is able to predict a person's sexuality far more accurately than human beings, according to a research study.

ELON MUSK THINKS ARTIFICIAL INTELLIGENCE COULD CAUSE WORLD WAR III

Using the deep neural network to extract features from 35,326 facial images, they were able to tell if a man was straight or gay 81 percent of the time, using just one picture. The number dropped slightly for women, coming in at 74 percent. If five images were used, the accuracy jumped to 91 percent and 83 percent, respectively.

By comparison, humans were less accurate in their predictions, at 61 percent for men and 54 percent for women.

"Consistent with the prenatal hormone theory of sexual orientation, gay men and women tended to have gender-atypical facial morphology, expression, and grooming styles," researchers Michal Kosinski and Yilun Wang wrote in the description.

The research may have world-wide impacts, especially in countries where homosexuality is still illegal.

According to a report by The International Lesbian, Gay, Bisexual, Trans and Intersex Association, same-sex relationships are illegal in 72 countries.

ELON MUSK SAYS ARTIFICIAL INTELLIGENCE IS HUMANITY'S 'BIGGEST RISK'

Homosexuality is also punishable by death in in 10 countries across the globe. The list includes Yemen, Iran, Mauritania, Nigeria, Qatar and six others. Saudia Arabia, Afghanistan and the United Arab Emirates are also on the list.

“Given that companies and governments are increasingly using computer vision algorithms to detect people’s intimate traits, our findings expose a threat to the privacy and safety of gay men and women,” Kosinski and Wang told The Telegraph in an interview, discussing their findings.