Methodological Pitfalls in Predicting Ship Turnaround Time at Brazilian Ports: An Empirical Audit and a Reproducible Pipeline
Eduardo Caruso Barbosa Pacheco, Reynaldo Pereira Martins, Alexandre dos Santos Gualberto, Joao Vitor Souza Germano, Milton Miranda Neto, Francisco Louzada
Abstract
Two recent studies on ship turnaround time at Brazilian ports report models with R-squared scores above 0.80 on data from the national waterway transportation agency. We audit their published datasets and reveal these results are inflated by structural data leakage. Specifically, 97 percent of berthing events in their random row-level split appear in both training and testing partitions. We demonstrate that a model's R-squared drops from 0.82 to 0.20 when the data is properly split at the berthing level. We further document additional methodological flaws, including survivorship bias, undocumented target truncation, and the retention of variables that algebraically reconstruct the target. To address these issues, we propose a reproducible pipeline that aggregates cargo to the berthing level, utilizes conditional imputation, and represents high-cardinality cargo variables through weighted averages of multilingual sentence embeddings. Evaluating six time targets and thirty seeds, our pipeline reveals that cargo embeddings yield statistically significant improvements on four operational targets, while administrative waiting times remain unaffected. Prior works missed this per-target heterogeneity by conflating genuine signal with leaked identity.
Create a lesson
Related papers
Who Is the Regression About? Auditing AI-Labeled Treatments When Effects Differ
Shared title terminology · Ayman Farahat
Bayesian modeling of predictive stability under generalized Arrhenius non-linear kinetics
Shared title terminology · Lorenzo Mauri, Samantha Gleich, Michael Johnson et al.
GrAFT-PDX: Growth and Failure-Time Modeling of Patient-Derived Xenograft Experiments
Shared title terminology · Nihar Mauskar, Sebastian Salazar, Aaron Schein et al.
Empirical Bayes mirror testing for persistent widening of achievement gaps in U.S. school districts
Shared title terminology · Bowen Gang, Yin Xia
Can Model Answer Probabilities Represent Survey Populations? Conditional Prediction and Joint Validity in Jev Survey Simulation
Shared title terminology · Zengqing Wu, Chuan Xiao
Recursive memory for prediction and generation
Shared title terminology · Pengbin Feng, Chunlei Meng