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

Model constants
NameValueWhat it doesSource for the value
leak0.1How fast microbial exposure rises as the barrier is lost, per day.Chosen by hand
clearance0.5Share of microbial exposure cleared, per day.Chosen by hand
activation0.3How strongly microbial exposure drives inflammation, per day.Chosen by hand
amplificationBase0.04Strength of the self-sustaining immune loop at zero susceptibility, per day.Chosen by hand
amplificationBySusceptibility0.24Extra loop strength at full susceptibility, per day.Chosen by hand
halfSaturation0.3Inflammation level at which the loop works at half strength.Chosen by hand
resolution0.12Share of inflammation that resolves, per day.Chosen by hand
repair0.1Share of lost barrier repaired, per day.Chosen by hand
repairLossBySusceptibility0.4Share of repair lost at full susceptibility.Chosen by hand
damage0.08How strongly inflammation damages the barrier, per day.Chosen by hand
triggerDays10How many days a trigger lasts.Chosen by hand
triggerStrength0.25Microbial exposure added per day by a trigger of size 1.Chosen by hand
spreadThreshold0.15Inflammation level above which extent grows and below which it shrinks.Chosen by hand
spread0.025How fast extent grows up the colon above the threshold, per day.Chosen by hand
retreat0.3How fast extent shrinks below the threshold, per day.Chosen by hand
washoutDays14How many days a stopped treatment's effect takes to fall to about a third.Chosen by hand
step0.1Time 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.

5-ASA values
NameValueWhat it doesSource for the value
aminosalicylate.onsetDays14Days for about two thirds of the effect to build up.Chosen by hand
aminosalicylate.amplification0.75Multiplies amplification.Chosen by hand
aminosalicylate.repair1.5Multiplies repair.Chosen by hand
Sources for mechanism and direction

Corticosteroids

Broad, fast immune suppression, used short term because of side effects. In this model it acts within days but slightly slows repair.

Corticosteroids values
NameValueWhat it doesSource for the value
corticosteroid.onsetDays3Days for about two thirds of the effect to build up.Chosen by hand
corticosteroid.amplification0.2Multiplies amplification.Chosen by hand
corticosteroid.resolution1.4Multiplies resolution.Chosen by hand
corticosteroid.repair0.7Multiplies repair.Chosen by hand
Sources for mechanism and direction

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.

Cytokine signal blockers values
NameValueWhat it doesSource for the value
cytokine.onsetDays10Days for about two thirds of the effect to build up.Chosen by hand
cytokine.amplification0.15Multiplies amplification.Chosen by hand
cytokine.activation0.5Multiplies activation.Chosen by hand
Sources for mechanism and direction

Immune cell traffic blockers

Keep circulating lymphocytes from reaching the gut. In this model they shrink the self-sustaining loop, building up more slowly.

Immune cell traffic blockers values
NameValueWhat it doesSource for the value
trafficking.onsetDays30Days for about two thirds of the effect to build up.Chosen by hand
trafficking.amplification0.3Multiplies amplification.Chosen by hand
Sources for mechanism and direction

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.

Microbiome-directed approaches values
NameValueWhat it doesSource for the value
microbial.onsetDays30Days for about two thirds of the effect to build up.Chosen by hand
microbial.leak0.5Multiplies leak.Chosen by hand
microbial.repair1.3Multiplies repair.Chosen by hand
microbial.resolution1.2Multiplies resolution.Chosen by hand
Sources for mechanism and direction

Starting scenario

Starting scenario
NameValueWhat it doesSource for the value
scenario.days365Length of the simulated period, in days.Chosen by hand
scenario.susceptibility0.7Susceptibility, s.Chosen by hand
scenario.triggerDay20Day the trigger starts.Chosen by hand
scenario.triggerSize0.7Size of the trigger, from 0 to 1.Chosen by hand
DEFAULT_STRENGTH0.85Strength 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.

Drawing values
NameValueWhat it doesSource for the value
drawing.quietBelow0.05Below this inflammation the colon is drawn and described as quiet.Chosen by hand
drawing.minReach0.07The least of the colon involved once there is any inflammation.Chosen by hand
drawing.fadeLength0.08Length over which colour fades out above the extent.Chosen by hand
drawing.ulcerEdge0.75Where ulcer patches begin on the surface texture.Chosen by hand
drawing.ulcerEdgeFall0.65How much higher intensity widens ulcer patches.Chosen by hand
drawing.ulcerSoftness0.25Softness of patch edges.Chosen by hand
drawing.ulcerFrom0.3Intensity below which no ulcer patches show.Chosen by hand
drawing.mucusPower2Mucus thickness is barrier integrity raised to this power.Chosen by hand
drawing.maxGaps10Open gaps drawn in a fully lost barrier.Chosen by hand
drawing.bacteriaGain5Microbial exposure is multiplied by this before bacteria are drawn.Chosen by hand
drawing.maxBacteria24Most bacteria drawn inside the tissue.Chosen by hand
drawing.restingImmuneCells4Immune cells drawn with no inflammation.Chosen by hand
drawing.extraImmuneCells44Immune cells added at full inflammation.Chosen by hand
Where each part of the colon ends
NameValueWhat it doesSource for the value
segment.Rectum0.12Where this part ends, from 0 at the rectum to 1 at the cecum.Chosen by hand
segment.Sigmoid colon0.34Where this part ends, from 0 at the rectum to 1 at the cecum.Chosen by hand
segment.Descending colon0.52Where this part ends, from 0 at the rectum to 1 at the cecum.Chosen by hand
segment.Transverse colon0.8Where this part ends, from 0 at the rectum to 1 at the cecum.Chosen by hand
segment.Ascending colon0.93Where this part ends, from 0 at the rectum to 1 at the cecum.Chosen by hand
segment.Cecum1Where this part ends, from 0 at the rectum to 1 at the cecum.Chosen by hand
Screen settings
NameValueWhat it doesSource for the value
ui.startDay150Day the simulator opens on.Chosen by hand
ui.daysPerSecond30Playback speed.Chosen by hand
ui.latestTriggerDay180Latest day the trigger slider allows.Chosen by hand
ui.lateStartDay90Start day for a treatment added when the view is at the last day.Chosen by hand
ui.minStrength0.1Lowest treatment strength the slider allows.Chosen by hand
ui.previewTreatmentDay150Day 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?