Data for Good

Data Driven Double IPA

Written by
DSL
Published on
August 14, 2024

[vc_row type=”in_container” full_screen_row_position=”middle” scene_position=”center” text_color=”dark” text_align=”left” top_padding=”45″ overlay_strength=”0.3″ shape_divider_position=”bottom” bg_image_animation=”none” shape_type=””]

[vc_row_inner column_margin=”default” text_align=”left” css=”.vc_custom_1620049063025{margin-top: -6% !important;}”]

[vc_custom_heading text=”This article is available in English” font_container=”tag:p|text_align:left|color:%23a0a0a0″ use_theme_fonts=”yes” css_animation=”fadeInDown” trp_param_show_language=”nl_NL” trp_param_show=”true” link=”url:https%3A%2F%2Fdatasciencelab.nl%2Fen%2F2021%2F04%2F23%2Fdata-driven-double-ipa%2F|||”][/vc_column_inner][/vc_row_inner][vc_row_inner column_margin=”default” text_align=”left”]

[vc_custom_heading text=”BREWING BEER WITH AI” font_container=”tag:h3|text_align:left” use_theme_fonts=”yes”][/vc_column_inner][/vc_row_inner][vc_row_inner column_margin=”default” text_align=”left”]

Brewing a data-driven beer?
This is likely to raise a legion of questions. Is the beer brewed by computers?
Will that be drinkable?
Brewing beer is a skill, a craft, shouldn’t we leave that to brewers?
No stress, grab a nice drink, this blog will discuss the beer being created in collaboration between Uiltje Brewing Company and Data Science Lab.
We’ll give you insight into the process and mystique surrounding the word “data-driven.
As a young innovative company, we immediately found a like-minded partner in Uiltje.
Brewing a beer based on data, how cool is that!
A project that fits well within our Lab.
But how does an idea like this come about?
It will surprise no one that a Friday afternoon gave the starting shot for this.
Can’t we do something with data and beer?
The sequel to this is obvious… he who does not dare, he who does not win.
Nice idea, but how are we going to do this.
With any data project, regardless of whether it is to produce a dashboard or Deep Learning model, the foundation consists of data.
In itself nothing shocking, but what data should this be?
How do we get this data?
And perhaps more importantly, what exactly do we want to do with it?
First, the questions arise, how does a beer usually come about?
To get a good answer to this question, we spoke with Marko Mihalić, Brewery Manager at Uiltje:

“Owl, of course, has the Fresh & Fast line. Delivered a new beer every 2 weeks. This means that every 2 weeks we make a new beer. Here we vary the style, one week a DIPA and 2 weeks later for example a Session IPA. This way we create variation in what we release. Inspiration for this we get from the available hop varieties and the quality of these hops. Hops are like grapes in wine, the same hop gives a slightly different taste every year. In addition, we test a lot in our own lab with different hop combinations to come up with new flavors. Furthermore, there are always new hop varieties coming in from the U.S. that we can work with. In our lab we then brew experimental brews of 20 – 25L and test things out that eventually lead us to recipes for new beers.”

Clearly, beer brewing is a craft.
As in virtually all industries, data can be a very nice supporting factor.
It can show connections that one would not easily come up with on one’s own.
It is then up to the user to do something with the results.
Computers cannot interpret data.
It is with this in mind that we begin this project.
The brewers ultimately have to work with the results.
They are therefore a logical starting point. What input from data could you work with?
How could you brew a data-driven beer with our help?
And how do you as a brewery view the use of data?
We put these, and many other questions, to the brewers of Uiltje.
From this came the following:

Marko: “A flavor palette would be a perfect starting point for us to start developing a recipe and brew.
If a set of characteristics to a specific beer style can be provided from the data and algorithm then we can move forward with that.
Using data to develop a recipe in this way is new for us.
In the field of marketing and sales more and more is done with data, this is comparable to other commercial companies.
However, in developing a new recipe and brew this is not yet the case.
Our brew kit is fairly manual.
We do have computers which regulate the cooling of the brew and also the pumps are controlled by computers.
We have the ambition to automate this a bit more, for example during mashing.
This ambition fits within the framework of a Craft brewery.
Craft is mainly about working with a living product, the brew, without foreign extracts, without using hop extracts and without pasteurizing

