A Purdue University computer science researcher has created an algorithm that redirects truckloads of surplus food from landfills to food pantries, addressing a logistics problem that contributes to global hunger.
According to Purdue University, Alex Psomas, an assistant professor of computer science, developed a program called Food Drop that matches excess food shipments with nearby food banks in real time. The algorithm considers which food banks are open, how much space they have, and what items they need, then balances those factors against the trucks' locations to find the closest drop-off point where the food can be used.
"This is one of the ways that AI can help society," Psomas said in the university's announcement. "We can code and automate a system that optimizes distribution of food that's otherwise just getting thrown away. That's hundreds of tons of food just pulled from nowhere — food that's now going to help real people."
Psomas has worked with two nonprofits in two Midwestern states: the Indy Hunger Network in Indianapolis and the Last Mile Food Rescue in Cincinnati. So far, the program has saved more than 50 tons of food from landfills and routed it to people in need, Purdue reported.
The problem Food Drop tackles is known as food loss — food that never reaches grocery store shelves, as opposed to food waste that happens at home. According to Purdue, a third of all food grown globally goes to waste, while one in 12 people worldwide does not have enough to eat.
Food loss can happen for many reasons: a shipment arrives late, a grocery store no longer needs seasonal items like pumpkins after Halloween, or a forklift operator isn't available to unload a pallet. In one example cited by Purdue, if a single pallet of lettuce spills in a truckload of 12, the cost of cleaning up may outweigh the value of the remaining 11 pallets, leading the entire shipment to be discarded.
When these situations arise, shipping companies or individual drivers are often left to decide what to do with large quantities of food. Psomas noted that truck drivers frequently discuss this dilemma on online forums. "If you follow truck driver message boards or subreddits, you'll find new drivers driving around with truckloads of frozen chicken that they need to get rid of asking what to do," he said. "Some people will suggest trying to find a food bank. But many of the comments will be saying, 'Just drop it off at a landfill. Just get it over with.'"
Food Drop aims to make the alternative easy. Nonprofits may have different cost-benefit calculations than farms or distribution companies — a food bank might have a forklift operator available or volunteers willing to clean up a spill for the sake of free food. Psomas' program automates the matching process so that food banks don't have to take on extra administrative work.
"Food banks are overstretched and overworked," Psomas said. "They're usually at capacity, and they can't possibly take on another thing, even if it's something that will help in the long run. That's where I come in. We can automate the system. We can make it almost effortless for the food bank. They set it up, using our system, and it just runs on its own."
Psomas' interest in food allocation began during his postdoctoral research, where he worked on technical aspects of food distribution. The algorithm uses a technique called "the power of two choices," a method that was influential in computer science, he said.
Psomas and doctoral candidate Athina Terzoglou coded the program's algorithms to be open source, meaning anyone can access and adapt them. Psomas said his goal is to create a central repository so that any food bank or nonprofit can use the system "plug and play."
For students studying computer science, logistics, or public policy, the project illustrates how algorithmic thinking can address real-world social problems. It also highlights career paths where technical skills intersect with humanitarian goals — a growing area of interest for graduates seeking meaningful work.
"I really care about big applications, but at the same time, I'm a theoretician," Psomas said. "For me, one of the coolest things about this project is that not only are the outcomes beneficial, but the math is actually pretty cool."