detection and analysis of detours of commercial …

12
DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL VEHICLES DURING HEAVY RAINS IN WESTERN JAPAN USING MACHINE LEARNING TECHNOLOGY Yosuke KAWASAKI 1 , Shogo UMEDA 2 and Masao KUWAHARA 3 1 Member of JSCE, Assistant Professor, Graduate School of Information Sciences, Tohoku University (6-6-06 Aoba, Aramaki-aza Aoba-ku, Sendai 980-8579, Japan) E-mail: [email protected] (Corresponding Author) 2 Member of JSCE, Researcher, New Industry Creation Hatchery Center (NICHe), Tohoku University (6-6-10 Aoba, Aramaki-aza Aoba-ku, Sendai 980-8579, Japan) E-mail: [email protected] 3 Member of JSCE, Professor, New Industry Creation Hatchery Center (NICHe), Tohoku University (6-6-10 Aoba, Aramaki-aza Aoba-ku, Sendai 980-8579, Japan) E-mail: [email protected] In this study, we detect the detours of commercial vehicles during heavy rains in western Japan using machine learning technology and then analyze the cause of these detours. Due to heavy rains in 2018 in western Japan, road regulation was implemented over a wide area. GPS-generated probe trajectories re- vealed the detour routes taken. The necessity of taking detours is one of the traffic failures caused by dis- asters. To identify these detours, a road administrator must visually check and analyze the probe vehicle trajectory, which requires considerable labor. Therefore, in this study, we detected detours during a disaster by learning the probe vehicle trajectory under normal circumstances using a one-class support vector ma- chine (OCSVM). Results of detour detection for Shikoku revealed that vehicles were using distant detour routes even when nearer detour routes were accessible. An analysis of the cause of these detours showed that the “risk” of the traffic failure was one factor. Key Words : one-class support vector machine (SVM), commercial probe vehicle, the heavy rain event, detour route, risk of traffic failure 1. INTRODUCTION In this study, we detect the detours of commercial vehicles during heavy rains in western Japan using machine learning technology and then analyze the cause of these detours. Due to the heavy rain event of July 2018, road blockage was implemented through- out a wide area. The road administrator needed a long time to recover the road due to the considerable dam- age. For example, Kochi Expressway took about one year to fully recover. When such long-term road blockage occurs, passing vehicles are forced to take detours between the disaster and recovery, thereby affecting people’s movement and logistics. In the event of a disaster, identifying the detour route or the cause of the detour will be useful for traffic guidance during the period between the disaster and recovery; it will also aid in developing detour routes in the fu- ture. However, at present, the road administrator does not have any information about the detours due to the road blockage caused by the heavy rain event of July 2018. Probe data can identify detours due to road blockages. However, to identify these detours, the road administrator must visually check and analyze the probe vehicle trajectory, which requires consider- able labor. In this study, we propose a method of de- tecting detours efficiently during heavy rains using commercial probe vehicle data 1) . First, we define de- tours. In this study, we target detours peculiar to dis- asters, which have a significant traffic impact. There- fore, a detour is defined as: 1) a long-distance trip, 2) a route with a longer time and distance than normal, and 3) a route that differs from normal circumstances. We detect detours using a one-class support vector machine (OCSVM) 2), 3) , which is a machine learning technology. Anomaly detection for rare events (unsu- pervised), such as heavy rainfall disasters, is posi- tioned as “unsupervised learning for outlier Journal of JSCE, Vol. 9, 8-19, 2021 (Originally published in Journal of Japan Society of Civil Engineers, Ser. B1, Vol. 75, No. 1, 143-154, 2019 in Japanese) 8

Upload: others

Post on 27-Jan-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL …

DETECTION AND ANALYSIS OF DETOURS

OF COMMERCIAL VEHICLES DURING HEAVY RAINS IN WESTERN JAPAN USING MACHINE LEARNING TECHNOLOGY

Yosuke KAWASAKI1, Shogo UMEDA2 and Masao KUWAHARA3

1Member of JSCE, Assistant Professor, Graduate School of Information Sciences, Tohoku University (6-6-06 Aoba, Aramaki-aza Aoba-ku, Sendai 980-8579, Japan)

E-mail: [email protected] (Corresponding Author) 2Member of JSCE, Researcher, New Industry Creation Hatchery Center (NICHe), Tohoku University

(6-6-10 Aoba, Aramaki-aza Aoba-ku, Sendai 980-8579, Japan) E-mail: [email protected]

3Member of JSCE, Professor, New Industry Creation Hatchery Center (NICHe), Tohoku University (6-6-10 Aoba, Aramaki-aza Aoba-ku, Sendai 980-8579, Japan)

E-mail: [email protected]

In this study, we detect the detours of commercial vehicles during heavy rains in western Japan using machine learning technology and then analyze the cause of these detours. Due to heavy rains in 2018 in western Japan, road regulation was implemented over a wide area. GPS-generated probe trajectories re-vealed the detour routes taken. The necessity of taking detours is one of the traffic failures caused by dis-asters. To identify these detours, a road administrator must visually check and analyze the probe vehicle trajectory, which requires considerable labor. Therefore, in this study, we detected detours during a disaster by learning the probe vehicle trajectory under normal circumstances using a one-class support vector ma-chine (OCSVM). Results of detour detection for Shikoku revealed that vehicles were using distant detour routes even when nearer detour routes were accessible. An analysis of the cause of these detours showed that the “risk” of the traffic failure was one factor. Key Words : one-class support vector machine (SVM), commercial probe vehicle, the heavy rain event,

detour route, risk of traffic failure

1. INTRODUCTION