Good.
We as data scientists know what to do, collect data!
This is familiar territory for us.
We need data from reviews, real consumer opinions about beer.
Despite the fact that we have our own bar in the office, our own data at this point is still fairly limited.
This should not be a problem; lack of suitable data is more common.
Fortunately, we live in the 21st century and external data sources are almost always available, so too in this case.
Online reviews are given about many things, including beer.
There are even several websites, apps, forums, etc. created for this purpose.
Perfect!
Webscraping.
A technique that collects information from web pages and allows a dataset to be built.
This way an external dataset can easily be collected from publicly offered data.
How this looks technically you can read in this blog in which we also discuss various hooks and eyes.
For this blog, we will keep it lighthearted.
We have data, now what?
Now we have the reviews, many opinions on many different beer styles. How did they like the beer?
What flavors did they taste?
What style of beer was it?
How much alcohol was in it?
Was there anything else worth mentioning?
Plenty of information in which to create overview.
We are looking for the optimal combination of characteristics of a specific beer style.
Some information is virtually readily available, such as alcohol percentages, beer styles, etc.
However, what exactly people liked about it is not readily available.
What flavor combinations can people like?
To gain some insight into this, we used Natural Language Processing, or NLP.
NLP methods are used to extract valuable information from pieces of text.
In this way, we can link tastes and keywords to a review.
All well and good, for example, someone may taste citrus, grassiness & creaminess in an IPA, but how do these flavors get into the beer?
What ingredients create what flavors?
How does Owl play this up?

Marko: “The aromas released in a brew can be caused by several things. For example, hop varieties each have their own specific flavor. For example, the ‘Columbus’ hop gives off a grassy flavor and there are yeast varieties that cause a ‘hazy’ flavor. We have several beers with fruit notes. Flavors like pineapple cannot be extracted directly from hops or yeast, for this we regularly work with fruit purees which are added to the brew. Furthermore, with hop oils & dry-hoping different flavors can be added to the brew. Besides hops, malt is of course an ingredient of beer. Flavors such as chocolate and coffee come from the malt. Beer aged in barrels, ‘barrel aged beer,’ can also impart other unique flavors to the beer from the wood or liquor that was previously in that barrel.”

So many ways to add flavors to beer!
Not surprisingly, ‘craft beer’ has taken off in recent years.
We see data science projects a lot in such ‘growing markets’ because there is often even more development to be realized here.
This bodes well for this project!
What’s next?
Modeling!
On this dataset, we create a regression model to find a set of optimal characteristics.
These are the characteristics of the optimal beer.
You can read how we did this technically in the next blog!
By characteristics, we think of alcohol percentage, IBU (bitterness from hops), aroma, mouthfeel and of course the flavor combination, among others.
With this regression model, we arrived at an optimal set of beers of a specific beer style.
Better said, this model gives us the proportions of the best possible flavor combination.
We pass this ratio on to Uiltje.
The brewers can get to work, we can’t wait.

[/vc_column_inner][/vc_row_inner]

[vc_row type=”full_width_background” full_screen_row_position=”middle” equal_height=”yes” content_placement=”middle” scene_position=”center” text_color=”dark” text_align=”left” top_padding=”5%” overlay_strength=”0.3″ shape_divider_position=”bottom” bg_image_animation=”none” shape_type=””]

[vc_row_inner column_margin=”default” text_align=”left” css=”.vc_custom_1615891372117{margin-left: 5% !important;}”]

[nectar_highlighted_text highlight_color=”#00c588″ style=”half_text”]

Questions?

[/nectar_highlighted_text][/vc_column_inner][/vc_row_inner]

[vc_row_inner column_margin=”default” text_align=”left”]

[vc_custom_heading text=”Boudewijn Gresnigt” font_container=”tag:h4|text_align:left” use_theme_fonts=”yes”][vc_custom_heading text=”boudewijn.gresnigt@datasciencelab.nl” font_container=”tag:p|text_align:left” google_fonts=”font_family:Raleway%3A100%2C200%2C300%2Cregular%2C500%2C600%2C700%2C800%2C900|font_style:400%20regular%3A400%3Anormal” link=”url:mailto%3Aboudewijn.gresnigt%40datasciencelab.nl|||” css=”.vc_custom_1615891099905{margin-top: -2% !important;}”][vc_custom_heading text=”+316 28 47 67 67″ font_container=”tag:p|text_align:left” google_fonts=”font_family:Raleway%3A100%2C200%2C300%2Cregular%2C500%2C600%2C700%2C800%2C900|font_style:400%20regular%3A400%3Anormal” link=”url:tel%3A%2B31628476767|||” css=”.vc_custom_1615891040783{margin-top: -7% !important;}”][/vc_column_inner][/vc_row_inner]

Questions? Please contact us

Blog

This is also interesting

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

In the competitive world of food and supplements, data offers unprecedented opportunities for brands to differentiate themselves. For brands focused on transparency,…

As an organization, you know you need to do something with the available data. We often hear the phrase “Maybe we should…

The Floating Farm in Rotterdam is the world’s first floating farm. Its priorities are animal welfare, circularity, sustainability and innovation. Once interesting…

Sign up for our newsletter

Do you want to be the first to know about a new blog?