Thursday, February 6, 2025

Nigeria's lithium mining Eldorado sparks concerns

At an open-cast mine, Abdullahi Ibrahim Danjija carefully chisels away at a hunk of whitish rock before stuffing a sack with the pieces which break off the walls.

In the course of a day's work he manages to fill three 50-kilo bags which will net him 150,000 nairas ($100), or around double the monthly minimum wage in Nigeria, Africa's most populous nation where more than one in two live below the poverty line.

Three years ago the 31-year-old miner came down from Kano in the north lured by promises of being able to make his fortune by contributing to the development of the artisanal lithium mining industry in the central state of Nasarawa.

There, as in other Nigerian states, the prospect of benefiting from a global explosion in demand for lithium, a critical metal in the manufacturing of electric batteries and mobile phones, is just too attractive to miss.


Artisanal mines 

At Gidan Kwano, not far from where Danjija was beavering away, another group of workers refused AFP reporters access to their mine.

Several families, including women and children, were busy laying explosives to carve into the base of their artisanal site.

While proud of their achievement, not having acquired a mining permit, they are reluctant to advertise its existence.

Much mining activity in Nigeria is of a similarly small scale, hence artisanal and often illegal.

Even some of those who do have a permit exploit the land without respecting any safety or environmental guidelines.

Along Nasarawa's main road lie lines of empty houses used as warehouses where miners and their intermediaries sort and clean rock deposits so as to prepare concentrated pieces of lithium for customers.

One such vendor, Matthew Danbala, crouched down as he bashed pieces of rock together. A dozen children sat around him copying his gestures.

"We are very happy. Since lithium comes here everybody, children and women, are benefiting," as they are able to head into the bush, dig, and then sell the rocks which cost them nothing beyond their labour, said Danbala.

Lithium seller Muhammed, 43, explained that in this informal economy "most of the buyers are Chinese. Either they come to our warehouse to buy, or if possible, we take it to where they are.

"But mostly, they come to us to buy the material -- it puts everyone to work."


Chinese presence 

China, the globe's foremost refiner and consumer of lithium is only the world number two when it comes to production and has to import large quantities.


The Nigerian government is seeking to attract foreign investment as it promotes what ranks as "new oil" in what is sub-Saharan Africa's leading oil producer.

The country regularly declares war on illegal miners and has made scores of arrests without managing to choke off the flow of mining hopefuls who see lithium as their ticket to riches.

Nigeria now wants to require foreign investors to set up processing plants on its soil -- a condition which would have dissuaded billionaire Tesla chief Elon Musk from investing, according to Nigerian media.

Paris and Abuja did sign a memorandum of understanding at the end of 2024 to carry out mining projects, notably lithium.

But for the time being foreign investment is limited to Chinese companies, such as Avatar and Ganfeng, who have set up local plants to transform raw rock into lithium oxide before sending it on to Chinese plants.

Uba Saidu Malami, president of the Geological Society of Nigeria, said the Chinese will sometimes seek to move in before sufficient exploration work has been done regarding site viability.

"There is need for detailed exploration work to ascertain the reserves of lithium in those areas," said Malami, stressing the need for better regulation of the sector.

The Chinese "are cowboys when it comes to mining," he added.

"They move the excavator and just expand that physical extraction, which is not smart mining in these days of sustainable practice and environmental sensitivity."


Conflict 

Quite apart from associated environmental risks, artisanal lithium mining can stoke local conflict, said analyst Charles Asiegbu.

"It can happen between communities where there's a disagreement on where the resource is actually located," said Asiegbu.

"It could also happen between communities and exploration companies. We have seen situations where companies or expatriates are attacked and, you know, even kidnapped by community members who feel that they have not gotten the relevant reparations or royalty or whatever."

He added organised armed groups also take advantage of a lack of government presence in some areas "to illegally extract these resources."

Danjija meanwhile continued apace with his work, even during the rainy season which can bring a frequent risk of landslides that can prove fatal.

Nearby, Fulani herders graze livestock and burn some fields to prepare land for the next harvest, oblivious to the regular explosions as miners dynamite surrounding rock.

By Leslie Fauvel, News Herald


Nigeria government cracks down on illegal Lithium mining operations

President Tinubu increases 2025 budget to $36.4 billion

Nigeria's President Bola Tinubu has increased the size of the 2025 budget to 54.2 trillion naira ($36.4 billion) from 49 trillion naira, he said in a letter to the Senate published on Wednesday.

The president said the increase was due to additional revenue from the government's revenue collecting agencies, such as the tax authority, customs and other agencies.

