Petiole Pro Blog

Apple Colour Assessment with AI: Ripeness Checks, Starch-Iodine Tests, Leaf Area, Leaf Greenness and Disease Spots

How image analysis turns apple colour into a ripeness check, makes the starch-iodine test objective, and measures leaf area, leaf greenness and disease spot coverage in orchards.

Published on 22 October 2026 by Dr Maryna Kuzmenko

A photo of nine red and bicoloured apples next to two Petiole Pro Color Index screens that turn the same apples into greyscale colour-index maps.

Orchard & fruit quality

Short answer: a camera and an AI model can turn the colour of an apple into numbers — how much of the skin is blushed, how green or yellow the background colour is, and how this changes across a block from week to week. Used alongside firmness, sugar and starch, those numbers make the harvest decision more consistent. The same image-analysis approach also makes the starch-iodine test objective, and measures leaf area, leaf greenness and the share of a leaf covered by disease spots.

Key takeaways
  • Colour is a useful but incomplete ripeness signal. Background (ground) colour tracks maturity more closely than red blush, which depends heavily on light, variety and weather.
  • Image analysis replaces “looks about right” with a measurement. Per-fruit colour, blush coverage and colour distribution can be recorded, compared and trended.
  • The starch-iodine test is a natural fit for AI. A photo of cut halves gives a stained-area percentage and a chart score that does not depend on who is scoring.
  • Leaves carry the orchard's story too. Leaf area, leaf greenness and the percentage of leaf area covered by lesions are all area and colour measurements — the same toolkit.
  • Calibration makes it trustworthy. A reference plate of known size and colour in every photo is what turns pixels into square centimetres and comparable colour values.

Why does apple colour matter for ripeness?

Apple colour matters because it reflects two different processes happening in the skin, and only one of them is closely tied to maturity.

  1. Background colour (ground colour). This is the underlying colour of the skin, beneath any red. As the fruit matures, chlorophyll breaks down and the background shifts from green towards yellow. Because chlorophyll loss is part of the ripening process, background colour is the more reliable colour-based maturity indicator.
  2. Blush (over-colour). This is the red, produced by anthocyanin pigments. Blush development depends strongly on sunlight reaching the fruit, on cool nights, on the variety and on the position of the fruit in the canopy. A well-exposed apple can be deeply red while still immature, and a shaded apple from the same tree can be ready but pale.

That is why experienced growers and advisers look at the background colour on the shaded side of the fruit, not just the red side, and why colour is always read alongside other maturity tests.

Trays of 'Fuji' apples picked 120, 140 and 160 days after full blossom from a low-altitude and a high-altitude orchard; the high-altitude fruit turns red much sooner. Charts beside them plot colour index, anthocyanins, hue angle, lightness, redness (a*) and yellowness (b*) for both orchards.
Same variety, same dates, very different blush: ‘Fuji’ apples from a high-altitude orchard (750 m) built far more red colour and anthocyanin than fruit from a low-altitude one (20 m), yet the authors report that ripening itself was not affected. Source: Karagiannis et al. (2020), Horticulture Research 7: 120, Fig. 2, doi:10.1038/s41438-020-00340-x, licensed under CC BY 4.0.

Colour also matters commercially, regardless of ripeness. Many supply specifications set a minimum percentage of red over-colour for a class or grade, so blush coverage directly affects packout and price.

What does colour not tell you?

Colour alone does not measure firmness, sugar content or starch conversion. A complete maturity picture usually combines:

Diagram of 'Fuji' apples sampled from 40 to 160 days after full blossom in a high- and a low-altitude orchard, with line charts of fresh weight, diameter, starch content, firmness, soluble solid content and dry matter over the season.
The non-colour indicators move together through the season: starch content peaks and then falls, firmness declines and soluble solids rise as the fruit approaches harvest. Source: Karagiannis et al. (2020), Horticulture Research 7: 120, Fig. 1, doi:10.1038/s41438-020-00340-x, licensed under CC BY 4.0.

AI does not replace this list. It makes the visual items on it — colour and the starch-iodine test — measurable and repeatable, and it makes recording much faster.

How does AI measure apple colour from a photo?

AI measures apple colour by first finding each fruit in the image, then outlining it precisely, and only then reading the colour of the pixels inside that outline.

