Real time tracking in truck fleet management

Similar documents
Transform Application Performance Testing for a More Agile Enterprise

Demand based price determination for electricity consumers in private households

PC-Based real time transportation control services

<Insert Picture Here> Coherence as a solution for ecommerce Capacity Absorption

Back office HMI prototype

Keep control is essential.

Indoor GPS for Material Handling and Warehousing

A Sophisticated Transit Signal Priority System How it Works

Combined Transit and Freeway Real-Time Information for Smarter Modal Choices

PRODUCT DESCRIPTIONS AND METRICS

SMART TRAFFIC MANAGEMENT SOLUTIONS FOR A CONNECTED WORLD

Fleet Optimization with IBM Maximo for Transportation

Mastering the operational complexity of IoT Applications

Strategic Route Planner

Vision of Congestion-Free Road Traffic and Cooperating Objects

Scania driver services Connected Services & Driver Development

Improving System Dependability with Functional Alternatives

USE CASES OF MACHINE LEARNING IN DEXFREIGHT S DECENTRALIZED LOGISTICS PLATFORM

Proposed Data Acquisition & Handling System for Pilot Emission Trading Scheme in India

Choosing a Location-based Application for your Business

SAP Business One 9.3, version for SAP HANA Overview of the Exclusive Features. Global Roll-out, SAP July, 2018

An Approach to Predicting Passenger Operation Performance from Commuter System Performance

Proposed Solution for Implementation, Monitoring and Maintaining Vehicle Tracking System for vehicles of Solid Waste Management

Integrate mapping, routing and optimisation software

Cloud Computing Lectures SOA

Vigil Cloud. General User Manual

SMART PARKING MANAGEMENT SYSTEM. Proposed By CYBERCINATICS PRIVATE LIMITED

A. ( ) ( ) 2. A process that is in statistical control necessarily implies that the process is capable of meeting the customer requirements.

CONTACT US: Call: For Sales: For Support: Outside the US? Call:

5 questions to ask. When Choosing Your Cloud Print Solution

A technical discussion of performance and availability December IBM Tivoli Monitoring solutions for performance and availability

Intelligent Payment Management for Today and Tomorrow Technology Advancement to Navigate the Converging Payments Landscape

Tracking your Freigh Using IoT Fleet Monitoring and OTM

Intelligent Medicine System Prototype of The Internet of Things

Ultimate GPS Tracking Platform. System Overview. gurtam.com

Industrial IoT: From Concept to Business Reality. Improving O&G Operations with IoT. Progressing through the 5 Stages of IoT

ELECTRONIC TRAIN ORDERS

Building Real-time and Responsive Applications on Azure. Girish Phadke & Maneesha Marathe Tata Consultancy Services Ltd.

FLEET MANAGEMENT SYSTEM (FMS)

The Open IoT Stack: Architecture and Use Cases

IBM Balanced Warehouse Buyer s Guide. Unlock the potential of data with the right data warehouse solution

Super Schlumberger Scheduler

OPTIMIZING RAMP METERING STRATEGIES

The Rise of Engineering-Driven Analytics. Richard Rovner VP Marketing

DELIVERY. Door to door Delivery

Interactive Transit Information and Decision Support System. The Connected Vehicle Technology Challenge

Sigma 5. Changing Telecommunications

A SURVEY ON VARIOUS TRAFFIC MANAGEMENT SCHEMES FOR TRAFFIC CLEARANCE, STOLEN VEHICLE AND EMERGENCY VEHICLE

Smart Traffic: A Case Study for Developing IoT Applications in Vietnam. Tran Vu Pham and Duc Hai Nguyen

What s Behind VPVision? next generation vehicle telemetry V 1.0

Jack Weast. Principal Engineer, Chief Systems Engineer. Automated Driving Group, Intel

Sizing SAP Hybris Billing, pricing simulation Consultant Information for Release 1.1 (et seq.) Document Version

Scania Fleet Management. Data drives Development

LOAD SHARING IN HETEROGENEOUS DISTRIBUTED SYSTEMS

Evaluating the Handling of New Assignments in a Global Truck Platooning System Using Large- Scale Simulations

Digital Transformation - What s Happening in Waste and Recycling Tech, Software, Cloud, Data, Mobile & Analytics?

