Under the Hood

We built a
Retail Simulator.

Real-world data is sparse on failures. So we built a Vectorized Causal Simulator to generate millions of "synthetic failures"—teaching Sentinel the physics of stockouts before it ever sees your data.

The Sentinel Data Pipeline

From raw, messy ERP snapshots to precise JSON action signals.

Inputs (Raw)
📦
ERP Inventory
Oracle RMS Snapshot
📊
Sales History
2-Year Transaction Log
🚚
In-Transit
Purchase Orders (ASN)
Sentinel
CORE ENGINE
Processing 12M SKUs...
Outputs (Actionable)
Risk Alert JSON
POST /v1/alerts
{ "sku": "ABC-123", "risk": 0.98 }
📉
Dashboard Write-back
Updates PowerBI / Tableau
sentinel/training/simulator.py
class RetailPhysicsEngine:
    def simulate_day(self, state):
        # 1. Conservation of Mass
        state.soh = state.soh - sales + receipts
        
        # 2. Stochastic Demand (Poisson)
        sales = poisson(state.velocity * seasonality)
        
        # 3. Supply Chain Delays
        if state.order_date == today:
             receipts = delayed(state.order_qty, state.lead_time)

        return state

Methodology 01

The World Builder

To train a model to find "needles in a haystack" (stockouts), you need a lot of needles. Real data is often incomplete.

We built a Causal Simulator that models the physics of retail:

  • Conservation of Mass: Tracking every unit in and out.
  • Variable Lead Times: Simulating vendor delays.
  • Stochastic Demand: Poisson-distributed sales spikes.

Result: We generate millions of training examples where the ground truth (Future Stockout) is mathematically known.

Methodology 02

The Vision

The model "sees" the supply chain through three distinct lenses to determine true risk:

State

Where are we now? (Current SOH, In-Transit Quantity).

Velocity

How fast is it moving? (1-Day, 7-Day, and 28-Day sales trends).

Constraints

What limits us? (Vendor Lead Time, Shelf Capacity).

Feature Vector Lens
Feature Value Lens
velocity_7d 42.5 VELOCITY
qty_on_hand 12 STATE
lead_time_days 5 CONSTRAINT
shelf_capacity 50 CONSTRAINT

Gradient Boosted Trees

Algorithm

We utilize state-of-the-art boosting algorithms for O(N) speed and native handling of non-linear interactions (e.g., "High Sales is only bad if Lead Time is long").

Class Weighting

Technique

Targeted detecting of rare stockout events (<5% prevalence) without drowning in false positives.

Methodology 03

The Brain

We replaced simple logic with Gradient Augmented Decision Trees.

Unlike linear regression, trees can learn "cliffs"—sharp cutoff points where risk spikes suddenly. Sentinel builds thousands of these weak learners to form a consensus on the probability of failure.

Built for the modern stack.

Contact us

Email: info@prnvp.com Registered MSME: UDYAM-PB-10-0143892 Serving Clients Globally...
© 2025 prnvp&co