In South Africa, a cow may spend hours walking to communal grazing in the heat, only to rest when it arrives instead of eating. That daily strain is one reason University of Johannesburg researchers say African livestock need farming advice built around the animals and conditions found on local farms.

A study published in the journal Agriculture sets out a policy roadmap for using artificial intelligence, or AI, to improve livestock feeding and care. The researchers’ idea is to combine information about animals’ gut microbes with data on local conditions, then use locally built AI models to help farmers make precise adjustments to feed and daily management. The goal is to support indigenous and other livestock breeds through heat and drought while improving production.

The need is pressing. The article says Africa is bracing for the peak of one of the strongest El Niño events ever observed, which could make it harder to maintain the quantity and quality of eggs, milk and meat from animals under stress. High-nutrition feeds, imported antibiotics and other veterinary drugs can also be too expensive or out of reach for many smallholder and small-scale farmers.

Indigenous African cattle, goats, sheep and chickens can survive heat and drought that may be lethal to breeds brought from outside Africa, says study co-author Dr. Keabetswe Tebogo Ncube, a researcher at the University of Johannesburg’s Research Center for Plant Metabolomics. These animals can make relatively efficient use of sparse local forage and often need fewer medications. But they generally gain weight more slowly than breeds selected for high meat or milk output.

The researchers suggest that tailored feeding and management could help narrow that gap. They say gut microbes may offer useful clues about how animals are coping. When heat or drought changes grazing plants, the plants can provide fewer nutrients and produce different chemicals. Gut bacteria detect changes in what the animal eats and send chemical signals of their own. Those signals can affect how the animal makes proteins, vitamins and other nutrients, and whether it continues producing milk or meat at its usual rate.

That makes gut microbes a possible early warning system for stress, says Dr. Fidele Tugizimana, director of the university’s Research Center for Plant Metabolomics. But the researchers argue that an AI system must be trained on data from typical African farms, rather than relying on models developed elsewhere. Local data could help advice reflect indigenous breeds, available forage and the realities of different farm sizes and types.

Stress is not limited to animals walking long distances. In confined commercial operations, animals may have little room to move, which Ncube says can make them anxious and affect their health. Chickens in cramped spaces can face high mortality, she warns. The article notes that some commercial farms use automated cooling for heat-stressed animals, but the researchers’ broader proposal is to match technology and management to local conditions.

The study presents a roadmap, not a tested AI tool or a report of improved farm output. Its next step is to build the local data and models needed to turn gut and farm information into practical guidance. If that work succeeds, farmers could gain a new way to protect resilient African livestock—and the food they provide—as heat and drought intensify.