In this study, we detect the detours of commercial vehicles during heavy rains in western Japan using machine learning technology and then analyze the cause of these detours. Due to the heavy rain event of July 2018, road blockage was implemented through- out a wide area. The road administrator needed a long time to recover the road due to the considerable dam-age. For example, Kochi Expressway took about one year to fully recover. When such long-term road blockage occurs, passing vehicles are forced to take detours between the disaster and recovery, thereby affecting people’s movement and logistics. In the event of a disaster, identifying the detour route or the cause of the detour will be useful for traffic guidance during the period between the disaster and recovery; it will also aid in developing detour routes in the fu-ture. However, at present, the road administrator does

not have any information about the detours due to the road blockage caused by the heavy rain event of July 2018. Probe data can identify detours due to road blockages. However, to identify these detours, the road administrator must visually check and analyze the probe vehicle trajectory, which requires consider-able labor. In this study, we propose a method of de-tecting detours efficiently during heavy rains using commercial probe vehicle data1). First, we define de-tours. In this study, we target detours peculiar to dis-asters, which have a significant traffic impact. There-fore, a detour is defined as: 1) a long-distance trip, 2) a route with a longer time and distance than normal, and 3) a route that differs from normal circumstances. We detect detours using a one-class support vector machine (OCSVM)2), 3), which is a machine learning technology. Anomaly detection for rare events (unsu-pervised), such as heavy rainfall disasters, is posi-tioned as “unsupervised learning for outlier

Journal of JSCE, Vol. 9, 8-19, 2021 (Originally published in Journal of Japan Society of Civil Engineers, Ser. B1, Vol. 75, No. 1, 143-154, 2019 in Japanese)

8

Page 2: DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL …

detection. ” Therefore, supervised learning classifica-tion methods (e.g., logistic regression, SVM23)) can-not be used. Hotelling’s T2 and the Mahalanobis–Taguchi (MT) method3) are often used for unsuper-vised learning outlier detection, but these methods as-sume that normal data follow a normal distribution. Analyses of commercial probe vehicle data show that trip distance and time data do not follow a normal distribution. Thus, Hotelling’s T2 and MT (see Chap-ter 4 for more details) cannot be applied. In addition, there is a density ratio estimation method (e.g., Kull-back–Leibler importance estimation procedure [KLIEP]24)) for anomaly detection. This method de-tects anomalies by evaluating the ratio of the proba-bility density of a dataset that contains anomalies to that of a dataset that does not contain them. Density ratio estimation can be applied to large amounts of data and complex, high-dimensional data distribu-tions. However, in this study, the number of analyzed trips is small, which may increase the error in density ratio estimation (e.g., only 13 trips from Matsuyama City to Uwajima City during the analyzed disaster). Detours can be defined as routes that do not overlap over a certain distance compared with the set of routes observed under normal circumstances. How-ever, in this case, the threshold for path overlap needs to be determined empirically. In this work, an OCSVM was adopted for the following reasons. • The OCSVM is a nonparametric method; i.e., it

has no constraints. • Even if the form of the density ratio function is

unknown, outliers can be detected as long as the boundaries are found, and this can be applied to a small number of samples.

• The threshold can be estimated systematically. We believe that machine learning technology can support the analysis of vehicle trajectories for detour detection by road administrators.

This study is organized as follows: Chapter 2 summarizes previous studies and the

contributions of our study. Chapter 3 presents a re-port on the damage caused by heavy rainfalls. In Chapter 4, we analyze trip data obtained during dis-asters using commercial probe vehicle data. In Chap-ter 5, we construct the proposed method for detecting detours. Chapter 6 details the detection of detours and analyzes the causes of detours. Finally, Chapter 7 ex-plains the conclusion and future issues. 2. RELATED WORK

In this chapter, we summarize the contributions of the current and previous studies in terms of analyses of route choice behavior during sudden events and disasters and traffic analysis using probe data.

(1) Analysis of route choice behavior during sudden events and disasters

Studies have analyzed route choice behavior during sudden events, such as construction, accidents, and traffic jams, (Kusakabe et al.4), Wardman et al.5)). Kusakabe et al. investigated traffic behavior by providing information about variable-message signs (VMSs) during sudden events along urban highways using stated preference (SP) surveys. The results of their analysis showed that information about the in-creasing trend of congestion and fees affects route choice. In the above studies, SP surveys were used to investigate traffic behavior, and the route choice model was built based on the survey results to ana-lyze traffic behavior.

Some studies analyzed route selection behaviors during disasters (Morii et al.7), Asakura et al.8), Fujita and Mitamura9)). Morii et al. conducted a web-based questionnaire survey on traffic behavior in the event of heavy rainfalls, assuming that the information would be provided by car navigation systems. Using the results of the survey, they constructed a path choice behavior model using a multinomial logit model. The results of the analysis showed that infor-mation about the extent of the heavy rainfall (risk) influences drivers’ route choice (hazard avoidance behavior). Asakura et al. surveyed traffic behavior in Shikoku, where the roads were closed due to typhoon damage, using a questionnaire survey. Their analysis results revealed that 85% of drivers do not abort their trips but divert them even when they encounter traffic restrictions and that the trip aborting, trip diversion, or waiting for traffic restrictions is affected by the time consumed by such actions. Fujita et al. analyzed traffic behavior during a heavy rainfall in Tokai using a questionnaire survey. Their findings showed that no detours were taken during the disaster because of gridlock (heavy traffic jam).

All of the above studies were conducted on private vehicles; the route choice behavior of commercial ve-hicles was not clarified. In addition, SP surveys and web questionnaires can lead to problems because the responses depend on subjects’ memories. By con-trast, probe data collected from mobile phones and car navigation systems can provide detailed infor-mation about routes and speeds. In the next section, research on the traffic analysis of accidents and dis-asters using probe data is summarized. (2) Traffic analysis using probe data

Several studies used probe data to understand traf-fic conditions during disasters (e.g., Bengtsson et al.10), Lu et al.11), Hara and Kuwahara12), Kawasaki et al.13)). Hara and Kuwahara used probe data from Ishi-nomaki City, which was affected by the Great East Japan Earthquake in March 2011, to analyze the pro-

