Skip to main content
  1. Home
  2. Computing
  3. Emerging Tech
  4. News

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

Add as a preferred source on Google

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
I'm a UK-based tech writer covering Cool Tech at Digital Trends. I've also written for Fast Company, Wired, the Guardian…
ChatGPT’s Chrome extension can now read your tabs, YouTube videos, and highlighted text
ChatGPT now understands what's on your screen, letting you ask about tabs, highlighted text, and YouTube videos directly.
chatgpt-chrome-extension-upgrade-youtube-videos

ChatGPT just got a lot better at understanding what you're actually looking at. OpenAI has rolled out updates to its Chrome extension and desktop app that let ChatGPT read your open tabs, react to highlighted text, and answer questions about YouTube videos. The update arrived shortly after OpenAI shelved its standalone Atlas browser to shift its focus toward tools people already use.

https://twitter.com/ChatGPT/status/2082970812584432115

Read more
Lenovo’s Googlebook lineup could include two laptops, a 2-in-1 tablet, and an AI mouse
Images have emerged online giving us our first look at Lenovo’s upcoming Googlebooks
Googlebook

Google announced Googlebook at I/O in May, but we are still waiting to see what the finished hardware will actually look like. The first devices are expected this fall, and new images published by Android Headlines may have given us an early look at what Lenovo has planned.

Lenovo appears to be preparing at least three Googlebooks, including two traditional laptops and a detachable 2-in-1 tablet. There is also a new wireless AI mouse that seems to have been designed specifically for the platform.

Read more
Shopping for back-to-school? I’d recommend these GaN chargers for saving space and packing more power
From a $9 spare to a $56 desk hub, these chargers cut down on cable clutter so that you can focus on your studies, not how cluttered your desk looks.
Best GaN chargers in 2026 for back to school shopping.

Between a phone, a laptop, a tablet, and perhaps a pair of wireless earbuds that require charging every day or every few days, most students are packing multiple chargers for move-in day. Those big, heavy bricks take up valuable backpack space that could otherwise be free for carrying more items. 

However, GaN chargers fix that problem in two ways. First, they deliver the same amount of power from a much smaller body, thanks to gallium nitride transistors. Furthermore, if you're willing to spend a little more upfront, you can get a high-capacity, multi-device charger capable of powering your entire digital ecosystem from a single wall outlet, something that could be very useful for a dorm room.

Read more