Âé¶¹´«Ã½Ó³»­

Skip to main content Skip to search

Âé¶¹´«Ã½Ó³»­ News

Âé¶¹´«Ã½Ó³»­ News

AI Students Build Machine Learning Model to Increase Africa’s Agricultural Production

Mwansa Phiri, a student in the Katz School's M.S. in Artificial Intelligence, collaborated closely with AI students Jelidah Nayingwa and Esperance Tuyishime, who helped train, test and refine their machine learning models.

By Dave DeFusco

When Mwansa Phiri began studying artificial intelligence at the Katz School, he didn’t expect that his coursework would lead him back to a problem unfolding thousands of miles away in Africa: how to help farmers grow enough food in the face of drought, flooding and tightening regulations on water and fertilizer use.

Phiri, a student in the Katz School’s M.S. in Artificial Intelligence, is developing a project called Smart Farming: A Machine Learning Approach to Crop Growth Prediction. At its heart, the project aims to ensure food security across Africa by giving farmers better information.

He was inspired by the work of Zambian agritech entrepreneur Nchimunya Munyama, â€”born from the challenges his grandfather faced and supported by mentorship and innovation programs—was initially trying to solve similar farming problems and motivated Phiri to choose this project. 

“Since we’re in the United States, we don’t really get to hear what’s going on back home,†said Phiri. “Nchimunya came to visit us in the States and told us how difficult it is for farmers to know what to grow. They rely on generational knowledge—what their parents always planted—but climate conditions are changing.â€

Artificial intelligence allows computers to learn patterns from data and make predictions. Machine learning, a branch of AI, trains computer models to recognize relationships, such as how soil moisture, rainfall and fertilizer levels affect crop growth. Phiri realized that this technology could help farmers “think outside the box,†as he put it, by recommending crops that match current soil and weather conditions rather than tradition alone.

The work was not done alone. Phiri collaborated closely with AI students Jelidah Nayingwa and Esperance Tuyishime, who helped train, test and refine the machine learning models. “We approached it as a team,†said Phiri. “Jelidah, Esperance and I used this project to help figure out how to finalize the model in a way that would actually work in real farming conditions.†

Their system combines small, affordable Internet of Things (IoT) devices with machine learning models. The IoT devices, equipped with sensors that measure soil moisture, temperature and humidity, are placed in fields. They send data through a Wi-Fi module to a cloud-based platform for analysis. From there, machine learning models predict three key outcomes: which crops are best suited to a field, when to plant them and how much yield to expect.

“It helps them with utilization,†said Phiri, referring to new restrictions on fertilizer use in some African countries. “Farmers weren’t given training on exact amounts. They just had a standard practice—throw everything on the ground and hope it grows. With the system, you can monitor how much fertilizer or water is actually needed and track what worked well before. That way, you don’t waste resources.â€

To train the system, the team worked with multiple agricultural datasets containing information on soil pH, rainfall, irrigation, fertilizer use and crop types. One major challenge was regional variation. 

“When some datasets wrote ‘maize,’ I assumed it was the standard maize we have back home,†he said. “But there are different variations. Some data came from Kenya, and the crops performed differently than we expected.â€

To solve this, they standardized the data—sometimes treating similar crops as entirely separate plants—to ensure the models learned accurate patterns. They also engineered new features, such as calculating rainfall per day rather than total rainfall, to better capture how weather affects growth.

The project addresses two kinds of predictions. First, classification: determining whether a crop is suitable for a particular field. Second, regression: estimating how much yield a farmer can expect. After testing several machine learning models, including Random Forest, Support Vector Machines and Neural Networks, Random Forest performed best for crop suitability. When he tried using fewer data features, accuracy dropped sharply.

“It just showed that we needed more data,†said Phiri. “If you try to do it with less data, you might give results that people wouldn’t be happy with. We wanted to avoid telling farmers a crop would work and then having it fail.â€

Accessibility is central to the project’s mission. While the system includes a mobile app with dashboards and predictive charts, Phiri’s team also built a text-based feature for farmers who use basic phones. “The IoT device can send a summary by text message,†he said. “That way, farmers don’t need smartphones or training on complicated interfaces.â€

Looking ahead, Phiri hopes to integrate satellite imagery and drone data to monitor plant health using vegetation indexes. That may require more advanced deep learning models. “We would redesign a new model at a larger scale,†he said.

For Honggang Wang, chair of the Graduate Department of Computer Science and Engineering, the research demonstrates how AI can address urgent global challenges. 

“This project shows the power of artificial intelligence when applied to real-world problems,†said Wang. “By combining IoT sensing, data analytics and machine learning, Mwansa’s work has the potential to make agriculture more resilient, sustainable and profitable, especially in regions where food security is fragile.â€

The early results are promising—improved yield prediction accuracy and better resource optimization, but moving from research to reality will require pilot deployments, investors and policy support. For Phiri, the motivation remains personal. 

“Agriculture production is essential for food security,†he said. “If we can give farmers better tools to make decisions, we can help make farming smarter and help ensure there’s enough food for everyone.â€

Share

FacebookTwitterLinkedInWhat's AppEmailPrint

Follow Us