[go: up one dir, main page]

TWI813971B - Individually adapted road risk prediction system, method and user equipment - Google Patents

Individually adapted road risk prediction system, method and user equipment Download PDF

Info

Publication number
TWI813971B
TWI813971B TW110110632A TW110110632A TWI813971B TW I813971 B TWI813971 B TW I813971B TW 110110632 A TW110110632 A TW 110110632A TW 110110632 A TW110110632 A TW 110110632A TW I813971 B TWI813971 B TW I813971B
Authority
TW
Taiwan
Prior art keywords
risk
user
traffic
prediction
personalized
Prior art date
Application number
TW110110632A
Other languages
Chinese (zh)
Other versions
TW202238457A (en
Inventor
胡誌麟
黃郁凱
呂晟暐
林昆佑
王柏凱
劉佩怡
Original Assignee
國立中央大學
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 國立中央大學 filed Critical 國立中央大學
Priority to TW110110632A priority Critical patent/TWI813971B/en
Publication of TW202238457A publication Critical patent/TW202238457A/en
Application granted granted Critical
Publication of TWI813971B publication Critical patent/TWI813971B/en

Links

Images

Landscapes

  • Traffic Control Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Alarm Systems (AREA)

Abstract

The present invention relates to a individually adapted road risk prediction system, comprising; a system server comprising a traffic risk prediction master computer program product; and a user equipment communicatively connected with the system server and providing a front-end computer program product for a user to operate to enable a traffic risk prediction machine learning model program component well-trained and included in the traffic risk prediction master computer program product, in which the traffic risk prediction machine learning model program component is performed to implement a prediction for computing a risk map and selectively compute a personal risk indicator and accordingly provides at least one personally recommended route for the user.

Description

個人化道路風險預測系統、方法與使用者設備 Personalized road risk prediction system, method and user equipment

本發明係有關於一種道路風險預測系統、方法與使用者設備,尤其是一種基於機器學習模型而預測道路風險,並考慮個人風險承受指數而預測道路風險之系統、方法與使用者設備。 The present invention relates to a road risk prediction system, method and user equipment, in particular to a system, method and user equipment that predict road risks based on a machine learning model and consider personal risk tolerance index.

台灣由於地狹人稠,人口偏好往大都會集中,造成城市交通狀況複雜,交通事故頻發,尤其近年因新興物流產業興起,如機車物流、食物外送等,更造成交通事故層出不窮,不僅造成財物損失,更時常造成人員傷亡。 Due to the narrow and densely populated area of Taiwan, the population prefers to concentrate in metropolitan areas, resulting in complex urban traffic conditions and frequent traffic accidents. Especially in recent years, the rise of emerging logistics industries, such as motorcycle logistics, food delivery, etc., has resulted in endless traffic accidents, not only causing Property damage often results in casualties.

以桃園市為例,根據桃園市政府的統計,桃園市於2009年因A2類交通事故,A2類交通事故指受傷或超過24小時死亡的事故,共計有15,286件,總計造成20,048人受傷,但到了2018年,事故數量增長至30,689件並造成40,595人受傷,短短十年,無論事故數量及受傷人數皆成長約一倍,足證台灣的交通安全問題日趨嚴重。 Take Taoyuan City as an example. According to statistics from the Taoyuan City Government, there were a total of 15,286 A2 traffic accidents in Taoyuan City in 2009. A2 traffic accidents refer to accidents involving injury or death for more than 24 hours, resulting in a total of 20,048 injuries. However, By 2018, the number of accidents had increased to 30,689, resulting in 40,595 injuries. In just ten years, both the number of accidents and the number of injuries have approximately doubled, which proves that Taiwan's traffic safety problems are becoming increasingly serious.

造成交通事故的因子眾多,諸如駕駛人為因子、天氣、道路狀況等,都有可能導致交通事故的發生,且這些因子通常難以預期與量化,使得交通事故的預防倍加困難,近年來除了政府單位持續修正法規及改善 道路設計外,也有許多研究與發明嘗試從不同面向來解決城市交通事故問題。 There are many factors that cause traffic accidents, such as driver factors, weather, road conditions, etc., which may lead to traffic accidents. These factors are often difficult to predict and quantify, making the prevention of traffic accidents doubly difficult. In recent years, in addition to government units continuing to Amend regulations and improve In addition to road design, there are also many research and invention attempts to solve the problem of urban traffic accidents from different aspects.

舉例來說,曾有學者提出利用迴歸分析(regression analysis)模型,建立交通事故與道路壅塞的基本關係模型,並將資訊提供給駕駛人,進而避免行駛壅塞路段,也有學者提出利用車輛間(vehicle-to-vehicle,V2V)通訊,自動調節車速與車距,除了降低事故機率,也讓高速公路車流更流暢,也有使用模糊理論分析事故熱區及成因,或使用深度學習分析天氣狀況與交通事故的關係。 For example, some scholars have proposed using regression analysis models to establish a basic relationship model between traffic accidents and road congestion, and provide information to drivers to avoid driving on congested road sections. Some scholars have also proposed using vehicle-to-vehicle -to-vehicle, V2V) communication, automatically adjusts vehicle speed and distance. In addition to reducing the probability of accidents, it also makes highway traffic flow smoother. Fuzzy theory is also used to analyze accident hot spots and causes, or deep learning is used to analyze weather conditions and traffic accidents. relationship.

美國發明專利第US 8,188,887 B2號,曾揭露一組配置在車輛上的車輛監視系統,其能夠與車載電腦耦接,取得車輛之目前即時車況資料,並透過網際網路連結到中央伺服器上取得電子地圖以及行進路線上之即時路況資訊,例如路段速限等,系統還能結合車況資料以及路況資訊,而對使用者發出駕駛提示;美國發明專利公開文本第US 2016/0061625 A1號,曾揭露有關將交通事故依照地點與類型儲存在中央伺服器上,並提供給使用者即時存取,且可以依照使用者所在地點對使用者發出警示的技術。 U.S. Invention Patent No. US 8,188,887 B2 discloses a vehicle monitoring system installed on a vehicle, which can be coupled with the on-board computer to obtain the current real-time status data of the vehicle and connect to the central server through the Internet. Electronic maps and real-time traffic information on the driving route, such as road speed limits, etc., the system can also combine vehicle condition data and road condition information to issue driving prompts to users; U.S. Invention Patent Publication No. US 2016/0061625 A1, has been disclosed Technology that stores traffic accidents on a central server according to location and type, provides users with real-time access, and can issue warnings to users based on their location.

台灣發明專利第I 702563號,曾揭露一種道路狀態即時通知方法及其系統,當使用者裝置進入某路段時,發送註冊訊息至管理伺服器,以對包含所在路段之群組進行註冊,當使用者裝置發送通知訊息至管理伺服器時,管理伺服器即能將通知訊息發送至包含使用者裝置所在路段之群組中所有註冊的使用者裝置,當使用者裝置離開路段時,發送解除註冊訊息至管理伺服器,以解除至少包含離開路段之對應群組的註冊,這樣的技術能夠快速且有效的通知車輛前方的道路突發狀況,且能即時傳送交通事 件訊息給道路上所有相關的車輛。 Taiwan Invention Patent No. I 702563 has disclosed a method and system for real-time notification of road status. When the user device enters a certain road section, a registration message is sent to the management server to register the group containing the road section. When using When the user device sends a notification message to the management server, the management server can send the notification message to all registered user devices in the group containing the road segment where the user device is located. When the user device leaves the road segment, an unregistration message is sent. Go to the management server to unregister the corresponding group that at least includes the leaving road section. This technology can quickly and effectively notify the vehicle of unexpected road conditions ahead, and can instantly transmit traffic events. message to all relevant vehicles on the road.

本案發明人在台灣發明專利申請第109104727號「地圖式適應性可變範圍交通狀況偵測方法與裝置及其電腦程式產品」中,曾揭露根據使用者的位置、前進方向及移動速度動態調整事件偵測的範圍的技術,並搭配在偵測到前方有可能發生道路事件時,提高影音串流的影音品質,或觸發雲端行車記錄器啟動,並錄製較長秒數及較佳畫質,以防漏掉關鍵事故畫面,若無道路事件則可以調降影音品質以節省網路流量及耗電。 The inventor of this case disclosed in Taiwan Invention Patent Application No. 109104727 "Map-based adaptive variable range traffic condition detection method and device and computer program product thereof" that dynamically adjust events based on the user's position, forward direction and moving speed. The detection range technology, combined with the detection of a possible road incident ahead, improves the audio and video quality of the video stream, or triggers the cloud driving recorder to start, and records longer seconds and better image quality, so as to To prevent key accident scenes from being missed, if there are no road incidents, the video and audio quality can be lowered to save network traffic and power consumption.

然而上述這些研究與發明,多半著重於提出新穎的理論或演算法架構,解決方案往往過於理論化與理想化,或需要執行大量的數學運算,或需要使用特定硬體設備,或建置成本過高,或準確率不佳等,導致難以在現實生活中具體化的付諸實現(reduction to practice),且這些解決方案或發明幾乎都欠缺對於未來交通事故發生風險預測的功能。 However, most of the above-mentioned research and inventions focus on proposing novel theories or algorithm architectures. The solutions are often too theoretical and ideal, or require the execution of a large number of mathematical operations, the use of specific hardware equipment, or the construction cost is too high. High or poor accuracy makes it difficult to reduce to practice in real life, and almost all of these solutions or inventions lack the function of predicting the risk of future traffic accidents.

如果能提出一套技術,是能夠在現實生活中付諸實現,可以適應性的根據駕人駛的個人化背景資訊,有效預測未來交通風險事故發生熱區、車流量或平均車速,並預測不同路線的交通事故發生風險機率,還能提前通知駕駛人,則駕駛人可以預先按照個人交通風險承受力,選定行駛符合自己風險承受力的路線,且會針對駕駛人適應性的進行個人化組態設定,或者因應可能的交通事故風險,主動放慢車速、提高警覺,更專注於周遭路況,或者繞道行駛,或採用防衛駕駛,勢必可以從整體上,有效降低交通事故發生的機率。 If a set of technology can be proposed, it can be implemented in real life. It can effectively predict future traffic risk accident hot spots, traffic volume or average speed based on the driver's personalized background information, and predict different traffic risk accidents. The risk probability of traffic accidents along the route can also be notified to the driver in advance, so the driver can select a route that meets his or her own risk tolerance in advance, and the driver will be personally configured according to the driver's adaptability. Setting, or in response to the possible risk of traffic accidents, actively slowing down, increasing alertness, paying more attention to the surrounding road conditions, or driving on detours, or adopting defensive driving will definitely effectively reduce the probability of traffic accidents as a whole.

職是之故,有鑑於習用技術中存在的缺點,發明人經過悉心嘗試與研究,並一本鍥而不捨之精神,終構思出本案「個人化道路風險預 測系統、方法與使用者設備」,能夠克服上述缺點,以下為本發明之簡要說明。 For this reason, in view of the shortcomings in the conventional technology, the inventor finally conceived the "Personalized Road Risk Prediction" of this case after careful attempts and research, and a spirit of perseverance. "Measurement system, method and user equipment" can overcome the above shortcomings. The following is a brief description of the present invention.

鑑於習用技術不足之處,本發明提出於自製車載應用程式中,使用政府開放資料平台所提供之道路事件與自製應用程式使用者上傳之道路事件等資料庫來源,持續利用過去的交通狀況之歷史資訊,並應用機器學習技術進行道路風險(road risk)預測下一個時間點的交通狀況,以及風險地圖的預測,再合併使用者提供的個人化資訊與機器學習所得的風險地圖,據以計算出適當的推薦路徑,以供使用者參考選擇行駛之。 In view of the shortcomings of conventional technologies, the present invention proposes to use the road events provided by the government's open data platform and road events uploaded by users of the self-made application in a self-made vehicle application to continuously utilize the history of past traffic conditions. information, and apply machine learning technology to predict road risk (road risk) traffic conditions at the next point in time, as well as risk map prediction, and then merge the personalized information provided by the user with the risk map obtained by machine learning to calculate Appropriate recommended routes for users to choose as a reference.

本發明系統著重於對未來的事件進行預測與分析,透過過去與當前的資訊進行未來事件的預測,給予使用者更精準的道路風險承受指數,並推薦使用者風險較低的路段來行駛。 The system of the present invention focuses on predicting and analyzing future events, predicts future events through past and current information, gives users a more accurate road risk tolerance index, and recommends road sections with lower risks for users to drive on.

