基于机器学习的供应链管理行程时间预测

arXiv cs.LG 论文

摘要

本文基于一篇博士论文,探讨利用机器学习和深度学习方法(包括1D-CNN)预测复杂多式联运供应链中货运行程时间,旨在改进物流规划、提高ETA准确性并优化交货周期管理。

arXiv:2609.38190v1 Announce Type: new Abstract: The purpose of this research is to find data and methods using machine learning and deep learning to correctly predict the estimated travel time for transportation and logistics in a supply chain system. The supply chain ecosystem is very complex and heavily relies on the transportation and logistics of raw materials and finished goods. Accurate travel time estimation is critical because it helps supply chain members to improve logistics consistency and performance. This helps in planning, demand forecasting, lead time management and assembly planning. The logistics on the delivery side of the customer also plays a crucial role in customer satisfaction and voice of customer. With the collection of huge historical data and using novel techniques, the research builds an accurate model to predict travel time of inventory.
查看原文
查看缓存全文

缓存时间: 2026/10/02 09:48

# Travel Time Prediction in Supply Chain ManagementUsing Machine Learning
Source: [https://arxiv.org/html/2609.38190](https://arxiv.org/html/2609.38190)
## Travel Time Prediction in Supply Chain Management Using Machine LearningThanks:This paper is based on the author’s doctoral dissertation completed at the Swiss School of Business and Management, Geneva \(2024\)\.

March 2024

###### Abstract

The purpose of this research is to find data and methods using machine learning and deep learning to correctly predict the estimated travel time for transportation and logistics in a supply chain system\. The supply chain ecosystem is very complex and heavily relies on the transportation and logistics of raw materials and finished goods\. Accurate travel time estimation is critical because it helps supply chain members to improve logistics consistency and performance\. This helps in planning, demand forecasting, lead time management and assembly planning\. The logistics on the delivery side of the customer also plays a crucial role in customer satisfaction and voice of customer\. With the collection of huge historical data and using novel techniques, the research builds an accurate model to predict travel time of inventory\.

Keywords:travel time prediction, estimated time of arrival, supply chain management, machine learning, deep learning, 1D\-CNN

## 1Introduction

Given that it enables supply chain operators to improve the quality of their operations, an accurate trip time prediction is extremely valuable for freight transports\. In order to maximise projections of material supplies, a material planner at the receiving facility can identify impending delays in deliveries\. Additionally, a factory can boost efficiency by adjusting its capacity over time, such as employees or equipment\. The same advantages apply to logistic service suppliers\. It is possible to plan employees, ramps, forklifts, and other resources appropriately in warehouses, ports, and other hubs \(Abdollahi et al\., 2020\)\.

As a consequence, manufacturers and logistic service providers can improve their productivity, streamline their workflows, and boost planning precision\. Generally speaking, a supply chain is made up of all cooperative operations by all participating businesses to transform raw materials into the finished product\. This covers tasks like locating raw supplies, producing goods, putting them all together, and distributing them to final consumers\. Managing, moving, and storing resources logistically is necessary to do this\. Unlike supply chain management, which focuses on the planning and administration of supply chains, logistics addresses the operational level \(Shahbazi & Byun, 2020\)\.

Information sharing throughout the various supply chain stages is another responsibility included in logistics\. Usually, a variety of businesses or organizations are in charge of transportation\. These circumstances greatly increase the supply chain’s complexity, particularly in multimodal transports with numerous transshipment sites\. The precise estimation of trip time in multimodal transports is the subject of this work\. For the effective administration of transportation operations and logistics in supply chains, accurate trip time estimations are crucial\. Continuous monitoring of freight shipments is necessary for estimating journey times, for example, utilizing mobile sensors attached to the goods being transported \(Fu et al\., 2020\)\.

However, one of the most difficult logistics responsibilities is achieving the necessary transparency\. It can be challenging to anticipate travel times because so many variables, like the weather, traffic, vehicles, routes, and transit relationships, can affect it\. The majority of the material that is now available focuses more on passenger transportation than freight transport, such as bus arrival times or highway trip times \(Sharma et al\., 2020\)\.

This limits the number of rides that can be included to those that last up to two hours; freight transports are not included\. Complex and non\-linear interactions between predictors can be dealt with more effectively by ML, which is also capable of processing complex and noisy data\. This assertion is supported by the literature, which also shows that ML techniques typically outperform average\-based approaches in terms of performance\. Although this is the case, ML has only been utilized in a small number of recent articles that deal with journey time prediction in freight shipments \(Kantasa\-ard et al\., 2021\)\.

In transportation systems, travel time is a benchmark measurement\. Consequently, the advancement of advanced traffic management systems \(ATMS\), intelligent transportation systems \(ITS\), and other transportation systems depends greatly on its precise prediction\. From a traveler’s point of view, knowing how long it will take to get somewhere and how much traffic there is might assist them choose faster routes, calculate how long it will take to get there, and choose better roads \(Liu et al\., 2020\)\.

A precise technique for predicting travel times would also help transportation organizations manage traffic and ease congestion more effectively\. Traffic data can be used to assess and forecast trip times and can be gathered from a variety of sources, including video cameras, automatic number plate recognition \(ANPR\), cellular geolocation, global positioning systems \(GPS\), automatic vehicle identification systems \(AVI\), and more\. According to the particular objective and task, these sources may be employed in ITS \(Kamble et al\., 2021\)\.

Since each GPS may record some relevant information, including latitude, longitude, a time stamp, speed, and other metadata, it is generally agreed upon that GPS data is the best source for predicting journey times\. Design and operation, transportation management and planning, measurements, and assessment can all benefit from an objective, low variance estimation of journey time\. In ATIS, trip duration information is particularly valued as essential pre\-trip or even en\-route information\. They greatly enlighten both drivers and passengers, as was already noted, allowing them to plan their journeys more effectively or make wiser decisions \(Tang et al\., 2020\)\.

In general, there are three advantages to travel time estimation\. From the standpoint of the traveler, route selection before and during the trip is made easier and more reliable with the aid of trip duration information\. This information may be used in logistics applications to boost delivery dependability, decrease delivery costs, or even enhance service quality\. Keep in mind that this data is a critical performance indicator for the operation of the traffic system for traffic planners and managers \(Abdollahi et al\., 2020\)\.

Using a combination of machine learning and data mining approaches, predictive analytics is a subfield of data engineering that makes predictions about the future based on study of historical data or events\. An understanding of the business domain, data, and analytical methods is necessary for predictive analytics applications\. Predictive analysis has applications in a wide range of industries, including finance, telecommunications, insurance, customer service, and many more \(Chen et al\., 2020\)\. The telecommunications and healthcare industries have made extensive use of descriptive analytical tools, such as process and data mining techniques, to enhance operations and offer better customer service\.

Logistics and transportation are one area of the supply chain industry that can use this data to raise the production and caliber of their operations\. Industries all over the world rely largely on the logistics and transport sector to maintain the continuity of their supply chain\. The industry for air freight transportation has grown as a result of industries shifting over time in favor of this mode of transportation\. This is a fantastic chance to use air transport data to get insightful knowledge and assist businesses that both directly and indirectly touch this industry in improving their business operations \(Abbasi et al\., 2020\)\.

The logistics and transportation sector must transition to sophisticated data analytics methodologies, such as proactive and predictive analytics, to make choices quickly and effectively by utilizing the full potential of data analytics, in order to enhance corporate performance and ensure competitiveness\. Infrastructure, networks, IT, and many stakeholders are just a few of the functions that are combined in the logistics and transportation sector\. This makes the entire process incredibly difficult and raises problems with effectively exporting commodities around the world\. Utilizing technology, logistic organizations can adapt to changing needs and meet rising demand \(Chen et al\., 2021\)\.

Organizations in the transportation sector are attempting to optimize their operations by using cutting\-edge data analytics tools to examine resources, boost operational effectiveness, and forecast demand\. These businesses will be able to make better judgments with the aid of predictive analytics\. The transportation and logistics sectors have experienced considerable growth in recent years, which has made it difficult for businesses to find safe and reliable transportation options\. When managing their shipments, logistics companies, like air cargo companies, run into a number of problems \(Wu et al\., 2020\)\.

Delays in supply chain shipments being delivered is one issue these businesses encounter\. Due to the high expense of air transportation, any delay in a shipment causes an interruption in their supply chains and resulting in a large financial loss\. Early anticipation of any shipping process delays is difficult due to the convoluted structure and high level of uncertainties\. Time\-sensitive and more valuable items that need to travel over longer distances are catered to by the air cargo sector \(He et al\., 2020\)\.

Given that it enables supply chain players to improve the quality of their operations, an accurate trip time forecast is extremely valuable for freight transportation\. In order to maximize projections of material supplies, a material organizer at the receiving facility can identify impending delays in delivery\. A factory can also boost its efficiency by adjusting its capacity over time, such as its employees or equipment \(Akbari & Do, 2021\)\.

Similar advantages accrue to providers of logistical services\. The availability of personnel, ramps, forklifts, and other resources may be arranged appropriately at warehouse, port, or other hubs\. As a result, manufacturer including logistic service providers may improve their productivity, streamline their operations, and boost planning precision\. In general, a supply chain comprises all cooperative activities carried out by all participating businesses to turn raw materials towards the finished product\. This involves tasks like obtaining raw materials, producing goods, putting them together, and distributing them to customers \(Kong et al\., 2021\)\.

Logistics for such handling, delivery, and storage of goods are necessary to accomplish this\. Unlike supply chain management, which focus on the planning and administration of supply networks, logistics deals well with operational level\. Providing information between such various supply chain stages is a duty that falls under logistics\. The transport is often handled by a variety of businesses or organizations\. These circumstances greatly increase the complexity of the supply chain, specifically in multimodal transport with several transshipment sites\. This research focuses on providing reliable trip time estimates in multimodal transportation \(Helo & Hao, 2021\)\.

For the effective administration of transportation logistics and operations in supply chains, accurate trip time estimations are crucial\. For the purpose of estimating trip time, it is necessary to continuously monitor freight shipments, maybe by utilizing mobile sensors connected to the cargo\. At the same moment, among the most difficult logistical responsibilities is ensuring the necessary openness\. It is challenging to anticipate travel times since so many variables, including weather, traffic, vehicles, routes, and transportation relationships, may affect them \(Kantasa\-ard et al\., 2021\)\.

For transportation, accurate travel time estimation is critical because it helps supply chain members to improve logistics consistency and performance\. It necessitates adequate prediction methods as well as proper input data, which can be provided, for example, by mobile sensors \(Videsh D\., 2021\)\. With the collection of IoT data, routing determined by network optimizations and different parameters available, some predictive analytics can be done for travel time to help the entire supply chain\.

An accurate trip time forecast is extremely valuable for freight transportation, and it enables supply chain players to improve the quality of their operations\. To maximize projections of material supplies, a material organizer at the receiving facility can identify impending delays in delivery\.

In the proposed method, we thus want to ascertain if supply chain delay may be forecast by statistically evaluating historical delay utilizing deep algorithms\. The threat of supply chain interruptions might be decreased by using our forecasts to the advantage of shipping participants like sender, carrier, terminus operator, as well as recipient\. Therefore, by using a unique and effective technique like the one employed in this work, it is possible to simply anticipate the time transit in the supply chain by using an effective deep learning approach\.

### 1\.1Research Background and Scope

Machine Learning \(ML\) algorithms are ideal for resolving non\-linear and dynamic interactions in monitoring data \(Carbonneau et al\., 2008\)\. For transports, a reliable travel time forecast is extremely valuable because it helps supply chain members to improve their logistics efficiency \(Lei L\., et al\., 2019\)\. An inventory manager at the receiving plant will predict postponed deliveries in advance, allowing for better material stock forecasting\. A plant may also change its capacities, such as workers or equipment, over time to improve its performance\. In the same way, logistic service providers profits\. Staffing, bridges, forklifts, and other capacities may be scheduled accordingly at stores, ports, and other hubs \(Servos et al\., 2019\)\.

Simultaneously, ensuring the requisite clarity is one of the most difficult logistical challenges\. Predicting travel time is also difficult because several factors affect it, including temperature, traffic, and driver, direction, and transportation relationship \(Servos et al\., 2019\)\.

### 1\.2Research Problem

Transportation and logistics form one of the core components of supply chain management\. For transportations, accurate travel time estimation is critical because it helps supply chain members to improve logistics consistency and performance\. The arrival time of each inventory raw material determines the planning for manufacturing and assembly\. This in turn helps deliver the finished products or downstream raw materials on time\. The logistics on the delivery side of the customer also plays a crucial role in customer satisfaction and voice of customer\.

In supply chain management, shipment deliveries play a crucial role in global transportation of goods which connects production to customer\. In particular, predicting the time of arrival of delivery of shipment is absolute necessary when it comes to supply chain\. Various authors have analyzed ways in which Estimated time arrival \(ETA\) can be predicted\. Most of them have used machine learning linear regression models \(Servos et al\., 2019; Viellechner & Spinler, 2020\) to predict the ETA; they have used linear models which have lesser power to predict the correct ETA when given a complex dataset\. Performing modelling using advanced deep learning techniques like recurrent neural networks or long short\-term memory can acquire a higher performance level for predicting ETA\.

### 1\.3Research Aims

The research aim is to use machine learning advanced deep learning techniques to correctly predict the estimated travel time for transportation and logistics in a supply chain system\.

The scope of the transportation is only shipments on waterways on cargo ships\.

### 1\.4Research Objectives

The aim of this study is to develop an advanced deep learning \(1D\-CNN\) technique to estimate the travel time of deliveries in supply chain management sector\. The objective of the research can be explained through the following:

- •To collect the data through online sources \(shipment details, weather data, geo\-location data\)\.
- •To preprocess the data using data cleaning techniques, removing duplicates, removing null elements and data aggregation\.
- •The pre\-processed data is then sent to the feature selection algorithms, where the features with higher importance is selected either using principal component analysis or random forest regressor\.
- •One dimensional convolutional neural network \(1D\-CNN\) is then applied on the selected features to produce the feature maps which contain important information from the data\.

### 1\.5Purpose of Research

The purpose of this research is to have an accurate ETA determination model based on historical data to determine travel times for future transportation of shipments\.

### 1\.6Significance of the Study

The study is significant because it demonstrates the variety of supply chain interruptions that may be caused, mostly by extreme weather events including traffic congestion\. Travel time prediction would be a hard issue with supply chain management since probable traffic states and traffic occurrences also fall under the category of hidden modes\. It is crucial to do research to enhance the transport service in such cities since such a large population relies on mass transit\. Due to this, it is crucial to create a neural network design that accurately captures the features of transit journey time by using an effective prediction technique\.

### 1\.7Research Design

For members of the supply chain and the efficiency of their logistics, it is extremely valuable to predict the journey times for freight transports\. A material planner, for instance, can adjust material supplies, anticipate delayed deliveries, and change the capacity of employees and equipment\. Improved transport planning and more precise capacity planning at their facilities are also advantages for logistic service providers\. As a result, industries and logistic service providers can increase productivity, optimize workflow, and improve planning precision\. In order to do this, a constant monitoring of freight movements is necessary, for example, utilizing mobile sensors attached to carried items \(Fu et al\., 2020\)\.

Short\-term forecasting rather than long\-term forecasting is currently the focus of most published work\. The majority of the time, research is conducted utilizing historical, statistical, Kalman filter, or machine learning \(ML\) methods to determine bus arrival times or highway traffic times\. Most studies assert that the only models that can effectively handle the dynamic conditions that arise during transports are ML ones\. The literature can attest to the truth of this assertion because ML techniques frequently outperform statistical and historical approaches\. For instance, ML is better able to analyze complicated and noisy data and deal with predictor connections that are complex and non\-linear \(Abdollahi et al\., 2020\)\.

Even so, only a limited number of recent publications discuss the use of ML techniques like Convolutional Neural Network \(CNN\) or long short\-term memory \(LSTM\) to forecast transit times in freight shipments \(ANN\)\. Only a little amount of study has been done on long\-term forecasting of multimodal freight movements, and it primarily relies historical methods\. As a result, the focus of this work is on the ML techniques in order to estimate the travel time in supply chain\.

Machine learning is the study of statistically modeling a problem to carry out an action without having precise rules and instructions for doing so\. When compared to conventional programming, it uses a series of intuitive techniques that reverses the order of tasks\. In conventional programming, the desired result is calculated using a pre\-established set of rules that are applied to the existing data \(Chen et al\., 2020\)\.

In machine learning programming, pre\-known data and the desired result are represented in a way that leads to the discovery of a previously unidentified set of rules\. This comparatively new method of solving issues is very helpful in business in general but particularly in supply chain management\. The task of modeling the supply chain using conventional approaches may be highly challenging or even impossible due to the sheer number of hidden and variable components that interact and correlate with the desired objectives in a complex ecosystem like the supply chain \(Wu et al\., 2020\)\.

### 1\.8Structure of the Paper

The structure of this paper is as follows\. Section 1 explains the background, aim, objectives and problem statement of the paper\. In Section 2, the academic research available in the field of travel time prediction in supply chain management are explored and reviewed, to understand which machine learning techniques are currently in use for travel time prediction\. A detailed literature review of related work is also done, to show the available research and what has been done in the field of travel time prediction\. In Section 3, the methodology of this research will be discussed\. Section 4 describes the results of all the applied machine learning methods for travel time predictions and contribution of this research in the field of travel time prediction\. Section 5 explains the discussion, limitations and future work of this research\. Section 6 details the summary, implications and recommendations from the research results\.

## 2Literature Review

### 2\.1Background

Today’s freight transportation networks must connect increasingly distant production and sales regions, driven by global supply chains with a growing worldwide reach, and such global competitiveness leads to increased demands for service, delivery times, and cost\-efficiency\. Simultaneously, constraints such as limited facility space and laws \(such as environmental protection and customs\) must be taken into account \(Ni et al\., 2020\)\. These variables increase the complexity and dynamics of global freight transportation networks, putting them at risk\. As a result of escalating cost pressure, corporations aim to minimize risk buffers at the same time, resulting in greater vulnerability in supply chains\. Companies prefer slightly slower transports with a consistent arrival time over short but unreliable transport times, according to interviews, because this allows them to develop solid procedures along the supply chain \(Hou & Edara, 2018\)\.

This necessitates greater transparency throughout the entire manufacturing and transportation process\. Transport operations are particularly important in this context since they do not take place in a controlled setting, such as a factory, but rather on a shared infrastructure that is subject to environmental impacts\. For freight transportation, an accurate trip time prediction is extremely valuable since it helps supply chain players to improve the quality of their logistics \(Sharma et al\., 2020\)\. A material planner at the receiving facility can predict delayed deliveries in advance, allowing for better material stock forecasting\. Furthermore, a plant’s capacity, such as employees or machinery, can be adjusted over time to improve efficiency\. The same is true for logistic service providers\. Staffing, ramps, and forklifts, among other things, can be arranged accordingly at warehouses, ports, and other hubs\. As a result, manufacturers and logistics service providers may improve their productivity, streamline their processes, and improve the accuracy of their planning \(Al\-Sahaf et al\., 2019\)\.

A supply chain, in general, entails all collaborative operations by all participating organizations in the transformation of raw materials into the end product\. This comprises obtaining raw materials, manufacture, assembly, and delivery to the ultimate client\. To do so, logistics for material handling, transportation, and storage are required\. Supply chain management, on the other hand, is concerned with the planning and management of supply chains, whereas logistics is concerned with the operational level \(Cavalcante et al\., 2019\)\. The duty of providing information between the various phases of the supply chain is also part of logistics\. Transportation is often handled by several corporations or organizations\. These circumstances make the supply chain much more complicated, especially in multimodal transports with several transshipment sites\. The goal of this research is to accurately estimate trip time in multimodal transportation\. For effective administration of transportation operations and logistics in supply chains, accurate trip time estimations are critical \(Priore et al\., 2019\)\.

### 2\.2Research Objectives in Related Work

The researchers Ashwini et al\. \(2022\) have analyzed a comparison study that uses error metrics like Mean Absolute Errors \(MAE\), Median Absolute Errors \(MdAE\), Root Mean Squared Errors \(RMSE\), Mean Absolute Percentage Errors \(MAPE\), as well as R squared \(r2 score\) to find an appropriate model for assessing the effectiveness of linear as well as non\-linear ML model for predicting travel time\. It was discovered that the Random Forest Regression method works well for planners of transit operations when looking to optimize the timetable as well as other transit operations\. But compared to other models, Random Forest is a sluggish and complicated approach\.

The authors Yuan et al\. \(2020\) implemented a Deep Neural Network \(DNN\) to create a dynamic bus journey time prediction system\. The findings demonstrated that the algorithm’s performance was improved by 4\.82% when compared towards the deep neural network used on the original feature space and was more effective than the conventional machine\-learning model\. However, a deep image convolutional network using reference image processing is required to implement this strategy\.

The authors Servos et al\. \(2019\), utilizing the machine learning techniques Extra Trees, AdaBoost, and SVR, have forecasted trip times for multimodal transportation\. SVR has outperformed the other two used machine learning algorithms in terms of calculating journey time\. Over a travel period of up to 30 days, the prediction error might be as much as 17 hours\. However, the model will need to be retrained using newly completed rides in such an iterative process\.

The researchers Viellechner and Spinler \(2020\) provided a container shipping sector between Europe and Asia a data analytics\-based solution\. The 315 explanatory variables, 10 regression models, including seven classification models that made up the prediction model\. The neural network as well as support vector machine models, produced the greatest results using machine learning methods, with a prediction accuracy of over 77 per cent compared to a baseline model’s prediction accuracy of 59 per cent\. Even in the future additional real\-time data should be included in a prediction model that focuses on daily short\-term changes\.

The authors developed an algorithm for XGBoost\-based trip time prediction between bus stations\. For training as well as verification, the 28\-day bus operating data of a specific bus route in Guangzhou were utilized, and they were contrasted further with estimation techniques based upon K\-Nearest Neighbor \(KNN\), BP neural networks, including Light Gradient Boosting Machines \(LightGBM\)\. The XGBoost prediction model was determined to have the least MAPE of 11\.96% when compared to other models, which would be 9\.30% lesser than other models generally\. However, there is a need to increase the prediction’s accuracy\.

The authors have solely examined the methods in which projected time arrival could be predicted in order to establish a research need from the aforementioned studies\. The majority of publications have utilized machine learning regression analysis models to determine the ETA; they have employed linear models, which have less capacity to predict the right ETA when given an intricate dataset\. As a result, the suggested work may achieve a higher level of performance for prediction and is able to derive a decent forecast from a less quantity of data\.

### 2\.3Travel Time Prediction

Continuous monitoring of freight transports, such as employing mobile sensors attached to move products, is essential for journey time calculation\. Simultaneously, achieving the requisite transparency is one of the most difficult logistical jobs\. Predicting travel time is especially challenging since several elements influence it, including weather, traffic, vehicle, route, and transportation relationship \(Diez\-Olivan et al\., 2019\)\. Today’s freight transportation networks must connect increasingly distant production and sales regions, driven by global supply chains with a growing worldwide reach, and such global competitiveness leads to increased demands for service, delivery times, and cost\-efficiency\. Simultaneously, constraints such as limited facility space and laws \(such as environmental protection and customs\) must be taken into account\. These variables increase the complexity and dynamics of global freight transportation networks, putting them at risk \(Diez\-Olivan et al\., 2019\)\.

In the framework of intelligent transportation systems, travel time information plays an essential role in transportation and logistics, and it has been employed in a variety of disciplines and for a variety of reasons\. Accurate travel time prediction is critical when developing advanced traffic information systems \(ATISs\), which assist travelers in planning their routes ahead of time and guiding them along the way, as well as for traffic management issues such as traffic control system management and logistics planning and operations\. Different approaches can be discovered in the literature from a methodological standpoint \(Dogru & Keskin, 2020\)\. In a summary, short\-term predictions based on data characterizing the traffic status are created using artificial intelligence or quantitative statistics approaches\. We’d like to bring up data mining and pattern matching as examples of the first\. In this paper, a machine learning strategy for predicting short\-term trip times for a public mass transit firm is discussed\. Linear regression models, support vector machines, and time series analysis are statistical methods that are appropriate for estimating journey durations over a limited time frame \(Zantalis et al\., 2019\)\.

### 2\.4Machine Learning in Travel Time Prediction

Machine learning is the study of statistically modelling a problem in order to complete a task without having to specify particular rules and instructions\. It’s a set of approaches that, in contrast to traditional programming, rearranges the sequence of jobs\. Traditional programming involves applying a well\-defined set of rules to existing data in order to determine the desired result \(Syafrudin et al\., 2018\)\. Pre\-existing data and desired outcomes are represented in machine learning programming in order to develop a previously unknown set of rules\. This relatively new technique to problem\-solving can be tremendously beneficial in business, particularly in supply chain management\. In a complex ecosystem like the supply chain, the amount of hidden and variable components that interact and correlate with the desired outcome can make standard modelling extremely difficult, if not impossible \(Rolnick et al\., 2019\)\.

The majority of published literature currently focuses on passenger transportation, such as bus arrival times or highway travel times, rather than freight transportation \(Tran et al\., 2020; Balster et al\., 2020\)\. Only rides of up to two hours are considered in this case, which does not apply to freight transports\. The authors employ average\-based techniques, Kalman filters, or machine learning \(ML\) algorithms to estimate journey time\. Furthermore, the route and stops are known ahead of time in their research \(Konovalenko & Ludwig, 2019\)\. Only machine learning algorithms are capable of handling the complex and dynamic behavior that occurs during transportation\. ML is stronger at dealing with complex and non\-linear connections between predictors, as well as processing large amounts of data\. This remark is supported by the research, which shows that ML techniques outperform average\-based approaches in most instances \(Wang & Ross, 2018\)\.

Despite this, machine learning has only been used in a small number of recent publications dealing with freight transportation journey time prediction\. Only a small amount of research has been done on forecasting multimodal freight movements based on real\-time tracking data, which mostly uses average\-based algorithms\. As a result, the focus of this research is on the evaluation of machine learning \(ML\) for long\-term forecasting of multimodal freight transport transit times \(Syam & Sharma, 2018\)\. Sensors affixed to the carried products create data that is used to track them\. Due to limited battery life, sensor data is broadcast at a low frequency for 30 minutes at a time\. Aside from the origin and destination, no further details about the route or trans\-loading points are known ahead of time\. Finally, we can demonstrate that, given the limits, machine learning systems are capable of accurately predicting travel time \(Mercier & Uysal, 2018\)\.

Support vector regression \(SVR\) delivers the best prediction accuracy in this use\-case, with a mean absolute error\. It also demonstrates that the model outperforms average\-based techniques\. In order to automate routines, methods, and procedures in numerous fields of knowledge, new technologies, concepts, and processes in the field of Information Systems, as well as the specific branch of Computer Science, have been transformed into intense systems \(Baryannis et al\., 2019\)\. The widespread adoption of these technologies has resulted in massive amounts of data\. The knowledge of the organization, processes, and environments is embodied in these huge amounts of data\. Data analysis procedures have given us access to this information\. Database technology, on the other hand, is not sufficient to facilitate data analysis on its own\. Complementary technologies and tools, primarily created in the domain of Data Mining and Machine Learning, are necessary for the procedure \(Liu et al\., 2021\)\.

While there are other methods for estimating journey times, the majority of them are based on shallow learning architectures\. In contrast to deep learning systems, deep learning architectures do not have the ability to learn features\. A new journey time prediction technique can be done based on the Deep Belief Networks concept for novel research \(DBN\)\. A deep learning method has the advantage of being able to handle massive amounts of traffic data \(Mohanta et al\., 2020\)\. In a general method, a stack of Restricted Boltzmann Machines \(RBM\) is used to automatically learn generic traffic features in an unsupervised fashion, and then a sigmoid regression is used to predict travel time in a supervised fashion\. Unlike most travel time prediction methods which require the traffic data for each road link to be trained separately, for the method that can collectively train the traffic data on the entire road network all at once \(Martínez et al\., 2020\)\.

### 2\.5The Travel Time Prediction Problem

Travel demand and travel time variability in suburban and urban locations are significantly influenced by relative short\-phased cyclic patterns, such as regular daily and weekly variations brought on by peak hours\. The fluctuation is frequently greatly influenced by the short\-phased patterns, particularly in urban and crowded locations\. Weather, events, and more sporadic temporal variables like holidays are among the many other elements that are known to also have an impact on travel demand and journey time \(Abdollahi et al\., 2020\)\.

Additionally, one of the biggest issues in contemporary society that hasn’t been resolved is traffic congestion\. Traffic congestion frequently happens because of changes in demand and poor forecasting, despite the fact that transportation infrastructure is built with consideration for both current and future traffic demand\. It is difficult for transportation infrastructure, in particular motorways, to adapt to variations in traffic demand\. It takes a lot of money and time to build a new highway or extend an existing one, and political and environmental concerns sometimes make it impractical\. Consequently, it’s crucial to make effective use of the current infrastructure \(Fu et al\., 2020\)\.

It is helpful to know if an estimate is unclear due to large variances in historical data for comparable journeys since it suggests boosting the routing process’s margins\. There are databases that include travel times at the level of a road segment, which is ordinarily the section of a road in between intersections or traffic signals\. Depending on the time of day, the day of the week, the legal speed limits, and previous data for each road segment, the trip times may also be differentiated \(He et al\., 2020\)\. These maps provide a solid foundation for estimating journey times, but they are unable to reflect higher\-level patterns, such as those that apply to individual trips \(includes additional road segments\)\.

There are some difficulties in predicting travel times\. First of all, the complexity of traffic dynamics places significant demands on a model’s ability to depict it\. By taking into account vast amounts of historical data and applying machine learning\-inspired techniques, the basic strategy is to let previous journeys speak as much as possible for themselves\. Data sparsity may provide issues as it does with all data\-driven methodologies\. The inference requires a sufficient number of identical visits in order to get reasonable results \(Fu et al\., 2020\)\. Henceforth, the sparsity problem is related to the concept of similarity since different approaches to similarity will be impacted by sparsity problems in different ways\.

For instance, travels using origin\-destination approaches must have comparable origins and destinations, whereas trips using path\-dependent approaches merely need to use the same sub\-paths\. The sparsity problem can be summed up as a symptom of the curse of dimensionality, which refers to difficulties encountered while analyzing data with several dimensions\. Dealing with complexity and scalability is the second difficulty\. The size of the data sets being analyzed increases the computational complexity of many of the advanced methods in the literature significantly \(Wu et al\., 2020\)\. As a result, greater care must be used while making estimates in order to simplify and speed up the algorithms\.

### 2\.6Estimated Time of Arrival \(ETA\) in Supply Chain Management

Actors in the supply chain employ transport management systems and track\-and\-trace systems to improve their supply chain visibility\. However, these systems currently only provide information on how a loading unit’s transport is planned and where it is currently placed, not on how that unit’s subsequent transport is likely to be achieved\. This is especially crucial in the case of network outages that spread throughout the system \(Nikolopoulos et al\., 2021\)\. A modest delay in the initial leg of the transportation chain might have detrimental cascade effects on all subsequent legs, finally leading to the missed of a critical planned connection\. The estimated time of arrival \(ETA\) of transporters is an important metric that contributes to transparency\. Intermodal transports, in which schedule\-based and non\-schedule\-based transports are frequently integrated, are particularly interested in ETAs \(Kilimci et al\., 2019\)\.

The term “intermodal transport” describes a transportation chain in which loading units such as intermodal containers are transported via at least two modes of transportation, including transshipment\. The majority of the journey is usually covered by trains or ships that run on a fixed schedule\. The loading unit’s more flexible road transport is utilized only over short distances for pre\- and post\-carriage, such as transporting products to a rail or marine terminal or collecting items at the unloading point \(Fei et al\., 2019\)\. Accurate and up\-to\-date ETAs for each transshipment point can be utilized in supply chains using intermodal freight transport networks \(IFTN\) to decide whether or not a connecting transport will be reached\. If this were to be included in an information\-sharing platform, proactive communication would be possible, allowing different players to consider and take necessary measures to potentially compensate for existing delays\. By establishing ETAs, the resilience of IFTNs and supply chains can be improved\. As a result, the various actors will be able to make the supply chain more efficient and cost\-effective\. A vast quantity of data with a wide product range and rapidity must be collected and analyzed in order to get reliable ETAs \(Mao et al\., 2018\)\.

This is especially difficult for complicated IFTNs, as different parties are responsible for different parts of the intermodal transport chain\. The work required for data gathering, cleaning and the connection is greatly increased by the various aims and IT systems\. The biggest challenges in estimating ETAs in IFTN, however, originate from the differing characteristics of the various modes of transportation: the intermodal transport chain connects scheduled and unscheduled transports \(Alizadeh et al\., 2018\)\. This results in peaks in the distribution of probable arrival times, preventing the establishment of an ETA prediction for the entire transportation chain with a given confidence interval\. Furthermore, some modes of transportation, such as ships and railroads, have limited loading capacity, as well as transshipment capacity at transshipment sites, which adds to the difficulty of predicting ETAs \(Abduljabbar et al\., 2019\)\.

These discussions were used to determine the requirements for ETA prediction, as well as the available data, potential transportation disruptions, and anticipated problems in implementing integrated ETA prediction for entire multimodal transport chains\. Process data from railway operators, railway transport companies, and inland terminal operators, network data from railway infrastructure firms, and supplementary weather data from weather services are all included in the data\. When significant volumes of data are available, one option is to create a descriptive microsimulation model that depicts the underlying system’s structure in great detail \(Milojevic\-Dupont & Creutzig, 2021\)\. The magnitude of the dynamics and complexities within IFTNs, on the other hand, makes such a model impractical\. Nonetheless, machine learning \(ML\), a new subject that has lately emerged, offers new opportunities\. Because intermodal transportation chains sometimes have buffer hours between the rigorous timetables of some modes of transportation and often include extra services, such as storage, a solely data\-driven method utilizing ML would not be appropriate for ETA forecasts in IFTNs \(Kannangara et al\., 2018\)\.

### 2\.7Machine Learning Approach Estimation of Travel Time

The researcher \(Cheng et al\., 2019\) explained that when machine learning is applied to the entire intermodal transportation chain, it results in a prediction model that ignores the logistics structure of the chain and so blends transport times, buffer periods, and storage times\. Because it would be impossible to discriminate between scheduled and unforeseen storage times, the ETA estimate provided in this method would be meaningless\. In addition, the authors \(Fu et al\., 2020\) discussed the same origin\-destination pair, a container can be sent via several routes\. If users eliminate this characteristic, the projections will be drastically different\. To construct an acceptable ETA prediction model for an intermodal transport chain using machine learning, knowledge of the actual transport processes is required\. This understanding allows for the identification and incorporation of logistical structures into the overall strategy\.

Other authors \(Abdollahi et al\., 2020\) stated that there is no research that uses a combination of machine learning approaches and logistic structure mapping to forecast ETA in IFTNs\. In recent years, freight transportation research on ETA predictions has primarily concentrated on single types of transportation, particularly truck transport\. As a result, a large portion of the data produced by today’s IFTNs is useless\. In terms of openness and operational efficiency, being able to exploit these data through the new possibilities given by ML has a ton of potential\. The authors \(Miao et al\., 2020\) explained that the goal of the computational study is to propose an approach to ETA prediction that takes into account available data from various actors and covers the full intermodal transportation chain\. The overall ETA prediction was separated into subproblems covering the individual legs of the intermodal transport chain, and an appropriate ML method was selected for each leg to decrease the complexity and make specific and accurate predictions for each person\.

Some researchers \(Ma et al\., 2019\) described the methods to predict the time in four steps, each sub model was developed: \(1\) system structure, \(2\) feature engineering and feature selection, \(3\) model selection and model tuning, and \(4\) system validation\. Because the data allows for the identification of individual containers as well as the assignment of trucks and wagons on a train, all predictions may be transferred to successive legs of the transport chain and used as inputs for subsequent forecasts\. As a result, all of the individual estimates may be merged into a single overall ETA forecast that encompasses the whole intermodal transportation chain from origin to destination\.

### 2\.8Prediction of Time in Other Sources

According to researchers \(He et al\., 2019\), for a variety of reasons, predicting journey time is challenging\. Traffic conditions or the speed changes of the cars along the section must be estimated in order to anticipate travel time for a piece of road\. Because traffic conditions can change greatly in both space and time, it is difficult to precisely anticipate them\. However, a significant amount of study has been done in this field’s related fields\. Because various means of transportation operate on rigid schedules, the question of whether a container can make its scheduled connection on time arises\. The authors \(Philip et al\., 2018\) proposed that the flexible container delivery by truck in the hinterland terminal with onward transportation by scheduled train, the formation of a scheduled train in the marshalling yard for onward transfer to the port of Hamburg, and the marshalling of wagons from the port’s entry station to the sea terminal for loading onto the scheduled ship are the most important of these transitions\. The first leg of the total shipment is frequently a truck because the shippers of the containers at the starting node are enterprises that rarely have a direct relationship to trains\.

Researchers \(Ran et al\., 2019\) explained that the most important of these transitions is the flexible container delivery by truck in the hinterland terminal with onward train transportation, the formation of a scheduled train in the marshalling yard for onward transfer to the port of Hamburg, and the marshalling of wagons from the port’s entry station to the sea terminal for loading onto the scheduled ship\. Because the shippers of the containers at the starting node are typically businesses with no direct relationship to railroads, the first leg of the whole shipment is frequently a truck\.

The author \(Cristóbal et al\., 2019\) studied that for all kinds of transportation when it comes to ETA estimates\. Many ETA prediction techniques for road traffic, such as navigation systems, have been applied in practice\. These solutions, on the other hand, are frequently inadequate to meet operational needs or to account for dynamic occurrences like the weather\. Furthermore, most existing solutions do not contain ETA\-based real\-time operations management metrics\. The scientific literature and practical solutions for rail transportation are primarily focused on passenger transport, while rail freight transport is rarely considered\.

According to research by authors \(Wang et al\., 2018\) which used data from loop detectors and a global positioning system \(GPS\) to calculate highway speed, occupancy, and volume, as well as prior trip times, to anticipate travel times over a four\-mile stretch of roadway\. As a learning algorithm, they employ artificial neural networks \(ANNs\)\. Similarly, the authors use support vector machines and loop detectors to estimate trip time on highway stretches up to 350 km across\.

Some researchers \(Kumar et al\., 2019\) identified that random forests \(RF\) as the best approach for predicting travel times on urban street segments using GPS data from 300 probe vehicles\. In a comparable application, the authors compare the performance of a gradient boosting method and RF for estimating trip time on highway segments and find that the gradient boosting method outperforms the RF method\. Gradient boosting also yields an excellent forecast, according to the authors\. The authors also use GPS data to analyze several aspects\. They discovered that factoring in the speed difference between two broadcasts improves prediction accuracy by 5%\.

The authors \(Zhao et al\., 2018\) used 12 months of GPS data and the prior 12 travel times as features to analyze deep neural networks\. Their method yields a mean absolute error \(MAE\) of 3\.25 minutes over a 131\-kilometre length\. As with freight transportation, the preceding methodologies do not take into account any end\-to\-end transit relationships\. Furthermore, precise route knowledge and a high frequency of GPS measurements are necessary, otherwise, side\-based techniques such as loop detectors must be used\. ANNs are used by practically all writers in the prediction of bus travel times\. The authors \(Yang et al\., 2018\) have also used ANNs in tramways\. In all circumstances, the route is known ahead of time and is divided into sections based on the bus stops\. The majority of ways merely differ when it comes to the analyzed use\-case and the features that were utilized\. Time of departure, public holidays, dwell time at bus stations, current travel time, distance to destination, and average speed are typically used\.

Authors \(As & Mine, 2018\) proposed ANNs over k\-nearest neighbors \(knn\), but show that support vector regression \(SVR\) performs better\. For prediction, the authors utilize a multilinear regression model\. The authors include the total number of stops and dwell time to their model to include all previous stops\. In contrast to earlier techniques, the bus ride is linked to an origin and destination via an end\-to\-end transportation relationship that includes pauses, much like freight logistics\. The authors, on the other hand, have not taken into account that numerous stops in supply chains are typically unknown to supply chain participants and that transports using the same transport connection can differ\. Furthermore, their methods necessitate a large number of rides and rely on frequent GPS data\.

### 2\.9Research Gap

However the authors \(Kumar et al\., 2019\) have discussed about the possibilities, few limitations can be reduced with a use of a practice\-oriented application of machine learning in order to increase transport network dependability\. Also as per the researchers \(Zhao et al\., 2018\) the findings demonstrate the necessity of considering logistic nodes when predicting ETAs in intermodal transportation, as well as the importance of having information about the logistics process, even if it is not modelled in every detail\. Henceforth, the findings demonstrate the importance of data availability and quality\. Organizations will need to concentrate on data availability and quality first if they wish to make greater use of their existing capacities in the future utilizing ML algorithms\. Also the authors \(Fu et al\., 2020\) stated that the operators in multimodal transportation chains can be used to create models to assess the immediate impact of delays on downstream activities which can be improved in the future\. Thus, the ETA data is largely used as a tool for providing early support for operational decision\-making issues, such as people, vehicles, tools, and infrastructure disposition\. Henceforth, predicting travel time using machine learning helps to alleviates traffic congestion and improves operation efficiency and utilizing ML can give better accurate results\.

### 2\.10Conclusion

The Expected Time of Arrival \(ETA\) helps to measure the travel time between two points of origin and destination\. It’s a crucial location\-based service for interactive maps and navigation\. ETA has a lot of uses on the ride\-hailing platform, since travel time is one of the most important factors for drivers and riders when making a contract\. As a result, it is important to predict travel time accurately before venturing on a trip\. A reliable ETA would improve the transportation system’s effectiveness, lowering consumers’ travel costs, reducing electricity demand, and lowering emissions from motor vehicles\. As a result, ETA has become a key factor in decision\-making at various stages of the online ride\-hailing process, such as route discovery and vehicle dispatch \(Jian Li, 2020\)\.

A novel machine learning algorithm can be used to correctly estimate the travel time along a specific route at a specific departure time \(Wang et al\., 2018\)\.

## 3Methodology

### 3\.1Methodology

The following can be used to describe the research’s methodology\. The dataset for this investigation is first examined using web resources \(variables like shipment detail, Shipment ID, source locations, destination locations, latitudes, longitudes, temperature, humidity, rains, expected time of arrival, distances, etc\.\)\. Using exploratory data analysis, it is possible to further evaluate numerous aspects that might be related to variations in trip times in supply chain management\. The data must then be pre\-processed\. Pre\-processing is applied to reduce the amount of noise in the data and eliminate null and missing values\.

Principal component analysis or the random forest algorithm are then used to identify significant elements in the dataset that relate to ETA variations\. Other techniques employed by the authors include lasso regression \(Viellechner & Spinler, 2020\) and clustering \(Servos et al\., 2019\)\. The majority of machine learning algorithms have a tendency to be linear models, which have significant drawbacks when dealing with complicated datasets as well as make achieving lower loss rates challenging \(Viellechner & Spinler, 2020\)\.

Artificial neural networks function like a perfect nonlinear model, however, they are ineffective for complicated datasets with plenty of features but small sample sizes\. So, in order to conduct regression tasks, we need to look at techniques like recurrent neural networks or long short\-term memory and then apply 1D\-CNN, which makes use of the correlation between features, to interpret the data\. The chosen features are then used to a 1D\-CNN to create feature maps, which are representations of the data that contain significant information\. And the long short\-term memory \(LSTM\) method is then used to process those feature maps to produce the final result, which is the shipment’s projected arrival time\.

### 3\.2Outline of This Section

- •Data collection for estimated time arrival in supply chain management
- •Data pre\-processing
- •Research framework
- •Dimensionality reduction or feature selection
- •Principal component analysis
- •Deep learning modelling for estimated time arrival prediction
- •One dimensional convolutional neural network \(1D\-CNN\) - –Convolutional layer - –Pooling layer - –Fully connected layer - –Activation function

### 3\.3Data Collection for Estimated Time Arrival in Supply Chain Management

Without an efficient and reliable method for gathering the data, it will be impossible to conduct data\-based analytics or make data\-based decisions in the future\. Although there are many ways to collect data, including Auto\-ID technologies, sensor technologies, digital gadgets, and social systems based on the Internet, there are still some difficulties in the supply chain and manufacturing sectors \(Zhong et al\., 2016\)\. Transferring goods from one part of the world to other is an important process when it comes to supply chain management\. Equipment used in this transferring process may include trucks, trains, flight and shipment via water\. For our study, the main foundation is to collect accurate data of shipment delivery, which contains information about geo location variables, time variables, weather variables and shipment data\.

As discussed above there are several ways in which data can be collected; for the shipping sector one of the ways the data is collected is through sensors and GPS technology \(Servos et al\., 2019\)\. Authors have carried out the process using 43 pallets that have been distributed among seven container shipments\. The container’s pallets are individually fitted with a sensor\. From a tag attached to the palette, the sensor is linked to transport\-related data, such as the serial number\. When the packet is scanned, the palette is activated to start the process\. The sensor uses Bluetooth Low Energy to send quality\-related data, such as temperature and humidity, along with its ID\. This data was used by the authors to predict the estimated time prediction for shipment delivery\.

For our study, we will be considering various online sources where shipment details are being recorded\. Departure and arrival time of the shipment are noted for a particular time period of certain range of locations\. These details are collected from Eesea \(2022\), which is a maritime intelligence website that lends data about shipment details as paid services\. A considerable amount of data is then collected for year 2023\. Then we have gathered further information using Automatic Identification System \(AIS\), which is a non\-public data which stores information about ports and track vessels in the shipment\. We have collected AIS data from datalastic\.com \(2024\), which contains the shipment details, shipment ID, distance travelled etc\.

### 3\.4Data Pre\-processing

Data cleansing is the important part of developing a successful artificial intelligence model\. Prior to attempting to analyze the case study data, we need to evaluate and resolving data quality issues in order to remove any defect in data \(Kantardzic, 2011\)\. While preprocessing the data, one needs to be careful to keep essential information from being lost while keeping the data clean enough to allow the finding of useful information patterns\.

In our case study, we have collected 2 years of shipment delivery activity including delivery dates, distances, geo locations, and weather details\. Although the data was extracted from actual delivery activities, some of the data can be incomplete or can contain duplicates which might cause problem when performing modeling on deep learning algorithms\. So, we have removed features containing more null elements and filled features with less element using mean and median values\. We have also removed duplicate records which was present in the dataset\. Some information gathered from source may be outliers and distorted\. Thus, we identified those outliers in the dataset using various statistical and data visualization techniques and removed those if necessary\.

### 3\.5Research Framework

The framework of the work is given in Figure[1](https://arxiv.org/html/2609.38190#S3.F1)\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig01.png)Figure 1:Model framework
### 3\.6Dimensionality Reduction or Feature Selection

In the realms of scientific study and industrial production, high\-dimensional data is pervasive\. Although it provides a wealth of information to users, its sparseness and repetition pose significant difficulties for data mining and pattern identification\. Feature reduction can lessen redundant information and noise, simplify learning methods, and increase classification accuracy\. This technique for minimizing the amount of input variables in training dataset is referred to as dimensionality reduction\. After preprocessing, we further delete a few variables to speed up learning, decrease computation time, and make the model simpler without affecting performance\.

### 3\.7Principal Component Analysis

We will be using principal component analysis as a dimensional reduction technique to remove unwanted features and retain important features with more than 95% variance in the data\. With a high number of dimensions or features per observation, principal component analysis \(PCA\) is a common method for analyzing huge datasets, improving data interpretation while retaining the most information, and enabling the visualization of multidimensional data\. After performing PCA, the output data will be in the form components and the amount of components can be set before modeling and it can also be used as a hyper parameter for training the model \(Karamizadeh et al\., 2013\)\.

We can adjust the number of components to observe which one predicts more accurate with lesser error rate\. PCA is used to create predictive models and for exploratory data analysis\. It is frequently used to acquire lower\-dimensional data while retaining the most of the data’s variation by projecting each data point onto the first few principal components\. The path that maximizes the variance of the predicted value can also be used to define the first main component \(Gewers et al\., 2022\)\. The direction that maximizes the variance of the projected data and is orthogonal to the firsti−1i\-1principal components is theii\-th principal component\. The dimension reduced data is then moved to 1D\-CNN\.

### 3\.8Deep Learning Modelling for Estimated Time Arrival Prediction

Deep learning describes a family of learning algorithms rather than a single method that can be used to learn complex prediction models, e\.g\., multi\-layer neural networks with many hidden units\. Deep learning has been successfully applied to several application problems in wide variety of sectors all around the world\. There are various categories of algorithms when it comes to deep learning, such as Deep neural network \(DNN\), Convolutional neural network \(CNN\), Recurrent neural network \(RNN\), Deep auto\-encoder \(DAE\), Restricted Boltzmann Machine \(RBM\), Generative adversarial network \(GAN\), and Deep reinforcement learning \(DRL\) \(Hosseinnia Shavaki & Ebrahimi Ghahnavieh, 2022\)\. One of the few algorithms which have been appearing in recent years is LSTM, an advanced version of RNN which retains more memory of the sequence of features sent when training the model \(Höpken et al\., 2021\)\.

### 3\.9One Dimensional Convolutional Neural Network \(1D\-CNN\)

The “receptive field” feature is added to the neural network to form the convolutional layer\. LeNet, the initial model of the Convolutional Neural Network \(CNN\) model, was inspired by the study of the cat’s visual system in neuroscience\. The CNN model currently offers great accuracy and a quick training rate \(Kiranyaz et al\., 2021\)\. The primary purpose is to draw features from the data\. Its structure, which is depicted in Figure[2](https://arxiv.org/html/2609.38190#S3.F2), consists of a convolutional layer, an activation layer, a pooling layer, and a fully connected layer\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig02.png)Figure 2:1D\-CNN network structure#### 3\.9\.1Convolutional Layer

The key to extracting features is the convolutional layer\. Extraction of the corresponding data characteristics is carried out via the convolution kernel\. The retrieved features become more abstract as there are more convolution kernels\. Two convolutional layers are cascaded in the 1D\-CNN network used in this article\. Each convolutional layer’s output is triggered by the nonlinear function ReLU and used as the input for the subsequent convolutional layer\.

#### 3\.9\.2Pooling Layer

There are two types of pooling: maximal pooling and average pooling\. The maximum pooling approach is used in this paper, and some unnecessary features are disregarded using the ReLU activation function\. The final prediction result is obtained by the fully connected layer using a nonlinear function, while the ReLU activation function is a piecewise linear function \(Wang et al\., 2021\)\.

#### 3\.9\.3Fully Connected Layer

The fully connected layer’s job is to multiply the aggregated neurons into a one\-dimensional vector form so that the data may be processed more quickly\. In order for the convolutional layer and the pooling layer to learn the ideal parameter matrix, the weight update of CNN employs the back propagation technique of error to continuously alter the network connection weight to minimize the error\.

#### 3\.9\.4Activation Function

The primary job of the activation function is to execute some nonlinear mapping on the features that the convolutional layer extracted in order to enhance CNN’s capacity to handle certain nonlinear data\. The ReLU, Sigmoid, and Tanh activation functions are the three most often utilized activation functions\. The structure for solving nonlinear problems includes an important component called the activation function, which plays a significant role in maintaining features and eliminating redundant information \(Wang et al\., 2021\)\. Figure[3](https://arxiv.org/html/2609.38190#S3.F3)illustrates the functional relationship between Sigmoid, tanh, and ReLU\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig03.png)Figure 3:Activation functionsRecently, 1D\-CNNs gained attention, and they quickly attained the best performance levels in a number of applications, including the classification and early diagnosis of personalized biomedical data, the monitoring of structural health, the identification and detection of anomalies in power electronics, and the detection of electrical motor faults\. Another significant benefit is the feasibility of a real\-time and affordable hardware implementation due to the straightforward and compact setup of 1D CNNs that only carry out 1D convolution \(Li et al\., 2020b\)\.

Structurally, 1D\-CNN is almost the same as CNN, which also includes a series of convolutional layers and pooling layers, and finally outputs the results through a fully connected layer\. In terms of usage, CNN is mainly employed for feature recognition of two\-dimensional images, while 1D\-CNN is widely adopted for feature recognition and extraction of time series\. Although 1D\-CNN has only one dimension, it also has the advantages of CNN’s translation invariance for feature recognition\. In 1D\-CNN, since the convolution kernel is one\-dimensional, a large convolution kernel will not bring too many parameters and calculations \(Kiranyaz et al\., 2019\)\.

A larger convolution kernel can be used by the model to create a broader receptive field and more thoroughly extract the sequence’s feature value\. The input layer of the 1D\-CNN network receives the distribution feature vector as an input\. Features are extracted for each subgroup using the 1D\-CNN network \(Li et al\., 2019\)\. Convolutional layers are cascaded in the 1D\-CNN network used in this study\. The non\-linear function ReLU serves as the input of the pooling layer and activates the output of each convolutional layer\. A maximum pooling layer is implemented in between convolution processes to avoid over\-fitting and enhance operational efficiency\.

In our study, we will be passing the data that has been selected using dimensionality reduction process to 1D\-CNN to get feature maps that contains important information out of the data\. This then will be passed to the deep learning regression module to get the prediction of estimated time of arrival of shipments\.

## 4Results

### 4\.1Exploratory Data Analysis \(EDA\)

In this section, we study the data collected and find features that better explain the regression problem target\. The data frame of the travel times and co\-ordinates has over twenty million records with 18 features \(Figure[4](https://arxiv.org/html/2609.38190#S4.F4)\)\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig04.png)Figure 4:Shape of input data frameThis is stored in a Pandas data frame\. All the features have been converted to numerical ready for modelling\. The featuresCOUNTRY\_ISO,NAME,TYPE\_SPECIFICandDESTINATIONhave been encoded using label encoding \(Figure[5](https://arxiv.org/html/2609.38190#S4.F5)\)\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig05.png)Figure 5:Sample recordsThere are 18 features in the dataframe\. All of them seem relevant to the target feature –TIME\_TAKEN\(Figure[6](https://arxiv.org/html/2609.38190#S4.F6)\)\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig06.png)Figure 6:Input featuresFigure[7](https://arxiv.org/html/2609.38190#S4.F7)shows the summary stats of the data\. Each feature has its count, mean, standard deviation, minimum, first quartile, median, third quartile and maximum values\. We will study this further in the data visualization part\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig07.png)Figure 7:Descriptive statistics of input dataWhen we check the data types, all features are either integer or float and good for machine learning/deep learning modelling \(Figure[8](https://arxiv.org/html/2609.38190#S4.F8)\)\. There are no NULL values present in the dataset \(Figure[9](https://arxiv.org/html/2609.38190#S4.F9)\)\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig08.png)Figure 8:Input data datatypes![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig09.png)Figure 9:Input data missing values checkThe target variableTIME\_TAKENshows a distribution as in Figure[10](https://arxiv.org/html/2609.38190#S4.F10)\. Most of the values are around the range 1500–2000 seconds\. This is as per the data collected and can be used for predictive modelling\. The Q–Q plot shows that the distribution is close to a normal distribution\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig10.png)Figure 10:Target variable histogram and Q–Q plotNext we study the box\-plot for 9 of the important features \(Figure[11](https://arxiv.org/html/2609.38190#S4.F11)\)\. Below are the observations:

- •FeatureLAT– there are large number of outliers on the lower whisker\. This means there are less number of occurrences of these latitudes in the data\.
- •FeatureLON,COURSE,LON\_NEXT– the data seems to be evenly distributed within the range of−150\-150and150150\.
- •FeatureLAT\_NEXT,SPEED,HAVERSINE\_DISTANCE,TIME\_TAKEN– very randomly distributed\. Lot of values are not repeating and the range is high forHAVERSINE\_DISTANCE\.
- •FeatureHEADING– narrow distribution range and lot of outliers on the upper whisker\.

We will study the data further and do PCA to avoid the uneven distributions\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig11.png)Figure 11:Box plot of prominent featuresThe bar plots with the bins show how the range values where the frequencies are high \(Figure[12](https://arxiv.org/html/2609.38190#S4.F12)\)\. Out of this,TIME\_TAKENseems to have a normal distribution andHAVERSINE\_DISTANCEhas a very narrow set of values\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig12.png)Figure 12:Histogram of prominent featuresThe scatter plot ofHAVERSINE\_DISTANCEvsTIME\_TAKEN\(Figure[13](https://arxiv.org/html/2609.38190#S4.F13)\) shows that theTIME\_TAKENandHAVERSINE\_DISTANCEare highly correlated for allTIME\_TAKENvalues whenHAVERSINE\_DISTANCEis≤2500\\leq 2500\. This is meaningful as the distance covered varies along with speed of the vessel and conditions during the snapshot time and location\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig13.png)Figure 13:Scatter plot ofTIME\_TAKENvsHAVERSINE\_DISTANCE
### 4\.2Correlation Study

The correlation graph \(Figure[14](https://arxiv.org/html/2609.38190#S4.F14)\) shows high positive correlation betweenTIME\_TAKEN\(target variable\) and:

- •HAVERSINE\_DISTANCE
- •MINUTE
- •LAT\_NEXT
- •LAT
- •DAY

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig14.png)Figure 14:Correlation matrix
### 4\.3Additional Features

To improve the features to extract more from the data available, the following features are derived\. These are already shown in the correlation graph above\.

- •LAT\_NEXT– the next available vessel latitude position in the data\.
- •LON\_NEXT– the next available vessel longitude position in the data\.
- •HAVERSINE\_DISTANCEis a calculated feature\. It gives the spherical distance \(in km\) between 2 geo\-positional points on earth\(lat1,lon1\)\(\\mathrm\{lat\}\_\{1\},\\mathrm\{lon\}\_\{1\}\)and\(lat2,lon2\)\(\\mathrm\{lat\}\_\{2\},\\mathrm\{lon\}\_\{2\}\)\.

### 4\.4Simple Linear Regression

To start with, we do a simple linear regression to understand the feature importance and decide on the features to drop\-off from the dataset\. The simple linear regression results in the metrics in Table[1](https://arxiv.org/html/2609.38190#S4.T1)and the feature importance in Table[2](https://arxiv.org/html/2609.38190#S4.T2)\.

Table 1:Model metrics of simple linear regressionTable 2:Feature importance after simple linear regressionVisually, Figure[15](https://arxiv.org/html/2609.38190#S4.F15)shows the feature importance values\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig15.png)Figure 15:Feature importanceWe can conveniently drop 3 features which have no impact on theTIME\_TAKENtarget variable\. The features areNAME\_ENCODED,DESTINATION\_ENCODEDandIMO\.

### 4\.5Principal Component Analysis

Dimensionality reduction is done on the remaining 14 features using principal component analysis\. The PCA results in 14 components\. We use explained variance technique to drop a few components \(Figure[16](https://arxiv.org/html/2609.38190#S4.F16)\)\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig16.png)Figure 16:Principal component analysisExplained variance ratios with cumulative explained variance percent are shown in Table[3](https://arxiv.org/html/2609.38190#S4.T3)\.

Table 3:Cumulative explained variance of PCA componentsFrom the distribution graph \(Figure[17](https://arxiv.org/html/2609.38190#S4.F17)\), it can be seen that components PC13 and PC14 have no explained variance and can be dropped\. The rest of the 12 components are used for 1D\-CNN deep learning regression\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig17.png)Figure 17:PCA explained variance
### 4\.61D\-CNN Deep Learning Model

We will use 2 hidden convolutional layers with ReLU as the activation function\. The parameters of the model are given in Figure[18](https://arxiv.org/html/2609.38190#S4.F18)and the neural network architecture is shown in Figure[19](https://arxiv.org/html/2609.38190#S4.F19)\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig18.png)Figure 18:Neural network parameters![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig19.png)Figure 19:Neural network architectureThe dataset is scaled using standard scaler so that the neural network performs relatively better\. With an A100 GPU processor, the training is done on 80% of the dataset with a batch size of 1000\. There are 10 epochs run and the validation loss reduces considerably with each epoch\. The final validation loss is 0\.3329 \(Figure[20](https://arxiv.org/html/2609.38190#S4.F20)\)\.

![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig20.png)Figure 20:Model training![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig21.png)Figure 21:Model mean square error![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig22.png)Figure 22:Model mean absolute percent error \(MAPE\)![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig23.png)Figure 23:Actual and predicted values![Refer to caption](https://arxiv.org/html/2609.38190v1/figures/fig24.png)Figure 24:Model mean absolute errorThe final results of the 1D\-CNN model are given in Table[4](https://arxiv.org/html/2609.38190#S4.T4)\.

Table 4:Results of 1D\-CNN regression
### 4\.7Conclusion

We have been successfully able to collect a year worth of transit data for 13000\+ vessels and analyze using 22\+ million datapoints\. The 1D\-CNN model shows good accuracy of 7\.10% MAPE and this model can be used for building a wrapper application to predictions from point A to point B\.

To conclude, the research demonstrates the potential for using advanced machine learning techniques to analyze large amounts of transit data and make accurate predictions\.

## 5Discussion

### 5\.1Discussion of Results

The features listed in Table[5](https://arxiv.org/html/2609.38190#S5.T5)have been used to build the model with a 7% MAPE\.

Table 5:Input features of the modelTheTIME\_TAKEN\(in seconds\) is the target variable\. TheHAVERSINE\_DISTANCEis a derived field\.LON\_NEXTandLAT\_NEXTis the desired next latitude and longitude of the path of the vessel\.

With the trained model, we can supply the features listed in Table[6](https://arxiv.org/html/2609.38190#S5.T6)to get the time taken from point A and point B\. The wrapper application has to decide the path to be taken and the model predicts the time for the travel\.

Table 6:Features required in end application to use the modelThe calling application should decide the path to be taken with the other features and the model determines the time taken at that step\. A long journey should be split into multiple parts and each part time taken should be determined by the model\. The overall time taken by the journey is the sum total of all the individual part time taken\.

### 5\.2Improvements Suggested

We have built a basic model with huge data and good features\. Some improvements of the model are possible if we consider the following:

- •Load on the vessel – the total tonnage that is being shipped by the vessel including the container weight and ship weight\.
- •Traffic at the point of snapshot time – the other ships in the radius of 50 km at the snapshot point latitude, longitude\.
- •Predicted/actual weather conditions at the latitude, longitude at the snapshot time\. The actual weather conditions can be used during training and the predicted weather can be added as feature to the future data for predictions\.

These features may provide some marginal improvements\. The constructed model already has a good time prediction with plus/minus 7% of the actual time taken\. This is good enough to predict the final time of travel of a long haul journey of a vessel\.

## 6Summary, Implications, and Recommendations

### 6\.1Summary

To summarize, the following activities were undertaken to fulfil the objectives of the research\. The objective of the research was to predict accurately the time taken between 2 points on a sea route to consolidate and find the total time taken for a cargo vessel to travel between two ports\. This travel time is crucial for supply chain activities as there is a complex network of raw materials and finished goods flowing across the world for manufacturing businesses\.

Activities:

1. 1\.Collected data for 13000\+ vessels with country and vessel name\.
2. 2\.Collected datapoints for transits of the 13000\+ vessels during complete year 2023\. There were 23 million data points collected with geo\-positions, speed, timestamp and destination\. There are 15 features in the collected data from API\. The data provider used was datalastic\.com\.
3. 3\.The data was cleaned to remove outliers and missing values\.
4. 4\.The categorical values were encoded and made ready for the model\.
5. 5\.Additional features were added according to the purpose of the model and business knowledge\. The number of features now is 17\.
6. 6\.Correlation study of the features was done\.
7. 7\.Feature importance study was done using linear regression and 3 features with no importance were removed\. The number of features ready for the model is 14\.
8. 8\.With principal component analysis, 12 features remain and are useful\.
9. 9\.1D\-CNN was done with 12 features andTIME\_TAKENas target feature\.
10. 10\.The regression yielded good results of 7% MAPE\.

### 6\.2Implications

The 1D\-CNN model is a deep learning model that is particularly useful for extracting correlations between data features\. When applied to vessel travel time prediction, the 1D\-CNN model can help identify patterns in the data that may be difficult to detect using other methods\. This can lead to more accurate predictions of travel time, which can be useful for a variety of applications, such as optimizing shipping routes, improving logistics planning, and reducing fuel consumption\.

### 6\.3Recommendations for Future Research

Any new features can be added and correlated to the target variable\. The variables can be studied further\. Also, more data covering 3 years could be collected to improve the model\.

Additional features possible are weather temperature, atmospheric pressure, vessel traffic and vessel tonnage\. Anchor time of the vessel could be added in the final travel time to finalize the arrival time\.

The 1D\-CNN model can be combined with other deep learning models, such as LSTM and attention networks, to further improve the accuracy of travel time predictions\.

### 6\.4Conclusion

The vessel travel time prediction was successfully done and a prediction with mean absolute percentage error of 7% was obtained\. The 1D\-CNN model was implemented for the regression problem and it converged faster with the large amount of data used\.

## Acknowledgements

This project would not have been possible without the support and help of numerous people\. Firstly, I would like to thank my mentor and inspiration Dr\. Mario Silic who has been reviewing and supporting throughout my work\. Next, my family has been very co\-operative, allowing me to delve into this work day and night\. They have been providing me necessary strength as well\. For the data gathering part, the support team at datalastic\.com have been my go\-to people to help gather data and provide support to issues in the API for data gathering\. To everyone else who have been helping me realize the importance of problem solving, research and critical thinking capabilities – thank you\. This would not have been possible without any of you\.

## Appendix AData Collection – API and Code

### A\.1Getting List of Vessels by IMO

The following API is used to gather vessel data from the data provider datalastic\.com\. The API is subscription based and costs EUR 649 per month\.

payload\_json=\{"api\-key":API\_KEY,

"Report\_type":"vessel\_list"\}

The API call returns a zip file with all the vessels tracked by the system\. The columns provided in the CSV file are described in Table[7](https://arxiv.org/html/2609.38190#A1.T7)\.

Table 7:API output for vessels list
### A\.2Getting Travel Geo\-coordinates for One Year

For a sample of 13000 IMOs from the vessel list, ship type of CARGO is filtered and all the activity of the vessel in the year 2023 is gathered with geo\-positional data\.

payload\_json=\{"api\-key":API\_KEY,

"IMO":IMO,

"FROM":FROM\_DATE,

"TO":TO\_DATE\}

For a hit on the API, there can be only 30 days of data retrieved\. So, the API is hit for 12 times for each vessel IMO\. The code for the construction of the tracking data frame is given below\.

importrequests

importjson

importpandasaspd

defget\_data\_by\_imo\(imo\):

imo=str\(imo\)

months=\[\["2023\-01\-01","2023\-01\-31"\],

\["2023\-02\-01","2023\-02\-28"\],

\["2023\-03\-01","2023\-03\-31"\],

\["2023\-04\-01","2023\-04\-30"\],

\["2023\-05\-01","2023\-05\-31"\],

\["2023\-06\-01","2023\-06\-30"\],

\["2023\-07\-01","2023\-07\-31"\],

\["2023\-08\-01","2023\-08\-31"\],

\["2023\-09\-01","2023\-09\-30"\],

\["2023\-10\-01","2023\-10\-31"\],

\["2023\-11\-01","2023\-11\-30"\],

\["2023\-12\-01","2023\-12\-31"\]\]

final\_list=\[\]

forminmonths:

print\(imo,m\[0\],m\[1\]\)

from\_date=m\[0\]

to\_date=m\[1\]

url="http://api\.datalastic\.com/api/v0/vessel\_history?api\-key="\+API\_KEY\\

\+"&imo="\+imo\+"&from="\+from\_date\+"&to="\+to\_date

r=requests\.post\(url=url\)

results=r\.text

results\_json=json\.loads\(results\)

results\_data=results\_json\["data"\]

country\_iso=results\_data\["country\_iso"\]

eni=results\_data\["eni"\]

imo=results\_data\["imo"\]

mmsi=results\_data\["mmsi"\]

name=results\_data\["name"\]

ship\_type=results\_data\["type"\]

type\_specific=results\_data\["type\_specific"\]

uuid=results\_data\["uuid"\]

forpinresults\_data\["positions"\]:

lat=p\["lat"\]

lon=p\["lon"\]

speed=p\["speed"\]

course=p\["course"\]

heading=p\["heading"\]

destination=p\["destination"\]

last\_position\_epoch=p\["last\_position\_epoch"\]

last\_position\_UTC=p\["last\_position\_UTC"\]

final\_list\.append\(\[country\_iso,eni,imo,mmsi,name,

ship\_type,type\_specific,uuid,

lat,lon,speed,course,heading,

destination,last\_position\_epoch,

last\_position\_UTC\]\)

final\_df=pd\.DataFrame\(final\_list,columns=\["COUNTRY\_ISO","ENI","IMO",

"MMSI","NAME","SHIP\_TYPE",

"TYPE\_SPECIFIC","UUID",

"LAT","LON","SPEED",

"COURSE","HEADING",

"DESTINATION",

"LAST\_POSITION\_EPOCH",

"LAST\_POSITION\_UTC"\]\)

returnfinal\_df

The constructed data frame has the structure described in Table[8](https://arxiv.org/html/2609.38190#A1.T8)\.

Table 8:Data collected for the model

## Appendix BData Pre\-processing – Code

### B\.1Feature Engineering

Firstly, only records with speed\>1\>1knot were taken\. This removed the records which showed that the vessel was stationary and not moving\.

final\_df=pd\.read\_csv\(file\_path\)

final=final\[final\.SPEED\>1\]

final=final\.drop\(\["MMSI","SHIP\_TYPE","UUID","ENI"\],axis=1\)

SinceSHIP\_TYPEis all CARGO, it is dropped\.MMSI,UUIDandENIare unique identifiers likeIMO\. Hence, they are also dropped, andIMOis retained\. The following new features are created\.

final\_df\[’YEAR’\]=final\_df\[’LAST\_POSITION\_UTC’\]\.dt\.year

final\_df\[’MONTH’\]=final\_df\[’LAST\_POSITION\_UTC’\]\.dt\.month

final\_df\[’DAY’\]=final\_df\[’LAST\_POSITION\_UTC’\]\.dt\.day

final\_df\[’HOUR’\]=final\_df\[’LAST\_POSITION\_UTC’\]\.dt\.hour

final\_df\[’MINUTE’\]=final\_df\[’LAST\_POSITION\_UTC’\]\.dt\.minute

The latitude and longitude change are gathered by taking leading values for each column\.

final\_df\["LAT\_NEXT"\]=final\_df\.groupby\(\[’IMO’,’DESTINATION’\]\)\[’LAT’\]\.shift\(1\)

final\_df\["LON\_NEXT"\]=final\_df\.groupby\(\[’IMO’,’DESTINATION’\]\)\[’LON’\]\.shift\(1\)

final\_df\["LAST\_POSITION\_EPOCH\_NEXT"\]=final\_df\.groupby\(

\[’IMO’,’DESTINATION’\]\)\[’LAST\_POSITION\_EPOCH’\]\.shift\(\-1\)

final\_df\["LAST\_POSITION\_UTC\_NEXT"\]=final\_df\.groupby\(

\[’IMO’,’DESTINATION’\]\)\["LAST\_POSITION\_UTC"\]\.shift\(\-1\)

final\_df=final\_df\[~final\_df\["LAST\_POSITION\_EPOCH\_NEXT"\]\.isna\(\)\]

Next, time taken \(in seconds\) is calculated\. This is the target variable for the analysis\.

final\_df\["TIME\_TAKEN"\]=final\_df\["LAST\_POSITION\_EPOCH\_NEXT"\]\\

\-final\_df\["LAST\_POSITION\_EPOCH"\]

To avoid outliers, the time taken≤3000\\leq 3000is only taken for modelling\.

final\_df=final\_df\[final\_df\[’TIME\_TAKEN’\]<=3000\]

Label encoding is done on the categorical values\.

label\_encoder=LabelEncoder\(\)

forcolumnin\["COUNTRY\_ISO","NAME","TYPE\_SPECIFIC","DESTINATION"\]:

print\("Encodingcolumn\-",column\)

encoded\_column=column\+"\_ENCODED"

final\_df\[encoded\_column\]=label\_encoder\.fit\_transform\(final\_df\[column\]\)

Since we are dealing with latitude/longitude data, Haversine distance is calculated between 2 GPS points\.

final\_df\["HAVERSINE\_DISTANCE"\]=final\_df\.apply\(haversine\_distance,axis=1\)

All the null values are set to zero for featuresCOURSEandHEADING\.

final\_df\.COURSE=final\_df\.COURSE\.fillna\(0\)

final\_df\.HEADING=final\_df\.HEADING\.fillna\(0\)

final\_df=final\_df\[~final\_df\.TIME\_TAKEN\.isna\(\)\]

The Haversine distance calculation function is given below\.

defhaversine\_distance\(df\):

"""

CalculatetheHaversinedistancebetweentwopointsontheEarth

giventheirlatitudeandlongitude\.

Parameters:

\-lat1,lon1:Latitudeandlongitudeofthefirstpoint\(indegrees\)

\-lat2,lon2:Latitudeandlongitudeofthesecondpoint\(indegrees\)

Returns:

\-Distancebetweenthetwopointsinkilometers

"""

lat1=df\["LAT"\]

lon1=df\["LON"\]

lat2=df\["LAT\_NEXT"\]

lon2=df\["LON\_NEXT"\]

lat1,lon1,lat2,lon2=map\(radians,\[lat1,lon1,lat2,lon2\]\)

dlat=lat2\-lat1

dlon=lon2\-lon1

a=sin\(dlat/2\)\*\*2\+cos\(lat1\)\*cos\(lat2\)\*sin\(dlon/2\)\*\*2

c=2\*atan2\(sqrt\(a\),sqrt\(1\-a\)\)

radius=6371\.0

distance=radius\*c

returndistance

## Appendix CPredictive Modelling – Code

### C\.1Simple Linear Regression

X\_train,X\_test,y\_train,y\_test=train\_test\_split\(X,y,test\_size=0\.3,

random\_state=42\)

lr=LinearRegression\(\)

lr\.fit\(X\_train,y\_train\)

y\_pred=lr\.predict\(X\_test\)

mse=mean\_squared\_error\(y\_test,y\_pred\)

print\(f’MeanSquaredError:\{mse:\.4f\}’\)

mape\_result=calculate\_mape\(y\_test,y\_pred\)

print\(f"MAPE:\{mape\_result:\.2f\}%"\)

### C\.2Principal Component Analysis

X\_scaler=StandardScaler\(\)

y\_scaler=StandardScaler\(\)

X\_standardized=X\_scaler\.fit\_transform\(X\)

y\_standardized=y\_scaler\.fit\_transform\(

np\.array\(y\)\.reshape\(\-1,1\)\)\.reshape\(y\.shape\)

pca=PCA\(\)

principal\_components=pca\.fit\_transform\(X\_standardized\)

columns=\[f’PC\{i\+1\}’foriinrange\(principal\_components\.shape\[1\]\)\]

X\_pca=pd\.DataFrame\(data=principal\_components,columns=columns\)

print\("\\nExplainedVarianceRatios:"\)

print\(pca\.explained\_variance\_ratio\_\)

cumulative\_explained\_variance=np\.cumsum\(explained\_variance\_ratio\)

plt\.plot\(cumulative\_explained\_variance\)

plt\.xlabel\(’NumberofComponents’\)

plt\.ylabel\(’CumulativeExplainedVariance’\)

plt\.grid\(True\)

plt\.show\(\)

n\_components\_to\_retain=9

pca=PCA\(n\_components=n\_components\_to\_retain\)

X\_pca=pca\.fit\_transform\(X\)

### C\.31D\-CNN Deep Learning

X\_train,X\_test,y\_train,y\_test=train\_test\_split\(X\_pca,y\_standardized,

test\_size=0\.2,

random\_state=42\)

model=Sequential\(\)

model\.add\(Conv1D\(filters=64,kernel\_size=3,activation=’relu’,

input\_shape=\(10,1\)\)\)

model\.add\(MaxPooling1D\(pool\_size=2\)\)

model\.add\(Conv1D\(filters=128,kernel\_size=3,activation=’relu’\)\)

model\.add\(Flatten\(\)\)

model\.add\(Dense\(128,activation=’relu’\)\)

model\.add\(Dense\(64,activation=’relu’\)\)

model\.add\(Dense\(1,activation=’linear’\)\)

model\.compile\(optimizer=’adam’,loss=’mean\_squared\_error’\)

model\.summary\(\)

fromtensorflow\.keras\.utilsimportplot\_model

plot\_model\(model,to\_file=’model\.png’,show\_shapes=True,

show\_layer\_names=True\)

batch\_size=64

steps\_per\_epoch=len\(X\_train\)//batch\_size

model\.fit\(X\_train,

y\_train,

epochs=10,

batch\_size=batch\_size,

steps\_per\_epoch=steps\_per\_epoch,

validation\_data=\(X\_test,y\_test\),

verbose=1\)

y\_pred=model\.predict\(X\_test\)

### C\.4RMSE and MAPE

defcalculate\_mape\(y\_true,y\_pred\):

"""

CalculateMeanAbsolutePercentageError\(MAPE\)\.

Parameters:

\-y\_true:Actualvalues

\-y\_pred:Predictedvalues

Returns:

\-MAPEvalue

"""

y\_true=np\.array\(y\_true\)

y\_pred=np\.array\(y\_pred\)

mask=y\_true\!=0

ape=np\.abs\(\(y\_true\-y\_pred\)/y\_true\)\[mask\]

mape=np\.mean\(ape\)\*100

returnmape

y\_pred=y\_scaler\.inverse\_transform\(y\_pred\)\.reshape\(\-1\)

y\_test=y\_scaler\.inverse\_transform\(y\_test\.reshape\(\-1,1\)\)\.reshape\(\-1\)

mse=mean\_squared\_error\(y\_test,y\_pred\)

print\(f’MeanSquaredErroronTestSet:\{mse:\.4f\}’\)

print\(pd\.DataFrame\(zip\(y\_test,y\_pred\)\)\)

mape\_result=calculate\_mape\(y\_test,y\_pred\)

print\(f"MAPE:\{mape\_result:\.2f\}%"\)

## References

- Abbasi, B\., Babaei, T\., Hosseinifard, Z\., Smith\-Miles, K\. & Dehghani, M\. 2020\. Predicting solutions of large\-scale optimization problems via machine learning: A case study in blood supply chain management\.Computers & Operations Research, \(119\), pp\. 104941\.
- Abdollahi, M\., Khaleghi, T\. & Yang, K\. 2020\. An integrated feature learning approach using deep learning for travel time prediction\.Expert Systems with Applications, \(139\), pp\. 112864\.
- Abduljabbar, R\., Dia, H\., Liyanage, S\. & Bagloee, S\.A\. 2019\. Applications of Artificial Intelligence in Transport: An Overview\.Sustainability, 11\(1\), pp\. 189\.
- Ahmed, S\., Chakrabortty, R\.K\., Essam, D\.L\. & Ding, W\. 2022\. Poly\-linear regression with augmented long short term memory neural network: Predicting time series data\.Information Sciences, \(606\), pp\. 573–600\.
- Akbari, M\. & Do, T\.N\.A\. 2021\. A systematic review of machine learning in logistics and supply chain management: current trends and future directions\.Benchmarking: An International Journal, 28\(10\), pp\. 2977–3005\.
- Al\-Sahaf, H\., Bi, Y\., Chen, Q\., Lensen, A\., Mei, Y\., Sun, Y\., Tran, B\., Xue, B\. & Zhang, M\. 2019\. A survey on evolutionary machine learning\.Journal of the Royal Society of New Zealand, 49\(2\), pp\. 205–228\.
- Alizadeh, M\.J\., Kavianpour, M\.R\., Danesh, M\., Adolf, J\., Shamshirband, S\. & Chau, K\.\-W\. 2018\. Effect of river flow on the quality of estuarine and coastal waters using machine learning models\.Engineering Applications of Computational Fluid Mechanics, 12\(1\), pp\. 810–823\.
- As, M\. & Mine, T\. 2018\. Dynamic Bus Travel Time Prediction Using an ANN\-based Model\. In:Proceedings of the 12th International Conference on Ubiquitous Information Management and Communication\. 5 January 2018, New York, NY, USA: ACM, pp\. 1–8\.
- Ashwini, B\.P\., Sumathi, R\. & Sudhira, H\.S\. 2022\. Bus Travel Time Prediction: A Comparative Study of Linear and Non\-Linear Machine Learning Models\. In:Journal of Physics: Conference Series\. 2022, IOP Publishing, 12053\.
- Baryannis, G\., Validi, S\., Dani, S\. & Antoniou, G\. 2019\. Supply chain risk management and artificial intelligence: state of the art and future research directions\.International Journal of Production Research, 57\(7\), pp\. 2179–2202\.
- Carbonneau, R\., Laframboise, K\. & Vahidov, R\. 2008\. Application of machine learning techniques for supply chain demand forecasting\.European Journal of Operational Research, 184\(3\), pp\. 1140–1154\.
- Cavalcante, I\.M\., Frazzon, E\.M\., Forcellini, F\.A\. & Ivanov, D\. 2019\. A supervised machine learning approach to data\-driven simulation of resilient supplier selection in digital manufacturing\.International Journal of Information Management, \(49\), pp\. 86–97\.
- Chen, C\.\-M\., Liang, C\.\-C\. & Chu, C\.\-P\. 2020\. Long\-term travel time prediction using gradient boosting\.Journal of Intelligent Transportation Systems, 24\(2\), pp\. 109–124\.
- Chen, Y\.\-T\., Sun, E\.W\., Chang, M\.\-F\. & Lin, Y\.\-B\. 2021\. Pragmatic real\-time logistics management with traffic IoT infrastructure: Big data predictive analytics of freight travel time for Logistics 4\.0\.International Journal of Production Economics, \(238\), pp\. 108157\.
- Cheng, J\., Li, G\. & Chen, X\. 2019\. Research on Travel Time Prediction Model of Freeway Based on Gradient Boosting Decision Tree\.IEEE Access, \(7\), pp\. 7466–7480\.
- Cristóbal, T\., Padrón, G\., Quesada\-Arencibia, A\., Alayón, F\., de Blasio, G\. & García, C\.R\. 2019\. Bus Travel Time Prediction Model Based on Profile Similarity\.Sensors, 19\(13\), pp\. 2869\.
- Diez\-Olivan, A\., Del Ser, J\., Galar, D\. & Sierra, B\. 2019\. Data fusion and machine learning for industrial prognosis: Trends and perspectives towards Industry 4\.0\.Information Fusion, \(50\), pp\. 92–111\.
- Dogru, A\.K\. & Keskin, B\.B\. 2020\. AI in operations management: applications, challenges and opportunities\.Journal of Data, Information and Management, 2\(2\), pp\. 67–74\.
- Fei, X\., Shah, N\., Verba, N\., Chao, K\.\-M\., Sanchez\-Anguix, V\., Lewandowski, J\., James, A\. & Usman, Z\. 2019\. CPS data streams analytics based on machine learning for Cloud and Fog Computing: A survey\.Future Generation Computer Systems, \(90\), pp\. 435–450\.
- Fu, K\., Meng, F\., Ye, J\. & Wang, Z\. 2020\. CompactETA\. In:Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining\. 23 August 2020, New York, NY, USA: ACM, pp\. 3337–3345\.
- Gewers, F\.L\., Ferreira, G\.R\., Arruda, H\.F\. De, Silva, F\.N\., Comin, C\.H\., Amancio, D\.R\. & Costa, L\.D\.F\. 2022\. Principal Component Analysis\.ACM Computing Surveys, 54\(4\), pp\. 1–34\.
- He, P\., Jiang, G\., Lam, S\.\-K\. & Tang, D\. 2019\. Travel\-Time Prediction of Bus Journey With Multiple Bus Trips\.IEEE Transactions on Intelligent Transportation Systems, 20\(11\), pp\. 4192–4205\.
- Helo, P\. & Hao, Y\. 2021\. Artificial intelligence in operations management and supply chain management: an exploratory case study\.Production Planning & Control, pp\. 1–18\.
- Höpken, W\., Eberle, T\., Fuchs, M\. & Lexhagen, M\. 2021\. Improving Tourist Arrival Prediction: A Big Data and Artificial Neural Network Approach\.Journal of Travel Research, 60\(5\), pp\. 998–1017\.
- Hosseinnia Shavaki, F\. & Ebrahimi Ghahnavieh, A\. 2022\. Applications of deep learning into supply chain management: a systematic literature review and a framework for future research\.Artificial Intelligence Review\.
- Hou, Y\. & Edara, P\. 2018\. Network Scale Travel Time Prediction using Deep Learning\.Transportation Research Record: Journal of the Transportation Research Board, 2672\(45\), pp\. 115–123\.
- Jian Li\. 2020\. Understanding operation patterns of urban online ride\-hailing services: A case study of Xiamen\.Transport Policy, pp\. 100–118\.
- Kamble, S\.S\., Gunasekaran, A\., Kumar, V\., Belhadi, A\. & Foropon, C\. 2021\. A machine learning based approach for predicting blockchain adoption in supply chain\.Technological Forecasting and Social Change, \(163\), pp\. 120465\.
- Kannangara, M\., Dua, R\., Ahmadi, L\. & Bensebaa, F\. 2018\. Modeling and prediction of regional municipal solid waste generation and diversion in Canada using machine learning approaches\.Waste Management, \(74\), pp\. 3–15\.
- Kantardzic, M\. 2011\.Data Mining\. Hoboken, NJ, USA: John Wiley & Sons, Inc\.
- Kantasa\-ard, A\., Nouiri, M\., Bekrar, A\., Ait el cadi, A\. & Sallez, Y\. 2021\. Machine learning for demand forecasting in the physical internet: a case study of agricultural products in Thailand\.International Journal of Production Research, 59\(24\), pp\. 7491–7515\.
- Karamizadeh, S\., Abdullah, S\.M\., Manaf, A\.A\., Zamani, M\. & Hooman, A\. 2013\. An Overview of Principal Component Analysis\.Journal of Signal and Information Processing, 4\(3\), pp\. 173–175\.
- Kilimci, Z\.H\., Akyuz, A\.O\., Uysal, M\., Akyokus, S\., Uysal, M\.O\., Atak Bulbul, B\. & Ekmis, M\.A\. 2019\. An Improved Demand Forecasting Model Using Deep Learning Approach and Proposed Decision Integration Strategy for Supply Chain\.Complexity, \(2019\), pp\. 1–15\.
- Kiranyaz, S\., Avci, O\., Abdeljaber, O\., Ince, T\., Gabbouj, M\. & Inman, D\.J\. 2021\. 1D convolutional neural networks and applications: A survey\.Mechanical Systems and Signal Processing, \(151\), pp\. 107398\.
- Kiranyaz, S\., Ince, T\., Abdeljaber, O\., Avci, O\. & Gabbouj, M\. 2019\. 1\-D Convolutional Neural Networks for Signal Processing Applications\. In:ICASSP 2019 – 2019 IEEE International Conference on Acoustics, Speech and Signal Processing \(ICASSP\)\. May 2019, IEEE, pp\. 8360–8364\.
- Kong, J\., Yang, C\., Wang, J\., Wang, X\., Zuo, M\., Jin, X\. & Lin, S\. 2021\. Deep\-stacking network approach by multisource data mining for hazardous risk identification in IoT\-based intelligent food management systems\.Computational Intelligence and Neuroscience, \(2021\)\.
- Konovalenko, I\. & Ludwig, A\. 2019\. Event processing in supply chain management – The status quo and research outlook\.Computers in Industry, \(105\), pp\. 229–249\.
- Kumar, B\.A\., Jairam, R\., Arkatkar, S\.S\. & Vanajakshi, L\. 2019\. Real time bus travel time prediction using k\-NN classifier\.Transportation Letters, 11\(7\), pp\. 362–372\.
- Lei, L\., Weizi, L\. & Srinivas, P\. 2019\. Efficient Data Collection and Accurate Travel Time Estimation in a Connected Vehicle Environment Via Real\-Time Compressive Sensing\.Journal of Big Data Analytics in Transportation, \(2–3\)\.
- Li, F\., Liu, M\., Zhao, Y\., Kong, L\., Dong, L\., Liu, X\. & Hui, M\. 2019\. Feature extraction and classification of heart sound using 1D convolutional neural networks\.EURASIP Journal on Advances in Signal Processing, 2019\(1\), pp\. 59\.
- Li, X\., Chen, W\., Zhang, Q\. & Wu, L\. 2020a\. Building Auto\-Encoder Intrusion Detection System based on random forest feature selection\.Computers & Security, \(95\), pp\. 101851\.
- Li, X\., Lu, R\., Wang, Q\., Wang, J\., Duan, X\., Sun, Y\., Li, X\. & Zhou, Y\. 2020b\. One\-dimensional convolutional neural network \(1D\-CNN\) image reconstruction for electrical impedance tomography\.Review of Scientific Instruments, 91\(12\), pp\. 124704\.
- Liu, C\., Feng, Y\., Lin, D\., Wu, L\. & Guo, M\. 2020\. IoT based laundry services: an application of big data analytics, intelligent logistics management, and machine learning techniques\.International Journal of Production Research, 58\(17\), pp\. 5113–5131\.
- Liu, S\., He, L\. & Max Shen, Z\.\-J\. 2021\. On\-Time Last\-Mile Delivery: Order Assignment with Travel\-Time Predictors\.Management Science, 67\(7\), pp\. 4095–4119\.
- Ma, J\., Chan, J\., Ristanoski, G\., Rajasegarar, S\. & Leckie, C\. 2019\. Bus travel time prediction with real\-time traffic information\.Transportation Research Part C: Emerging Technologies, \(105\), pp\. 536–549\.
- Mao, D\., Wang, F\., Hao, Z\. & Li, H\. 2018\. Credit Evaluation System Based on Blockchain for Multiple Stakeholders in the Food Supply Chain\.International Journal of Environmental Research and Public Health, 15\(8\), pp\. 1627\.
- Martínez, A\., Schmuck, C\., Pereverzyev, S\., Pirker, C\. & Haltmeier, M\. 2020\. A machine learning framework for customer purchase prediction in the non\-contractual setting\.European Journal of Operational Research, 281\(3\), pp\. 588–596\.
- Mercier, S\. & Uysal, I\. 2018\. Neural network models for predicting perishable food temperatures along the supply chain\.Biosystems Engineering, \(171\), pp\. 91–100\.
- Miao, X\., Wu, B\., Zou, Y\. & Wu, L\. 2020\. Examining the Impact of Different Periodic Functions on Short\-Term Freeway Travel Time Prediction Approaches\.Journal of Advanced Transportation, \(2020\), pp\. 1–15\.
- Milojevic\-Dupont, N\. & Creutzig, F\. 2021\. Machine learning for geographically differentiated climate change mitigation in urban areas\.Sustainable Cities and Society, \(64\), pp\. 102526\.
- Mohanta, B\.K\., Jena, D\., Satapathy, U\. & Patnaik, S\. 2020\. Survey on IoT security: Challenges and solution using machine learning, artificial intelligence and blockchain technology\.Internet of Things, \(11\), pp\. 100227\.
- Ni, D\., Xiao, Z\. & Lim, M\.K\. 2020\. A systematic review of the research trends of machine learning in supply chain management\.International Journal of Machine Learning and Cybernetics, 11\(7\), pp\. 1463–1482\.
- Nikolopoulos, K\., Punia, S\., Schäfers, A\., Tsinopoulos, C\. & Vasilakis, C\. 2021\. Forecasting and planning during a pandemic: COVID\-19 growth rates, supply chain disruptions, and governmental decisions\.European Journal of Operational Research, 290\(1\), pp\. 99–115\.
- Philip, A\.M\., Ramadurai, G\. & Vanajakshi, L\. 2018\. Urban Arterial Travel Time Prediction Using Support Vector Regression\.Transportation in Developing Economies, 4\(1\), pp\. 7\.
- Priore, P\., Ponte, B\., Rosillo, R\. & de la Fuente, D\. 2019\. Applying machine learning to the dynamic selection of replenishment policies in fast\-changing supply chain environments\.International Journal of Production Research, 57\(11\), pp\. 3663–3677\.
- Ran, X\., Shan, Z\., Fang, Y\. & Lin, C\. 2019\. An LSTM\-Based Method with Attention Mechanism for Travel Time Prediction\.Sensors, 19\(4\), pp\. 861\.
- Rolnick, D\., Donti, P\.L\., Kaack, L\.H\., Kochanski, K\., Lacoste, A\., Sankaran, K\., Ross, A\.S\., Milojevic\-Dupont, N\., Jaques, N\. & Waldman\-Brown, A\. 2019\. Tackling climate change with machine learning\.arXiv preprintarXiv:1906\.05433\.
- Servos, N\., Liu, X\., Teucke, M\. & Freitag, M\. 2019\. Travel Time Prediction in a Multimodal Freight Transport Relation Using Machine Learning Algorithms\.Logistics, 4\(1\), pp\. 1\.
- Shahbazi, Z\. & Byun, Y\.\-C\. 2020\. A procedure for tracing supply chains for perishable food based on blockchain, machine learning and fuzzy logic\.Electronics, 10\(1\), pp\. 41\.
- Sharma, R\., Kamble, S\.S\., Gunasekaran, A\., Kumar, V\. & Kumar, A\. 2020\. A systematic literature review on machine learning applications for sustainable agriculture supply chain performance\.Computers & Operations Research, \(119\), pp\. 104926\.
- Smagulova, K\. & James, A\.P\. 2019\. A survey on LSTM memristive neural network architectures and applications\.The European Physical Journal Special Topics, 228\(10\), pp\. 2313–2324\.
- Syafrudin, M\., Alfian, G\., Fitriyani, N\. & Rhee, J\. 2018\. Performance Analysis of IoT\-Based Sensor, Big Data Processing, and Machine Learning Model for Real\-Time Monitoring System in Automotive Manufacturing\.Sensors, 18\(9\), pp\. 2946\.
- Syam, N\. & Sharma, A\. 2018\. Waiting for a sales renaissance in the fourth industrial revolution: Machine learning and artificial intelligence in sales research and practice\.Industrial Marketing Management, \(69\), pp\. 135–146\.
- Tang, J\., Zheng, L\., Han, C\., Yin, W\., Zhang, Y\., Zou, Y\. & Huang, H\. 2020\. Statistical and machine\-learning methods for clearance time prediction of road incidents: A methodology review\.Analytic Methods in Accident Research, \(27\), pp\. 100123\.
- Videsh, D\. 2021\. An Overview of RFID Technology Applications and Diffusion in Supply Chain Management\.International Journal of Pure and Applied Mathematics, 119, pp\. 1291–1305\.
- Viellechner, A\. & Spinler, S\. 2020\. Novel data analytics meets conventional container shipping: predicting delays by comparing various machine learning algorithms\.
- Wang, K\., Ma, C\., Qiao, Y\., Lu, X\., Hao, W\. & Dong, S\. 2021\. A hybrid deep learning model with 1DCNN\-LSTM\-Attention networks for short\-term traffic flow prediction\.Physica A: Statistical Mechanics and its Applications, \(583\), pp\. 126293\.
- Wang, F\. & Ross, C\.L\. 2018\. Machine Learning Travel Mode Choices: Comparing the Performance of an Extreme Gradient Boosting Model with a Multinomial Logit Model\.Transportation Research Record: Journal of the Transportation Research Board, 2672\(47\), pp\. 35–45\.
- Wang, Z\., Fu, K\. & Ye, J\. 2018\. Learning to Estimate the Travel Time\. In:Proceedings of the 24th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining\. 19 July 2018, New York, NY, USA: ACM, pp\. 858–866\.
- Yang, H\., Zou, Y\., Wang, Z\. & Wu, B\. 2018\. A hybrid method for short\-term freeway travel time prediction based on wavelet neural network and Markov chain\.Canadian Journal of Civil Engineering, 45\(2\), pp\. 77–86\.
- Yuan, Y\., Shao, C\., Cao, Z\., He, Z\., Zhu, C\., Wang, Y\. & Jang, V\. 2020\. Bus dynamic travel time prediction: Using a deep feature extraction framework based on RNN and DNN\.Electronics, 9\(11\), pp\. 1876\.
- Zantalis, F\., Koulouras, G\., Karabetsos, S\. & Kandris, D\. 2019\. A Review of Machine Learning and IoT in Smart Transportation\.Future Internet, 11\(4\), pp\. 94\.
- Zhao, J\., Gao, Y\., Qu, Y\., Yin, H\., Liu, Y\. & Sun, H\. 2018\. Travel Time Prediction: Based on Gated Recurrent Unit Method and Data Fusion\.IEEE Access, \(6\), pp\. 70463–70472\.
- Zhong, R\.Y\., Newman, S\.T\., Huang, G\.Q\. & Lan, S\. 2016\. Big Data for supply chain management in the service and manufacturing sectors: Challenges, opportunities, and future perspectives\.Computers & Industrial Engineering, \(101\), pp\. 572–591\.

相似文章

ChurnNet:一种用于流失预测的优化现代AI

arXiv cs.LG

本文评估了传统机器学习技术(随机森林、XGBoost、支持向量机)与深度学习模型(统一多任务时间序列模型)在零售客户流失预测中的表现,发现传统方法在预测性能和效率上可以更胜一筹。