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

sampling strategy to improve class balance across cell cycle #24

Open
mattersoflight opened this issue Jul 31, 2023 · 1 comment
Open

Comments

@mattersoflight
Copy link
Member

At a recent meeting, we discussed strategies to achieve class balance across the cell cycle. @ziw-liu proposed a selection of FOVs based on the rough measure of the shape of the cells, which I think is a good way to digitally sort the FOVs while constructing a batch.

Let's continue to think about this. We need:
a) rough measures of the cell cycle stage:

  • cytoplasm/nucleus ratio as measured from 'dirty' segmentations of target channels comes to my mind as the first measure to try. It should work for multiple cell types and microscopes.

b) strategies to assign a probability of sampling to a FOV or a patch:

  • @ziw-liu I recall you used the fluorescence channel itself as a weight mask. Can you point to that call?
  • We can preprocess or annotate each FOV to assign it a score and use the score to achieve class balance.
@ziw-liu
Copy link
Collaborator

ziw-liu commented Jul 31, 2023

  • @ziw-liu I recall you used the fluorescence channel itself as a weight mask. Can you point to that call?

It is the RandWeightedCropd transform from MONAI:
https://github.com/mehta-lab/viscy/blob/6daf3223372504fc35e6f44e5909061c426cb2c7/viscy/light/data.py#L493-L497

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