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.”

Image used with permission by copyright holder

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
Former Digital Trends Contributor
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
You can finally try out Apple Intelligence on your Mac. Here’s how
macOS Sequoia being introduced by Apple's Craig Federighi at the Worldwide Developers Conference (WWDC) 2024.

The second developer beta of macOS Sequoia is open for business and it includes Apple Intelligence features. It looks like anyone can try it out as long as you're not in China. That includes people in the EU -- even though the AI features might not launch there right away. The features available for testing include Writing Tools, Siri, Safari and Mail summaries, Smart Replies, Memory Movies, transcription features, Reduce Interruptions Focus Mode, and a few more. If you want to have a look yourself, here's everything you need to do to download the beta and activate Apple Intelligence.

Before you start, make sure you've backed up your Mac with Time Machine so you can restore the previous version if anything goes wrong. You can also use a secondary device if you have another Apple silicon Mac lying around because beta versions can go wrong and you have to download them at your own risk.

Read more
GPT-4: everything you need to know about ChatGPT’s standard AI model
A laptop opened to the ChatGPT website.

People were in awe when ChatGPT came out, impressed by its natural language abilities as an AI chatbot originally powered by the GPT-3.5 large language model. But when the highly anticipated GPT-4 large language model came out, it blew the lid off what we thought was possible with AI, with some calling it the early glimpses of AGI (artificial general intelligence).
What is GPT-4?
GPT-4 is the newest language model created by OpenAI that can generate text that is similar to human speech. It advances the technology used by ChatGPT, which was previously based on GPT-3.5 but has since been updated. GPT is the acronym for Generative Pre-trained Transformer, a deep learning technology that uses artificial neural networks to write like a human.

According to OpenAI, this next-generation language model is more advanced than ChatGPT in three key areas: creativity, visual input, and longer context. In terms of creativity, OpenAI says GPT-4 is much better at both creating and collaborating with users on creative projects. Examples of these include music, screenplays, technical writing, and even "learning a user's writing style."

Read more
The best free AI video generators you can try out today
dogs running and melting

The days of needing extensive editing experience and a hefty budget just to make a professional-quality video are over. A new wave of AI-powered video generators has arrived, empowering anyone with a laptop and internet connection to craft stunning and engaging videos in just a few clicks.
Leading the way is OpenAI's Sora, an AI capable of generating minutes' worth of photorealistic video in moments -- or it will when it's actually released to the public. Until then, you can try out any of these innovative AI tools for free and easily turn your cinematic ideas into reality. At the very least, they're pretty fun to play around with.

Haiper 1.5

Read more