All challenges and every certification for $9 a month. And learn to build, buy and guide AI agents for supply chain: https://www.skool.com/supplychain

All game guides
Model Studio · Player guide

Train it, test it honestly, then trust it

You build a machine-learning system for a real supply chain decision: a camera that spots defective parts, a demand forecast, or an alert rule for failing pumps. You design it on the data you can see and test it there. Then you deploy, and it runs on data it has never seen. A model that only looked good in testing fails in production.

You playMachine-learning engineerLength6 to 7 minutes for the intros, 16 to 18 for the othersContract types3: vision, forecasting, maintenancePass mark60 in every contract; 75 for silver, 90 for gold
Opened from a contract? This guide is in its own tab and your game is still in the other tab, exactly where you left it. Nothing you do here changes your run, so read as much as you like and switch back when you're ready.
Model Studio as it looks in a contract

Quick start

These steps work on every Model Studio contract, whichever of the three types it is.

  1. Read the briefing and the context card at the top. The eyebrow says the contract type; the facts list holds the numbers that matter (night-shift share, order lead time, technician lead time).
  2. Work down the numbered cards on the left. Card 1 is the data or the policy, card 2 the model or who decides, card 3 the threshold, validation or spares.
  3. Watch the evidence on the right after every change: the score strip and cost per week, the model-fit chart, or the vibration chart and backtest.
  4. Ask whether the test looks like production. Does the training data cover every shift? Is every feature known in time? Does the rule work on a pump you have no history for?
  5. Use the projected score as a rough guide only. Before you deploy it is worked out on the visible data and tops out at 80.
  6. Press Deploy to production. Then read "How the model did for real" and the "What happened, and why" list.

Your first two contracts

Two short contracts at Kettle & Co come first. The camera intro offers only the threshold (no review band yet); the forecast intro offers three features, two models and two tests.

  1. Kettle & Co: Teach a Camera to Check Kettle Base Plates. A camera could check every kettle base plate. Pick training data that covers both shifts and set one threshold by the cost of each mistake.
  2. Kettle & Co: Forecast Kettle Sales Without Peeking. A model that sees this week's shipments looks perfect and fails in real use. Pick features you will really know, and test the model the way it will be used.

What the game is about

Each contract is one model for one decision. You can change the design as often as you like; you deploy once.

The loop

Read the context → pick the data, the model and the rule → study the validation evidence → adjust → deploy → compare validation with production → read why they differ.

What it teaches

