105 Labels are fixed by the preparation: form, Gram and live/dead

Section 98 showed this for form. The same holds for every label read from a stained or unstained image of bacteria. This section writes the common chain once and reads Gram staining, virtual Gram staining and live/dead staining as instances of it.

105.1 One chain

LF1. The chain. Every such label is reached in four steps:

\[ \begin {aligned} \text {The cell}\ &\xrightarrow {\ D\ }\ \text {colour or intensity per pixel}\\ &\xrightarrow {\ \text {segmentation}\ }\ \text {one number per cell}\\ &\xrightarrow {\ \text {threshold}\ }\ \text {label}. \end {aligned} \]
\(D\) is the preparation (reagents, their order, times, concentrations, drying, washing, mounting); the segmentation decides which pixels are a cell; the number is a summary of those pixels (a ratio of colours, an elongation, a median); the threshold turns it into one of two names. The label is attached only at the end. Each of the first three arrows is a choice, and changing one of them can change the label of the same cell.

label

\(D\)

number per cell

threshold gives

form

glass, pad or chamber

elongation, circularity

rod / coccus

Gram

crystal violet, iodine, decolorizer, safranin

purple against pink

positive / negative

virtual Gram

darkfield stack and a network trained on Gram images

median RGB

positive / negative

live/dead

SYTO9 and PI: amounts, ratio, time, washing

green against red

live / dead

105.2 Gram staining

LF2. The procedure is a sequence of choices. In the protocol of [1027] the smear is dried on a hot plate, fixed in methanol for 5 minutes, put in crystal violet for 1 minute and in Gram’s iodine for 1 minute, decolorized with 5% ethanol in acetone for about 10 seconds, and counterstained with safranin for 15 seconds. “Positive” is the name for cells that are still purple after these times; “negative” for cells that have lost the purple and taken the pink.

LF3. Change the steps, change the label. Each step can be changed, and what is reported to follow is:

change what is read reported in
longer decolorization cells called positive turn pink [1030]
shorter or no decolorization cells called negative stay purple [1030]
older culture cells called positive turn pink (“Gram-variable”) [1030]
thicker smear decolorizer reaches less; more cells stay purple [1030]
iodine left out the purple is lost more easily [1031]

The two names are therefore not two kinds of cell found by the stain; they are the two sides of a cut made by a decolorization time. With another time the cut falls elsewhere and the same cells are named otherwise. The authors of [1027] list over-decolorization and the age of the cells among the sources of error in their target images: these are the same choices of \(D\), counted as errors because one \(D\) was taken as correct.

105.3 Virtual Gram staining

LF4. The stain is moved, not removed. In [1027] a network takes a stack of darkfield images of unstained cells and outputs an image that matches the brightfield image of the same cells after chemical Gram staining. Three things follow from its methods:

step what it contains
target images the chemical Gram stain of LF2, with its times
label of each cell the median RGB colour of the segmented cell, cut into two classes
species two, E. coli and Listeria innocua

The network learns the colours fixed by one \(D\); trained on a different decolorization time it would learn different colours. Its output label is a threshold on colour, as in LF1. And with two species whose median areas are \(0.892\) and \(0.317\ \mu \mathrm {m}^2\), the two classes can be separated by size as well as by any property of the wall; the authors check accuracy within size bins and find it lower for the smallest cells. What the model reproduces is the label at one \(D\) for two species, not a property that holds apart from \(D\).

105.4 Live/dead staining

LF5. “Green enters every cell, red enters only damaged ones.” This sentence is the rule by which the two dyes are read: SYTO9 is taken to enter all cells, propidium iodide (PI) only cells whose membrane is broken, and a cell is called dead when red outweighs green. The rule is a statement at a chosen \(D\).

LF6. Change the place, change the count. Rosenberg et al. [1028] stained cells grown on a surface with SYTO9 and PI and read 96.35% of E. coli and 75.69% of Staphylococcus epidermidis as dead. A dye that reports metabolic activity read about 68% of both as active, and after the cells were removed from the surface at least 82.43% and 89.02% grew on plates. Confocal images showed green interiors under red exteriors: the red came from DNA outside the cells, not from a broken membrane. The same cells are “dead” on the surface and “alive” off it. Stiefel et al. [1029] show that the two signals also depend on the bleaching of SYTO9, on the species and on the state of the cells, so that the ratio of green to red, and with it the threshold, has to be set for each \(D\).