據此本發明提出一種個人化道路風險預測系統,其包含:系統伺服器,其包含交通風險預測主控電腦程式產品;以及使用者設備,其係與該系統伺服器通訊連結,並提供前端電腦程式產品供使用者操作,以驅動該交通風險預測主控電腦程式產品包含的經過訓練之交通風險預測機器學習模型程式元件,該交通風險預測機器學習模型程式元件經執行後實施風險地圖之預測及選擇性計算個人化風險指數,並據此向該使用者提供至少一個人化推薦路徑。 Accordingly, the present invention proposes a personalized road risk prediction system, which includes: a system server, which includes a traffic risk prediction main control computer program product; and user equipment, which is communicated with the system server and provides a front-end computer The program product is operated by the user to drive the trained traffic risk prediction machine learning model program component included in the traffic risk prediction master computer program product. After execution, the traffic risk prediction machine learning model program component implements the prediction of the risk map and Optionally calculate a personalized risk index and provide at least one personalized recommendation path to the user based on this.

本發明進一步提出一種個人化道路風險預測方法,其包含:在後端的系統伺服器上安裝交通風險預測主控電腦程式產品;在使用者設備上執行前端電腦程式產品供使用者操作,以驅動該交通風險預測主控電 腦程式產品包含的經過訓練之交通風險預測機器學習模型程式元件;該交通風險預測機器學習模型程式元件經執行後實施風險地圖之預測及選擇性計算個人化風險指數,並據此計算至少一個人化推薦路徑;以及透過該使用者設備向該使用者顯示該至少一個人化推薦路徑。 The present invention further proposes a personalized road risk prediction method, which includes: installing a traffic risk prediction main control computer program product on the back-end system server; executing the front-end computer program product on the user device for the user to operate to drive the Traffic risk prediction main control circuit The brain program product contains a trained traffic risk prediction machine learning model program component; after execution, the traffic risk prediction machine learning model program component implements the prediction of the risk map and selectively calculates a personalized risk index, and calculates at least one personalized risk index accordingly. Recommended path; and displaying the at least one personalized recommended path to the user through the user device.

本發明進一步提出一種個人化道路風險預測使用者設備,其係與包含交通風險預測主控電腦程式產品的系統伺服器通訊連結,該個人化道路風險預測使用者設備包含:顯示單元;以及一處理器單元,其執行前端電腦程式產品供使用者操作,以驅動該交通風險預測主控電腦程式產品包含的經過訓練之交通風險預測機器學習模型程式元件,該交通風險預測機器學習模型程式元件經執行後實施風險地圖之預測及選擇性計算個人化風險指數,並據此產生至少個人化推薦路徑,且透過該顯示單元向該使用者顯示。 The present invention further proposes a personalized road risk prediction user equipment, which is communicated with a system server including a traffic risk prediction main control computer program product. The personalized road risk prediction user equipment includes: a display unit; and a processing unit. A server unit that executes a front-end computer program product for user operation to drive a trained traffic risk prediction machine learning model program component included in the traffic risk prediction master computer program product. The traffic risk prediction machine learning model program component is executed Then, the prediction of the risk map and the selective calculation of the personalized risk index are implemented, and at least a personalized recommended path is generated based on this, and displayed to the user through the display unit.

上述發明內容旨在提供本揭示內容的簡化摘要,以使讀者對本揭示內容具備基本的理解,此發明內容並非揭露本發明的完整描述,且用意並非在指出本發明實施例的重要/關鍵元件或界定本發明的範圍。 The above summary is intended to provide a simplified summary of the disclosure to provide readers with a basic understanding of the disclosure. This summary is not a complete description of the disclosure, and is not intended to identify important/critical elements of the embodiments of the disclosure. Define the scope of the invention.

10:本發明個人化道路風險預測系統 10: Personalized road risk prediction system of the present invention

100:使用者設備 100: User device

101:處理器單元 101: Processor unit

103:通訊模組 103: Communication module

105:儲存單元 105:Storage unit

107:顯示單元 107:Display unit

109:前端程式 109:Front-end program

110:車載資通訊裝置 110: Vehicle telematics device

115:行動裝置 115:Mobile device

120:桌上型電腦 120:Desktop computer

125:筆記型電腦 125:Laptop

130:智慧手機 130:Smartphone

135:平板裝置 135:Tablet device

200:系統伺服器 200:System server

210:交通風險預測主控程式 210: Traffic risk prediction main control program

211:交通風險預測機器學習模型程式元件 211: Traffic risk prediction machine learning model program component

213:影像空間特徵萃取模型 213: Image space feature extraction model

214:時間序列相依關係學習模型 214: Time series dependency learning model

250:交通風險資料庫 250:Traffic Risk Database

300:網際網路 300:Internet

S:起點 S: starting point

E:終點 E: End point

A:路徑 A:Path

B:路徑 B:Path

C:路徑 C: path

500:本發明個人化道路風險預測方法 500: Personalized road risk prediction method of the present invention

501~507:實施步驟 501~507: Implementation steps

第1圖揭示本發明個人化道路風險預測系統之系統架構視圖; Figure 1 shows a system architecture view of the personalized road risk prediction system of the present invention;

第2圖揭示本發明個人化道路風險預測系統包含之遠端系統伺服器與使用者設備之硬體網路設備功能元件視圖; Figure 2 shows a functional component view of the hardware network equipment of the remote system server and user equipment included in the personalized road risk prediction system of the present invention;

第3圖揭示本發明個人化道路風險預測系統所使用之CNN模型分層架構示意圖; Figure 3 shows a schematic diagram of the hierarchical architecture of the CNN model used in the personalized road risk prediction system of the present invention;

第4圖揭示本發明個人化道路風險預測系統所使用之LSTM模型內部邏輯架構示意圖; Figure 4 shows a schematic diagram of the internal logical architecture of the LSTM model used in the personalized road risk prediction system of the present invention;

第5圖揭示本發明個人化道路風險預測系統所使用之交通風險CNN-LSTM模型多層架構示意圖; Figure 5 shows a schematic diagram of the multi-layer architecture of the traffic risk CNN-LSTM model used in the personalized road risk prediction system of the present invention;

第6圖揭示本發明個人化道路風險預測系統所使用之交通風險CNN-LSTM模型內部經過轉置層與重塑層處理前與處理後之資料排序方式示意圖; Figure 6 shows a schematic diagram of the data sorting method before and after processing in the traffic risk CNN-LSTM model used by the personalized road risk prediction system of the present invention after transposition layer and reshaping layer;

第7圖揭示本發明交通風險CNN-LSTM模型之建置流程示意圖; Figure 7 shows a schematic diagram of the construction process of the traffic risk CNN-LSTM model of the present invention;

第8圖揭示本發明交通風險CNN-LSTM模型使用之輸入矩陣與輸入矩陣之矩陣行列結構示意圖; Figure 8 shows a schematic diagram of the input matrix used by the traffic risk CNN-LSTM model of the present invention and the matrix row and column structure of the input matrix;

第9圖揭示在本發明前端程式操作介面中所顯示的Google Map導航功能所給定的建議路徑示意圖; Figure 9 shows a schematic diagram of the suggested path given by the Google Map navigation function displayed in the front-end program operation interface of the present invention;

第10圖揭示在本發明前端應用程式操作介面中所顯示的交通風險預測機器學習模型針對網格化預測範圍所計算之風險地圖示意圖; Figure 10 shows a schematic diagram of the risk map calculated by the traffic risk prediction machine learning model for the grid prediction range displayed in the front-end application operating interface of the present invention;

第11圖揭示在本發明前端應用程式操作介面中所顯示的交通風險預測機器學習模型疊合Google Map建議路徑與風險地圖之示意圖; Figure 11 shows a schematic diagram of the traffic risk prediction machine learning model superimposed on Google Map recommended routes and risk maps displayed in the front-end application operating interface of the present invention;

第12圖揭示在本發明前端應用程式操作介面中所顯示的交通風險預測機器學習模型基於Google Map建議路徑與風險地圖並合併個人化風險指數後所計算之道路風險預測結果示意圖; Figure 12 shows a schematic diagram of the road risk prediction results calculated by the traffic risk prediction machine learning model displayed in the front-end application operating interface of the present invention based on Google Map recommended routes and risk maps and incorporating personalized risk indexes;

第13圖係揭示本發明個人化道路風險預測系統利用網頁瀏覽器做為前端程式而在網頁瀏覽器中顯示之道路風險預測結果示意圖; Figure 13 is a schematic diagram showing the road risk prediction results displayed in the web browser by the personalized road risk prediction system of the present invention using a web browser as a front-end program;

第14圖係揭示本發明個人化道路風險預測系統以車載資通訊專用應 用程式做為前端程式而在車載資通訊專用應用程式中顯示之道路風險預測結果示意圖;以及 Figure 14 shows that the personalized road risk prediction system of the present invention uses a dedicated application for vehicle telematics. A schematic diagram of road risk prediction results displayed in an in-vehicle telematics application using the program as a front-end program; and

第15圖揭示個人化道路風險預測方法之實施步驟流程圖。 Figure 15 shows the flow chart of the implementation steps of the personalized road risk prediction method.

本發明將可由以下的實施例說明而得到充分瞭解,使得熟習本技藝之人士可以據以完成之,然本發明之實施並非可由下列實施案例而被限制其實施型態;本發明之圖式並不包含對大小、尺寸與比例尺的限定,本發明實際實施時其大小、尺寸與比例尺並非可經由本發明之圖式而被限制。 The present invention will be fully understood from the following examples, so that those skilled in the art can implement it. However, the implementation of the present invention is not limited to its implementation form by the following examples; the drawings of the present invention are not There are no limitations on the size, dimensions and scale, and the size, dimensions and scale of the actual implementation of the present invention are not limited by the drawings of the present invention.

本文中用語“較佳”是非排它性的,應理解成“較佳為但不限於”,任何說明書或請求項中所描述或者記載的任何步驟可按任何順序執行,而不限於請求項中所述的順序,本發明的範圍應僅由所附請求項及其均等方案確定,不應由實施方式示例的實施例確定;本文中用語“包含”及其變化出現在說明書和請求項中時,是一個開放式的用語,不具有限制性含義,並不排除其它特徵或步驟。 The word "preferably" used in this article is non-exclusive and should be understood as "preferably but not limited to". Any steps described or recorded in any specification or claim can be performed in any order, and are not limited to the claims. The order described, the scope of the present invention should only be determined by the appended claims and their equivalents, and should not be determined by the examples of implementation examples; when the word "comprising" and its changes appear in the description and claims, , is an open-ended term with no restrictive meaning and does not exclude other features or steps.

第1圖揭示本發明個人化道路風險預測系統之系統架構視圖;第2圖揭示本發明個人化道路風險預測系統包含之遠端系統伺服器與使用者設備之硬體網路設備功能元件視圖;本發明個人化道路風險預測系統10包含應用主從式架構(client-server model)而配置在後端(back-end)或伺服端(server end)的一部或多部系統伺服器200,以及配置在前端(front-end)、客戶端(client end)或展示層(presentation layer)的多台使用者設備(user equipment,UE)100,系統伺服器200與多部使用者設備100之間經由有線 (wired)或無線(wireless)網際網路300建立通訊連結,以建立進行雙向通訊與資料交換之上下行通訊鏈路(upload and download communication link)。 Figure 1 shows a system architecture view of the personalized road risk prediction system of the present invention; Figure 2 shows a view of the hardware network equipment functional components of the remote system server and user equipment included in the personalized road risk prediction system of the present invention; The personalized road risk prediction system 10 of the present invention includes one or more system servers 200 configured at the back-end or server end using a client-server model, and Multiple user equipment (UE) 100 configured at the front-end, client end or presentation layer, the system server 200 and the multiple user equipment 100 are connected via Wired The (wired) or wireless (wireless) Internet 300 establishes a communication link to establish an upload and download communication link for two-way communication and data exchange.

使用者設備100較佳是車載資通訊裝置(telematics device)110、行動裝置(mobile device)115、桌上型電腦120、筆記型電腦125、智慧手機130或平板裝置135等,使用者設備100至少內建彼此電連接之處理器單元101、通訊模組103、儲存單元(storage)105及顯示單元107等硬體單元,以及前端程式109的軟體單元,前端程式109是安裝在使用者設備100上並經由處理器單元101載入而執行,較佳是例如但不限於網頁瀏覽器(web browser)、應用程式(App)或微應用程式(micro App),使用者經由操作使用者設備100上的前端程式109而操作系統伺服器200上的交通風險預測主控程式210,顯示單元107較佳是顯示器、外接顯示器、或觸控螢幕等。 The user equipment 100 is preferably a telematics device 110, a mobile device 115, a desktop computer 120, a notebook computer 125, a smart phone 130 or a tablet device 135, etc. The user equipment 100 is at least Built-in hardware units such as a processor unit 101, a communication module 103, a storage unit (storage) 105 and a display unit 107, which are electrically connected to each other, and a software unit of a front-end program 109. The front-end program 109 is installed on the user device 100 And is loaded and executed through the processor unit 101, preferably such as but not limited to a web browser (web browser), application (App) or micro application (micro App). The user operates the program on the user device 100. The front-end program 109 operates the traffic risk prediction main control program 210 on the server 200, and the display unit 107 is preferably a monitor, an external monitor, or a touch screen.

系統伺服器200上安裝有交通風險預測主控程式210,交通風險預測主控程式210較佳是一隻後端邏輯執行與管理後台,主要包含交通風險預測機器學習模型程式元件211,且還包含周邊的邏輯處理程式元件、管理程式元件、介面程式元件與資料交換程式元件等,其透過安裝在使用者設備100上的前端程式做為前端操作介面,而提供給使用者登入並進行操作,系統伺服器200與交通風險資料庫250通訊連結,交通風險資料庫250可以是建置並直接儲存在系統伺服器200上,或者是另外建置並儲存在另一個與系統伺服器200分離配置但保持通訊連結的資料層或專用資料伺服器之中。 The traffic risk prediction main control program 210 is installed on the system server 200. The traffic risk prediction main control program 210 is preferably a back-end logic execution and management background, which mainly includes the traffic risk prediction machine learning model program component 211, and also includes Peripheral logic processing components, management program components, interface program components and data exchange program components, etc., are provided to the user to log in and operate the system through the front-end program installed on the user device 100 as a front-end operating interface. The server 200 is communicated with the traffic risk database 250. The traffic risk database 250 can be built and stored directly on the system server 200, or it can be built and stored in another configuration separate from the system server 200 but maintained. In the data layer of the communication link or in a dedicated data server.

當前端程式以專用的應用程式或微應用程式的方式作為前端使用者介面提供給使用者操作時,較佳是架構在幾個主流的行動作業系 統(mobile OS)下運作,例如但不限於:Palm行動作業系統、Windows行動作業系統、Android作業系統、Apple iOS、Blackberry作業系統等,尤其行動裝置的兩大主要作業系統Android系統及iOS系統,在Android系統的部分,應用程式是利用Android Studio設計編輯器而開發,遠端伺服器程式與軟體系統的部分較佳是使用例如但不限於PHP指令碼,存取關聯性資料庫MySQLDB以傳送與接收資料,MySQLDB是一個多使用者、多執行緒的SQL資料庫伺服器,可以為一個資料庫軟體作有效的編排、建檔、表格化,以便後續更有效率的查詢、整理、傳送與接收資料;在iOS裝置的部分,應用程式較佳是使用例如但不限於Xcode與UIKit基礎元件開發設計應用程式介面,利用Objective-C程式語言或Swift程式語言進行開發。 When the front-end program is provided as a front-end user interface for user operation in the form of a dedicated application or micro-application, it is best to be built on several mainstream mobile operating systems. Operate under mobile OS, such as but not limited to: Palm mobile operating system, Windows mobile operating system, Android operating system, Apple iOS, Blackberry operating system, etc., especially the two main operating systems of mobile devices, Android system and iOS system. In the Android system part, the application is developed using the Android Studio design editor. The remote server program and software system part preferably use, for example, but not limited to, PHP scripts to access the correlation database MySQLDB to transmit and To receive data, MySQLDB is a multi-user, multi-thread SQL database server that can effectively arrange, file, and tabulate a database software for more efficient subsequent query, sorting, transmission, and reception. Data; For iOS devices, the application is preferably developed using basic components such as but not limited to Xcode and UIKit APIs, and is developed using Objective-C programming language or Swift programming language.

當前端程式以車載資通訊專用應用程式的方式作為前端使用者介面提供給使用者操作時,較佳是架構在幾個主流的車載資訊作業系統下運作,例如但不限於QNX Car 2.0、iOS in the Car、CarPlay、Android Auto、Windows CE Automotive等車載資訊作業系統、或其它例如但不限於PikeOS嵌入式車載資訊作業系統下運作的應用程式、或其它封閉式車載資訊作業系統下運作的應用程式。車載資通訊裝置110較佳是指搭載在車輛上,可運行車載資訊作業系統並在車載資訊作業系統上執行應用程式,且配置具智慧化人機介面(HMI),例如語音控制、全觸控車機、圖形化汽車儀表板與手勢操控等,且具有資訊處理、運算與通訊能力的智慧裝置。 When the front-end program is provided as a front-end user interface for user operation in the form of a car infotainment-specific application, it is better to run it under several mainstream car info operating systems, such as but not limited to QNX Car 2.0, iOS in the Car, CarPlay, Android Auto, Windows CE Automotive and other vehicle information operating systems, or other applications running under the PikeOS embedded vehicle information operating system, or other closed vehicle information operating systems. The vehicle information communication device 110 is preferably mounted on a vehicle, can run the vehicle information operating system and execute applications on the vehicle information operating system, and is equipped with an intelligent human machine interface (HMI), such as voice control and full touch control. Smart devices with information processing, computing and communication capabilities, such as car consoles, graphical car dashboards and gesture controls.

本發明提出的個人化道路風險預測系統與相關程式元件,除了將前端程式建置為專門應用程式外,還可透過外部部署(off-premises)的方式,應用軟體即服務(SaaS)或平台即服務(PaaS)雲端技術而建置,提供使用 者透過在使用者設備100上執行的網頁瀏覽器作為前端程式,而直接提供給使用者操作,在使用SaaS或PaaS服務的情況下,使用者只須取得權限,就可上網存取與使用本發明之系統,使用者不需要在使用者設備100另外上安裝應用程式。對於可以執行網頁瀏覽器的車載資通訊裝置110,使用者也無須在車載資通訊裝置110上安裝應用程式。 The personalized road risk prediction system and related program components proposed by the present invention, in addition to building the front-end program as a specialized application program, can also be deployed externally (off-premises) using Software as a Service (SaaS) or Platform as a Service. Built as a service (PaaS) cloud technology and provided for use The web browser executed on the user device 100 serves as a front-end program and is directly provided to the user for operation. In the case of using SaaS or PaaS services, the user only needs to obtain permission to access and use the program online. In the system of the invention, the user does not need to install applications on the user device 100 at the same time. For the vehicle telematics device 110 that can execute a web browser, the user does not need to install an application program on the vehicle telematics device 110 .

在某實施例中,行動端較佳採用Android平台為開發基礎,後端較佳採用Node.js系統開發,結合輕量型資料傳輸框架express.js,資料庫採用開源系統MariaDB,整體系統均建置於Kubernetes雲端容器管理系統架構,並透過自動化部署、擴張及管理容器應用服務系統,達到系統負載平衡、資源分配及不中斷的服務品質。 In one embodiment, the mobile terminal preferably uses the Android platform as the development basis, the backend is preferably developed using the Node.js system, combined with the lightweight data transmission framework express.js, and the database uses the open source system MariaDB, and the entire system is built It is placed in the Kubernetes cloud container management system architecture and achieves system load balancing, resource allocation and uninterrupted service quality through automated deployment, expansion and management of the container application service system.

使用者設備100內部的處理器單元101,將透過前端程式接收使用者下達的指令,並將指令透過通訊模組103傳輸給系統伺服器200上的交通風險預測主控程式210,交通風險預測主控程式210將據此執行指令,包含例如但不限於:存取(access)交通風險資料庫250,包含讀取(read)需要的資料或寫入(write)資料,並下載到客戶端的使用者設備100上,處理器單元101亦指架構較簡單的電子控制單元(ECU)或微控制器單元(MCU)等。在使用者設備100前端程式109與系統伺服器200交通風險資料庫250之間,較佳是選用例如但不限於HTTP/HTTPS通訊協定,並配合例如但不限於JSON格式進行資料交換與雙向通訊。 The processor unit 101 inside the user equipment 100 will receive the instructions issued by the user through the front-end program, and transmit the instructions to the traffic risk prediction main control program 210 on the system server 200 through the communication module 103. The control program 210 will execute instructions accordingly, including for example but not limited to: accessing the traffic risk database 250, including reading the required data or writing the data, and downloading it to the user of the client. On the device 100, the processor unit 101 also refers to an electronic control unit (ECU) or a microcontroller unit (MCU) with a relatively simple structure. Between the front-end program 109 of the user device 100 and the traffic risk database 250 of the system server 200, it is preferable to use a communication protocol such as but not limited to HTTP/HTTPS and cooperate with a JSON format for data exchange and two-way communication.

交通風險預測主控程式210、交通風險預測機器學習模型程式元件211、與前端程式109或其它程式元件,以及遠端伺服器程式或軟體系統,可以應用任何程式語言來編程(programming)與編譯(compiling),例如 但不限於C、C++、C#、Java、VBScript、Macromedia Cold Fusion、COBOL、微軟動態伺服器網頁、組合語言、PERL、PHP、awk、Python、Visual Basic、SQL儲存程序、PL/SQL、任何UNIX命令描述語言、及具有以資料結構、物件、程序、常式或其它程式元件之任何組合實施之各種演算法的可擴展標記語言(XML)。 The traffic risk prediction main control program 210, the traffic risk prediction machine learning model program component 211, the front-end program 109 or other program components, and the remote server program or software system can use any programming language to program (programming) and compile ( compiling), for example But not limited to C, C++, C#, Java, VBScript, Macromedia Cold Fusion, COBOL, Microsoft Dynamic Server Web, assembly language, PERL, PHP, awk, Python, Visual Basic, SQL stored procedures, PL/SQL, any UNIX command Description language, Extensible Markup Language (XML) with algorithms implemented in any combination of data structures, objects, procedures, routines, or other program elements.

本發明個人化道路風險預測系統與所包含的程式元件,係由在實體設備層中的各項硬體與在應用程式層中的應用程式/軟體平台/電腦程式產品組成,按照國際開放式系統互連通訊參考模型(OSI/RM)架構,程式元件是在OSI/RM架構第7層(應用層)上執行與運作的軟體應用服務,在第7層的軟體應用服務可自主選用第4層傳輸層中各式通訊協定、在第3層網路層形成資料封包並決定傳輸路徑、通過第2層資料連結層加上邏輯鏈路控制(LLC)與媒體存取控制(MAC)後,與位在第1層實體層上的各項裝置,例如但不限於多部使用者設備100與系統伺服器200等等,建立所需之通訊鏈路。 The personalized road risk prediction system of the present invention and the included program components are composed of various hardware in the physical equipment layer and application programs/software platforms/computer program products in the application program layer. According to the international open system Interconnection Communication Reference Model (OSI/RM) architecture, program components are software application services that execute and operate on layer 7 (application layer) of the OSI/RM architecture. Software application services at layer 7 can independently choose layer 4. Various communication protocols in the transport layer form data packets and determine the transmission path at the layer 3 network layer. After adding logical link control (LLC) and media access control (MAC) through the layer 2 data connection layer, and Various devices located on the layer 1 physical layer, such as but not limited to multiple user devices 100 and system servers 200, etc., establish required communication links.

本發明交通風險預測機器學習模型程式元件211,較佳係由影像空間特徵萃取模型213以及時間序列相依關係學習模型214等兩個主要元件所組成,影像空間特徵萃取模型213較佳選自例如但不限於:卷積神經網路(CNN)模型、區域卷積神經網路(R-CNN)模型、快速區域卷積神經網路(Faster R-CNN)模型、深度卷積神經網路(DCNN)模型、循環神經網路(RNN)模型、卷積循環神經網路(CRNN)模型、深層循環神經網路(DRNN)模型、全卷積神經網路(FCN)模型、多列卷積神經網路(MCNN)模型、雙向神經網路(BRNN)模型或深度神經網路(DNN)模型等。 The traffic risk prediction machine learning model program component 211 of the present invention is preferably composed of two main components such as an image space feature extraction model 213 and a time series dependency learning model 214. The image space feature extraction model 213 is preferably selected from, for example, but Not limited to: convolutional neural network (CNN) model, regional convolutional neural network (R-CNN) model, fast regional convolutional neural network (Faster R-CNN) model, deep convolutional neural network (DCNN) Model, Recurrent Neural Network (RNN) model, Convolutional Recurrent Neural Network (CRNN) model, Deep Recurrent Neural Network (DRNN) model, Fully Convolutional Neural Network (FCN) model, Multi-column convolutional neural network (MCNN) model, bidirectional neural network (BRNN) model or deep neural network (DNN) model, etc.