He added that extra revenue from Federal Inland Revenue Service (FIRS) was 1.4 trillion naira while Nigeria Customs Service fetched 1.2 trillion naira and other agencies got 1.8 trillion naira.

In December, the government said the 2025 spending plan included a budget deficit of 3.89% of gross domestic product, approximately 13.0 trillion naira.

Wednesday, February 5, 2025

Five sentenced to death in Nigeria over 'witchcraft' murder

Five men have been sentenced to death by hanging in Nigeria's Kano state for the 2023 murder of a woman they accused of witchcraft.

The convicted men attacked Dahare Abubakar, 67, as she was working on her farm, beating and stabbing her to death.

Ms Abubakar's family went to the authorities and the suspects were swiftly arrested in a village 45km (28 miles) from Kano - the largest city in northern Nigeria.

The case gained attention across the country and raised discussions over how people in rural areas continue to be murdered following witchcraft accusations.

The ones who make the claims without any proof believe that those they accuse are responsible for either a death of a family member, sickness or misfortune.

Giving his ruling, Judge Usman Na'abba said the the prosecution had proven its case against the five men beyond reasonable doubt.

The prosecutor, Abba Sorondiki, said he hoped the judgement would deter others from making wrongful accusations and then taking matters into their own hands.

The court heard that the victim was murdered after the sick wife of one of the accused, Abdulaziz Yahaya, had a dream that she was being pursued by Ms Abubakar, who was holding a knife.

Yahaya then organised a group to confront Ms Abubakar, which resulted in her murder.

"There have been similar cases like this but this is the first time we are seeing up to five people sentenced to death for murder over wrongful witchcraft accusation," Mr Sorondiki told the BBC.

The victim's son, Musa Yahaya, said that the day his mother was killed was the worst day of his life and that he was pleased to see justice being served.

"I am happy because they would get the same treatment they meted out to my mother," he said.

Defence lawyer Ma'aruf Yakasai said his clients plan to appeal against the verdict.

The death penalty is rarely carried out in Nigeria and those convicted often spend the rest of their lives in prison on death row.

By Mansur Abubakar, BBC

Shell reports oil spill in Nigeria after saver pit overflows

Shell reported an oil spill on Tuesday at Ogale, near Port Harcourt, after a saver pit overflowed during flushing operations in the Niger delta region.

The oil major's Nigeria business said its spill response team contained the overflow and informed authorities.

It added that arrangements were being made for a regulator-led joint visit to determine the cause and impact of the spill, a Shell spokesperson said in a statement.

Decades of oil spills have blighted Nigeria's Niger River delta region, causing widespread environmental damage that has destroyed the livelihood of millions in the local communities and impacted their health.

Youths and Environmental Advocacy Centre (YEAC-Nigeria) said the spill occurred after an underground pit filled with crude started flowing to a pipeline that separates an area of the Ogoni cleanup project.


Tuesday, February 4, 2025

After creating 2 million GPT tokens, this UNILAG student has built an AI text-to-speech model with Nigerian accent


















In November 2024, when I asked Saheed Azeez how difficult it was to create Naijaweb — a dataset of 230 million GPT-2 tokens based on Nairaland — he brushed it off as something simple. "It's just web scraping," he said.

However, in my latest conversation with him, his new passion project seems to have pushed him further. He calls it YarnGPT, a text-to-speech AI model that can read text aloud in a Nigerian accent.

In a world where AI can generate lifelike voices in seconds, a text-to-speech model with a Nigerian accent might not seem groundbreaking at first. But when you consider two things, it becomes a big deal.

First, Azeez is a Nigerian university student with limited resources. Second, developing a model that accurately captures the nuances of a Nigerian accent is technically challenging.

From tokenising audio to the many mathematical concepts Azeez referenced while explaining the process, it was clear that this wasn’t a simple task. Even Azeez, in his usual fashion, didn’t downplay the effort involved.

"It was quite tasking, especially gathering the data needed to make this happen."


How YarnGPT was created

Inspired by the success of Naijaweb, Azeez was eager to build something new. "The amount of conversations and interest people had in Naijaweb was a great motivation. Imagine getting featured on Techpoint Africa; it motivated me to do this."

He was also motivated by failure. Before starting YarnGPT, he had applied for a job at a Nigerian AI company but didn’t perform as well in the interview as he had expected.

YarnGPT became the project that would help him improve his skills and increase his chances of securing such roles in the future.

Building an AI model that sounds Nigerian required gathering a vast amount of Nigerian voices.

"I used some movies that were available online. I extracted their audio and subtitles."

Nollywood produces over 2,500 movies a year, and with many filmmakers uploading their work to YouTube, it seemed like Azeez had plenty of data to work with. But in reality, he had almost none.