105.5 General result

LF7. No label without a \(D\). Write the label as

\[ \ell = \theta \bigl (\,\nu \bigl (\,\sigma \bigl (F(\text {cell};D)\bigr )\bigr )\bigr ), \]
with \(F\) the record (LF1), \(\sigma \) the segmentation, \(\nu \) the number per cell and \(\theta \) the threshold. There is no record with \(D=\varnothing \) (Section 63.10), and \(\sigma \), \(\nu \), \(\theta \) are chosen. So \(\ell \) is a value of \((D,\sigma ,\nu ,\theta )\) and the cell together, never of the cell alone.

LF8. Each choice can move the label.

label change in \(D\) same cell read as from
form glass \(\to \) shaped chamber rod \(\to \) triangle Fig. 210
Gram 10 s decolorization \(\to \) longer positive \(\to \) negative LF3
Gram young culture \(\to \) old positive \(\to \) negative LF3
live/dead suspension \(\to \) surface live \(\to \) dead LF6
virtual Gram target stain at one time \(\to \) another learns the other cut LF4

LF9. What is called an error. In each case one \(D\) is taken as standard, and the labels it gives are called correct; the labels given by other \(D\) are called artifacts, over- or under-decolorization, false positives, false dead. Nothing in the record marks one \(D\) as the right one: the standard is chosen, and the errors are defined relative to it. A classification built on such labels, by eye or by a network, is a classification of cells at that \(D\).

LF10. Result.

statement from
every label is reached by \(D\), segmentation, a number and a threshold LF1
the two Gram classes are two sides of a cut set by decolorization LF2, LF3
virtual staining reproduces the cut of one \(D\) LF4
live and dead change with the place of the same cells LF5, LF6
no label is a value of the cell alone LF7
changing one choice can change the label LF8, FF5–FF8
“error” and “artifact” are defined relative to a chosen standard LF9
at one \(D\) the standard Gram labels are one reading in 162 LF11–LF13, Fig. 244
at one \(D\) the rod/coccus label moves for every species LF14, Fig. 246

Table 258: Changing \(D\) one step at a time in the Gram stain, and what is expected.

What is changed

Expected

decolorizing time 0, 5, 10, 30, 60 s

the same species passes from purple to pink; “positive” is the value at which decolorizing was stopped early

order of steps (safranin first, iodine omitted, decolorizer omitted)

all cells purple, or all cells pink

age of the culture (young / old)

old positive cells come out pink (Gram-variable)

fixing method and smear thickness

thick regions are decolorized less and stay purple

There is no such thing as a “natural” image: every image is made by some \(D\). To justify some \(D\) as the right one leads, by the Münchhausen trilemma [1420], to one of three ends: an infinite regress, in which each \(D\) is justified by a further one; a circle, in which \(D\) is justified by the forms it produces; or a stop (axiomatic), in which one \(D\) is simply declared correct. Whichever end is chosen, the same question returns for the next \(D\), and the trilemma repeats at every step.

105.6 Possibility, actualization and the thing in itself

Let \(\Omega \) be the space of all possible states. Actualization is the selection of one element \(a \in \Omega \). In the finite case the information fixed by actualization is

\begin{equation} I_{\text {act}} = \log \lvert \Omega \rvert , \tag{1773}\end{equation}
and in the continuous case \(\lvert \cdot \rvert \) is replaced by a measure \(\mu \) on \(\Omega \).

Appearance. What is seen is not \(a\) but its image under an observation map \(\pi : \Omega \to \Phi \),

\begin{equation} \varphi = \pi (a) . \tag{1774}\end{equation}
The element \(a\) plays the role of the thing in itself, and \(\varphi \) the role of the appearance.

Fiber. When \(\pi \) is not injective, the appearance \(\varphi \) is produced by every element of the fiber

