Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

results not ideal #222

Open
TingTingShao opened this issue Jun 4, 2024 · 6 comments
Open

results not ideal #222

TingTingShao opened this issue Jun 4, 2024 · 6 comments

Comments

@TingTingShao
Copy link

Dear,

This is my first try with WSInfer, and I would like to ask for more features and advice on it.

The aim of the project:
(1) to identify metastasis sets, the statistics include: the number of the metastasis sets, and the area of each metastasis set.
(2) To automate the process, as it took so long with manual annotation.

I tried with SAM extension, it works great with Prompt, but can not perform good with Auto mask.

I tried with WSInfer annotation to see if it can help with the automation, but I can clearly see that the results are not ideal though it was fast. The metastasis sets were labeled with low probability of tumor. The model I used was breast-tumor-renet34.

The images are as follows:

image image

Any idea on how to improve this?

Looking forward to your reply.
Thanks,
tingting

@kaczmarj
Copy link
Member

kaczmarj commented Jun 4, 2024

what organ is the tissue from?

@TingTingShao
Copy link
Author

Liver

@TingTingShao
Copy link
Author

I can send one example image to you if that's better. BTW, is there a Discord channel for WSInfer?

Thanks,
tingting

@kaczmarj
Copy link
Member

kaczmarj commented Jun 4, 2024

the main reason is that the tumor model you are using was trained on breast tissue. there's no guarantee that it would work well in liver, and i wouldn't expect it to work.

a solution would be to find a patch classification model for liver tumor. another option is to try qupath's built-in patch classification methods. if you opt to make your own liver tumor classifier, take a look at patch sorter https://github.com/choosehappy/PatchSorter

we don't have a discord server. most of the communication happens here in the github issues, sometimes in email.

@TingTingShao
Copy link
Author

Many thanks for your reply.

Quick response to your first point:

the main reason is that the tumor model you are using was trained on breast tissue. there's no guarantee that it would work well in liver, and i wouldn't expect it to work.

This is the breast cancer metastate in liver. In this case, I should also use the model in Liver? Do you have a specific model in your mind for me to choose?

Thanks for other suggestions, I am gonna explore later.

Thanks,
tingting

@kaczmarj
Copy link
Member

kaczmarj commented Jun 4, 2024

This is the breast cancer metastate in liver. In this case, I should also use the model in Liver? Do you have a specific model in your mind for me to choose?

ah i see. this is a good question. patch classification models can be finicky, so i think the best solution would be to have a patch classifier trained on breast metastases in liver tissue. from your screenshot, it looks like the breast tumor model is applying false positives in the hepatocytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants