When Tabong Kima checked his Twitter feed early Wednesday morning, the hashtag of the moment was #ImageNetRoulette.

Everyone, it seemed, was uploading selfies to a website where some sort of artificial intelligence analyzed each face and described what it saw. The site, ImageNet Roulette , pegged one man as an “orphan.” Another was a “nonsmoker.” A third, wearing glasses, was a “swot, grind, nerd, wonk, dweeb.”

Across Mr. Kima’s Twitter feed, these labels — some accurate, some strange, some wildly off base — were played for laughs. So he joined in. But Mr. Kima, a 24-year-old African-American, did not like what he saw. When he uploaded his own smiling photo, the site tagged him as a “wrongdoer” and an “offender.”

“I might have a bad sense of humor,” he tweeted, “but I don’t think this is particularly funny.”

As it turned out, his response was just what the site was aiming for. ImageNet Roulette is a digital art project intended to shine a light on the quirky, unsound and offensive behavior that can creep into the artificial-intelligence technologies that are rapidly changing our everyday lives, including the facial recognition services used by internet companies, police departments and other government agencies.