Loading the page
Part 1
Our inhibition strategy uses published single-stranded DNA aptamers that bind the acyl-homoserine lactone (AHL) signals of Pseudomonas aeruginosa. The model represents these aptamers as molecular sponges that reduce the free signal available to receptors.
We calibrated the model using ALS-5 and A16-2 swarming data, tested it against the held-out Cb-2 treatment — which inhibited more than our baseline dosing assumption predicted, in all three assays, and less than an equal-molar one would — and estimated a higher A16-2 dose for future testing.
Code: GitLab (MIT; results and
report CC BY 4.0). Model outputs and re-analysis results are
traceable to files in the repository's
results/ directory, cited beneath the relevant tables and
figures. The measurements themselves
are the wet lab's, and are reported on the
Results
page.
Three aptamers were tested, targeting the las and rhl AHL signals.[1] Their preparation differed, which matters when comparing the treatments.
| Aptamer | Length | AHL target | Preparation tested |
|---|---|---|---|
| ALS-5 | 35 nt | 3-oxo-C12-HSL (las) | Chemically synthesised reference oligonucleotide |
| A16-2 | 44 nt | C4-HSL (rhl) | Chemically synthesised reference oligonucleotide |
| Cb-2 | 93 nt | Both signals | TRIzol extract of the retron culture carrying our Cb-2 construct |
Cb-2 was tested as a crude extract, not a purified oligonucleotide. Its aptamer concentration was not quantified, so its comparison with model predictions depends on dosing assumptions (1.4).
All three treatments reduced swarming and pyocyanin. A16-2 and Cb-2 also reduced biofilm; ALS-5's biofilm result was borderline (1.2). These measurements show partial inhibition, but do not establish the mechanism limiting the response. The model therefore addresses two questions:
We assess the held-out predictions first, then present the dose estimate with the limitations identified by that comparison. The estimate remains a hypothesis for experimental testing.
Plate photographs and the wet lab's original analysis are on the Results page. Section 1.2 explains this model's separate re-analysis of the same measurements.
A16-2 has the largest estimated swarming inhibition; Cb-2 has the largest estimated pyocyanin and biofilm inhibition. These rankings describe the point estimates and do not establish significant differences between treatments. Only ALS-5 and A16-2 swarming data are used for calibration; Cb-2 is held out.
| Assay | ALS-5 | A16-2 | Cb-2 |
|---|---|---|---|
| Swarming | 0.768 [0.669, 0.882] | 0.642 [0.562, 0.732] | 0.820 [0.697, 0.964] |
| Pyocyanin | 0.818 [0.736, 0.908] | 0.799 [0.712, 0.896] | 0.716 [0.641, 0.799] |
| Biofilm | 0.885 [0.779, 1.005] | 0.874 [0.785, 0.973] | 0.633 [0.563, 0.712] |
Reading the table: A16-2's swarming ratio of 0.642 corresponds to 35.8 % inhibition: (1 − 0.642) × 100. ALS-5's biofilm interval includes 1, while the resampled interval in Figure 1.1 below excludes it. Its biofilm effect is therefore treated as borderline rather than a robust positive result.
Source: effect_sizes.csv. Estimates are reported on the
geometric-mean ratio scale. Swarming and pyocyanin use mixed models
with plate as a random intercept; biofilm uses each treatment's
biological replicates as the analysis units.
Analysis units, in ALS-5 / A16-2 / Cb-2 order:
Unlike the Results page's arithmetic means and one-sample t tests, this analysis uses log ratios. The estimates therefore differ; ALS-5's biofilm result remains borderline in both analyses. The counts above are the readings and plates recorded for each treatment, and are not the same as the n given with each figure on that page.
Cb-2 biofilm uses 12 of 14 wells; two lacked traceable controls.
The cross-check also found that seven of the Cb-2 swarming
percentages listed in the wet lab's spreadsheet were divided by the
first plate's control rather than their own, with one
further assignment ambiguous. This analysis recomputes every ratio from
its own reading and its own plate's control, so the estimates above
are unaffected; the cells are named in
prism_crosscheck.csv.
effect_sizes_bootstrap.csv.
All three aptamers inhibit swarming and pyocyanin. All six of those intervals exclude no effect (p between 2.4×10−6 and 0.019), and the effects agree in direction, with overlapping magnitudes, across two independent phenotypes.
Biofilm resolves for Cb-2 and for A16-2, and not for ALS-5. Cb-2 removes 36.7 % of the biofilm [28.8, 43.7] on twelve replicates (p = 3×10−6) and A16-2 12.6 % [2.7, 21.5] on six (p = 0.023); ALS-5's 11.5 % does not clear the line (p = 0.057).
The ordering reverses between assays. A16-2 is the strongest in swarming, Cb-2 in pyocyanin and biofilm. The model is calibrated on the swarming measurements alone (1.3), and nothing on this page explains that reversal.
Growth effects have not been excluded. These phenotype measurements alone cannot distinguish AHL signalling inhibition from changes in growth or viability. Matched growth and viability measurements are needed alongside the phenotype assays (1.6).
The BL21 extract control showed no statistically significant difference from untreated controls in any of the three assays. It used E. coli BL21(DE3) without the retron plasmid, processed through the same culture, harvest and TRIzol extraction as Cb-2 (Results). This checks the extraction background, but does not establish equivalence or exclude growth effects specific to the Cb-2 sample. The control was not used for model calibration.
Supporting analyses: contrasts.csv,
equivalence_tests.csv, plate_split.csv,
power_requirements.csv and prism_crosscheck.csv;
see also model_report.md, section 1.
The model asks whether AHL sequestration can account for the observed swarming inhibition. It links aptamer binding, signal feedback and receptor occupancy to relative swarm radius. These links describe an assumed mechanism; the phenotype data alone do not prove it.
The model represents two signals: 3-oxo-C12-HSL (las, signal 1) and C4-HSL (rhl, signal 2). Its swarming output is:
R is swarm radius and θ2 is modelled rhl receptor occupancy. We fix β = 1, so a 50 % reduction in occupancy gives a 50 % reduction in predicted radius. This mapping is assumed, not independently measured; it does not describe bacterial survival or colony area.
Receptor occupancy depends on free signal concentration, with Ki the effective activation constant:
Signal production and removal, with autoinduction and an assumed las-to-rhl gate:
Binding is represented by rapid equilibrium with one competitive site per aptamer. Aj is the total concentration of aptamer type j; Kd,ji is its dissociation constant for signal i, and the subscript f denotes free signal:
Why one site, and what two sites would change. Cb-2 is a bifunctional aptamer that engages both the las and rhl signals,[1] but we have no measurement of how many signal molecules one Cb-2 molecule holds at once — not in our extract, and not as a value we could assign from the literature, where even the two affinities are already assumptions. Faced with that gap the model takes the smaller of the two readings: a single site that the two ligands compete for.
Two independent sites would give the same molar amount of Cb-2 twice the binding capacity, so it would hold more signal and the predicted inhibition would be stronger, not weaker. The single-site choice is therefore the conservative one about Cb-2's own performance, and it is not what produces the held-out mismatch in 1.4: at equal molarity, dual specificity already predicts more inhibition than the A16-2 specialist, because binding 3-oxo-C12-HSL also closes the las-to-rhl gate. What pulls the equal-mass prediction back towards no effect is length — a 93 nt molecule supplies about 47 % as many molecules per unit mass as a 44 nt one. Relaxing the single-site assumption would move the prediction towards the measurement, through the same molar-budget argument rather than against it. It has not been run as a variant, and 1.6 lists the binding structure among the things to test.
Two parameters are fitted to two swarming targets: the las-to-rhl gating parameter to ALS-5, and the effective A16-2 affinity to A16-2. Cb-2 is excluded from calibration and used for the held-out comparison in 1.4. Matching the two calibration targets is therefore not an independent validation.
| Parameter | Role | Point value | Range in the 296 joint draws |
|---|---|---|---|
| θlas, las-to-rhl gate | Fitted to ALS-5 swarming | 14.8 | 0.22–15.4 |
| Kd, A16-2 / C4-HSL | Fitted effective affinity | 5571 nM | 48–10 500 nM |
| Kd, ALS-5 / 3-oxo-C12-HSL | Fixed for calibration; literature-informed assumption[2] | 27.5 nM | Swept 20–35 nM |
| β, occupancy-to-radius exponent | Fixed for calibration; assumed mapping | 1 | Swept 0.5–2.0 |
Calibration uses plate-resampled ratios of 0.766 (ALS-5) and 0.639
(A16-2), rather than the mixed-model estimates of 0.768 and 0.642 in
1.2. The targets follow the same
resampling procedure used to propagate uncertainty.
Sources: model_calibration.csv and
uncertainty_summary.csv.
Only swarming is used for calibration. Pyocyanin and biofilm comparisons in 1.4 are additional checks under the stated output assumptions, not separately calibrated mechanistic models of those phenotypes.
The nominal mass concentration is 7.797 ng/µL, from a Nanodrop reading of TRIzol-extracted retron material (2026-07-31). The model treats this as ssDNA mass concentration and applies it to all three treatments. It is not a recorded plate dose or a sequence-specific measurement of Cb-2; ALS-5 and A16-2 were chemically synthesised reference oligonucleotides.
Using design lengths of 35, 44 and 93 nt gives nominal concentrations of 675, 537 and 254 nM for ALS-5, A16-2 and Cb-2, respectively. These conversions assume the assigned DNA mass is entirely the intended aptamer. The joint uncertainty sweep varies the mass concentration over 1–30 ng/µL, but does not resolve the unknown Cb-2 fraction or actual plate dilution.
| Input | Nominal value | Treatment in the model |
|---|---|---|
| LasR / RhlR activation constants | 50 / 1000 nM | Assigned effective inputs, varied in the sweep. These are modelling assumptions, not directly measured receptor constants. |
| Uninhibited signal levels | 1000 nM each | Assigned baseline levels; sweep ranges are 60–2600 and 56–5000 nM. These are modelling bounds, not verified literature intervals. Growth-dependent AHL measurements provide context.[3] |
| Autoinduction exponent h | 2 | Assumed cooperativity exponent; earlier models provide mechanistic context.[4] |
| AHL removal rates | 0.014 / 0.087 h−1 | Assigned first-order rates. Literature supports condition-dependent lactonolysis, not these exact plate-specific values. Rates cancel at steady state when synthesis is calibrated to the uninhibited levels.[5] |
The ALS-5 affinity is a literature-informed assumption. Zhao et al.'s abstract reports a 20–35 nM range for 3-oxo-C12-HSL-binding aptamers.[2] The model fixes 27.5 nM within that range; it is not a directly verified ALS-5 measurement under the assay conditions. The joint sweep varies it across that whole 20–35 nM range, where it moves no reported output appreciably (|PRCC| ≤ 0.03). A16-2's fitted value is likewise an effective model parameter, not a biochemical measurement.
Model records: params/parameters.csv and
model_calibration.csv. Reference
[3] is a verified quantitative AHL study used
here for context; it does not establish the exact concentration
bounds used in the existing sweep. Those bounds remain assumptions
(see 1.7).
Each of 400 joint draws combines a plate-level bootstrap resample with uncertain model inputs and refits the two parameters. 296 draws calibrate successfully; 104 do not. Of the failed draws, 102 cannot reproduce the ALS-5 target under their sampled inputs and two give multiple solver roots.
All reported draw-based medians and ranges are conditional on the 296 successful draws and exclude incompatible or ambiguous ones. The sweep varies the occupancy-to-radius exponent β over 0.5–2.0 and the ALS-5 affinity over 20–35 nM along with the other inputs; β is the strongest single influence on the dose required for 90 % inhibition (PRCC −0.54), and it remains assumed rather than measured. What the sweep does not cover is the one-site competitive binding, the assumption that Cb-2 matches each specialist's affinity, and the single well-mixed compartment. The fitted-parameter medians are 1.9 for the gate and 1117 nM for A16-2 affinity, illustrating their dependence on the input assumptions.
Use the model to propose experiments. The fitted parameters are effective values, not measured biochemical constants. 1.4 checks them first, against the held-out Cb-2 treatment.
Sources: uncertainty_summary.csv for the draw counts and
quantiles, model_report.md for how the 104 failures split,
and calibration_draws.csv for the resampled targets.
Cb-2 was excluded from calibration. Under the baseline equal-mass dosing and affinity assumptions, the model predicts less inhibition than measured in all three assays. This comparison concerns one held-out treatment across three phenotypes, not three independent validation experiments.
| Phenotype | Baseline prediction | Measured ratio [95 % interval] | Comparison |
|---|---|---|---|
| Swarming | 0.992 | 0.820 [0.697, 0.964] | Above measured interval |
| Pyocyanin | 0.996 | 0.716 [0.641, 0.799] | Above measured interval |
| Biofilm | 0.997 | 0.633 [0.563, 0.712] | Above measured interval |
The baseline predicts less than 1 % inhibition in each assay, compared with measured point estimates of 18.0 % swarming, 28.4 % pyocyanin and 36.7 % biofilm inhibition. Swarming tests the output relation introduced in 1.3; the other two comparisons additionally depend on assumed phenotype-output mappings.
Sources: model_predictions.csv and
cross_phenotype.csv. These comparisons place point
predictions against measured intervals; they are not model prediction
intervals or a formal joint validation test.
model_predictions.csv.
At equal mass concentration, the 93 nt Cb-2 construct supplies about 47 % as many molecules as the 44 nt A16-2 construct, using the model's length-based conversion. The decomposition below separates the effect of dual specificity from this change in molecular concentration.
budget_decomposition.csv.
This explains the baseline prediction's sensitivity to dosing, but does not establish the dose used in the experiment or the biological value of either construct. Neither the applied plate concentration nor the Cb-2 fraction of the crude extract was quantified. Future comparisons should report both mass and molar dose for quantified aptamer preparations (1.6).
The one-compartment model has a sharp switching region: its swarming ratio changes from 0.991 at 8.69 ng/µL to 0.658 at 8.70 ng/µL, skipping the measured point estimate of 0.820. An alternative model averages patches with different local doses to test sensitivity to this abrupt response.
Source: model_report.md, section 2.6.
Across the tested log-dose spreads of 0.2–0.7, the smoothed swarming prediction falls inside the measured interval. Pyocyanin and biofilm predictions remain outside their intervals. Spatial heterogeneity is therefore a possible explanation for the swarming mismatch, not an experimentally established cause. Local dose variation was not measured, and this comparison does not validate the other phenotype-output mappings.
The spread was varied as an assumption, not estimated from measured plate heterogeneity. Agreement over the tested range shows that this model variant can accommodate the swarming observation; it does not identify the true spatial structure. Unless explicitly labelled as spatial comparisons, the results in this part use the baseline one-compartment model.
Source: structure_comparison.csv.
A diagnostic refit adjusts one Cb-2 dose multiplier against all three phenotype estimates, keeping the other baseline assumptions. The reported best fit is 1.11× the nominal dose:
| Phenotype | Refitted ratio | Measured 95 % interval | Comparison |
|---|---|---|---|
| Swarming | 0.662 | 0.697–0.964 | Below interval: too much inhibition |
| Pyocyanin | 0.784 | 0.641–0.799 | Inside interval |
| Biofilm | 0.864 | 0.563–0.712 | Above interval: too little inhibition |
This refit does not reproduce all three assays within their measured intervals. It shows that this single-dose adjustment is insufficient under the baseline structure and output mappings. It does not establish that the experimental dose was correct, or rule out dose uncertainty combined with other model errors.
Source: cross_phenotype_dose.csv.
One inverse calculation gives a Cb-2 / C4-HSL effective Kd of about 158 nM, roughly 35 times tighter than the fitted A16-2 value of 5571 nM. This is a conditional model solution, not an independently measured affinity or evidence that stronger binding caused the observed inhibition.
The in-vitro binding assays reported by Wu et al. [1] provide a separate biochemical comparison. Neither their absolute values nor affinity ratios can be assumed to transfer unchanged to this crude-extract plate assay. Dose, sample composition, plate effects and model structure remain unresolved here; the inverse estimate cannot distinguish their contributions.
Source: cb2_inversion.csv.
The baseline does not reproduce the held-out Cb-2 results. The sensitivity analyses identify assumptions to test, but do not establish why Cb-2 differs from the baseline prediction. Quantified preparations, shared plates and matched growth measurements are needed to distinguish the alternatives (1.6).
The A16-2 dose sweep estimates 50 % swarming inhibition near 1.6× the nominal dose, with a 90 % draw range of 1.0–2.6×. This is a hypothesis for a dose-response experiment, not an experimentally demonstrated concentration requirement.
Here, 50 % inhibition means a swarm radius half that of the untreated control. The estimate extrapolates beyond the single-dose calibration described in 1.3. The Cb-2 mismatch in 1.4 does not directly test this A16-2 dose response, but it limits confidence in the model's broader predictive performance.
| Swarming inhibition target | Point-fit concentration | Point-fit multiplier | Median multiplier | 90 % draw range |
|---|---|---|---|---|
| 50 % | 12.1 ng/µL | 1.55× | 1.6× | 1.0–2.6× |
| 90 % | 201 ng/µL | 25.8× | 11× | 1.0–49× |
Sources: dose_requirements.csv and
uncertainty_summary.csv. Point-fit concentrations use the
nominal reference of 7.797 ng/µL. This reference was assigned
in the model; it was not a measured A16-2 concentration on the assay
plate or a demonstrated A16-2 production yield.
The 50 % target gives similar point-fit and median multipliers (1.55× and 1.6×), supporting its use as a starting hypothesis. For 90 % inhibition, the point fit and median differ by more than twofold and the draw range is much wider. The 90 % target is too uncertain to serve as a specific dose recommendation.
dose_requirements.csv.
In the model's dose analysis, ALS-5 does not reach 50 % swarming inhibition in 269 of the 296 successful draws (91 %). Its effect reaches swarming only through the assumed las-to-rhl gate, and at the fitted θlas = 14.8 that gate is almost fully open, so it barely transmits changes in las occupancy: removing las occupancy altogether changes rhl synthesis by about 6 %, and the predicted ALS-5 curve flattens. This is a property of the assumed gate, not evidence of a biological inhibition ceiling. A single-dose measurement cannot distinguish a saturating response from lower potency; testing that distinction needs a separate ALS-5 dose series.
The median and 90 % range summarise the 296 successful calibrations out of 400 joint draws. They are conditional on the sampled inputs and on calibration success, rather than a guaranteed range for a future experiment. Failed or ambiguous calibrations are excluded, as described in 1.3.
The sweep varies the nominal dose, the occupancy-to-radius exponent β and the ALS-5 affinity along with the other uncertain inputs. For the 50 % dose quoted here the uninhibited C4-HSL level leads the ranking (PRCC −0.35), ahead of β (−0.16), which ranks fourth here; β leads only for the 90 % dose. What the sweep keeps fixed is the one-site competitive binding, the assumed Cb-2 affinities and the single compartment. The point-fit A16-2 multiplier also changes from 1.55× to 1.65× in the spatial comparison in 1.4. That comparison tests one structural assumption; it does not establish robustness to all model choices.
Test a dose series around the proposed range. Quantify the A16-2 preparation and record the concentration actually applied, in both mass and molar units. Measure swarm radius with matched controls, growth and viability measurements; rhamnolipid measurements would also help assess the assumed link to swarming (1.6). The 1.6× estimate should guide that experiment, not be reported as a validated effective dose or a required production yield.
The model identifies measurements needed to test the proposed mechanism and the A16-2 dose hypothesis. The work below is proposed follow-up, not completed validation.
| Question | Proposed measurement | What it would clarify |
|---|---|---|
| Could growth explain the phenotype reductions? | Measure growth and viability under matched treatment conditions and sampling times. | Whether growth or survival changes accompany the reduced phenotypes; unchanged growth alone would not prove AHL sequestration. |
| Was Cb-2 compared at a known molecular dose? | Quantify the intended aptamer, compare purified preparations with appropriate extract controls, and record applied mass and molar concentrations. | The contributions of aptamer dose and sample composition to the mismatch in 1.4. |
| Do treatment differences persist within shared plates? | Include treatments and matched controls together on multiple independent plates for swarming and biofilm. | Treatment contrasts with less confounding by plate differences; repeated wells still need the correct analysis unit. |
| Does A16-2 reach half-radius inhibition near the predicted dose? | Run a quantified dose series around the proposed 1.0–2.6× range, with untreated controls and a recorded reference concentration. | Whether the unvalidated 1.6× hypothesis in 1.5 describes the experimental dose response. |
The multiplier must be tied to a quantified experimental reference; 7.797 ng/µL is the model's nominal convention, not a measured A16-2 plate dose. The dose series should estimate the response around the proposed target rather than treat 1.6× as a known effective dose.
Five limitations define how the model's predictions should be interpreted.
plate_split.csv).The model guides the next experiments; it does not establish an effective dose or confirm the inhibition mechanism.
Five core sources for aptamer design, binding assumptions, AHL levels and model mechanisms. Assigned model inputs remain distinguished from direct experimental measurements in 1.3.
Part 2
This model now runs inside our software, as Plate Imaging · Agar Vision in LasReader.
Colony sizes are measured by hand, one colony at a time. The work is slow and it has to be repeated for every plate. This part of the project is a tool built for the wet lab: it takes one photograph of a plate and returns every colony's size in millimetres, with each figure drawn across the colony it belongs to, so a reading can always be checked against what it was taken from.
It is not a model of the biology. What it models is the measurement — how a count of pixels becomes a length in millimetres, what the picture itself has to supply for that conversion to hold, and which of the bright things on a plate are colonies and which are not.
The pipeline is OpenCV throughout. A Hough circle transform[1] finds the dish, run on a downscaled copy — the dish is the largest thing in the frame, so the search does not need full resolution — with Otsu thresholding[2] as the fallback. Subtracting a large-σ Gaussian flattens the lighting. White light and UV are then two problems rather than one with a switch: brightness against the agar is a question of intensity, answered by Otsu; fluorescence is a question of hue, answered by the green-to-blue channel ratio, with the choice between them made from the blue-violet fraction of the frame in HSV.
The difficult part was never finding bright things. It was telling a colony from a reflection off the agar or the lid, which can be just as bright. Thresholding twice — a loose outline and a stricter core — and keeping only the connected components that hold enough core pixels settles it: a reflection is bright but thin, a colony is bright all the way through. Solidity and aspect ratio remove what is left. Touching colonies are split only where solidity says they need it, by a marker-controlled watershed seeded from the distance transform, because breaking a clean colony apart is the worse error. The figure drawn on the photograph is the Feret diameter.
| Quantity | How it is obtained |
|---|---|
| Maximum span | The longest distance between any two points on the colony's convex hull, converted to millimetres. This is the figure drawn on the picture. |
| Equivalent diameter | Take the colony's area and ask what a perfect circle of that area would measure across: that is this number, √(4A/π). It throws shape away on purpose, which is what makes it worth reading beside the maximum span — a round colony and a long thin one of the same area share an equivalent diameter but not a span, so the distance between the two figures is itself a reading of how irregular the colony is. |
| Area | Pixel count inside the outline, times the scale squared. |
| Threshold | What it decides |
|---|---|
| A loose outline at 1.1× Otsu, a core at Otsu + 0.6 of the way to white, and 30 core pixels | Whether a bright patch is a colony at all. The gap between the two thresholds is the whole reflection test: a reflection clears the loose one and fails the core one, because it is bright without being bright all the way through. Thirty pixels is what stops a few stray bright pixels from passing as a centre. |
| Solidity 0.80 | Whether a region is left alone or sent to the watershed. Everything above it is taken as one colony on sight. The line sits high deliberately: splitting a clean colony invents a result, while failing to split two that touch only merges a real one, so the benefit of the doubt goes to not cutting. |
| Blue-violet over 0.35 of the frame | Which of the two measurement problems this is — brightness or hue. Not a tuning knob but a switch between two routes, so it only has to separate two cases that look nothing alike, and anything in the middle of that range would mean the photograph is lit in some third way the pipeline was not built for. |
| Detection region at 0.90 of the dish radius | How much of the plate is looked at. The outer tenth is given up on purpose: the rim and the meniscus are where reflections collect, and the colonies lost there cost less than the false ones gained. |
Each plate below is shown twice: the photograph as it was taken, and the same photograph with what the program found drawn onto it. They are not four examples of the same thing. Each one puts a different part of the pipeline under load.
On the fifteen colonies we pulled out and measured by hand to check it against, spanning 8 to 26 mm, the program reads within 0.61 mm of a ruler on average — about four per cent of the size being measured — with no systematic bias the data can separate from zero. For an assay that compares colonies differing by several millimetres, that is well inside what the measurement needs to resolve.
| Colony | Program (mm) | By ruler (mm) | Difference (mm) |
|---|---|---|---|
| 1 | 14.0 | 14 | 0.0 |
| 2 | 21.7 | 23 | −1.3 |
| 3 | 11.6 | 12 | −0.4 |
| 4 | 16.3 | 15 | +1.3 |
| 5 | 8.0 | 8 | 0.0 |
| 6 | 15.0 | 14 | +1.0 |
| 7 | 27.2 | 26 | +1.2 |
| 8 | 20.3 | 20 | +0.3 |
| 9 | 15.9 | 15 | +0.9 |
| 10 | 24.0 | 24 | 0.0 |
| 11 | 13.0 | 12 | +1.0 |
| 12 | 16.0 | 16 | 0.0 |
| 13 | 17.0 | 18 | −1.0 |
| 14 | 21.4 | 22 | −0.6 |
| 15 | 17.9 | 18 | −0.1 |
| Measure | Value |
|---|---|
| Colonies compared | 15, from 8 to 26 mm |
| Mean absolute difference | 0.61 mm (3.6%) |
| Within 1 / 1.5 / 2 mm | 12 of 15 / 15 of 15 / 15 of 15 |
| Largest single difference | 1.3 mm |
| Correlation, r | 0.988 |
| Lin’s concordance | 0.987 |
| Mean difference (program − ruler) | +0.15 mm (SD 0.80) |
| Limits of agreement | −1.41 to +1.72 mm |
| Paired t | t(14) = 0.74, not significant |
Three things this changed about how the wet lab measures a plate.
Part 3
CAPTURE-Screen was built for our AHL biosensor and rehearsed on GFP cultures: we expected an AHL-induced culture to be about as bright as a GFP one (Hardware). Sections 3.1 to 3.4 were built on version 1 of the 3D-printed build, which was later replaced (Hardware); 3.5 checks what carried over to version 2. None of this part applies to the laser-cut build. What it describes is that instrument's measurement behaviour — how a count relates to the culture in the cuvette — not the biosensor's response to AHL, which has not been resolved.
Within that scope, the model had two questions put to it.
Is the reading proportional? Within one session, where the signal is clear of the floor, it is: double the GFP culture and the reading becomes 2.04×.
Why did the same recipe read six times higher on one day than another? Because a volume fraction is not an amount — a volume of thin culture holds less GFP than the same volume of dense culture. Dividing by the density of that day's stock brings the three slopes to within 8 % of each other.
| Symbol | Meaning |
|---|---|
| F4 | The sensor's 515 nm channel,[1] in raw counts: the mean of the valid cycles of one tube. |
| G | Volume fraction of GFP stock culture in the 200 µL tube. A nominal value, not a cell concentration. |
| N | Volume fraction of non-GFP stock culture in the tube, also nominal. |
| d | Both cultures together, G + N. |
| ρ | Stock density index: the displayed OD of the GFP stock, read in the low range and multiplied back by the dilution. |
| x | GFP density index of a tube, G · ρ. |
| k | Slope of F4 on G through the origin, within one session. |
| s | Slope of F4 on x through the origin: the slope after conversion. |
Sections 3.2 to 3.4 come from one instrument, P1-PROTO-01,
read under an opaque shield with the UVette in the same orientation and
the detector at the same settings throughout: gain 512×, ATIME 255,
ASTEP 280. The models rest on three mixing sessions, in which a GFP
stock, a non-GFP stock and fresh medium were combined at set volume
fractions into 200 µL tubes.
| Session | Tubes fitted | GFP stock, displayed OD | Pure-GFP tubes | Date |
|---|---|---|---|---|
| Mixing session 1 | 14 | 1.56 | 4 | 2026-09-16 |
| Mixing session 2 | 18 | 0.52 | 6 | 2026-09-21 |
| Mixing session 3 | 18 | 1.10 | 10 | 2026-09-29 |
That is 50 tubes, 38 containing GFP culture and 12 containing none. A pure-GFP tube holds GFP stock and medium only; those twenty are the ones the cross-session model uses.
The instrument's own log sets the scale of the noise. Within one insertion the three cycles differ by about 0.69 counts (root mean square), so a tube mean carries 0.27 to 0.43 counts of it. In four of seven replicate groups the spread left over between tubes is larger than that: there, seating, sampling, preparation or the cuvette contribute more than the detector's own cycle noise. Precision therefore comes from more tubes, not from more cycles per tube.
Each cycle reads the sensor three times: dark, lit, dark. A cycle whose dark read before the flash is not zero on all twelve channels is void, because that is what room light reaching the detector looks like. Each tube is read for three cycles and enters every model as the mean of its valid ones. The cycles are three looks at one tube, not three samples, so the tube is the unit throughout. A reading of zero is a legitimate value and is kept.
None of the tables below was typed in by hand. Each is generated by a script from the instrument's raw serial logs and the bench record, then recomputed by a second script, written separately, that compares the two cell by cell. Every tube mean the models use is listed, including the readings of zero and the tubes that were re-prepared, and the figures are drawn from those same means. The instrument itself is described on the Hardware page, and the software that turns a reading into a concentration on the Software page.
The simplest thing the reading could do is rise in proportion to the amount of GFP culture, with nothing left over at zero:
Pure-GFP tubes · lines are least squares through the origin
Through-origin slopes of F4 on G for the pure-GFP tubes: 30.93 counts per unit G in mixing session 1, 5.17 in session 2 and 18.69 in session 3. The figure needs the page script.
Is the line of 3.2 enough, or does the relationship bend? Fit cannot answer that. Add parameters and the fit always improves, even when the extra ones mean nothing. That is overfitting. R² cannot detect it, because overfitting raises R² as well. So we scored each candidate on tubes it had never seen. We did that on the readings already taken; nothing was measured again. The rule is leave one recipe out. Set aside every reading from one recipe, fit the model to the rest, then ask it to predict the readings set aside. Every recipe takes its turn, and those errors become the Left-out recipe error column.
Every model below is fitted to every tube of its session — 14, 18 and 18, the full 50 across the three sessions. That takes in the twenty pure-GFP tubes of 3.2, the mixed tubes and the non-GFP tubes alike. This matters because a model candidate below is a surface in G and d. A pure-GFP tube has d = G, so that surface cannot be fitted on the twenty pure-GFP tubes alone like 3.2 did.
| Session | Model | Parameters | R² | Fit error | Left-out recipe error | Lack of fit, p |
|---|---|---|---|---|---|---|
| Mixing session 1 | Line through the origin | 1 | 0.9710 | 1.57 | 1.72 | — |
| Line with intercept | 2 | 0.9723 | 1.53 | 1.78 | — | |
| Quadratic surface in G, d | 6 | 0.9766 | 1.41 | 3.04 | — | |
| Mixing session 2 | Line through the origin | 1 | 0.6644 | 1.23 | 1.63 | < 0.001 |
| Line with intercept | 2 | 0.7258 | 1.11 | 1.55 | < 0.001 | |
| Quadratic surface in G, d | 6 | 0.9656 | 0.39 | 0.87 | 0.337 | |
| Mixing session 3 | Line through the origin | 1 | 0.9606 | 0.97 | 1.02 | 0.506 |
| Line with intercept | 2 | 0.9634 | 0.94 | 1.04 | 0.534 | |
| Quadratic in G | 3 | 0.9643 | 0.93 | 2.92 | 0.409 |
The most important finding in this section: how
complex a model is warranted depends on how far the signal is from the
floor.
In mixing sessions 1 and 3, the
one-parameter line has the lowest left-out recipe error, and adding
parameters raises R² while making the predictions worse.
In mixing session 3 the line passes the lack-of-fit test. Mixing session 2 is the exception. Both line models show lack of
fit there, p < 0.001 for each, while the
quadratic surface shows none at p = 0.337. The
surface is also the more accurate on both counts: on
the tubes it was fitted to (Fit error), and on the left-out
recipes.
Session 2's stock was the thinnest of the three, at OD 0.52 (3.1). Its points sit
along the bottom of the figure in 3.2, most
of them within a few counts of zero. A straight line cannot describe
that.
Sessions 1 and 3 had signal to spare, and there the simplest model won.
Session 2 sat near the floor, and there it did not. So how complex a
model is warranted depends on how far the signal is from the floor.
The three slopes above are 30.93, 5.17 and 18.69, a spread of 6.0×. If the instrument behaved the same way each day, most of that should come from the stock itself: G is a volume fraction, and a volume of thin culture holds less GFP than the same volume of dense culture. So G is replaced by a density index x that carries how dense that day's stock was.
The same twenty tubes against x = G · ρ
After dividing by the stock density index, the three session slopes are 10.89, 10.09 and 10.87 counts per unit x, and one shared slope of 10.85 describes all twenty tubes. The figure needs the page script.
| Session | How ρ was read | ρ | k | s | Nominal 95 % interval of s |
|---|---|---|---|---|---|
| Mixing session 1 | The 1:4 tube, OD 0.71, × 4. Read once. | 2.84 | 30.93 | 10.89 | 8.65 to 13.13 |
| Mixing session 2 | The stock itself, mean of four reads (0.52, 0.49, 0.51, 0.53). | 0.5125 | 5.17 | 10.09 | 6.14 to 14.04 |
| Mixing session 3 | A 1:4 dilution, mean of two reads (0.43, 0.43), × 4. | 1.72 | 18.69 | 10.87 | 10.10 to 11.63 |
| All three | One shared slope, 20 tubes | — | — | 10.85 | 10.23 to 11.48 |
A conversion that only tidies the numbers it was fitted to proves nothing. The test is to hold a whole session out, fit the slope on the other two, and predict the session that was never seen.
Root-mean-square error, counts · pure-GFP tubes
Held-out error without conversion and with it: 13.22 and 2.38 counts for mixing session 1, 13.82 and 1.40 for session 2, 3.04 and 1.05 for session 3. The figure needs the page script.
The conversion works. With it, a session predicted from the other two lands as close as one predicted from its own day: 2.38 counts against 2.94 for mixing session 1, 1.40 against 1.90 for session 2, and 1.05 against 1.09 for session 3. A day the model has never seen is read as well as a day it was fitted on, which is what makes one session's reading comparable with another's.
Without the conversion the slope does not carry at all. The error reaches 13.82 counts in mixing session 2 — about twice the highest reading that session produced.
A prediction for a new stock was written into our closing report on 2026-09-30, with the rule for judging it fixed in advance. The reader was rebuilt on 2026-10-03, and it was never tested.
| Density index x | Tubes | Read above zero | Mixing sessions |
|---|---|---|---|
| 0 to 0.2 | 4 | 1 | 2 |
| 0.2 to 0.3 | 4 | 4 | 2 |
| 0.3 to 0.5 | 5 | 5 | 1, 2 and 3 |
| 0.5 to 1 | 18 | 18 | 1, 2 and 3 |
| 1 to 3 | 7 | 7 | 1 and 3 |
| All | 38 | 35 |
The models above describe the first reader. Its noise did not come mostly from the detector. In four of seven replicate groups, seating and preparation outweighed the cycle noise (3.1). That was one consideration in the rebuild that followed, alongside the parts that had broken or made loading slow.
The reader was rebuilt on 2026-10-03: five printed parts redrawn around a one-step cuvette seat, and one resistor to bring the LED to its design current. Putting the same tube back now repeats to 0.76 %, against 3.6 to 6.3 % before (Hardware).
Four sessions have run on the rebuilt reader. Three of them — a dilution series, a session on AHL plates and one on how dense a culture can be — show what carries over, and everything in this section was worked out after their readings were seen. All four are on the Hardware page; the fourth read the same tubes beside a plate reader, which this part does not model.
Three models were also fitted on the first reader to read G back from the sensor's channels, none of them needing the stock OD: F4 alone, a ridge regression on four channels, and a random forest. All three were applied unchanged to the twelve tubes of the dilution series, whose share of GFP culture is known. None did better than always guessing the mean of the training tubes: the best was off by 27.1 points on average against 27.8, and that only after the counts were scaled down for the higher LED current. The stock of that session gave more signal for the same share of culture than any stock the models had seen. G, a share of one day's stock, is not a scale that carries from one stock to the next.
Every tube in 3.1 that held no GFP read exactly zero on the green channel. The plate suspensions were far denser than any of those tubes, and in them the green channel no longer read zero without GFP. That has to be described before any reading from those plates can be used.
What the extra reading follows is scatter. The denser the suspension, the higher a scatter channel, F2, and the higher the green channel reads. So the description is the signal from GFP plus one term in proportion to F2, put through the curve R that the dilution series already traced at its faint end:
Only one number in it is new. S0 = 6.51 counts and n = 5.20 are the shape of R, taken from the dilution series and not refitted. c, the size of the scatter term, was fitted here and comes to 0.0629. It rests on thirteen captures from the two sessions that held no GFP or were judged not induced, and only three of those thirteen read above zero at all. That is a thin fit, so everything below is a check against readings it was not fitted to.
| Check | Result |
|---|---|
| Each of the thirteen captures, predicted from the other twelve | Off by 0.33 counts (root mean square). A straight line with one parameter is off by 1.15. |
| Each level of the dilution series, predicted from the others | 25 to 100 µL of culture recovered at 0.87 to 1.21 of the true volume; 12.5 µL at 0.67 to 0.68. |
| Fluorescence left once the background is taken off | +65.78 counts for the sfGFP culture and +17.00 for the suspension with sfGFP added. −0.59 to +0.22 for the six readings from plates judged induced. |
| The suspension with 20 µL of sfGFP culture added, predicted | 19.68 counts predicted, 23.56 read. |
One parameter fitted to three readings of the session it is meant to describe is thin evidence. So the background was measured on its own instead. On 2026-10-11 a non-GFP culture, one with no sfGFP gene to make any green of its own, was diluted and read 21 times, covering F3 from 5 to 89 (Hardware).
Those 21 points are the background itself, measured rather than modelled. Joined into a curve — the only assumption being that it never falls as scatter rises — they give the background at any scatter in that range, and the AHL session's readings can be set against them. The checks below use the two days' counts as they are.
| Check | Result |
|---|---|
| The measured curve: each of its 21 readings, predicted from the other twenty | Off by 0.20 counts (root mean square), 0.71 at most. |
| The two AHL-session readings without GFP that fall inside its range | +0.04 and +0.10 counts from the curve, with the two days' counts taken as they are. The empty cuvette scattered less on the second day. |
| Readings from plates judged induced, with that background taken off | −0.11 and −0.10 counts inside the range. The four densest lie beyond it: if the background does not fall there, at most +0.56 to +1.33 is left. |
| The suspension with 20 µL of sfGFP culture added | +19.76 counts. |
| Three other shapes for the background: a hinge on F3, a straight line cut off at zero, and R on F2 as above | Each lies within about 0.2 counts of the 21 readings, and with each what is left for the plates judged induced stays near zero or below. Refitted to these readings, c comes to about 0.064, against 0.0629 from the AHL session. |
Both are descriptions, not calibrations, and neither may be used to subtract a background from anything else. What they can do is tell a cuvette with added sfGFP from one without. What they cannot do is give an amount, so a reading that sits on the background means the reader read nothing above it there, and nothing more than that. What else follows is in 3.6.
Every limit this part has is here.
| We do not say | What the data supports |
|---|---|
| A calibration curve, an absolute GFP concentration,[3] a limit of detection | Relative readings within one session, and a description of these three sessions. |
| Non-GFP cells do not affect F4[4] | We compared tubes with the same GFP culture, one made up with medium and one with non-GFP culture, and did not resolve a difference between them. A non-GFP culture does stop reading zero once it is dense enough (3.5). |
| The instrument does not drift | After conversion the three sessions agree, with no sign of a large drift. Post hoc. |
| OD is a cell count[2] | A displayed OD that does not scale with dilution, for a reason not yet established. |
| The biosensor's dose–response to AHL | Not part of this model, because none has been resolved. None of these samples was induced with AHL: they are cultures reported to carry the sfGFP[5] plasmid, cultures without it, and medium. The one session on AHL plates did not resolve induction (3.5). |
| Every GFP sample is detected | 35 of 38 tubes read above zero; the three that did not all sat below x = 0.2. |
| The models carry over to the rebuilt reader | The three that need no OD did no better than guessing the mean on its dilution series (3.5). |
Summary
A model belongs on this page because it changed what we did, or what we do next. This is each part's answer to that, in one place.
| Model | The question | What it changed |
|---|---|---|
| Part 1 · 1.4 | Whether the sponge picture holds for a treatment it was never fitted to. | It does not. The held-out Cb-2 prediction of 0.992 sits above a measured 0.820, and the miss repeats in pyocyanin and biofilm; one shared dose correction cannot pull all three inside their intervals. That ruled out the simplest reading — that dose alone explains the gap — and put the preparation itself on the list of things to measure. |
| Part 1 · 1.5, 1.6 | How much more A16-2 the next swarming experiment should carry. | A dose series around 1.6× the nominal convention, spanning 1.0–2.6×, written down before the experiment rather than read off afterwards. It also fixed what gets recorded beside it: the applied concentration in both mass and molar units, and matched growth and viability controls, since the three assays on their own cannot separate signal sequestration from a growth effect. |
| Part 2 · 2.5 | Whether a photograph could stand in for measuring colonies by hand. | It can, and the wet lab stopped measuring them one at a time. Agreement with hand measurement is 0.61 mm on average, every colony inside 2 mm, with no bias separable from zero — finer than the differences the assays are built to compare. |
| Part 2 · 2.6 | How to get that reading to the people doing the measuring. | Classical vision rather than a learned model, so there are no weights to load, no inference step and no GPU: it runs on a free hosting tier instead of one machine in the lab. Each plate comes back as the photograph itself, with every span and a scale bar drawn on it, so no number is copied by hand. |
| Part 3 · 3.1 | Where the reader's noise actually came from. | Not from the detector. In four of seven replicate groups, seating and preparation outweighed the cycle noise, which was one consideration in the rebuild that followed. Putting the same tube back now repeats to 0.76 %, against 3.6 to 6.3 % before. |
| Part 3 · 3.4 | How to turn the cross-session model into evidence. | A prediction for a new stock was written into the closing report, with its verdict rule fixed in advance. The reader was rebuilt before it could be tested, so it stands unresolved. |
| Part 3 · 3.5 | Whether the earlier models could read the rebuilt reader's sessions. | They could not, so the AHL plate session was read with a one-parameter background fitted to its own controls, then against a background measured two days later on a non-GFP culture. Both are reported as descriptions. |