9

Page 3: DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL …

Fig. 1 Graph of precipitation trends.

cess of gridlock (heavy traffic jam) caused by the concentration of vehicles during the tsunami evacua-tion. Kawasaki et al. reported that, during the Kuma-moto earthquakes in April 2016, the daytime travel time on the alternative route from the Fukuoka area to central Kumamoto increased significantly com-pared with the normal travel time due to the blockage of the Kyushu Expressway. Therefore, probe data are effective for understanding the traffic state in a disas-ter.

Next, we describe studies on anomaly detection us-ing probe data. Sekizuka et al.14) and Asakura et al.15) attempted to detect anomalies in accidents. They es-timated the time and location of traffic disturbances by focusing on the shockwave connecting the inflec-tion points of the vehicle trajectory in two dimensions (time and distance) at the time of disturbance.

Cai et al.16) and Kusakabe17) attempted to detect anomalies by clustering probe data. Cai et al. con-structed a cluster containing normal and abnormal-behaving vehicle trajectories observed near an inter-section. Newly obtained trajectories classified into clusters of abnormal behavior were deemed abnormal trajectories. Kusakabe regarded the tertiary mesh (1 km square) as the minimum unit and created a vector of average trip times per mesh for each day and time of day. Vector clustering using the k-means++ method was performed for each mesh, and the meshes and the date and time of anomaly occurrence were identified. Although several studies have at-tempted to detect anomalies in accidents and disas-ters, these studies do not cover the detection of de-tours during disasters. Yoshida et al.18) and Umeda et al.19) attempted to de-tect detours in disaster situations. Yoshida et al. pro-posed indexes such as the time–space distance (TSD) and the Levenshtein distance to evaluate the similar-ity of 3D probe trajectory data between normal and disaster conditions. Umeda et al. proposed a detour rate that regarded the ratio of the normal distance of a route to that of a disaster as an evaluation index for detour detection. However, these studies used the

threshold for detour detection as a hyperparameter, and there were challenges in how the threshold should be set.

The present study differs from the abovementioned works in that it utilizes a machine learning technique to systematically detect detours and analyzes the de-tours of commercial vehicles during disasters.

(3) Contribution of this study

The contributions of this study are as follows: 1) Efficient detour detection: We propose a detour

detection method that uses an OCSVM, which is a machine learning technique that can automati-cally detect detours in case of disasters. A quick understanding of the traffic situation, such as de-tours, is required when a disaster occurs widely and simultaneously, as in the case of the torren-tial rains in western Japan in July 2018,and when recovery time is long. Under these circum-stances, the efficiency of detour detection using machine learning will aid in the work of road ad-ministrators.

2) Investigation of detours of commercial vehicles and causes of detours: The detour detection re-sults confirmed that some vehicles deviated with-out using the nearest detour, even though the nearest detour was passable in the affected line. The analysis of the detour causes suggested that “risk of traffic failure” was a factor.

3. OVERVIEW OF DISASTERS IN EHIME

PREFECTURE

In this section, we outline the damage in the Shi-koku region’s Ehime Prefecture, where the damage was particularly severe. First, we describe the rainfall situation. Figure 1 shows the changes in precipitation in Matsuyama City and Uwajima City. Daily precip-itation increased from July 4 and peaked on July 6 and 7. In Matsuyama, a maximum precipitation amount of 206 mm/day was observed on July 7, and a special heavy rainfall warning was issued for Ehime and Kochi prefectures on July 8. In this study, on the basis of the daily precipitation trends, the disaster cir-cumstances were set as July 4–10, 2018, and the nor-mal circumstances were set as June 20–26 (before the disaster occurred).

Report on road damage: Fig. 2 shows the locations of the restrictions that were implemented between July 4 and 10. As shown in Fig. 2(a), there were many regulated areas over a wide region. According to the Ehime Prefectural Government Office, there were reports as of October 15, 2018 that 16 prefec tural roads and 78 municipal roads had been closed

0

25

50

75

100

125

150

175

200

225

20 21 22 23 24 25 26 27 28 29 30 1 2 3 4 5 6 7 8 9 10

June July

Prec

ipita

tion

amou

nt [m

m/d

ay] Matuyama

Uwajima

disaster

normal

10

Page 4: DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL …

(a) Wide-area map of regulated areas on local roads

(b) Traffic regulation around the Ozu Interchange on the Matsu-

yama Expressway

(c) Traffic regulation around the Tachikawa Bridge on Kochi

Expressway Fig. 2 Traffic regulation due to heavy rainfall (July 4–10, 2018).

to traffic. Heavy rainfall on the Matsuyama Express-way caused the Hiji River to overflow at Ozu City, and the Ozu Interchange was inundated (Fig. 2(b)). As a result, the road was closed from July 6 to 8. The Tachikawa Bridge, which is over Kochi Expressway and runs between Ehime and Kochi, was closed be-fore dawn on July 7 due to a large-scale landslide on the upstream side of the bridge (Fig. 2(c)). The sec-tion was reopened to two-way traffic on July 13, 2018 using the off-ramp, but it has not been fully restored. The damaged part of Kochi Expressway was then designated by the government as a severe disaster area. 4. TRAFFIC STATE AT THE HEAVY

RAINFALL EVENT OF JULY 2018

In this chapter, a basic analysis of trips during heavy rainfalls is conducted using commercial probe vehicle probe data1). Such data were processed by di-viding GPS data into trips at the end of the engine ON/OFF period. (1) Trip analysis of the Shikoku region

