Technology

From Swahili to Zulu, African techies develop AI language tools

By |

In Kenya, health tech firm Jacaranda Health has pioneered the first large language model operating in Swahili to improve maternal healthcare in East Africa.

When the Nigerian government announced plans in April to develop a multilingual AI tool to boost digital inclusion across the West African nation, 28-year-old computer science student Lwasinam Lenham Dilli was thrilled.

Dilli had struggled to scrape datasets from the internet to build a large language model (LLM), used to power AI chatbots, in his native Hausa language as part of his final-year project at university.

"I needed texts in English and their corresponding translation in Hausa but I couldn't get anything online, (there was) no clean data," Dilli told the Thomson Reuters Foundation.

"(Creating local language LLMs) is a way to ensure that our local dialects and languages will not be forgotten or left out of the AI ecosystem," he added.

The world has been swept up in a whirlwind of AI mania, with tools such as OpenAI's ChatGPT, Meta's Llama 2, and Mistral AI captivating millions globally with their ability to generate human-like text.

But for many tech-savvy Africans, the excitement has been tempered by a frustrating reality: when languages like Hausa, Amharic, or Kinyarwanda are entered into the chat, many of these advanced systems falter, often producing nonsensical responses.

Technology experts warn the lack of LLMs in African languages will lead to the exclusion of millions of people on the continent, increasing both the digital and economic divide.

The Nigerian government-led initiative to develop a multilingual LLM aims to level the playing field.

"The LLM will be trained on five low-resource languages and accented English to ensure stronger language representation ... for development of artificial intelligence solutions," said Nigeria's Digital Economy Minister Bosun Tijani in April.

The government will partner with Nigerian AI startups, and local data will be collected by volunteers who are fluent in any of five Nigerian languages: Yoruba, Hausa, Igbo, Ibibio, and West African lingua franca—Pidgin.

To build the model, the project will also draw on the expertise of more than 7,000 fellows from Nigeria's tech talent programme - a government scheme to train three million people in skills such as coding and programming.

Silas Adekunle, co-founder of Awarri, an AI startup that is part of the initiative, said building a nuanced AI tool that understood Nigeria's unique language and cultural landscape presented many challenges.

"We have so many different accents and languages, and this (LLM) will enable many people and developers to build products that leverage AI but are for the Nigerian market," said Adekunle.

"The scale of the project, especially with limited resources, has required us to be creative in how we train the model, gather the data, compute and label what we have."

Closing the AI language gap

Africa is home to more than 2,000 languages spoken across 54 countries, according to the United Nations Educational, Scientific and Cultural Organization (UNESCO).

However, the majority of African languages remain underrepresented on the internet. English dominates the digital space, accounting for around 50 per cent of all websites, followed by Spanish, German, Japanese, and French.

Visitors attend the AI for Good Global Summit on artificial intelligence, organised by the International Telecommunication Union (ITU), in Geneva, Switzerland, on May 30, 2024. (Photo: REUTERS/Denis Balibouse)

Along with the Nigerian government initiative, there is also a small but growing number of African startups rising to the challenge of developing AI tools in languages like Swahili, Amharic, Zulu and Sesotho.

In Kenya, for instance, health tech firm Jacaranda Health has pioneered the first LLM operating in Swahili to improve maternal healthcare in East Africa.

Built on Meta's Llama 3 system, UlizaLlama (AskLlama) aims to refine Jacaranda Health's SMS service for low-income Swahili-speaking expectant mothers who have queries ranging from dietary concerns and fetal movement to exercise during pregnancy.

The platform currently provides pre-written automated responses, but once UlizaLlama is integrated by the end of June, it will tailor responses to individual needs, offering more detailed pregnancy guidance and emergency support.

"A lot of these expectant moms can't just do a Google search. UlizaLlama's goal is to make sure that we get them the accurate answers in the fastest possible time," Jay Patel, Jacaranda Health's director of technology, told the Thomson Reuters Foundation.

"We're shooting for about 85 per cent accuracy to start with and a faster response time. At the moment, it takes a few minutes to respond, but we are hoping to get that down to less than a minute in the future."

In South Africa, the Masakhane initiative is using open-source machine learning to translate African languages.

Lelapa AI, a South African AI research lab, has pioneered VulaVula – a for-profit language processing tool that translates, transcribes and analyses languages in English, Afrikaans, Zulu and Sesotho.