Data processing. In this project, researchers Henry Liu of the Department of Civil Engineering and

How the IoT and Data Analytics Will Drive the Future of the Supply Chain

Improving Financial Performance with Predictive Analytics

The Rise of Engineering-Driven Analytics

Survey paper on Smart Parking System based on Internet of Things

The Research of Middleware Architecture of Intelligent Logistics System Based on SOA

RAILROAD & CO. +Street. Version 9. Manual

Triage: Balancing Energy and Quality of Service in a Microserver

SIMULATION ON DEMAND: Using SIMPROCESS in an SOA Environment

deister software Company Overview

Applications of Microscopic Traffic Simulation Model for Integrated Networks

In-Memory Analytics: Get Faster, Better Insights from Big Data

IBM Emptoris Supplier Lifecycle Management on Cloud

IBM Decision Optimization and Data Science

Analyzing Engineering Process Data at Microsoft: What's the Opportunity?

Revision confidence limits for recent data on trend levels, trend growth rates and seasonally adjusted levels

Oracle Fusion Product Lifecycle Portfolio Management Using Product Lifecycle Portfolio Management. 11g Release 8 (11.1.8)

FROM FIXED FEE TO FIXATING ON PROFIT. The new financial fundamentals of Everythingas-a-Service

Excellence as a commitment, innovation as a goal. Flexibility and Experience

Service Goes Digital! A toolbox for acquiring digital capabilities for your service business

Introduction to the IBM MessageSight appliance for Mobile Messaging and M2M

My Oracle Support Configuration Manager

Loading. Do s and Don ts of App Development. 15 tips for the business and development team when developing or improving mobile or web applications

Making Better haulage decisions through Discrete Event Simulation

Comprehensive Enterprise Solution for Compliance and Risk Monitoring

CONNECTED TRAFFIC CLOUD. A New Approach to Intelligent Traffic Management

SSL ClearView Reporter Data Sheet

Application Performance Monitoring (APM) Technical Whitepaper

WHITEPAPER. Unlocking Your ATM Big Data : Understanding the power of real-time transaction monitoring and analytics.

Fleet Management and Compliance. Improve driver safety and simplify regulatory compliance, while saving time and money

IBM Watson IoT Strategy

HIGHWAY ACCIDENT PREVENTION USING VANETS

Discrete Event simulation

Configuring Performance Routing Cost Policies

Optimize your Service Cloud Data Best Practices, Data Extraction and NextGen Reporting

Technology Challenges for the Global Real-Time Enterprise.

EVENT LOGISTICS. only A to Z general contractor in the event and large venue industry with

Mashing up Web 2.0 and B2B E-CommerceE. Patrick Yee Chief Architect

Examining and Modeling Customer Service Centers with Impatient Customers

LASER GUIDANCE DETECTIONMEASUREMENT

IT, once considered a supporting player in most companies, EMERGED AS A BUSINESS SUPERSTAR.

EB TechPaper. Big Data Analytics enables new applications in the automotive industry. elektrobit.com

ICT and e-learning in Intermodal Transport

Translate Integration Imperative into a solution Framework. A Solution Framework. August 1 st, Mumbai By Dharanibalan Gurunathan

Transcription:

UPTEC F 17044 Examensarbete 30 hp Augusti 2017 Real time tracking in truck fleet management Master thesis in embedded systems Gustav Wiklander

Abstract Real time tracking in truck fleet management Gustav Wiklander Teknisk- naturvetenskaplig fakultet UTH-enheten Besöksadress: Ångströmlaboratoriet Lägerhyddsvägen 1 Hus 4, Plan 0 Postadress: Box 536 751 21 Uppsala Telefon: 018 471 30 03 Telefax: 018 471 30 00 This thesis researches Scania's challenge to display the position of trucks, with high accuracy and good user experience while with minimal position transfers from the truck. This thesis presents an event triggered position update (ETPU) algorithm for sending positions from the truck along with real time estimation on the client. The key point with this system is that the truck computes the same estimation to evaluate its accuracy and sends a new position if the estimate is insufficient. This achieves a system in which position updates are only done when needed to achieve a selected accuracy. Simulations were done and metrics for: accuracy, data consumption and user experience were applied for evaluation. Results are presented to inform the readers of the ETPU's potential. Hemsida: http://www.teknat.uu.se/student Handledare: Jakob Palmheden Ämnesgranskare: Christian Rohner Examinator: Tomas Nyberg ISSN: 1401-5757, UPTEC F17044