Training data that represents production, decision thresholds set by the cost of each kind of mistake, human review for the uncertain middle, leakage (features you won't have at forecast time), validation that mimics real use, overfitting on small data, and maintenance rules that generalise to new machines.

The twist

The data you design on is not the data you are scored on. Production adds the night shift, the next season or a new pump. Choices that flatter the validation (day-only images, leaking features, a random split, a raw threshold) all fall apart when you deploy.

The three contract types

The engine runs three kinds of contract. The eyebrow on the context card tells you which one you are in, and the hint next to the deploy button says what production means.

Vision quality control

Computer vision · Quality control

A camera scores every machined part from 0 to 1 for how likely it is defective. You choose the training data, who makes the final call and the threshold. Production is every shift on the line, including the night shift. The top bar shows Defects caught, Good parts rejected, Defects shipped / week, Quality cost / week. Next to the deploy button: "Validate on the labelled images, then deploy on every shift."

The key idea: Weigh the two mistakes: a shipped defect costs far more than a scrapped good part. Send the uncertain middle to people.

Demand forecasting

Machine learning · Demand forecasting

Two years of weekly sales with promotions, prices, temperatures and shipments. You choose the features, the model and the validation design. Production is the next season, forecast weeks ahead for real. The top bar shows Accuracy (validation), Bias, Planner accuracy today, Features. Next to the deploy button: "Deploy when the validation is good and honest: the model then forecasts the season for real."

The key idea: For every feature ask: would I know this on the day I place the order? If not, leave it out.

Predictive maintenance

Sensor data · Predictive maintenance

Daily vibration readings from a fleet of pumps, with past failures marked. You choose the maintenance policy, the alert rule and how many spare parts to keep. Production is the next period, when a new, different machine joins the line. The top bar shows Unplanned failures, Failures prevented, Unneeded jobs, Maintenance cost. Next to the deploy button: "Deploy the rule and the policy on every pump, including the new one."

The key idea: Tune the rule so it works on every pump, including the one you have no history for.

Reading the screen

The layout is the same for all three types: design on the left, evidence on the right, the result below once you deploy.

Top barFour live numbers for the contract type, plus the projected score. Before you deploy they describe your validation or history; after, production.
Context cardThe contract type (eyebrow), what is being modelled, a short description and the key facts.
Design columnNumbered cards with radio buttons, checkboxes and sliders. Every change is re-scored on the server a moment later.
Evidence columnCharts, tables and stats for your current design on the data you can see.
In productionAppears after you deploy: "How the model did for real", with production numbers next to your validation and a "What happened, and why" list.
Bottom barA one-line hint about what deploying means, and the deploy button.

Validation, then production

Every contract type follows this chain.

1. DesignChoose data, model, rule and policy.
2. ValidateThe engine scores your design on the visible data: labelled images, held-out weeks or the sensor history.
3. Projected score80% of the saving or the accuracy on that data. A rough signal, at most 80.
4. DeployOne click, once. The design is locked.
5. ProductionThe same design runs on hidden data: every shift, the next season, or the next period with a new pump.
6. ScoreWorked out on production only.
The gap is the lesson. If production is much worse than validation, the feedback names the reason: unrepresentative training data, a leaking feature, a flattering split or a rule that doesn't fit the new machine.

Vision: who decides

Card 2 in a vision contract. The model gives each part a score from 0 to 1; higher means more likely defective. A new run starts with the camera deciding alone, a threshold of 0.50 and a band of 0.40 to 0.60.

The camera decides alone

One slider, Scrap at or above. Every disc that scores at or above it is scrapped, every other disc ships. No labour cost, but one line has to serve both mistakes.

When to pick it: Only when defects and good parts get clearly different scores. Where they overlap, a high threshold ships defects and a low one scraps good parts by the thousand.

Camera with a review band

Two sliders. Below Send to an inspector from the disc ships; from Scrap from upwards it is scrapped; in between an inspector checks it. Inspectors catch most of the defects they see and wrongly reject very few good discs.

When to pick it: Usually the best answer. Set the low end below the lowest defect scores you can see, and the high end above the highest good scores. Only a small share of discs falls in between, so the review bill stays small.

Inspectors check every disc

The camera only highlights suspect areas; a person still decides on every disc, at the manual inspection cost per disc. With the highlights they catch about 98% of defects.

When to pick it: Safe, and it beats manual inspection on shipped defects, but the labour cost stays. It rarely captures much of the possible saving.

Vision: training data

Card 1 in a vision contract. These are the sets in the brake disc contract; the label on the right shows the cost, or "Ready" if it is free. What the model learns from decides what it can see.

2,400 images from the day shift

Free and ready now, from a pilot on day shifts. It has never seen the night shift's lighting.

What happens: A trap. It looks fine on daylight images and misses defects at night, where a large share of discs is made. Its data score is low.

7,000 images from all three shifts, with extra cracks

Collected and labelled by trained inspectors on every shift, with deliberately more examples of the rare cracks.

What happens: The most expensive set and the one that represents production. Its cost is spread over a year, so it is small per week. It earns the full data score.

20,000 images labelled by temporary staff

A lot of data, quickly, but a spot check found about 8% of labels wrong.

What happens: More data doesn't fix wrong labels: the model learns the mistakes and its scores for good and bad discs overlap more.

1,500 images from the day shift

The intro's free set, from a pilot camera that only ran on day shifts.

What happens: The same trap as on the brake discs: under the night shift's lights it misreads reflections.

4,000 images from both shifts

The intro's paid set, collected and labelled on both shifts.

What happens: It represents the line, so one threshold separates dented plates from good ones.

Vision: reading the evidence

The validation set is a sample of labelled images, about half of them defective so that rare defects get tested. The cost per week uses the line's real, much lower defect rate.

Score stripOne dot per image along the 0 to 1 score axis: defects in the top row, good discs in the bottom row. Hollow white dots are night-shift images. Red shading is the scrap zone, amber the review band. Click a dot to see that image.
Confusion matrixValidation images by the inspector's label (Defect, Good disc) and your decision (Scrapped, To inspector, Shipped). Defects shipped and good discs scrapped show in red.
Projected cost per weekDefects caught, Good scrapped, Shipped / week and Cost / week, then the cost lines and "Manual inspection today" to beat. Green means better than manual.
The imagesEvery validation image with its score. A red tag names the defect (crack, scratch, porosity); the frame shows your decision: red scrapped, amber to an inspector.
Image detailImage number, shift, the inspector's label, the model score and your decision. A bold line warns when the decision is a mistake.

Vision: the weekly quality bill

The Projected cost per week card adds these lines. Your rates come from the validation images; volume and defect rate come from the line.

Line on the cardHow it is worked outHow to lower it
Defects shippedDefects a week that pass as good × cost of a shipped defectCatch more: a lower threshold, a review band or better training data.
Good discs scrappedGood discs a week scored as defective × cost of a scrapped discScrap less: a higher scrap threshold, with the doubtful ones going to review.
Discs checked by peopleDiscs sent to an inspector × review cost per disc (or the manual cost per disc when inspectors check every disc)Narrow the review band to the scores where defects and good discs really overlap.
Camera systemA fixed weekly costFixed.
Training data, spread over a yearThe set's price ÷ 52Usually small. Don't save here.
Manual inspection todayShipped defects at the inspectors' catch rate + every disc at the manual costThe number to beat.
Lopsided costs: card 3 says what each mistake costs. In the brake disc contract a shipped defect costs about fifty times a scrapped good disc, so shipping one defect is worse than scrapping fifty good parts.

Forecast: features

Card 1 in a forecast contract. Each feature describes the week being forecast. The "When the forecast is made" card shows the rule: at the moment you order you know demand up to that week, the promotion and price plan, the calendar and the long-range weather forecast. Features only feed Linear regression and Gradient-boosted trees; the other models ignore them.

Same week last year

Known at forecast time

Demand 52 weeks earlier. It carries the season.

Keep it or not: Keep it. It needs a year of history, so the model then trains on the second year only.

Latest known demand

Known at forecast time

Demand in the last week you know when you order, four weeks before the forecast week.

Keep it or not: Keep it. It tells the model whether this year runs above or below last year.

Planned promotion

Known at forecast time

Whether the week has a promotion. Promotions are planned months ahead.

Keep it or not: Keep it. Promotions are the biggest driver after the season.

Planned shelf price

Known at forecast time

Set together with the promotion plan, so it moves with the promotion.

Keep it or not: Honest, but it mostly repeats the promotion. Adding it changes little.

Temperature forecast, four weeks out

Known at forecast time

The weather service's long-range forecast for the week. Less exact than the real temperature, but you have it in time.

Keep it or not: Keep it. It is the honest way to use the weather.

Actual temperature in the week

Not known at forecast time

Measured during the week being forecast. You only know it after the goods have sold.

Keep it or not: Leakage. In validation it looks like a gift; in production only the long-range forecast exists, so the model loses its best input. Any leaking feature caps your score.

Units shipped to stores that week

Not known at forecast time

From the warehouse system. It is almost the same number as demand, measured in the same week.

Keep it or not: The worst leak: it predicts demand almost perfectly in validation because it nearly is demand. Four weeks ahead you only know an old value.

Public holiday in the week

Known at forecast time

Known from the calendar.

Keep it or not: Honest and cheap to include.

Forecast: models

Card 2 in a forecast contract. The orange line on the history chart is what the chosen model predicts for each week.

Seasonal naive

Past demand only

Next year's week equals last year's week. The benchmark every model must beat.

When to pick it: Fine as a yardstick, but it ignores this year's level and every promotion, so it often falls below the planners in production.

Moving average

Past demand only

The average of the last four known weeks.

When to pick it: It always lags behind a season that is rising or falling. Weak for a seasonal product.

Linear regression

Uses your features

A weighted sum of the features you tick. Easy to explain.

When to pick it: A solid, honest choice with the right features. It can't learn that a promotion matters more in hot weeks.

Gradient-boosted trees

Uses your features

Many small decision rules added together. Finds patterns such as a promotion in a hot week, and can overfit small data.

When to pick it: Give it the full set of honest features. With three features or fewer on two years of weekly data, it tends to learn noise.

Forecast: validation

Card 3 in a forecast contract: how you test the model before trusting it. Production refits the model on all the history and forecasts the next weeks with only what is known in time.

Random 20% of weeks

One week in five is held out, scattered across the two years, and every feature uses its real value.

How far to trust it: Flatters the model. It learns from the weeks either side of each test week, and leaking features look perfect. Shown as blue dots on the chart.

Last 13 weeks

Train on the past, test on the most recent 13 weeks. Features still use their real values.

How far to trust it: Better, but a leaking feature still looks great here, because the real temperature or shipments are in the data.

Last 13 weeks, as if forecasting

Test on the last 13 weeks using only what would have been known four weeks ahead.

How far to trust it: The honest test. Its accuracy is close to what production will show, which is what the validation part of the score rewards.

Forecast: reading the evidence

Accuracy is 100% minus WMAPE: the sum of absolute weekly errors divided by the sum of actual demand. Bias is total forecast minus total actual, as a share of actual; plus means the model forecasts too much.

When the forecast is madeThe order is placed weeks before the goods sell. Anything measured during the sales week is only known after it.
StatsValidation accuracy, Validation bias, Planners today (the accuracy to beat) and Weeks tested. Green means better than the planners, or bias within 3%.
History and model fitBlack: actual weekly demand over two years. Orange: the model. The shaded block (or the blue dots for a random split) marks the weeks tested.
The data, latest weeks firstThe last 16 weeks: Week, Demand, Promotion, Price, Temp. actual, Temp. forecast, Holiday, Shipped. Promotion weeks are highlighted. Compare Shipped with Demand.
After deployingAccuracy in production, Your validation said, Planners today, Best honest model, Bias, Cost of forecast error, and a chart of your forecast against what really sold.

Maintenance: policies

Card 1 in a maintenance contract. By default a breakdown costs €18,000, a planned bearing change €2,500 and a spare on the shelf €40 a day; the context card gives the contract's own figures.

Condition-based: maintain when the rule alerts

Your alert rule runs every day on every pump. After an alert a technician changes the bearing a few days later.

When to pick it: The policy the sensors were fitted for. It prevents bearing failures and leaves healthy pumps alone, if the rule is good.

Fixed interval

Every pump gets a new bearing every N days, whatever the sensors say. The slider runs from 10 to 120 days.

When to pick it: Replaces bearings that are fine and still misses failures that come early. Costly on both counts.

Run to failure

Repair what breaks. Nothing is planned.

When to pick it: The baseline you must beat. Every breakdown stops a line. Set spares to 0 if you pick it, or you pay to store parts you never use.

Spare bearings (the last card, for every policy): keep 0 to 4 on the shelf, 1 by default. A planned change needs one; with none in stock it waits for one to be delivered, and the pump can break while it waits. Each spare costs storage every day of the period.

Maintenance: alert signals

Card 2 with the condition-based policy. Pick a signal, then set Alert when the signal reaches and For this many days in a row (1 to 5, 2 by default). No rule can alert on a pump until it has 14 days of readings.

Raw vibration

The sensor value in mm/s. One threshold for every pump.

When to pick it: Tuned on the old pumps, it fires constantly on a bigger pump that simply vibrates more when healthy.

Vibration above the pump's own baseline

Percent above the pump's own median in its first 14 days.

When to pick it: Generalises: every pump, old or new, is compared with its own healthy level.

Weekly rise in vibration

The average of the last three days against a week earlier, in mm/s.

When to pick it: Also pump-independent, because it looks at change, not level. Noisier, so require two or three days in a row.

Maintenance: from alert to bearing change

A failing bearing announces itself: in the weeks before it fails, vibration climbs steadily to about 2.1 times the pump's normal level. Electrical faults give no warning at all.

1. Signal over the lineEach day the rule computes the signal for every pump.
2. AlertThe signal stays at or above the threshold for the number of days you set.
3. Technician bookedThe bearing is changed a few days later (the lead time on card 2).
4. Spare neededFrom the shelf, or ordered with the spare lead time.
5. Prevented or unneededNeeded if the bearing would have failed within 30 days; otherwise an unneeded job.
6. PauseAfter a change or a breakdown the pump gets 14 quiet days.

Maintenance: reading the evidence

The history is replayed with your current rule and policy, so the backtest updates as you move the sliders.

Vibration historyPick a pump with the chips above the chart. Black: the chosen signal day by day. Dashed orange: your threshold. Orange dots: alerts. Green dots: bearing changes. Markers: Breakdown (red), Prevented (green), Electrical fault (purple).
BacktestBreakdowns, Prevented, Unneeded jobs, Cost and Run to failure for the history. Green means few breakdowns, few unneeded jobs, or cheaper than run-to-failure.
Pump tablePump, Healthy level (its median in the first 14 days), Failures, Alerts, Bearing changes, Still broke. Click a row to chart that pump.
Joining the lineMachines that only run in production, with a note on how they differ. Your rule must work on them too.
After deployingBreakdowns, Prevented, Unneeded jobs, Spares on the shelf, Total cost, Run to failure and Best policy found, with a chart per pump including the new one.

Buttons & controls

Everything is done with the mouse. There are no keyboard shortcuts.

Design column

  • Radio optionPick one training set, mode, model, validation, policy or signal.
  • CheckboxForecast features: tick as many as you like.
  • SliderThreshold, review band, days in a row, interval or spares. The value shows next to it. The two band sliders push each other so the low end never passes the high end.

Vision images

  • AllDefectsGood discsNight shiftMistakesFilter the image grid. Mistakes shows defects you would ship and good discs you would scrap.
  • Sort by scoreOrder the images from highest score to lowest; press again to undo.
  • Click a dot or tileShow that image's detail under the grid.

Maintenance charts

  • Pump chipsChoose which pump the chart shows, before and after deploying.
  • Pump table rowClick a row in the backtest table to chart that pump.

Top bar and finish

  • BriefingShow or hide the briefing column.
  • How to playOpens this guide in a new tab.
  • Sound onTurn sound effects on or off.
  • ExitLeave without deploying. Relaunching the contract starts a fresh run.
  • Deploy to productionSubmit your design. You can only deploy once; the controls then lock.
  • ContinueReview runOn the debrief card: go back to where you started the contract, or open the run's record.

Scoring

The score out of 100 is worked out on production only, with fixed weights per contract type. The projected score you see before deploying is 80% of the saving or accuracy on the visible data, so it never goes above 80.

PartWeightWhat counts
Quality cost saved50%Vision quality control. On the line, (manual inspection cost − your weekly cost) as a share of (manual cost − the best setup's cost). The best setup is found by trying every training set, threshold and band.
Defects kept away from customers30%Vision quality control. Defects shipped per week on the line against manual inspection: 100 if you ship half as many or fewer, 50 for the same number, 0 at one and a half times as many.
Representative training data20%Vision quality control. The data score of the training set you chose: how well it represents every shift and defect.
Forecast accuracy in production45%Demand forecasting. Production accuracy against the best honest model on this data: 6 points off for every percentage point short.
Validation that predicted production20%Demand forecasting. How well validation predicted production: 6 points off for every point validation was more optimistic, beyond a 3-point allowance.
Only features known at forecast time20%Demand forecasting. 100 if every feature is known at forecast time, 0 if any is not.
No systematic bias15%Demand forecasting. Production bias in either direction: 8 points off per percentage point.
Maintenance cost against breakdowns50%Predictive maintenance. On the next period, (run-to-failure cost − your cost) as a share of (run-to-failure cost − the best policy's cost).
Breakdowns prevented30%Predictive maintenance. The share of failures your policy prevented, plus 20 points, up to 100. So 80% prevented already scores full marks.
Few unneeded maintenance jobs20%Predictive maintenance. The share of bearing changes that were really needed, plus 20 points, up to 100. No planned changes at all scores 100, except fixed interval, which scores 0.
Score caps: the score is capped one point below the pass mark if you ship more defects a week than manual inspection does (vision quality control); or if any chosen feature is unknown at forecast time, or production accuracy is below the planners' accuracy today (demand forecasting); or if your policy costs as much as run-to-failure or more (predictive maintenance). Gold needs a method that would hold up again: a forecast validated on a random split, or an alert rule on a signal that does not carry over to new machines, stops at 89 however well it did this time. Stars are awarded at 60, 75, 90 points.

Tips & common mistakes

New to this game? Start with Kettle & Co: Teach a Camera to Check Kettle Base Plates: two training sets and one threshold, nothing else.
Vision: buy the representative data. Training images from every shift are worth their price; the free day-shift set fails at night.
Vision: use a review band. Let the camera decide the clear cases and send only the overlap to people.
Forecast: backtest as if forecasting. It is the only validation whose accuracy you can trust.
Forecast: give boosted trees enough honest features. Season, latest demand, promotions, the temperature forecast and holidays.
Maintenance: compare each pump with itself. A relative or trend signal works on the new pump; a raw threshold doesn't.
Maintenance: keep a spare on the shelf. A bearing that waits for a part can break before it arrives.
Don't trust a validation that looks too good. A 95% forecast built on actual temperatures or shipments is leakage, and is capped below the pass mark.
Don't set one threshold to please both mistakes when the score strip shows defects and good parts mixed in the middle.
Don't let inspectors check every disc if you want the saving. The labour bill stays.
Don't alert on a single day above the threshold. It reacts to noise and books unneeded jobs.
Don't deploy fixed-interval maintenance to be safe. It changes healthy bearings and still misses early failures.
Back to top