Skip to main content

You can try out this AI-created magic card trick at home

card trick
Dmytro Surkov/123RF
Writer Arthur C. Clarke famously said that, “Any sufficiently advanced technology is indistinguishable from magic.” With one of their latest research projects, researchers from Queen Mary University of London are carrying out a variation on this idea — by using technology (and, more specifically, artificial intelligence) to create a “mind-reading” card trick.

The trick involves a magician with two decks of cards. These get shuffled, and then the subject is asked to pick a total of eight, including both words and image cards. They must then choose a word and an image, without showing it to the magician. The magic bit? That the magician has already written down the pairing the person has chosen. It seems like spooky stuff, although its creator points out it is basic psychology.

Recommended Videos

“The AI system [that created the cards looked] for words and pictures that are closest in some type of meaning, a measure called semantic similarity,” Peter McOwan, professor of computer science, told Digital Trends. “The algorithm finds sets of themed target words and pictures that match — such as ‘hunger’ — and other sets of words and picture that don’t match as well, such as ‘fashion.’ We then produce printed cards with these sets of similar and different word and pictures, and use a bit of clever maths in the card shuffle and dealing that means each pile of cards dealt has only one target word or target picture in it. When a spectator picks a word packet and a picture packet, it’s most natural to make the word and picture association we want them to, so our prediction proves correct.”

It’s neat because — at its root — it is a classic trick. There is no EEG brainwave reading, or fancy levitation. Instead, it is using pattern recognition and internet searches to discover how the  mind subconsciously matches words and pictures. It is based on an idea that a  magician could probably do but computers and big data make significantly easier. The researchers successfully tested the finished magic trick on attendees at science fairs — and used this to verify that it worked correctly.

A paper describing the work was recently published in the journal PLOS One. If you want to have a go for yourself, you can also download the assets here.

“It’s a new area of study, which is always exciting to start to explore,” McOwan said. “Magic has been a hobby for years, but it’s also an interesting way to explore areas like machine creativity and human perception and cognition.”

Next up, he wants to use AI to come up with magic tricks from scratch. Just so long as they do not all involve sawing us pesky humans in half, we’re happy!

Luke Dormehl
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
Nvidia GPUs see massive price hike and huge demand from AI
Nvidia RTX 2060 Super and RTX 2070 Super review

It feels like we’ve only just emerged from the debilitating graphics card shortage of the last few years, but a new report suggests we can’t breathe easy just yet. Could a new GPU shortage be on the horizon, or are consumers safe from a return to another nightmare scenario?

According to DigiTimes (via Wccftech), Nvidia is seeing a huge surge in demand for its chips due to the explosion in artificial intelligence (AI) tools like ChatGPT. Nvidia offers a range of graphics cards that excel at AI tasks, including the A100 and H100, and the company is reportedly struggling to keep up in the wake of such massive demand.

Read more
MiniGPT-4: A free image-to-text AI tool you can try out today
what is minigpt 4 screenshot 2023 04 26 at 06 55 pm

ChatGPT is great, but right now, it's limited to just text -- text in, text out. GPT-4 was supposed to expand on this by adding image processing to allow it to generate text based on images.

MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Models

Read more
What is AGI? A self aware AI might be closer than you think
Robot from Bicentennial Man.

Artificial General Intelligence, or AGI, is considered by some to be the end goal of artificial intelligence (AI) development. Instead of having an AI that can perform specific tasks, an AGI would be able to perform any task you set it, and with enough time and computational power, do it well. Some see ChatGPT as the first example of AGI, while others consider us at least a few years away from an AI that can do anything.

Really, it's more of a debate about how exactly we define AGI, and how to know when we get there.
What is AGI?
An AGI agent should, in theory, be able to complete almost any intellectual task that a human or animal can do -- and potentially do it better. There are certain tasks that even an AGI can't complete, however, such as almost anything to do with the physical world. That is, at least, until robotics come into play.

Read more