Toward Reducing Unproductive Container Moves: Predicting Service Requirements and Dwell Times
Organizations: Tecnológico de Monterrey, Mexico City, Mexico · Centro de Ciencia de Datos e Inteligencia Artificial School of Government and Public Transformation Tecnológico de Monterrey Mexico City, Mexico · Container Terminal Operations, Veracruz, Mexico · Container Terminal Operations Veracruz, Mexico
Abstract
This article presents the results of a data science study conducted at a container terminal, aimed at reducing unproductive container moves through the prediction of service requirements and container dwell times. We develop and evaluate machine learning models that leverage historical operational data to anticipate which containers will require pre-clearance handling services prior to cargo release and to estimate how long they are expected to remain in the terminal. As part of the data preparation process, we implement a classification system for cargo descriptions and perform deduplication of consignee records to improve data consistency and feature quality. These predictive capabilities provide valuable inputs for strategic planning and resource allocation in yard operations. Across multiple temporal validation periods, the proposed models consistently outperform existing rule-based heuristics and random baselines in precision and recall. These results demonstrate the practical value of predictive analytics for improving operational efficiency and supporting data-driven decision-making in container terminal logistics.
Figures & tables
| Dwell Time Label | Cumulative Percentage | Label Percentage |
|---|---|---|
| 1 | 8% | 8% |
| 2 | 18.36% | 10% |
| 3 | 30.60% | 12% |
| 4 | 42% | 12% |
| 5 | 54.07% | 12% |
| 6 | 64.27% | 10% |
| Variable | |
|---|---|
| Net weight | Container dimension |
| Gross weight | Container type |
| Hazardous cargo indicator | Cargo type |
| Liner client (yes/no) | Shipping line |
| Consignee* | Shipping line route |
| Chapter and section** | |
| Category | Description |
|---|---|
| Simple variables | Directly available from base container information, 24 hours prior to arrival. |
| Simple counts | Frequency of occurrence of specific variables within a defined time window. |
| Aggregated metrics | Ratios, proportions, and relationships between counts across temporal spans. |
| Differences | Temporal variations, percentage changes, and dispersion measures between periods. |
| Service | Frequency of services by consignee, chapter, or shipping line over time. |
| Dwell time | Descriptive statistics derived from historical container departure records. |
| Task | Best Model | Precision | Recall | vs. Baseline |
|---|---|---|---|---|
| Service ( ) | Random Forest | 75% | 100% | +50 pp |
| Dwell time 2 days | Random Forest | 30–40% | 80% | +50 pp |
| Dwell time 3–6 days | Random Forest | 25% | 40% | +15 pp |
| Dwell time 7 days | Random Forest | 80% | 90% | +40 pp |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Algorithm | Hyperparameter | Values tested |
| DecisionTreeClassifier | criterion | gini |
| max_depth | 5, 10, 50 | |
| min_samples_split | 10, 50, 100 | |
| RandomForestClassifier | n_estimators | 200, 300 |
| criterion | gini | |
| max_depth | 5, 10 |
Supply Chain Management
Supply chain management coordinates sourcing, production, inventory, and delivery to balance cost, service, resilience, and sustainability.
See all 73 papers