Maritime transport forms the backbone of international logistics, as it allows for the transfer of bulk and long-haul products. The sophisticated planning required for this form of transportation frequently involves challenges such as unpredictable weather, diverse types of cargo kinds, and changes in port conditions, all of which can raise operational expenses. As a result, the accurate projection of a ship’s total time spent in port, and the anticipation of potential delays, have become critical for effective port activity planning and management. In this work, we aim to develop a port management system based on enhanced prediction and classification algorithms that are capable of precisely forecasting the lengths of ship stays and delays. On both the training and testing datasets, the XGBoost model was found to consistently outperform the alternative approaches in terms of RMSE, MAE, and R2 values for both the turnaround time and waiting period models. When used in the turnaround time model, the XGBoost model had the lowest RMSE of 1.29 during training and 0.5019 during testing, and also achieved the lowest MAE of 0.802 for training and 0.391 for testing. It also had the highest R2 values of 0.9788 during training and 0.9933 during testing. Similarly, in the waiting period model, the XGBoost model outperformed the random forest and decision tree models, with the lowest RMSE, MAE, and greatest R2 values in both the training and testing phases.