A typical pipeline looks like this:

  1. Capture. A phone or fixed camera photographs fruit on the tree, in a crate or on a sorting table. A calibration plate (a reference card of known size and colours) is placed in the frame.
  2. Detection. An object-detection model (for example a YOLO-family model) finds each apple and draws a box around it.
  3. Segmentation. A segmentation model (for example SAM, the Segment Anything Model) traces the exact outline of each fruit, so leaves, branches and background are excluded.
  4. Colour correction. The colours of the calibration plate are used to correct for lighting, so a photo taken at 8 am in cloud and one taken at 2 pm in sun can be compared fairly.
  5. Measurement. For each fruit, the pixels are converted from RGB into a colour space that matches how we perceive colour — usually HSV (hue, saturation, value) or CIELAB (L*, a*, b*). From there you can calculate:
    • Hue angle of the background colour — moving from green towards yellow as the fruit matures.
    • Blush coverage — the percentage of the fruit's visible surface that falls in the red range.
    • Colour distribution across the sample — not just the average, but how many fruit are behind or ahead.
  6. Recording. Results are stored per block, row and date, so trends become visible across the season and between seasons.

This is the same structure Petiole uses for its leaf area pipeline: a calibration plate in the field of view, YOLO detection and SAM segmentation, with each step run as a job in the cloud.

A computer monitor showing a single red-and-yellow apple isolated from its background and enclosed in a detection bounding box.
Step two in practice: one apple found and boxed, with the background cut away so only fruit pixels are measured.
A photo of 47 apples laid on paving next to a small Petiole calibration plate, and three Petiole Pro screens where every apple is detected, marked with a coloured dot by size grade, and summarised as a count of 47 with an average diameter of 6.19 cm.
Detection at tray scale: Petiole Pro finds all 47 apples, uses the calibration plate for real-world size and groups the fruit into grades. The grading preset shown was built for potatoes (hence its labels); the grading standard can be customised for apples. More in our guide to counting round objects with a smartphone.

Why not just use the average colour of the image?

Because the average colour of a whole photo mixes fruit, leaves, sky and soil. Even the average of a single fruit can hide what matters: two apples with the same average colour can have very different blush patterns. Segmenting each fruit and measuring the distribution of colour inside it is what makes the numbers meaningful.

What about varieties without a red blush?

For green and yellow varieties — Bramley, Granny Smith, Golden Delicious — there is little or no blush to measure, so the analysis focuses on the background colour and its shift from green to yellow. For bicoloured varieties such as Gala, Braeburn, Cox or Jazz, both background colour and blush coverage are recorded, and they are kept as separate measurements rather than blended into one “redness” score.

How does the starch-iodine test work — and how can AI make it objective?

The starch-iodine test shows how much starch is left in an apple. As apples mature, starch is converted into sugars, and iodine stains starch blue-black, so a less-stained cut surface means a more mature fruit.

The test in brief

  1. Pick a representative sample of fruit from the block (different trees, different canopy positions).
  2. Cut each apple across its equator (through the “waist”, not top to bottom).
  3. Dip or spray the cut face with an iodine-potassium iodide solution and wait a minute or so for the stain to develop. Wear gloves — iodine stains skin and surfaces.
  4. Compare each stained face against a reference chart.

Starch usually disappears first around the core and then moves outwards, though the exact pattern varies by variety: some clear in a radial pattern, others in a ring. That is why variety-specific charts exist. Two widely used references are the Cornell Generic Starch-Iodine Index (a 1–8 scale, where 1 is fully stained and 8 is fully clear) and the CTIFL / EUROFRU chart (a 1–10 scale). Harvest targets on these scales depend on the variety and on how long the fruit will be stored, and are usually set with your adviser or packhouse.

Where the traditional test falls short

  • Scoring is subjective. Two people looking at the same half can give scores one or two points apart, especially in the middle of the scale.
  • Patterns don't always match the chart. Real fruit sits between reference pictures, and scorers round differently.
  • Records are thin. Usually only the average score survives in a notebook — the photo, the spread and the odd-looking fruit are lost.

What image analysis adds

Photograph the stained halves on a plain tray with a calibration plate. The model then:

  1. Finds and outlines each half.
  2. Separates the stained (dark) area from the unstained (pale) flesh.
  3. Calculates the stained area as a percentage of the cut face for every fruit.
  4. Optionally maps that percentage to the nearest score on your chosen chart.
  5. Stores the image, the per-fruit values, the average and the spread together.
Petiole Apple Starch Classifier: a photo of 40 iodine-stained apple slices in four rows, ranging from mostly blue-black to mostly clear, and the same slices each labelled with a starch index score of 3, 4, 7 or 8, with an average starch index of 5.8.
Petiole's Apple Starch Classifier scores every stained slice in one photo: 40 slices, an average starch index of 5.8, and the full breakdown (17 at 8, 6 at 7, 4 at 4 and 13 at 3) rather than a single averaged number.

The result is a starch reading that is consistent between people and between days, plus a visual record you can go back to when you compare storage results months later.

How do you measure leaf area from a photo?

You measure leaf area from a photo by placing a reference object of known size — a calibration plate — next to the leaf, outlining the leaf with a segmentation model, counting its pixels, and converting pixels into square centimetres using the plate.

