A genetically encoded local learning rule enables physical learning in engineered bacteria

This paper demonstrates that engineered *E. coli* can implement a genetically encoded local learning rule using plasmid copy-number ratios as persistent memory, enabling physical learning and supervised adaptation in single and multicellular bacterial populations for applications ranging from logic gates to autonomous biological hardware.

Prakash, S., Varela, C., Walsh, M., Galizi, R., Isalan, M., Jaramillo, A.

Published 2026-03-19
📖 5 min read🧠 Deep dive
⚕️

This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

Imagine you have a team of tiny, microscopic robots (bacteria) that you want to teach how to play a game, like Tic-Tac-Toe. Usually, to teach a robot, you have to program it with a computer, telling it exactly what to do. But what if you could teach the robots themselves to learn by changing their own internal "software" based on their mistakes?

This paper describes a breakthrough where scientists engineered bacteria to do exactly that. They created a system where the bacteria can learn, remember, and adapt just like a brain, but entirely inside living cells.

Here is the simple breakdown of how they did it, using some fun analogies:

1. The "Memory" is a Jar of Marbles

Think of a single bacterium as a tiny factory. Inside this factory, the scientists put two different types of "machines" (plasmids, which are small loops of DNA).

  • Machine A (Red) represents one option.
  • Machine B (Green) represents another option.

The "weight" or "memory" of the bacteria isn't a single number; it's the ratio of Red machines to Green machines.

  • If you have 90% Red and 10% Green, the "memory" is strong for Red.
  • If you have 50/50, the memory is undecided.

Because bacteria reproduce, they pass these machines down to their children. Over time, the whole population of bacteria holds a specific "opinion" (a mix of Red and Green) that acts as their memory.

2. The "Learning Rule": The Punishment Game

How do you teach them? The scientists used a clever trick involving Kanamycin, an antibiotic that acts like a "punishment signal."

Here is the rule they programmed:

  • The Setup: The "Green Machine" is equipped with a shield (a resistance gene) that protects the bacteria from the punishment. The "Red Machine" does not have this shield.
  • The Trigger: The bacteria are only allowed to build the shield if they are "active" (meaning they are responding to a specific chemical signal, like a smell or a taste).
  • The Lesson: When the scientists add a tiny, non-lethal dose of the antibiotic (the punishment), the bacteria that have built the shield (the Green ones) survive and multiply. The ones without the shield (the Red ones) struggle or die.

The Result: If the bacteria were "active" and made a mistake, the punishment signal causes the population to shift. The "Green" machines take over, and the "Red" machines disappear. The bacteria have physically rewritten their own memory to avoid that mistake next time.

3. Why is this "Local Learning"?

In normal computer learning (like AI), a central brain calculates the error and sends a message back to every single part of the network to fix it. This is hard to do in biology.

In this system, the learning is local.

  • Imagine a classroom of students. The teacher (the antibiotic) yells, "If you were talking, sit down!"
  • The students who were talking (active bacteria) hear the yell and sit down (change their internal ratio).
  • The students who were quiet don't even notice the teacher. They keep doing what they were doing.
  • No one needs to tell each student individually what to do. The rule is built into the students themselves.

4. The Big Experiments

The team tested this in three cool ways:

  • The Single Cell Test: They showed that a single strain of bacteria could learn to change its "opinion" (the ratio of Red to Green) when punished, and it learned faster if it was more confused (had a wider mix of machines) to begin with.
  • The Tic-Tac-Toe Tournament: They created a "team" of 9 different bacterial strains, each representing a square on a Tic-Tac-Toe board. They played against a random opponent. Every time the bacteria lost a game, they applied the punishment signal to the specific squares that made the bad move. Over several rounds, the bacteria "learned" the game and started winning more often, all without a computer telling them the moves.
  • The XOR Gate: They built a logic gate (a basic computer circuit) that is notoriously hard for simple systems to solve. By mixing different types of bacterial "promoters" (switches), they successfully created a biological computer that could solve complex logic puzzles.

5. Why Does This Matter?

This is a huge step toward biological computing.

  • Self-Healing: Unlike silicon chips, these bacteria can repair themselves and grow.
  • Adaptability: They can learn from their environment in real-time.
  • Future Medicine: Imagine bacteria inside your body that can "learn" to detect a disease and adjust their behavior to fight it, or sensors that adapt to pollution levels without needing a battery or a computer.

In a nutshell: The scientists turned bacteria into tiny, living neural networks. They gave the bacteria a way to store memories as DNA ratios and a way to "punish" themselves into learning. It's like teaching a dog a trick, but instead of a treat, the dog changes its own DNA to remember the lesson forever.

Get papers like this in your inbox

Personalized daily or weekly digests matching your interests. Gists or technical summaries, in your language.

Try Digest →