Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Brewing Beer with Python

Marco Bonzanini
December 04, 2018

Brewing Beer with Python

Lightning talk on using Artificial Intelligence to generate beer recipes

Marco Bonzanini

December 04, 2018
Tweet

More Decks by Marco Bonzanini

Other Decks in Science

Transcript

  1. Brewing Beer

    with Python
    @MarcoBonzanini 

    @PyDataLondon

    View full-size slide

  2. Python +
    Beer =
    Over-engineering

    View full-size slide

  3. MALT
    WATER HOPS YEAST

    View full-size slide

  4. 1.Mashing (grains + water)
    2.Boiling (+ hops)
    3.Cooling
    4.Fermentation (+ yeast)

    View full-size slide

  5. Grain bill:
    2Kg Pilsner malt
    1Kg Pale malt
    1Kg Wheat malt
    1Kg Wheat flakes
    0.5Kg Munich malt
    0.5Kg Oat flakes
    Mash:
    30m at 55C
    60m at 67C
    15m at 75C
    Boil:
    40g Magnum @ 60m
    40g Mosaic @ 10m
    20g Coriander seeds @ 10m
    In fermenter: 5 gallons
    Fermentation: 2 weeks at 20C
    Yeast: M21
    OG: 1.059
    FG: 1.015
    IBU: 64

    View full-size slide

  6. Grain bill:
    2Kg Pilsner malt
    1Kg Pale malt
    1Kg Wheat malt
    1Kg Wheat flakes
    0.5Kg Munich malt
    0.5Kg Oat flakes
    Mash:
    30m at 55C
    60m at 67C
    15m at 75C
    Boil:
    40g Magnum @ 60m
    40g Mosaic @ 10m
    20g Coriander seeds @ 10m
    In fermenter: 5 gallons
    Fermentation: 2 weeks at 20C
    Yeast: M21
    OG: 1.059
    FG: 1.015
    IBU: 64

    View full-size slide

  7. Recipe

    URLs
    XML

    Recipes
    Text

    Recipes
    requests pybeerxml

    View full-size slide

  8. Neural Networks

    View full-size slide

  9. Recurrent Neural Networks (RNN)
    http://colah.github.io/posts/2015-08-Understanding-LSTMs/

    View full-size slide

  10. RNN unrolled
    http://colah.github.io/posts/2015-08-Understanding-LSTMs/

    View full-size slide

  11. Long Short Term Memory (LSTM)
    http://colah.github.io/posts/2015-08-Understanding-LSTMs/

    View full-size slide