To develop the tool, the team studied medical scans showing the amount of swelling for different types of brain injuries. They then created mathematical estimates that can predict how an injury would affect different parts of the organ. Once they were done designing the system, then ran different scenarios through the simulation and found that you’ll see serious damage if axons expand near or above 30 percent. The resulting simulation, by the way, displays the most affected parts of the brain in red, areas that sustained mild damage in green and safe parts in blue. This gives surgeons a very visual guide to decide the best place to perform the decompressive craniectomy.

The team knows their creation is in its very early stages, and they’re hoping that surgeons could pitch in and help them develop it further. For now, you can read more about their study on Physical Review Letters, or watch the video below.