時間序列相依關係學習模型214較佳選自例如但不限於:長 短期記憶模型(LSTM)、非監督式學習模型、監督式學習模型、深度學習(deep learning)模型、自編碼器(AutoEncoder)模型、類神經網路(ANN)模型、多層感知(MLP)模型、深度神經網路(DNN)模型、集成學習(ensemble learning)模型等。 The time series dependency learning model 214 is preferably selected from, for example but not limited to: long-term Short-term memory model (LSTM), unsupervised learning model, supervised learning model, deep learning (deep learning) model, autoencoder (AutoEncoder) model, neural network (ANN) model, multi-layer perception (MLP) model, Deep neural network (DNN) model, ensemble learning (ensemble learning) model, etc.

在本實施例,本發明交通風險預測機器學習模型程式元件211,較佳係以由卷積神經網路(Convolution Neural Network,CNN)模型結合長短期記憶(Long Short-Term Memory,LSTM)模型組成交通風險CNN-LSTM模型為例作為演算核心說明。 In this embodiment, the traffic risk prediction machine learning model program component 211 of the present invention is preferably composed of a convolutional neural network (Convolution Neural Network, CNN) model combined with a long short-term memory (Long Short-Term Memory, LSTM) model. The traffic risk CNN-LSTM model is taken as an example as the core explanation of the calculation.

第3圖揭示本發明個人化道路風險預測系統所使用之CNN模型分層架構示意圖;CNN模型具有以下幾個特點:(1)可以直接以二維矩陣作為輸入;(2)權重共享(weights sharing)以減少模型訓練參數並縮短訓練時間;(3)空間特徵萃取效果佳,在本實施例CNN模型包含如第3圖所示的卷積層(convolution layer)、池化層(pooling layer)、全連接層(fully connected layer),其中卷積層會在輸入影像上,以固定大小的方形濾波器(kernel)由左而右、由上而下地進行卷積運算,藉此擷取輸入影像的特徵,卷積層的運算式如下所列: Figure 3 shows a schematic diagram of the hierarchical architecture of the CNN model used in the personalized road risk prediction system of the present invention; the CNN model has the following characteristics: (1) it can directly use a two-dimensional matrix as input; (2) weights sharing ) to reduce model training parameters and shorten training time; (3) The spatial feature extraction effect is good. In this embodiment, the CNN model includes a convolution layer, a pooling layer, and a full layer as shown in Figure 3. A fully connected layer, in which the convolution layer performs convolution operations on the input image from left to right and top to bottom with a fixed-size square filter (kernel) to capture the features of the input image. The operation formula of the convolutional layer is listed below:

Figure 110110632-A0101-12-0012-1
Figure 110110632-A0101-12-0012-1

其中

Figure 110110632-A0101-12-0012-2
表示第l層的第q個特徵圖(feature map),
Figure 110110632-A0101-12-0012-3
為第l層的濾波器,
Figure 110110632-A0101-12-0012-4
為偏移量(bias),M q 為輸入特徵圖,*為卷積運算,g為激勵函數(activation function),在本發明系統實施例,較佳是選擇使用線性整流單位(ReLU)函數做為激勵函數,具有收斂速度快、效率高等特性。 in
Figure 110110632-A0101-12-0012-2
Represents the q- th feature map of the l-th layer,
Figure 110110632-A0101-12-0012-3
is the filter of the lth layer,
Figure 110110632-A0101-12-0012-4
is the offset (bias), M q is the input feature map, * is the convolution operation, and g is the activation function. In the system embodiment of the present invention, it is preferable to use the rectified linear unit (ReLU) function. It is an excitation function and has the characteristics of fast convergence speed and high efficiency.

池化層在CNN中是用來減少資料量、保留重要資訊的方法,常見的池化方法如最大池化法(max pooling)、平均池化法(mean pooling)等,但池化會破壞順序關係,且由於後續需要把卷積層計算結果傳輸給LSTM層,故並不適合加入池化層,因此本發明系統使用的CNN並未加入池化層,以防時序特徵在池化過程丟失。 The pooling layer is used in CNN to reduce the amount of data and retain important information. Common pooling methods include max pooling, mean pooling, etc., but pooling will destroy the order. relationship, and since the convolutional layer calculation results need to be transmitted to the LSTM layer later, it is not suitable to add a pooling layer. Therefore, the CNN used in the system of the present invention does not add a pooling layer to prevent temporal features from being lost in the pooling process.

全連接層為一個神經網路(Neural Network,NN)層,經由激勵函數可以將二維的特徵圖轉為一維輸出結果,全連接層之運算式如下所列,其中w l 為權重矩陣(weight matrix),b l 為偏移向量,g為激勵函數: The fully connected layer is a neural network (NN) layer. The two-dimensional feature map can be converted into a one-dimensional output result through the activation function. The operation formula of the fully connected layer is as follows, where w l is the weight matrix ( weight matrix), b l is the offset vector, g is the excitation function:

x l =g(w l x l-1+b l ) x l = g ( w l x l -1 + b l )

在本發明系統中特徵擷取部分,將由CNN中的卷積層擔任,除池化層為了保留時間排序特徵而剔除外,全連接層也將移動至整個模型架構的尾端做為輸出使用。 In the system of the present invention, the feature extraction part will be handled by the convolutional layer in CNN. In addition to the pooling layer that is eliminated in order to retain the time sorting features, the fully connected layer will also be moved to the end of the entire model architecture for output use.

第4圖揭示本發明個人化道路風險預測系統所使用之LSTM模型內部邏輯架構示意圖;LSTM模型係透過記憶單元之運用增強長期記憶,例如增加輸入門(input gate)、忘記門(forget gate)與輸出門(output gate)之配置,讓模型自行學習資料流是否輸入、記憶與輸出,並據此篩選出重要的資料,解決遞迴神經網路(RNN)在記憶時間序列較長時,所發生之梯度消失(gradient vanishing)或梯度爆炸(gradient exploding)問題,以可有效擷取長度較長之時間序列資料的依賴關係。 Figure 4 shows a schematic diagram of the internal logical structure of the LSTM model used in the personalized road risk prediction system of the present invention; the LSTM model enhances long-term memory through the use of memory units, such as adding input gates, forget gates and The configuration of the output gate allows the model to learn on its own whether the data stream is input, memorized and output, and filter out important data accordingly to solve the problem that occurs when the Recurrent Neural Network (RNN) memorizes a long time series. The gradient vanishing or gradient exploding problem can effectively capture the dependencies of longer time series data.

LSTM模型內部之運算式如下所列: The internal calculation formulas of the LSTM model are as follows:

f t =σ(w f [h t-1,X t ]+b f ) f t = σ ( w f [ h t -1 , X t ]+ b f )

i t =σ(w i [h t-1,X t ]+b i ) i t = σ ( w i [ h t -1 , X t ]+ b i )

o t =σ(w o [h t-1,X t ]+b o ) o t = σ ( w o [ h t -1 , X t ]+ b o )

C t =f t * C t-1+i t * tanh(w c [h t-1,X t ]+b c ) C t = f t * C t -1 + i t * tanh( w c [ h t -1 , X t ]+ b c )

h t =o t * tanh(C t ) h t = o t * tanh( C t )

其中f t i t o t 分別表示忘記門、輸入門及輸出門,h t-1為前一個狀態,X t 為輸入,C t-1C t 分別為前一個及現在的記憶單元狀態,w f w i w o 為權重矩陣(weight matrices),b f b i b o 為偏移量向量(bias vectors),σ為S型函數(sigmoid function),*為逐元素相乘運算子。 Among them, f t , i t , o t represent the forget gate, input gate and output gate respectively, h t -1 is the previous state, X t is the input, C t -1 and C t are the previous and current memory units respectively. State, w f , w i and w o are weight matrices, b f , b i and b o are bias vectors, σ is a sigmoid function, * is element-wise Multiplication operator.

CNN-LSTM模型的目標函數則以損失函數(loss function)來定義,以將損失(loss)降到最低,且準確率盡可能提昇作為模型訓練目標,常用的損失函數如均方誤差(MSE)函數或平均絕對誤差(MAE)函數等,當採用MSE做為損失函數,因為有平方運算,對離群值(outlier)較MAE敏感,當資料含有離群值時損失會被放大,促使模型為了改善被放大的誤差而修正模型,反而降低其它項的準確率,MAE則未將離群值放大,每一個結果的權重皆相同,模型不會特別為一個離群值大幅改變模型。 The objective function of the CNN-LSTM model is defined by a loss function (loss function) to minimize the loss (loss) and improve the accuracy as much as possible as the model training goal. Commonly used loss functions such as mean square error (MSE) function or mean absolute error (MAE) function, etc., when using MSE as the loss function, because of the square operation, it is more sensitive to outliers (outlier) than MAE. When the data contains outliers, the loss will be amplified, prompting the model to Correcting the model to improve the amplified error will actually reduce the accuracy of other items. MAE does not amplify outliers. The weight of each result is the same, and the model will not change the model significantly for one outlier.

本發明系統考慮損失低並不代表準確率高,且道路事件風險資料的原始資料內,容易含有離群值,考慮不希望模型過度偏向離群值,故本發明系統選用MAE做為CNN-LSTM模型之目標函數。 The system of the present invention considers that low loss does not mean high accuracy, and the original data of road incident risk data easily contains outliers. Considering that the model does not want to be excessively biased towards outliers, the system of the present invention selects MAE as the CNN-LSTM. The objective function of the model.

第5圖揭示本發明個人化道路風險預測系統所使用之交通風險CNN-LSTM模型多層架構示意圖;本發明提出結合CNN模型及LSTM模型作為主要機器學習模型,搭配轉置層(permute layer)、重塑層(reshape layer)、扁平層(flatten layer)及全連接層(dense layer),組成本發明使用的機器學習模 型,完整模型架構如第5圖所示。 Figure 5 shows a schematic diagram of the multi-layer architecture of the traffic risk CNN-LSTM model used in the personalized road risk prediction system of the present invention; the present invention proposes to combine the CNN model and the LSTM model as the main machine learning model, with a permute layer, a re- The reshape layer, the flatten layer and the dense layer constitute the machine learning model used in the present invention. The complete model architecture is shown in Figure 5.

第6圖揭示本發明個人化道路風險預測系統所使用之交通風險CNN-LSTM模型內部經過轉置層與重塑層處理前與處理後之資料排序方式示意圖;CNN模型可以在保留圖像位置資訊的條件下,萃取圖像即輸入矩陣之特徵,LSTM模型則保留輸入資料的時間關連性,但由於CNN模型為萃取空間特徵的神經網路,LSTM模型為分析時間序列的神經網路,兩者未經處理無法直接串接,因此本發明系統在CNN模型與LSTM模型之間加上轉置層與重塑層,將資料排序維度轉為時間排序,最後連接扁平層轉換為資料流序列,提供LSTM模型進行訓練。 Figure 6 shows a schematic diagram of the data sorting method before and after processing by the transposition layer and the reshaping layer in the traffic risk CNN-LSTM model used in the personalized road risk prediction system of the present invention; the CNN model can retain image position information Under the conditions, the extracted image is the feature of the input matrix, and the LSTM model retains the temporal correlation of the input data. However, because the CNN model is a neural network that extracts spatial features, and the LSTM model is a neural network that analyzes time series, both They cannot be directly connected without processing, so the system of the present invention adds a transposition layer and a reshaping layer between the CNN model and the LSTM model to convert the data sorting dimension into time sorting, and finally connects the flat layer to convert it into a data flow sequence, providing LSTM model is trained.

為避免模型發生過度擬合(overfitting),且為避免神經網路層數過多時,造成訓練時間及硬體運算成本快速增加,但準確率反而沒有對應的提升,本發明系統經過試誤後,將CNN模型及LSTM模型最高層數分別設在5層及3層。 In order to avoid overfitting of the model, and to avoid the rapid increase in training time and hardware computing cost when the number of neural network layers is too large, but there is no corresponding improvement in accuracy, after trial and error, the system of the present invention The maximum layers of the CNN model and LSTM model are set to 5 and 3 layers respectively.