The conversion is simple:

Leaf area (cm²) = leaf pixel count × (plate area in cm² ÷ plate pixel count)

Because the plate is in the same photo, at the same distance and angle, this works with an ordinary phone camera and no fixed rig.

Petiole Leaf Area Calculator: an apple leaf on a round calibration plate ringed with square markers, the same leaf outlined in blue by the model, the segmented leaf on a black background, and a result of one leaf at 22.0 cm².
An apple leaf on the Petiole calibration plate. The markers around the rim give the scale; the model outlines the leaf and reports its area in cm².

Why leaf area matters in apple orchards

  • Crop load and fruit quality. Fruit size, sugar and colour all depend on the leaf area available to feed each fruit. Leaf-to-fruit balance is a practical lens on thinning decisions.
  • Canopy development. Tracking leaf size through the season shows whether trees are growing as expected after pruning, planting or stress.
  • Trials and comparisons. Rootstock, nutrition, irrigation and biostimulant trials need leaf measurements that are faster than a bench leaf-area meter and less subjective than a visual estimate.

Leaf area measurement is the core of what Petiole was built for, and the same calibration-plate approach underpins every other measurement in this article. If you are new to it, start with do I need a calibration plate for Petiole Pro? and our independent validation on cotton leaf area against the LI-COR 3100.

How can AI measure leaf greenness?

AI measures leaf greenness by reading the colour of the segmented leaf, after correcting for lighting with the calibration plate, and expressing it as a greenness index.

Leaf greenness is closely linked to chlorophyll content, and chlorophyll is linked to nitrogen status and overall plant health. The standard field tool is a handheld chlorophyll meter such as a SPAD meter, which clips onto one spot of one leaf at a time. A photo covers the whole leaf — or many leaves — at once.

Common image-based greenness measures include:

  • Dark Green Colour Index (DGCI). Calculated from hue, saturation and brightness: DGCI = [(H − 60) ÷ 60 + (1 − S) + (1 − B)] ÷ 3. Higher values mean darker green. It was developed for turfgrass nitrogen status and is widely used for other crops.
  • Excess Green (ExG). Calculated from normalised RGB values as 2g − r − b, useful for separating green tissue and comparing greenness.
  • CIELAB a*. The a* channel runs from green (negative) to red (positive), so more negative a* means greener tissue.
Petiole Leaf Greenness Calculator: an apple leaf on the calibration plate with its two green reference patches, the leaf outlined in red, DGCI statistics for the leaf, the colour-correction swatches and a grid map of the leaf shaded by greenness category.
Whole-leaf greenness: the plate's two green reference patches correct the colour, then the leaf is scored as DGCI — mean, median and spread — and mapped cell by cell to show where it is paler.

What leaf greenness can — and can't — tell you

Greenness is an early, cheap signal. Uniform paling of older leaves can point to nitrogen shortage; yellowing between the veins can point to magnesium, iron or manganese issues; and patchy paling can come from root, water or pest stress. Greenness tells you that something is changing and where; it doesn't tell you why. Use it to decide which blocks to sample, then confirm with leaf tissue analysis and your agronomist. For the method in depth, see measuring leaf greenness with the DGCI.

How can AI measure disease pressure on apple leaves?

AI measures disease pressure by outlining each leaf, outlining the lesions or spots on it, and reporting the percentage of leaf area that is diseased. This percentage — disease severity — is the standard way plant pathologists express how badly a leaf is affected.

Diseases where spot area is a useful measure

  • Apple scab (Venturia inaequalis) — olive-green to brown, velvety lesions on leaves and fruit; the most important apple disease in the UK and much of Europe.
  • Powdery mildew (Podosphaera leucotricha) — whitish, felty coating on leaves and shoots.
  • Marssonina blotch (Diplocarpon coronariae) — brown blotches that can lead to early leaf drop; increasingly reported in European orchards.
  • Leaf spots from other fungi, and for comparison, physiological spotting and spray damage.
Petiole Leaf Disease Analyzer: an apple leaf on the calibration plate, the same leaf with detected disease spots marked in red, a report of total disease coverage and diseased area, and close-up crops of each detected lesion with its percentage of leaf area.
Each lesion is found, cropped and measured, and the report gives disease coverage as a percentage of leaf area plus the diseased area in cm².

Why area beats a visual score

Disease severity is traditionally estimated by eye, using standard area diagrams or ordinal scales such as the Horsfall–Barratt scale. Visual estimates are quick, but people consistently over- or under-estimate small percentages, and two assessors rarely agree exactly. An image-based measurement gives:

  • A continuous percentage, not a class — 3.2% and 4.8% are recorded as different.
  • Consistency across assessors, days and seasons.
  • Trends — the rate at which diseased area grows after an infection period, which is often more useful than a single snapshot.
  • Evidence for spray decisions and trials — comparing blocks, products or timings on the same measured basis.