1 Populärvetenskaplig sammanfattning Scania, vilket är ett premium märke inom lastbilar tillgodoser sina kunder med mjukvara för att spåra sina lastbilsflottor. Positionen av kundens lastbil är visualiserad på en digital karta. Det är inte lastbilens nuvarande position utan den senaste mottagna positionen. Positionen kan vara upp till en minut gammal. Detta examensarbete gjordes i syfte att hitta en lösning som uppnår högre noggrannhet i positionen på kartan utan att skicka positioner från lastbilen oftare. I stället för att visa den senast mottagna positionen, så realtids estimerar detta examensprojekt lastbilens position. Denna estimering görs även på lastbilen som skickar sin position. Då vet lastbilsmjukvarar hur dess position visas hos kunden och kan ifall den skiljer sig för mycket från dess faktiska skicka en ny position. Examensarbetet bestod också av framtagandet av en realistisk simuleringsmiljö för att utvärdera det nya systemet för realtids positionering av lastbilar. Resultatet visade att det var möjligt att förbättra noggrannheten och samtidigt minska den genomsnittligga frekvensen man skickar positioner från lastbilen. 1

2 Acknowledgements We would like to thank Scania AB and especially Jacob Palmheden our supervisor at Scania who made the foundation to start this thesis. I would also personally thank Christian Rohner at Uppsala university who reviewed and gave advice during the thesis work. 2

3 Abbreviations and definitions Position-aware applications Position based service FMS Fleet management system - IT system for managing a large set of vehicles in areas such as logistics, maintenance, driver management, fuel management, tracking and diagnostics. FMP Fleet management portal - client services on board Something that is permanently installed on the platform and is communicating through a cable or wireless connection with other nodes on the platform. off board something deployed on a server or residing in some network part which is not on the platform. device mobile device with a wireless connection to the platform or a mobile device with a cable connection to the platform which can be detached by the end user. Data center Defined as middleware is defined in paper [2]. IoT Internet of Things SOA Service-oriented architecture IT Information technology DPUA Decisive Positional Updating Algorithm PDF Probability density function Reverse geocoding Translates a GPS coordinate to a readable street address. 3

Contents 1 Populärvetenskaplig sammanfattning 1 2 Acknowledgements 2 3 Abbreviations and definitions 3 4 Introduction 5 4.1 Background.............................. 5 4.1.1 Internet of things and industrial companies........ 5 4.1.2 Scanias Fleet Management System............. 5 4.1.3 Scania s current algorithm for position updates...... 5 4.2 Purpose of the thesis......................... 5 4.2.1 System architecture..................... 6 4.2.2 Event based position update................ 6 4.2.3 Real time estimation of the position............ 6 4.2.4 Investigate position message latency............ 6 5 System architecture 6 5.1 Architectural considerations..................... 6 5.2 The Architectural design....................... 7 6 Algorithm 7 6.1 Time interval based algorithm.................... 7 6.2 Event Triggered Position Update Algorithm............ 8 6.2.1 Position estimation...................... 8 6.2.2 Trigger set for position update............... 9 6.3 Delaying the estimated position................... 9 6.4 Variable ETPU parameters..................... 10 6.5 Comparison metric system...................... 11 6.6 Position message latency....................... 11 7 Simulation methodology 12 7.1 Simulation data............................ 12 7.2 Simulation software.......................... 12 7.2.1 Simulation design....................... 12 7.3 Simulation procedure......................... 13 7.4 Simulating latency.......................... 13 8 Results 15 8.1 Data consumption and error distance................ 15 8.2 Incorrect routes............................ 18 9 Discussion 20 9.1 Maximum error and time...................... 20 9.2 Average error distance and data consumption........... 20 9.3 Latency................................ 20 9.4 User experience............................ 20 10 Future work 21 4

