Simulatore interattivo del sistema immunitario umano
Repository: github.com/NovaCoding-G/ImmunoMind
ImmunoMind Γ¨ un'applicazione educativa in Python che visualizza, in tempo reale, l'interazione tra patogeni e difese immunitarie. Il modello Γ¨ intenzionalmente semplificato: privilegia chiarezza didattica e feedback visivo rispetto alla fedeltΓ clinica.
ImmunoMind simula dinamiche fondamentali dell'immunitΓ innata e adattativa in un ambiente vascolare bidimensionale. L'utente puΓ² introdurre infezioni, somministrare farmaci, variare la gravitΓ dello scenario e osservare l'evoluzione di popolazioni cellulari, temperatura corporea e risposta terapeutica.
Destinatari: studenti di biologia e medicina, docenti, appassionati di immunologia.
Nota: ImmunoMind non Γ¨ un software medico nΓ© un modello predittivo clinico.
| Home | Simulazione | HUD |
|---|---|---|
![]() |
![]() |
![]() |
| Menu principale | Scenario batterico attivo | Pannello informativo |
| Area | Descrizione |
|---|---|
| Simulazione visiva | Canvas animato con flusso sanguigno, cellule e patogeni |
| Risposta innata | Neutrofili e macrofagi con chemotassi e fagocitosi |
| Risposta adattativa | Linfociti T/B, anticorpi, memoria immunitaria |
| Patogeni | Batteri (E. coli) e virus con replicazione |
| Farmacologia | Penicillina, Oseltamivir, Aciclovir |
| Scenari | Batterica, virale, vaccino/memoria, ferita/infiammazione |
| Analytics | Export CSV e modalitΓ batch headless |
| Tasto | Azione |
|---|---|
Spazio |
Pausa / Riprendi |
Esc |
Home |
| Click sinistro | Aggiunge patogeni |
1 / 2 / 3 |
Penicillina / Oseltamivir / Aciclovir |
N |
+5 neutrofili |
+ / - |
VelocitΓ (1Γβ60Γ) |
R |
Reset |
F |
Schermo intero |
E |
Export CSV |
| Scenario | Patogeno | Focus |
|---|---|---|
| Batterica | E. coli | Risposta innata, antibiotici |
| Virale | Virus | Antivirali, limiti antibiotici |
| Vaccino / Memoria | E. coli | Anticorpi, risposta accelerata |
| Ferita / Infiammazione | E. coli | Infiammazione e ambiente |
- Interattivo: premere
Edurante la simulazione β CSV inexported_data/ - Batch:
python run_experiment.py --durata 7200 --repliche 10 --seed-base 100
Tutorial passo-passo (italiano + inglese): EXPERIMENTS.md
ImmunoMind/
βββ main.py # Loop principale e UI
βββ config.py # Parametri e costanti
βββ entities.py # Cellule e patogeni
βββ environment.py # Ambiente e farmaci
βββ hud.py # Pannello informativo
βββ analytics.py # Logger CSV
βββ run_experiment.py # Simulazioni batch
βββ WIKI.py # Contenuti Wiki
βββ fonts.py # Tipografia UI
βββ test_system.py # Verifica installazione
βββ EXPERIMENTS.md # Esperimenti guidati (IT + EN)
βββ docs/screenshots/
βββ requirements.txt
Licenza MIT. Β© 2026 G.Roscino / NovaCoding.
ImmunoMind is an educational Python application that visualizes, in real time, the interaction between pathogens and immune defenses. The model is deliberately simplified: it prioritizes teaching clarity and visual feedback over clinical fidelity.
Audience: biology and medical students, educators, immunology enthusiasts.
Note: ImmunoMind is not medical software or a clinical predictive model.
| Home | Simulation | HUD |
|---|---|---|
![]() |
![]() |
![]() |
| Main menu | Active bacterial scenario | Information panel |
| Area | Description |
|---|---|
| Visual simulation | Animated canvas with blood flow, cells, and pathogens |
| Innate response | Neutrophils and macrophages with chemotaxis and phagocytosis |
| Adaptive response | T/B lymphocytes, antibodies, immune memory |
| Pathogens | Bacteria (E. coli) and viruses with replication |
| Pharmacology | Penicillin, Oseltamivir, Acyclovir |
| Scenarios | Bacterial, viral, vaccine/memory, wound/inflammation |
| Analytics | CSV export and headless batch mode |
| Key | Action |
|---|---|
Space |
Pause / Resume |
Esc |
Home |
| Left click | Add pathogens |
1 / 2 / 3 |
Penicillin / Oseltamivir / Acyclovir |
N |
+5 neutrophils |
+ / - |
Speed (1Γβ60Γ) |
R |
Reset |
F |
Fullscreen |
E |
Export CSV |
| Scenario | Pathogen | Focus |
|---|---|---|
| Bacterial | E. coli | Innate response, antibiotics |
| Viral | Virus | Antivirals, antibiotic limits |
| Vaccine / Memory | E. coli | Antibodies, faster response |
| Wound / Inflammation | E. coli | Inflammation and environment |
- Chemotaxis β Leukocytes detect pathogens within a configurable radius.
- Phagocytosis β Contact-based elimination with probability and digestion time.
- Pathogen replication β Binary division with energy consumption.
- Fever β Body temperature rises with pathogen load.
- Adaptive immunity β Timed activation of T/B lymphocytes and antibody accumulation.
- Pharmacodynamics β Half-life decay and dose-dependent efficacy.
Default time scale: 1 real second β 1 simulated minute (adjustable with + / -).
- Interactive: press
Eduring simulation β CSV inexported_data/ - Batch:
python run_experiment.py --durata 7200 --repliche 10 --seed-base 100
Step-by-step labs (Italian + English): EXPERIMENTS.md
ImmunoMind/
βββ main.py # Main loop and UI
βββ config.py # Parameters and constants
βββ entities.py # Cells and pathogens
βββ environment.py # Environment and drugs
βββ hud.py # Information panel
βββ analytics.py # CSV logger
βββ run_experiment.py # Batch simulations
βββ WIKI.py # Wiki content
βββ fonts.py # UI typography
βββ test_system.py # Installation check
βββ EXPERIMENTS.md # Guided labs (IT + EN)
βββ docs/screenshots/
βββ requirements.txt
MIT License. Β© 2026 G.Roscino / NovaCoding.
| Issue | Solution |
|---|---|
ModuleNotFoundError: pygame |
pip install --upgrade pygame |
| Low performance | Reduce populations in config.py; lower simulation speed |
| Window size | Edit LARGHEZZA / ALTEZZA in config.py |
No CSV on E |
Run simulation for at least one log interval (default 30 sim. seconds) |
- Neutrophils β Wikipedia
- Phagocytosis β Nature Reviews Immunology
- E. coli β Wikipedia
- Penicillin β Wikipedia
NovaCoding (G.Roscino) β Repository GitHub