\begin{equation} F(\varphi ) = \pi ^{-1}(\varphi ) = \{\, x \in \Omega : \pi (x) = \varphi \,\} . \tag{1775}\end{equation}
Observation establishes only \(a \in F(\varphi )\). The remaining uncertainty is
\begin{equation} H(a \mid \varphi ) = \log \lvert F(\varphi )\rvert , \tag{1776}\end{equation}
so the information of actualization splits into a seen part and a gap:
\begin{equation} \log \lvert \Omega \rvert = \underbrace {\log \frac {\lvert \Omega \rvert }{\lvert F(\varphi )\rvert }}_{\text {seen}} + \underbrace {\log \lvert F(\varphi )\rvert }_{\text {gap to the thing in itself}} . \tag{1777}\end{equation}

Refinement by further observation. For a family \(\Pi = (\pi _1, \dots , \pi _n)\) with \(\varphi _i = \pi _i(a)\), the joint fiber is

\begin{equation} F_\Pi = \bigcap _{i=1}^{n} \pi _i^{-1}(\varphi _i) . \tag{1778}\end{equation}
Adding an observation can only shrink the fiber, \(F_{(\pi _1,\dots ,\pi _{n+1})} \subseteq F_{(\pi _1,\dots ,\pi _n)}\), so the gap \(\log \lvert F_\Pi \rvert \) is non-increasing in \(n\). Making more of the possible actual and visible narrows the distance between appearance and thing.

Common form of sensibility. Suppose every observation passes through one common map \(\sigma : \Omega \to S\), that is,

\begin{equation} \pi _i = g_i \circ \sigma \qquad \text {for all } i . \tag{1779}\end{equation}
Then \(\sigma (x) = \sigma (a)\) implies \(\pi _i(x) = \pi _i(a)\) for every \(i\), hence
\begin{equation} \pi _i^{-1}(\varphi _i) \supseteq \sigma ^{-1}(\sigma (a)) \quad \text {for all } i \qquad \Longrightarrow \qquad F_\Pi \supseteq \sigma ^{-1}(\sigma (a)) . \tag{1780}\end{equation}
Taking logarithms,
\begin{equation} H(a \mid \Pi (a)) \;\ge \; H(a \mid \sigma (a)) = \log \lvert \sigma ^{-1}(\sigma (a))\rvert . \tag{1781}\end{equation}
No number of observations lowers the gap below the size of the \(\sigma \)-fiber. If \(\sigma \) is not injective, this lower bound is strictly positive, and the thing in itself \(a\) cannot be recovered from appearances.

Summary.

Concept Formal counterpart
Possibility \(\Omega \)
Actualization \(a \in \Omega \)
Appearance \(\pi (a)\)
Gap to the thing in itself \(\log \lvert \pi ^{-1}(\pi (a))\rvert \)
Further observation intersection of fibers; gap non-increasing
Form of sensibility \(\pi _i = g_i \circ \sigma \)
Unknowability of the thing in itself \(H(a \mid \Pi (a)) \ge H(a \mid \sigma (a)) > 0\)

105.7 The same atlas, read 162 ways

LF11. Data and readings. The 2034 images of [1017] cover the 33 species of the DIBaS collection (Fig. 208, [1025]): every image is the same \(D\), dried on glass and Gram-stained. Their \(D\) cannot be changed after the fact, so we change the three later arrows of LF1:

arrow

choices

number

segmentation \(\sigma \)

threshold \(2,3,5\) MAD above background; smoothing \(0,1,2\) px; minimum area \(20,60\) px

18

number per cell \(\nu \)

red optical-density fraction; blue minus red; red optical density

3

threshold \(\theta \)

Otsu; median; mean of all cells

3

This gives \(18\times 3\times 3=162\) readings of the same images. For form, each of the 18 segmentations is cut at an elongation of \(1.3\), \(2\) or \(3\), giving 54 readings. The standard Gram label of each species is taken from its genus; Candida albicans, a yeast, has none.

LF12. The standard label is one reading among 162. In 2 of the 162 readings every species with a standard label receives it. In the other 160 at least one species is inverted. Over the readings, the share of species that receive their standard label runs from \(0.50\) to \(1.00\), with median \(0.84\). The readings that agree with the standard are found only by comparing with the standard: nothing in the images marks them.

LF13. Some species stay, others move.