4 Introduction 4.1 Background 4.1.1 Internet of things and industrial companies Internet of things (IoT) is becoming more relevant in the logistics and the transportation industry because it enables a new form of IT services that relies on real time data from end nodes such as vehicles. Tracking vehicle position, route, and predicting future position can all be provided by IoT technologies [4]. Scania, a world leading manufacturer of trucks has embraced IoT technologies. All trucks manufactured today by Scania have a 3G communication unit. This global access to truck status data has resulted in development of IT services under the umbrella named Connected Services to help customers improve efficiency and make strategic decisions. Scania describes its own benefits with providing these services as: Developing and/or sustaining competitiveness and revenue streams. [1] Which is in accordance with research as to how IT services can enhance the core products for industrial manufacturers [3]. 4.1.2 Scanias Fleet Management System Scania s fleet management system (FMS), consisting of: sensors installed in the trucks, CAN bus, driver interface units, a wireless communication unit, a data center to store sensor- and driver data, server processes, and client applications are in total Scania s FMS. Vehicle position and tracking are the most used services at Scania s fleet management portal (FMP). The position and vehicle tracking services represent more than 60% of FMS usage and about 65% of subscriptions. Thus the algorithm for sending position data and displaying truck positions has a significant impact on the value of Scania s FMP platform. 4.1.3 Scania s current algorithm for position updates As of today Scania s trucks send their positions to a data center with fixed intervals. The positions are used for many of the services in the FMP but mainly for displaying the truck s latest transferred position and to track its route. The position data is also used for data-mining purposes internally by Scania to make strategic business decisions. 4.2 Purpose of the thesis The quality of position-aware IT services by definition depend on the quality of the position data. The necessary level of quality differs between services. A service that retraces the route of a truck requires no more than the position points at every taken turn or exit to reconstruct the correct route. In general for retracing services, transfer latency is not of a concern because the processing is done in the aftermath. Services with real-time functionality require up-to-date positions. However, sending position data via the cellular network costs money. A balance between data rate consumption and position quality is desired. With 5

position updates occurring occasionally real time estimates could increase the accuracy. The quality of the estimate depends on the quality of the last available position. Quality in this case is not only a matter of time elapsed but also speed continuity and road equality. If the estimate is based on the assumptions that the truck continues at the same speed and along the current road, every time the truck invalidates this assumption the on-board system triggers a new position transfer to keep the quality of the estimate. The comparison naturally has to be done on-board, thus requiring the on-board to also implement the estimation algorithm for comparison with the actual position. 4.2.1 System architecture One of the architectural challenges involving big data in the world of IoT is scalability. Scalability in this context refers to scaling capability of volume storage and data processing [2]. The thesis presents an architecture to handle the scalability issue regarding positional data processing on a large set of trucks. 4.2.2 Event based position update As mentioned the truck will do the same estimation as the client to compare with the actual position. When an event occurs such as exiting a highway or turning left in an intersection the estimation algorithm will not only deviate from the actual position but also display an incorrect route. The algorithm then triggers a position update to prevent displaying an incorrect route in the client. The thesis presents the design and simulation results of a Event Triggered Position Update (ETPU) algorithm using real truck position data. 4.2.3 Real time estimation of the position An ETPU that bases it s decision to send on the inaccuracy of the estimate, can when one ignores latency guarantee an upper bound of inaccuracy which does not grow with time. The accuracy of the estimate it self will depend on how strict the on-board trigger set is configured. The thesis presents an algorithm for estimating truck position given an earlier position. 4.2.4 Investigate position message latency As stated earlier, the quality of the estimate depends on the quality of the last available position. Latency when transferring positions wirelessly from on-board to a data center will cause the availability of the updated position to be delayed for client access and the prior position will be used as reference for an extended duration. The upper bound inaccuracy can no longer be guaranteed. The thesis presents a realistic latency probability distribution and robustness measures to reduce the latency impact. 5 System architecture 5.1 Architectural considerations As stated earlier one of the challenges with big data in IoT is scalability. As data arrive from more than 200,000 trucks to Scania s data center the processing 6

and insertion has to be done at a faster rate than the average rate of arrival [2]. Therefore, any data processing should if possible be delegated to the sensor nodes (truck) and the client nodes (client browser). The architecture proposed places all processing on the sensor and client nodes. The truck applies the ETPU algorithm and when it triggers sends a position to the data center. The client node retrieves the latest position from the data center and applies the same estimation algorithm. The data center is only used for storage and retrieval to improve the scalability. 5.2 The Architectural design Figure 1: The proposed architectural design. 6 Algorithm In this section Scania s algorithm for the decision to send and sample positions is presented. The ETPU algorithm is presented and the design choices are explained. A metric system for evaluating the algorithms is also presented. 6.1 Time interval based algorithm Scania s algorithm for the decision to send positions is interval based. Meaning that position transfers occurs with a fixed time period between each transfer. The transfer does not only contain the current position of the truck but also a buffer of additional position samples which are sampled independently and 7

