Due to the nature of the origins of StackOverflow, this sort of desire to reduce design to algorithms based on quack-like research analysis appears from time to time.
TRENDS exist in ALL THINGS SUBJECTIVE.
From "chaos theory" onwards, scientism has posited it's only a matter of time until all evolution, ebbs, flows and events can be divined. Until that fairy tale comes true, put some faith in the ideas, innovations, intuitions and instincts of designers.
Placement, spacing, weighting, colouring, contrast, disparity, inference and all the aspects of all things that make up balance
vary...
They vary based on (amongst other things) platform, target, medium, purpose, audiences, cultures, times, interests, genres, niches, messages and contexts.
Trends, by their very nature, are liquid, and evolve and revolve from (again, amongst other things) influence, inspiration, invention and innovation.
Add to this the library of experiences in the utilisation and iteration on ideas from both originality and the twins of intuition and instinct (that lay at the very heart of a great designer) and you'll begin seeing the challenge for what it is. Impossible. Insurmountable.
But please don't forget the significance and impact of juxtaposition, revolution, deliberate disruption and nuanced visual harking and symbology deliberately designed to stir memories and references.
I hope you begin to understand design is a CREATIVE ART.
So, no. It is not possible to formulate algorithms that achieve "balance".
It is highly unlikely that any sense of visual balance (for the purposes of influence) is actually relative to any mathematical models of balance. And any moment in tides and trends when there is a correlation is pure fluke.
Attempting to mimic one tiny, subset of the trends that exist in design has not been achieved, (except for things like musicians modelling themselves on others) let alone anything that considers the more profound effects of mental cognition, recognition and ignition that created imagery is specifically designed to evoke.
And there's the keys to the kingdom of design. Graphic design has purpose - to influence humans. Code can't and won't ever understand the contexts and experiences of humans and how they shape their relationships, realities and reactions to that which they see and perceive.
If all the above fails to stir you, then remember this:
Letters, themselves, are not geometric and algorithmic in nature. They're evolved, imperfect, representations that are both comprised of and compromised in their formulation, form, function and functionality.
They're also not at all universal.
Hire a designer.
ps: Oddly, I think programmers have a vastly greater storage capacity for visual relationships, but that they perhaps archive in a non visual manner. Just look at the enormity of programming languages, frameworks, APIs and libraries they hold within to use and abuse, then the intertwining nature of code in even a simple app. Stunning stuff! That's a myriad of relationships and interlinking that's simply bigger than the biggest ever infographic. And they hold this in their heads!!!