Simulator model card
How the simulator works, every number in it, and what it cannot do.
Not yet clinically reviewed
This is a teaching model. Its constants were chosen by hand to produce a recognisable pattern. They were not fitted to patient data or validated, so it cannot predict a flare, a response or an outcome.
None of the numbers on this page was taken from a published study or fitted to data. “Chosen by hand” means the value was picked while building the simulator so that it behaves in a recognisable way. Where papers are cited, they support an idea or a name, not a value.
What the model represents
A qualitative story from the research literature: a weakened lining lets microbes reach the tissue, the immune system reacts, the reaction can keep itself going, and inflammation spreads upward from the rectum. Susceptibility (s, from 0 to 1) stands for the genetic and environmental tendency for inflammation to sustain itself and for the lining to repair slowly.
State variables
Four numbers, each from 0 to 1, in model units. They are not clinical measurements.
- B
- : Barrier integrity: mucus and lining cells. Starts at 1.
- M
- : Microbial exposure of the tissue. Starts at 0.
- I
- : Immune inflammation. Starts at 0.
- E
- : Extent: how far up the colon from the rectum. Starts at 0.
Equations
dM/dt = leak · (1 − B) + trigger − clearance · M
dI/dt = (activation · M + a(s) · I² / (K² + I²)) · (1 − I) − resolution · I
dB/dt = repair(s) · (1 − B) − damage · I · B
dE/dt = spread · (I − θ) · (1 − E) when I > θ
dE/dt = retreat · (I − θ) · E otherwise
a(s) = amplificationBase + amplificationBySusceptibility · s
repair(s) = repair · (1 − repairLossBySusceptibility · s)
trigger = sum over active triggers of size · triggerStrength
K = halfSaturation
θ = spreadThreshold
A treatment's level at day t, once started:
level = strength · (1 − e^(−(min(t, stop) − start) / onsetDays))
· e^(−(t − stop) / washoutDays) after it stops
Each affected constant is multiplied by 1 + (multiplier − 1) · level.Solved in fixed steps (Euler's method) with values held between 0 and 1. The loop term uses a power of 2, chosen by hand to give a threshold-like response.
Constants
| Name | Value | What it does | Source for the value |
|---|---|---|---|
| leak | 0.1 | How fast microbial exposure rises as the barrier is lost, per day. | Chosen by hand |
| clearance | 0.5 | Share of microbial exposure cleared, per day. | Chosen by hand |
| activation | 0.3 | How strongly microbial exposure drives inflammation, per day. | Chosen by hand |
| amplificationBase | 0.04 | Strength of the self-sustaining immune loop at zero susceptibility, per day. | Chosen by hand |
| amplificationBySusceptibility | 0.24 | Extra loop strength at full susceptibility, per day. | Chosen by hand |
| halfSaturation | 0.3 | Inflammation level at which the loop works at half strength. | Chosen by hand |
| resolution | 0.12 | Share of inflammation that resolves, per day. | Chosen by hand |
| repair | 0.1 | Share of lost barrier repaired, per day. | Chosen by hand |
| repairLossBySusceptibility | 0.4 | Share of repair lost at full susceptibility. | Chosen by hand |
| damage | 0.08 | How strongly inflammation damages the barrier, per day. | Chosen by hand |
| triggerDays | 10 | How many days a trigger lasts. | Chosen by hand |
| triggerStrength | 0.25 | Microbial exposure added per day by a trigger of size 1. | Chosen by hand |
| spreadThreshold | 0.15 | Inflammation level above which extent grows and below which it shrinks. | Chosen by hand |
| spread | 0.025 | How fast extent grows up the colon above the threshold, per day. | Chosen by hand |
| retreat | 0.3 | How fast extent shrinks below the threshold, per day. | Chosen by hand |
| washoutDays | 14 | How many days a stopped treatment's effect takes to fall to about a third. | Chosen by hand |
| step | 0.1 | Time step of the calculation, in days. | Chosen by hand |
How treatments act
Each family multiplies some constants. The multipliers apply at full strength and full onset. The sources support the mechanism and the direction of effect, not the numbers, so the simulator cannot be used to compare drugs.
5-ASA
Acts mainly on the lining itself. In this model it mildly damps inflammation and helps the barrier repair.
| Name | Value | What it does | Source for the value |
|---|---|---|---|
| aminosalicylate.onsetDays | 14 | Days for about two thirds of the effect to build up. | Chosen by hand |
| aminosalicylate.amplification | 0.75 | Multiplies amplification. | Chosen by hand |
| aminosalicylate.repair | 1.5 | Multiplies repair. | Chosen by hand |
Sources for mechanism and direction
- Oral 5-aminosalicylic acid for induction of remission in ulcerative colitis (external) Cochrane Database of Systematic Reviews, 2020
- Oral 5-aminosalicylic acid for maintenance of remission in ulcerative colitis (external) Cochrane Database of Systematic Reviews, 2020
Corticosteroids
Broad, fast immune suppression, used short term because of side effects. In this model it acts within days but slightly slows repair.
| Name | Value | What it does | Source for the value |
|---|---|---|---|
| corticosteroid.onsetDays | 3 | Days for about two thirds of the effect to build up. | Chosen by hand |
| corticosteroid.amplification | 0.2 | Multiplies amplification. | Chosen by hand |
| corticosteroid.resolution | 1.4 | Multiplies resolution. | Chosen by hand |
| corticosteroid.repair | 0.7 | Multiplies repair. | Chosen by hand |
Sources for mechanism and direction
- ACG Clinical Guideline Update: Ulcerative Colitis in Adults (external) American Journal of Gastroenterology, 2025
Cytokine signal blockers
Block the chemical messages immune cells use to keep each other switched on. In this model they weaken the self-sustaining loop.
| Name | Value | What it does | Source for the value |
|---|---|---|---|
| cytokine.onsetDays | 10 | Days for about two thirds of the effect to build up. | Chosen by hand |
| cytokine.amplification | 0.15 | Multiplies amplification. | Chosen by hand |
| cytokine.activation | 0.5 | Multiplies activation. | Chosen by hand |
Sources for mechanism and direction
- AGA Living Clinical Practice Guideline on Pharmacological Management of Moderate-to-Severe Ulcerative Colitis (external) Gastroenterology, 2024
- Infliximab for induction and maintenance therapy for ulcerative colitis (external) New England Journal of Medicine, 2005
- Mirikizumab as Induction and Maintenance Therapy for Ulcerative Colitis (external) New England Journal of Medicine, 2023
- Tofacitinib as Induction and Maintenance Therapy for Ulcerative Colitis (external) New England Journal of Medicine, 2017
Immune cell traffic blockers
Keep circulating lymphocytes from reaching the gut. In this model they shrink the self-sustaining loop, building up more slowly.
| Name | Value | What it does | Source for the value |
|---|---|---|---|
| trafficking.onsetDays | 30 | Days for about two thirds of the effect to build up. | Chosen by hand |
| trafficking.amplification | 0.3 | Multiplies amplification. | Chosen by hand |
Sources for mechanism and direction
- Vedolizumab as induction and maintenance therapy for ulcerative colitis (external) New England Journal of Medicine, 2013
- Ozanimod as Induction and Maintenance Therapy for Ulcerative Colitis (external) New England Journal of Medicine, 2021
- Etrasimod as induction and maintenance therapy for ulcerative colitis (ELEVATE) (external) The Lancet, 2023
Microbiome-directed approaches
Aim to change which microbes meet the lining. Human evidence is weak or early; the effect shown here is a hypothesis, not a measured result.
| Name | Value | What it does | Source for the value |
|---|---|---|---|
| microbial.onsetDays | 30 | Days for about two thirds of the effect to build up. | Chosen by hand |
| microbial.leak | 0.5 | Multiplies leak. | Chosen by hand |
| microbial.repair | 1.3 | Multiplies repair. | Chosen by hand |
| microbial.resolution | 1.2 | Multiplies resolution. | Chosen by hand |
Sources for mechanism and direction
- Probiotics for induction of remission in ulcerative colitis (external) Cochrane Database of Systematic Reviews, 2020
- AGA Clinical Practice Guideline on Fecal Microbiota-Based Therapies for Select Gastrointestinal Diseases (external) Gastroenterology, 2024
- Multidonor intensive faecal microbiota transplantation for active ulcerative colitis (external) The Lancet, 2017
Starting scenario
| Name | Value | What it does | Source for the value |
|---|---|---|---|
| scenario.days | 365 | Length of the simulated period, in days. | Chosen by hand |
| scenario.susceptibility | 0.7 | Susceptibility, s. | Chosen by hand |
| scenario.triggerDay | 20 | Day the trigger starts. | Chosen by hand |
| scenario.triggerSize | 0.7 | Size of the trigger, from 0 to 1. | Chosen by hand |
| DEFAULT_STRENGTH | 0.85 | Strength of a newly added treatment. | Chosen by hand |
How the pictures are drawn
These change only what you see. Extent is named with the Montreal classes: E1 up to the end of the rectum, E2 up to the top of the descending colon, E3 beyond. The colon's shape, colours and cell positions are artistic.
| Name | Value | What it does | Source for the value |
|---|---|---|---|
| drawing.quietBelow | 0.05 | Below this inflammation the colon is drawn and described as quiet. | Chosen by hand |
| drawing.minReach | 0.07 | The least of the colon involved once there is any inflammation. | Chosen by hand |
| drawing.fadeLength | 0.08 | Length over which colour fades out above the extent. | Chosen by hand |
| drawing.ulcerEdge | 0.75 | Where ulcer patches begin on the surface texture. | Chosen by hand |
| drawing.ulcerEdgeFall | 0.65 | How much higher intensity widens ulcer patches. | Chosen by hand |
| drawing.ulcerSoftness | 0.25 | Softness of patch edges. | Chosen by hand |
| drawing.ulcerFrom | 0.3 | Intensity below which no ulcer patches show. | Chosen by hand |
| drawing.mucusPower | 2 | Mucus thickness is barrier integrity raised to this power. | Chosen by hand |
| drawing.maxGaps | 10 | Open gaps drawn in a fully lost barrier. | Chosen by hand |
| drawing.bacteriaGain | 5 | Microbial exposure is multiplied by this before bacteria are drawn. | Chosen by hand |
| drawing.maxBacteria | 24 | Most bacteria drawn inside the tissue. | Chosen by hand |
| drawing.restingImmuneCells | 4 | Immune cells drawn with no inflammation. | Chosen by hand |
| drawing.extraImmuneCells | 44 | Immune cells added at full inflammation. | Chosen by hand |
| Name | Value | What it does | Source for the value |
|---|---|---|---|
| segment.Rectum | 0.12 | Where this part ends, from 0 at the rectum to 1 at the cecum. | Chosen by hand |
| segment.Sigmoid colon | 0.34 | Where this part ends, from 0 at the rectum to 1 at the cecum. | Chosen by hand |
| segment.Descending colon | 0.52 | Where this part ends, from 0 at the rectum to 1 at the cecum. | Chosen by hand |
| segment.Transverse colon | 0.8 | Where this part ends, from 0 at the rectum to 1 at the cecum. | Chosen by hand |
| segment.Ascending colon | 0.93 | Where this part ends, from 0 at the rectum to 1 at the cecum. | Chosen by hand |
| segment.Cecum | 1 | Where this part ends, from 0 at the rectum to 1 at the cecum. | Chosen by hand |
| Name | Value | What it does | Source for the value |
|---|---|---|---|
| ui.startDay | 150 | Day the simulator opens on. | Chosen by hand |
| ui.daysPerSecond | 30 | Playback speed. | Chosen by hand |
| ui.latestTriggerDay | 180 | Latest day the trigger slider allows. | Chosen by hand |
| ui.lateStartDay | 90 | Start day for a treatment added when the view is at the last day. | Chosen by hand |
| ui.minStrength | 0.1 | Lowest treatment strength the slider allows. | Chosen by hand |
| ui.previewTreatmentDay | 150 | Day the home page preview adds a treatment. | Chosen by hand |
What is missing
- Individual immune cell types and signals such as TNF or IL-23 are lumped into one quantity.
- No dosing, drug levels, antibodies against drugs, or side effects.
- No surgery, cancer risk, age, or symptoms outside the colon.
- Relapses happen only from the triggers and treatment changes you set.
- No differences between people beyond one susceptibility number, and no chance variation.
- The 3D colon is stylised, and the extent shown is a drawing of one number.
Why this is not a prediction tool
- No number was fitted to or tested against data from any person.
- It takes nothing about you as input, and its units match no test or score.
- Treatment strengths are invented to show direction, so differences between families mean nothing.
- It must not be used to start, stop or change any treatment. Talk to your care team.
Version and changes
Version 0.1.0
- 0.1.0 (2026-11-24): First version: barrier, microbial exposure, inflammation and extent, with five treatment families.
Last checked against its sources on 2026-11-27.
Was this helpful?