burgerlogo

How to Update an AI Model on a Robot in a Pasture

How to Update an AI Model on a Robot in a Pasture

avatar
Portainer.io

- Last Updated: November 30, 2026

avatar

Portainer.io

- Last Updated: November 30, 2026

featured imagefeatured imagefeatured image

Rumex is a weed that spreads quickly across pastures, crowding out the grass animals graze on. Working with local organic farmers, researchers at the University of Lübeck’s Institute for Robotics and Cognitive Systems outfitted small, off-the-shelf robots with cameras and a vision model that can identify it.

Those vision models are typically trained by students away from the robot, and moving a new version onto the robot used to take up to a full working day.

A model is not like the rest of the software

While vision models change whenever there is better training data or the need to detect something new, a robot’s navigation and safety software should change rarely and carefully. But when two release schedules end up sharing one machine, they don’t always get along.

The team at the university felt this early. Putting a new model on a robot meant rebuilding it from bare metal, which took up to a full working day of manual effort. And because the software stack was fragile, a student who installed one package could break something unrelated or take down the whole robot.

“When we started and simply had everything running bare metal on the robot, you could spend several hours getting the environment running again, reinstalling NVIDIA drivers, and so on,” said Prof. Dr. rer. nat. Floris Ernst, director of the institute.

Give each model its own container

The team’s fix was to run each model in its own container, a self-contained package to carry its own software environment. Two models run locally on the robot side-by-side and are fed by stereo cameras. One is trained to recognize Rumex and the second is a general object detector. Each can be started, stopped, or swapped without affecting the other, or the robot’s core software.

Containers also keep the models portable. They’re trained on AgriGaia, a platform for sharing sensor data and training AI models, then exported to ONNX, an open format that lets the same model run on different chip types without being rebuilt for each device.

Deliver it without opening a console

Each robot connects wirelessly to a base station that links over a secure connection to the AgriGaia backend on the university’s infrastructure. The robots register as edge devices, and the team manages the model containers remotely, from first install to later updates, without physically accessing the robot.

And since pastures don’t come with stable networks, the team uses the Portainer container management platform as the deployment layer, allowing updates to queue until a robot reconnects. A front end built on top keeps the plumbing out of sight: through AgriGaia’s interface, users see only what’s relevant to their job and don’t have to think about container management.

From a day to under an hour

Getting a new model running on a robot now takes under an hour, down from up to a full working day. Swapping one model’s container on the robot for another takes under five minutes. Across more than 11,000 images in a range of lighting and weather conditions, the Rumex model scored 0.86 out of a possible 1.0 on mean average precision, the standard measure of how well a model finds and correctly labels objects.

Prof. Ernst puts the benefit less in minutes than in effort. “You can’t really measure it in just how long deployments used to take, but also in how many headaches it’s saved me because I don’t have to rebuild each robot from scratch,” he said.

Separate the model, deliver it remotely

Two choices made updates routine for the team at the Institute for Robotics and Cognitive Systems. First, by keeping each model apart from the robot’s core software, an update can’t reach navigation or safety code. Second, they made delivery remote, so nobody has to physically access a robot standing in a field.

The same setup can carry other models. “One model does Rumex detection today, another does predator-bird deterrence tomorrow,” Ernst said. The team is extending it to a fence-clearing robot, where modules are still in development.

Any team running AI on equipment it can’t easily reach, such as a remote plant or a fleet of vehicles, faces the same question the team at the University of Lübeck did: how to change the model without sending someone to the device?


The full story, including the architecture and the team’s own account in the case study. The paper behind it, “Containerized AI deployment on mobile robots using the AgriGaia platform” by Gerwin, Saggau and Ernst, is from the 46th GIL-Jahrestagung in 2026.

Need Help Identifying the Right IoT Solution?

Our team of experts will help you find the perfect solution for your needs!

Get Help