#  constructing a Statistical Shape Model (SSM) of the femoral cartilage

**URL:** <https://shapeworks.discourse.group/t/constructing-a-statistical-shape-model-ssm-of-the-femoral-cartilage/171>\
**Category:** Uncategorized\
**Created:** [September 5, 2023, 6:42pm UTC](https://shapeworks.discourse.group/t/constructing-a-statistical-shape-model-ssm-of-the-femoral-cartilage/171 "2023-09-05T18:42:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjy](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@bjy](https://shapeworks.discourse.group/u/bjy)\
**Post date:** [September 5, 2023, 6:42pm UTC](https://shapeworks.discourse.group/t/constructing-a-statistical-shape-model-ssm-of-the-femoral-cartilage/171/1 "2023-09-05T18:42:17Z")

</div>

Hello everyone,

I would like to attempt constructing a Statistical Shape Model (SSM) of the femoral cartilage using Shapeworks. I’ve encountered some issues along the way and I’m wondering if anyone has experience in doing something similar. Your insights would be greatly appreciated. Thank you!

---

<div class="post-metadata">

**Author:** ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)\
**Post date:** [September 5, 2023, 6:46pm UTC](https://shapeworks.discourse.group/t/constructing-a-statistical-shape-model-ssm-of-the-femoral-cartilage/171/2 "2023-09-05T18:46:57Z")

</div>

I’m not sure if anyone has modeled femoral cartilage. Can you describe the issues you are encountering?

---

<div class="post-metadata">

**Author:** ![bjy](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@bjy](https://shapeworks.discourse.group/u/bjy)\
**Post date:** [September 6, 2023, 4:27am UTC](https://shapeworks.discourse.group/t/constructing-a-statistical-shape-model-ssm-of-the-femoral-cartilage/171/3 "2023-09-06T04:27:08Z")

</div>

I have used your shapeworks Python API for the construction of a cartilage Statistical Shape Model (SSM). However, due to a significant amount of noise in the data (resulting in cartilage erosion and suboptimal segmentation), the constructed cartilage SSM model is not as ideal as desired. The results of the construction are as shown in the attached image.

 ![image.png](https://global.discourse-cdn.com/free1/uploads/shapeworks/original/1X/c568024c81a8e3f25344d42f2025d198557c4dee.jpeg)

Alan Morris via ShapeWorks \<[notifications@shapeworks.discoursemail.com](mailto:notifications@shapeworks.discoursemail.com)\> 于2023年9月6日周三 02:57写道：

---

<div class="post-metadata">

**Author:** ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)\
**Post date:** [September 6, 2023, 3:47pm UTC](https://shapeworks.discourse.group/t/constructing-a-statistical-shape-model-ssm-of-the-femoral-cartilage/171/4 "2023-09-06T15:47:49Z")

</div>

Yes, this seems to be a data preprocessing/grooming issue. I would not proceed with optimization until we can resolve the preprocessing.

Are your original shapes coming from image segmentations / labelmaps or are they starting as meshes? Could you possibly share 1-2 of them? amorris@sci.utah.edu

---

<div class="post-metadata">

**Author:** ![bjy](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@bjy](https://shapeworks.discourse.group/u/bjy)\
**Post date:** [September 7, 2023, 1:12am UTC](https://shapeworks.discourse.group/t/constructing-a-statistical-shape-model-ssm-of-the-femoral-cartilage/171/5 "2023-09-07T01:12:29Z")

</div>

I have utilized the SKI-10 challenge dataset ([https://ski10.grand-challenge.org/](https://ski10.grand-challenge.org/)) for knee joint research. I have extracted label masks for knee cartilage and directly converted them into meshes. I will be looking forward to receiving the mesh files you have used. “Could you please check if this kind of data meets your data processing requirements?”

 ![image.png](https://global.discourse-cdn.com/free1/uploads/shapeworks/original/1X/7ce4d6eb3ca8d823200d21e2f8251b740aa10904.png)

Best  
Jingyi

Alan Morris via ShapeWorks \<[notifications@shapeworks.discoursemail.com](mailto:notifications@shapeworks.discoursemail.com)\> 于2023年9月6日周三 23:57写道：

---

<div class="post-metadata">

**Author:** ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)\
**Post date:** [September 7, 2023, 6:00pm UTC](https://shapeworks.discourse.group/t/constructing-a-statistical-shape-model-ssm-of-the-femoral-cartilage/171/6 "2023-09-07T18:00:18Z")

</div>

You might have better luck if you import the segmentations into ShapeWorks and let the image segmentation grooming tools work on the data before the mesh construction (which ShapeWorks will also do). This will eliminate holes, stairsteps, etc.

You might also consider modeling the bone first and then bone+cartilage.

---

<div class="post-metadata">

**Author:** ![bjy](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@bjy](https://shapeworks.discourse.group/u/bjy)\
**Post date:** [September 8, 2023, 1:38am UTC](https://shapeworks.discourse.group/t/constructing-a-statistical-shape-model-ssm-of-the-femoral-cartilage/171/7 "2023-09-08T01:38:10Z")

</div>

**I am working with segmentation results that include masks for four different labels(femur 、femur cartilage 、 tibia 、 tibia cartilage). Specifically, I have masks for the femur and femur cartilage. Should I groom these masks together or separately? I have been looking through your Python API but could not find an interface that allows for optimization of this kind of data. If there are any tutorials or resources that address this issue, could you please point me in the right direction? I would greatly appreciate your guidance. Thank you very much for your time and assistance. Best**

Alan Morris via ShapeWorks \<[notifications@shapeworks.discoursemail.com](mailto:notifications@shapeworks.discoursemail.com)\> 于2023年9月8日周五 02:10写道：

---

<div class="post-metadata">

**Author:** ![amorris](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@amorris](https://shapeworks.discourse.group/u/amorris)\
**Post date:** [September 11, 2023, 9:52pm UTC](https://shapeworks.discourse.group/t/constructing-a-statistical-shape-model-ssm-of-the-femoral-cartilage/171/8 "2023-09-11T21:52:30Z")

</div>

I would suggest starting with the femurs alone and make sure you can create a good shape model. Then try femur+cartilage.
