Predict Ocean Vessel Arrival Delays With Calibrated Intervals

Last updated: November 29, 2026

Quick Overview

Build a model that predicts when an ocean shipment will actually arrive at its destination port, updated daily during the voyage, and produces a calibrated 80 percent prediction interval. Discuss features, model choice, evaluation and how predictions change as the voyage progresses.

Flexport
Machine Learning
Machine Learning Engineer
Flexport
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Hard

0

0

0 solved


Build a model that predicts when an ocean shipment will actually arrive at its destination port, updated daily during the voyage, and produces a calibrated 80 percent prediction interval. Discuss features, model choice, evaluation and how predictions change as the voyage progresses.

Accurate arrival predictions are central to Flexport's visibility product and to planning drayage and warehouse labor. The interviewer checks problem framing over time, leakage-free features, quantile or distributional modeling, and evaluation that reflects how the prediction is used at each point in the voyage.

What the Interviewer Expects
  • Frame the target as delay relative to schedule, predicted at each day of the voyage
  • List features from schedules, AIS, port congestion and carrier history without leakage
  • Choose a model that outputs quantiles or a distribution
  • Evaluate by prediction horizon with MAE and interval coverage
  • Explain recalibration and monitoring under disruptions
Key Topics to Cover
Quantile Regression
Gradient Boosting
Time-Based Validation
Calibration
Feature Leakage
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • A canal closure shifts every Asia to Europe voyage by ten days. How does the model react?
  • How would you handle transshipment shipments where the second vessel is not yet known?
  • How would you combine your prediction with the carrier's own ETA?
  • Why might MAE look great while customers still complain?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Target: actual arrival at destination port (berth or first discharge), expressed as delay in hours versus the original schedule. That target is more stationary across lanes than an absolute date. Pred...

Approach

Features at as-of time t: days since departure, remaining scheduled days, distance remaining from AIS, recent vessel speed versus required speed, carrier and service string on-time history for the...


Submit Your Answer
Markdown supported

Related Questions