By Zayneb Benyoucef, news reporter
Google has celebrated legendary composer Johann Sebastian Bach by creating the first-ever Doodle to be powered by artificial intelligence (AI).
The animation, which sits atop of the search engine's website, shows the 18th-century composer playing an organ – commemorating his day of birth on 21 March 1685.
In an interactive twist, the Google Doodle encourages users to compose their own two-measure melody.
Machine learning is then used to "harmonise the custom melody into Bach's signature music style".
Bach's chorales were known for having four voices carrying their own melodic line.
To develop the AI-powered Google Doodle, the tech giant's developers created a machine-learning model that was trained on 306 of Bach's chorale harmonisations.
Another team worked to allow machine learning to occur within the web browser instead of on its servers.