A new study at a container terminal uses machine learning to predict pre-clearance service needs and cargo dwell times. Researchers implemented a classification system for cargo descriptions to clean historical operational data. This approach reduces unproductive container moves. Logistics practitioners can now use these predictions to optimize terminal layout and strategic planning.