The analysis results of the trips in Shikoku are de-scribed here. Figure 3 shows the average daily num-ber of trips under normal and disaster conditions. The number of trips during disasters is lower than that un-der normal circumstances. Figure 4 shows a histo-gram and the cumulative distribution of the trip dis-tances and trip times under normal and disaster con-ditions. The trip distances and trip times are calcu-lated at 5-km and 30-minute intervals, respectively. In terms of trip length during disasters, the number of short-distance trips (less than 100 km) increases in comparison with that under normal circumstances. The assumption prior to the analysis is that, if detours occur during a heavy rainfall, the trip distance and trip time would increase. The presumed reason for this is the avoidance of work related to long-distance trips as a precaution against damage caused by heavy rains. However, if we focus only on the long-distance trips that have to pass through the regulated section at the time of the disaster, we believe that the detour will cause increases in trip distance and time. There-fore, in the next section, we focus on specific origin and destination points. (2) Analysis focused on specific trips

A large number of long-distance trips (more than 100 km) that were likely to pass through the Kochi Expressway upstream, where the landslide occurred, were selected for analysis.In particular, the trip be-tween Marugame City and Kochi City (secondary mesh numbers 513336 and 503325), as shown in Fig. 2, was examined. Figure 5 shows a histogram and the

11

Page 5: DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL …

Fig. 3 Comparison of average daily trips in Shikoku.

(a) Trip distance

(b) Trip time

Fig. 4 Histogram and cumulative distribution of the number of trips in Shikoku.

cumulative distribution of the trip distances and trip times between Marugame City and Kochi City. Both the trip distance and trip time increased during the disaster. Figure 6 shows a heat map of the scattered distances and times for each trip. In this figure, the distribution of trips clearly differs between the nor-mal and disaster circumstances. Under normal cir-cumstances, the trip distance is about 100–150 km, and the trip time is about 2–5 hours. By contrast, dur-ing the disaster, some of the trips had a maximum distance of more than 300 km and time of more than 10 hours; these might include detoured trips. From these data, it is difficult for humans to detect detours under normal and disaster circumstances. Therefore, in the next section, we describe a method for the ef-ficient detection of detours using an OCSVM.

(a) Trip distance

(b) Trip time

Fig. 5 Histogram and cumulative distribution of the number of trips from Marugame City to Kochi City.

Fig. 6 Heat map of trip distances and trip times scattered from

Marugame City to Kochi City. 5. DETECTION METHOD OF DETOURS In this chapter, we propose a method of detecting detours using probe data. The detection consists of three steps: (1) preprocessing, (2) detection of detour candidates, and (3) inspection of detour candidates. In this chapter, we describe this step-by-step process and define the performance evaluation indicators for

0

500

1,000

1,500

2,000

2,500

平常時 災害時

日平均トリップ数

Aver

age

daily

trip

s (tim

es/d

ay)

Normal circumstance Disaster circumstance

0.0%

20.0%

40.0%

60.0%

80.0%

100.0%

0

200

400

600

800

1000

0 30 60 90 120

150

180

210

240

270

300

330

360

390

420

450

480

510

540

570

600

630

660

690

720

750

Accu

mul

ate(

%)

Freq

uenc

y

Trip Distance(km)Normal(frequency) Disaster(frequency)Normal(accumulate) Disaster(accumulate)

Number of samplesNormal 17,230Disaster 15,584

0.0%

20.0%

40.0%

60.0%

80.0%

100.0%

0

400

800

1200

1600

2000

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24

Accu

mul

ate(

%)

Freq

uenc

y

Time(hour)Normal(frequency) Disaster(frequency)Normal(accumulate) Disaster(accumulate)

Number of samplesNormal 17,230Disaster 15,584

0.0%

20.0%

40.0%

60.0%

80.0%

100.0%

0

6

12

18

24

30

100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250

Accu

mul

ate(

%)

Freq

uenc

y

Trip Distance(km)Normal(frequency) Disaster(frequency)Normal(accumulate) Disaster(accumulate)

Number of samplesNormal 136Disaster 104

0.0%

20.0%

40.0%

60.0%

80.0%

100.0%

0

6

12

18

24

30

1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7 7.5 8 8.5 9 9.5 10

Accu

mul

ate(

%)

Freq

uenc

yTime(hour)Normal(frequency) Disaster(frequency)

Normal(accumulate) Disaster(accumulate)

Number of samplesNormal 136Disaster 104

12

Page 6: DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL …

Fig. 7 Image of OCSVM.

detour detection. (1) Preprocessing

In the preprocessing, we performed 1) map match-ing and 2) exclusion of delivery data. Here, map matching is the identification of a path (road) moved on the road network from location data. The reason for the exclusion of delivery data and the exclusion method are described. A commercial vehicle may stop at several points on its way to its final destination due to delivery operations. Since delivery data con-sist of a mixture of multiple trips, the impact of de-liveries should be minimized to detect detours in ac-cordance with the requirements defined in Chapter 1. Therefore, in this study, vehicles stopped for more than m minutes in the middle of a trip were deemed to be deliveries. In this analysis, the threshold for ex-cluding delivery was set as m = 30 minutes. (2) Detection of detour candidates

We describe a method for detecting candidates for detours. Previous studies on anomaly detection using an OCSVM2),3) included the detection of signs of anomalies at a hydroelectric power plant (Onoda21)) and the discrimination of actions by using pedestrian trajectories (Toyoshima et al.22)). First, we describe the outline of an OCSVM. The normal vector data are denoted by nx . The OCSVM is illustrated in Fig.7. As shown in the figure, the OCSVM maps data nx in the input space to the fea-ture space using the kernel function ( )n n

iK ,x x . The mapped data are called a support vector. Next, we es-timate the function ( )f x such that the distance from the origin to the support vector (margin) is maxim-ized. The function ( )f x identifies normal/abnormal data. The OCSVM identifies the newly observed i-th data as follows:

0, ( ) 0

1, ( ) 0

di

i di

f x

f xδ

>= <

 

 , (1)

where

iδ indicates the normal/abnormal status of the data; it is defined as normal when iδ = 0 and abnor-mal when iδ = 1. For the abnormal status, the image is mapped closer to the origin than to ( )f x , as shown in the red circle in Fig. 7.