第7圖揭示本發明交通風險CNN-LSTM模型之建置流程示意圖;本發明系統使用之原始資料,係由政府開放資料平台取得,包含桃園市2018年及2019年之A2類交通事故資料,A2類交通事故是指造成人員受傷或超過二十四小時死亡之事故,及從其它私人道路事件或交通地圖平台服務商取得,將所取得之原始資料經過資料前處理(data preprocessing),轉換成CNN-LSTM模型可以處理的資料形式,資料前處理包含資料預處理、產生輸入與輸出矩陣、訓練集與驗證集之分割等步驟。 Figure 7 shows a schematic diagram of the construction process of the traffic risk CNN-LSTM model of the present invention; the original data used by the system of the present invention is obtained from the government open data platform, including Taoyuan City's A2 traffic accident data in 2018 and 2019, A2 Traffic accidents refer to accidents that cause injuries or death for more than 24 hours, and are obtained from other private road incidents or traffic map platform service providers. The obtained raw data are converted into CNN through data preprocessing. -The data form that the LSTM model can process. Data pre-processing includes steps such as data preprocessing, generating input and output matrices, and segmenting training sets and validation sets.

本發明系統透過以下方式進行原始資料的收集與定期更新,以政府提供的開放資料平台、或自製車載應用程式用戶回傳的道路交 通資訊等資料來源,持續進行各地區的道路事件統計,自製車載應用程式將用戶回傳的資料存放在雲端資料庫中進行統計,並將政府提供的開放資料整合,本發明系統包含的爬蟲程式元件,將定期自動瀏覽與存取政府的開放資料庫,當系統偵測到政府開放資料有所更新時,將自動下載到交通風險資料庫250,並過濾出新的數據並與舊數據整合,並與交通風險資料庫250中儲存的自有數據進行整合。 The system of the present invention collects and regularly updates original data through the following methods. It uses the open data platform provided by the government or the road traffic data returned by users of self-made vehicle applications. Information and other data sources are used to continuously carry out statistics on road incidents in various regions. The self-made vehicle-mounted application stores the data returned by users in the cloud database for statistics, and integrates open data provided by the government. The crawler program included in the system of the present invention The component will automatically browse and access the government's open database on a regular basis. When the system detects that the government's open data has been updated, it will automatically download it to the traffic risk database 250, filter out the new data and integrate it with the old data. And integrated with own data stored in the traffic risk database 250.

在自有數據收集方面,系統經設定後會自動將用戶每次操作所產生的新數據併入模型,據此逐筆重新訓練與更新模型,或者,自動統計自製車載app用戶提供的數據到達一定的數量時,進行資料統計與預處理,採用線上訓練的架構,系統會開始訓練下一個新的模型,透過模型的驗證來確認新的模型是否準確,先將一部分使用者的模型更新來測試模型的穩定性與精確度,透過上述架構使得本發明提出的模型能夠隨時間演進與資料量的提升,進一步提升模型的可靠度與可信度,讓模型的預測結果更加貼近真實世界的情況。 In terms of self-owned data collection, after the system is set, it will automatically incorporate new data generated by each user operation into the model, and then retrain and update the model one by one, or automatically count the data provided by users of the self-made car app when it reaches a certain level. When the number is reached, data statistics and preprocessing are performed. Using an online training architecture, the system will start training the next new model and confirm whether the new model is accurate through model verification. First, update the models of some users to test the model. The stability and accuracy of the model allow the model proposed by the present invention to evolve over time and the amount of data increases through the above architecture, further improving the reliability and credibility of the model and making the model's prediction results closer to the real-world situation.

資料預處理包含以下步驟:(1)刪除原始資料中不需要的欄位,例如但不限於發生地址、死亡受傷人數及車種;(2)取出指定時段例如2018年1月1日至2019年12月31日間的資料;(3)按照事故經緯度範圍依照行政區域取出事故資料;(4)改正原始資料時間格式,例如將「年、月、日」及「時、分」改正為「/」及「:」,及將民國記年改為西元記年。 Data preprocessing includes the following steps: (1) Delete unnecessary fields in the original data, such as but not limited to the address, number of fatalities and injuries, and vehicle type; (2) Extract the specified time period, such as January 1, 2018 to December 2019 data between the 31st of the month; (3) extract the accident data according to the administrative area according to the longitude and latitude range of the accident; (4) correct the time format of the original data, for example, correct "year, month, day" and "hour, minute" to "/" and ":", and changed the Republic of China year to the AD year.

第8圖揭示本發明交通風險CNN-LSTM模型使用之輸入矩陣與輸入矩陣之矩陣行列結構示意圖;資料前處理執行完畢後,接著需要建構空間輸入矩陣,在本實施例,係給定每1小時做為時間間隔(time interval),建立每小時空間輸入矩陣,則一天有24小時故會形成24個矩陣,一年將會有8,760個矩陣,以兩年的資料為例,共需建構17,520矩陣。 Figure 8 shows a schematic diagram of the input matrix and the matrix row and column structure of the traffic risk CNN-LSTM model used in the traffic risk CNN-LSTM model of the present invention; after the data pre-processing is completed, the spatial input matrix needs to be constructed. In this embodiment, it is given every 1 hour as time interval (time interval), create an hourly spatial input matrix. There are 24 hours in a day, so 24 matrices will be formed, and there will be 8,760 matrices in a year. Taking two years of data as an example, a total of 17,520 matrices need to be constructed.

接著需要給定空間間距(pitch),以建立空間網格(grid),並換算對應之經緯度差,例如但不限於,較佳給定間距100公尺,將地圖切為每100公尺一格,則緯、經度差分別為0.0008及0.001。以中壢市區在2018年3月2日20:00至2018年3月2日21:00為例,此時段共發生2件交通事故,分別在緯、經度為(24.96523,121.2044)、(24.93738,121.23228),故此時段之輸入矩陣除行列值為(1,36)、(29,1)處為1外,其餘數值皆為0,輸入矩陣內每一個元素的數值代表當下時間該地區的事故因子,例如但不限於車禍事件、天氣、路寬、路種、速限、車道數等。 Then the spatial pitch needs to be given to establish a spatial grid and convert the corresponding longitude and latitude differences. For example, but not limited to, it is better to give a pitch of 100 meters and cut the map into one grid every 100 meters. , then the latitude and longitude differences are 0.0008 and 0.001 respectively. Taking the Zhongli urban area from 20:00 on March 2, 2018 to 21:00 on March 2, 2018 as an example, a total of 2 traffic accidents occurred during this period, respectively at the latitude and longitude of (24.96523,121.2044), ( 24.93738,121.23228), so except for the row and column values of (1,36) and (29,1), which are 1, the input matrix for this period is all 0. The value of each element in the input matrix represents the current time of the region. Accident factors, such as but not limited to car accidents, weather, road width, road type, speed limit, number of lanes, etc.

間距亦可給定為200公尺或50公尺,但考量間距太大使警示範圍過大,對使用者無實質意義,間距小則訓練時間及硬體消耗過多,因此為平衡模型預測的實用性與訓練成本,在本實施例較佳選擇給定間距為200公尺、100公尺與50公尺,分別產生20×20、40×40及80×80三種空間輸入矩陣,每一種間距對應不同的準確率、記憶體用量、訓練時間。 The spacing can also be given as 200 meters or 50 meters. However, considering that too large a spacing will make the warning range too large, it will have no real meaning to the user. A small spacing will cause too much training time and hardware consumption. Therefore, it is necessary to balance the practicality of model prediction and For training cost, in this embodiment, it is better to choose the given spacing as 200 meters, 100 meters and 50 meters, respectively generating three spatial input matrices of 20×20, 40×40 and 80×80. Each spacing corresponds to a different Accuracy, memory usage, training time.

本發明系統允許使用者動態調整間距、或範圍切割,使用者可按照自身需求,或依照不同的精準度要求動態調節地圖網格切割的大小與範圍,在實際使用情境下,較大的網格切割大小可能造成模型精確度的下降,但是較小的切割大小反而會造成手機畫面地圖的雜亂,使用者可以自行設定網格切割的大小。 The system of the present invention allows users to dynamically adjust spacing or range cutting. Users can dynamically adjust the size and range of map grid cutting according to their own needs or according to different accuracy requirements. In actual use scenarios, larger grids The cutting size may cause the accuracy of the model to decrease, but a smaller cutting size will cause clutter in the mobile screen map. Users can set the size of the grid cutting by themselves.

輸出矩陣則定義為僅用12個數對組成,每組數對代表預測發生交通事故在分時事故總數矩陣中對應的行列值,若該時段全部道路事件 數量不足12件,將以0值即[0,0]補足。在本實施例將用前一週之同一時段作的資料為輸入矩陣,即168小時之前資料,預測時刻之時段的資料做為輸出矩陣產生的依據。 The output matrix is defined as consisting of only 12 pairs of numbers. Each pair of numbers represents the corresponding row and column values of the predicted traffic accidents in the total number of time-sharing accidents matrix. If all road events in that period If the quantity is less than 12 pieces, it will be filled with 0 value, that is, [0,0]. In this embodiment, the data generated in the same time period of the previous week is used as the input matrix, that is, the data 168 hours ago, and the data in the time period of the prediction time is used as the basis for generating the output matrix.

在資料預處理後,共產生17,520個空間輸入矩陣,將其大致按照8:2的比例,分割為訓練集(training dataset)與驗證集(validation dataset)兩個部分,驗證集亦可進一步分割為測試集(testing dataset),訓練集將用於訓練本發明提出的交通風險CNN-LSTM模型,驗證集將用於驗證經訓練後所建立的CNN-LSTM模型是否無偏估(unbiased)。 After data preprocessing, a total of 17,520 spatial input matrices were generated, which were divided into two parts, the training dataset and the validation dataset, roughly according to a ratio of 8:2. The validation set can also be further divided into Testing dataset, the training set will be used to train the traffic risk CNN-LSTM model proposed by the present invention, and the verification set will be used to verify whether the CNN-LSTM model established after training is unbiased.

系統在進行模型訓練時,會將處理好的資料依照時間排序,輸入為上一段時間區間y之矩陣為特徵,實際發生的道路事件結果為標記,據此進行進行訓練,例如:以7天為一個間隔(y=7days),利用七天前發生之資料來訓練交通風險CNN-LSTM模型。 When the system is training the model, it will sort the processed data according to time, input the matrix y of the previous period of time as the feature, and the actual road incident results as markers, and train accordingly, for example: 7 days is used as the An interval (y=7days), use the data that occurred seven days ago to train the traffic risk CNN-LSTM model.

按照上述流程,將更多交通事故因子,例如但不限於:天氣、平假日、車流量等,加入空間輸入矩陣,訓練交通風險CNN-LSTM模型學習考慮更多交通事故因子,並以具有更長時間長度的交通事故因子原始資料訓練CNN-LSTM模型,以提升模型對事故預測的準確率。 According to the above process, more traffic accident factors, such as but not limited to: weather, holidays, traffic flow, etc., are added to the spatial input matrix, and the traffic risk CNN-LSTM model is trained to learn to consider more traffic accident factors, and to have a longer The CNN-LSTM model is trained on the original data of traffic accident factors over time to improve the accuracy of the model in predicting accidents.

本發明提出的交通風險CNN-LSTM模型,進一步與資通訊(ICT)技術相結合,透過Android或iOS的行動平台技術、平台即服務(PaaS)技術、軟體即服務(SaaS)技術,以在行動裝置上運作的前端程式的形式,例如應用程式或網頁瀏覽器,或以在車載資通訊裝置上運作的特定或封閉式前端應用程式的形式,提供給用路人操作使用,可以讓用路人提前做好應變措施,確實減少交通事故的發生率,創造更安全、健康的城市交通環境。 The traffic risk CNN-LSTM model proposed by the present invention is further combined with information and communication (ICT) technology, and uses Android or iOS mobile platform technology, platform as a service (PaaS) technology, and software as a service (SaaS) technology to achieve on-the-move In the form of a front-end program running on the device, such as an application or web browser, or in the form of a specific or closed front-end application running on the vehicle telematics device, it is provided to passers-by for operation and use, allowing passers-by to perform operations in advance Good contingency measures can indeed reduce the incidence of traffic accidents and create a safer and healthier urban traffic environment.

