Lesion expansion coefficients, and why colour beats grey for disease severity

A 2025 study multiplies automatically segmented rust lesions by 2.74 to get wheat severity right. We draw leaves of known severity, measure them with fibub's Leaf disease severity tool, and show where that coefficient comes from.

Disease severity is the share of a leaf’s area that is diseased, and it decides how a variety is rated, when a field is sprayed and whether a fungicide trial worked. Measuring it from a photo sounds easy and is not: an automatic threshold finds the obvious part of each lesion and misses the faded tissue around it. A 2025 paper in Frontiers in Plant Science takes that miss seriously. On 400 photographs of wheat leaves with stripe rust, the authors compare hand-drawn lesions with automatically segmented ones, measure how much bigger the real lesion is, and then multiply the machine’s lesions by a single coefficient of 2.74 before working out severity, lifting class accuracy to 96.16 %. This article draws leaves whose severity we know exactly, measures them with the maths behind fibub’s leaf disease severity tool, and shows where a coefficient like 2.74 comes from — and when you do not need one. Afterwards, turn severities over time into one number with disease progress (AUDPC), or measure the leaf itself with the leaf area.

The paper in brief

The authors photographed single wheat leaves on white paper with three cameras, 50 leaves in each of the eight severity classes of China’s national scale (1, 5, 10, 20, 40, 60, 80 and 100 %). They outlined every leaf and every lesion by hand in Photoshop, then segmented lesions automatically: grey the image, split it with Otsu’s threshold, keep the connected groups.

Comparing the two gave expansion coefficients: one global value, 2.74, and two class-wise sets (1.28 to 3.31, and 3.31 to 4.21). Applied through three slightly different expansion methods, the global 2.74 did best, raising severity-class accuracy from 89.91–93.34 % to 92.57–96.16 %. The paper’s claim is modest and practical: automatic segmentation systematically under-reads lesions, and one empirical multiplier fixes most of it.

Checked with the tools

fibub’s tool works differently. It finds the leaf against the background with Otsu’s threshold, then sorts every pixel inside the leaf by colour: a pixel is healthy if its hue lies between 65° and 170° with at least 15 % colour strength, and anything else — yellow, brown, black, grey — is lesion. No coefficient, because the faded tissue is yellow, and yellow is not green.

To compare the two ideas we drew 140 leaves, 28 in each of five classes (1, 5, 10, 20 and 40 %). Each leaf is a green ellipse carrying pustules: a dark reddish-brown core inside a pale yellow halo four pixels wide. Both count as diseased, and we know their exact pixel count. We then measured each leaf twice, using the same library both times: once with the tool’s colour rule, and once with the paper’s automatic step (grey the picture, Otsu inside the leaf, take the minority side as lesion).

Severity drawn Colour rule (tool) Grey + Otsu True ÷ grey
1.81 % 1.81 % 0.98 % 1.86
6.04 % 6.04 % 3.16 % 1.92
10.96 % 10.96 % 5.48 % 2.01
20.91 % 20.91 % 10.75 % 1.95
40.64 % 40.64 % 21.15 % 1.93

The colour rule is exact: over all 140 leaves the largest difference between measured and drawn severity is 0.00 percentage points, and the leaf mask itself matches the drawn leaf pixel for pixel. The grey rule finds about half the diseased area, because the chlorotic halo is brighter than healthy green while the pustule core is darker, and one threshold can only ever catch one side of the healthy tissue. In our leaves the halo is 49.9 % of the diseased area, so the expansion coefficient needed is 1.93 on average, and 1.86 to 2.01 by class.

Two lesion rules on the same drawn leavesTwo lesion rules on the same drawn leaves010203040010203040Severity drawn (% of leaf area)Severity measured (%)Colour rule (the tool)Grey + Otsu, minority sidefibub.com
Figure 1. 140 drawn rust leaves (20 in each of seven severity classes), measured two ways with the same library: the tool’s hue-and-saturation rule, and a grey picture with Otsu’s threshold inside the leaf. The dashed line is perfect agreement. Drawn leaves, not the paper’s photographs.

That is where 2.74 comes from. It is not a property of rust; it is the inverse of the fraction of each lesion that happens to pass a grey threshold, which depends on the lesion’s colours, its halo and the camera. The paper’s own class-wise coefficients wander between 1.28 and 3.31, and ours between 1.86 and 2.01, for exactly the same reason. A coefficient fitted on one image set should not be carried to another.

Why one expansion coefficient cannot fit every classWhy one expansion coefficient cannot fit every class1234010203040Severity class drawn (%)True ÷ grey-threshold lesion areapaper’s single coefficient 2.74ours, 1.93Our drawn leavesPaper’s class-wise coefficientsfibub.com
Figure 2. How much a grey threshold has to be expanded to recover the whole diseased area, by severity class: ours from drawn leaves, beside the paper’s own class-wise coefficients. The two sets are not comparable in value, only in shape.

A caution about accuracy as a score. Scoring severity by which class it lands in, as the paper does, is forgiving, because the classes are wide. On our leaves, using the paper’s own eight-class scale:

Method Severity-class accuracy
Colour rule (tool) 100 %
Grey + Otsu, no coefficient 8.6 %
Grey + Otsu × our fitted 1.93 86.4 %
Grey + Otsu × the paper’s 2.74 97.1 %

A coefficient 42 % too large for our leaves still scores better on class accuracy than the right one, because over-expansion pushes borderline leaves up into the class the wide bins happen to want. Class accuracy therefore cannot tell a well-fitted coefficient from a roughly-fitted one. If you publish a severity method, report the error in percentage points of severity as well.

How we made the graphs

