Home  ›  Insights  ›  From Data to Math to Model: The Real AI Work No One Talks About
AI & ML

From Data to Math to Model: The Real AI Work No One Talks About

A Prestanda blueprint for engineering explainable, fair and business-aware AI systems by connecting raw data, mathematical scoring and model learning.

The problem with “AI projects” today

Most AI projects fail long before the first model is trained. Teams rush to algorithms before they understand the business outcome they need to improve, or what their data truly represents.

Across logistics, finance, healthcare and retail, the remedy has been consistent: real AI does not start with data. It starts with business intent and the mathematics that connects intent to intelligence.

When data is not enough

The dataset did not contain labels tied to the business metric that needed improvement. There was no obvious target variable. Before modelling, we worked with domain experts to define what the business was optimizing, why existing heuristics were failing, and which performance indicators actually defined success.

The warehouse data was real-world data: structured tables intertwined with nested JSON, missing values, inconsistent entries and outdated schema versions. We identified predictable operational patterns, invalid or extreme outliers, representation imbalances, and gaps such as missing timestamps or categories.

Key insight: This was not “bad data.” It was operational data that needed to be understood rather than ignored.

The toughest challenge: missing fairness

The hardest problem was not noise. It was representation bias. Some entities had rich historical data; others were new or underrepresented. A naive ML model would rank the well-documented entities higher and unfairly penalize newer entrants.

Fairness therefore had to be designed directly into the system - mathematically.

Translating business into math

The system needed more than a prediction. It needed to rank and recommend based on reliability, cost-effectiveness and performance while respecting business constraints. We developed a hybrid scoring equation that blended data-driven learning with rule-based fairness and policy alignment.

FinalScore = α × HandcraftedScore(p, r, f, a, h, d) + β × ModelPrediction
SymbolMeaning
pPrice or cost metric - lower values yield higher preference in cost-sensitive contexts
rRating or quality metric - reliability or satisfaction
fFulfillment or completion ratio - delivery consistency
aAcceptance or responsiveness rate - engagement or willingness
hHistorical volume or experience - operational maturity
dDistance or proximity factor - spatial or temporal efficiency
α, βWeight coefficients balancing handcrafted fairness with learned intelligence

The handcrafted score used tunable weights to reflect business priorities.

HandcraftedScore = wₚ(1/p) + wᵣ(r) + w_f(f) + wₐ(a) + wₕ(log(1 + h)) + w_d(1/d)

This let the system prioritize reliability and fulfillment over proximity when quality mattered more than distance.

The model that learned like a human

We began with gradient boosting using CatBoost, a strong algorithm for structured data. It performed well on known correlations, but could not capture contextual interactions among cost, distance and quality.

We therefore engineered a custom attention-based neural model in PyTorch. One sub-network encoded task-specific attributes, another encoded participant or provider behavior patterns, and the attention layer learned how those two dimensions interact.

This architecture allowed the system to reason about compatibility, not just similarity.

Proving it worked

We validated the system with live A/B testing against the baseline recommendation logic. The hybrid approach did not just perform better - it behaved better: explainable, ethical and business-aware.

MetricBeforeAfter hybrid model
Engagement rateBaseline↑ 25%
Completion rateBaseline↑ 18%
Operational efficiencyBaseline↑ 15%
Fairness for new entrantsLowHigh and balanced
Cost optimizationUncontrolledStrategically tuned

The breakthrough was recognizing that pure ML predictions cannot independently respect fairness, cost boundaries and compliance rules. Those constraints must be embedded in the scoring logic.

The enterprise takeaway

  • Start with the business objective, not the dataset.
  • Translate goals into mathematical formulations, not just code.
  • Build hybrid systems that combine data intelligence and policy logic.
  • Make fairness, explainability and optimization part of the equation.
  • Validate with real-world metrics, not only offline validation accuracy.
Real AI is math plus empathy: a conversation between data, mathematical reasoning and human judgment - built to earn trust, not merely generate traffic.

Frequently asked questions

Why does AI work start with business intent?

The business objective defines what should be optimized and which data, metrics and constraints are meaningful.

Why was a hybrid score used?

It balanced learned predictions with interpretable business rules, fairness considerations and operational constraints.

What did live validation show?

The hybrid approach increased engagement by 25%, completion by 18% and operational efficiency by 15%, while improving fairness for new entrants.

Originally published by Prestanda Consulting on Medium. View the original publication.