The Algorithm Found Ukraine's Closest Historical Mirror. It Is Not the Country You Expect.
A structural risk platform placed Bosnia and Herzegovina as Ukraine's #1 global peer across 156 countries. Here is what that comparison tells credit analysts, peace negotiators, and anyone tracking when this war ends.
By Amin Al-Ait · Scoring date: 2026-04-30 · QG V1.9.1
~8 min read · April 2026 scoring run
Ukraine's top-5 closest countries by overall risk-profile shape. Bosnia at 81% is categorically ahead.
The conventional framework for analysing Ukraine's sovereign credit has become a ritual. War premium. Reconstruction liability. IMF program integrity. The 2022 default and 2024 debt restructuring. JPMorgan's exclusion of Ukrainian bonds from its benchmark indices and what that means for passive capital flows. Every fixed-income desk in London, every think tank in Washington, every development finance institution reviewing disbursement schedules is running some version of that model.
None of them have asked a different question: across all 156 countries scored by a structural risk platform, which country's indicator trajectory most closely resembles Ukraine's right now? Not which country faces similar geopolitical risk. Not which peer defaulted and recovered on a comparable timeline. Which country, across a full eight-dimensional decomposition of political, conflict, governance, economic, social, diplomatic, humanitarian, and structural indicators, looks most like Ukraine in April 2026?
According to QG Intelligence's April 2026 scoring run1, the answer is not Russia. Not Poland. Not a Middle Eastern post-conflict state. The answer is Bosnia and Herzegovina.
The cosine similarity2is 81%, a 16-percentage-point gap above the next-closest cluster. Ukraine's second through fifth peers (Oman, Sri Lanka, Türkiye, Uzbekistan) all sit at 65%. Bosnia is not marginally ahead. It is categorically in a different league. The match is bidirectional: navigate to Bosnia's own peer panel, and Ukraine appears as Bosnia's #1 structural twin at the same 81% figure.
1. What “structural similarity” actually measures
QG is not a news aggregator or a political judgment system. It does not score countries based on analysts' opinions about governance quality, regime stability, or geopolitical alignment. It scores countries based on the trajectories of their economic and institutional indicators over time, comparing those trajectories against hundreds of historical cases to identify which patterns are currently firing.
The 81% match between Ukraine and Bosnia is not driven by their political systems, their alliances, or their cultural histories. It is driven by the shape of their indicator trajectories: how those trajectories move together across multiple dimensions at the same time, in directions the model has learned to recognise from historical precedent.
This is why the Bosnia comparison survives the first objection most analysts will raise: “Bosnia is not at war with a nuclear power.” True. The similarity is not a claim that Ukraine's conflict is identical to Bosnia's. It is a claim that the pattern of indicator trajectories Ukraine is currently on most closely resembles the pattern Bosnia was on at a specific point in its own trajectory.
That specific point was approximately 1996 to 2000: the post-Dayton period when Bosnia was rebuilding after a devastating conflict and beginning to build the structural conditions that would eventually produce multilateral institutional lock-in.
2. The Bosnia template, and what it did
Bosnia in 1996 was a state assembled from the Dayton Peace Accords, signed in November 1995 after three and a half years of war. The immediate post-war period was not characterised by instant multilateral engagement. It was characterised by the slow, uneven improvement of exactly the kind of structural indicators that QG's Multilateral Agreement recipe3 is trained to detect.
The recipe was built by training a machine learning model on historical data from 58 countries that eventually signed or joined significant multilateral frameworks: IMF programs, World Bank reconstruction facilities, EU Stabilisation and Association processes, NATO accession frameworks. The model learned which indicator trajectories, measured in terms of year-over-year change rather than absolute level, most consistently preceded those events.
The three indicators that carry the most predictive weight are changes in tax revenue as a share of GDP (the biggest factor), changes in female labour force participation, and changes in a governance index called Voice and Accountability. These are not diplomatic indicators. They are fiscal, demographic, and institutional trajectory indicators. The model is detecting the structural conditions that make a country capable of sustaining and honouring multilateral commitments, not the diplomatic manoeuvring that precedes signing them.
Bosnia today scores 99 out of 100 on this recipe, ranking first globally in the 58-country cohort. The model has finished its read on Bosnia. The structural conditions for multilateral re-engagement have, for Bosnia, fully resolved. Bosnia is at the end of the pattern.
“Bosnia is at the end of the pattern, not the beginning. Ukraine is at the beginning.”
3. Where Ukraine actually sits
QG's April 2026 read of Ukraine separates into two distinct signals that most conventional analysis conflates.
The first signal is the expected one: Civil War and Insurgency at 93 out of 100, ranking 6th globally in that recipe's 83-country cohort. Ukraine is in active conflict. The model sees it. Nobody is surprised.
The second signal is the structurally interesting one: Bilateral Treaty4 at 95 out of 100, ranking Ukraine 7th globally in that 127-country cohort. This places Ukraine in the company of Saudi Arabia, Iran, South Korea, and other states whose structural indicator profiles have historically preceded significant bilateral international agreements.
The Bilateral Treaty recipe's highest-importance indicators are population change, employment ratio change, and mobile cellular subscriptions change. These are not diplomatic variables. They are demographic and economic trajectory signals. The model is reading Ukraine's structural economic momentum: the displacement and partial return of population, the employment shock and partial recovery, the remarkable resilience of telecom infrastructure. It is matching those trajectories to historical patterns that preceded bilateral treaty formation in other countries.
The Multilateral Agreement signal for Ukraine, currently at 51 out of 100 with a wide 37-point confidence interval, is where the Bosnia template becomes a forward-looking tool rather than a historical curiosity.
4. The sequence: Bilateral first, Multilateral second
Bosnia's post-Dayton trajectory followed a sequence that QG's models have now encoded as a structural pattern: Bilateral Treaty signals fired first (structural diplomatic warming at the level of indicator trajectories), followed by Multilateral Agreement signals (institutionalised framework lock-in). Ukraine is currently in the bilateral treaty phase. The structural question this generates is: will the multilateral agreement phase follow?
This is a falsifiable question with a specific, quantitative answer available from QG's scoring schedule.
5. The forward call and the falsification
The forward call: if Ukraine's Multilateral Agreement score crosses above 70 out of 100 in QG's January 2027 or April 2027 scoring run, the Bosnia template is actively reproducing in Ukraine's indicator data. That is the quantitative signal that the post-conflict institutionalisation trajectory is underway at the structural level, before it necessarily appears in headline political events.
The falsification: if Ukraine's Multilateral Agreement score remains below 60 out of 100 and the confidence interval does not narrow through two consecutive scoring runs, the Bosnia path is not activating. At that point, the structural case for spread compression on Ukrainian sovereign paper does not have QG's structural validation.
“The Bosnia-Ukraine mirror is the trade. The Multilateral Agreement recipe crossing 70/100 is the entry trigger. The 60/100 floor with no CI narrowing is the exit discipline.”
6. Three caveats that belong in every read
QG's methodology is explicit about what structural pattern-matching is and is not. Three caveats belong in any honest reading.
Russia also scores highly on the Multilateral Agreement recipe, currently at approximately 91 out of 100. The recipe is reading both combatants' indicator trajectories as structurally consistent with a multilateral engagement pathway. This complicates simple “Ukraine stabilises, Russia doesn't” framing. It may mean the recipe is detecting a trajectory that both parties are on simultaneously. The Bosnia template featured Dayton signatories on multiple sides.
The Bilateral Treaty recipe has a significant Colombia concentration in its training data. Colombia's 2016 peace process dominates that recipe's training set. Ukraine's 95th-percentile bilateral treaty score is partially driven by the model having learned Colombia's post-conflict structural signature. The signal is directionally informative, but analysts should treat it as such rather than as a precise probability estimate.
Much of the underlying data runs with a one to two year lag. The April 2026 scoring run reflects economic and governance indicator data whose most recent vintage is largely 2024. Ukraine's 2025 trajectory may not yet be fully reflected.
7. What this comparison gives the desk that Bloomberg cannot
A Bloomberg analyst can produce Ukraine sovereign credit analysis in depth. An area studies specialist can describe Bosnia's post-Dayton institutionalisation in detail. A sell-side strategist can model Ukrainian GDP recovery scenarios under various assumptions.
None of them would identify Bosnia as Ukraine's closest structural analogue across 156 countries. None would produce the specific quantitative trigger, Ukraine's Multilateral Agreement score crossing 70 out of 100 in a named scoring run, as the structural equivalent of the Bosnia template activating.
This is what cross-national structural indicator pattern-matching produces that no other methodology generates: the non-obvious comparator, the one that survives quantitative scrutiny, along with the specific observable that would confirm or falsify the comparison in real time.
Whether Ukraine traverses the pattern that Bosnia traversed, and on what timeline, depends on political decisions and military realities that no indicator model can see. What the model can see is the structural substrate on which those decisions would operate. And that substrate, as of April 2026, looks more like Bosnia's pre-institutionalisation phase than any other country in the world.
- 1.April 2026 scoring run: A specific computation cycle of QG Intelligence on April 2026 data. Scores change as new data arrives. Read more →
- 2.Cosine similarity: A geometric measure of how similarly shaped two countries' risk profiles are across 8 categories. 81% means the two profiles point in nearly the same direction across all active dimensions. Read more →
- 3.Multilateral Agreement recipe: A model that scores how closely a country's recent indicator trajectory matches the trajectories of countries that historically joined or institutionalised multilateral frameworks. Read more →
- 4.Bilateral Treaty recipe: A model that scores how closely a country's recent indicator trajectory matches the trajectories of countries that historically signed significant bilateral agreements. Read more →
Published 2026-05-22 · QG Intelligence · By Amin Al-Ait · Scores from the 2026-04-30 V1.9.1 scoring run. This piece reports structural pattern resemblance, not a forecast. Not investment advice.