Next, we define the trip data to be inputted to the OCSVM in this study. We define the trips’ index set as [ ]n . The distance of the i -th trip is denoted as il and the trip time as it . The set of trip data under nor-mal conditions is defined as follows:

( ), Tn

i i ix l t= , (2a)

( )1 2, ,..., ,...,Tn n n n n

i Ix x x x=x . (2b) Similarly, let dx be the trip dataset obtained during a disaster, and denote its i-th element as d d

ix ∈ x . To detect candidate detours, we first learn the parameters of the discrimination function ( )f x using the nor-mal trip data nx . Then, dx is inputted to the param-eter-learned ( )f x , and those determined to be ab-normal are detected as detours. Given that the OCSVM in this study is based on an existing model, the model formulation and parameter estimation are not in the main text but in the Appendix. (3) Inspection of detour candidates

The processing data in (1) and (2) include delivery data. Thus, data detected as detours are scrutinized to identify any stops (e.g., a temporary stop near a dis-tribution facility or an unnatural U-turn) other than the final destination during the trip. Trips that include such stops are excluded from the data as they are con-sidered deliveries. (4) Definition of detour detection performance

In this section, we define the evaluation indexes for detour detection by the proposed method. We use precision, recall, and the F-measure as the evaluation indexes for the accuracy of detour detection. Preci-sion and recall are used as indicators of the effective-ness of information retrieval. Precision is the fit ratio that indicates how much data are included in the search results. Recall indicates how much of the total fit data are included in the search results. The har-monic mean of precision and recall is the F-value. In general, there is a trade-off between precision and re-call. We define precision, recall, and the F-value as follows: First, we define a detour/normal (no detour) relationship between the model and the actual trip, as shown in Table 1. The True Positive (TP), False Pos-

Support vector

Input space,

omargin

Feature space

13

Page 7: DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL …

Table 1 Detour/no detour relationship between the model and the actual trip.

Actual trip Detour Normal

(No detour)

Model Detour TP

(True positive) FP

(False positive)

Normal (No detour)

FN (False negative)

TN (True negative)

Fig. 8 Detection of detour candidates for trips from Marugame

City to Kochi City.

Fig. 9 Examples of vehicle routes determined to be deliveries.

itive (FP), False Negative (FN), and True Negative (TN) in the table indicate the conditions correspond-ing to each condition. From the previous literature, precision, recall, and the F-measure are defined as follows:

TPPrecision=TP+FP

, (3a)

TPRecall=TP+FN

, (3b)

2×Precision×RecallF-measure=Precision+Recall

. (3c)

where, TP, FP, FN, and TN in the formula are the number of trips corresponding to each condition. 6. DETECTION AND ANALYSIS OF DE-

TOURS

In this chapter, the detection of detours during heavy rainfalls and the causes of detours of commer-cial vehicles are analyzed. Trips from Marugame City to Kochi City and from Matsuyama City to Uwajima City are examined. Figure 2(a) shows the positions of the origin and destination points (second-ary mesh) of each trip. (1) Analysis of trips from Marugame City to

Kochi City In this section, we describe the analysis results of

the trips from Marugame City to Kochi City. The es-timated parameters are σ = 0.001 and ν = 0.01. Fig-ure 8 shows the detection results of the trip detours from Kagawa City to Kochi City, as obtained by the OCSVM. The white circles in the figure represent the training data (under normal circumstances). The black and red circles are the data under disaster con-ditions. The black circles are data with normal labels assigned, and the red circles are data with detour (ab-normal) labels assigned. We investigated these de-tour-detected data and excluded the data of three trips that were considered deliveries, as shown in Fig. 9. Figure 10 shows the vehicle routes under normal and disaster conditions after the inspection. Figure 10(b) shows the red/blue color coding according to the de-tour (disaster) and normal (no detour) labels. The normal route (Fig. 10(a)) shows that commercial ve-hicle drivers use the Kochi Expressway and National Route 32. During a disaster Fig. 10(b)), a route via Route 194 appears and is marked a detour (anomaly). We consider these routes to be “long-distance trips,” “detour routes that take longer time and distance than usual,” and “routes that differ from the normal route;” thus, they satisfy the detouring definitions in Chapter 1. Table 2 shows the results of detour detection. The detour and no-detour labels for the actual trips in the table are assigned by the analyst. As shown in the ta-ble, the F-measure = 0.96, precision = 0.92, and recall = 1.00. Therefore, we are able to detect detours with a high accuracy of more than 90%. In the following, we analyze the characteristics of the detours. The share of each route is shown in Fig. 11. The sharing ratio is calculated by aggregating the route traffic on the A-A' cross section in Fig. 10(b). In the case of a

14

Page 8: DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL …

(a) Normal circumstances

(b) Disaster circumstances

Fig. 10 Route of the trip from Marugame City to Kochi City.

Table 2 Detection of detours in disasters (after inspection). Actual trip

Total Detour Normal (No detour)

Model Detour 33 3 36 Normal

(No detour) 0 68 68

Total 33 71 104 disaster, the data ar e divided into the periods before and after the Tachikawa Bridge disaster on the Kochi Expressway. The figure shows that about 80% of the commercial vehicles use the Kochi Expressway, and 20% use National Route 32 during normal times. The use of Route 194 (detours) increases during disasters.

Fig. 11 Route sharing ratio from Marugame City to Kochi City.

Fig. 12 Average trip time from Marugame City to Kochi City. In particular, after the damage to Tachikawa Bridge, the usage rate of Route 194 increases remarkably to about 40%. Figure 12 shows the average time re-quired for each route. The results show that the time required via Route 194 was about one hour longer than that via Route 32 at the time of disaster. As per traffic regulations, the routes of National Road 32 and National Road 194 except Kochi Expressway were unregulated and passable at the time of the dis-aster. The results show that 40% of the commercial vehicles were diverted to the long (irrational) Route 194 even though Route 32 was passable at the time of disaster. To identify the cause of this detour, we analyze the relationship between the weather, disas-ter, traffic regulations, and topography as possible triggers for the detour. Figure 13 shows the timeline of each route’s share and incentive data. The figure shows that the share of Route 194 increases after the restriction of Kochi Expressway from July 6 and the damage to Tachikawa Bridge and the issuance of the heavy rainfall special warning on July 7. Figure 14 shows the topography around Tachikawa Bridge. As shown in the figure, National Route 32 is built along a mountain slope and close to Tachikawa Bridge on Kochi Expressway”. Based on the above, the detour factors are as follows: The driver knows that Route 32 is passable, but the driver is assumed to divert to Route 194 because he is wary of the risk of traffic failure (road restrictions due to the heavy rain). This result, i.e., risk influences a driver’s route choice, is

76%

67%

24%

9%

62%

24%

38%

0% 20% 40% 60% 80% 100%

平常

災害(7/4-7/6)

災害(7/7-7/10)

Disaster[1]Before the damage to the Tachikawa bridge

(7/4-6)

Disaster[2]After the damage to the Tachikawa bridge

(7/7-10)

Normal circumstances(6/20-26)

Kochi Expressway Route 32 Route 194

15

Page 9: DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL …

Fig. 13 Timeline of sharing ratio and incentives from Marugame

City to Kochi City.

Fig. 14 Topography around Tachikawa Bridge.

Fig. 15 Detection of detour candidates for trips from Uwajima

City to Matsuyama City.

(a)Normal circumstances (b) Disaster circumstances Fig. 16 Route of the trip from Uwajima City to Matsuyama City.

Table 3 Detection of detours in disasters (after inspection). Actual trip

Total Detour Normal (No detour)

Model Detour 3 1 4

Normal (No detour) 0 9 9

Total 3 10 104 consistent with the results of a previous study (Morii et al.). (2) Analysis of trips from Uwajima City to

Matsuyama City We analyzed the detours of trips from Uwajima

City to Matsuyama City. The estimated parameters were σ = 0.012 and ν = 0.009, which were not signif-icantly different from those of the trip from Maru-game City to Kochi City. Figure 15 shows the results of the detour detection by the OCSVM. Figure 16 shows the vehicle trajectory under normal and disas-ter conditions after inspection. The routes detected as detours by the OCSVM do not contain any data that appear to be delivery. In Fig. 15, trips with long times and distances are detected as detours. Figure 16 shows that Route 320, which is not selected under normal circumstances, is detected as a detour. A trip via Route 56, which is selected during normal times, is also detected as a detour. Some trips with longer times than those under normal circumstances are de-tected. In our method, if the time required is long, the route will be detected as a detour, even if the route overlaps with that of the normal one. In the future, it will be challenging to process routes that overlap un-der normal conditions; thus, they will not be detected as detours. The bypass detection results are shown in Table 3. The F-measure = 0.86, precision = 0.75, and recall = 1.00. The F-measure is lower than that of the

0%

20%

40%

60%

80%

100%

20日 21日 22日 23日 24日 25日 26日 4日 5日 6日 7日 8日 9日 10日

6月 7月

分担率

国道194号 国道32号 高知自動車道

050

100150200250

20日 21日 22日 23日 24日 25日 26日 4日 5日 6日 7日 8日 9日 10日

降雨量

(mm

)

Weather warningRoad damage

Traffic regulation(road closures)

Otoyo IC-KawanoehigashiJCT

18:30 13:45Kawanoe JCT−KawanoehigashiJCT

21:10 6:35

Heavy rain warning1:22Heavy rain special warning

5:50 14:50

12:50

Tachikawa Bridge

Matuyama

Rain

fall[

mm

]Sh

are

ratio

20 21 22 23 24 25 26 4 5 6 7 8 9 10 June July

Kochi Expressway Route 32 Route 194

20 21 22 23 24 25 26 4 5 6 7 8 9 10

Traffic regulations due to heavy rain warnings

Traffic regulations due to road damage

16

Page 10: DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL …

Fig. 17 Timeline of sharing ratio and incentives from Uwajima

City to Matsuyama City.

Source: Geographical Survey Institute

Fig. 18 Flooding map near Ozu Interchange. trip from Marugame City to Takamatsu City, but the detour can be detected with about 90% accuracy. As in the previous section, we analyze whether the risk of disaster is involved in the cause of the diversion to Route 320. Figure 17 shows the timeline of the route sharing rates and triggers. The sharing ratio is calcu-lated by aggregating the route traffic on the A-A' cross section in Fig. 16(b). The figure shows that the share of Route 320 is higher on July 7, when Ozu In-terchange was flooded. Figure 18 illustrates the esti-mated flooding area near Ozu Interchange. This shows that Route 56 is also partially flooded. From the above, we infer that, as in the Kochi Expressway case, the driver is alerted to the risk of traffic failure on Route 56 and thus diverts to Route 320. However, since only three samples of detour trips to Route 320 during disasters were collected, the results of this analysis are regarded as reference.

7. CONCLUSION This study detects the detours of commercial vehi-cles in western Japan during heavy rainfalls and ana-lyzes the causes of these detours. To identify the cause of these detours, we combined the above anal-ysis with various incentive data. The findings are summarized below. 1) The detection of detours using the OCSVM con-

firmed that commercial vehicle drivers during heavy rainfalls do not always choose reasonable routes with short travel times; instead, they may take large detours. For example, 40% of com-mercial vehicle drivers on Kochi Expressway were diverted to Route 194, which took a longer time, instead of National Route 32, the nearest detour route to Kochi Expressway.

2) The combined analysis of probe data and incen-tive data suggests that the risk of traffic failure is a contributing factor to the diversion of com-mercial vehicles.

The results of this analysis show issues related to road traffic management during heavy rainfalls. Future is-sues are as follows: 1) In addition to probe data, data that may trigger