the sampling frequency depends on the velocity of the truck. Scania s most premium position subscription provides position updates every minute. The intention is to provide accurate position data but still with reasonable data consumption. This thesis compares the ETPU algorithm with Scania s most premium position service since both have similar goals as to accuracy and data consumption. Scania s algorithm: Transfers current position every one minute. Also with every transfer a position buffer is also transfered. Position buffer is sampled via: Speed < 2 km/h sample position and wait until speed > 6 km/h and sample again. Speed < 30 km/h sample next position after 60 seconds. Speed > 30 km/h sample next position after 2 speed h km seconds. 6.2 Event Triggered Position Update Algorithm 6.2.1 Position estimation Given a prior position with speed, heading and the time sampling. The real time estimation is done as follows: 1. Map position to a road. 2. Estimate driving direction by comparing truck heading to road geometry. 3. Assume the truck continues along the same road. 4. Continue at the same speed. 5. If the prior position maps poorly to a road segment use the prior position as estimate. Such instances include being in a parking lot or off road and it will be very difficult to make a good estimate and certainly mapping to a road will definitely produce an incorrect route. Simply making it stand still is a safe fall back. 6. If the speed exceeds the speed limit plus an additional percentage: the speed of the estimate is lowered to the speed limit. The speed limit along a road is not necessarily constant and if the speed limit drops to a lower level the estimate will drive past the real truck and trigger a position update at some point. Being ahead is worse than being behind because of the risk of displaying an incorrect route since the estimate will have already passed the intersection or exit which might be taken. 7. If the speed falls below a minimum speed threshold: the estimate speed is set to zero. At low speeds setting the speed to zero will only lead to the error distance growing slowly. Secondly this will guarantee that the estimate is behind the real position and thus an incorrect route is impossible to display. 8. If the road ends: try turning right as is done in circulations. Using a default guess is better than nothing and it will be the correct assumption when entering circulations. 8

6.2.2 Trigger set for position update After the estimation is done the trigger set is applied to potentially trigger a position update. To improve the reliability a trigger buffer is used, requiring one or more consecutive triggers to occur before an actual position update is fired. The trigger set is defined as: The distance between the real truck position and the estimated position exceeds a threshold. Applying a maximum allowed error distance keeps the error from growing indefinitely thus always gives a fixed estimation accuracy independent of time. If the real position maps well to a road segment: The estimate positions road mapping does not match the actual road and there is a slight heading difference. If the truck changes road a new position has to be transferred because the estimation will display an incorrect route. The estimate position and the real position map to the same road but with opposite headings (with some margin). This indicates that the estimate is driving in the opposite direction which is also an incorrect route. The estimate does poorly map to a road segment. When the truck for instance leaves a parking lot it is time to resume doing estimates. 6.3 Delaying the estimated position One problem with estimating the position in real time is instances when the estimation is ahead of the real truck. It happens when the truck slows down relative to the last position update and thus the estimation will exceedingly be ahead of the real truck. It is only a problem in combination with an unexpected turn or exit because the estimation will for some duration travel on an incorrect route until a new position update is done to correct this error. The duration of an incorrect route should be reduced and preferably removed entirely. Still doing the estimate in real time on the truck and applying the trigger set to distinctively decide if a position update is required, but on the client side applying the estimation algorithm a fixed number of seconds behind the actual time reduces the risk of displaying an incorrect route. Since displaying an incorrect route requires the estimate to be passing by the exit/turn as the algorithm is in the process of detecting such an event or has already passed it which means the estimate is ahead of the truck. Then, by adding a delay to the client estimate the risk of the delayed estimate to fall into the mentioned scenario is less likely and because of the maximum error distance threshold the actual estimate cannot be too far ahead of the actual truck position. What will then happen when the truck takes an exit or makes a turn in an intersection is that a position update will probably trigger within seconds. If the delayed estimate is behind in travel time more than the time to detect the event then the position update for that event will be available in time for the client estimate to take the exit or make the turn. The client estimation can make the correct 9