系統可以根據用路人的現在位置,根據即時道路資訊系統預測各種路線的風險概率,並總結為以預計抵達時間(estimated time of arrival,ETA)呈現,讓用路人可以選擇路線,系統也會將已發生道路事件及未來可能發生道路事件,推播(broadcast)給用路人即系統使用者,使用者能夠及早應變預防事故的發生,也可以觸發雲端行車記錄器錄製較長秒數,保障使用者權益。 The system can predict the risk probabilities of various routes based on the current location of passers-by and the real-time road information system, and summarize them in the form of estimated time of arrival (ETA), so that passers-by can choose the route. The system will also When a road incident occurs or may occur in the future, it will be broadcast to passers-by, that is, system users. Users can respond early to prevent accidents, and can also trigger the cloud driving recorder to record for a longer period of time to protect the rights of users. .

當模型完成訓練後,模型執行過程,將使用前一段時間的資料作為輸入資料,模型會預測區域內相對應時間的車禍風險預測,例如給定y=7(天),預測時間為3月9日下午1點,模型會用3月2日下午1點的車禍資料作為輸入資料,並輸出一個2×12的矩陣,輸出矩陣為車禍事件在前述所切割之地圖的行列值,並回傳智慧手機,手機根據回傳的行列值在相對應的格子繪製相對應的顏色,使用者可以在手機端地圖上看到經過路段的風險大小。 After the model completes training, the model execution process will use the data from the previous period as input data. The model will predict the car accident risk prediction at the corresponding time in the area. For example, given y=7 (days), the prediction time is March 9 At 1 p.m. on March 2, the model will use the car accident data at 1 p.m. on March 2 as input data, and output a 2×12 matrix. The output matrix is the row and column values of the car accident event in the map cut above, and will return the wisdom. The mobile phone draws the corresponding color in the corresponding grid based on the returned row and column values. The user can see the risk of passing the road section on the mobile phone map.

實際駕駛車輛時,每個駕駛人的風險承擔能力不同,以同一條導航路線對老人和年輕人之行車安全性的比較,兩者之間的危險性是不能被等同視之,老年人由於身體機能、精神狀態的退化通常擁有較低的風險承擔能力。 When actually driving a vehicle, each driver has different risk-taking capabilities. When comparing the driving safety of the elderly and young people on the same navigation route, the risks between the two cannot be treated equally. The elderly due to their physical Deterioration of functional and mental status usually leads to lower risk-taking capacity.

因此本發明系統提供使用者根據自身的狀況與條件,而客製化設定風險地圖,系統會根據使用者的個人化交通資訊進行個人風險承受度評估,而為使用者客製化設定風險地圖,系統係根據下列的個人風險承受指數公式,評估使用者的風險承受特性: Therefore, the system of the present invention allows users to customize risk maps based on their own situations and conditions. The system will conduct a personal risk tolerance assessment based on the user's personalized traffic information and customize the risk map for the user. The system evaluates the user's risk tolerance characteristics based on the following personal risk tolerance index formula:

R=Wa×A+Ws×S+Wt×T+Wc×C+Wh×H+M R = Wa × A + Ws × S + Wt × T + Wc × C + Wh × H + M

其中R個人風險承受指數(風險值),為Wa為使用者年齡權重,A為使用者年齡,Ws為使用者性別權重,S為使用者性別,Wt為使用者車種權重、T為使用者車種、Wc為用路時間權重,C為用路時間、Wh為氣候條件權重,H為氣候條件等,M為更多個人化資訊,使用者可自訂更多個人化資訊。 Among them, R personal risk tolerance index (risk value), Wa is the user's age weight, A is the user's age, Ws is the user's gender weight, S is the user's gender, Wt is the user's vehicle type weight, T is the user's vehicle type , Wc is the road time weight, C is the road time, Wh is the climate condition weight, H is the climate conditions, etc., M is more personalized information, and users can customize more personalized information.

本發明系統對於不同駕駛年齡、駕駛經歷、性別、時間、地點及操作的交通工具等不同屬性,系統會自動計算出地圖各區的風險評估值與個人風險承受指數,客製化個別使用者的風險地圖,並透過導航規劃之路徑並結合個人風險承受指數與風險地圖,計算各路徑之險評估值來推薦用路人安全或風險較低的路徑選擇。 The system of the present invention will automatically calculate the risk assessment value and personal risk tolerance index of each area of the map for different attributes such as driving age, driving experience, gender, time, location and vehicle operation, and customize the risk assessment value for individual users. Risk map, and through the navigation planned route and combining the personal risk tolerance index and the risk map, calculate the risk assessment value of each route to recommend a safe or lower-risk route for passers-by.

系統實際運作時,透過評估個人風險承受指數,並將計算出來的風險值帶入風險地圖之計算過程,以提供適合使用者個人風險承受指數的路徑,並透過對車禍發生之駕駛人特徵資料進行統計、分群並利用機器學習模型來預測駕駛人之風險值。 When the system is actually operating, it evaluates the personal risk tolerance index and brings the calculated risk value into the calculation process of the risk map to provide a path suitable for the user's personal risk tolerance index and conducts analysis on the characteristics of the driver who caused the car accident. Statistics, grouping, and machine learning models are used to predict the risk value of drivers.

第9圖揭示在本發明前端程式操作介面中所顯示的Google Map導航功能所給定的建議路徑示意圖;本發明之實際使用情境如下,使用者要從起點S移動到終點E,使用者在行動裝置115上啟動前端程式109,較佳是自製應用程式,本發明應用程式將先載入Google Map道路地圖,並取得Google Map導航功能所給定的建議路徑,在本實施例,Google Map導航功能共建議三條路徑A、B、C,且估計這三條路徑的ETA皆20分鐘。 Figure 9 shows a schematic diagram of the recommended path given by the Google Map navigation function displayed in the front-end program operation interface of the present invention; the actual usage scenario of the present invention is as follows. The user wants to move from the starting point S to the end point E. The user is moving Start the front-end program 109 on the device 115, preferably a self-made application. The application of the present invention will first load the Google Map road map and obtain the recommended path given by the Google Map navigation function. In this embodiment, the Google Map navigation function A total of three paths A, B, and C are recommended, and the ETA of these three paths is estimated to be 20 minutes.

第10圖揭示在本發明前端應用程式操作介面中所顯示的交通風險預測機器學習模型針對網格化預測範圍所計算之風險地圖示意圖; 第11圖揭示在本發明前端應用程式操作介面中所顯示的交通風險預測機器學習模型疊合Google Map建議路徑與風險地圖之示意圖;接著本發明系統開始偵測能夠完整涵蓋三條路徑A、B、C連同起點S與終點E的合適的預測範圍,並將預測範圍網格化,並執行本發明交通風險預測機器學習模型,計算道路風險預測,並產生風險地圖並顯示在行動裝置115前端應用程式操作介面中,如第10圖所示,再與Google Map建議路徑疊合並顯示在行動裝置115前端應用程式操作介面中,如第11圖所示。 Figure 10 shows a schematic diagram of the risk map calculated by the traffic risk prediction machine learning model for the grid prediction range displayed in the front-end application operating interface of the present invention; Figure 11 shows a schematic diagram of the traffic risk prediction machine learning model displayed in the front-end application operating interface of the present invention superimposed on the Google Map recommended route and the risk map; then the system of the present invention starts to detect the three routes A, B, C together with the appropriate prediction range of the starting point S and the end point E, grids the prediction range, and executes the traffic risk prediction machine learning model of the present invention, calculates the road risk prediction, and generates a risk map and displays it on the mobile device 115 front-end application In the operation interface, as shown in Figure 10, it is then overlapped with the Google Map suggested route and displayed in the front-end application operation interface of the mobile device 115, as shown in Figure 11.

第12圖揭示在本發明前端應用程式操作介面中所顯示的交通風險預測機器學習模型基於Google Map建議路徑與風險地圖並合併個人化風險指數後所計算之道路風險預測結果示意圖;接著本發明系統根據個人風險承受指數公式,評估使用者的風險承受特性,與分別計算每條路徑A、B、C的不同風險值,並將每一條路徑的風險值具體換算為ETA,並提供給使用者參考。 Figure 12 shows a schematic diagram of the road risk prediction results calculated by the traffic risk prediction machine learning model displayed in the front-end application operating interface of the present invention based on the Google Map recommended route and risk map and incorporating the personalized risk index; then the system of the present invention According to the personal risk tolerance index formula, the user's risk tolerance characteristics are evaluated, and the different risk values of each path A, B, and C are calculated respectively, and the risk value of each path is specifically converted into ETA and provided to the user for reference. .

在本實施例,路徑A的風險值經計算後為16,換算為時間後將影響ETA+2分,代表路徑A經風險預測後ETA調整為22分,路徑B的風險值經計算後為13,換算為時間後將影響ETA+1分,代表路徑B經風險預測後ETA調整為21分,路徑C的風險值經計算後為11,換算為時間後將影響ETA-1分,代表路徑C經風險預測後ETA調整為19分,路徑C可視為本發明系統提供的個人化推薦路徑,但使用者可自由從路徑A、B、C中選擇路徑並啟動導航。 In this example, the risk value of path A is calculated to be 16, which will affect the ETA + 2 points when converted into time, which means that the ETA of path A is adjusted to 22 points after risk prediction, and the risk value of path B is calculated to be 13 , when converted into time, will affect the ETA + 1 point, which means that the ETA of path B is adjusted to 21 points after risk prediction. The risk value of path C is 11 after calculation, and when converted into time, it will affect the ETA - 1 point, which means path C. After risk prediction, the ETA is adjusted to 19 points. Path C can be regarded as a personalized recommended path provided by the system of the present invention, but the user can freely select paths from paths A, B, and C and start navigation.

舉例來說,路徑A的道路風險評估來自於,當遇到連續假期或是特定節日,經常遇到導航預估時間無法及時反映實際情況的狀況,導 致駕駛人錯估出發或抵達時間,或是隔日要出遊時,往往無法確認何時為最佳出發時間,避開大量車潮的堵塞,因此本發明系統透過機器學習演算法,蒐集即時的路況資訊,做前瞻性的車流預測(Proactive),並加以分析實際抵達時間的可能性區間,亦可推演車流區間時間性的預測,提供給使用者決定何時出門以避開車潮。 For example, the road risk assessment of route A comes from the fact that when encountering consecutive holidays or specific festivals, it is often encountered that the navigation estimate time cannot reflect the actual situation in a timely manner, resulting in As a result, drivers misestimate their departure or arrival time, or when they want to travel the next day, they are often unable to confirm when is the best departure time to avoid heavy traffic jams. Therefore, the system of the present invention collects real-time traffic information through machine learning algorithms. , make forward-looking traffic flow predictions (Proactive), and analyze the possible range of actual arrival time. It can also deduce the temporal prediction of traffic flow intervals, allowing users to decide when to go out to avoid traffic waves.

第13圖係揭示本發明個人化道路風險預測系統利用網頁瀏覽器做為前端程式而在網頁瀏覽器中顯示之道路風險預測結果示意圖;本發明個人化道路風險預測系統10較佳是基於軟體即服務(SaaS)與平台即服務(PaaS)雲端技術而建置,可以使用在前端展示層的使用者設備100上執行的瀏覽器做為前端程式109,而在瀏覽器上產生各種系統介面,例如但不限於第9圖到第12圖所揭示的介面提供給使用者操作,使用者在可連網的環境狀態下,在自己的使用者設備100上啟動瀏覽器,並在網址列輸入正確的統一資源定位符(URL),即可登入系統使用。 Figure 13 is a schematic diagram showing the road risk prediction results displayed in the web browser by the personalized road risk prediction system of the present invention using a web browser as a front-end program; the personalized road risk prediction system 10 of the present invention is preferably based on software. Built using SaaS and PaaS cloud technologies, the browser running on the user device 100 of the front-end presentation layer can be used as the front-end program 109 to generate various system interfaces on the browser, such as But it is not limited to the interfaces shown in Figures 9 to 12 that are provided for the user to operate. The user starts the browser on his/her user device 100 in an Internet-enabled environment and enters the correct address in the address bar. The Uniform Resource Locator (URL) can be used to log in to the system.

第14圖係揭示本發明個人化道路風險預測系統以車載資通訊專用應用程式做為前端程式而在車載資通訊專用應用程式中顯示之道路風險預測結果示意圖;本發明個人化道路風險預測系統10較佳可以使用在前端展示層的車載資通訊裝置110上執行的專用應用程式做為前端程式109,而在專用應用程式上產生各種系統介面,例如但不限於第9圖到第12圖所揭示的介面提供給使用者在車內操作,使用者在可連網的環境狀態下,在自己的車載資通訊裝置110上啟動專用應用程式,即可登入系統使用。 Figure 14 is a schematic diagram showing the road risk prediction results displayed in the vehicle information communication application program of the personalized road risk prediction system of the present invention using the vehicle information communication special application program as the front-end program; the personalized road risk prediction system 10 of the present invention Preferably, a dedicated application program executed on the vehicle information communication device 110 of the front-end presentation layer can be used as the front-end program 109, and various system interfaces are generated on the dedicated application program, such as but not limited to those disclosed in Figures 9 to 12 The interface is provided for users to operate in the car. In a network-enabled environment, the user can log in to the system by launching a dedicated application on his or her own vehicle telematics device 110 .

第15圖揭示個人化道路風險預測方法之實施步驟流程圖;小結而言,本發明個人化道路風險預測方法500,較佳包含下列步驟:在後端 的系統伺服器上安裝交通風險預測主控電腦程式產品(步驟501);在使用者設備上執行前端電腦程式產品供使用者操作,以驅動該交通風險預測主控電腦程式產品包含的經過訓練之交通風險預測機器學習模型程式元件(步驟503);該交通風險預測機器學習模型程式元件經執行後實施風險地圖之預測及選擇性計算個人化風險指數,並據此計算至少一個人化推薦路徑(步驟505);以及透過該使用者設備向該使用者顯示該至少一個人化推薦路徑(步驟507)。 Figure 15 shows a flow chart of implementation steps of the personalized road risk prediction method; in summary, the personalized road risk prediction method 500 of the present invention preferably includes the following steps: at the back end Install the traffic risk prediction master computer program product on the system server (step 501); execute the front-end computer program product on the user device for the user to operate to drive the trained traffic risk prediction master computer program product included in the traffic risk prediction master computer program product. Traffic risk prediction machine learning model program component (step 503); after execution, the traffic risk prediction machine learning model program component implements the prediction of the risk map and selectively calculates the personalized risk index, and calculates at least one personalized recommended route accordingly (step 503) 505); and displaying the at least one personalized recommended path to the user through the user device (step 507).

小結來說,透過機器學習演算法,從過去歷史的資料,結合使用者當下的環境,預測使用者導航所提供的路徑的風險,並根據使用者的相關資料,如使用的載具、使用者身體狀態,計算其自身可承受風險的程度,推薦適合使用者的安全路徑,系統還可以將收集到的資訊做額外的分析,如易發生事故地點的原因探討,進而針對目標地區做改善,提升全體用路人的安全性。 In summary, through machine learning algorithms, from past historical data and combined with the user's current environment, the risk of the path provided by the user's navigation is predicted, and based on the user's relevant data, such as the vehicle used, the user's The system can also perform additional analysis on the collected information, such as exploring the causes of accident-prone locations, and then make improvements to target areas to enhance Safety for all passers-by.

本發明以上各實施例彼此之間可以任意組合或者替換,從而衍生更多之實施態樣,但皆不脫本發明所欲保護之範圍,茲進一步提供更多本發明實施例如次: The above embodiments of the present invention can be arbitrarily combined or replaced with each other, thereby deriving more embodiments, without departing from the scope of protection of the present invention. More embodiments of the present invention are further provided as follows:

實施例1:一種個人化道路風險預測系統,其包含:系統伺服器,其包含交通風險預測主控電腦程式產品;以及使用者設備,其係與該系統伺服器通訊連結,並提供前端電腦程式產品供使用者操作,以驅動該交通風險預測主控電腦程式產品包含的經過訓練之交通風險預測機器學習模型程式元件,該交通風險預測機器學習模型程式元件經執行後實施風險地圖之預測及選擇性計算個人化風險指數,並據此向該使用者提供至少 一個人化推薦路徑。 Embodiment 1: A personalized road risk prediction system, which includes: a system server, which includes a traffic risk prediction main control computer program product; and a user device, which is communicated with the system server and provides a front-end computer program The product is for users to operate to drive the trained traffic risk prediction machine learning model program component included in the traffic risk prediction master computer program product. After execution, the traffic risk prediction machine learning model program component implements the prediction and selection of the risk map. Calculate a personalized risk index based on this and provide the user with at least A personalized recommended path.

實施例2:如實施例1所述之個人化道路風險預測系統,其中該交通風險預測機器學習模型程式元件還包含影像空間特徵萃取模型及時間序列相依關係學習模型,其中該影像空間特徵萃取模型係選自卷積神經網路模型、區域卷積神經網路模型、快速區域卷積神經網路模型、深度卷積神經網路模型、循環神經網路模型、卷積循環神經網路模型、深層循環神經網路模型、全卷積神經網路模型、多列卷積神經網路模型、雙向神經網路模型及深度神經網路模型等其中之一。 Embodiment 2: The personalized road risk prediction system as described in Embodiment 1, wherein the traffic risk prediction machine learning model program component also includes an image space feature extraction model and a time series dependency learning model, wherein the image space feature extraction model The system is selected from the convolutional neural network model, regional convolutional neural network model, fast regional convolutional neural network model, deep convolutional neural network model, recurrent neural network model, convolutional recurrent neural network model, deep One of the recurrent neural network model, fully convolutional neural network model, multi-column convolutional neural network model, bidirectional neural network model and deep neural network model.

實施例3:如實施例2所述之個人化道路風險預測系統,其中該時間序列相依關係學習模型係選自長短期記憶模型、非監督式學習模型、監督式學習模型、深度學習模型、自編碼器模型、類神經網路模型、多層感知模型、深度神經網路模型及集成學習模型其中之一。 Embodiment 3: The personalized road risk prediction system as described in Embodiment 2, wherein the time series dependency learning model is selected from a long short-term memory model, an unsupervised learning model, a supervised learning model, a deep learning model, and an automatic learning model. One of the encoder model, neural network-like model, multi-layer perception model, deep neural network model and ensemble learning model.

實施例4:如實施例1所述之個人化道路風險預測系統,其中該使用者設備係選自車載資通訊裝置、行動裝置、桌上型電腦、筆記型電腦、智慧手機及平板裝置其中之一。 Embodiment 4: The personalized road risk prediction system as described in Embodiment 1, wherein the user equipment is selected from the group consisting of in-vehicle telematics devices, mobile devices, desktop computers, notebook computers, smart phones and tablet devices. one.

實施例5:如實施例1所述之個人化道路風險預測系統,其中該前端電腦程式產品係選自應用程式、微應用程式、車載資通訊專用應用程式及網頁瀏覽器其中之一。 Embodiment 5: The personalized road risk prediction system as described in Embodiment 1, wherein the front-end computer program product is selected from one of an application program, a micro-application program, a vehicle telematics dedicated application program, and a web browser.

實施例6:如實施例1所述之個人化道路風險預測系統,其中該個人化風險指數係關聯於使用者年齡權重、使用者年齡、使用者性別權重、使用者性別、使用者車種權重、使用者車種、用路時間權重、用路時間、氣候條件權重、氣候條件及其它個人化資訊其中之一。 Embodiment 6: The personalized road risk prediction system as described in Embodiment 1, wherein the personalized risk index is associated with user age weight, user age, user gender weight, user gender, user vehicle type weight, One of the user's vehicle type, road usage time weight, road usage time, climate condition weight, climate conditions and other personalized information.

實施例7:一種個人化道路風險預測方法,其包含:在後端的系統伺服器上安裝交通風險預測主控電腦程式產品;在使用者設備上執行前端電腦程式產品供使用者操作,以驅動該交通風險預測主控電腦程式產品包含的經過訓練之交通風險預測機器學習模型程式元件;該交通風險預測機器學習模型程式元件經執行後實施風險地圖之預測及選擇性計算個人化風險指數,並據此計算至少一個人化推薦路徑;以及透過該使用者設備向該使用者顯示該至少一個人化推薦路徑。 Embodiment 7: A personalized road risk prediction method, which includes: installing a traffic risk prediction main control computer program product on a back-end system server; executing a front-end computer program product on a user device for the user to operate to drive the The traffic risk prediction master computer program product contains a trained traffic risk prediction machine learning model program component; after execution, the traffic risk prediction machine learning model program component implements the prediction of the risk map and selectively calculates the personalized risk index, and based on Calculate at least one personalized recommended path; and display the at least one personalized recommended path to the user through the user device.

實施例8:如實施例7所述之個人化道路風險預測方法,還包含以下步驟其中之一:使該系統伺服器存取一交通風險資料庫;選擇預測範圍並網格化該預測範圍;計算至少一建議路徑;計算該至少一建議路徑的預計抵達時間;根據該風險地圖與該個人化風險指數計算該至少一建議路徑的風險值,並透過該使用者設備向該使用者顯示該風險值;以及根據該風險值調整該預計抵達時間,並透過該使用者設備向該使用者顯示調整後該預計抵達時間。 Embodiment 8: The personalized road risk prediction method as described in Embodiment 7 further includes one of the following steps: causing the system server to access a traffic risk database; selecting a prediction range and gridding the prediction range; Calculate at least one recommended route; calculate the estimated arrival time of the at least one recommended route; calculate the risk value of the at least one recommended route based on the risk map and the personalized risk index, and display the risk to the user through the user device value; and adjust the estimated arrival time based on the risk value, and display the adjusted estimated arrival time to the user through the user device.

實施例9:一種個人化道路風險預測使用者設備,其係與包含交通風險預測主控電腦程式產品的系統伺服器通訊連結,該個人化道路風險預測使用者設備包含:顯示單元;以及一處理器單元,其執行前端電腦程式產品供使用者操作,以驅動該交通風險預測主控電腦程式產品包含的經過訓練之交通風險預測機器學習模型程式元件,該交通風險預測機器學習模型程式元件經執行後實施風險地圖之預測及選擇性計算個人化風險指數,並據此產生至少個人化推薦路徑,且透過該顯示單元向該使用者顯示。 Embodiment 9: A personalized road risk prediction user equipment, which is communicated with a system server including a traffic risk prediction main control computer program product. The personalized road risk prediction user equipment includes: a display unit; and a process A server unit that executes a front-end computer program product for user operation to drive a trained traffic risk prediction machine learning model program component included in the traffic risk prediction master computer program product. The traffic risk prediction machine learning model program component is executed Then, the prediction of the risk map and the selective calculation of the personalized risk index are implemented, and at least a personalized recommended path is generated based on this, and displayed to the user through the display unit.

實施例10:如實施例9所述之個人化道路風險預測使用者設備,其中該顯示單元係選自顯示器、外接顯示器及觸控螢幕其中之一。 Embodiment 10: The personalized road risk prediction user equipment as described in Embodiment 9, wherein the display unit is selected from one of a display, an external display and a touch screen.

本發明各實施例彼此之間可以任意組合或者替換,從而衍生更多之實施態樣,但皆不脫本發明所欲保護之範圍,本發明保護範圍之界定,悉以本發明申請專利範圍所記載者為準。 The various embodiments of the present invention can be arbitrarily combined or replaced with each other to derive more embodiments, but all do not deviate from the scope of protection of the present invention. The scope of protection of the present invention is defined by the patent scope of the present invention. The recorder shall prevail.

500:本發明個人化道路風險預測方法 500: Personalized road risk prediction method of the present invention

501~507:實施步驟 501~507: Implementation steps

Claims (8)