traffic behavior (such as weather, disaster, and traffic regulations) should be collected and accu-mulated to analyze the route choice behavior dur-ing a disaster in detail. Since there was no dataset related to disasters, it was necessary to collect each of these data by contacting relevant organi-zations or searching web archives in this study. In the future, it will be necessary to build a sys-tem that archives related data efficiently and cen-trally.

2) Currently, traffic information at the time of a dis-aster is mainly based on facts, such as traffic con-gestion, travel time, and regulations. In the fu-ture, in addition to facts, information about the risk of traffic failures should be provided to help drivers choose routes. For this purpose, it is nec-essary to examine how to index the risk of traffic failures and provide information.

3) The detection of detour candidates by the OCSVM showed a route that was mistakenly de-tected as a “detour” because it took a long time, even though it overlapped with the normal route. A possible solution to this problem is to add an index reflecting the overlap rate with the normal route to detect detours.

4) In this study, bypass detection was conducted for two trips in Shikoku during a heavy rainfall. The F-measure results of the evaluation showed that detours could be detected with high accuracy. However, additional cases of future disasters should be analyzed to verify the robustness of the

0%

20%

40%

60%

80%

100%

20日 21日 22日 23日 24日 25日 26日 4日 5日 6日 7日 8日 9日 10日

6月 7月

分担率

国道320号 国道56号 松山自動車道

050

100150200250

20日 21日 22日 23日 24日 25日 26日 4日 5日 6日 7日 8日 9日 10日

降雨量

(mm

)

Weather warningRoad damage

Traffic regulation(road closures)

1:22

5:50 14:5012:50

Ozu IC(Flooding of the Hijikawa River)

OzukitatadaIC-SeiyouwaIC21:40 13:40

Ozu IC−Iyo IC14:303:00

Uwajima

18:30Route 56(Yoshida)

Rain

fall[

mm

]Sh

are

ratio

Heavy rain warning

Heavy rain special warning

20 21 22 23 24 25 26 4 5 6 7 8 9 10 June July

Matuyama Expressway Route 56 Route 32020 21 22 23 24 25 26 4 5 6 7 8 9 10

Traffic regulations due to heavy rain warnings

Traffic regulations due to road damage

17

Page 11: DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL …

proposed method. 5) In this study, analysis was conducted on com-

mercial vehicles. In the future, data on private ve-hicles must be examined to analyze the differ-ences in route choice behaviors between com-mercial and private vehicles.

ACKNOWLEDGMENTS: This research was sup-ported by Commissioned Research (201) of the Na-tional Institute of Information and Communications Technology of Japan, CART (Committee on Ad-vanced Road Technology), Ministry of Land, and JSPS KAKENHI grant number JP19K15107. We thank FUJITSU TRAFFIC & ROAD DATA SER-VICE LIMITED for the probe vehicle data used in this work. APPENDIX A FORMULATION OF OCSVM

This section outlines the formulation of the OCSVM shown in Chapter 5. For details, please refer to Refer-ences2), 3).

First, define the kernel function ( ).n niK ,x x Among

the many kernel functions that have been proposed so far, we use the Gaussian kernel function of the following equation:

( ) 2exp( )n n n n

i iK , γ= − −x x x x , (A.1)

where γ is a parameter. The identification function

( )f x is defined as follows: ( ) ( )nf φ ρΤ= −x w x , (A.2)

where w is a weight vector and ( )φ ⋅ is a function that maps the data from the input space to the feature space. The margin, which is the distance between the boundary ( ) 0f =x and the origin of the detected anomaly, is expressed as / .ρ w Therefore, the larger the w and the smaller the ρ , the larger the margin. Therefore, the main problem of the OCSVM is defined by the following equation:

{ }2

, [ ]

1 1min max 0, ( ( ) )2

T n

w Ri n

wnρ

ρ φ ρν∈

− + − − w x .

(A.3) The first and second terms of the above formula are intended for increasing the margin. The third term corresponds to the hinge loss function in the SVM. The proportion of the parameter (0,1]ν ∈ remains on the origin side (outlier side) of the training data.

Equation (A.3) is a complex optimization problem with a mixture of minimization and maximization terms. For simplicity, we consider the dual problem of Equation (A.3). The kernel function ( )n n

iK ,x x is introduced in equation (A.1). Then, the dual problem is defined by the following equation:

[ ] [ ]

1min ( )2n i j i j

R i n j n

K x ,xα

α α∈ ∈ ∈

, (A.4a)

1s.t. 0 , [ ]i i nn

αν

≤ ≤ ∀ ∈   , (A.4b)

[ ]

1ii n

α∈

= . (A.4c)

Here, iα is a dual variable and ν is a hyperparameter. The OCSVM uniquely determines the discrimination function ( )f x by solving equation (A.4a) given γ and ν. If the output of the disaster data d

ix input to the identification function is ( ) 0d

if x < , it will be de-tected as a detour. APPENDIX B PARAMETAR ESTIMA-

TION OF OCSVM This section describes a method of estimating the pa-rameters γ and ν. On the basis of previous studies, γ is estimated such that the variance of the Gram matrix (the matrix in which the kernel function is computed in all samples) is maximized. The parameter ν is estimated by grid search, which involves inputting all combinations of pre-enumerated parameters into a model and taking the best combination of these parameters as an estimate. The detours detected in this study are routes that are not se-lected under normal conditions. To satisfy the conditions for these detours, we apply grid search to determine all normal data as normal (no detour) and to search for the value with the maximum ν as the estimated value. The above parameter estimation method has been described in previous literature. For details, see References2), 3) or related research papers. REFERENCES 1) Fujitsu Traffic & Road Data Service Limited home page,

http://www.fujitsu.com/jp/group/ftrd/ 2) Scholkopf, B., Platt, J., Shawe-Taylor, J., Smola, A. and

Williamson, R.: Estimating the support of a high-dimen-sional distribution, Neural Computation, Vol. 13, Issue 7, pp. 1443–1472, 2001.