An important boundary: measuring the area of spots is not the same as diagnosing the disease. Image analysis tells you how much of the leaf is affected. Confirming the cause still needs a trained eye, and sometimes a lab.

We go further into this in AI assessment of necrotic leaf area damage.

How do you take photos that give reliable measurements?

Good measurements start with consistent photos. A simple protocol:

  1. Always include the calibration plate, flat and in the same plane as the fruit or leaf.
  2. Use soft, even light. Shade or overcast conditions are better than direct sun, which creates glare and hard shadows. Avoid mixed light (half sun, half shade) across the subject.
  3. Use a plain background for leaves and cut fruit — a matte board or tray.
  4. Keep the camera square on to the subject and at a similar distance each time.
  5. Sample representatively. Take fruit and leaves from several trees and from different positions in the canopy (inside and outside, top and bottom, both sides of the row). Most errors come from the sample, not the camera.
  6. Label everything. Block, row, variety, date and sample number — in the file name or the app — so results can be trended.
  7. Keep the same routine all season, so week-to-week changes reflect the crop, not the method.
A phone held in a clamp directly above eleven apples on a dark matte table, its camera screen showing the apples in a grid with manual exposure and white-balance settings.
Square on, fixed distance, plain matte background and locked camera settings: the same set-up every time is what makes this week's numbers comparable with last week's.

The same rules apply to leaves; our guide on how to photograph leaves for accurate leaf area measurement covers them step by step.

Summary: one toolkit, five orchard measurements

Limitations to keep in mind

  • Colour is one indicator, not a harvest decision. Combine it with firmness, sugar and starch.
  • Lighting and camera differences matter. Without a calibration reference, colour values from different phones or different days are not directly comparable.
  • Models need representative examples. A model trained on one variety, one region or one camera may need adjusting for another.
  • Area is not diagnosis. Lesion measurement quantifies damage; identifying the cause still requires expertise.
  • Sampling still decides accuracy. A perfect measurement of an unrepresentative sample is still unrepresentative.

Working with Petiole

Replace visual scores with measurements you can trust

Petiole builds image-analysis tools for plant measurements — starting with leaf area and extending to colour, greenness and disease-spot coverage — using a calibration plate in the field of view and AI models for detection and segmentation. We run pilots with farms, packhouses and research organisations that want to replace visual scores with measurements they can trust and compare.

If you would like to test this on your own orchard, get in touch at [email protected]. The calibration plates are in the Petiole store.

Frequently asked questions

Can you tell if an apple is ripe from its colour alone?

Not reliably. Background colour (the shift from green to yellow) is linked to maturity, but red blush depends heavily on light and weather. Colour should be read together with firmness, sugar (°Brix) and the starch-iodine test.

What is the difference between blush and background colour?

Blush is the red over-colour produced by anthocyanin pigments, driven largely by sunlight and cool nights. Background, or ground, colour is the underlying skin colour, which turns from green to yellow as chlorophyll breaks down during maturation.

What does the starch-iodine test show?

It shows how much starch remains in the apple. Iodine stains starch blue-black; as the fruit matures, starch converts to sugars and the cut surface stains less. The result is scored against charts such as the Cornell 1–8 index or the CTIFL 1–10 scale.

Can AI score the starch-iodine test?

Yes. From a photo of the stained halves, image analysis can measure the stained area as a percentage of each cut surface and map it to a chart score, removing the differences between human scorers and keeping a visual record.

How do you measure leaf area with a phone?

Photograph the leaf on a plain background next to a calibration plate of known size. A segmentation model outlines the leaf, and its pixel count is converted to cm² using the plate's known area.

How is leaf greenness measured from images?

After lighting correction, the leaf's colour is converted into an index such as the Dark Green Colour Index (DGCI), Excess Green (ExG) or CIELAB a*. These track chlorophyll and are commonly used as an early signal of nutrition or stress.

How do you measure disease severity on apple leaves?

Disease severity is the percentage of leaf area covered by lesions. Image analysis outlines the leaf and the spots and calculates that percentage directly, giving a continuous, repeatable value instead of a visual class.

Does AI replace agronomists or advisers?

No. It replaces subjective estimates with measurements and makes record-keeping faster. Interpreting the results — and deciding what to do — remains the job of the grower and their adviser.

From LinkedIn

Dr Maryna Kuzmenko in a black t-shirt holding out a red apple, with more apples on a dark table behind her.
Dr Maryna Kuzmenko, founder of Petiole, with the apples behind this article's colour measurements.
If the post doesn't load, view it on LinkedIn.