← Latest papers
📈 economics

Forecasting food price inflation in Nigeria and identifying its drivers using machine learning models

This study demonstrates that regularized regression models, particularly Elastic Net, outperform traditional time-series and complex machine learning algorithms in forecasting Nigeria's food price inflation, identifying historical prices, exchange rates, energy costs, and rainfall as key drivers while advocating for coordinated macroeconomic and agricultural policies to ensure food security.

Original authors: Oluwaseyi Samson Afolayan, Afolake Carolyn Afolami, Lawrence Olubunmi Balogun, Oriyomi Kazeem Aboaba, Adeleke Sabitu Coster

Published 2026-08-11
📖 4 min read☕ Coffee break read

Original authors: Oluwaseyi Samson Afolayan, Afolake Carolyn Afolami, Lawrence Olubunmi Balogun, Oriyomi Kazeem Aboaba, Adeleke Sabitu Coster

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to predict the weather. You could look at a single thermometer from yesterday and guess it will be the same today, or you could try to build a super-complex robot that simulates every cloud, wind current, and bird in the sky to forecast the storm. This is the world of forecasting: the science of using past data to guess what will happen next. In economics, this is crucial for something called inflation, which is just a fancy word for when the price of things (like food) keeps going up, making your money buy less than it used to. When food gets expensive, families struggle to eat well, and the whole country can feel the stress. Scientists have been trying to figure out the best way to predict these price hikes for a long time. Some think simple math works best, while others believe we need giant, complicated computer brains (called machine learning) to solve the puzzle. But which one actually works better when the economy is messy and unpredictable?

This study dives into that exact question, but with a specific focus on Nigeria, a country where food prices have been jumping up and down wildly. The researchers wanted to know two things: First, can we accurately predict what food prices will do over the next two years? Second, what are the real "villains" pushing those prices up? To find out, they didn't just pick one method; they set up a massive race. They lined up a traditional, old-school math model (like a reliable, steady bicycle) against several high-tech machine learning models (like futuristic, high-speed motorcycles and even a complex robot). They fed all these models mountains of data about food prices, fuel costs, rain, and exchange rates to see which one could cross the finish line with the most accurate guess.

The results of this race were surprising. The researchers found that the "fancy" high-tech robots and complex neural networks actually stumbled and fell. They were too complicated for the job and ended up making bigger mistakes. Instead, the winners were the "simpler" models, specifically a type of math called regularized regression (think of these as smart, streamlined bicycles that know exactly when to pedal hard and when to coast). The champion of the race was a model called Elastic Net, which predicted the future with the highest accuracy, followed closely by its cousins, LASSO and Ridge Regression. The old-school bicycle (the standard time-series model) did a decent job, but the smart, streamlined bikes beat it. The complex robots (like Artificial Neural Networks) were the worst performers, getting lost in the noise.

So, what actually drives the price of food in Nigeria? The study acted like a detective to find the clues. They discovered that the single most powerful predictor of tomorrow's food prices is simply what food prices were yesterday. It's like a heavy ball rolling down a hill; once it starts moving, it keeps going. However, the study also found other important factors that push the ball. When the exchange rate (how much the local money is worth compared to foreign money) drops, food gets more expensive because importing things costs more. When fuel prices go up, it costs more to drive trucks to markets, which also raises food prices. Interestingly, rainfall acts as a brake; good rain means good crops and lower prices, while bad weather pushes prices up.

The authors suggest that while we often think we need the most complex, AI-driven tools to solve big economic problems, sometimes a simpler, well-tuned approach works better, especially when the economy is unstable. They didn't prove that complex AI is useless forever, but in this specific race with this specific data, the simpler models were the clear winners. The study concludes that to keep food prices stable, Nigeria needs to focus on stabilizing its currency, lowering fuel costs, and helping farmers deal with the weather, all while using these simpler, more reliable models to keep an eye on the prices before they spiral out of control.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →