scieee AI-readable full text Open interactive document viewer

Forecasting worldwide empty container availability with machine learning techniques

Martius, Christoph,Kretschmann, Lutz,Zacharias, Miriam,Jahn, Carlos,John, Ole

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Martius, Christoph; Kretschmann, Lutz; Zacharias, Miriam; Jahn, Carlos; John, Ole Article Forecasting worldwide empty container availability with machine learning techniques Journal of Shipping and Trade (JST) Provided in Cooperation with: Shipping Research Centre (SRC), The Hong Kong Polytechnic University Suggested Citation: Martius, Christoph; Kretschmann, Lutz; Zacharias, Miriam; Jahn, Carlos; John, Ole (2022) : Forecasting worldwide empty container availability with machine learning techniques, Journal of Shipping and Trade (JST), ISSN 2364-4575, SpringerOpen, London, Vol. 7, Iss. 1, pp. 1-24, https://doi.org/10.1186/s41072-022-00120-x This Version is available at: https://hdl.handle.net/10419/298930 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/ Forecasting worldwide empty container availability withmachine learning techniques Christoph Martius1* , Lutz Kretschmann1,2, Miriam Zacharias1, Carlos Jahn1 and Ole John1 Introduction Background Freight transport within supply chains and to consumers is a critical component of a globalised world. The timely availability of raw materials and finished goods plays an essential role for most companies. Accordingly, the efficient movement of cargo supports production, trade, and consumption (Crainic 2003: pp.1–3). Transport companies depend on the availability of empty containers with suitable characteristics in terms of equipment size, type, and condition to fulfil any transport order. In Abstract Due to imbalances in the global transport of containerised goods, liner shipping companies go to great lengths to match the regional supply and demand for empty containers by transporting equipment from surplus to deficit regions. Making accurate forecasts of regional empty container availability could support liner companies and other involved actors by making better relocation decisions, thus avoiding unnecessary transport costs of empty equipment. Previously proposed container availability prediction models are limited to the application in individual regions and typically characterized by a high degree of temporal aggregation. Against this background, this paper introduces two novel approaches based on machine learning and probabilistic techniques to predict the future weekly availability of empty containers for more than 280 locations worldwide. The machine learning and probabilistic prediction models are built by analysing a unique data set of more than 100 million events from past container journeys. These events represent different stages during the transport process of a container. Both models use a two-step forecast logic. First, the expected future location of a container is predicted. Second, the expected timestamp for arriving at that location is estimated. The machine learning model uses artificial neural networks and mixture density networks to forecast the movements of containers. The models are quantitatively assessed and compared to the actual availability of containers and two more conventional forecasting approaches. The results indicate that the probabilistic prediction approach can keep up with conventional approaches while the neural network approach significantly outperforms the other approaches concerning every evaluation metric. Keywords: Maritime logistics forecasts, Empty container relocation, Machine learning, Mixture density network Open Access © The Author(s) 2022. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http:// creat iveco mmons. org/ licen ses/ by/4. 0/. ORIGINAL ARTICLE Martiusetal. Journal of Shipping and Trade (2022) 7:19 https://doi.org/10.1186/s41072-022-00120-x Journal of Shipping and Trade *Correspondence: christoph.martius@cml. fraunhofer.de 1 Fraunhofer Center for Maritime Logistics and Services CML, Am Schwarzenberg-Campus 4, 21073 Hamburg, Germany 2 Present Address: Hapag- Lloyd AG, Ballindamm 25, 20095 Hamburg, Germany Page 2 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 the ideal case–the balanced trade–containers would be stripped and filled with new cargo at the same location shortly after. Where this is impossible, empty equipment must either be stored in a depot until its subsequent use or transported to a region with an empty container deficit. Such relocations of containers from import-domi- nant to export-dominant areas take place locally (e.g. from one terminal to another), regionally (e.g. from one location to another) or globally (e.g. from one country to another) (Theofanis and Boile 2009; Di Francesco etal. 2009). High costs are associated with container repositioning, primarily due to over-land and marine transport and storage and handling of containers (Karmelić etal. 2012; Moon etal. 2013). Empty containers make up a significant part of the container transports—up to 40% in over-land and 20% of marine transports (Konings and Thijs 2001; Karmelić etal. 2012: p.223). It is estimated that costs of empty container relocations amount to $15 billion to $20 billion annually, representing around 5% to 8% of the carriers’ total costs (Sanders etal. 2015). Hence, liner shipping companies go to great lengths to match the regional supply and demand for empty containers by optimising equipment repositioning to minimise costs. Additionally, the carrier reduces the risk of a competitor receiving an order and can realise the transports himself by satisfying the empty container demand at each port (Crainic 2003). Liner shipping companies have various options to reduce the costs related to empty container logistics. Most common, lower transport costs in import-dominant regions, sharing equipment between companies, or collaborating with competitors are used in practice. Another opportunity arises from recent advances in data-driven and machine learning approaches. Due to transport processes digitalisation in the maritime industry 4.0, an increasing amount of transport-related data is collected daily. This enables the application of data-driven decision support models in various use cases, e.g. stowage planning (Shen etal. 2017), fuel management (Fagerholt etal. 2015), and container inspection (Klöver etal. 2020). In other logistic domains, such models, especially using machine learning techniques, are already applied to support business decisions, such as guiding self-driving vehicles (van Meldert and Boeck 2016; Jeon etal. 2011) or optimise warehouse picking operations (Seward 2015). Where predictive models succeed in estimating supply and demand for empty containers, they possibly enable shipping companies to: • Realise container relocations in time if a surplus or deficit is foreseeable, • Adjust transport prices to meet expected market developments (dynamic pricing), • Plan transport processes by considering future container availability to minimise transport costs. Overall, an accurate estimation of empty containers’ future demand and supply contributes to container fleets’ efficient utilisation. Moreover, reducing regional and interregional equipment repositioning can also lower transport emissions (Crainic 2003; Schlingmeier 2017). Page 3 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 Related literature Several scientific papers still cover data-driven approaches to forecast container transport and port handling volumes. This also includes machine learning-based prediction models. For example, Shankar etal. (2020) use long-short-term-memory neural networks (LSTMs) to forecast container handling at the port of Singapore based on the historic quarterly throughput from 1995 to 2018 and compare the performance of their model to various time-series forecasting approaches. Tsai and Huang (2017) use an artificial neural network approach to predict container movements between ten Asian ports. They train a regression model using features extracted from more than one million port-to-port container transports recorded in Taiwanese customs clearance documents. Additionally, they use financial data, like the gross domestic product, interest rates and the industrial production index, as features. Another example is found in Xiao etal. (2012), who use a hybrid model which combines autoregressive integrated moving average (ARIMA) (cf. Box etal. 2015) with artificial neural networks to forecast univariate container throughput data from Tianjin Port. Chan etal. (2019) compare various data-driven models to forecast container throughput of the port of Ningbo-Zhoushan; their data basis is the yearly handling volumes between 2004 and 2015. Starting from a similar database of quarterly container throughput in North Adriatic ports, Dragan etal. (2014) test different data-driven approaches, including ARIMA, to forecast regional container throughput on a port level. Research design Even though several authors proposed and tested methods to forecast container throughput at ports, most are characterised by: • Relatively small data volume, which prevents training robust models, • High degree of temporal aggregation (e.g. yearly or quarterly throughput), • No differentiation of container types, and • Predictions that cover only small regions or even individual ports. This paper tries to overcome these shortages. Two novel data-driven models are introduced–a deep learning model and a probabilistic model–to estimate the future availability of empty containers of different types for more than 280 locations worldwide. The machine learning model consists of feed-forward neural networks (cf. Bishop 2006) and mixture density networks (Bishop 1994). The prediction models are built by analysing a unique data set of more than 100 million events from past container movements. The data set is part of the research project C-TIMING (ConTainer Availability Index Made In Germany),1 which is funded by the Federal Ministry of Education and Research of Germany. The data was collected by the project partner xChange Solutions (xChange),2 an online platform for leasing and trading containers. The transport information was gathered from liner shipping companies by using Application Programming Interfaces (APIs) and tracking-crawlers. The events in the 1 https:// www. cml. fraun hofer. de/ de/ forsc hungs proje kte1/C_ TIMING. html 2 https:// www. conta inerxchan ge. com/ conta inerleasi ng/ Page 4 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 data set represent different states of the transport process of a container, in particular, these are: ‘dispatch at container depot’, ‘loading on ship’, ‘discharge from ship’ and ‘return to container depot’. While related work mainly proposes forecasting the port throughput based on historical economic data of the ports (e.g. Dragan etal. 2014; Pang and Gebka 2017; Shankar etal. 2020), the models presented in this paper are built on journey data of individual containers. The subsequent events of each container are predicted for a large set of containers by forecasting the expected event location and realisation time. Based on the individual forecasts for a high number of containers, the supply and demand for various types of empty containers at worldwide locations are estimated. The proposed approach uses heterogeneous features for the prediction and enables the estimation of container availability for any port in the world. The remainder of the paper is structured as follows: First, the data set used to train and evaluate the prediction models is introduced in Sect.Data set. Subsequently, Sect.General prediction approaches briefly describes the general prediction approach and introduces the two prediction models. Next, the performance of the models is evaluated in Sect.Results. SectionDiscussion of results discusses the results and practical and academic implications are provided. Finally, Sect.Conclusions summarises this article. Data set Events inthedata set The machine learning and statistical prediction models are built by analysing a unique data set of more than 102 million events from past container journeys. These events represent different states during the transport process of a container, in particular the events ‘dispatch at container depot’ (event name: dispatch), ‘loading on ship’ (loading), ‘discharge from ship’ (discharge) and ‘return to container depot’ (return). Between these four events, different actions might take place. Usually, the container is taken out of a depot, transported to the customer, filled by the customer, and returned to the port between a dispatch at the container depot and the subsequent loading on the ship. After loading, the container is transported from the origin to the destination before it is discharged from the ship. Subsequently, the container is transported to the customer, emptied and returned to the depot’s location. The container is stored in the depot between a return and a subsequent dispatch from the container depot. Eventually, an empty transport to another location can occur between these two events. However, every action between the four main event types is not captured in the data set. Figure1 depicts the events of a container journey. Each event in the data set can be identified by a unique ID and belongs to a specific container. The type of the event (dispatch, loading, discharge, return) is provided and the location and time stamp. The events of the data set represent the movements of laden containers solely. The transport of empty containers is not included in the data set. Therefore, a container ID can identify the containers in the data. Additionally, the type (e.g. forty-foot high cube) and the owner (carrier) of the container is provided. Figure2 visualises the information related to an event with an entity-relationship model (cf. Chen 1976). Page 5 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 Descriptive analysis ofthedata Insights of a descriptive analysis of the data set are provided in the following section. The average time between two subsequent events of a container in the data set is 19.7days. However, the duration between subsequent events differs for each event type. For example, while the average time between a loading and a subsequent discharge (transport time) corresponds to 23.5days (lower quartile: 9days, upper quartile: 34days), the time between a return and a dispatch (dwell time) averages to 35.2days (lower quartile: 5days, upper quartile: 55days). Figure3 depicts the duration distribution between subsequent events with box and whiskers plots (cf. Tukey 1977). The data’s transport events occurred at more than 100,000 locations worldwide. These locations include most of the ports and container terminals in the world. However, several locations’ data quantity was insufficient to train prediction models robustly. Transport events’ geographic information was preprocessed to mitigate this issue; the locations were mapped either to a port or a country. Therefore, based on their domain Fig. 1 Events during the transport process of containers. Source: Own figure Fig. 2 Entity-relationship model of events. Source: Own figure Page 6 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 knowledge, 83 ports were selected by xChange’s domain experts representing the world’s most important ports like Shanghai, Ningbo, and Rotterdam. The remaining locations were mapped to their corresponding country. A total of 204 countries are included in the data set. The containers part of the data set belong to one of 60 liner shipping companies, including container movements of each of the 14 largest liner shipping companies.3 However, the share of the events of a carrier does not correspond to its market share: For example, even though COSCO’s market share corresponds to 12.2% as of July 2021,4 24.4% of the events relate to a COSCO container while just 12.9% of the events are of containers of the largest market player Maersk. Figure4 visualises the share of the events of the liner shipping companies in the data. Containers of 23 different types are included in the data. These container types include the most common variations of containers (e.g. dry container, reefer, flat rack, open top) with a length of either twenty-, forty- or forty-five-foot. According to Che etal. (2011: p.506), twenty-foot, forty-foot dry and forty-foot high cube containers are among the most commonly used container types. These three container types account for 92.5% of the events in the data. Figure5 visualises the share of the events of the different container types. The events in the data set are collected over more than 30months: The first events date back to 1st January 2019 and the last to the 22nd July of 2021. 102,214,134 events of 12,893,347 containers are included in the data. Even though it covers a long period and contains a large number of total events, several challenges are associated with the Fig. 3 Duration between subsequent events. Source: Own figure 3 According to https:// de. stati sta. com/ stati stik/ daten/ studie/ 28853/ umfra ge/ kapaz itaet ender- conta iners chiff sflot teder- groes stenreede reien/ (accessed on 09.09.2021). 4 According to https:// www. stati sta. com/ stati stics/ 198206/ share- of- leadi ngconta inership- opera torson- theworld- linerfleet/ (accessed on 12.08.2021). Page 7 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 available data set. The most important challenge is that the weekly events increase considerably over the available period. While 219,653 events are tracked over the first two months of the covered period, 19,108,155 events are tracked in May and June 2021, cf. Fig. 4 Share of liner shipping companies by number of movements. Source: Own figure Fig. 5 Share of container types. Source: Own figure Page 8 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 Fig.6. Hence, most of the containers in the data are not tracked over the whole period but only for some sporadic events over some weeks or months. Furthermore, there are both missing events (or completely missing journeys) and inconsistencies in the data on a limited but not negligible level, even though the quality and completeness of the data increase continuously over the period covered by the data set. All these aspects represent challenges to extracting information on the future demand and supply of empty containers and thus influence the quality of the models trained with the data. General prediction approaches To support the determination of the regional empty container availability, the forecasting approaches aim to estimate the number of containers returned to the container depot and dispatched at the container depot at any location in the data set. The approach to estimating the number of returns and dispatches at the container depots presented in this paper is to forecast individual containers’ movements (events). For each movement of a container, the location and date of the subsequent events has to be estimated. Then, based on the forecasts of the individual containers, the total number of returns and dispatches at the regional container depots can be derived, e.g. by a database query. The novelty of this prediction approach is that the future container throughput is forecasted by considering the current state of the global container fleet. Thereby, the model should anticipate the effects of the current situation. For example, suppose that a significant container shortage in an export-dominant region is observed at a certain point in time. In that case, the model can anticipate that this shortage causes the import to decline at the port, which mainly receives the freight from this region. The prediction approach of a single container movement consists of five steps: First, features representing descriptive characteristics are derived from the last event, e.g. Fig. 6 Weekly number of events in the data set. Source: Own figure Page 15 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 predicts the same number of events for each evaluation feature as in the last week before the forecasting origin. Benchmark SES instead applies a simple exponential smoothing on the amounts for each feature combination over the 12weeks before the forecasting origin (cf. Hyndman and Athanasopoulos 2018, Chapter7.1). The number of events in the data set increases weekly, and the share of four event types is not evenly distributed due to missing data, as described in Sect.Data set. This leads to a bias regarding the number of events happening at the ports each week. Therefore, each time span’s evaluation data must be cleaned to mitigate this issue. The basic idea of the cleaning process is that containers are only included in the evaluation data, which are (probably) constantly tracked over a time span and thereby show realistic movements. Four criteria are defined that must be satisfied by a container to be included in the evaluation data set: 1. The container is tracked at least 150days before the forecasting origin. 2. The events of the container happen in the expected order (dispatch → loading → discharge → return → dispatch). 3. The time between two consecutive container events is never larger than 150days. 4. The container has at least one event during the 150days after the last day of the evaluation time span. Criterion 1 mitiages issues related to the data collection process: The amount of containers tracked increases weekly, and the tracking of a container typically begins if a container is dispatched from depot. This leads to the issue that the first events of the transport process are over-represented in the data set. By only considering containers already tracked for 150days,7 this challenge can be significantly mitigated. Criteria 2–4 aim to ensure that the container is constantly tracked. Therefore, the events have to occur in the expected order (criterion 2). Furthermore, there should be no missing container transports (criterion 3) without excluding empty container transports–which are not included in the data set. The cut-off for this criterion was set to 150days by domain experts because it is more likely that the container is no longer tracked than that it does not have a single transport event within this period. Criterion 4 ensures that the container is still tracked after the evaluation period. If criterion 4 is not applied, it was observed that there is an over-representation of return events in the evaluation data since most of the missing data issues originate from absent dispatch events after the return to the depot of a container. Results This section presents the forecast results of our two prediction models over the 18 forecasting origins compared to the predictions of the benchmarking approaches, and some insights are highlighted. Table3 shows the MAE and MSE averaged over the 18 forecasting origins for the two prediction approaches and the two benchmarks for locations where at least 50 containers are returned or dispatched from the depot. 7 150days approximately corresponds to twice the time of an average transport process – from one dispatch to the subsequent dispatch of a container. Page 16 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 The forecasts of the neural network approach significantly outperform the other three approaches with a MAE of 0.0753 for the twenty-foot container (MSE: 0.0093 ) and 0.0711 for the forty-foot container (MSE: 0.0086 ). While the prediction performance of the neural network is promising, the accuracy of the probabilistic approach is similar to the accuracy of the two benchmark models. Even though the observation that the probabilistic model performs similarly to the two benchmarks is still promising: it indicates that the applied prediction approach, which derives the container availability based on forecasts of individual containers, can compete with predictions at port level. As shown in Table3, the prediction quality of each model is better for forty-foot containers than twenty-foot containers. Larger training and evaluation data availability for forty-foot containers might explain this observation, cf. Fig.5. Generally, it was noticed during evaluation that the performance of the neural network approach seems to be positively influenced by the higher availability of training and evaluation data. Figures9 and 10 show the twelve-week container availability forecasts of the four approaches starting from the forecasting origin 1st March 2021 for the ports of Qingdao and Tokyo. Over the depicted time period, the container availability index at Table 3 MAE and MSE over the evaluation period. Source: Authors Mean absolute error Mean squared error Approach Twenty-foot Forty-foot Twenty-foot Forty-foot Neural Network 0.0753 0.0711 0.0093 0.0086 Probabilistic Model 0.1048 0.0870 0.0170 0.0122 Benchmark Naive 0.1086 0.0925 0.0194 0.0147 Benchmark SES 0.1018 0.0864 0.0176 0.0131 Fig. 9 Predicted container availability for the port of Qingdao (forecasting origin: 01.03.2021). Source: Own figure Page 17 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 the port of Qingdao increased from 0.21 to 0.35 . The neural network approach and Benchmark SES accurately anticipate the increase while the other two models fail to forecast the observed pattern accurately. The observation is also captured by the MAE (cf. Table4): The neural network approach and Benchmark SES have a MAE of 0.0160 respectively 0.0202 followed by Benchmark Naïve (0.0426) and the probabilistic model (0.0460). The container availability index development at the Tokyo port is more volatile and does not follow a strict pattern. All four approaches do not accurately forecast container availability in Tokyo. The predictions made by the neural network approach are the most accurate according to the MAE (0.0499), followed by the naïve benchmark (0.0680). The average weekly amount of containers in the evaluation data set handled at the port of Tokyo corresponds to 115 containers. In comparison, on average, 795 containers of the evaluation data set are dispatched or returned each week at the port of Qingdao. Hence, the volatility of the container availability index at the port of Tokyo might originate from the relatively small number of events at this port. Fig. 10 Predicted container availability for the port of Tokyo (forecasting origin: 01.03.2021). Source: Own figure Table 4 MAE of the prediction models for the port of Qingdao and Tokyo. Source: Authors Mean absolute error Approach Qingdao Tokyo Neural Network 0.0160 0.0499 Probabilistic Model 0.0460 0.0712 Benchmark Naive 0.0426 0.0680 Benchmark SES 0.0202 0.0752 Total container 12,729 1,843 Page 18 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 To test the hypotheses that the forecast quality increases with a higher number of container events at the locations, the MAE was computed for different subsetsk of the evaluation data set. In each subsetsk locations with less than k weekly events were excluded from the evaluation data set. For example, subsets50 only includes the ports and countries where at least 50 container events occur weekly. Figure11 depicts the MAE of subsets of the evaluation data set with different thresholds k , in such a way that it holds that 0≤k≤1200 . It can be seen in Fig.11 that the predictive performance of the neural network approach, Benchmark Naïve and Benchmark SES–expressed by the MAE–nearly constantly increases with a higher number of container events at the locations of the evaluation data set. Only the probabilistic model does not follow this pattern. Instead, the prediction quality of the probabilistic model slightly decreases if k is greater than 400 . Additionally, it can be observed that the MAE of all four approaches is relatively high if all locations are included in the evaluation set, indicating that the models do not accurately predict the container availability for locations with only a few weekly container events. This can mainly be attributed to the volatility of the container availability index at these locations. However, it can be seen that the predictive performance significantly increases if low-volume locations are excluded from the evaluation data set. At locations with more than 200 weekly container events, the neural network approach achieves an MAE of approximately 0.05 . The metric even improves to 0.03 if only locations with more than 800 weekly events are included. Furthermore, it can be seen that the model using neural networks outperforms the other three approaches for each threshold k . This observation also indicates that forecasts made on the individual container level can outperform predictions on the port level. The advantage of the neural network approach compared to predictions on the port level especially is that the presented approach can forecast the movements of the Fig. 11 MAE for different subsets of the evaluation data set. Source: Own figure Page 19 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 containers given the current state of the global container fleet. For example, if only a relatively small number of containers were loaded on vessels in Chinese ports over the last weeks, the presented prediction approach can anticipate that this situation will decrease discharged containers at ports that mainly import goods from China. Furthermore, the prediction approach can estimate the implications of this situation over the following weeks at every considered port and country. In addition to the MAE of the forecasted container availability index over the 18 forecast origins, the mean absolute percentage error (MAPE) was used to quantify the ability of four models to forecast the absolute number of containers dispatched and returned at the locations around the world. The MAPE indicates the relative difference between one event type’s absolute and predicted number of events (dispatch, loading, discharge, return). For example, if 10 containers are dispatched from a container depot in one week at a specific location and 20 containers at another, and the model forecasts 12 dispatches for the first location and 15 for the second location, the absolute percentage error of the first location corresponds to |12−10| 10 = 0.2, and the absolute percentage error of the second location equals |15−20| 20 = 0.25 . Hence, the MAPE of the dispatches in this example is 0.2+0.25 2 = 0.225 . Figure12 shows the MAPE of the four models for each of the four event types over the 18 forecasting origins for locations with more than 50 weekly events. It can be seen in Fig.12 that the neural network approach outperforms the other three prediction approaches regarding the prediction of the absolute number of container events at the locations in the evaluation set with a MAPE between 0.2909 and 0.3460 , followed by Benchmark Naïve with a MAPE between 0.3797 and 0.5246 . However, the probabilistic model is last for three of the four event types with a MAPE between 0.4929 and 0.5606 . Even though the neural network performs better than the other three models, the MAPE of all models is still relatively high: a MAPE of approximately 0.3 for the neural network approach indicates that the model either over or underestimates the absolute number of container events at the locations by Fig. 12 MAPE of the prediction models over the 18 forecasting origins. Source: Own figure Page 20 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 30% . Similarly, the observation was made for the container availability index that the forecasts improve for locations with more data. Discussion ofresults Related literature in the area of container availability forecasts has focused on predicting the future development of container throughput in specific locations to derive information about the availability of empty containers. This article presented a novel prediction approach that derives information about container availability from estimations of future movements of many individual containers. The advantage of the proposed approach is that the current state of the global container fleet is considered during prediction. This enables the model to anticipate short- and mid-term effects on the container availability’s future development, like the implications of container shortages or temporal closures of specific ports. It was shown in Sect.Results that the novel prediction approach can provide more accurate forecasts than predictions made at the portlevel. However, there are two challenges related to the proposed prediction approach. First, a huge amount of data is required to train the model robustly. Second, the processing time tends to be significantly longer since the utilised data is of higher granularity than the input of conventional prediction models. Most related studies are characterized by one or more of the following aspects: • relatively small data volume, which prevents training robust models, • high degree of temporal aggregation (e.g. yearly or quarterly throughput), • no differentiation of container types, and • predictions that cover only small regions or even individual ports. A machine learning model able to forecast the supply and demand of empty containers for different types of containers on a weekly basis was trained enabled by the data corpus consisting of more than 100 million transport events. The utilised data set made it possible to derive container availability for more than 280 locations worldwide. In addition, the concept of the model permits to predict the container movements for an even higher number of individual ports and regions. However, not enough data was available in the data set, especially for a port with a lower container throughput. Even though it was shown that the proposed approach implemented with feed-for- ward neural networks and mixture density networks is able to outperform port-based models, the accuracy of the forecasts can be improved even further. It was shown that the quality of the predictions increases with the amount of data available for a location, cf. Fig.11. It is expected that this trend continues if a larger share of the ports’ container throughput can be used for training and validation. Especially if the absolute number of containers is utilised for evaluation instead of a container availability index, it is desired to improve the quality of the forecasts. We expect that the discrepancy between the absolute container throughputs’ forecasts and the actual amount is mainly explained by two factors. First, both the training and validation data are influenced by several irregularities, including the covid-19 pandemic, temporal closures of ports, consumption changes, and the general reduction of the global container fleet’s size. Second, a not negligible number of containers is not continuously Page 21 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 tracked during the data collection process; thus, several movements of containers are not included in the database – especially over the first months covered. Since machine learning models learn patterns of historical events and forecast them for the future, the models struggle with changes in the data quality as well as shifts in global trade relations. Hence, we argue that the models’ forecasts would be even more accurate if the utilised data is more consistent and contains fewer outliers. This statement will be verified in future research. Practical implications A model able to forecast container availability could be used as decision support for various stakeholders in the maritime industry. In addition, such a model could be included as an additional software service in existing applications. Some potential valuable application scenarios are listed in the following: • Liner shipping and leasing companies could utilise the information provided by the service as decision support for the timely planning and realization of container relocations to or from locations if a deficit or a surplus is foreseeable. • Leasing and transport companies could apply dynamic pricing to adjust transport prices based on expected market developments to maximise their profits. • Liner shipping companies could plan transport processes by considering the predicted future container availability to minimise transport costs. • Terminal operators could utilise container availability forecasts to optimise the planning of their capacities and resources. In addition to the visualisation of the container availability forecasts of ports with individual charts, cf. Figs.9 and 10, a visualisation of the actual or predicted global container availability could be valuable for decision-makers, cf. Fig.13. Such a depiction enables users to quickly obtain an overview of surplus and deficit regions, analyze future developments, and make empty container disposition decisions. Academic implications It was shown in this article that forecasts on the container level could yield better prediction quality compared to port-based predictions. The proposed prediction process offers Fig. 13 Forecasts of the container availability index on 7th June 2021 made on 9th May 2021 for forty-foot containers. Source: Own figure Page 22 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 advantages over conventional methods, especially for short- and mid-term forecasts. Both approaches – on container-level and port-based forecasts – are expected to result in similar performance if long-term developments (more than one year) are investigated due to the probabilistic nature of both approaches. Even though the proposed approach’s overall prediction quality is superior to conventional methods, it comes at the cost of higher computational requirements. Future research could focus on further improving the prediction quality of the duration and location prediction models. For example, the use of additional characteristic features, e.g. financial indicators or time-related information, is expected to improve the prediction quality of the forecasting approaches. Additionally, a more extensive hyperparameter optimisation, primarily focusing on the distribution used by the mixture density network, might emend the accuracy of the models. Furthermore, it would be interesting to include more individual ports in the training and evaluation process. However, the number of ports that can be used for training and evaluation depends on the availability of sufficient data. Another avenue for future research is the development of additional measures and evaluation metrics to quantify the supply and demand of empty containers. Such measures could be used as target variables during the evaluation of both conventional prediction approaches and the proposed method and would provide valuable insights into regional container availability. Conclusions Liner shipping companies frequently transport empty containers from import-domi- nant regions to export-dominant regions to match the local demand for empty containers. These empty container relocations cause significant financial and capacity-related expenses for the carriers. A novel data-driven prediction approach to support the decision-making process related to empty container logistics was presented in this paper. While previous related work estimated the future container throughput on a port level, the container availability is derived from forecasts of movements of individual containers in the presented approach. Thereby, the models can incorporate knowledge of the current situation of the global container fleet when forecasting the container throughput at the port around the world. Two prediction models implementing the novel prediction approach were introduced and compared to two conventional methods which estimate the container throughput based on historical data on a port level. The neural network model outperforms the other three approaches, which underlines the applicability of the introduced prediction approach. The prediction quality of the probabilistic model instead is similar to the conventional approaches. The presented approach using neural networks can approximate the container availability for the selected locations with an average MAE of around 0.05. It was shown that predictions tend to be more accurate if more training and evaluation data are available. While the neural network approach can relatively accurately predict a container availability index, all models fail to estimate empty containers’ absolute weekly supply and demand. The forecasts of the best-performing model differ from the actual values by 30% on average. However, the prediction quality is expected to increase with more Page 23 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 high-quality data and fewer exceptional circumstances (i.e. COVID pandemic) represented in the training and evaluation data set. Abbreviations API Application programming interface ARIMA Autoregressive integrated moving average CAX Container availability index C-TIMING ConTainer availability index made in Germany ELU Exponential linear unit LSTM Long-short-term-memory neural network MAE Mean absolute error MAPE Mean absolute percentage error MSE Mean squared error ReLu Rectified linear unit xChange XChange solutions GmbH Acknowledgements The authors acknowledge the support of xChange Solutions GmbH within the framework of the BMBF-funded researchproject C-TIMING. Especially the provided data and the domain-knowledge were valuable sources for the research. Author contributions CM was primarily responsible for the analysis and interpretation of the data, the conceptualization and implementation of the prediction approach and the writing of the manuscript. LK made substantial contributions to the conception, the design of the work, and interpretation of the project data. LK and OJ were responsible for acquisition. LK, MZ and CJ substantively revised the presented manuscript. All authors read and approved the final manuscript. Funding Open Access funding enabled and organized by Projekt DEAL. The authors acknowledge the financial support by the Federal Ministry of Education and Research of Germany (BMBF) in the framework of the project C-TIMING (ConTainer Availability Index Made In Germany) (project number: 01IS20004). Availability of data and materials The data that support the findings of this study are available from xChange Solutions GmbH [xChange Solutions GmbH, Holstenwall 5, 20,355 Hamburg, Germany] but restrictions apply to the availability of these data, which were used under license for the current study, and so are not publicly available. Data are however available from the authors upon reasonable request and with permission of xChange Solutions GmbH. Declarations Competing Interests The authors declare that they have no competing interests. Received: 28 April 2022 Accepted: 20 July 2022 References Baxter RA (2010) Mixture model. In: Sammut C, Webb GI (eds) Encyclopedia of machine learning. Springer, US, Boston, pp 680–682 Bishop CM (1994) Mixture density networks Bishop CM (2006) Pattern recognition and machine learnin, Springer Borchers O (2019) A Hitchhiker’s guide to mixture density networks. edited by towards data science. Medium. Available online at https:// towar dsdat ascie nce. com/ahitch hikersguide- tomixtu redensi tynetwo rks- 76b43 5826c ca, updated on 2/15/2019, checked on 7/5/2021. Box GEP, Jenkins GM, Reinsel GC, Ljung GM (2015) Time series analysis: forecasting and control, John Wiley & Sons Chan HK, Xu S, Qi X (2019) A comparison of time series methods for forecasting container throughput. Int J Logist Res Appl 22(3):294–303. https:// doi. org/ 10. 1080/ 13675 567. 2018. 152534 Che CH, Huang W, Lim A, Zhu W (2011) The multiple container loading cost minimization problem. Eur J Oper Res 214(3):501–511. https:// doi. org/ 10. 1016/j. ejor. 2011. 04. 017 Chen P-S (1976) The entity-relationship model—toward a unified view of data. ACM Trans Database Syst (TODS) 1(1):9–36 Clevert D-A, Unterthiner T, Hochreiter S (2015) Fast and accurate deep network learning by exponential linear units (elus). In arXiv preprint arXiv: 1511. 07289. Crainic TG (2003) Long-haul freight transportation. In : Handbook of transportation science, Springer, pp 451–516 Di Francesco M, Crainic TG, Zuddas P (2009) The effect of multi-scenario policies on empty container repositioning. Transp Res Part E Logist Transp Rev 45(5):758–770. https:// doi. org/ 10. 1016/j. tre. 2009. 03. 001 Dragan D, Kramberger T, Intihar M (2014) A comparison of methods for forecasting the container throughput in north Adriatic ports. In : Conference IAME. Page 24 of 24 Martiusetal. Journal of Shipping and Trade (2022) 7:19 Fagerholt K, Gausel NT, Rakke JG, Psaraftis HN (2015) Maritime routing and speed optimization with emission control areas. Transp Res Part C Emerg Technol 52:57–73. https:// doi. org/ 10. 1016/j. trc. 2014. 12. 010 Hyndman RJ, Athanasopoulos G (2018) Forecasting: principles and practice: OTexts. Jeon SM, Kim KH, Kopfer H (2011) Routing automated guided vehicles in container terminals through the Q-learning technique. Logist Res 3(1):19–27. https:// doi. org/ 10. 1007/ s12159- 010- 0042-5 Karmelić J, Dundović Č, Kolanović I (2012) Empty container logistics. PROMET Traffic Transp 24(3):223–230 Klöver S, Kretschmann L, Jahn C (2020) A first step towards automated image-based container inspections Konings R, Thijs R (2001) Foldable containers: a new perspective on reducing container-repositioning costs. Eur J Transp Infrastruct Res. 1 (4) van Meldert B, Boeck L (2016) Introducing autonomous vehicles in logistics: a review from a broad perspective. In: FEB Research Report KBI\_1618. Montgomery DC (2020) Design and analysis of experiments, 10th edn. Wiley, Hoboken, NJ Moon I, Do Ngoc A-D, Konings R (2013) Foldable and standard containers in empty container repositioning. Transp Res Part E Logist Transp Rev 49(1):107–124. https:// doi. org/ 10. 1016/j. tre. 2012. 07. 005 Nair V, Hinton GE (2010) Rectified linear units improve restricted boltzmann machines. In : Icml. Nwankpa C, Ijomah W, Gachagan A, Marshall S (2018) Activation functions: comparison of trends in practice and research for deep learning. In arXiv preprint arXiv: 1811. 03378. Pang Gu, Gebka B (2017) Forecasting container throughput using aggregate or terminal-specific data? The case of Tanjung Priok Port, Indonesia. Int J Prod Res 55(9):2454–2469. https:// doi. org/ 10. 1080/ 00207 543. 2016. 12271 02 Sanders U, Kloppsteck L, Roeloffs C, Schlingmeier J, Riedl J (2015) Think outside your boxes: solving the global containerrepositioning puzzle. Edited by Boston Consulting Group. Available online at https:// www. bcg. com/ dede/ publi catio ns/ 2015/ trans porta tiontravel- logis ticsthink- outsi deyour- boxessolvi ngglobal- conta inerrepos ition ingpuz- zle, updated on 11/17/2015, checked on 8/7/2021. Schlingmeier J (2017) Kooperationen in der maritimen Leercontainerlogistik. eine empirische Untersuchung mit Fokus auf Equipment Interchange und Container Pools. In : Innovationen für die maritime Logistik, vol 3, Hamburg, Fraunhofer Verlag (3). Seward C (2015) Optimizing warehouse operations with machine learning on GPUs. Edited by NVIDIA Developer Blog. NVIDIA. Available online at https:// devel oper. nvidia. com/ blog/ optim izingwareh ouseopera tionsmachi nelearn inggpus/, updated on 12/13/2015, checked on 9/9/2021. Shankar S, Ilavarasan PV, Punia S, Singh SP (2020) Forecasting container throughput with long short-term memory networks. IIMDS 120(3):425–441. https:// doi. org/ 10. 1108/ IMDS- 07- 2019- 0370 Shen Y, Zhao N, Xia M, Du X (2017) A deep Q-learning network for ship stowage planning problem. Pol Marit Res 24(s3):102–109. https:// doi. org/ 10. 1515/ pomr- 2017- 0111 Theofanis S, Boile M (2009) Empty marine container logistics: facts, issues and management strategies. GeoJournal 74(1):51 Tsai F-M, Huang LJW (2017) Using artificial neural networks to predict container flows between the major ports of Asia. Int J Prod Res 55(17):5001–5010. https:// doi. org/ 10. 1080/ 00207 543. 2015. 11120 46 Tukey JW (1977) Exploratory data analysis: Reading, Mass (2). Xiao Yi, Xiao J, Wang S (2012) A hybrid model for time series forecasting. HSM 31(2):133–143. https:// doi. org/ 10. 3233/ HSM- 2012- 0763 Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.