OrgPad logo

EDITH-CSA 2024 presentation Tomas Kulhanek

Created by Tomas Kulhanek

EDITH-CSA 2024 presentation Tomas Kulhanek

Bodylight.js & eGolem - Methods and tools for scientific models in medical simulation education

image

acknowledgment

imageimage

team current and past

image

What language/technology do you use for modeling?

image

1. Science - mathematical models

3. Use cases - medical simulators for education

2. Technology - how to simulate models

Is it a model? equations

20230913 142115crop

Elena Zappon Efficient Reduced Order Modeling for Coupled Problems in Cardiac Electrophysiology, CompBioMed2023, 13th September 2023

Is it a model? component diagram

20230913 132057crop

Magdalena Otta et al. A 0D model of lower limb haemodynamics: sensitivity analysis, CompBioMed2023, 13th September 2023

Is it a model? block schema

image

A C Guyton, T G Coleman, H J Granger, Circulation: overall regulation, Annu Rev Physiol.1972;34:13-46.doi: 10.1146/annurev.ph.34.030172.000305.

Correction after reimplementation in 2010

image

J.Kofránek, et al., Restoration of Guyton‘s Diagram for Regulation of the Circulation ...Physiol Res. 2010;59(6):897-908.doi: 10.33549/physiolres.931838.

explanatory models

to explain:

who is the audience?

model of glucose insulin regulation - explain equations

image

image

image

model of glucose insulin regulation - block schema - explain computation

image

model of glucose insulin regulation - acausal and component modeling (compartment modeling) - explain physical reality

image

components

image

image

image

image

Tomas Kulhanek, Jiri Kofranek. Experience with Teaching Different Modeling Techniques on the example of Glucose Insulin Regulation Model, 

Annu Int Conf IEEE Eng Med Biol Soc. 2020 Jul;2020:6024-6027. doi: 10.1109/EMBC44109.2020.9176535

Guyton's original scheme

image

implementation in component and acausal modeling language

image

Frank-Starling law is  much more visible in component model - "force of the heart muscle depends on pressure of incoming blood". 

Physiolibrary & Chemical

https://physiolibrary.org

free open-source Modelica library designed for modeling physical chemistry & human physiology.

Physiomodel

firefox SHzAoizS4q

Complex model of physiology in Modelica based on HumMod and Physiolibrary

https://physiomodel.org

>60 000 equations

who is the audience?

from model to web simulator and where bodylight.js fills the missing pieces

image

bodylight.js

  1.  scripts translate model - FMU (standard C-source,C-binary following API) to WebAssembly
  2. javascript library
    1. custom element for model
    2. custom element for animation
    3. custom element for other useful web libraries and simplified elements
  3. Optional tools (composer, editor) to simplify creating and deploying web simulators

1. export model to FMU with C source code

image

2.compile to WebAssembly

image

Configuration and scripts to facilitate compilation with emscripten

emcc … -O3 –closure 0 …

https://github.com/creative-connections/Bodylight.js-FMU-Compiler

3. download JS with WebAssembly and use it in <bdl-fmi> web component

image

webcomponents - HTML elements

POWERPNT e4sDsmlrVX

webcomponents - custom elements

image

range

image

firefox I8uGRV2pqg

webcomponents - custom elements animation

image

firefox jMeSh19NxA

simulator with web components - src

<script src=" bodylight.bundle.js" ></script>

...

<body aurelia-app="webcomponents">

...

image

we can put HTML/CSS styling

image

simulator2

simulation education

image

4369 students, most of them general medicine and dentistry, >3500 study in Czech language (including >500 non-Czech nationality), >800 study in English (India,Israel,Iran,United Kingdom, ...)

lecture supported by simulators

image

physiology and pathophysiology

web simulators in a browser / desktop/tablet

desktop

co-simulation of multiple models

image

blood-gas exchange

Dymola qmDZxxtrfj

respiration

Dymola sdXGmJf24o

hemodynamics of cardiovascular system

Dymola 9CIA5zGnUy

simulator of glucose/insulin

firefox C1zReN0kIX

native mobile apps

imagePOWERPNT Mjc6Qcjhym

control HW mannequin

hwmanequin

POWERPNT 4kJE4xB8Wg

image

bring virtual reality to life

vr

image

WebGL+WebXR                           Unity+WebView

medical simulators - products

image

https://egolem.online/irm

simulator of iron metabolism: https://egolem.online/irm

digital appendix of scientific paper

firefox fjKgpq2PYp

Mazumder, Nikhilesh R et al. (2023). “Portal Venous Remodeling Determines the Pattern of Cirrhosis Decompensation: A Systems Analysis.” In: Clinical and Translational Gastroenterology. DOI: 10.14309/ctg.0000000000000590.

summary

image

bodylight.physiome.cz  (with source codes at GITHUB)

image

explanatory simulators

simulator1

GI equation

image

model of circulation and its regulation