# Gender Differences on Pneumothorax Scenario Execution

**URL:** https://discourse.kitware.com/t/gender-differences-on-pneumothorax-scenario-execution/544
**Category:** Pulse Physiology Engine
**Created:** [October 23, 2020, 8:44pm UTC](https://discourse.kitware.com/t/gender-differences-on-pneumothorax-scenario-execution/544 "2020-10-23T20:44:26Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![mac](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/m/cc9497/32.png) [@mac](https://discourse.kitware.com/u/mac)
#### Post date: [October 23, 2020, 8:44pm UTC](https://discourse.kitware.com/t/gender-differences-on-pneumothorax-scenario-execution/544/1 "2020-10-23T20:44:26Z")

</div>

Hello,

I have returned with more Tension Pneumothorax related inquiries.

I’ve been running a lot of tests to measure the behavior of the engine after triggering closed Tension Pneumothorax and I’ve noticed that there appear to be some discrepancies with how the simulation handles male vs female patients. In general, scenarios that use female initial state files do not tend to show patient condition degrade and recover as significantly as male initial state files. I’m consulting with physicians on this project and according to them gender should not have a significant effect on the impact of Pneumothorax.

For my tests I used the desktop explorer version 2.0.1. I conformed my experiments to the model outlined in Figure 2.4 and Table 14 of the respiratory methodology documentation (found here: [https://pulse.kitware.com/\_respiratory\_methodology.html](https://pulse.kitware.com/_respiratory_methodology.html)). I only ran tests on closed Tension Pneumothorax and therefore left out triggering the chest occlusive dressing action. Besides that, each action is called in the time interval laid out in the above referenced table and chart.

Below are the results when testing with the initial state files DefaultMale and DefaultMale.

Results for DefaultFemale:

 ![DefaultFemale_Table](https://discourse.kitware.com/uploads/default/original/1X/8108fd6be24bfa3dce8e2db488bf23b8f3d4baf0.png)  
 ![DefaultFemale_Graph](https://discourse.kitware.com/uploads/default/original/1X/d3c3cd2074d5eeb2e10c02375898f10f81e91d90.png)

Results for DefaultMale:

 ![DefaultMale_Table](https://discourse.kitware.com/uploads/default/original/1X/88d31031fb93855b0659a6a286f0287be413cde9.png)  
 ![DefaultMale_Graph](https://discourse.kitware.com/uploads/default/original/1X/d532effb4e959dbfc87e01859e122c84001e735e.png)

After noticing that a few different female initial state files did not lead to the predicted behavior we decided to run two trials using the included initial state file Gus; once as male and once as female. Below are the results.

Results for Male Gus:

 ![Gus_Male_Table](https://discourse.kitware.com/uploads/default/original/1X/f6da9f14764138912c72e9d8d8195b24dafa4298.png)  
 ![Gus_Male_Graph](https://discourse.kitware.com/uploads/default/original/1X/d0b1921858df63273377515fe96794225fbd0066.png)

Results for Lady Gus:

 ![Gus_Female_Table](https://discourse.kitware.com/uploads/default/original/1X/bbba94c258af4f2f9a0f5ec50a8498fa84f9ca97.png)  
 ![Gus_Female_Graph](https://discourse.kitware.com/uploads/default/original/1X/cae1dc53a85fcdafbc9dcea3b7a83645f99487e4.png)

You can see that although the only thing that changed between these trials was Gus’s gender, lady Gus was not affected to nearly the same degree her male counterpart was. This is especially evident in the oxygen saturation results. These results strike me as significantly different when considering the initial state files used were nearly identical.

I’m wondering what is driving these discrepancies as it’s my understanding that gender should not impact the effect of Tension Pneumothorax on a patient.

Thanks in advance,  
Mac

---

<div class="post-metadata">

### Author: ![abray](https://discourse.kitware.com/user_avatar/discourse.kitware.com/abray/32/12_2.png) [@abray](https://discourse.kitware.com/u/abray)
#### Post date: [October 24, 2020, 12:42pm UTC](https://discourse.kitware.com/t/gender-differences-on-pneumothorax-scenario-execution/544/2 "2020-10-24T12:42:34Z")

</div>

Hi Mac

Great work digging into Pulse like this!  
I might not answer your question,  
but here is the data associated with a male and female Gus

We start out with only these values set in the patient files:

 ![image](https://discourse.kitware.com/uploads/default/original/1X/7ca80856e0f0962958b87b6077a69dbbb04ef5e7.png)

Next, Pulse will actually [set ALL of the patient parameters](https://pulse.kitware.com/_patient_methodology.html) before finding the homeostatic state of these patient parameters

Once stabilized, you can check the `show advanced properties` checkbox on the patient tab to see what these values were computed to by our patient methodology.  
Many of the parameters of this methodology are driven by sex.  
Just by changing the Sex on Gus, we will compute patients with different lung capacity/volumes

 ![image](https://discourse.kitware.com/uploads/default/original/1X/c8ed1afa06a483b90b37b9efa00a784637264de0.png)

I believe these difference are what is driving the varying results you are seeing Pulse compute

@coolwebb could talk to which of the different parameters has a bigger impact in our respiratory and pneumothorax model and why

---

<div class="post-metadata">

### Author: ![coolwebb](https://discourse.kitware.com/user_avatar/discourse.kitware.com/coolwebb/32/25_2.png) [@coolwebb](https://discourse.kitware.com/u/coolwebb)
#### Post date: [October 28, 2020, 11:26pm UTC](https://discourse.kitware.com/t/gender-differences-on-pneumothorax-scenario-execution/544/3 "2020-10-28T23:26:51Z")

</div>

Sorry for the delayed response, @mac. That is some great analysis that we missed.

The problem/difference really boils down to this line of code: [https://gitlab.kitware.com/physiology/engine/-/blob/master/src/cpp/cpm/physiology/Respiratory.cpp#L1428](https://gitlab.kitware.com/physiology/engine/-/blob/master/src/cpp/cpm/physiology/Respiratory.cpp#L1428)

Table 1 in the [Patient methodology](https://pulse.kitware.com/_patient_methodology.html) defines how different patient parameters are set based on sex. The lung volumes are assumed smaller for females (i.e., FRC, TV, etc.), which means the respiratory muscle driver pressures are lower and lung pressures are generally lower. Therefore, the same leak resistance is less effective for female vs. male patients.

I ran your scenario for both male and female default patient and you can see that the female patient’s pneumothorax-effected lung never fully collapses (signified by the volume flat-lining).

Red = Male; Blue = Female

 ![image](https://discourse.kitware.com/uploads/default/original/1X/812f17fffd64b30ecea1f7f0170e33c03f2ccee9.png)

If I reduce that resistance on the aforementioned line of code (I set it to 20 cmH2O-s/L), the volume response is much closer and the SpO2 drops as expected.

Red = Male; Blue = Female

 ![image](https://discourse.kitware.com/uploads/default/original/1X/6115bc853d718758a5f3504065ed7e674a14c4ab.png)

I’ll think through the best way to adjust this resistance based on patient parameters and let you know when the fix is pushed to the codebase.

Thanks again!

---

<div class="post-metadata">

### Author: ![mac](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/m/cc9497/32.png) [@mac](https://discourse.kitware.com/u/mac)
#### Post date: [November 30, 2020, 10:23pm UTC](https://discourse.kitware.com/t/gender-differences-on-pneumothorax-scenario-execution/544/4 "2020-11-30T22:23:15Z")

</div>

I just realized that I typed a response expressing my gratitude towards your swift response and stellar insight when you first got back to me on this but never submitted it.

---

<div class="post-metadata">

### Author: ![mac](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/m/cc9497/32.png) [@mac](https://discourse.kitware.com/u/mac)
#### Post date: [December 15, 2020, 9:13pm UTC](https://discourse.kitware.com/t/gender-differences-on-pneumothorax-scenario-execution/544/5 "2020-12-15T21:13:50Z")

</div>

Hello! Just wanted to follow up on this and check if the solution has been pushed

Thanks as always!

---

<div class="post-metadata">

### Author: ![coolwebb](https://discourse.kitware.com/user_avatar/discourse.kitware.com/coolwebb/32/25_2.png) [@coolwebb](https://discourse.kitware.com/u/coolwebb)
#### Post date: [December 15, 2020, 10:15pm UTC](https://discourse.kitware.com/t/gender-differences-on-pneumothorax-scenario-execution/544/6 "2020-12-15T22:15:02Z")

</div>

This is still sitting on my to-do list, but I’ve been distracted. I’ll try to get it in later this week and let you know. Sorry for the delay.

---

<div class="post-metadata">

### Author: ![coolwebb](https://discourse.kitware.com/user_avatar/discourse.kitware.com/coolwebb/32/25_2.png) [@coolwebb](https://discourse.kitware.com/u/coolwebb)
#### Post date: [December 21, 2020, 6:35pm UTC](https://discourse.kitware.com/t/gender-differences-on-pneumothorax-scenario-execution/544/7 "2020-12-21T18:35:29Z")

</div>

I’ve begun trying to solve this pneumothorax modeling problem. There is a small update that should now cause a full lung collapse at maximum tension pneumothorax severities for all patients as I described earlier. I pushed the code into this new branch: [https://gitlab.kitware.com/physiology/engine/-/tree/feature/pneumothorax\_update](https://gitlab.kitware.com/physiology/engine/-/tree/feature/pneumothorax_update).

I’m still not fully satisfied with the model and have some work to ensure appropriate cardiovascular effects and better recovery with needle decompression for patients beyond standard male. I will let you know when it’s ready to merge into 3.x.

---

<div class="post-metadata">

### Author: ![mac](https://discourse.kitware.com/letter_avatar_proxy/v4/letter/m/cc9497/32.png) [@mac](https://discourse.kitware.com/u/mac)
#### Post date: [January 5, 2021, 7:53pm UTC](https://discourse.kitware.com/t/gender-differences-on-pneumothorax-scenario-execution/544/8 "2021-01-05T19:53:22Z")

</div>

Thank you for this! I’ll try to test out the new branch this week!
