Optical Colour Sorting for Green Coffee: Which Defects It Removes and Which It Misses
Optical colour sorting for green coffee: how sorters work, which defects they remove or miss, single versus double pass and what to ask Vietnamese suppliers.
- An optical sorter photographs each bean as it falls past a camera and blows out beans whose colour is outside the set range.
- It removes black, sour, brown and foreign beans well. It cannot see internal faults, bad flavour in a normal-looking bean or size problems.
- Double sorting and hand picking lower the defect count further, at the cost of more reject volume and a higher price per tonne.
- A spec should state the number of passes, the defect limit after sorting and the sample the limit is measured on.

A black bean in a green coffee lot is small and easy to ignore, yet a handful of them per kilogram can change the cup. Optical colour sorting is the machine step most exporters use to remove them. Buyers see “double colour sorted” on offer sheets, but few know what the machine actually does or where it stops. This article explains both, so you can judge a spec line and ask the right questions.
For how defects are counted in a grade, read the guide to Vietnamese Robusta grades and screen sizes alongside this one.
How an optical sorter works
A colour sorter has a feeder, a chute or belt, a camera unit and a row of air ejector valves. Beans leave the feeder in a single thin layer and travel past the cameras. Each bean is photographed from one or both sides, and software compares its colour and, on some machines, its shape against a range set by the operator. If a bean falls outside that range, a short blast of air from a nozzle pushes it into a reject channel while good beans continue into the accept channel.
Most machines use visible light cameras. Some add near-infrared sensors that respond to differences a normal camera cannot see, such as certain foreign materials. Sorting speed is measured in kilograms per hour, and slower throughput generally gives a more accurate result because beans are more evenly spaced.
The operator controls two things: how dark or how off-colour a bean can be before it is ejected, and how sensitive the sorter is to small spots. Tight settings remove more defects but also eject more good beans. That trade-off drives price and is the reason a second pass is set differently from the first.
Which defects it removes well
Colour sorters work best on defects that look different from a normal green or grey-green bean:
- Black beans, whole or mostly black, from over-fermentation, drying on the ground or disease.
- Sour and brown beans, which are stained a reddish or yellow-brown shade by fermentation.
- Stones, sticks and husk, if their colour differs from the beans.
- Mouldy or visibly stained beans, where discolouration shows on the surface.
- Pale or white beans such as quakers in lots that include unripe fruit, where the pale colour stands out against the lot average.
These are the defects that weigh most in a cup, so colour sorting has a direct effect on flavour as well as on the count in the certificate.
What it misses
A sorter reads colour on the visible surface. It cannot judge what it cannot see:
- Internal faults. A bean that looks normal outside but is fermented or damaged inside passes through.
- Insect-damaged beans with small holes, if the hole is small or on the hidden side.
- Broken beans and fragments that are the right colour. Size and density tables handle these, not the camera.
- Beans with a normal colour and a poor cup, such as underdeveloped beans or those from unripe cherry that dried to a normal shade.
- Foreign matter of similar colour, such as pale stones or fibres.
This is why colour sorting is one step in a sequence and not a replacement for the rest of the dry mill.
| Defect | Colour sorter | Better handled by |
|---|---|---|
| Black beans | Removes well | Colour sorter, hand picking |
| Sour or brown beans | Removes well | Colour sorter, hand picking |
| Broken beans | Poor | Screens, density table |
| Light or underdeveloped beans | Partly | Density table, gravity separator |
| Insect damage | Partly | Hand picking |
| Stones and sticks | Depends on colour | Destoner, density table, hand picking |
| Internal fermentation | No | Picking and processing quality |
The usual order in a dry mill
Most Vietnamese export mills run coffee through a similar sequence, with variations by plant:
- Hulling removes the husk or parchment.
- Pre-cleaning takes out dust, chaff and large foreign matter.
- Size grading on screens, for example screen 13, 16 or 18.
- Density separation on a gravity table removes light and underdeveloped beans.
- Colour sorting removes discoloured beans and foreign matter.
- Hand picking on a belt for lots that need the lowest counts.
- Bagging and sampling.
Sorting by size first helps, because the camera and ejectors perform more evenly on beans of similar size. A mill that runs unsorted, mixed-size coffee through a colour sorter gets weaker results.
Single, double and triple passes
“Double sorted” is common on Vietnamese offer sheets. It usually means the coffee goes through the sorter twice, or through two sorters in sequence, often with the second pass set tighter. A triple pass is rarer and is used for lots sold on very low counts.
Each extra pass removes fewer defects than the one before it, because the easy ones are already out. It also removes some good beans, so the cost per tonne of accepted coffee rises. The reject stream from a sorter normally contains a mixture of true defects and good beans caught by tight settings. Some mills re-run the reject stream through a second machine to recover good beans, and sell the remainder into low grades.
The illustration below shows the typical pattern. The numbers are examples to show the shape of the curve, not a promise for any lot.
| Stage | Defects left per 300 g sample (illustrative) |
|---|---|
| After hulling and screens | High, depends on picking quality |
| After one colour sorter pass | Much lower, mostly black and sour beans gone |
| After second pass | Lower again, diminishing returns |
| After hand picking | Lowest, only for lots sold at a premium |
Get matched with a Vietnamese green coffee supplier · Send your spec
What to put in your spec
A line such as “double colour sorted” leaves too much open. A stronger spec contains:
- Number of passes and whether they are on the same machine or in sequence.
- Defect limit after sorting, expressed in the same method as the grade, for example black and broken per 300 g or a percentage by weight.
- Sample point. Is the limit measured on a sample drawn before bagging, at loading or on arrival?
- Hand picking, if required, and the share of the lot it covers.
- Foreign matter limit, usually 0.1% for a clean export lot.
- Cup clause that links the sorting to the flavour you expect, for example “free of ferment and sour notes”.
Combine this with an independent inspection at loading. Names such as Cafecontrol, SGS and Cotecna are common in Vietnam. The inspector draws a sample, counts defects and confirms the limit before the container is sealed.
Questions to ask a supplier
- How many sorter passes does this lot get and at what throughput?
- What is the defect count on the offer sample after sorting, and after hand picking?
- Is sorting done in the same plant that hulls and grades the coffee?
- What happens to the reject stream?
- Can I see a photograph or sample of the rejects?
Looking at the rejects is a quick and honest test. A reject sample full of black and brown beans shows the sorter is working. A reject sample full of good beans suggests the settings are too tight and you may be paying for waste.
Cost and price effects
Colour sorting adds a cost per tonne for machine time, power and lost beans. A second pass adds more. Hand picking costs more again because it is labour. The extra cost is easy to justify when the lot is sold on a clean specification, such as a premium Robusta for espresso or a fine Robusta for single-origin use, and harder to justify for a lot that will be blended into a dark roast. If you are comparing quotes, make sure every quote assumes the same number of passes and the same defect limit, or the price difference will be misleading.
A simple arrival check
Sorting claims are easy to test. When the first container arrives, pull a 300 g sample from several bags, spread it on a white tray under daylight and count black, sour and broken beans. Compare the result with the approved sample and with the certificate. If the count is higher, photograph the tray, keep the sample sealed and send both to the supplier and the inspector in the same week. A documented comparison is far easier to settle than a general complaint about quality.
Send your spec
If you need a particular sorting level, send your spec with the grade, defect limit, number of passes and volume. We reply within 24 business hours and match you with up to 3 Vietnamese exporters or processors whose mills run the sorting level you need. They quote and contract with you directly. The service is free for buyers and an NDA is available on request. If you want to know how the same suppliers dry and process the coffee before sorting, the processing methods guide is the best next read.
Questions buyers ask
Does colour sorting improve the taste of green coffee?
It improves the cup mainly by removing black and sour beans, which carry harsh and fermented flavours even in small numbers. It does not add flavour and cannot rescue a lot that was picked unripe or dried badly.
Is double colour sorting worth paying for?
For export lots sold on a low defect count, usually yes. A second pass at a tighter setting removes beans the first pass left behind. For a commodity grade used in a dark roast blend, one pass is often enough.
Can a colour sorter replace hand picking?
Not completely. Hand pickers see shape, surface damage and insect holes that a camera may miss, and they work on the already sorted stream. Top lots often use both.
How do I check that a lot was colour sorted?
Ask for the sorting record and the defect count of the pre-shipment sample, then count defects yourself in the approved sample. A tight count after a stated number of passes is the evidence that matters.
Sources
- Wikipedia, Sorting machine
- Specialty Coffee Association, Green Coffee Classification
- TCVN 4193:2014, Green coffee, technical requirements
More guides
Cupping Vietnam Robusta: Fine Robusta Protocol, Score Sheet and How to Read the Numbers
Fine Robusta cupping for Vietnam lots: protocol, score sheet attributes, what an 80 point result means, common faults and how to run a blind cupping.
EUDR for the Green Coffee Importer: Traceability Rules and What Vietnamese Suppliers Must Provide
EUDR coffee from Vietnam: plot geolocation, due diligence statements, mixed lots, the supplier data checklist, timing risks and contract clauses for EU buyers.
Dak Lak vs Gia Lai Robusta: What Origin Changes and What It Does Not
Dak Lak vs Gia Lai Robusta for green coffee buyers: altitude, soil, cup, milling hubs, logistics and why processing often matters more than province.