How to teach AI to speak Welsh


AI language programs need big databases, so will they ever be able to communicate in lesser-used tongues? Ian McLoughlin from the UK's University of Kent reports.


Ydych chi'n siarad Cymraeg?

Ydych chi'n siarad Cymraeg?

Golden Sikorka/Shutterstock

Pioneering smart home technologies and voice assistants don’t, as a rule, speak Welsh – although the Welsh government now aims to change that through their Welsh Language Technology Action Plan. But is their aim feasible, is it necessary, and how can it be done?

AI speech tools (like Google’s Pixelbuds) are heavily reliant on the use of big data sets to learn a language, its pronunciation, grammar and semantics. The ability or quality of the resulting tools is mainly limited by how much data is available (and how “good” it is). This means that, in theory at least, tools for a minority language like Welsh cannot become as capable as those for a mainstream language.

Languages with limited amounts of good training data available are termed “low resource” languages. Compared to English, Welsh resources are sparse, but there are several thousand languages with fewer speakers, and most likely much poorer resources, than Welsh.

Fortunately there is good research being done on a machine learning technique called “transfer learning”. This allows systems to learn using one set of data and to then apply this knowledge in another. In China it is being used for automatic speech recognition (ASR) of Tibetan, which has virtually no data available for training. The ASR system learned Chinese – which is linguistically very different to Tibetan – and was then retrained or finetuned to “understand” Tibetan. There is actually a lot of commonality between many languages – shared or borrowed words and pronunciation patterns – that helps this kind of technique.

Retraining AI in Welsh

So there is no reason why AI systems cannot be produced to converse in Welsh or other minority languages. But is there any reason why it should? All of the speech technology, smart homes and voice interaction systems used today are the products of commercial research. To put it bluntly, they exist to either make money from your data, to sell you more goods and services, or to influence your thinking. None of this AI exists for the public good.

Making a system that works well with Welsh may not be as easy as engineering everything in English. With current technology, speech AI experts will be needed (and we are expensive). There will be a need for Welsh training and testing material, and Welsh speaking testers must be involved. The dangers of not having Welsh speakers involved in the translation process has been amply demonstrated in the past, when an out of office email reply ended up on a road sign

Complete misunderstanding.

Complete misunderstanding.

Daisy Daisy/Shutterstock

Unless there is a strong enough economic argument, don’t expect big companies to rush into producing Welsh, Gaelic or Cornish speech systems. Even tech giant Samsung hasn’t yet managed to produce a UK-English speaking version of their Bixby assistant (international English speakers need to speak to it in fake American accents to get it to work). Even the US-English version was delayed due to a lack of resources.

And as long as Welsh speakers are happy to make use of English language AI systems, there may not be an economic argument – unless the Welsh government decides to pay to make it happen, which it has so far not done (the action plan is a “commitment” at this stage).

AI to the rescue

Technology marches on and techniques such as transfer learning are becoming more capable every day. This has allowed previous research on language adaptation to be refreshed and extended into development of multi-language deep learning techniques. Meanwhile, growing use of other kinds of digital technology by Welsh speakers has improved the collection of resources in the language, as has Welsh TV and radio. These advances mean that the cost of localising systems for Welsh (and other minority languages) is reducing.

Research on brain-like learning algorithms may just hold the key here. This is technology that can continually learn during use, just like humans learn to speak a new language. It is unlike most current AI systems that are trained in the lab, before being let loose in the wild – apart from a few exceptions some, like Microsoft’s Tay, notable for their spectacular failures. Future systems will be able to gradually acquire skills in a second language just by having users gradually introduce more and more of that language in their daily interactions. Rather than funding research into Welsh speech AI, the Welsh government may well do better by backing research into this new kind of adaptive learning technology.

Because all current speech AI systems handle the speech centrally (it’s not done in the device, but in a remote server farm), these systems could gather data from hundreds of users worldwide (or all over Wales) to rapidly learn. So the message to Welsh speakers today may be to not buy that English-language Google Home or Amazon Alexa if you want Google or Amazon to produce a system that works in Welsh. But if you do have one, as its software develops over the next few years, try speaking Welsh to it as much as possible. It may just surprise you and Siaradwch â chi yn Gymraeg.The Conversation

This article is republished from The Conversation under a Creative Commons license. Read the original article.

The conversation.png?ixlib=rails 2.1
The Conversation is an independent, not-for-profit media outlet that uses content sourced from the academic and research community.
  1. https://gov.wales/docs/dcells/publications/181023-welsh-language-technology-action-plan.pdf
  2. https://theconversation.com/explainer-how-the-latest-earphones-translate-languages-87136
  3. https://www.ethnologue.com/language/cym
  4. https://www.ethnologue.com/browse/names
  5. https://www.ethnologue.com/statistics/size
  6. https://www.ethnologue.com/language/cym
  7. https://ieeexplore.ieee.org/document/5288526
  8. https://ieeexplore.ieee.org/abstract/document/8282215
  9. https://www.theguardian.com/technology/2017/jan/22/home-battleground-amazon-google-voice-technology
  10. http://news.bbc.co.uk/1/hi/7702913.stm
  11. https://eu.community.samsung.com/t5/Smartphones-Tablets-Wearables/Bixby-Voice-Command-UK-Music/td-p/252275
  12. https://www.phonearena.com/news/Samsungs-Bixby-Voice-delayed-due-to-lack-of-resources_id95414
  13. http://www.cs.cmu.edu/%7Etanja/Papers/SchultzSpecomOrigPublication.pdf
  14. http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.368.5160&rep=rep1&type=pdf
  15. https://www.theguardian.com/technology/2016/mar/24/tay-microsofts-ai-chatbot-gets-a-crash-course-in-racism-from-twitter
  16. https://blogs.microsoft.com/blog/2016/03/25/learning-tays-introduction/
  17. https://www.cs.uic.edu/%7Eliub/lifelong-machine-learning.html
  18. https://techxplore.com/news/2017-11-google-pixel-buds-earphones-languages.html
  19. https://translate.google.co.uk/#cy/en/Siaradwch%20%C3%A2%20chi%20yn%20Gymraeg
  20. http://theconversation.com
  21. https://theconversation.com/how-to-teach-ai-to-speak-welsh-and-other-minority-languages-105675
Latest Stories
MoreMore Articles