← Cases
JapanAgriculture and food production2015 – ongoing

Koike family cucumber farm

Home-built deep learning cucumber sorter

A farmer's son built a cucumber sorter with free AI tools; it scored over 95% in tests but about 70% on the farm

In progressCompany's own claimVendor ↗

Problem

On a small family farm in Japan, cucumbers were sorted by hand into nine grades by shape, size, colour and blemishes. At peak harvest the farmer's mother spent up to eight hours a day sorting, the skill took months to learn, and seasonal helpers could not be hired for it. Commercial sorting machines were too costly for small farms.

Approach

Makoto Koike, a former automotive embedded-systems engineer who returned to the farm, built a sorter with Google's open-source TensorFlow library after seeing AlphaGo. A Raspberry Pi controls cameras and checks that a cucumber is present, and a larger model on a Linux computer assigns one of nine grades, after which a conveyor and lever move the cucumber to its box. He trained it on about 7,000 photos labelled by his mother over three months, and the prototype went into use in July 2016.

Results

~70%sorting accuracy in real use on the farmCompany's own claim[1][2][3]
95%+accuracy on test imagesCompany's own claim[1]
~7,000labelled cucumber photos used for trainingCompany's own claim[1][2]
8 hdaily hand sorting at peak harvest before the sorterCompany's own claim[1][3]

Takeaway

Open-source tools let one person build a working prototype at very low cost, but too few low-resolution training photos missed colour, scratches and prickles, leaving accuracy at about 70% on the farm versus over 95% in tests. Cucumbers still needed hand loading, and each judgment took several seconds.

Categories

Business function
Production and quality
Innovation type
Process innovation
Evidence
Company's own claim

Sources

  1. How a Japanese cucumber farmer is using deep learning and TensorFlow
    Google Cloud blog1 Sep 2016Vendor publication
  2. The ultimate promise of artificial intelligence lies in sorting cucumbers
    Quartz (republished by Nextgov)2 Sep 2016News article

Source summaries

[1]Google Cloud blog1 Sep 2016

A Google developer advocate describes how Makoto Koike built a two-stage sorter with a Raspberry Pi and a Linux server running TensorFlow models. It gives about 7,000 training photos labelled by his mother over three months, images reduced to 80 by 80 pixels, test accuracy above 95% and about 70% in real use. It attributes the gap to too little data and low resolution.

[2]Quartz (republished by Nextgov)2 Sep 2016

Quartz reports that Koike spent three months labelling more than 7,000 images. The machine was about 70% effective after production use began in July 2016.

[3]GIGAZINE1 Sep 2016

The Japanese tech site describes the prototype's conveyor, cameras and lever and its nine grades. It reports about 70% correct judgments, several seconds per cucumber and hand loading, and says the mother sorted for eight hours a day in the busy season. It notes that every farm sets its own grading rules.

Full details are in the original sources.

Added 25 Oct 2026 · Updated 25 Oct 2026
Open case page ↗