maneuver because a position update has already taken place in the future relative to the client s delayed time. Thus instead of a normal position estimate using the past position update one can just make a route from the past position update to the future position update. An additional benefit of adding a delay of N seconds to the client is its impact on position update rate. For instance, when a position update occurs by the on-board system the estimation in the client will have access to a position N seconds ahead of the client estimation. For the next N seconds the client can route from the past position to the future position. During that period any additional position updates will not improve the estimation during that period. After a position update occurs the on-board system can wait with sending a new position for the next N seconds even if the ETPU algorithm triggers a position update during that period. Therefore, adding a delay limits the minimum time between position updates and by doing that also improves the average position update rate. 6.4 Variable ETPU parameters Name Type Function Maximum error distance [m] If error distance exceeds Maximum error distance a position update is triggered. Delay [s] Amount of time the client estimation is delayed. Minimum speed [km/h] If speed is less or equal then speed used for estimation is zero. Consecutive triggers Number The ETPU algorithm has to trigger N times in a row for a position update to be fired. Speed limit threshold % If speeds exceeds the speed limit by more the speed limit threshold the estimation speed is lowered to the speed limit. Incorrect road Degrees Not only has the estimation map to a different road heading must differ more than Incorrect road. Opposite direction Degrees In order for a opposite direction to be triggered the heading difference must exceed Opposite direction. Matching Threshold Number HEREs API (see section 7.2) to reverse geocode also produces a match quality of the mapping. If the matching quality is not greater than the threshold the position is deemed as not on a road. Table 1: Variable parameters of the ETPU algorithm. 10

6.5 Comparison metric system In order to evaluate the ETPU algorithm and Scania s time interval based position update algorithm, a metric system is required. The metric system has to reflect the points of interest in regard to data consumption rate and estimation accuracy. In the thesis three metrics were chosen to evaluate the algorithms: 1. Data consumption rate - The less the better because the cost of wireless data consumption. 2. Average error distance - Average error distance in the client in relation to the actual position. 3. Incorrect routing - Only occurs for the ETPU since it displays an estimate while the time interval displays the latest available position. An incorrect route, such as continuing forward in a intersection while the truck actually turned left, one could argue is a severe error since the fleet managers who observes the truck movement will first assume that the driver has made a mistake and later when the ETPU triggers an update will see that the driver actually turned left and will instead loose confidence in the FMP positioning service. 6.6 Position message latency After the ETPU algorithm has triggered the need for a position update the onboard system transfers the position data wirelessly to Scanias data center. In the real world the transfer takes some time and has to be considered in the model. Latency breaks the maximum-distance-threshold s guarantee of accuracy since the client will display an incorrect estimate during the latency period. It also increases the likelihood of displaying an incorrect route. 11

7 Simulation methodology 7.1 Simulation data The simulation used an hour of sufficiently high resolution position data of a truck driving back and forth between Södertälje and Botkyra in Sweden. The route consist of to a large degree of high speed motorway but also of exits, circulations, turns and speed changes. The GPS positions had a one second resolution, speed had a higher resolution but was averaged down to one second resolution, heading for each position was calculated as the direction from the last position (with a successful heading calculation) to the current position, if the distance was greater than three meters, otherwise the last successful heading was used instead. 7.2 Simulation software HERE provides a map and a navigation API made with the intent for city and vehicle navigation. HERE map was chosen as the navigation API as it provided the necessary functionality required by the ETPU algorithm and its visualization capabilities. The simulation was written in JavaScript to easily interface the HERE map API and because HERE map works well in web browsers. Displays a map in a browser with focus on street navigation. Reverse geocode a GPS coordinate to a street address and its matching quality (see section 6.2.2). Reverse geocode a GPS coordinate into a road segment with shape. It is needed when estimating the position since the truck continues along the road. Display custom markers on the map. Used in simulation to display the truck s actual position, the ETPU algorithm s estimated position and the positions transferred to the data center. Able to route between two GPS coordinates which is used in the client estimation when using delay as mentioned in section 6.3. 7.2.1 Simulation design The code built to run the simulation was divided into objects resembling the architectural design described in figure 1. A truck object was designed which at each tick updates its position, speed, heading and ran the ETPU algorithm to check if a position update was necessary. A data center object to store all the positions sent from the truck. A client object to retrieve the latest position from the data center applying the estimation algorithm. 12

