Building a Smartphone-Based Coffee Grind-Size Measurement Tool from Scratch
Year: 2026
Type: article
Abstract: This presentation was prepared for PyCon JP 2026 and describes the development of a coffee grind-size measurement and recommendation tool built with Python and AI agents. The talk covers three main topics:using a text-based C4 model as a shared design specification for human–AI collaborative development,fully automating coffee particle-size measurement with Python, OpenCV, and ImageJ/Fiji, andimproving a recommendation engine through repeated measurements and data-driven feature evaluation. The project began as an attempt to reproduce the grind size of coffee served at specialty coffee shops at home. Automated image analysis made it possible to collect particle-size data repeatedly, compare multiple statistical features, and identify features such as the area-weighted peak that correlate strongly with coffee strength measured as TDS.The presentation also discusses how AI agents were used across design and implementation, how measurement automation reduced the cost of experimentation, and how accumulated data helped refine the application itself. Presented at PyCon JP 2026.
Source: Figshare
Author: Naoya Oec
Language: English
Topic: Coffee research and impacts
Subfield: Pharmacology (medical)
Field: Medicine
Domain: Health Sciences
Open Access status: green
OpenAlex ID: W7204011207
