Now computers can clone your handwriting with creepy accuracy

handwriting replication algorithm my text in your
Researchers at University College London have created an algorithm capable of taking a sample of hand-written text and imitating it, allowing a computer to write in the style of a real person. We’re not talking about a simple “handwritten” typeface, either. The text turned out by the algorithm created by Tom Haines and his fellow UCL researchers is authentic enough that human judges are unable to tell the difference.

“We’re very proud of the fact that when we ran a user study, in which we gave people samples of the same sentence in real handwriting and handwriting created by our system, they were unable to spot the fake,” Haines told Digital Trends, excitedly. “They were basically making random guesses.”

Called “My Text In Your Handwriting,” the new machine learning tool works by first marking up each letter and punctuation mark, looking in detail at how every letter (or “glyph”) is reproduced. It then allows users to type in a sentence, paragraph or even entire document and have the computer “handwrite” it in surprisingly authentic detail — complete with pen-line texture, color, and even the joining-up technique between letters.

And it’s not just capable of reproducing the handwriting of living people, either. “Provided we can find the necessary handwriting samples at a high enough resolution, we can recreate the handwriting of historical figures,” Haines said. So far, the team has created passable recreations of the handwriting of Sherlock Holmes creator Sir Arthur Conan Doyle, Mexican painter Frida Kahlo, and former President Abraham Lincoln.

As you might imagine, the problem being solved here isn’t a straightforward one. You only have to try and write out the same phrase 10 times in a row to appreciate how much our letters can vary; often depending on the letter which preceded them. Fortunately, irregularities like this are one of the things for which machine learning tools are well suited.

“You have to introduce a certain amount of randomness to hide the computer-generated aspect.”

The system even learns to mimic the spacing between words — another area that’s as characteristic as the way we form individual letters. “A surprising amount of effort goes on in the spacing of text,” Haines continued. “This turned out to be more important than the glyphs in some ways. For the spacing, we have a probability distribution from which we draw, so that it’s slightly different every time. We found that to be necessary. You have to introduce a certain amount of randomness to hide the computer-generated aspect.”

The randomness of lettering is crucially important. You may be familiar with the “uncanny valley” hypothesis, which states that human replicas which don’t quite appear human can create an eery sensation in onlookers. The concept was first suggested by the Japanese robotics professor Masahiro Mori, referring to the unintended creepiness of humanoid robots. As Haines noted, text recognition doesn’t quite come with the same uncanny valley as attempts to recreate human faces, but the brain is still keenly aware of discrepancies which highlight the would-be lifelike as artificial.


“It’s all about hiding the patterns from the human,” he said. “If you add enough randomness it’s okay. But the moment you have a pattern in there, the human brain can spot it immediately. Consistent spacing, letters that are too exactly similar to each other… that kind of thing ruins the illusion incredibly quickly.”

So what kind of applications does a tool like this have? Some are as frivolous as you might expect — although it’s easy to imagine them being used. For example, a service like Amazon or a flower delivery company could utilize the technology so that people could write gift cards in their own writing, rather than the standard banal Arial typeface. It could even be possible to use the handwriting of an historic figure: perhaps opening up a slew of intriguing licensing situations.

But other applications are more profound.

“It could be very useful for people with disabilities,” Haines continued. “Certain disabilities, such as strokes, can leave people unable to write by hand. Because of the highly personal value of handwriting, they may find significant value in being able to generate new letters in their own handwriting.”

As to the risk of potential forgeries, Haines told Digital Trends that it depends who the fake would be aimed at. “I can tell real from fake, and I believe that forensic document examiners will also be able to tell real from fake,” he said. “It might get past a forensic examiner if they were under time pressure, but I can’t be sure. [That] would need a proper experiment to determine … On the other hand, we demonstrated that it fools the untrained eye, so there is a risk of fooling ‘normal’ people.”

Emerging Tech

A.I.-generated text is supercharging fake news. This is how we fight back

A new A.I. tool is reportedly able to spot passages of text written by algorithm. Here's why similar systems might prove essential in a world of fake news created by smart machines.
Movies & TV

Stay inside this winter with the best shows on Hulu, including 'Legion'

It's often overwhelming to navigate Hulu's robust library of TV shows. To help, we put together a list of the best shows on Hulu, whether you're into frenetic cartoons, intelligent dramas, or anything in between.
Movies & TV

The best shows on Netflix right now (March 2019)

Looking for a new show to binge? Lucky for you, we've curated a list of the best shows on Netflix, whether you're a fan of outlandish anime, dramatic period pieces, or shows that leave you questioning what lies beyond.
Movies & TV

The best movies on Netflix in March, from Buster Scruggs to Roma

Save yourself from hours wasted scrolling through Netflix's massive library by checking out our picks for the streamer's best movies available right now, whether you're into explosive action, witty humor, or anything else.
Emerging Tech

Opportunity’s final image is a haunting panorama of the Martian surface

The Opportunity mission to Mars may be no more, but the rover's legacy lives on. Now NASA has released the final image captured by Opportunity, and it's a stunning panorama of the Martian surface.
Emerging Tech

A lunar time capsule: 50-year-old moon rock samples to be opened for study

Nearly 50 years after the Apollo missions to the Moon, NASA is breaking open samples of Moon rock for the first time. Samples collected from Apollo missions 15, 16, and 17 have been preserved and never before exposed to Earth's atmosphere.
Emerging Tech

Awesome Tech You Can’t Buy Yet: Write music with your voice, make homemade cheese

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!
Emerging Tech

Gorgeous image of the Cosmic Bat nebula leaves us starry-eyed

The "Cosmic Bat" nebula has been captured in beautiful detail by the European Southern Observatory. Formally known as NGC 1788, the nebula is two thousand light-years away in a dark corner of the Orion constellation.
Emerging Tech

Super telescope captures supermassive black holes forming billions of years ago

The Subaru Telescope in Hawaii has captured evidence of supermassive black holes forming in the ancient universe. Astronomers discovered 83 quasars powered by supermassive black holes from billions of years ago.
Emerging Tech

Mind-bending model shows Venus isn’t our nearest neighbor — it’s Mercury

Every textbook and table on the internet agrees -- the closest planet to Earth is Venus. But a new mathematical model shows that this is wrong. In fact, the planet closest to us on average is Mercury.
Emerging Tech

Desk lamps take on a new task by converting their light to power

What if we could charge devices using light from indoor sources like desk lamps? A group of scientists working on a technology called organic photovoltaics (OPVs) aim to do just that.
Emerging Tech

Body surrogate robot helps people with motor impairments care for themselves

A team from Georgia Tech has come up with an assistant robot to help people who have severe motor impairments to perform tasks like shaving, brushing their hair, or drinking water.
Emerging Tech

New Hubble image displays dazzling Messier 28 globular cluster

Messier 28 is a group of stars in the constellation of Sagittarius, located 18,000 light-years from our planet. Thousands of stars are packed tightly together in this sparkling image.
Emerging Tech

Cosmic dust bunnies: Scientists find unexpected ring around Mercury

A pair of scientists searching for a dust-free region near the Sun have made an unexpected discovery: a vast cosmic dust ring millions of miles wide around the tiny planet Mercury.