A look into our heart

How can we actually see the results we get from computer models?

I am a bit late to say this, but since this is my first post of the year, here it goes: Happy 2021! The beginning of the year has been somewhat chaotic around the world, but the prevailing feeling is that things are slowly getting better. While in lockdown keeping myself and others healthy, I had the opportunity to work in our atrial computer model and tackle some new challenges there.

In the last month, we introduced some anatomical changes to our model to make it more realistic and possibly generate signals more like those of atrial fibrillation in clinical practice. This motivated our group to update many of the software we use to generate new models, which is great, but came with a cost: some visualization tools we had to make nice images such as those seen here were no longer functional. This means I had to face the challenge of finding new ways to visualize the data generated by our model.

The objective of visualizing data is to make the information it contains more intelligible for us humans. This ranges from graphical representations of signals over time up to multi-dimensional datasets. Luckily for me, the visualization of the model data only has three-dimensions (the geometry) over time, making this a relatively straightforward problem.

When it comes to tridimensional visualization and programming languages, probably everyone who searched a bit about the subject came across VTK (Visual Toolkit). This is a very nice open-source library with tons of useful functions, but it is so extensive that it is sometimes very hard to understand what is what.

This is the kind of thing that pops up when you seach a simple term in the VTK documentation. It is not very easy to find your way around

     After struggling for a few weeks, going over countless examples and forum questions (Stack Overflow is not appreciated enough), I finally got the hang of using VTK using its Python library (I will always go for Python when I can). I managed to create something like what we previously had and learned quite a bit about visualization in the process. Behold my artistry

The posterior and anterior views of our heart model, rendered in VTK using Python

January was a hard-working month with lots of new things to learn. We introduced important changes that will yield more realistic simulations and this motivated lots of other things to be set into motion and improve. I think this is one of the beautiful things of science: everything is connected and the developments in the individual areas motivate more knowledge to be generated everywhere. There will soon be more updates about that here in our blog. In the meantime, check the posts from the other ESRs; we are now complete with the inspiring post from our new colleague Marilú! And do not forget to keep updated by our social media.

See you soon!

Victor