homehome Home chatchat Notifications


Decisions are reached in the brain by the same method used to crack the Nazi Enigma code

The highlight of the award winning film, "The Imitation Game", is when Alan Turing and colleagues devise an ingenious statistical method that eventually helped decipher the Nazis' Enigma code. This breakthrough allowed Allied intelligence to read previously unavailable German military positions and actions, vastly shortening World War II. Interestingly, a team of neuroscientists at Columbia University found that more or less the same statistical method applied by Turing and co. is used by the brain to make any kind of decision, be it going left instead of right in an intersection or placing a higher bet during a high raise power game instead of folding.

Tibi Puiu
February 25, 2015 @ 8:58 am

share Share

The highlight of the award winning film, “The Imitation Game”, is when Alan Turing and colleagues devise an ingenious statistical method that eventually helped decipher the Nazis’ Enigma code. This breakthrough allowed Allied intelligence to read previously unavailable German military positions and actions, vastly shortening World War II. Interestingly, a team of neuroscientists at Columbia University found that more or less the same statistical method applied by Turing and co. is used by the brain to make any kind of decision, be it going left instead of right in an intersection or placing a higher bet during a high raise power game instead of folding.

Enigmatic Brain

Alan Turing Enigma

Image: BBC

German military messages enciphered on the Enigma machine were first broken by the Polish Cipher Bureau, beginning in December 1932. Later versions, however, were of increased complexity and by the time the war broke out, cracking Enigma proved to be a cumbersome riddle. But while the machine was great at encrypting messages, its operators were not necessarily so. The British intelligence had their breakthrough after they systematically exploited German Enigma operator flaws. For instance, the Nazis had the bad habit of broadcasting messages which began with the same text, depending on the situation, like ‘The weather report for today is’. Knowing this, they could take the coded text and know how the first characters would decode. With the knowledge that no letter encrypted could be the same letter decrypted, the number of combinations possible was massively reduced.

Even so, the volume of work needed to break the codes by brute force alone was immense. It simply took too much time. Time they didn’t have. Eventually, Turing employed several statistical techniques to crack Enigma like Banburismus, which is a highly intensive, Bayesian system that allowed Turing and colleagues to guess a stretch of letters in an Enigma message, measure their belief in the validity of these guesses – using Bayesian methods to assess the probabilities – and add more clues as they arrived. Basically, this statistical test decided if two messages were similar enough then decide if these formed a pair, or not.

The animated GIF below gives you an idea of how the system worked. Corresponding pairs of letters from the two messages are aligned one above the other. At first glance, it all looks like gibberish, but the British WWII researchers knew they could preserve the matching probabilities of the original messages, as some letters are more common than others. So in any two messages, any matching pairs of letter were given a positive value and unmatched ones a negative value. When a positive threshold was researched, the code was deemed broken.

tuiring test

Michael Shadlen, MD, PhD, professor of neuroscience at Columbia draws an interesting parallel between the process employed in solving Enigma and the way the brain fires neurons to reach a decision. His team recorded the activity of neurons in the brains of two monkeys as they made a simple decision: choose between two spots for a reward. The decision had to be made fast, since the symbols – right and decoys – appeared in short 250 millisecond-long sequences. To reach the correct decision, the monkeys had to weigh different clues encoded in the symbols that flashed onto the screen. Some of the eight symbols were unreliable clues about the reward’s location; others were more dependable.

Meanwhile, researchers studied how the monkeys’ brains came to a decision by studying the neural activity. If a symbol was tied to a reward it would be assigned a positive value. Conversely a symbol was assigned a negative value if it wasn’t associated to a reward. Together, these amounted to the accumulated evidence range which was represented in the neuron’s firing rate. The more reliable the symbols were, the larger the impact on the firing rate. So, just like in Turing’s test once a positive – or negative, for that matter – threshold was reached, the monkey would come to a decision. The findings appeared in the journal Neuron.

Shadlen believes it’s sensible to claim the human brain works much in the same way to come to a decision.

“It’s the basis of a very basic kind of rationality,” he says.

“They’re decisions like, ‘I’m going to pick up a book,’ or ‘I’m going to walk toward the left of the coffee table, not the right,’” Dr. Shadlen adds.

“We make lots of these decisions every day, and it turns out, we’re making them by using the laws of probability in a way that statisticians think is optimal.”

I think we all knew all along there’s an ‘enigma’ tucked inside our minds somewhere. Now we know you can break it – you just need the right code.

share Share

A Fossil So Strange Scientists Think It’s From a Completely New Form of Life

This towering mystery fossil baffled scientists for 180 Years and it just got weirder.

ChatGPT Seems To Be Shifting to the Right. What Does That Even Mean?

ChatGPT doesn't have any political agenda but some unknown factor is causing a subtle shift in its responses.

This Freshwater Fish Can Live Over 120 Years and Shows No Signs of Aging. But It Has a Problem

An ancient freshwater species may be quietly facing a silent collapse.

The US wants to know if researchers in other countries follow MAGA doctrine

Science and policy are never truly free from one another. But one country's policy doesn't typically cross borders.

A Week of Cold Plunges Could Help Your Cells Fight Aging and Disease

Cold exposure "trains" cells to be more efficient at cleaning themselves up.

England will start giving morning-after pill for free

Free contraception in the UK clashes starkly with the US under Trump's shadow.

Japan’s Cherry Blossoms Are Blooming Earlier Than Ever. Guess Why

Climate change is disrupting natural cycles.

The most successful space telescope you never heard of just shut down

An astronomer says goodbye to Gaia, the satellite that mapped the galaxy.

A Gene-Edited Pig Liver Was Hooked to a Human for 10 Days and It Actually Worked

Breakthrough transplant raises hopes for patients needing liver support or awaiting transplants.

If you use ChatGPT a lot, this study has some concerning findings for you

So, umm, AI is not your friend — literally.