7.3 Simulation procedure Simulations were done by replaying the one hour truck driving data, described in section 7.1, applying the ETPU algorithm every second and updating the client estimation every second. The metrics were calculated as follows: 1. Data consumption rate was represented by two figures: (a) Average time between position transf ers = total time total number of position transf ers (b) Average transf erred bytes per minute = message size 2. Average error distance = total number positions transfers total minutes total time t=0 Distance(T ruck position(t), Estimate position(t)) total time 3. Incorrect routing - Total number of incorrect routes. Simulations were done with varying values of the parameters: maximum error distance and the amount of delay. The parameters described in table 1. were fixed throughout all simulations. Maximum error distance [m] 50 75 100 125 250 500 1000 Delay [s] 0 5 10 15 20 30 45 60 Table 2: Parameter variations during simulation. Name Value Minimum speed [km/h] 6 Consecutive triggers 3 Street Match Quality Threshold 0.65 Speed limit threshold 10% Incorrect road 10 Opposite direction 120 Table 3: Parameters with fixed values during simulation. 7.4 Simulating latency In order to simulate the impact of latency in a realistic manner a probability distribution function (PDF) for latency was crafted. Scania s trucks send a message, with the name current status message, which attaches at compilation a time stamp. As the message is inserted into the database a time stamp for storage is also added. Subtracting the time at message compilation from the 13

time of data base insertion represents the latency until available. A query was done on all position messages between 2015-01-01 up to present in order to produce a PDF for transmission latency. Latencies greater than three minutes were not included because disconnection scenarios are not part of the thesis investigation. Figure 2: Latency distribution from message compilation until available. Produced from a data set of more than 600 million. For simulation purposes, probabilities and cumulative sums were derived from figure 2. in order to map a random number to a latency at each position update. Latency [s] Probability [%] < 1 2.4 < 2 61.3 < 3 87.3 < 4 91.7 < 5 93.5 < 10 96.1 < 15 96.8 < 20 97.1 < 30 97.5 < 60 99.1 < 180 100.0 Table 4: Discrete cumulative distribution of on-board position transfer latency. 14

8 Results 8.1 Data consumption and error distance Figure 3: Average error distance where the clusters represent different values of the delay parameter and the columns within each cluster represent different values of the maximum error distance parameter. Latency according to table 4. was part of the simulation. The black horizontal line represents the average error distance of Scania s algorithm. As seen in figure 3. Scania s interval based algorithm had an average error distance of 522 meters. With no delay the ETPU algorithm had an average error distance of 22 meters with the max error distance parameter set to 50 meters and 194 meters with the max error distance set to 1000 meters. Up until 30 seconds delay in the client the average error distance was for the ETPU algorithm less than that of Scania s interval based algorithm. Adding a delay in the client will increase the error distance between the client position and the real time position since the truck will have have traveled during the delay time. As can be seen in figure 3 as the delay increases the dependency on the max error distance parameter has diminished impact. 15

Figure 4: Data consumption in relation to Scania s algorithm. The clusters represent different values of the delay parameter and the columns within each cluster represent different values of the maximum error distance parameter. Figure 5: Data consumption in bytes per minute. The clusters represent different values of the delay parameter and the columns within each cluster represent different values of the maximum error distance parameter. The black horizontal line represents the byte consumption of Scania s algorithm. As seen from figure 4 and figure 5. the data consumption is lower for the ETPU algorithm in all cases except with a max error distance at 50 meter together with the delay set to any of the values: 0, 5 or 10 seconds. A max error distance at 75 meters and a delay set to either 0 or 5 seconds. The lowest data consumption was 36% in size of Scania s interval based algorithm, in other words, a data reduction of 64 percentage points. It was achieved with the max error distance at 1000 meters and a delay of 60 seconds. 16