3) Ide, T. and Sugiyama, M.: Anomaly Detection and Change Detection (Machine Learning Professional Series), Ko-dansha, 2015 (in Japanese).

4) Kusakabe, T. Sharyo, T. and Asakura, Y.: Behavioural re-action to incident information on urban expressway, Journal of Japan Society of Civil Engineers, D3 (Civil Engineering Planning), Vol. 68, No. 5, pp. I_731–I_740, 2012 (in Japa-nese).

18

Page 12: DETECTION AND ANALYSIS OF DETOURS OF COMMERCIAL …

5) Wardman, M., Bonsall, P. W. and Shires, J. D.: Driver re-sponse to variable message signs: A stated preference inves-tigation, Transportation Research Part C, Vol. 5, pp. 389–405, 1997.

6) Peeta, S., Ramos, J. L. and Pasupathy, R.: Content of varia-ble message signs and on-line driver behavior, Transporta-tion Research Record, No. 1725, pp. 102–108, 2000.

7) Morii, K., Uno, N., Nakamura, T., Oda, T., Kurauchi, F. and Shimizu, A.: A basic analysis of route choice behavior under provision of information on heavy rainfall using SP survey, Journal of Japan Society of Civil Engineers, D3 (Civil En-gineering Planning), Vol. 72, No. 5, pp. I_1187–I_1197, 2016 (in Japanese).

8) Asakura, Y., Kashiwadani, M., Takagi, K. and Fujiwara, K.: Empirical studies on travel choice behaviour in a road net-work degraded by natural disasters, Journal of Civil Engi-neering Planning and Research, No. 14, pp. 371–380, 1997 (in Japanese).

9) Fujita, M. and Mitamura, J.: Analysis on road traffic situa-tion of travel times and routes of cars under the downpour disaster in Tokai area, Journal of Japan Society of Civil En-gineers, No. 751/IV-62, pp. 127–137, 2004 (in Japanese).

10) Bengtsson, L., Lu, X., Thorson, A., Garfield, R. and von Schreeb, J.: Improved response to disasters and outbreaks by tracking population movements with mobile phone net-work data: A post-earthquake geospatial study in Haiti, PLoS Med., Vol. 8, No. 8, p. e1001083, 2011.

11) Lu, X., Bengtsson, L. and Holme, P.: Predictability of pop-ulation displacement after the 2010 Haiti earthquake, Proc. Natl. Acad. Sci. USA, Vol. 109, No. 29, pp. 11576–11581, 2012.

12) Hara, Y. and Kuwahara, M.: Traffic monitoring immedi-ately after a major natural disaster as revealed by probe data - A case in Ishinomaki after the Great East Japan Earth-quake, Transportation Research Part A: Policy and Prac-tice, Vol. 75, pp. 1–15, 2015.

13) Kawasaki, Y., Kuwahara, M., Hara, Y., Mitani, T., Takenouchi, A., Iryo, T. and Urata, J.: Investigation of traf-fic and evacuation aspects at Kumamoto earthquake and the future issues, Journal of Disaster Research, Vol. 12, No. 2, pp. 272–286, 2017.

14) Sekizuka, K., Mitani, T., Kawasaki, Y., Masuda, T., Nagai, S. and Kuwahara, M.: Travel time prediction at sudden events using only vehicle trajectories, Journal of Civil En-gineering Planning and Research, Vol. 53, CD-ROM, 2016

(in Japanese). 15) Asakura, Y., Kusakabe, T., Nguyen, L. X. and Ushiki, T.:

Incident detection methods using probe vehicles with onboard GPS equipment, Transportation Research Part C: Emerging Technologies, Vol. 81, pp. 330–341, 2017.

16) Cai, Y., Wang, H., Chen, X. and Jiang, H.: Trajectory-based anomalous behaviour detection for intelligent traffic surveil-lance, IET Intelligent Transport Systems, Vol. 9, pp. 810–816, 2015.

17) Kusakabe, T.: Development of a nationwide detection method for abnormal events using probe vehicle data, Jour-nal of Civil Engineering Planning and Research, Vol. 55, CD-ROM, 2017 (in Japanese).

18) Yoshida, M., Umeda, S., Kawasaki, Y. and Kuwahara, M.: Incident alert by an anomaly indicator of probe trajectories, Transportation Research Procedia, Vol. 34, pp. 179–186, 2018.

19) Umeda, S., Kawasaki, Y. and Kuwahara, M.: Analysis of traffic state at heavy rain disaster using probe data, Journal of Disaster Research, Vol. 14, No. 3, pp. 466–477, 2019.

20) Ehime Prefectural Government Office home page, https://www.pref.ehime.jp/h12200/documents/higai100.pdf (Accessed February 18, 2019)

21) Onoda, T.: Risk management in hydropower plants based on one-class SVM, Operations Research as a Management Sci-ence Research, Vol. 51, No. 11, pp. 683–688, 2006 (in Jap-anese).

22) Toyoshima, I., Hattori, K., Itakura, T., Enohara, T., Baba, K. and Orihara, R.: Behavioral discrimination from walking trajectory data by outlier detection using clustering results, IPSJ SIG Technical Reports, Vol. 31, pp. 205–212, 2007 (in Japanese).

23) Sugiyama, M., Ide, T., Kamishima, T., Awata, T. and Maeda, E.: Foundations of Statistical Learning - Data Min-ing, Inference and Prediction -, Kyoritsu Publishing, 2014 (in Japanese).

24) Sugiyama, M.: A new approach to machine learning based on density ratios, Statistical Mathematics, Vol. 58, No. 2, pp. 141–155, 2010 (in Japanese).

25) Han, J., Kamber, M. and Pei, J.: Data Mining - Concepts and Techniques, Third Edition, Morgan Kaufmann, 2011.

(Received August 15, 2020) (Accepted August 23, 2020)

19