Lesson 4 of 20

The size of a tile — what 50 µm decided

group the cells and the value changes

The size of a tile — what 50 µm decided
Look at the same tissue on a coarser grid and the red cells multiply. The tissue did not change — the counting rule did.

50 × 50 µm. Where did that come from?

It is the size of tile the CNN was trained on. That is all. Cut finer and each tile holds only a few cells, making the call hard. Cut coarser and "is there a lymphocyte in this tile" stops meaning anything. 50 µm is three or four cell diameters — the size at which a few lymphocytes are visible together.

But that decision fixes the meaning of the word "infiltration rate" itself. Change the grid and the same tissue gives a different number. Let us do it.

Three rules over the same tissue — positive if any red / positive if over half / the ratio of tile counts.
Python Runs in your browser

Read the result.

  • Positive if any red — 45.66% → 88.81%. It keeps climbing as the grid coarsens, because a bigger cell is bound to contain at least one red tile.
  • Positive if over half — 45.66% → 30.07%. This one falls. Bigger cells are more mixed inside, so clearing half gets harder.
  • Ratio of tile counts — 45.66%, unchanged. Grouping does nothing to it.

That the third one holds still is no accident. "red tiles ÷ tissue tiles" is counting the same thing before and after grouping — you are only adding up numerator and denominator together.

Change the cell size and compare what the three rules give.
Loading…
It is even clearer by eye. The same slide reddens as you go.
Python Runs in your browser
🤔 Check yourself
Which definition is unchanged when you group the grid coarser?
🤔 Check yourself
Two papers report different TIL values for the same slide. Which is NOT the first thing to check?