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.

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

ai generated magic card trick

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!


From Jay Rock to Saba, these are the 50 best albums of 2018

We've spent the year listening to new albums, digging deep, and culling our master list into 50 favorites. From blockbuster releases to hidden gems, these are the best albums of 2018.
Emerging Tech

CRISPR gene therapy regulates hunger, staves off severe obesity in mice

Researchers from UC San Francisco have demonstrated how CRISPR gene editing can be used to prevent severe obesity in mice, without making a single edit to the mouse's genome. Here's how.

From DSLRs to mirrorless, these are the best cameras you can buy right now

From entry-level models to full-frame flagships, many cameras take great photos and video. The best digital cameras, however, push the industry forward with innovative sensors and improved usability, among other things. Here are our…

The hottest Nintendo Switch games you can get right now

The Nintendo Switch's lineup started off small, but games have steadily released as the console continues through its second year. Here are the best Nintendo Switch games available now, from Super Mario Odyssey to Fortnite.
Home Theater

Confused about LED vs. LCD TVs? Here's everything you need to know

Our LED vs. LCD TV buying guide explains why these two common types of displays are fundamentally connected, how they differ, what to look for in buying an LED TV, and what's on the horizon for TVs.

Canada’s winters inspired a startup to warm homes with cryptomining heat waste

Cryptomining may be the key to untold riches and the future of currency, but it’s also an environmental nightmare. Heatmine, thinks it has the answer, but it could mean bolting a mining rig onto every home and business in the country.
Product Review

The Asus ZenBook 14 is a tiny notebook that gets lost in the crowd

The ZenBook 14 aims to be the smallest 14-inch notebook around, and it succeeds thanks to some tiny bezels. Performance and battery life are good, but the notebook lacks a standout feature other than size.

The best MacBook deals for December 2018

If you’re in the market for a new Apple laptop, let us make your work a little easier: We hunted down the best up-to-date MacBook deals available online right now from various retailers.

How to connect AirPods to your MacBook

If you have new AirPods, you may be looking forward to pairing them with your MacBook. Our guide will show you exactly how to connect AirPods to MacBook, what to do if they are already paired with a device, and more.

Hitting ‘Check for updates’ in Windows 10 opts you into beta releases

Users who are careful about keeping their system updated should watch out -- Microsoft revealed this week that clicking the Check for updates button in Windows can opt you in to testing beta code.

Secure your Excel documents with a password by following these quick steps

Excel documents are used by people and businesses all over the world. Given how often they contain sensitive information, it makes sense to keep them from the wrong eyes. Thankfully, it's easy to secure them with a password.

Which Macs are compatible with MacOS Mojave?

Is your computer ready for Apple's big Mojave update? Here's what you need to know about MacOS Mojave compatibility, what Macs can successful download Mojave, and the requirements you need to know about.
Emerging Tech

Awesome Tech You Can’t Buy Yet: Booze-filled ski poles and crypto piggy banks

Check out our roundup of the best new crowdfunding projects and product announcements that hit the web this week. You may not be able to buy this stuff yet, but it sure is fun to gawk!

Change your mouse cursor in Windows with these quick tips

The standard mouse cursor is boring, so change it! With this guide on how to change your mouse cursor in Windows, you can choose to use one of Microsoft's pre-installed cursors or download something a bit more extravagant.