Liwaiwai Liwaiwai
  • /
  • Artificial Intelligence
  • Machine Learning
  • Robotics
  • Engineering
    • Architecture
    • Design
    • Software
    • Hybrid Cloud
    • Data
  • Learning
  • About
  • /
  • Artificial Intelligence
  • Machine Learning
  • Robotics
  • Engineering
    • Architecture
    • Design
    • Software
    • Hybrid Cloud
    • Data
  • Learning
  • About
Liwaiwai Liwaiwai
  • /
  • Artificial Intelligence
  • Machine Learning
  • Robotics
  • Engineering
    • Architecture
    • Design
    • Software
    • Hybrid Cloud
    • Data
  • Learning
  • About
  • Artificial Intelligence
  • Machine Learning
  • Public Cloud

How Sweet It Is: Using Cloud AI To Whip Up New Treats With Mars Maltesers

  • March 31, 2021
  • liwaiwai.com

Google Cloud AI is baked into our work with customers all over the world. We’ve partnered with organizations to use AI to make new predictions, automate business processes, forecast flooding and even combat climate change and chronic diseases. And sometimes, we even get to help our customers use AI to invent new things—tasty new things.

When legendary confectionery manufacturer Mars, Inc. approached us for a Maltesers + AI kitchen collaboration, we couldn’t resist. Maltesers are a popular British candy made by Mars. They have an airy malted milk center with a delicious chocolate coating. We saw this opportunity as a way to partner with a storied and innovative company like Mars and also a chance to showcase the magic that can happen when AI and humans work together.


Partner with liwaiwai.com
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

Good AI, or good design for that matter, happens when human designers consider the capabilities of humans and technology, and strike the delicate balance between the two. In our case, our AI pastry chef offered a helpful assist to its creator—our very own amateur baker and ML engineer extraordinaire, Sara Robinson!

Hunkered down in 2020, Sara and millions of others started baking. And, like a good dough, that trend continues to rise. According to Google Search Trends, in 2021 baking was searched 44% more compared to the same time last year. Sara hopped on the home baking trend to investigate the relationship between AI and baking.

 

AI + Google Search trends create a quirky dessert

This time around, Sara trained a new ML model to generate recipes for cookies, cakes, scones, traybakes, and any hy-bread of these. Armed with a dataset of tried-and-true recipes, Sara set out to the kitchen to find ways to infuse her own creativity and Mars’ Maltesers into the model’s creation.

After hours of model training and baking experiments, Sara cleverly combined chopped and whole Maltesers with her model’s AI-optimized cake and cookie recipes to create a brand new dessert.

Read More  Google Cloud Next 2019 | Everyone Flies Faster When BigQuery Fuels The BI Engines At AirAsia

But the team didn’t want to stop there. Our recipe needed a creative twist to top it off. We searched for something savory, creamy, and UK-inspired that we could use to balance the sweet, crunchy Maltesers. Enter, Marmite-infused buttercream!

With some help from Google Search Trends, we discovered that one of the top searched questions recently regarding “sweet and salty” was “Is Marmite sweet or savory?” A popular savory spread in the UK, we decided to incorporate Marmite into our recipe. Sara headed back into the kitchen and whipped up a Marmite-infused buttercream topping. Yum!

So, how exactly did Sara build the model? She started by thinking more deeply about baking as an exact science.

 

Building a sweet model with TensorFlow and Cloud AI

Our goal for the project was to build a model that could provide the foundation for us to create a new recipe featuring Maltesers and Marmite. To develop a model that could produce a recipe, Sara wondered: what if the model took a type of baked good as input, and produced the amounts of the different ingredients needed to bake it?

Since Maltesers are primarily sold in the UK, we wanted the recipe to use ingredients common to British baking, like self-raising flour, caster sugar, and golden syrup. To account for this, Sara used a dataset of British recipes to create the model. The dataset consisted of four categories of popular British baked goods: biscuits (that’s cookies if you’re reading this in the US), cakes, scones, and traybakes. To create a cake recipe, for example, the model inputs and outputs would look like the following:

