Skip to main content

Bacteria Learn and Store Memories Like AI Neural Networks

E. coli use ribosomes to help them store memories of past experiences and adapt to future environmental changes in a similar way to artificial intelligence systems.

Written byShiladitya Banerjee, PhDBrought to you byThe Conversation
| 4 min read
E. coli bacterial cells are shown in red over a blue-white background.
Register for free to listen to this article
Listen with Speechify
0:00
4:00

Learning is often thought to require a brain. But learning is a broad concept that does not necessarily depend on neurons.1,2

If an organism uses information from past experiences to shape its future decisions, it is also learning.3

Research from my lab, published in the journal PRX Life, shows that even a single bacterium can learn from experience, store memories of the past and use those memories to prepare for the future.4

Keeping Track of Nutrients

Bacteria live in environments that change constantly and on many different timescales.5 In the human gut, for example, nutrient levels go up and down, temperatures shift and antibiotic threats come and go.

To survive, a bacterium has to respond quickly to what is happening right now while still preserving useful information about what it recently experienced. Adapting too quickly leaves the bacterium vulnerable to changing conditions, while forgetting too readily makes it unable to anticipate a recurring threat.

How does a bacterium manage this balancing act? This question interested me as a computational biophysicist who studies how living systems process information and adapt to changing environments.

To investigate whether single-celled organisms such as bacteria can learn from past experience, my colleagues and I used what’s called a microfluidic device to track the behavior of tens of thousands of individual E. coli cells as we switched their nutrient supply on and off at different rates.6

Microscopy image of a cluster of rod-shaped bacteria rising up from a surface in a cluster
E. coli can grow at remarkable rates. Eric Erbe, Christopher Pooley/USDA

We found that bacteria not only react to current nutrient levels in their environment, they also keep track of their nutrient history to cope with changing conditions.4

Continue reading below...

Like this story? Sign up for FREE Microbiology updates:

Latest science news storiesTopic-tailored resources and eventsCustomized newsletter content
Subscribe

If the bacteria were simply reacting to their present environment, they would respond to a sudden pulse of food in exactly the same way, regardless of whether their previous environment was stable or rapidly fluctuating. Instead, when exposed to the same influx of nutrients, bacteria that had just experienced a feast-and-famine environment adapted much faster than bacteria coming from a stable environment.

Because the immediate conditions were identical for both bacteria, we reasoned that the difference in their behavior must originate from a stored internal record of their past rather than a simple reaction to their present.

In other words, the bacteria’s past experiences were shaping their present behavior – they were learning.

Where Bacteria Store Memory

But where were these cells storing this information?

To better understand how bacteria were responding to changes in their nutrient environment, my team and I constructed a mathematical model of the internal molecular network that controls bacterial growth.4 Our model not only reproduced how bacteria behaved under different nutrient environments, but also revealed where their memory likely resides.

Our model pointed to a component of cells called ribosomes as a potential memory storage site. Ribosomes are the molecular factories of cells, building proteins and setting how fast a cell grows.7 Because bacterial memory revealed itself to us as changes in growth rate, our model located the source of this memory within the factories that determine growth. No other component we tested in the model reproduced this behavior.

Some ribosomes responded quickly to nutrient changes, while others changed more slowly. We reasoned that the fast responders track what’s happening in the present, while the slow responders retain traces of the past. Together, they give the cell a memory that spans many timescales, from minutes to hours.

Bacteria and AI Systems

Using our mathematical model, we found that this molecular system follows the same basic computational logic as a gated recurrent neural network: a type of artificial intelligence used to process sequences such as speech and sensor data.8

Key to this process is what computer scientists call a gate – that is, a molecular switch that decides how much of an existing memory to keep and how much to overwrite when new information arrives. Cells hold onto memory at a cost, because maintaining readiness to adapt comes at the expense of growth. If a bacteria is spending its energy adapting to its current environment, it has less resources to spend on growth. Bacteria use molecular gates to actively tune how much to retain and how much to discard.

What is a neural network, and how does it “learn”?

Modern AI systems rely on gates to remember important details while staying flexible enough to learn something new.9 In the bacterium, the gate is not built from software but from the chemistry within the cell.

This strategy also helps solve a problem familiar to AI researchers: how to learn something new without erasing what was learned before.10 Bacterial cells balance memory and flexibility by storing information across many timescales. This kind of history-dependent computation does not require neurons. Instead, our study showed that a network of ribosome populations is sufficient.

Long before people built artificial intelligence, bacteria had already evolved a remarkably similar strategy for using the past to prepare for the future.

Using Bacterial Memory

Using the broadest definition of learning, our findings show that memory and learning can emerge from chemical networks in a cell, with no brain or neurons of any kind.

Our work also reveals an unexpected connection between biology and artificial intelligence. For biology, our mathematical model provides a precise, quantitative language for describing how cells process information and make decisions. For artificial intelligence, it offers a biological blueprint for building systems that can learn continuously under tight energy constraints.

These findings could also have implications for medicine. Many pathogenic bacteria survive by adapting to changing conditions inside the body.11 If this adaptability depends on cellular memory, then future drugs to treat infection could disrupt the molecular components that allow cells to store and use information about their environment.The Conversation

Shiladitya Banerjee, Associate Professor of Physics, Georgia Institute of Technology

This article is republished from The Conversation under a Creative Commons license. Read the original article.

Add The Scientist as a preferred source on Google

Add The Scientist as a preferred Google source to see more of our trusted coverage.

Meet the Author

  • Shiladitya Banerjee wears a blue shirt in a headshot photo.

    Shila's research sits at the interface of statistical physics, soft matter, and biology. He develops quantitative theories of how living cells and organisms generate forces, change shape, grow, and adapt to environmental changes.

    Before joining Georgia Tech in 2025, Shila was a faculty member at Carnegie Mellon University (2020–2024) and University College London (2016–2020), and did his postdoctoral work at the University of Chicago (2013–2016).

    View Full Profile

Related Topics

You might also be interested in...
Loading Next Article...
You might also be interested in...
Loading Next Article...
The Scientist October Digest cover
October 2026

Antarctica’s Blood Falls Teems With Mysterious Microbial Life

Miles away from the closest ocean, marine microbes thrive in the red ice and mud around Blood Falls, offering clues to microbial adaptation and past climate events.

View this Issue
Evaluating Blood Biomarkers for Alzheimer’s Disease Staging

Evaluating Blood Biomarkers for Alzheimer’s Disease Staging

​Beckman Coulter
Find better biologics faster with Stunner and the AI Developability Workcell

Find better biologics faster with Stunner and the AI Developability Workcell

Unchained Labs
An image of microcentrifuge tubes arranged within colorful laboratory racks.

Choose clarity. Choose speed. Choose MyMass™

Refeyn
Characterizing LNP Heterogeneity With Super-Resolution Imaging

Characterizing LNP Heterogeneity With Super-Resolution Imaging

Oni

Products

Stellaromics Logo

Stellaromics Expands Pyxa Adoption as Instruments are Installed at Leading Research Institutions Across the U.S. and EuropeStellaromics, Inc., the leader in 3D

A monoclonal antibody surrounded by immune cells and red blood cells

CellRaft AIR: Find the Right Antibody-Producing Cells Faster

Cell Microsystems
Maxwell® Rapid ccfDNA Kit

Maxwell® Rapid ccfDNA Kit: Automated Purification of ccfDNA in Under 30 Minutes

Promega
Leica Biosystems, Tempus, and Paige logos side by side, marking the addition of Paige digital pathology AI tools to the Aperio AI Store.

Oncology Researchers Gain AI Cancer Tools in One Platform