species standard fraction called positive called positive
min – max median in readings
Escherichia coli \(-\) \(0.00\) – \(0.08\) \(0.00\) \(0/162\)
Pseudomonas aeruginosa \(-\) \(0.00\) – \(0.21\) \(0.01\) \(0/162\)
Streptococcus agalactiae \(+\) \(0.85\) – \(1.00\) \(1.00\) \(162/162\)
Propionibacterium acnes \(+\) \(0.78\) – \(1.00\) \(1.00\) \(162/162\)
Staphylococcus aureus \(+\) \(0.26\) – \(0.96\) \(0.77\) \(145/162\)
Listeria monocytogenes \(+\) \(0.07\) – \(0.93\) \(0.51\) \(83/162\)
Lactobacillus rhamnosus \(+\) \(0.00\) – \(1.00\) \(0.34\) \(62/162\)
Lactobacillus casei \(+\) \(0.00\) – \(1.00\) \(0.04\) \(43/162\)
Porphyromonas gingivalis \(-\) \(0.01\) – \(0.78\) \(0.33\) \(32/162\)
Neisseria gonorrhoeae \(-\) \(0.00\) – \(0.88\) \(0.21\) \(27/162\)
Candida albicans (yeast) none \(0.08\) – \(0.99\) \(0.96\) \(108/162\)

For the first group the colour at this \(D\) is far from the cut wherever the cut is put. For the second the same cells fall on either side depending on how they are segmented, summarised and cut. A yeast is given a Gram label by the same chain as the bacteria: the chain names whatever is put into it.

LF14. Form moves for every species.

species fraction called rod, min median max
Escherichia coli \(0.05\) \(0.35\) \(0.93\)
Staphylococcus aureus \(0.02\) \(0.18\) \(0.68\)
Neisseria gonorrhoeae \(0.03\) \(0.25\) \(0.75\)
Lactobacillus johnsonii \(0.00\) \(0.71\) \(1.00\)
Porphyromonas gingivalis \(0.54\) \(0.81\) \(0.97\)

The same E. coli cells are mostly “cocci” in one reading and mostly “rods” in another; S. aureus, a standard coccus, is up to two thirds “rods”. Touching cells joined by a looser segmentation read as long objects, and a lower elongation cut calls more of them rods. Both are choices of the chain, at a \(D\) that is already fixed.

LF15. Result. At one \(D\), with nothing changed in the cells or the preparation, the labels “Gram-positive”, “Gram-negative”, “rod” and “coccus” move with the segmentation, the number and the threshold. The standard labels of all species are recovered in 2 of 162 readings, and those two are picked out only by comparison with the standard. The atlas of Fig. 208 therefore fixes its labels twice: once by its \(D\) (LF2–LF3) and once by the reading chosen after it (LF11–LF14).

pict

Figure 244: Fraction of cells called Gram-positive for each of the 33 species (rows; \(+\) and \(-\) give the standard label) in each of 162 readings of the same images (columns, sorted by agreement with the standard). Images: [1017], the species of [1025].

pict

Figure 245: Each dot is one of 162 readings; its position is the fraction of cells of that species called Gram-positive. Purple: standard positive; red: standard negative; grey: no standard label (Candida albicans). The dashed line marks a majority.

pict

Figure 246: Each dot is one of 54 readings (18 segmentations, elongation cut at \(1.3\), \(2\) or \(3\)); its position is the fraction of cells of that species called rods.

Remark 105.1. The 162 readings of LF11–LF14 change only the three arrows after the image: segmentation, the number per cell and the threshold. The preparation \(D\) is the same in every image. If \(D\) itself is changed before staining begins, the labels are expected to move further. The decolorization time can be lengthened or shortened, the order of the reagents changed, the iodine left out, the age of the culture or the thickness of the smear varied (LF3). Each of these acts on the colour itself, before any reading. The variation of LF12–LF14 is then not the largest the chain allows but the smallest: it is what remains when the first and most consequential arrow is held fixed. A species that stays on one side of the cut in all 162 readings here, such as E. coli or Streptococcus agalactiae, stays there only at this \(D\). Under a decolorization long enough to remove the crystal violet from every cell, or with no decolorization at all, every species falls on one side, and the readings that now separate them would separate nothing. This experiment changes the preparation and was not done here; LF3 records what is reported for it.