Both charts and every number come from scripts/blog-figures/wheat-stripe-rust-lesion-expansion-severity.mjs in fibub’s public code. It calls severity, severityClass, parseScale, luminance, histogram, otsu, threshold, countOnes, minChannel and noise from src/lib/sci/plantimg.ts, the maths behind the leaf disease severity tool. The grey comparison rule is built from the same functions, so the two measurements differ only in the rule, not in the code quality.

From the paper: the eight severity classes, the automatic segmentation recipe, the coefficients 2.74 / 1.28–3.31 / 3.31–4.21 and the accuracy figures. Our assumptions: the leaves themselves (ellipse 340 × 120 px), the pustule colours, the four-pixel halo, 28 leaves per class, ± 5 grey levels of noise, and reading the minority side of the grey threshold as lesion. The leaves are drawn, not photographed, and no number in our tables is the paper’s measurement.

How we test the maths

tests/sci.mjs runs tests/sci-tools/leaf-disease-severity.mjs on every change to fibub:

  • The example leaf is drawn with 150,781 leaf pixels and 10,246 lesion pixels, and the tool must read exactly those, giving 6.795 % severity.
  • On a noisy light-background leaf the automatic leaf threshold must be 80 with 150,781 leaf pixels and 10,437 lesion pixels, against NumPy’s 10,439 (two pixels sit on the hue boundary).
  • The dark-background rule with a typed threshold must match NumPy exactly: 273,816 leaf pixels, 163,131 lesion pixels, 9 spots.
  • Severity classes: 0 % → class 0, 4.9 → 1, 5 → 1, 6.8 → 2, 50.1 → 5, 100 → 5 on the scale 0, 5, 10, 25, 50, 100, and bad scales are refused.
  • New with this article: drawn leaves at five severities must come back to within 0.01 percentage points by the colour rule, while the grey-threshold rule must need an expansion coefficient between 1.7 and 2.3, leaf by leaf, to agree.

Check it yourself

On the leaf disease severity page, with no photo of your own:

  1. Press Use the example. It draws a leaf with six brown lesions on pale paper.
  2. Keep the Colour rules at their defaults: Background Light, Leaf threshold empty, Healthy colour from hue 65 to 170, colour strength at least 15 %, Smallest spot counted 20 px.
  3. It reads Severity: 6.8 % of the leaf, class 2 (over 5 up to 10 %), with Leaf 150,781 px at leaf threshold 55 (Otsu), Lesion 10,246 px and Spots 6. Those are exactly the pixels the page drew.
  4. Set Severity scale to 1, 5, 10, 20, 40, 60, 80, 100, the paper’s national scale. The class table grows to eight rows and this leaf still sits in class 2 (over 5 up to 10 %) — the severity never changes, only the bin it is reported in, which is why two papers using different scales cannot be compared class for class.
  5. Now break it on purpose: set Healthy colour from hue to 20. The yellow-brown lesions now fall inside the healthy window, so severity collapses to 0.1 % with 0 spots. That hue window, not an expansion coefficient, is what decides a colour-based severity, so write yours into your methods.

What researchers can use it for

  • Measure severity from a phone photo in the browser, leaf by leaf, with the hue window and threshold written into the result so a reader can repeat it.
  • Calibrate any automatic method against leaves of known severity — drawn, or printed and re-photographed — before trusting a coefficient from a paper.
  • Report percentage points, not just class accuracy, as the table above shows why.
  • Keep a severity list across a trial and hand it to disease progress (AUDPC) for the area under the disease progress curve.
  • Separate leaf area from severity: the leaf area measures the leaf, which matters when disease curls or shrinks it.

The fine print

  • Our leaves are drawn, so they test the measuring rules and the geometry, not wheat, rust or any camera.
  • Our grey rule is our own faithful reconstruction of the paper’s automatic step. The paper used MATLAB’s rgb2gray, Otsu and connected components; small differences in the rule change the coefficient, which is the article’s point.
  • We used the five classes from 1 to 40 %. Above that the disease is no longer the minority of the leaf, and a single grey threshold has nothing meaningful to find.
  • Our coefficient (1.93) and the paper’s (2.74) are not comparable in value, only in behaviour: both are the inverse of how much of a lesion a grey threshold happens to catch.
  • Real leaves bring shadows, specular highlights, curled edges and senescent tissue that is yellow but not diseased. Any colour rule needs checking against a human rating on the crop in front of you.

Sources

  • Qin, F., Wang, H., Jiang, Q. and Wang, H. (2025), A novel method based on lesion expansion to assess plant disease severity, Frontiers in Plant Science 16: 1510663, doi:10.3389/fpls.2025.1510663. Licence CC BY 4.0, taken from the Crossref record and the journal page, checked 2026-11-24. Values used here: 400 images of single wheat leaves with stripe rust, 50 in each of the eight severity classes of China's GB/T 15795-2011 scale (1, 5, 10, 20, 40, 60, 80, 100 %); leaf and lesion outlines drawn by hand in Photoshop 2022, and automatic lesion segmentation in MATLAB by rgb2gray, Otsu binarisation and connected components; lesion expansion coefficients Grate 2.74 for all classes, minrate 1.28 to 3.31 and meanrate 3.31 to 4.21 by class; severity-class accuracy 89.91 to 93.34 % with no coefficient and 92.57 to 96.16 % with Grate 2.74; the best combination being Grate 2.74 with the third expansion method at 96.16 %.
  • Otsu's automatic threshold: Otsu, N. (1979), IEEE Transactions on Systems, Man, and Cybernetics 9: 62-66 (method only).

If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.

Tools in this article

Read next