Read More  Defense Innovation Unit Selects Google Cloud To Help U.S. Military Health System With Predictive Cancer Diagnoses
model inputs and outputs.jpg

Sara looked to Google Cloud for the tooling to build this model, starting with Cloud AI Platform Notebooks for feature engineering and model development. Working in AI Platform Notebooks helped her identify areas where data preprocessing was needed. After visualizing the data and generating statistics on it, she realized she’d need to scale the model inputs so that all ingredient amounts fell within a standard range.

With data preprocessing complete, it was time to feed the data to a model. To build the model, Sara used TensorFlow’s Keras API. Rather than using trial and error to determine the optimal model architecture, she made use of AI Platform Hyperparameter Tuning, a service for running multiple training job trials to optimize a model’s hyperparameters. Once she found the ideal combination of hyperparameters, she deployed the model using AI Platform Prediction.

AI Platform Prediction.jpg

AI and human creativity: better together 

The deployed model returns a list of ingredient amounts. If you’ve ever baked something, you know that this is far from a finished recipe. To complete the recipe, we needed to turn ingredient amounts into recipe steps, and find a creative way to incorporate both Maltesers and Marmite.

Our model was pretty good at predicting recipes for each of the distinct baked goods, but, thanks to the magic of its architecture, could also generate hybrids! The model’s best recipes were for biscuits and cake, which sparked the idea: what would happen if you combine two ML-generated recipes into a single dessert? The end result was a ML-generated cake batter sitting atop an ML-generated cookie.

We wanted the recipe to feature Mars’ Maltesers, and since the model outputs only included basic baking ingredients, deciding how to add Maltesers to the cake and biscuit recipes was up to us. Maltesers are delicious and versatile, so we decided to incorporate them in a few different ways. We chopped and incorporated them into the batter, and three whole Maltesers are hidden between the cake and biscuit:

Read More  Streamlining ML Development With Feast
baking process.jpg

Finally, to top off the dessert, Sara wanted to find a tasty way to include the salty addition of Marmite. After a few trials, she landed on a frosting combination that paired Marmite with a buttercream base and golden syrup (a popular ingredient in the UK). The final product features this sweet and salty frosting, made even better with extra Maltesers for garnish:

Maltesers AI Cakes.jpg

Digital experimentation is encouraged and embraced at Mars. “The ease and speed of bringing this idea to life has already sparked multiple ideas around the endless possibilities of how AI can bring innovation to the kitchen by creating a foundation for recipe development,” said Sam Chang, Global Head of Data Science & Advanced Analytics at Mars Wrigley. “We have long looked for ways to connect consumers with their favourite brands. By collaborating with the Cloud AI team, we discovered new avenues to inspire more creative cooking moments at home,” said Christine Cruz-Clarke, Marketing Director at Mars Wrigley UK.

 

Want to start baking? 

The only thing left to do is bake! If you want to make Maltesers® AI Cakes (4d6172730a) at home, the recipe is below. And if making cake dough, cookie dough, and frosting sounds like a daunting task, you can make and enjoy any of these three components on their own (even the frosting, we won’t judge). When you make this, we’d love to see your creations. Share photos on Twitter or Instagram using the hashtag #BakeAgainstTheMachine.

ML Maltesers recipe.jpg

By Sara Robinson Developer Advocate | Amir Dehbi, Enterprise Customer Engineer Data & Analytics
Source Google Cloud Blog


For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

liwaiwai.com

Related Topics
  • #BakeAgainstTheMachine
  • AI Cakes
  • AI Platform Hyperparameter Tuning
  • AI Platform Prediction
  • Cloud AI Platform Notebooks
  • Google AI
  • Google Cloud
  • Maltesers
  • Marmite