一種個人化道路風險預測系統,其包含:一系統伺服器,其包含一交通風險預測主控電腦程式產品;以及一使用者設備,其係與該系統伺服器通訊連結,並提供一前端電腦程式產品供一使用者操作,以驅動該交通風險預測主控電腦程式產品包含的經過訓練之一交通風險預測機器學習模型程式元件,該交通風險預測機器學習模型程式元件係基於二維空間網格交通相關事件資料訓練一影像空間特徵萃取模型以及一時間序列相依關係擬合學習模型而建置,其中該影像空間特徵萃取模型為一CNN模型及該時間序列相依關係擬合學習模型為一LSTM模型,該CNN模型透過一轉置層、一重塑層與一扁平層與該LSTM模型銜接,該交通風險預測主控電腦程式產品經執行後產生一交通風險空間預測與一交通風險時間序列預測之一預測結果,以及計算一個人化風險指數且根據該個人化風險指數調整該預測結果,並據此向該使用者提供至少一個人化推薦路徑,其中該個人化風險指數之評估係基於一使用者年齡、一使用者性別、一使用者車種、一用路時間、一駕駛經歷及其組合其中之一。 A personalized road risk prediction system, which includes: a system server, which includes a traffic risk prediction master computer program product; and a user device, which is communicated with the system server and provides a front-end computer program The product is operated by a user to drive a trained traffic risk prediction machine learning model program component included in the traffic risk prediction master computer program product. The traffic risk prediction machine learning model program component is based on a two-dimensional space grid traffic The relevant event data is used to train an image space feature extraction model and a time series dependency fitting learning model. The image space feature extraction model is a CNN model and the time series dependency fitting learning model is an LSTM model. The CNN model is connected to the LSTM model through a transposition layer, a reshaping layer and a flattening layer. After execution, the traffic risk prediction main control computer program product generates one of a traffic risk spatial prediction and a traffic risk time series prediction. Predicting results, and calculating a personalized risk index and adjusting the prediction results according to the personalized risk index, and providing at least one personalized recommended path to the user accordingly, wherein the evaluation of the personalized risk index is based on a user's age, A user's gender, a user's car type, a driving time, a driving experience, and one of their combinations. 如請求項1所述之個人化道路風險預測系統,其中該使用者設備係選自一車載資通訊裝置、一行動裝置、一桌上型電腦、一筆記型電腦、一智慧手機及一平板裝置其中之一。 The personalized road risk prediction system as described in claim 1, wherein the user device is selected from the group consisting of an in-vehicle telematics device, a mobile device, a desktop computer, a notebook computer, a smart phone and a tablet device one of them. 如請求項1所述之個人化道路風險預測系統,其中該前端電腦程式產品係選自一應用程式、一微應用程式、一車載資通訊專用應用程式及一網頁 瀏覽器其中之一。 The personalized road risk prediction system as described in request 1, wherein the front-end computer program product is selected from an application, a micro application, a vehicle information communication dedicated application and a web page One of the browsers. 如請求項1所述之個人化道路風險預測系統,其中該個人化風險指數係關聯於一使用者年齡權重、一使用者性別權重、一使用者車種權重、一用路時間權重及一其它個人化資訊其中之一。 The personalized road risk prediction system as described in claim 1, wherein the personalized risk index is associated with a user age weight, a user gender weight, a user vehicle type weight, a road usage time weight and an other individual Information is one of them. 一種個人化道路風險預測方法,其包含:基於二維空間網格交通相關事件資料訓練一影像空間特徵萃取模型以及一時間序列相依關係擬合學習模型,其中該影像空間特徵萃取模型為一CNN模型及該時間序列相依關係擬合學習模型為一LSTM模型,該CNN模型透過一轉置層、一重塑層與一扁平層與該LSTM模型銜接;在後端的一系統伺服器上安裝包含該交通風險預測機器學習模型程式元件之一交通風險預測主控電腦程式產品;在一使用者設備上執行一前端電腦程式產品供一使用者操作,以驅動該交通風險預測主控電腦程式產品之執行;該交通風險預測主控電腦程式產品經執行後產生一交通風險空間預測與一交通風險時間序列預測之一預測結果,以及計算一個人化風險指數且根據該個人化風險指數調整該預測結果,並據此計算至少一個人化推薦路徑,其中該個人化風險指數之評估係基於一使用者年齡、一使用者性別、一使用者車種、一用路時間、一駕駛經歷及其組合其中之一;以及透過該使用者設備向該使用者顯示該至少一個人化推薦路徑。 A personalized road risk prediction method, which includes: training an image space feature extraction model based on two-dimensional space grid traffic-related event data and a time series dependency fitting learning model, wherein the image space feature extraction model is a CNN model And the time series dependency fitting learning model is an LSTM model. The CNN model is connected to the LSTM model through a transposition layer, a reshaping layer and a flattening layer; a back-end system server is installed that contains the traffic One of the risk prediction machine learning model program components is a traffic risk prediction master computer program product; executing a front-end computer program product on a user device for operation by a user to drive the execution of the traffic risk prediction master computer program product; After execution, the traffic risk prediction main control computer program product generates a prediction result of a traffic risk spatial prediction and a traffic risk time series prediction, and calculates a personalized risk index and adjusts the prediction result according to the personalized risk index. This calculates at least one personalized recommended path, wherein the evaluation of the personalized risk index is based on one of a user's age, a user's gender, a user's car type, a driving time, a driving experience, and a combination thereof; and by The user device displays the at least one personalized recommended path to the user. 如請求項5所述之個人化道路風險預測方法,還包含以下步驟其中之一:使該系統伺服器存取一交通風險資料庫;選擇一預測範圍並網格化該預測範圍;計算至少一建議路徑;計算該至少一建議路徑的一預計抵達時間;根據該預測結果與該個人化風險指數計算該至少一建議路徑的一風險值,並透過該使用者設備向該使用者顯示該風險值;以及根據該風險值調整該預計抵達時間,並透過該使用者設備向該使用者顯示調整後該預計抵達時間。 The personalized road risk prediction method described in claim 5 further includes one of the following steps: causing the system server to access a traffic risk database; selecting a prediction range and gridding the prediction range; calculating at least one Suggesting a route; calculating an estimated arrival time of the at least one suggested route; calculating a risk value of the at least one suggested route based on the prediction result and the personalized risk index, and displaying the risk value to the user through the user device ; and adjust the estimated arrival time based on the risk value, and display the adjusted estimated arrival time to the user through the user device. 一種個人化道路風險預測使用者設備,其係與包含一交通風險預測主控電腦程式產品的一系統伺服器通訊連結,該個人化道路風險預測使用者設備包含:一顯示單元;以及一處理器單元,其執行一前端電腦程式產品供一使用者操作,以驅動該交通風險預測主控電腦程式產品包含的經過訓練之一交通風險預測機器學習模型程式元件,該交通風險預測機器學習模型程式元件係基於二維空間網格交通相關事件資料訓練一影像空間特徵萃取模型以及一時間序列相依關係擬合學習模型而建置,其中該影像空間特徵萃取模型為一CNN模型及該時間序列相依關係擬合學習模型為一LSTM模型,該CNN模型透過一轉置層、一重塑層與一扁平層與該LSTM模型銜接,該交通風險預測主控電腦程式產品經執行後產生一交通風險空間預測與一交通風險時間序列預測之一預測結果,以及計算一個人化風險指數且根據該個人化風險指數調整該預測結果,並據此產生至少一個人化 推薦路徑,且透過該顯示單元向該使用者顯示,其中該個人化風險指數之評估係基於一使用者年齡、一使用者性別、一使用者車種、一用路時間、一駕駛經歷及其組合其中之一。 A kind of personalized road risk prediction user equipment, which is communicated with a system server including a traffic risk prediction main control computer program product. The personalized road risk prediction user equipment includes: a display unit; and a processor A unit that executes a front-end computer program product for operation by a user to drive a trained traffic risk prediction machine learning model program component included in the traffic risk prediction main control computer program product, and the traffic risk prediction machine learning model program component It is built based on the two-dimensional space grid traffic-related event data to train an image spatial feature extraction model and a time series dependency fitting learning model, in which the image spatial feature extraction model is a CNN model and the time series dependency fitting learning model. The combined learning model is an LSTM model. The CNN model is connected to the LSTM model through a transposition layer, a reshaping layer and a flattening layer. After execution, the traffic risk prediction main control computer program product generates a traffic risk spatial prediction and A prediction result of a traffic risk time series prediction, and calculating a personalized risk index and adjusting the prediction result according to the personalized risk index, and generating at least one personalized risk index accordingly. The recommended route is displayed to the user through the display unit, wherein the evaluation of the personalized risk index is based on a user's age, a user's gender, a user's vehicle type, a road usage time, a driving experience and a combination thereof one of them. 如請求項7所述之個人化道路風險預測使用者設備,其中該顯示單元係選自一顯示器、一外接顯示器及一觸控螢幕其中之一。 The personalized road risk prediction user device as described in claim 7, wherein the display unit is selected from one of a display, an external display and a touch screen.
TW110110632A 2021-03-24 2021-03-24 Individually adapted road risk prediction system, method and user equipment TWI813971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110110632A TWI813971B (en) 2021-03-24 2021-03-24 Individually adapted road risk prediction system, method and user equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110110632A TWI813971B (en) 2021-03-24 2021-03-24 Individually adapted road risk prediction system, method and user equipment

Publications (2)

Publication Number Publication Date
TW202238457A TW202238457A (en) 2022-10-01
TWI813971B true TWI813971B (en) 2023-09-01

Family

ID=85460562

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110110632A TWI813971B (en) 2021-03-24 2021-03-24 Individually adapted road risk prediction system, method and user equipment

Country Status (1)

Country Link
TW (1) TWI813971B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107111794A (en) * 2015-01-11 2017-08-29 微软技术许可有限责任公司 Predicting and Exploiting Travel Time Variability in Mapping Services
US20190263401A1 (en) * 2018-02-27 2019-08-29 Samsung Electronics Co., Ltd. Method of planning traveling path and electronic device therefor
CN111489553A (en) * 2020-04-26 2020-08-04 百度在线网络技术(北京)有限公司 Route planning method, device, equipment and computer storage medium
US20200307561A1 (en) * 2019-03-25 2020-10-01 GM Global Technology Operations LLC System and method for radar cross traffic tracking and maneuver risk estimation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107111794A (en) * 2015-01-11 2017-08-29 微软技术许可有限责任公司 Predicting and Exploiting Travel Time Variability in Mapping Services
US20190263401A1 (en) * 2018-02-27 2019-08-29 Samsung Electronics Co., Ltd. Method of planning traveling path and electronic device therefor
US20200307561A1 (en) * 2019-03-25 2020-10-01 GM Global Technology Operations LLC System and method for radar cross traffic tracking and maneuver risk estimation
CN111489553A (en) * 2020-04-26 2020-08-04 百度在线网络技术(北京)有限公司 Route planning method, device, equipment and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
網路文獻 張延孔等 基於路網結構的城市交通事故短期風險預測方法 智慧系統學報 2020 *

Also Published As

Publication number Publication date
TW202238457A (en) 2022-10-01

Similar Documents

Publication Publication Date Title
US11842404B2 (en) Enhancement using analytics based on vehicle kinematic data
US11840261B2 (en) Ground truth based metrics for evaluation of machine learning based models for predicting attributes of traffic entities for navigating autonomous vehicles
US20240203175A1 (en) Interior device to update command input to system
US20190340465A1 (en) System and method of predicting human interaction with vehicles
US10551199B2 (en) Utilizing artificial neural networks to evaluate routes based on generated route tiles
US20210312725A1 (en) Vehicle-data analytics
US11008000B2 (en) Risk processing for vehicles having autonomous driving capabilities
CN111512345B (en) Electronic system for dynamically and quasi-real-time measuring and identifying driver action based on mobile phone remote measurement only and corresponding method thereof
US10417509B2 (en) Variable speed sign value prediction and confidence modeling
US11763163B2 (en) Filtering user responses for generating training data for machine learning based models for navigation of autonomous vehicles
JP2020524632A (en) System and method for obtaining occupant feedback in response to an autonomous vehicle driving event
US11551030B2 (en) Visualizing machine learning predictions of human interaction with vehicles
US20210206387A1 (en) Methodologies, systems, and components for incremental and continual learning for scalable improvement of autonomous systems
CN110497905A (en) Method for controlling a vehicle and device
US12306010B1 (en) Resolving inconsistencies in vehicle guidance maps
US20180162307A1 (en) Risk situations for vehicle occupants based on data provided by vehicle sensors and contextual information
EP4115306A1 (en) Intelligent transportation systems including digital twin interface for a passenger vehicle
EP3849867A1 (en) Assessing ride quality for autonomous vehicles
CN116337093A (en) A path planning method, device, equipment, storage medium and product
Kim et al. Reinforcement learning approach to develop variable speed limit strategy using vehicle data and simulations
CN115631482B (en) Driving perception information acquisition method and device, electronic equipment and readable medium
TWI813971B (en) Individually adapted road risk prediction system, method and user equipment
KR101607384B1 (en) Method and system for providing counterfactual travel times for alternative routes
KR102829474B1 (en) Device and method for predicting travel speed based on gru model
CN117132958B (en) Road element identification method and related device