"The problem with building in Nigeria is data. Replicating what has been built overseas isn’t that hard, but data always gets in the way."

While there are thousands of movies for him to choose from the audio wasn't up to the standard he wanted, and their subtitles were inaccurate. To compensate, Azeez turned to Hugging Face, an open-source platform for machine learning and data science. He combined the audio from Nigerian movies with high-quality datasets from Hugging Face to train his model.

The next step was training the AI model, but without access to his own GPU, he had to rely on cloud computing services like Google Colab. This cost him $50 (₦80,000) — a significant amount for a university student. Unfortunately, it was a waste.

"The model I built wasn’t working well, and the $50 cloud credit was burnt just like that. It was painful for me."

Determined to find another way, he discovered Oute AI, a platform that had developed a text-to-speech model in an autoregressive manner.

"The way the model works is, you give it a piece of text, and it predicts one word at a time. It takes that word, adds it back to the text, then predicts the next one — kind of like how ChatGPT completes sentences. That’s what makes it autoregressive."

While I found the autoregressive framework difficult to understand, Azeez pointed out that it simply gave him better results.


Maths, tokenisation, and the hard part of YarnGPT

Oute AI provided a structure, but Azeez still had to build his own model. He took a language model called SmolLM2-360M from Hugging Face and added speech functionality to it, a process that involved major algorithmic changes.

After this, the final-year Mechanical Engineering student at the University of Lagos had to spend another $50 to train the model. The training took three days.

Interestingly, like he pointed out when he created Naijaweb, AI models need data to be tokenised. Large language models (LLMs) understand numbers, not words, so tokenisation converts words into numerical representations.

"If we were to tokenise the word CALCULATED, for example, we could split it into four tokens: CAL-CU-LA-TED. A number is assigned to each token."

Meanwhile, tokenizing audio is different.

"Tokenizing audio is basically breaking down continuous sound waves into smaller, manageable pieces that a model can understand and process. Unlike text, which has clear breaks between words, audio is continuous—there are no natural pauses in a raw waveform.

"So, the model needs to convert the sound into a sequence of discrete values, kind of like turning a long speech into tiny puzzle pieces. These smaller audio tokens can then be used to train the AI, and later, the model can reassemble them to generate speech that sounds natural."

This entire process was made possible by a wave tokenizer. Using resources from Hugging Face, Oute AI, and other Nigerian repositories, Azeez was able to create YarnGPT.


Publicising YarnGPT

Azeez might be a nerd, but he isn’t afraid to put himself in front of a camera to showcase his work. In a two-minute video, he explained YarnGPT and caught the attention of 138,000 people on X (formerly Twitter), including Timi Ajiboye, Co-founder of Hellicarrier (formerly BuyCoins).

Creating YarnGPT was difficult, but making the video was another hurdle.

"I called my friend and logistics manager, Aremu, and told him I wanted to make a video. We reached out to another friend who had a camera he wasn’t even using, and then we went to yet another friend’s house to record.

"We rearranged the whole house and used their TV as the background. His mum wasn’t too pleased when she returned."

The results were worth it. The video got thousands of views across social media, and people began testing YarnGPT. The model could not only pronounce English in a Nigerian accent but could also read Nigerian languages—Hausa, Igbo, and Yoruba.

It has various applications. Content creators can use it for voice-overs in Nigerian accents, Google Maps could provide directions in Nigerian languages, and it could even enhance accessibility for non-English speakers.


Nigeria and the AI race

While innovators like Azeez and American-born Ijemma Onwuzulike (creator of Igbo Speech) are developing exciting AI models, Nigeria remains far behind in the AI race. The industry has evolved beyond a hobbyist’s playground into a battleground for global superpowers, with the U.S. government committing $500 billion to AI development.

Meanwhile, AI breakthroughs like DeepSeek have shaken up Wall Street, causing giants like Nvidia to lose billions in market value due to new competition.

Even Azeez acknowledges Nigeria’s position.

"Honestly, we’re way off. We’re not even in the race. The big AI models today — like OpenAI’s or the ones from China — are trained on massive datasets with huge computational resources, things we don’t have here."

But he remains optimistic.

"I think there’s a way forward. Instead of trying to build from scratch, we can focus on localising AI for our own needs. We can take what’s already been built and adapt it for Nigerian languages and accents. That’s how we can start catching up."

Nigeria’s Minister of Communications and Digital Economy, Bosun Tijani, has been vocal about positioning the country as a key player in AI development. Perhaps, with talents like Azeez, there is hope.

By Bolu Abiodun, TechPoint Africa