As a rule of thumb, having your head lopped off Ned Stark-style is obviously not a good look if you would like to continue living. One of the more unique exceptions to this rule is the humble planarian, a tiny, freshwater flatworm with the rare ability to regrow its head once it has been decapitated.

The planarian's ability to regenerate its vitals is remarkable, even by worm standards. As Elizabeth Preston at Inkfish notes, "The whole body can regrow, head to eyespots to tail, from even a tiny fragment of the original animal."

Its enviable healing powers include growing a new brain. As far back as the '60s, researchers have been curious about whether the worm could resurrect lost memories, but the original research was riddled with inconsistencies.

Enter a new study from Tufts University. For this experiment, a team of biologists trained the tiny worms (just 1 cm each) to find food hidden in the center of a rough-bottomed petri dish. The meal was lit up by a bright beam of light. Since planarians prefer to skulk around the outskirts where it's dark, this helped ensure that the worms were learning new behaviors.

The team also employed video-tracking technology to confirm what they were seeing with their own eyes: Planarians acquainted with the petri dish's rough terrain found the brightly lit food quicker than their peers. What's more, they were able to do so easily when they were removed from the dish and returned two weeks later for a new test. (Which is about the length of time it takes for them to regrow their heads.)

Then they were decapitated.

After 14 days of literally losing their minds, the worms, new brains and all, were placed back in the rough-bottomed petri dish with the bright light shining down on their lunch.

Though they weren't able to wriggle their way to the food right away, they were able to easily find food again after one quick training session — much faster than their non-trained peers, in fact.

"[D]ecapitated planaria exhibit evidence of memory retrieval in a savings paradigm after regenerating a new head," write the study's authors. As for where those memories were stored or how the worms were able to quickly relearn old behaviors — it's tough to say.

According to The Verge, some researchers think that the worms' memories may be stored elsewhere in their body, or alternatively that "the worms' original brain may have modified their nervous systems, and their nervous systems may have then altered how the new brains formed during regrowth."

A fallen lord of Westeros should be so lucky.