Data scarcity, ethical concerns

But AI experts say building LLMs in African languages poses significant challenges, ranging from availability of data to ethical concerns over consent, compensation and copyright.

Many African languages are low-resource languages, meaning there is a scarcity of data to train these models effectively - unlike high-resource languages such as English or French.

Michael Michie, co-founder of Everse Technology Africa, an AI startup building intelligence into data protection and privacy, said collecting the data needed to train LLMs also raised ethical questions.

In many African communities, oral tradition predominates, and certain communities may not be interested in sharing their language to train LLMs and this should be respected.

"There are currently no regulations or laws in African countries that address issues related to consent, privacy and compensation to communities when collecting data to train AI tools - this needs to be addressed," said Michie.

"There are questions of who owns the language and who benefits. There needs to be guidelines to prevent exploitation and ensure the development of these LLMs benefits the people they are meant to serve," he added.

Open-source initiatives like Creative Commons, which allow creators to legally share their work with specified conditions like ensuring attribution and non-commercial use, are also not a perfect solution, said some AI experts.

"At the moment there's this push of saying everything should just be under Creative Commons," said Vukosi Marivate, associate professor of computer science at the University of Pretoria and co-founder of Lelapa AI.

But if everything is open source, it may be harder to properly reimburse and acknowledge the original contributors to these language models, he said.

"A lot of people are working on LLMs now because of the prestige, that's where the money is, but we need to make sure that our languages are actually being taken care of."

Reader comments

Recent Stories

KMPDU calls for justice after violent attacks on protesters, medical personnel

KMPDU calls for justice after violent attacks on protesters, medical personnel

Wednesday, June 26, 2024
53 killed in anti-Finance Bill protests, Police Reforms Working Group says

53 killed in anti-Finance Bill protests, Police Reforms Working Group says

Wednesday, June 26, 2024
Anti-tax protests: Attack on Parliament grievous and unforgivable, Wetang'ula says

Anti-tax protests: Attack on Parliament grievous and unforgivable, Wetang'ula says

Wednesday, June 26, 2024
UNHCR chief lauds Kenya's commitment to hosting refugees despite heavy costs

UNHCR chief lauds Kenya's commitment to hosting refugees despite heavy costs

Wednesday, June 26, 2024
Deadly protests leave trail of destruction in Nairobi CBD

Deadly protests leave trail of destruction in Nairobi CBD

Wednesday, June 26, 2024
National Assembly approves military deployment to help quell anti-tax protests

National Assembly approves military deployment to help quell anti-tax protests

Wednesday, June 26, 2024
Kenya's foreign direct investment falls despite digitisation measures

Kenya's foreign direct investment falls despite digitisation measures

Wednesday, June 26, 2024
MPs to proceed on early recess after Tuesday's deadly protests, passage of Finance Bill

MPs to proceed on early recess after Tuesday's deadly protests, passage of Finance Bill

Wednesday, June 26, 2024
Deadly protests forces cancellation, postponement of key conferences as Ruto withdraws attendance

Deadly protests forces cancellation, postponement of key conferences as Ruto withdraws attendance

Wednesday, June 26, 2024
UN, AU ring alarm bells on Kenyan violence, urge government to exercise restraint

UN, AU ring alarm bells on Kenyan violence, urge government to exercise restraint

Wednesday, June 26, 2024
How Covid-19 pandemic turned into a blessing in disguise for a graduate

How Covid-19 pandemic turned into a blessing in disguise for a graduate

Wednesday, June 26, 2024
Lamu’s Kahawa Chungu brewer marks 25 years of tradition and rich flavour

Lamu’s Kahawa Chungu brewer marks 25 years of tradition and rich flavour

Wednesday, June 26, 2024
Haiti PM vows to retake country as first contingent of Kenyan police arrive

Haiti PM vows to retake country as first contingent of Kenyan police arrive

Wednesday, June 26, 2024
South Africa records third mpox death after 16 confirmed cases

South Africa records third mpox death after 16 confirmed cases

Tuesday, June 25, 2024
Orphans in Congo fed palm weevil larvae in bid to beat malnutrition

Orphans in Congo fed palm weevil larvae in bid to beat malnutrition

Tuesday, June 25, 2024
Live Updates