In-Silico Organoid

Cells: 0 | Time: 0d
Stem
Diff.
Necrotic
DEMO MODE

In-Silico Organoid Simulation

This interactive application simulates the emergent behavior of biological tissue. It uses an Agent-Based Model (ABM) to demonstrate how complex, life-like structures arise from simple, local rules followed by individual cells.


Interactive Controls

The simulation operates in an autonomous loop. If left idle for 10 seconds, Observation Mode (Demo) engages to cycle through growth, stress, and regeneration phases. Click anywhere to take manual control.

Biological Dynamics

Real organoids are miniaturized versions of organs produced in vitro. They self-organize in three-dimensional culture. This 2D simulation captures four critical dynamics of that process:

1. Proliferation & Contact Inhibition

Stem Cells (Green) possess the unique ability to divide (mitosis). In this model, they follow "Contact Inhibition" rules: if a cell is too crowded by neighbors, it will refuse to divide even if growth factors are present. This prevents the tissue from becoming infinitely dense, mimicking real tissue pressure.

2. Differentiation (Lineage Commitment)

Differentiated Cells (Blue) represent mature tissue (e.g., neurons in a brain organoid or epithelial cells in a gut organoid). Once a stem cell differentiates, it loses the ability to divide but gains structural stability. This creates a "Terminal Lineage"—once blue, a cell cannot go back to being green.

3. Necrosis & Apoptosis

Necrotic Cells (Red) represent tissue death. In real organoids, cells in the center often die because oxygen cannot diffuse that deep (the "necrotic core"). In this simulation, you can trigger necrosis via the "Toxin" control. These cells gradually lose structural integrity, shrink, and are eventually cleared from the system.

4. Homeostasis & Regeneration

Biological systems are resilient. This simulation is designed to run indefinitely. If a toxic event wipes out most of the colony, surviving stem cells can repopulate the empty space. If the colony is entirely wiped out, a new "seed" cluster is naturally generated, representing the introduction of new biological material.

Why Simulate Organoids?

In-Silico (computer-based) trials are becoming a crucial step in modern biology before In-Vitro (lab) or In-Vivo (animal/human) testing.

Technical Architecture

This application runs entirely client-side with Zero Dependencies (Vanilla JavaScript).

Verlet Integration Physics
Unlike standard rigid-body physics, this engine treats cells as "soft bodies." It calculates velocity implicitly based on previous positions, making the collisions feel organic and squishy rather than bouncy.
Spatial Hashing
To maintain 60 FPS with hundreds of interacting agents, the code avoids checking every cell against every other cell (O(N²)). Instead, it places cells into a virtual grid, only checking collisions between immediate neighbors.
Procedural Sonification
The audio is not a recorded file. It is synthesized in real-time using the Web Audio API. The pitch and modulation of the oscillators are mathematically derived from the cell count and event types (mitosis vs. apoptosis).

Future Expansion

Current research is moving toward Digital Twins—virtual replicas of specific patients' tumors. Future versions of this software could incorporate:

Generated by Gemini • Single File Solution • No Frameworks