Optimizing the inbound process with a machine learning model

Austin Yang, JY Cho9 Mar 2023

Problem

A fulfillment center has a fixed number of docks per hour, and one truck occupies one dock for a period called a slot. Suppliers book slots themselves and must guess how many trucks their shipment needs. Too few slots delay unloading. Too many waste dock time that other suppliers could use.

At Coupang the suppliers' own guesses were off in both directions: they over-reserved in 44.45% of cases and under-reserved in 8.71%. A lack of slots made suppliers move their delivery dates.

Example from the article: when suppliers estimated the number of trucks themselves and entered it in the reservation system, 44.45% of their estimates were too high and 8.71% too low.

Solution in brief

Train a LightGBM model on about 800,000 past inbound requests to predict the needed truck count from shipment and supplier features. Call it from the booking system, so the supplier sees the recommended number at once. The model is tuned so that over-prediction is minimized while under-prediction stays at a level agreed with the business and suppliers.

Questions this case answers
  • How to predict the amount of a limited shared resource a requester needs at booking time, when requesters' own estimates are systematically too high and over-reserving wastes capacity
  • How to choose the error balance of a prediction model when over-prediction wastes capacity and under-prediction delays the requester
  • How to predict how many delivery trucks (dock slots) a supplier needs for a shipment at booking time?
  • How to cut wasted warehouse dock slots without making suppliers wait for capacity?

Tools and methods

  • LightGBM — gradient-boosted trees that handle categorical features without one-hot encoding and train fast
  • Bayesian optimization — automatic hyperparameter search, rerun monthly on new data
  • Amazon SageMaker endpoint — hosts the model, called by the booking system on each request
  • Interviews with logistics managers — source of domain patterns that became features
Continue reading — it's free

Google or a one-time email code. No password.