Guide · Experiments

Stop scoring your own experiments

Stop scoring your own experiments

If you manage a tissue culture lab, you can staff almost every step of a designed experiment from the crew you already have. The one step most managers keep for themselves is the scoring. It is also the step you can now hand to a language model, as long as you keep a way to check its work.

Where an experiment's time goes

Take a realistic media experiment: 17 runs, which is what a definitive screening design needs to test seven medium components at once. Each run gets 10 boxes of 2 plants. (Why 10 boxes is worked out below.) That is 170 boxes and 340 plants. Here is roughly where the time goes, and who can do each step.

StepRough timeWho can do it
Make 17 mediaAbout a day, more with more componentsa trained technician
Label and randomize the boxesAbout an houranyone
Cut 340 plantsAbout half a day, a bit more with fewer plants per boxyour cutting crew
Photograph 170 boxesAbout an houranyone
Score height, vigor, color…About half a day per scoring date, more with more traitsusually only you

Every row but the last is ordinary lab work. Your crew cuts plants all day, and someone can be trained on media prep. Scoring is different. It is a judgment, the experiment is only as good as that judgment, and so it lands on the manager's desk. Half a day of a manager's time, at every scoring date, is often why the experiment never gets run.

So why score at all? If someone photographs every box, which is good documentation anyway, the scoring can be done from the photos. And it does not have to be done by you.

Ask the easiest question there is

The trick is to change the question. A 1 to 5 score asks for a number, and people are bad at that: one technician’s 3 is another’s 4, and your own 3 drifts by next week. People, and language models, are much better at a simpler question:

Which of these two boxes has taller plants?
Which looks healthier?
Which would you rather subculture from?

A pile of answers like that is turned into a score for every box by the Bradley-Terry model, which Ralph Bradley and Milton Terry published in 1952 for exactly this: ranking things that can only be compared in pairs. It assumes each box has a hidden strength. If box A is three times as strong as box B, A should win three pairs out of four. Fitting the model finds the strengths that best explain every pick, so a box that beats strong boxes counts for more than one that beats weak ones.

You do not need every pair. 170 boxes have 14,365 possible pairs, but about eight comparisons per box is enough to rank them: 680 pairs for each question you ask. For a person that is a long afternoon. For a language model it is a batch job that runs while you do something else.

The output is one score per box per question, on a scale I like to read as the chance this box beats a typical box in the experiment. Average the boxes in each run and you have exactly the response your regression model needs, one per run per trait.

Then audit it

Handing over the scoring does not mean trusting it blind. The audit is simple: you answer some of the same pairs yourself, without seeing the model’s pick, and then see whether it agreed with you.

Try it below. Eight made-up boxes have already been judged, every pair, on two questions. Pick a question, then judge a few pairs yourself.

Audit the judge

YOUR TURN

THE JUDGE’S SCORES

The judge on this page is a stand-in so it runs in your browser: it sees each box’s true height and health and, like a real judge, gets close calls wrong now and then. Notice that the two questions rank the boxes differently. A tall box is not always a healthy one, so ask one question per trait.

Two habits make the audit honest:

  1. Measure yourself first. Some of the pairs you judge should be repeats, a few days apart. How often you agree with yourself is the ceiling. If the model agrees with you about as often as you agree with yourself, it is scoring as well as you do.
  2. Read the disagreements, not just the rate. Two boxes that are nearly the same will split any two judges, and that costs nothing. A pair with an obvious answer that the model got wrong is worth a look. It is usually the photo: glare, a label in the frame, a box shot at a different angle.

And if, after an audit or two, the model keeps agreeing with you? Then the half day you were spending on scoring was not buying anything the model could not give you.

How many boxes per run?

That leaves the question every designed experiment starts with. More boxes per run cost more media, more cutting and more photos. Too few, and a real effect hides in the noise. A power analysis gives the answer, and it needs four numbers you can estimate from a pilot or a past trial:

With those numbers, a 17-run definitive screening design and the usual 5% significance level, this is the chance of detecting that 7 mm effect for any one component:

Boxes of 2 plants per runPlants to cutChance of detecting the effectIf runs differ by 3 mm instead
26833%31%
413653%50%
620466%61%
827275%69%
1034081%75%
1551089%82%
2068093%87%

Ten boxes clears the usual 80% target. Three things in that table are worth knowing before you plan your own:

  1. A designed experiment uses every run for every component. Each component’s effect is estimated from 14 of the 17 runs at once, so 10 boxes per run does the work that a simple two-medium comparison would need far more boxes for.
  2. Boxes cannot fix differences between runs. Extra boxes shrink the box-to-box noise but leave the run-to-run noise untouched, so the gains flatten. If runs differed by 4 mm and you were looking for 6 mm, no number of boxes would get you past about 70%. At that point you need more runs, or more consistent media prep.
  3. For the same plants, more boxes beat fuller boxes. 340 plants as 20 boxes of 1 gives about a 90% chance; as 5 boxes of 4, about 78%. Boxes differ, so more of them average that difference out.

One more thing: estimate those four numbers from boxes scored the same way you plan to score this experiment. If the model judges your photos, its own close-call mistakes are part of the box-to-box noise, and a pilot scored by the model already includes them.

Keep the photos

The usual end of an experiment is a spreadsheet of numbers and a shelf of jars that get autoclaved. Every question you did not think to ask is gone.

A photo of every box is a better record. Six months later, when someone asks whether the high-cytokinin runs looked hyperhydric, you do not have to run the experiment again. You ask the model a new question about the same photos and get a new score for every box.

What to watch for

How InVitroManager does it

  1. Photos stay with the experiment. Photos of an experiment’s lots are kept with those lots, and each box in a photo is found and cut out on its own.
  2. Labels are found and hidden before any judging.
  3. A vision model judges the pairs and the picks are fitted with Bradley-Terry, giving every box a score.
  4. You audit it blind. You judge the same pairs without seeing the model’s pick, and see where you agreed.
  5. Scores roll up by treatment, next to each treatment’s contamination rate.
Your crew can cut, pour, label and photograph. Let a model do the scoring, and spend your half day on the audit, which takes a fraction of it.

So here is my question for other lab managers. In your last experiment, which step took the most of your time, and is it one you could have handed off?

Get new posts by email

I write these now and then. Leave your email and I will send the next one. No spam, and you can unsubscribe any time.

Double opt-in: we send a confirmation email first.

← All library entries