Vector Fields as a Framework for Modelling the Mobility of Commodities
PLoS One, 21(3): e0340109 · DOI: 10.1371/journal.pone.0340109
The Problem
Tracking how goods (animals, crops, manufactured products) move across a country is harder than it sounds. The standard tool is an origin-destination (OD) matrix: a table that records where each shipment starts and ends.
But OD matrices have a blind spot. They only know about the towns that appeared as origins or destinations. Any municipality that neither sent nor received a recorded shipment simply disappears from the map, even if cattle pass through it every day, even if a disease outbreak could ignite there.
This matters enormously for animal health surveillance. Foot-and-mouth disease, for example, travels along livestock trade routes. If your model cannot see half the network, you cannot protect half the country.
Beyond missing locations, the sheer scale of livestock trade, with millions of individual movement records, makes traditional network graphs computationally expensive to build and nearly impossible to visualise meaningfully at a national level.
The Approach
This study borrows a concept from meteorology: the vector field. Just as weather maps show wind direction and speed at every point on a grid (including over the open ocean where no weather station exists), a vector field can represent commodity flow at every location in a region, including unmonitored ones.
-
Step 01
From trades to vectors
Each recorded cattle movement from town A to town B becomes an arrow pointing from A to B. All arrows leaving a given municipality are averaged into one representative vector, capturing the dominant direction and distance of that town's trade activity.
-
Step 02
Filling the gaps with interpolation
Towns with no recorded trades are estimated using triangle-based interpolation (Delaunay triangulation). Neighbouring towns with known vectors provide a reasonable guess for the missing ones, just as a weather forecaster estimates wind speed between two stations.
-
Step 03
Measuring diversity and regularity
Shannon entropy tells us how unpredictable a municipality's trade direction is across the year. Cosine similarity between consecutive months reveals whether trade routes stay stable or shift with the seasons.
-
Step 04
Finding critical points
Some locations act as sinks, places where cattle converge (think slaughterhouses). Others are sources, places that consistently dispatch cattle outward (breeding farms). Identifying these hubs reveals the hidden skeleton of the trade network.
Key Findings
Applied to cattle trade data from Minas Gerais, Brazil, one of the country's largest cattle-producing states, the framework revealed patterns that traditional network analysis had missed.
Stable in the north, volatile in the south
Northern municipalities showed low entropy; their trade directions barely changed month to month. Southern municipalities, where long-distance trade is less established, exhibited far more unpredictable flows.
Rhythmic seasonal patterns
Cosine similarity between consecutive months followed a wave-like pattern across the four-year study period, with a consistent dip towards year-end, consistent with known breeding and slaughter cycles in Brazilian cattle farming.
Sinks shift with the seasons
Sink regions (where cattle accumulate) moved across the map with the seasons. During spring and summer, sink locations closely matched the known distribution of slaughterhouses across the state.
Spatially clustered trade distances
Moran's I confirmed that municipalities trading over similar distances cluster geographically. Spatial lag maps revealed "doughnut" and "diamond" patterns: towns with atypically short or long trade ranges surrounded by towns behaving oppositely.
Robust under data loss
When 60% of municipalities were artificially removed from the dataset, the majority still showed directional deviations under 45° and distance errors under 25 km, a small perturbation at the scale of Minas Gerais (approximately 1,250 km across).
Northern hubs for long-distance trade
Source regions were concentrated in the north, acting as supply hubs for long-distance movements. Central-eastern areas served as transit corridors linking north and south of the state.
Why It Matters
Vector fields are not just a prettier way to draw a network. They unlock analytical capabilities that are simply not possible with OD matrices alone.
- Disease Surveillance By estimating flows in unmonitored areas, the model can identify likely disease pathways even where trade records are absent, which is critical for containing outbreaks like foot-and-mouth disease before they reach detection.
- Supply Chain Planning Persistent sink regions and stable-source clusters indicate natural hub locations. Logistics planners and veterinary authorities can use these insights to deploy inspection resources where animals genuinely concentrate.
- Policy & Biosecurity Regions with high entropy require flexible, adaptive monitoring rather than fixed checkpoints. Seasonal shifts in critical points suggest surveillance infrastructure could be deployed dynamically, saving resources.
- Beyond Cattle The framework requires only origin-destination data, which exists for grain shipments, pharmaceutical supply chains, container traffic, and many other commodities. Any OD-formatted dataset is a candidate for this analysis.
- Sparse Data Environments Many low- and middle-income countries have incomplete trade records due to limited surveillance infrastructure. The interpolation method is specifically designed to extract meaningful patterns from exactly these kinds of imperfect datasets.
Infographics
Paper & Authors
Authors
Cite This Work
Open access · CC BY 4.0