Figure 6: Correlation between data consumption and average error distance. By combining the data from figure 3. and figure 4 to produce the result set of both average error distance and data consumption. The trend line is the least square regression line of the result set. The data consumption and the average error distance is relative to the simulation results of Scania s interval based algorithm. As can be seen from figure 6. in order to reduce the data consumption an increase in the average error distance will generally be the trade off. Figure 7: Average transfer interval between position updates where the clusters represent different values of the delay parameter and the columns within each cluster represent different values of the maximum error distance parameter. Latency according to table 4. was part of the simulation. The black horizontal line represents the average transfer interval of Scania s algorithm. 17

8.2 Incorrect routes Figure 8: Total number of incorrect routes during a one hour simulation without latency. The clusters represent different values of the delay parameter and the columns within each cluster represent different values of the maximum error distance parameter. Increasing the delay reduces the number of incorrect routes as seen in figure 8. Using a delay of 20 seconds or more removes 79-100% of all incorrect routes compared to using no delay in the simulation. Figure 9: Total number of incorrect routes during a one hour simulation with latency. The clusters represent different values of the delay parameter and the columns within each cluster represent different values of the maximum error distance parameter. The black stacked columns are the additional incorrect routes caused by transfer latency. Adding latency to the simulation increase the number of incorrect routes as 18

seen in figure 9. The result of a 5 second delay without latency in figure 8. was better than a 10 seconds delay with latency in figure 9. 19

9 Discussion 9.1 Maximum error and time A major difference between a time interval based position update and the Event Triggered Position Update (ETPU) algorithm is the characteristics of the client error distance. For a time interval based position update the maximum error distance, assuming constant speed, grows linearly with time in proportion to speed. The circular area with a radius of maximum error distance thus grows exponentially with time. In the case of the ETPU algorithm the maximum error distance is fixed since a position update is triggered if the error distance exceeds this threshold. Thus, regardless of time since last position update the maximum error of the estimate is constant. 9.2 Average error distance and data consumption The ETPU algorithm manages to improve on both the average error distance metric and the data consumption metric at the same time. For instance, an using a delay of 15 seconds and a max error distance of 250 meters reduced the average error distance with 55% and the data consumption with 47%. Due to the negative correlation between estimation accuracy and data consumption, i.e. improved the accuracy is compensated by worse data consumption and vice versa, further improvements in one of the metrics means less of an improvement in the other. 9.3 Latency Latency has a major impact on the number of incorrect routes as seen in figure 9. The latency results in that the previous position is used for estimation an extended period even though the ETPU algorithm has triggered the need for a position update. This extended period increases the risk of incorrect routes. The proposed solution to handle latency is to further increase the delay parameter. The results in figure 9 show an increase in delay reduces the impact of latency on the incorrect routes metric. 9.4 User experience Smooth movement of the truck in the client is important for user experience. The more the estimation resembles the movement of a real truck the more the user will trust the estimated real time movement. A high number of incorrect routes results in an equal high number of jumps in the truck position from one route to another. These correction jumps do not resemble truck movement and reduces the user experience. Since increasing delay reduces the number of incorrect routes and delay also reduces data consumption, the data consumption will be positively affected by reducing the number of incorrect routes. Thus constructing good user experience with low data consumption are very possible. However, low error distance is in conflict with both the data consumption and the number of incorrect routes metric and will thus suffer if data consumption and user experience is prioritized. 20

10 Future work Future projects which continue along this topic would suitably try to implement the ETPU model in hardware to test its capacity and limitations in the real world. It would also be interesting to understand how the ETPU algorithm works in different environments such as cities and highways. Cities - would involve a lot of stop signs, pedestrian crossing and turns, thus making it difficult to predict the truck movement for a duration longer than 30 seconds. Highways - are the most predictable because it is the environment where the speed is the most constant and one follows the same road for the longest period of time. A third point of interest would be to investigate the different industries where this service would be of market value. References [1] Scania inline - connected services and solutions. [2] C. Cecchinel, M. Jimenez, S. Mosser, and M. Riveill. An architecture to support the collection of big data in the internet of things. 2014 IEEE World Congress on Services, pages 442 449, June 2014. [3] Anna Salonen. Service transition strategies of industrial manufacturers. Industrial Marketing Management, 40(5):683 690, 2011. Service and Solution Innovation. [4] L. D. Xu, W. He, and S. Li. Internet of things in industries: A survey. IEEE Transactions on Industrial Informatics, 10(4):2233 2243, Nov 2014. 21