You May Also Like
OpenAI
View Post
  • Artificial Intelligence
  • Platforms

How We Interact With Information: The New Era Of Search

  • September 28, 2023
View Post
  • Artificial Intelligence
  • Engineering
  • Machine Learning
  • Platforms

Bring AI To Looker With The Machine Learning Accelerator

  • September 28, 2023
View Post
  • Artificial Intelligence
  • Technology

Microsoft And Mercy Collaborate To Empower Clinicians To Transform Patient Care With Generative AI

  • September 27, 2023
View Post
  • Artificial Intelligence
  • Technology

NASA’s Mars Rovers Could Inspire A More Ethical Future For AI

  • September 26, 2023
View Post
  • Artificial Intelligence
  • Platforms

Oracle CloudWorld 2023: 6 Key Takeaways From The Big Annual Event

  • September 25, 2023
View Post
  • Artificial Intelligence

3 Ways AI Can Help Communities Adapt To Climate Change In Africa

  • September 25, 2023
Robotic Hand | Lights
View Post
  • Artificial Intelligence
  • Technology

Nvidia H100 Tensor Core GPUs Come To Oracle Cloud

  • September 24, 2023
View Post
  • Artificial Intelligence
  • Engineering
  • Technology

AI-Driven Tool Makes It Easy To Personalize 3D-Printable Models

  • September 22, 2023
A Field Guide To A.I.
Navigate the complexities of Artificial Intelligence and unlock new perspectives in this must-have guide.
Now available in print and ebook.

charity-water



Stay Connected!
LATEST
  • OpenAI 1
    How We Interact With Information: The New Era Of Search
    • September 28, 2023
  • 2
    Bring AI To Looker With The Machine Learning Accelerator
    • September 28, 2023
  • 3
    3 Questions: A New PhD Program From The Center For Computational Science And Engineering
    • September 28, 2023
  • 4
    Microsoft And Mercy Collaborate To Empower Clinicians To Transform Patient Care With Generative AI
    • September 27, 2023
  • 5
    NASA’s Mars Rovers Could Inspire A More Ethical Future For AI
    • September 26, 2023
  • 6
    Oracle CloudWorld 2023: 6 Key Takeaways From The Big Annual Event
    • September 25, 2023
  • 7
    3 Ways AI Can Help Communities Adapt To Climate Change In Africa
    • September 25, 2023
  • Robotic Hand | Lights 8
    Nvidia H100 Tensor Core GPUs Come To Oracle Cloud
    • September 24, 2023
  • 9
    AI-Driven Tool Makes It Easy To Personalize 3D-Printable Models
    • September 22, 2023
  • 10
    Huawei: Advancing a Flourishing AI Ecosystem Together
    • September 22, 2023

about
About
Hello World!

We are liwaiwai.com. Created by programmers for programmers.

Our site aims to provide materials, guides, programming how-tos, and resources relating to artificial intelligence, machine learning and the likes.

We would like to hear from you.

If you have any questions, enquiries or would like to sponsor content, kindly reach out to us at:

[email protected]

Live long & prosper!
Most Popular
  • Coffee | Laptop | Notebook | Work 1
    First HP Work Relationship Index Shows Majority of People Worldwide Have an Unhealthy Relationship with Work
    • September 20, 2023
  • 2
    Huawei Connect 2023: Accelerating Intelligence For Shared Success
    • September 20, 2023
  • 3
    Applying Generative AI To Product Design With BigQuery DataFrames
    • September 21, 2023
  • 4
    Combining AI With A Trusted Data Approach On IBM Power To Fuel Business Outcomes
    • September 21, 2023
  • Microsoft and Adobe 5
    Microsoft And Adobe Partner To Deliver Cost Savings And Business Benefits
    • September 21, 2023
  • /
  • Artificial Intelligence
  • Explore
  • About
  • Contact Us

Input your search keywords and press Enter.