Coffee Data Science

Espresso Pre-wetting as Opposed to Pre-infusion

Residuals of a transparent portafilter experiment on pre-infusion

Robert McKeon Aloe
Towards Data Science
3 min readJan 18, 2021

--

I was experimenting with a transparent portafilter for espresso, and I published some results across a few experiments. In talking with Jonathan Gagné, he wondered if I could see a relationship between flow and time based on capillary action. So I applied my image processing skills to a video to help see if the relationship was visible, and it was observed!

Pre-wetting follows right in line with capillary action!

This is important because some times, we mistake pre-infusion for pre-wetting, and the result is that the puck is not fully wet which could result in a bad espresso shot. Pre-infusion is really the key to great espresso, so we ought to get that right every time.

Capillary Action

The general theory (see the heading “Liquid transport in porous media) is that when liquid being absorbed by a porous material, the rate of absorption decreases over time. So the vertical distance liquid has penetrated a volume of porous material is proportional to the square-root of the time the material has been in contact with the liquid.

Vertical Distance = constant*sqrt(time)

Experimental Setup

I used a make shift transparent portafilter (aka Kompresso), and I put some coffee in it. Initially, I poured hot water in, and I didn’t apply any pressure. The paper filter at the top reduced channeling based on flow input, so it acted like a shower screen.

All images by author

I captured a video at 4K resolution at 60 FPS. In processing the video, I focused on one area of the video.

I then summed the pixels across each row. I aimed for the simplest, quickest way to compute the average coffee line. I figured if there was a relationship, I should have to do anything super fancy. I then applied a simple threshold.

From here, I was able to extract the average coffee row value per frame. I plotted it below, and then I plotted it against the square root of time.

When comparing to the square root of time, there is a very strong correlation which confirms the way water goes through a puck during pre-wetting follows capillary action predictions.

A theory is testable, and I quite enjoy seeing this theory on capillary movement explain why pre-wetting isn’t the same as pre-infusion. This is most important for machines like Flair or Kompresso where you pour the water in, and you can decide if you want to do just pre-wetting or a 1 to 2 bar pre-infusion.

This is particularly important to point out for new espresso users to help distinguish the much needed pre-infusion from the optional pre-wetting.

--

--

I’m in love with my Wife, my Kids, Espresso, Data Science, tomatoes, cooking, engineering, talking, family, Paris, and Italy, not necessarily in that order.