An Integrated Self-Diagnosis System for an Autonomous Vehicle Based on an IoT Gateway and Deep Learning
Abstract
:1. Introduction
2. Related Works
2.1. In-Vehicle Internet of Things (IoT) Gateway
2.2. Fault Diagnosis of a Vehicle
3. An Integrated Self-Diagnosis System for an Autonomous Vehicle Based on an IoT Gateway and Deep Learning
3.1. Overview
3.2. A Design of an In-Vehicle Gateway Module (In-VGM)
- First, they do not use a multi-directional network.
- Second, they are inefficient and lack the overhead to transform messages in various protocols.
- Third, they have a transmission delay because they have no priority protocol in place to hierarchize individual messages in transferring multiple messages.
- Fourth, they do not ensure compatibility because an autonomous vehicle collects unstructured data like image, radar, and video.
- First, it allocates ID to a CAN bus interface which collects and transfers the general sensing data of vehicles and to a FlexRay-CAN bus interface that collects and transfers the emergent sensing data of vehicles and to the MOST bus interface, which collects and transfers media data. It has a bus architecture connecting the interfaces.
- Second, it supports a multi-directional network because the mapping table with message transformation information is used for it.
- Third, it provides a priority based transmission mode to increases the transmission efficiency of messages based on an event and to reduce the transmission delay of important messages.
- Fourth, it uses an inner scheduler to reduce the transmission delay.
- First, the in-vehicle data is classified into general sensing data, emergent sensing data, control system and sensor data, media data, and OBD data. The CAN, FlexRay, and MOST protocols are used according to the importance and classification of data. The Bus architecture of the In-VGM is shown in Figure 4.
- Second, the data collected and transferred in the sensor and control system is transferred to the In-VGM through the CAN, FlexRay, and MOST protocols. At this time, the In-VGM allocates ID according to a sending and receiving CAN, FlexRay, and MOST protocol. The kinds of IDs are shown in Table 1.
- Third, the source and destination protocol ID of the transmission data are recorded in a mapping table and transmission paths are set on the basis of the ID. If the transmission paths are set, the transmission message type is transformed into a message type of a destination protocol by using the mapping table.
- Fourth, because the size of data collected and transferred by the FlexRay and MOST is very big, compared to that of the CAN, the header information like Start Message Delimiter, Length of message, and Identifier is to be added to every CAN Fragment so that the FlexRay and MOST data can be transferred to the CAN protocol. The Header information has a maximum of 35 bits.
3.3. A Design of an Optimized Deep Learning Module (ODLM)
3.3.1. A Design of the VPDS
The Input and Output Value of the VPDS
The Hidden Layers of the VPDS
The VPDS Mathematical Modeling
- The 1st phase: the weight W~Z are initialized as a small value, not 0 and Training Datasets are used.
- The 2nd phase: The initial learning rate and a critical value of an error, Emax are decided.
- The 3rd phase: The nodes’ values of the 1st Hidden Layer and the weight sum of the of the 1st Hidden Layer by using Formula (2), are obtained in the VPDS. At this time, the of Formula (2) means the value of the ith input node, and means a weight between the ith input node and the jth Hidden Layer. The VPDS computes the , which is the node value of the 1st Hidden Layer by applying the of the expression (3).
- The 4th Phase: The VPDS computes the between the 5th hidden layer and an Output layer by using Formula (4) and computes the output value, by using Formula (5). The is applied to the Sigmoid function of Formula (5).
- The 5th Phase: The VPDS computes an error E in the Formula (6) and compares it with the Emax of the 2nd Phase. The VPDS closes the learning if the error E is less than the Emax. The VPDS goes to the 5th Phase if the error E is greater than the Emax.Here, means a target value and, is the result value of the Output Layer computed in the 3rd phase.
- The 6th Phase: The VPDS computes an error signal, between the Output Layer and the last Hidden Layer and between the Hidden Layers.
- The 7th Phase: The VPDS modifies the weight, Z between the last Hidden Layer and Output Layer by using the Formula (9).Here, means the weight before being modified and means the weight after being modified. means a learning rate, means the error signal computed by the Formula (8), and means the 5th Hidden Layer.
- The 8th Phase: the VPDS repeats the learning process (training) from the 3rd phase to the 7th phase till an error E becomes less than the Emax.
3.3.2. A Design of TDS
A Learning Method of the TDS
Algorithm 1. TDS learning algorithm |
TDS_Learning(VPDS Output, W[[], learning rate, Training Data Set){ k < −1 while(true) { new-W <- W for 1 to the number of the Training Data Sets{ NET <- VPDS Output * new-W TDS-Output <- Step Function(NET) if (TDS-Output == Training Data.out) { } else { new-W <- learning rate * VPDS Output * (Training Data.out–Output) } } if (W == new-W) then End else { k < −k + 1 7W <- new-W } } } |
- First, the TDS uses the VPDS output, the initial value of weight W[], the learning rate and the Training Data.
- Second, if the learning gets started, an existing weight W is assigned to the new-W.
- Third, the fourth and fifth phases are repeated as large as the number of the Training Data Sets is.
- Fourth the VPDS Output value multiplied by new-W is stored in the NET. Then, the result of a Step Function for NET is stored in the TDS-Output
- Fifth, if the TDS-Output is the same as the output of the learning data, the weight is not modified. If the TDS-Output is different from the output of the learning data, TDS modifies weight and stores it in the new-W.
- Sixth, if to repeat the learning is over, the existing weight W compares the new-W. If the W is the same as the new-W, the learning is completed. If the existing W is different from the new-W, the learning cycle is increased by 1 and is repeated.
The Operational Process of TDS
- The 1st Phase: The TDS uses as input data a vehicle’s part analysis result of the VPDS.
- The 2nd Phase: The TDS computes a Output Node value by learning the input data. At this time, the Output Nodes consists of y1, y2, and y3. If the Output node y1 is 1, it becomes “Normality”. If the Output Node y2 is 1, it becomes “Check”. If the Output node y3 is 1, it becomes “Danger”.
- The 3rd Phase : The TDS judges a vehicle’s total condition according to an Output Node value as shown in the Table 2. At this time, a vehicle’s total condition is classified into “Normality”, “Check”, “Danger”, and “Error”. “Normality” means that a vehicle has no problem at all in the total condition. “Check” means that abnormality happened in some parts with a low possibility of an accident. “Danger” means that vehicle breakdown can happen in some parts with a high possibility of an accident. “Error” means that the condition of a vehicle cannot be judged.
- The 4th Phase : The TDS informs a vehicle manager of it in case a total condition of a vehicle is “Check” or “Danger”.
3.4. A Design of a Data Processing Module (DPM) Based on Edge Computing
3.4.1. An Edge Computing Based Self-Diagnosis Service
- First, the vehicles transfers the sensing data and the analysis result of the ODLM through the In-VGM to the Main Cloud Server. If there is no analysis result of the ODLM, NULL is used.
- Second, the Main Cloud Server checks that the car having transferred the sensing data and the analysis result of the ODLM is a new car or not.
- Third, if the car is a new car, the Main Cloud Server generates, learns, and stores the ODLM about a new car and transfers the ODLM about the new car to vehicles.
- Fourth, if the car is not a new car, the Main Cloud Server already has the ODLM and learns by applying the sensing data from the vehicles and the analysis result of the ODLM. If the learning is completed, the existing ODLM and the learned ODLM are compared. If the ODLM was changed, the changed contents are transferred to the vehicles.
Algorithm 2. Algorithm of the ECSS |
ECSS(Kind of Car, Car’s Sensors Data, ODLM _result){ root <- Kind of Car data <- Car’s Sensor Data training <- ODLM _result if (Is ODLM for root Exist in Cloud) then { Learning ODLM (data, training) if(Is ODLM Changed) then { send ODLM to Car } } else{ create ODLM Learning ODLM (data, training) save ODLM in Cloud send ODLM to Car } } |
3.4.2. The V2X Based Accident Notification Service
- First, the VANS informs the adjacent vehicles of the diagnosis result. According to Figure 10, vehicle A receives the ODLM suitable for itself from the Main Cloud Server. The vehicle analyzes the sensing data by using the received ODLM. If the analysis result decides that the condition of vehicle A is dangerous, the danger alarming message about vehicle A is generated by the VANS. At this time the hop field of the danger alarming message is set as 2. Vehicle A transfers the danger alarming message to an adjacent vehicle B through V2V communication. At this time, the hop field of the danger alarming message becomes 1. The vehicle B having received the danger alarming message transfers it to an adjacent vehicle C through V2V communication. The vehicle C knows the condition of vehicle A by receiving a danger alarming message of vehicle A. At this time, because the hop field of the danger alarming message has 0, vehicle C does not transfer it to other vehicles.
- Second, the VANS informs the adjacent infrastructure of the diagnosis result. According to Figure 10, vehicle A transfers the danger alarming message to the adjacent vehicles and to the adjacent infrastructure at the same time. At this time a hop is not used because a danger alarming message can be transferred to only the adjacent infrastructure. Therefore, the infrastructure having received the danger alarming message of vehicle A transfers the condition of vehicle A to the adjacent vehicles. Vehicle A transfers the sensing data and the analysis result of the ODLM to the Main Cloud Server.
4. The Performance Analysis
4.1. The Performance Analysis of the In-VGM
4.2. The Performance Analysis of the ODLM
4.3. The Performance Analysis of the DPM
5. Conclusions
Author Contributions
Funding
Conflicts of Interest
References
- Schweber, B. The Autonomous Car: A Diverse Array of Sensors Drives Navigation, Driving, and Performance. Available online: https://www.mouser.com/applications/autonomous-car-sensors-drive-performance/ (accessed on 10 January 2018).
- Miller, D. Autonomous Vehicles: What Are the Security Risks? 2014. Available online: https://www.covisint.com/blog/autonomous-vehicles-what-are-the-security-risks/ (accessed on 10 January 2018).
- Black, T.G. Diagnosis and Repair for Autonomous Vehicles. 2014. Available online: http://www.freepatentsonline.com/8874305.html (accessed on 11 January 2018).
- Xie, G.; Zeng, G.; Kurachi, R.; Takada, H.; Li, Z.; Li, R.; Li, K. WCRT Analysis of CAN Messages in Gateway-Integrated In-Vehicle Networks. IEEE Trans. Veh. Technol. 2017, 66, 9623–9637. [Google Scholar] [CrossRef]
- Wong, W. Design FAQs: FlexRay. Electron. Des. 2006, 54, 30. [Google Scholar]
- Li, Z.; Jing, H.; Liu, Z. Design of Application Layer Software and Interface Circuit for the MOST Network in Vehicle. In Proceedings of the Proceedings of the 32nd Chinese Control Conference, Xi’an, China, 26–28 July 2013; pp. 7720–7725. [Google Scholar]
- Lee, T.; Kuo, C.; Lin, I. High performance CAN/FlexRay gateway design for In-Vehicle network. Dependable and Secure Computing. In Proceedings of the 2017 IEEE Conference on Dependable and Secure Computing, Taipei, Taiwan, 7–10 August 2017; pp. 240–242. [Google Scholar]
- Dong, Z.; Piao, Z.; Jang, I.; Chung, J.; Lee, C. Design of FlexRay-MOST gateway using static segments and control messages. In Proceedings of the 2012 IEEE International Symposium on Circuits and Systems (ISCAS), Seoul, Korea, 20–23 May 2012; pp. 536–539. [Google Scholar]
- Seo, S.H.; Kim, J.H.; Moon, T.Y.; Hwang, S.H.; Kwon, K.H.; Jeon, J.W. A Reliable Gateway for In-vehicle Networks. In Proceedings of the 17th World Congress The International Federation of Automatic Control, Seoul, Korea, 6–11 July 2008; Volume 41, pp. 12081–12086. [Google Scholar]
- Kim, J.H.; Seo, S.; Hai, N.; Cheon, B.M.; Lee, Y.S.; Jeon, J.W. Gateway Framework for In-Vehicle Networks Based on CAN, FlexRay, and Ethernet. IEEE Trans. Veh. Technol. 2014, 64, 4472–4486. [Google Scholar] [CrossRef]
- Yang, J.; Wang, J.; Wan, L.; Liu, X. Vehicle networking data-upload strategy based on mobile cloud services. EURASIP J. Embed. Syst. 2016, 22. [Google Scholar] [CrossRef]
- Thiele, D.; Schlatow, J.; Axer, P.; Ernst, R. Formal timing analysis of CAN-to-Ethernet gateway strategies in automotive networks. Real-Time Syst. 2016, 52, 88–112. [Google Scholar] [CrossRef]
- Kim, M.; Lee, S.; Lee, K. Performance Evaluation of Node-mapping-based FlexRay-CAN Gateway for In-Vehicle Networking System. Intell. Autom. Soft Comput. 2015, 21, 251–263. [Google Scholar] [CrossRef]
- Lee, Y.S.; Kim, J.H.; Jeon, J.W. FlexRay and Ethernet AVB Synchronization for High QoS Automotive Gateway. IEEE Trans. Veh. Technol. 2016, 66, 5737–5751. [Google Scholar] [CrossRef]
- Ju, K.; Chen, L.; Wei, H.; Chen, K. An Efficient Gateway Discovery Algorithm with Delay Guarantee for VANET-3G Heterogeneous Networks. Wirel. Pers. Commun. 2014, 77, 2019–2036. [Google Scholar] [CrossRef]
- Aljeri, N.; Abrougui, K.; Almulla, M.; Boukerche, A. A reliable quality of service aware fault tolerant gateway discovery protocol for vehicular networks. Wirel. Commun. Mob. Comput. 2015, 15, 1485–1495. [Google Scholar] [CrossRef]
- Seo, S.; Kim, J.; Hwang, S.; Kwon, K.H.; Jeon, J.W. A reliable gateway for in-vehicle networks based on LIN, CAN, and FlexRay. ACM Trans. Embed. Comput. Syst. 2012, 11, 1–24. [Google Scholar] [CrossRef]
- An, H.S.; Jeon, J.W. Analysis of CAN FD to CAN message routing method for CAN FD and CAN gateway. In Proceedings of the 2017 17th International Conference on Control, Automation and Systems (ICCAS), Jeju, Korea, 18–21 October 2017. [Google Scholar]
- Seo, H.S.; Kim, B.C.; Park, P.S.; Lee, C.D.; Lee, S.S. Design and implementation of a UPnP-can gateway for automotive environments. Int. J. Autom. Technol. 2013, 14, 91–99. [Google Scholar] [CrossRef]
- Wang, L.; Wang, L.; Liu, W.; Zhang, Y. Research on fault diagnosis system of electric vehicle power battery based on OBD technology. In Proceedings of the 2017 International Conference on Circuits Devices and Systems (ICCDS), Chengdu, China, 5–8 September 2017; pp. 95–99. [Google Scholar]
- Khorsravinia, K.; Hassan, M.K.; Rahman, R.Z.A.; Al-Haddad, S.A.R. Integrated OBD-II and mobile application for electric vehicle (EV) monitoring system. In Proceedings of the 2017 IEEE 2nd International Conference on Automatic Control and Intelligent Systems (I2CACIS), Kota Kinabalu, Malaysia, 21 October 2017; pp. 202–206. [Google Scholar]
- Chen, S.; Liu, W.; Tsai, J.; Hung, I. Vehicle fuel pump service life evaluation using on-board diagnostic (OBD) data. In Proceedings of the 2016 International Conference on Orange Technologies (ICOT), Melbourne, VIC, Australia, 18–20 December 2016; pp. 84–87. [Google Scholar]
- Zhang, H.; Li, W. A new method of sensor fault diagnosis based on a wavelet packet neural network for Hybrid electric vehicles. In Proceedings of the 2016 9th International Congress on Image and Signal Processing, BioMedical Engineering and Informatics (CISP-BMEI), Datong, China, 15–17 October 2016; pp. 1143–1147. [Google Scholar]
- Zhang, Z.; He, H.; Zhou, N. A neural network-based method with data preprocess for fault diagnosis of drive system in battery electric vehicles. In Proceedings of the 2017 Chinese Automation Congress (CAC), Jinan, China, 20–22 October 2017; pp. 4128–4133. [Google Scholar]
- Moosavi, S.S.; Djerdir, A.; Ait-Amirat, Y.; Khaburi, D.A.; N’Diaye, A. Artificial neural network-based fault diagnosis in the AC–DC converter of the power supply of series hybrid electric vehicle. IET Electr. Syst. Transp. 2016, 6, 96–106. [Google Scholar] [CrossRef]
- Chuang, C.; Wei, Z.; Zhifu, W.; Zhi, L. The diagnosis method of stator winding faults in PMSMs based on SOM neural networks. Energy Procedia 2017, 105, 2295–2301. [Google Scholar] [CrossRef]
- Yurii, K.; Liudmila, G. Application of Artificial Neural Networks in Vehicles’ Design Self-Diagnostic Systems for Safety Reasons. Transp. Res. Procedia 2017, 20, 283–287. [Google Scholar] [CrossRef]
- Chunyan, W.; Wanzhong, Z.; Zhongkai, L.; Qi, G.; Ke, D. Decoupling control of vehicle chassis system based on neural network inverse system. Mech. Syst. Signal Process. 2017, 106, 176–197. [Google Scholar]
- Chu, W.; Liu, Y.; Shen, C.; Cai, D.; Hua, X. Multi-Task Vehicle Detection With Region-of-Interest Voting. IEEE Trans. Image Process. 2018, 27, 432–441. [Google Scholar] [CrossRef] [PubMed]
- Liu, W.; Zhang, M.; Luo, Z.; Cai, Y. An Ensemble Deep Learning Method for Vehicle Type Classification on Visual Traffic Surveillance Sensors. IEEE Access 2017, 5, 24417–24425. [Google Scholar] [CrossRef]
- Tan, D.; Chen, W.; Wang, H. On the Use of Monte-Carlo Simulation and Deep Fourier Neural Network in Lane Departure Warning. IEEE Intell. Transp. Syst. Mag. 2017, 9, 76–90. [Google Scholar] [CrossRef]
- Chen, C.; Hongyu, X.; Tie, Q.; Cong, W.; Yang, Z.; Victorm, C. A rear-end collision prediction scheme based on deep learning in the Internet of Vehicles. J. Parallel Distrib. Comput. 2017, 117, 192–204. [Google Scholar] [CrossRef]
- Wang, H.; Cai, Y.; Chen, X.; Chen, L. Night-Time Vehicle Sensing in Far Infrared Image with Deep Learning. J. Sens. 2016, 2016, 3403451. [Google Scholar] [CrossRef]
- George, L.; Yongpil, Y.; Georgia, S.; Tuan, V.; Ryan, H. Computation offloading of a vehicle’s continuous intrusion detection workload for energy efficiency and performance. Simul. Model. Pract. Theory 2016, 73, 83–94. [Google Scholar]
- Gao, Y.; Lee, H.J. Local Tiled Deep Networks for Recognition of Vehicle Make and Model. Sensors 2016, 16, 226. [Google Scholar] [CrossRef] [PubMed]
- Liujuan, C.; Qilin, J.; Ming, C.; Cheng, W. Robust vehicle detection by combining deep features with exemplar classification. Neurocomputing 2016, 215, 225–231. [Google Scholar]
- Meng, Z.; Pan, J.-S. Monkey King Evolution: A new memetic evolutionary algorithm and its application in vehicle fuel consumption optimization. Knowl. Based Syst. 2016, 97, 144–157. [Google Scholar] [CrossRef]
- Zhao, D.; Chen, Y.; Lv, L. Deep Reinforcement Learning With Visual Attention for Vehicle Classification. IEEE Trans. Cognit. Dev. Syst. 2016, 9–4, 356–367. [Google Scholar] [CrossRef]
- Gonzalez, J.P.N.; Castañon, L.E.G.; Rabhi, A.; El Hajjaji, A.; Morales-Menendez, R. Vehicle Fault Detection and Diagnosis combining AANN and ANFI. IFAC Proc. 2009, 42, 1079–1084. [Google Scholar] [CrossRef]
- Yang, S.; Cao, Y.; Peng, Z.; Wen, G.; Guo, K. Distributed formation control of nonholonomic autonomous vehicle via RBF neural network. Mech. Syst. Signal Process. 2017, 87, 81–95. [Google Scholar] [CrossRef]
- Luo, X.C.; Shen, R.; Hu, J.; Deng, J.; Hu, L.; Guan, Q. A Deep Convolution Neural Network Model for Vehicle Recognition and Face Recognition. Procedia Comput. Sci. 2017, 107, 715–720. [Google Scholar] [CrossRef]
- Glowacz, A. Acoustic based fault diagnosis of three-phase induction motoer. Appl. Acoust. 2018, 137, 82–89. [Google Scholar] [CrossRef]
- Praveenkumar, T.; Sabhrish, B.; Saimurugen, M.; Ramachandran, K.I. Pattern recognition based on-line vibration monitoring system for fault diagnosis of automobile gearbox. Measurement 2018, 114, 233–242. [Google Scholar] [CrossRef]
- Ganovska, B.; Molitoris, M.; Hosovsky, A.; Pitel, J.; Krolczyk, J.B.; Ruggierio, A.; Krolczyk, G.M.; Hloch, S. Design of the model for the on-line control of the AWJ technology based on neural networks. Indian J. Eng. Mater. Sci. 2016, 23, 279–287. [Google Scholar]
- Hu, Z.; Su, J.; Vladimir, J.; Orest, K.; Mykola, M.; Roman, K.; Taras, S. Data Science Applications to Improve Accuracy of Thermocouples. In Proceedings of the 2016 IEEE 8th International Conference On Intelligent Systems, Sofia, Bulgaria, 4–6 September 2016; pp. 180–188. [Google Scholar]
- Kamada, S.; Ichimura, T. Knowledge extracted from recurrent deep belief network for real time deterministic control, Systems, Man, and Cybernetics (SMC). In Proceedings of the 2017 IEEE International Conference on Systems, Man, and Cybernetics (SMC), Banff, AB, Canada, 5–8 October 2017; pp. 825–830. [Google Scholar]
- Lehner, B.; Widmer, G.; Bock, S. A low-latency, real-time-capable singing voice detection method with LSTM recurrent neural networks. In Proceedings of the 23rd European Signal Processing Conference (EUSIPCO), Nice, France, 31 Augudte–4 September 2015; pp. 21–25. [Google Scholar]
No. | Source | Destination | ID |
---|---|---|---|
1 | CAN | CAN | 10 |
2 | FlexRay | 801 | |
3 | MOST | 811 | |
4 | HSCAN | 30 | |
5 | FlexRayCAN | 60 | |
6 | FlexRay | CAN | 803 |
7 | FlexRay | 802 | |
8 | MOST | 812 | |
9 | HSCAN | 813 | |
10 | FlexRayCAN | 814 | |
... | ... | ... | ... |
24 | MOST | HSCAN | 821 |
25 | FlexRayCAN | 823 |
Output Node | Result | ||
---|---|---|---|
7y1 | y2 | y3 | |
Normality | Check | Danger | |
1 | 1 | 1 | Error |
1 | 1 | 0 | Check |
1 | 0 | 1 | Error |
1 | 0 | 0 | Normality |
0 | 1 | 1 | Danger |
0 | 1 | 0 | Check |
0 | 0 | 1 | Danger |
0 | 0 | 0 | Error |
Control Variables | Values |
---|---|
the number of Hidden Layers | 2 |
the number of each Hidden Layer Nodes | 20 |
a Learning Rate | 0.1 |
weight (all) | 0.2 |
© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Jeong, Y.; Son, S.; Jeong, E.; Lee, B. An Integrated Self-Diagnosis System for an Autonomous Vehicle Based on an IoT Gateway and Deep Learning. Appl. Sci. 2018, 8, 1164. https://doi.org/10.3390/app8071164
Jeong Y, Son S, Jeong E, Lee B. An Integrated Self-Diagnosis System for an Autonomous Vehicle Based on an IoT Gateway and Deep Learning. Applied Sciences. 2018; 8(7):1164. https://doi.org/10.3390/app8071164
Chicago/Turabian StyleJeong, YiNa, SuRak Son, EunHee Jeong, and ByungKwan Lee. 2018. "An Integrated Self-Diagnosis System for an Autonomous Vehicle Based on an IoT Gateway and Deep Learning" Applied Sciences 8, no. 7: 1164. https://doi.org/10.3390/app8071164
APA StyleJeong, Y., Son, S., Jeong, E., & Lee, B. (2018). An Integrated Self-Diagnosis System for an Autonomous Vehicle Based on an IoT Gateway and Deep Learning. Applied Sciences, 8(7), 1164. https://doi.org/10.3390/app8071164