Decision Systems & Analytics
Applied ML articles on forecasting, feature engineering, NLP, production ML, graph analytics, conformal prediction, label engineering, and decision-oriented modeling — from real projects at Sofrecom (Orange Wholesale), Tunisia Telecom, Kiota Intelligence, and Zindi.
Insights on decision systems, analytics, prioritization, and turning model outputs into business actions. Browse all insights in this category, or view all insights.
A better risk score does not automatically produce a better resource-allocation decision
Scoring ranks cases by risk. Allocation assigns limited resources under constraints to meet an objective.
A better score alone is not enough — you need to account for capacity, travel/time, costs, and the real objective.
Result: Build an allocation layer that optimizes against constraints, not just top-k by score.
A strong driver is not automatically a necessary condition
Driver questions ask what tends to improve outcomes on average; necessary-condition questions ask what may need to be in place before high outcomes appear. The answers can differ.
Result: Drivers help prioritise improvement. Constraints help identify what may need to be secured first - match the method to the decision.
Do not only count interactions. Rank them.
Totals show how much happened. A top-ranked interaction can be more central than a high-volume one, and ranking preserves context that sums often compress away.
Result: Ask where an interaction ranks among alternatives — as a proxy for relative priority, not proof of intent.
When a SQL Query Beats a Model: Start With a Rule-Based Baseline
The simplest acceptable solution should get the first chance to solve the problem. A well-designed SQL rule-based baseline is transparent, testable, and gives a real benchmark for complexity before any model is trained.
Result: Models do not start with complexity by default — they earn it through incremental decision value. Compare rule and model on the same realistic held-out period and choose the justified system.
I generate EDA with AI. Then I delete most of it.
AI can produce a first-pass EDA in minutes — distributions, missing-value patterns, target balance, outliers, correlations, and time trends. That breadth is real reconnaissance, but reconnaissance is not analysis: a generic histogram can be correct and completely irrelevant.
Result: I generate a broad first pass with AI, delete most of it, keep the few patterns worth investigating, and build custom, hypothesis-driven analysis around them. AI provides breadth; analytical judgment creates depth — the goal is fewer charts with stronger questions behind them.
Hard Constraints Belong in the Architecture, Not Preferences
In restaurant recommendation, delivery distance was a physical boundary, not a feature: a restaurant outside the delivery area was unavailable, not less preferred.
Result: The system was structured in two stages - define the feasible set of eligible vendors first, then rank options inside that set. Constraints belong in the architecture; preferences belong in the ranking model.
A Reranker Cannot Rank What It Never Receives
Production recommenders are not one model making one prediction: candidate generation first, re-ranking second. If retrieval misses a relevant item, no re-ranker can recover it — candidate generation sets the quality ceiling of the whole system.
Result: Use fast retrieval for broad recall (collaborative filtering, co-visitation, embeddings, business rules), then score only the shortlist with a richer model — learning-to-rank, cross-encoder, or an LLM re-ranker where semantics matter. Evaluate recall@K, ranking quality, latency, cost, diversity, and business constraints separately.
A predictive model is not a decision system
In a Nairobi ambulance deployment competition, the model predicted crash probability per road segment. But the real decision was: where should 6 ambulances be positioned right now?
The important part was the translation layer between prediction and action: predict risk → select highest-risk segments → cluster into geographic groups → place ambulances at centroids.
Result: In real-world ML, prediction quality and decision quality are related, but they are not the same thing.
Not every analytics question is about what drives the outcome
Most data science asks "what increases Y?" — leading to correlation, regression, SHAP. But some questions are different: what must already be true for high Y to even be possible?
Used Necessary Condition Analysis (NCA) to identify variables that act as minimum requirements, not average drivers. Below a threshold, the outcome simply does not appear.
Result: Some variables are not drivers — they are constraints. "Invest in X to boost" ≠"guarantee X above threshold before anything else matters."
Share on LinkedIn →