A biofilm is a structured community of bacteria encased in a self-produced extracellular polymeric substance (EPS) matrix, attached to a surface. Biofilm formation proceeds through five distinct stages: (1) reversible attachment of planktonic (free-floating) bacteria to a surface; (2) irreversible attachment mediated by adhesins and pili; (3) microcolony formation as bacteria divide and begin EPS production; (4) maturation into a complex three-dimensional architecture with water channels; and (5) dispersal, in which subpopulations detach and colonise new surfaces. The critical trigger for commitment to the biofilm lifestyle is quorum sensing: bacteria secrete autoinducer signalling molecules (dA/dt = production − dilution − degradation), and when the concentration exceeds a threshold, biofilm genes are switched on collectively.
The simulation models autoinducer dynamics, nutrient-driven bacterial growth and EPS accumulation, shear-stress-dependent detachment from flow, and antibiotic killing. Key parameters include flow rate (which dilutes autoinducers), nutrient concentration (drives growth), quorum sensing threshold, and antibiotic concentration. The resistance factor shows that mature biofilm bacteria can be 10–1000× more antibiotic-tolerant than their planktonic counterparts — a major clinical challenge.
Why are biofilms so resistant to antibiotics?
Biofilm antibiotic tolerance arises from multiple mechanisms working together: the EPS matrix acts as a physical barrier that slows antibiotic diffusion into the biofilm; cells in the deeper, nutrient-poor zones enter a slow-growing or dormant "persister" state that antibiotics cannot kill (most antibiotics target active growth processes); and the high cell density within biofilms facilitates horizontal gene transfer of resistance genes between cells. Together these mechanisms can raise the minimum inhibitory concentration by 100–1,000 fold.
What is quorum sensing?
Quorum sensing is a bacterial communication system that uses diffusible chemical signals called autoinducers (AIs) to coordinate behaviour at the population level. Each bacterium produces and secretes AIs; when the local AI concentration exceeds a threshold, it activates a set of genes collectively. In biofilm formation, quorum sensing triggers EPS production, upregulation of surface adhesins, and biofilm maturation genes — ensuring these energetically costly behaviours are only activated when sufficient cells are present to benefit from them.
What is EPS and what does it do?
Extracellular polymeric substance (EPS) is a complex mixture of polysaccharides, proteins, nucleic acids, and lipids secreted by biofilm bacteria. EPS typically makes up 50–90% of the total biofilm dry mass. It acts as structural scaffold, provides mechanical stability, retains water (preventing desiccation), binds nutrients and ions, protects against UV radiation and biocides, and mediates cell–cell communication. The EPS composition is species-specific — Pseudomonas aeruginosa produces alginate, while Staphylococcus epidermidis produces polysaccharide intercellular adhesin (PIA).
Flow rate has opposing effects on biofilm formation. At low flow, autoinducer molecules accumulate to high concentrations, promoting quorum sensing and biofilm commitment. But planktonic bacteria are less likely to encounter and adhere to the surface in very still conditions. At intermediate flow rates, bacteria are transported to surfaces efficiently but autoinducers are not completely diluted. Very high flow (high shear stress) physically tears bacteria from the surface during reversible attachment stages, preventing colonisation and removing mature biofilm structures.
Biofilms are implicated in approximately 80% of chronic and recurrent bacterial infections. They form on implanted medical devices (heart valves, catheters, joint prostheses), causing device-related infections that are extremely difficult to treat without removing the device. Chronic wound infections, otitis media (middle ear infection), chronic rhinosinusitis, and Pseudomonas aeruginosa lung infections in cystic fibrosis patients are all biofilm-associated. Dental plaque is the most familiar example of a biofilm, and its formation leads to tooth decay and periodontal disease.
Dispersal (Stage 5) occurs when cells within the mature biofilm sense environmental signals — nutrient depletion, accumulation of waste products, or specific signalling molecules like c-di-GMP — and actively detach as free-swimming planktonic cells. Dispersal is not random breakdown but a regulated developmental transition that enables colonisation of new surfaces. Dispersed cells are transiently hyper-virulent compared to both planktonic and biofilm cells, making the dispersal phase clinically dangerous in chronic infections.
Antibiotics that are effective against planktonic bacteria (low QS threshold stage) fail progressively as the biofilm matures. In the simulation, the resistance factor = EPS × 0.9 + 0.1, so bacteria with EPS coverage near 100% are almost completely protected. Novel anti-biofilm strategies target quorum sensing itself (quorum quenching), using enzymes or small molecules that degrade autoinducers before they reach the threshold, preventing biofilm commitment in the first place.
Yes — biofilms are not inherently harmful and play essential roles in many ecosystems and industries. Wastewater treatment relies on biofilm reactors (trickling filters, moving bed biofilm reactors) where beneficial bacteria degrade organic waste. Biofilms on river stones form the base of aquatic food webs. The human gut microbiome forms protective biofilms on intestinal mucosa. Fermentation processes for vinegar, cheese, and beer use biofilms on various substrates. The same properties that make pathogenic biofilms hard to remove make beneficial biofilms persistent and efficient.
Nutrient availability shapes biofilm morphology dramatically. In high-nutrient environments, biofilms grow as flat, dense sheets. At intermediate nutrient concentrations, mushroom-shaped microcolonies develop with water channels between them, maximising nutrient access to interior cells. Under nutrient limitation, biofilms form thinner, rougher structures with high surface-area-to-volume ratios. The simulation models this through the nutrient parameter's effect on growth rate (nutrient × 0.1 per time step) and division probability (0.02 × nutrient).
Current anti-biofilm approaches include: physical disruption by ultrasound or laser (breaks the EPS matrix); enzymatic degradation of EPS by DNase, dispersin B, or proteases; anti-quorum sensing compounds that block autoinducer receptors (e.g., halogenated furanones); nitric oxide-triggered dispersal at sub-inhibitory concentrations; bacteriophage therapy using phages that produce biofilm-specific enzymes; and materials science approaches (nano-coatings, anti-fouling surfaces) that prevent initial attachment. No single approach is universally effective, reflecting the diversity of biofilm biology.
This simulation models the five-stage life cycle of a bacterial biofilm: reversible attachment, irreversible attachment, microcolony formation, maturation and dispersal. Commitment to each stage is driven by quorum sensing — bacteria secrete autoinducer molecules whose concentration follows dA/dt = production − dilution − degradation, and once that concentration crosses a threshold, biofilm genes switch on collectively. Attached cells then accumulate extracellular polymeric substance (EPS), the matrix that gives biofilms their structure and their notorious antibiotic tolerance. Flow, nutrient supply and antibiotic dosing all interact with this quorum-sensing switch to shape how — and how fast — the biofilm develops.
Individual bacteria on the surface view: blue dots are free-floating (planktonic) cells, orange dots have attached but not yet joined the biofilm, and green dots are committed biofilm cells whose size and EPS halo grow with their EPS output. The time-series plot tracks biomass and autoinducer concentration together, whilst the stage badge and quorum-sensing indicator show exactly when the population crosses into each of the five stages.
Adjust Flow rate/shear stress to dilute autoinducer and physically detach cells, Nutrient concentration to drive growth and division, and the QS threshold to raise or lower the bar for triggering biofilm genes. Increase Antibiotic conc. to kill planktonic cells quickly whilst watching EPS-rich biofilm cells survive far longer. Use Reset Simulation to restart from a fresh surface, or Pause to freeze the current state and study it.
Biofilms are implicated in roughly 80% of chronic and recurrent bacterial infections, and mature biofilm bacteria can tolerate antibiotic concentrations 10–1,000 times higher than their free-floating counterparts — not through resistance genes alone, but through the EPS barrier and dormant "persister" cells that antibiotics cannot kill.
Attached bacteria only commit to the biofilm lifestyle once the local autoinducer concentration exceeds the QS threshold slider. In the model this depends on nutrient supply (which drives autoinducer production) and flow rate (which dilutes it away), so low flow and high nutrients speed up quorum sensing and biofilm commitment.
In the simulation, resistance factor equals EPS coverage times 0.9 plus 0.1, so a cell with no EPS is barely protected while one approaching full EPS coverage is almost completely shielded from the modelled antibiotic. This mirrors the real biology, where the EPS matrix slows antibiotic diffusion and shelters dormant persister cells deep within the structure.
It has two opposing effects: higher flow dilutes autoinducer faster, delaying quorum sensing, but very high flow also raises the chance that attached bacteria are physically torn away before they mature into biofilm. Low flow lets autoinducer build up quickly but reduces how often free-floating bacteria encounter the surface in the first place.
Autoinducer concentration responds almost immediately to production, dilution and degradation, so it can rise and fall within a few time steps. Biomass only grows once cells have attached, aged past the quorum-sensing check, and started dividing, so it lags noticeably behind the autoinducer curve and falls off only during the dispersal stage.
Yes. Once biomass exceeds the dispersal-stage threshold, individual biofilm cells occasionally detach and rejoin the planktonic pool, mimicking real dispersal. Antibiotic treatment also removes cells directly, and unattached bacteria can be swept away by flow before they ever join the biofilm, so the population is never purely one-directional.