Update system, on-vehicle device, and server
The update system efficiently updates in-vehicle models by using a server to select and transmit new models, addressing the inefficiency of relearning in existing systems and ensuring timely detection of fraudulent frames.
Patent Information
- Application Number
- PCT/JP2024/006820
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-09
- Filing Date
- 2024-02-26
- Publication Date
- 2024-09-12
AI Technical Summary
Existing in-vehicle update systems face challenges in accurately detecting fraudulent frames due to changes in vehicle values over time, requiring relearning of trained models which is time-consuming and inefficient.
An update system that includes an in-vehicle device and a server, where the in-vehicle device uses a first trained model to determine compatibility with vehicle values, and the server selects and transmits a second trained model for updating, allowing for rapid model updates without the need for relearning within the device.
Enables rapid updating of learned models, ensuring accurate detection of fraudulent frames without prolonged waiting times, even when vehicle values change over time.
Smart Images

Figure JP2024006820_12092024_PF_FP_ABST
Abstract
Description
Update system, in-vehicle device, and server
[0001] This application claims priority to Japanese Patent Application No. 2023-036466, filed on March 9, 2023, and incorporates by reference the entire contents of that application.
[0002] A vehicle is equipped with a variety of on-board devices, such as control system ECUs (Electronic Control Units) that control the engine, transmission, etc., body system ECUs that control headlights, power windows, etc., and information system ECUs for navigation devices, multimedia devices, etc. Each on-board device is connected to an on-board network and can communicate with each other.
[0003] A problem has arisen in that unauthorized in-vehicle devices are connected to an in-vehicle network disguised as authorized in-vehicle devices, and unauthorized frames are transmitted from the unauthorized in-vehicle devices to the in-vehicle network, resulting in unauthorized control of the vehicle. For this reason, techniques for detecting unauthorized frames in an in-vehicle network have been proposed (e.g., Patent Documents 1 to 3).
[0004] When detecting fraudulent frames using a trained model generated by machine learning, fraudulent frames cannot be accurately detected if the relationship between the input value and the output value of the trained model changes due to aging of the vehicle, etc. Patent Document 2 discloses a device that re-trains a trained model when the relationship between a first vehicle value and a second vehicle value acquired from a sensor mounted on the vehicle changes due to deterioration of on-board equipment.
[0005] International Publication No. 2020 / 203352 International Publication No. 2019 / 116973 Japanese Patent Application Laid-Open No. 2020-96286
[0006] An update system according to one aspect of the present disclosure includes an in-vehicle device and a server. The in-vehicle device includes a first trained model that uses as input data a first vehicle value transmitted over an in-vehicle network to which the in-vehicle device is connected, and outputs an estimated value correlated to the first vehicle value, and a first determination unit that compares the estimated value output from the first trained model with a second vehicle value transmitted over the in-vehicle network to determine whether the first trained model is compatible with the vehicle. The server includes a selection unit that, when the first determination unit determines that the first trained model is not compatible with the vehicle, selects a second trained model for updating the first trained model, and a transmission unit that transmits the second trained model selected by the selection unit to the in-vehicle device. The in-vehicle device includes a reception unit that receives the second trained model transmitted from the server, and an update unit that updates the first trained model to the second trained model received by the reception unit.
[0007] FIG. 1 is a block diagram showing an example of a configuration of an update system according to an embodiment. FIG. 2 is a block diagram showing an example of a hardware configuration of a relay ECU according to an embodiment. FIG. 3 is a block diagram showing an example of a hardware configuration of a server according to an embodiment. FIG. 4 is a schematic diagram showing an example of a configuration of a trained model according to an embodiment. FIG. 5 is a diagram showing an example of a configuration of a trained model DB. FIG. 6 is a functional block diagram showing an example of a function of a relay ECU according to an embodiment. FIG. 7 is a functional block diagram showing an example of a function of a server according to an embodiment. FIG. 8 is a flowchart showing an example of an operation of a relay ECU according to an embodiment. FIG. 9 is a flowchart showing an example of a fraudulent frame detection process. FIG. 10A is a first half of a flowchart showing an example of an update process. FIG. 10B is a second half of a flowchart showing an example of an update process. FIG. 11 is a flowchart showing an example of an operation of a server according to an embodiment. FIG. 12 is a flowchart showing an example of a model selection process. FIG. 13 is a sequence diagram showing an example of an operation of an update system according to an embodiment.
[0008] <Problem that the present disclosure aims to solve> However, in the device disclosed in Patent Document 2, in order to re-learn the learned model, it is necessary to record the first vehicle value and the second vehicle value obtained from the sensor as a log, which results in a problem of long waiting times.
[0009] <Effects of the Present Disclosure> According to the present disclosure, a trained model can be updated in a short period of time.
[0010] <Outline of Embodiments of the Present Disclosure> Below, an outline of embodiments of the present disclosure will be listed and described.
[0011] (1) A management system according to this embodiment includes an in-vehicle device and a server. The in-vehicle device includes a first trained model that receives as input a first vehicle value transmitted through an in-vehicle network to which the in-vehicle device is connected and outputs an estimated value correlated to the first vehicle value, and a first determination unit that compares the estimated value output from the first trained model with a second vehicle value transmitted through the in-vehicle network to determine whether the first trained model is compatible with the vehicle. The server includes a selection unit that, when the first determination unit determines that the first trained model is not compatible with the vehicle, selects a second trained model to update the first trained model, and a transmission unit that transmits the second trained model selected by the selection unit to the in-vehicle device. The in-vehicle device includes a reception unit that receives the second trained model transmitted from the server, and an update unit that updates the first trained model to the second trained model received by the reception unit. This eliminates the need for re-learning in the in-vehicle device, and enables the trained model to be updated in a short period of time.
[0012] (2) In the above (1), the in-vehicle device may further include a storage unit that stores first vehicle values and second vehicle values that have been previously transmitted through the in-vehicle network, and the first determination unit may input the first vehicle values stored in the storage unit to the first trained model and compare the estimated values output from the first trained model with the second vehicle values stored in the storage unit to determine whether the first trained model is compatible with the vehicle. This makes it possible to accurately determine whether the first trained model is compatible with the vehicle by using the first vehicle values and second vehicle values that are actual values stored in the storage unit.
[0013] (3) In the above (2), the first determination unit may determine whether the first trained model is compatible with the vehicle while the vehicle is stopped. This makes it possible to determine whether the first trained model is compatible with the vehicle while the vehicle is stopped and there is no need to perform vehicle driving control.
[0014] (4) In the above (2) or (3), the on-board device may further include a mode setting unit that sets an operation mode to either a normal mode in which the vehicle runs or a maintenance mode for performing maintenance on the vehicle, and the first determination unit may determine whether the first trained model is compatible with the vehicle when the operation mode is set to the maintenance mode. This makes it possible to determine whether the first trained model is compatible with the vehicle while the operation mode is set to the maintenance mode.
[0015] (5) In the above (4), the in-vehicle device may further include a second determination unit that, when the operation mode is set to the normal mode, compares the estimated value output from the first trained model with a second vehicle value transmitted through the in-vehicle network to determine whether a frame including the second vehicle value is an unauthorized frame. This allows detection of unauthorized frames using the first trained model while the operation mode is set to the normal mode.
[0016] (6) In any one of (1) to (5) above, the selection unit may select the second trained model based on vehicle information related to the vehicle. This makes it possible to provide the second trained model corresponding to the vehicle to the in-vehicle device.
[0017] (7) In the above (6), the vehicle information may include a vehicle model of the vehicle. This makes it possible to provide the in-vehicle device with a second trained model corresponding to the vehicle model.
[0018] (8) In the above (6) or (7), the vehicle information may include a model year of the vehicle. This makes it possible to provide the in-vehicle device with a second trained model corresponding to the model year of the vehicle.
[0019] (9) In any one of (6) to (8) above, the vehicle information may include a total mileage of the vehicle. This makes it possible to provide the in-vehicle device with a second trained model corresponding to the total mileage of the vehicle.
[0020] (10) In the above (6), the vehicle information may include the vehicle model, model year, and total mileage of the vehicle, and the selection unit may select the second trained model corresponding to the vehicle model and model year included in the vehicle information. If there are multiple second trained models corresponding to the vehicle model and model year included in the vehicle information, the selection unit may select one of the multiple second trained models based on the total mileage included in the vehicle information. This makes it possible to select a second trained model corresponding to the vehicle model and model year. Furthermore, if there are multiple second trained models corresponding to the vehicle model and model year, it is possible to select an appropriate second trained model based on the total mileage.
[0021] (11) In any one of (1) to (10) above, the selection unit may select the second trained model from a storage unit that stores a plurality of trained models. This makes it possible to select a trained model that is suited to the vehicle as the second trained model from various trained models.
[0022] (12) In any one of (1) to (11) above, the on-board device may further include: a third determination unit that compares an estimated value output from the second trained model with a second vehicle value transmitted through the on-board network to determine whether the second trained model is compatible with the vehicle; and a learning unit that, when the third determination unit determines that the second trained model is not compatible with the vehicle, generates a third trained model by performing supervised learning using the first vehicle value and the second vehicle value transmitted through the on-board network as training data, wherein the update unit may update the first trained model to the third trained model generated by the learning unit. In this way, when the second trained model provided from the server is not compatible with the vehicle, a third trained model compatible with the vehicle can be generated and the first trained model can be updated to the third trained model.
[0023] (13) In the above (12), the on-board device may further include a storage control unit that stores the third trained model generated by the training unit in a storage unit that stores a plurality of trained models that can be used in a plurality of vehicles. This allows the generated third trained model to be used in other vehicles.
[0024] (14) In any one of (1) to (13) above, the in-vehicle device may be a relay device connected to a plurality of communication lines included in the in-vehicle network and relaying frames between the plurality of in-vehicle devices, thereby making it possible to update the learning model in the relay device that relays frames between the plurality of in-vehicle devices.
[0025] (15) An in-vehicle device according to the present embodiment is an in-vehicle device connected to an in-vehicle network, and includes: a first trained model that receives a first vehicle value transmitted through the in-vehicle network as input data and outputs an estimated value correlated with the first vehicle value; a first determination unit that compares the estimated value output from the first trained model with a second vehicle value transmitted through the in-vehicle network to determine whether the first trained model is compatible with the vehicle; a receiving unit that, when the first determination unit determines that the first trained model is not compatible with the vehicle, receives from a server a second trained model for updating the first trained model; and an updating unit that updates the first trained model to the second trained model received by the receiving unit. This eliminates the need for re-learning in the in-vehicle device and enables the trained model to be updated in a short period of time.
[0026] (16) A server according to the present embodiment is a server capable of communicating with an in-vehicle device, and includes: a selection unit that uses a first vehicle value transmitted over an in-vehicle network to which the in-vehicle device is connected as input data, compares an estimated value output from a first trained model that outputs an estimated value correlated with the first vehicle value with a second vehicle value transmitted over the in-vehicle network, and selects a second trained model for updating the first trained model when it is determined that the first trained model is not suitable for the vehicle; and a transmission unit that transmits the second trained model selected by the selection unit to the in-vehicle device. This eliminates the need for re-learning in the in-vehicle device and enables the trained model to be updated in a short period of time.
[0027] The present disclosure can be realized not only as an update system having the above-described characteristic configuration, an in-vehicle device included in the update system, and a server included in the update system, but also as an update method having steps corresponding to characteristic processes in the in-vehicle device, an update program for causing the in-vehicle device to execute the characteristic processes, or a semiconductor integrated circuit as part or all of the relay device. Furthermore, the present disclosure can be realized as a method having steps corresponding to characteristic processes in the server, a program for causing the server to execute the characteristic processes, or a semiconductor integrated circuit as part or all of the server.
[0028] <Details of the embodiments of the present disclosure> Hereinafter, the details of the embodiments of the present disclosure will be described with reference to the drawings. Note that at least some of the embodiments described below may be combined in any manner.
[0029] 1. Update System Fig. 1 is a block diagram showing an example of the configuration of an update system according to this embodiment. The update system 10 includes a relay ECU 200 mounted on a vehicle and a server 500 provided outside the vehicle.
[0030] The vehicle has an in-vehicle system 100. The in-vehicle system 100 includes a relay ECU 200 and ECUs 300A, 300B, 300C, 300D, and 300E. The in-vehicle system 100 is an in-vehicle network configured by the relay ECU 200, the ECUs 300A, 300B, 300C, 300D, and 300E, and communication lines (communication buses) connecting them.
[0031] Multiple ECUs 300A, 300B, 300C, 300D, and 300E are disposed in various parts of the vehicle. The ECUs 300A, 300B, 300C, 300D, and 300E individually control the hardware of each part of the vehicle and monitor the status of the hardware of each part of the vehicle. For example, the ECUs 300A, 300B, 300C, 300D, and 300E are ECUs for a control system, a body system, and an information system. In the following description, the ECUs 300A, 300B, 300C, and 300D are also collectively referred to as "ECU 300."
[0032] The ECUs 300A, 300B, 300C, and 300D are connected to sensors. The sensors detect physical quantities related to the vehicle. For example, a sensor 310A that detects engine speed is connected to the ECU 300A. For example, a sensor 310B that detects the amount of accelerator pedal depression, i.e., the throttle opening, is connected to the ECU 300B. For example, a sensor 310C that detects the gear position of a transmission mechanism mounted on the vehicle is connected to the ECU 300C. For example, a sensor 310D that detects the rotation speed of the wheels, i.e., the vehicle speed, is connected to the ECU 300D. The engine speed, throttle opening, gear position, and vehicle speed are examples of "vehicle values."
[0033] The relay ECU 200 is connected to each of the ECUs 300A, 300B, 300C, 300D, and 300E via communication buses 400A, 400B, and 400C, such as a CAN (Controller Area Network) bus. Specifically, the ECUs 300A and 300B are connected to the bus 400A. The ECUs 300C and 300D are connected to the bus 400B. The ECU 300E is connected to the bus 400C. The relay ECU 200 can communicate with each of the ECUs 300A, 300B, 300C, 300D, and 300E. The relay ECU 200 and the ECUs 300A, 300B, 300C, 300D, and 300E are examples of "on-vehicle devices."
[0034] The relay ECU 200 and the ECU 300 use a communication protocol for periodically or aperiodically transmitting and receiving messages. The communication protocol is, for example, CAN or CAN FD (CAN with Flexible Data Rate). In another example, the protocol is Ethernet.
[0035] The relay ECU 200 functions as a gateway that relays communications between a plurality of ECUs 300. The ECUs 300 can transmit frames. The frames are messages that comply with the above-described communication protocol. The relay ECU 200 relays frames between ECUs connected to different buses. For example, the relay ECU 200 can relay frames between an ECU 300A connected to a bus 400A and an ECU 300C connected to a bus 400B.
[0036] The ECUs 300A, 300B, 300C, and 300D can transmit frames including the vehicle values described above. The ECUs 300A, 300B, 300C, 300D, and 300E that receive the frames can acquire the vehicle values from the received frames.
[0037] The relay ECU 200 is connected to an external communication device 350 via a bus 400C. The external communication device 350 is, for example, a TCU (Telematics Control Unit) and can communicate with devices outside the vehicle. The external communication device 350 has a wireless communication interface for a mobile communication system, such as a fifth-generation mobile communication system (5G) or a fourth-generation mobile communication system (4G). The external communication device 350 can transmit and receive packets of, for example, TCP / IP (Transmission Control Protocol / Internet Protocol). The external communication device 350 can connect to a base station (not shown) of a mobile communication network and communicate with devices connected to the Internet via the base station. Specifically, the external communication device 350 can communicate with a server 500. The external communication device 350 relays communication between the relay ECU 200 and the server 500.
[0038] A connector 410 is connected to the bus 400C. The connector 410 is, for example, a connector conforming to OBD1 (On-board Diagnostics first generation) or OBD2 (On-board Diagnostics second generation). A diagnostic device 370 for diagnosing the vehicle can be connected to the connector 410. The diagnostic device 370 can communicate with the relay ECU 200 and the ECU 300 using the above-mentioned communication protocol. For example, the diagnostic device 370 can collect, from the relay ECU 200 and the ECU 300, vehicle values detected by sensors, abnormality or warning information previously detected by the ECU 300, and the like.
[0039] 2. Hardware Configuration of Relay ECU Fig. 2 is a block diagram showing an example of the hardware configuration of the relay ECU according to this embodiment. Relay ECU 200 includes a processor 201, a nonvolatile memory 202, a volatile memory 203, and communication interfaces (hereinafter also referred to as "communication I / F") 204A, 204B, and 204C. Processor 201, nonvolatile memory 202, volatile memory 203, and communication I / F 204 are connected to one another by a bus 205, which is a communication line. Processor 201, nonvolatile memory 202, volatile memory 203, and communication I / F 204 can transmit data to one another via bus 205. Relay ECU 200 is an example of a "relay device."
[0040] The volatile memory 203 is, for example, a semiconductor memory such as an SRAM (Static Random Access Memory) or a DRAM (Dynamic Random Access Memory). The non-volatile memory 202 is, for example, a flash memory, a hard disk, or a ROM (Read Only Memory). The non-volatile memory 202 stores a fraudulent frame detection program 210 and an update program 211, which are computer programs, as well as data used to execute the fraudulent frame detection program 210 and the update program 211. The functions of the relay ECU 200, which will be described later, are realized when the processor 201 executes the fraudulent frame detection program 210 and the update program 211.
[0041] The processor 201 is, for example, a CPU (Central Processing Unit). However, the processor 201 is not limited to a CPU. The processor 201 may also be a GPU (Graphics Processing Unit). In a specific example, the processor 201 is a multi-core processor. The processor 201 may also be a single-core processor. The processor 201 is configured to be able to execute a computer program. However, the processor 201 may also be, for example, an ASIC (Application Specific Integrated Circuit) or a programmable logic device such as an FPGA (Field Programmable Gate Array). In this case, the ASIC or programmable logic device is configured to be able to execute the same functions as the fraudulent frame detection program 210 and the update program 211.
[0042] The communication I / Fs 204A, 204B, and 204C are communication interfaces that comply with the above-described communication protocol for the in-vehicle network. The communication I / Fs 204A, 204B, and 204C are, for example, CAN interfaces. The communication I / Fs 204A, 204B, and 204C may also be Ethernet interfaces.
[0043] Communication I / F 204A is connected to bus 400A. Communication I / F 204B is connected to bus 400B. Communication I / F 204C is connected to bus 400C. Relay ECU 200 can communicate with ECUs 300A and 300B via communication I / F 204A. Relay ECU 200 can communicate with ECUs 300C and 300D via communication I / F 204B. Relay ECU 200 can communicate with ECU 300E via communication I / F 204C. Furthermore, relay ECU 200 can communicate with diagnostic device 370 via communication I / F 204C, and can communicate with server 500 via external communication device 350.
[0044] The non-volatile memory 202 stores a trained model 212 used to detect fraudulent frames. The trained model 212 will be described later.
[0045] The non-volatile memory 202 stores log data 213. The log data 213 includes previously detected vehicle values, such as engine speed, throttle opening, gear position, and vehicle speed.
[0046] Vehicle information 214 is stored in the non-volatile memory 202. The vehicle information 214 includes the vehicle model, model year, and total mileage. For example, the vehicle information 214 may be stored in a non-volatile memory (not shown) of the ECU 300 instead of the non-volatile memory 202 of the relay ECU 200. In this case, the relay ECU 200 can acquire the vehicle information from the ECU 300 via communication.
[0047] 3 is a block diagram showing an example of the hardware configuration of a server according to this embodiment. The server 500 includes a processor 501, a nonvolatile memory 502, a volatile memory 503, and a communication I / F 504. The processor 501, the nonvolatile memory 502, the volatile memory 503, and the communication I / F 504 are connected to one another by a bus 505, which is a communication line. The processor 501, the nonvolatile memory 502, the volatile memory 503, and the communication I / F 504 can transmit data to one another via the bus 505.
[0048] The volatile memory 503 is, for example, a semiconductor memory such as an SRAM or a DRAM. The non-volatile memory 502 is, for example, a flash memory, a hard disk, a ROM, etc. The non-volatile memory 502 stores a distribution program 510, which is a computer program, and data used to execute the distribution program 510. The functions of the server 500, which will be described later, are realized when the distribution program 510 is executed by the processor 501.
[0049] The processor 501 is, for example, a CPU. However, the processor 501 is not limited to a CPU. The processor 501 may be a GPU. In a specific example, the processor 501 is a multi-core processor. The processor 501 may be a single-core processor. The processor 501 is configured to be able to execute a computer program. However, the processor 501 may be, for example, an ASIC or a programmable logic device such as an FPGA. In this case, the ASIC or programmable logic device is configured to be able to execute the same function as the provided program 510.
[0050] The communication I / F 504 is, for example, an Ethernet interface ("Ethernet" is a registered trademark). The communication I / F 504 is connected to, for example, the Internet. The communication I / F 504 can send and receive TCP / IP packets, for example.
[0051] The non-volatile memory 502 is provided with a trained model database 511 (hereinafter also referred to as "trained model DB 511"). The trained model DB 511 stores a plurality of trained models. The trained model DB 511 is an example of a "storage unit." In response to a request from a vehicle, the provision program 510 selects a trained model suitable for the vehicle from the trained model DB 511 and provides the selected trained model to the vehicle. The trained model DB 511 will be described later.
[0052] 4. Trained Model The trained model 212 is a computer program that can be executed by the processor 201 and is used to detect malicious frames.
[0053] 4 is a schematic diagram illustrating an example of the configuration of a trained model according to the embodiment. The trained model 212 is configured, for example, by a neural network and includes an input layer, a hidden layer, and an output layer.
[0054] The trained model 212 is configured by, for example, a deep neural network. The trained model 212 may be a convolutional neural network, a recurrent neural network, a long short-term memory (LSTM), or any other neural network.
[0055] The input layer receives vehicle values (first vehicle values) detected by sensors and included in frames transmitted from ECU 300. Input layer 212IN includes one or more nodes. For example, the input layer receives the first vehicle values of the engine speed, the throttle opening, and the gear position.
[0056] The hidden layer is composed of one or more processing layers. In the example shown in FIG. 4, the hidden layer has a three-layer structure. Each layer that makes up the hidden layer has one or more nodes. Each node in the input layer is connected to each node in the second layer by an edge. Individual weights are set for the edges. Each node in the second layer is connected to each node in the third layer by an edge. Each node in the third layer is connected to each node in the fourth layer by an edge.
[0057] The output layer includes at least one node, and each of the fourth layer nodes in the hidden layer is connected by an edge to a node in the output layer.
[0058] The first vehicle value provided to the node in the input layer is weighted by the edge weight and passed to the node in the second layer. The node in the second layer executes the processing assigned to it for the provided data. The data processed by the node in the second layer is weighted by the edge weight and passed to the node in the third layer. The node in the third layer executes the processing assigned to it for the provided data. In the same manner, the data is passed sequentially to the fourth layer and the output layer. The data of the node included in the output layer is an estimated value of the second vehicle value. The second vehicle value is a vehicle value that is correlated with the first vehicle value. For example, if the first vehicle value is engine speed, throttle opening, and gear position, the second vehicle value is vehicle speed.
[0059] For example, if the frame transmitting the vehicle speed, which is the second vehicle value, is a regular frame (hereinafter also referred to as a "regular frame"), the vehicle speed included in the regular frame is a normal value indicating the actual vehicle speed. Therefore, if the input data, such as the engine speed, throttle opening, and gear position, are normal, the estimated vehicle speed output from the trained model 212 is a value close to the vehicle speed included in the regular frame. For example, if the frame transmitting the vehicle speed, which is the second vehicle value, is an invalid frame, the vehicle speed included in the invalid frame is an abnormal value different from the actual vehicle speed. Therefore, the estimated vehicle speed output from the trained model 212 will be a value that is not close to the vehicle speed included in the invalid frame.
[0060] A plurality of trained models may be stored in the nonvolatile memory 202 of the relay ECU 200. For example, the nonvolatile memory 202 may store a trained model that uses the brake pedal depression amount as input data and an estimated value of acceleration as output data, a trained model that uses the steering wheel rotation angle as input data and an estimated value of the wheel rudder angle as output data, and the like.
[0061] [5. Trained Model DB] FIG. 5 is a diagram showing an example of the configuration of a trained model DB. The trained model DB 511 associates and stores vehicle information with trained models. That is, the trained model DB 511 associates and stores vehicle information with trained models adapted to a vehicle identified by the vehicle information. Specifically, the vehicle information is vehicle information about the vehicle for which the corresponding trained model was generated. In the example of FIG. 5 , trained model M1 is a trained model generated by a vehicle with the model type "Vehicle A," the model year "2011," and the total mileage of "9,251 km." Trained model M2 is a trained model generated by a vehicle with the model type "Vehicle A," the model year "2015," and the total mileage of "8,289 km." Trained model M3 is a trained model generated by a vehicle with the model type "Vehicle A," the model year "2015," and the total mileage of "20,350 km." Trained model M4 is a trained model generated by a vehicle of model type "Model B", year "2021", and total mileage "563 km".
[0062] 6. Functions of the Update System FIG. 6 is a functional block diagram showing an example of functions of the relay ECU according to the embodiment.
[0063] When the processor 201 of the relay ECU 200 executes the fraudulent frame detection program 210 and the update program 211, the functions of the mode setting unit 221, the input unit 231, the frame determination unit 232, the output unit 233, the input unit 241, the first compatibility determination unit 242, the request unit 243, the receiving unit 244, the input unit 245, the second compatibility determination unit 246, the update unit 247, the learning unit 248, and the storage control unit 249 are realized.
[0064] The relay ECU 200 can set two operation modes: a normal mode and a maintenance mode. The normal mode is an operation mode that is set when the vehicle is running. The maintenance mode is an operation mode that is set when maintenance work on the vehicle is being performed. In other words, the maintenance mode is an operation mode that is set when the vehicle is not running.
[0065] Referring to Fig. 1 , for example, maintenance work such as inspection and repair of a vehicle is performed at a dealer or the like. During maintenance work, a dealer worker connects diagnostic device 370 to connector 410. When diagnostic device 370 is connected to in-vehicle system 100, a frame is transmitted from diagnostic device 370 to in-vehicle system 100. Relay ECU 200 detects the connection of diagnostic device 370 by receiving the frame.
[0066] 6 , for example, when mode setting unit 221 detects the connection of diagnostic device 370, it switches the operation mode from normal mode to maintenance mode. When diagnostic device 370 is disconnected from in-vehicle system 100, mode setting unit 221 switches from maintenance mode to normal mode. That is, normal mode is an operation mode that is set when diagnostic device 370 is not connected to in-vehicle system 100. Maintenance mode is an operation mode that is set when diagnostic device 370 is connected to in-vehicle system 100.
[0067] The input unit 231, the frame determination unit 232, and the output unit 233 are functions that are executed in the normal mode. The input unit 231, the frame determination unit 232, and the output unit 233 are realized by the fraudulent frame detection program 210.
[0068] The input unit 231 inputs the first vehicle value to the learned model 212. In a specific example, the input unit 231 acquires the first vehicle value from a frame received by the relay ECU 200 from the in-vehicle network, and inputs the acquired first vehicle value to the learned model 212. In other words, the first vehicle value that the input unit 231 inputs to the learned model 212 is the vehicle value most recently detected by the sensors 310A, 310B, and 310C, i.e., the current value.
[0069] When the trained model 212 receives the first vehicle value as input data, it outputs an estimated value of the second vehicle value. That is, the output data from the trained model 212 is an estimate of the current value of the second vehicle value obtained from the current value of the first vehicle value, and is an estimate of the vehicle value most recently detected by the sensor 310D. The trained model 212 stored in the non-volatile memory 202 is an example of a "first trained model."
[0070] The frame determination unit 232 compares the estimated value output from the trained model 212 with the second vehicle value transmitted through the in-vehicle network to determine whether a frame including the second vehicle value is an unauthorized frame. The frame determination unit 232 is an example of a "second determination unit." In a specific example, the frame determination unit 232 acquires the current value of the second vehicle value from a frame received by the relay ECU 200 from the in-vehicle network. The frame determination unit 232 compares the estimated value output from the trained model 212 with the current value of the second vehicle value. For example, the frame determination unit 232 calculates the difference between the estimated value output from the trained model 212 and the current value of the second vehicle value, and determines whether the difference is equal to or greater than a threshold. If the difference is less than the threshold, the frame determination unit 232 determines that the frame including the second vehicle value is a legitimate frame. If the difference is equal to or greater than the threshold, the frame determination unit 232 determines that the frame including the second vehicle value is an unauthorized frame.
[0071] When the frame determination unit 232 detects an unauthorized frame, the output unit 233 outputs notification data for notifying the user of the detection of the unauthorized frame. For example, the output unit 233 generates a notification frame for notifying the user of the detection of the unauthorized frame and transmits the generated notification frame to the in-vehicle network. For example, a user interface device (hereinafter also referred to as a "UI device") is connected to the in-vehicle system (not shown). The UI device is one of the in-vehicle devices installed in the vehicle. The UI device is used by the driver of the vehicle. The UI device includes an input device and a display device and can accept input from the driver and display information to be provided to the driver. The UI device receives the notification frame transmitted from the relay ECU 200 and displays a screen for notifying the user of the detection of the unauthorized frame. This notifies the driver of the detection of the unauthorized frame.
[0072] The input unit 241, the first conformance determination unit 242, the request unit 243, the receiving unit 244, the input unit 245, the second conformance determination unit 246, the update unit 247, the learning unit 248, and the storage control unit 249 are functions executed in the maintenance mode. The input unit 231, the input unit 241, the first conformance determination unit 242, the request unit 243, the receiving unit 244, the input unit 245, the second conformance determination unit 246, the update unit 247, the learning unit 248, and the storage control unit 249 are realized by the update program 211.
[0073] The input unit 241 inputs the first vehicle value to the learned model 212. In a specific example, the input unit 241 reads the first vehicle value from the log data 213 and inputs the read first vehicle value to the learned model 212. In other words, the first vehicle value that the input unit 241 inputs to the learned model 212 is a vehicle value that was previously detected by the sensors 310A, 310B, and 310C, i.e., a past value (actual value).
[0074] When the trained model 212 receives the first vehicle value as input data, it outputs an estimated value of the second vehicle value. That is, the output data from the trained model 212 is an estimated value of the past value of the second vehicle value obtained from the past value of the first vehicle value, and is an estimated value of the vehicle value previously detected by the sensor 310D.
[0075] The mechanical characteristics of a vehicle change due to aging. When the mechanical characteristics change, the correlation between the first vehicle value and the second vehicle value changes. Therefore, the trained model 212, which previously correctly reflected the relationship between the first vehicle value and the second vehicle value, may no longer correctly reflect the relationship between the first vehicle value and the second vehicle value due to aging of the vehicle.
[0076] The first compatibility determination unit 242 compares the estimated value output from the trained model 212 with the second vehicle value transmitted through the in-vehicle network to determine whether the trained model 212 is compatible with the vehicle. The first compatibility determination unit 242 is an example of a "first determination unit." In a specific example, the first compatibility determination unit 242 reads the second vehicle value from the log data 213. The second vehicle value recorded in the log data 213 is a past value of the second vehicle value. The first compatibility determination unit 242 compares the estimated value output from the trained model 212 with the second vehicle value read from the log data 213. The second vehicle value used for comparison with the estimated value is the second vehicle value detected at the time when the first vehicle value input to the trained model 212 was detected or at a time close to the time when the first vehicle value was detected.
[0077] For example, the first compatibility determination unit 242 calculates the difference between the estimated value output from the trained model 212 and the past value of the second vehicle value, and determines whether the difference is equal to or greater than a threshold. If the difference is less than the threshold, the first compatibility determination unit 242 determines that the trained model 212 is compatible with the vehicle. If the difference is equal to or greater than the threshold, the first compatibility determination unit 242 determines that the trained model 212 is not compatible with the vehicle.
[0078] If the first compatibility determination unit 242 determines that the trained model 212 is compatible with the vehicle, the trained model 212 is not updated and continues to be used to detect fraudulent frames.
[0079] The input-output relationship in the trained model 212 that is not adapted to the vehicle deviates from the actual correlation between the first vehicle value and the second vehicle value. Therefore, if the trained model 212 that is not adapted to the vehicle is used to detect fraudulent frames, there is a risk that the fraudulent frames will be falsely detected or will not be detected at all. Therefore, if the trained model 212 is not adapted to the vehicle, it is necessary to update the trained model 212 to a trained model that correctly reflects the correlation between the first vehicle value and the second vehicle value.
[0080] If the first compatibility determination unit 242 determines that the trained model 212 is not compatible with the vehicle, the request unit 243 requests a new trained model from the server 500. In a specific example, the request unit 243 generates a request frame for requesting a new trained model and transmits the request frame to the in-vehicle network.
[0081] The request frame includes the vehicle information. That is, the request unit 243 reads the vehicle information 214 from the nonvolatile memory 202 and generates a request frame including the read vehicle information 214. The request frame transmitted by the request unit 243 is received by the external communication device 350. Upon receiving the request frame, the external communication device 350 performs necessary processing such as protocol conversion and transmits the request frame to the server 500.
[0082] FIG. 7 is a functional block diagram illustrating an example of the functions of the server according to the embodiment.
[0083] When the processor 501 of the server 500 executes the provision program 510, the functions of a receiving unit 521, a selecting unit 522, and a transmitting unit 523 are realized.
[0084] The receiving unit 521 receives a request frame transmitted from a vehicle.
[0085] When the receiving unit 521 receives the request frame, the selecting unit 522 selects a trained model for update from the trained model DB 511.
[0086] In a specific example, the selection unit 522 selects a trained model to be updated from among multiple trained models stored in the trained model DB 511 based on the vehicle information included in the request frame.
[0087] For example, the selection unit 522 can select a trained model corresponding to the same vehicle model as the vehicle model included in the request frame. It can be estimated that the mechanical characteristics of vehicles of the same vehicle model are similar. Therefore, it can be estimated that the relationship between the first vehicle value and the second vehicle value is similar for vehicles of the same vehicle model. Therefore, a trained model for a vehicle of the same vehicle model as the vehicle requesting the trained model is likely to be compatible with the requesting vehicle.
[0088] There is a high possibility that the configuration of the in-vehicle network will differ between vehicles of different models. For example, a vehicle value used in a first in-vehicle network may not be used in a second in-vehicle network. In contrast, there is a high possibility that the configuration of the in-vehicle network will be common between vehicles of the same model. From this perspective, too, it is considered that a trained model for a vehicle of the same model as the vehicle that requests the trained model is likely to be compatible with the requesting vehicle.
[0089] For example, the selection unit 522 can select a trained model corresponding to a model year close to the model year included in the request frame. It can be estimated that vehicles of similar model years have similar levels of aging deterioration. Therefore, it can be estimated that the relationship between the first vehicle value and the second vehicle value is similar for vehicles of similar model years. Therefore, a trained model for a vehicle of similar model year to the vehicle requesting the trained model is likely to be compatible with the requesting vehicle.
[0090] For example, if multiple trained models corresponding to the same vehicle model as that included in the request frame are stored in the trained model DB 511, the selection unit 522 can select the trained model corresponding to the model year closest to the model year included in the request frame.
[0091] For example, the selection unit 522 can select a trained model corresponding to a total mileage close to the total mileage included in the request frame. It can be estimated that the deterioration of vehicles with similar total mileages is similar. Therefore, it can be estimated that the relationship between the first vehicle value and the second vehicle value is similar for vehicles with similar total mileages. Therefore, a trained model for a vehicle with a total mileage close to that of the vehicle requesting the trained model is likely to be compatible with the requesting vehicle.
[0092] For example, the selection unit 522 can select a trained model corresponding to the vehicle model and year included in the vehicle information. When there are multiple trained models corresponding to the vehicle model and year included in the vehicle information, the selection unit 522 can select one of the multiple trained models based on the total mileage included in the vehicle information. In a specific example, when multiple trained models corresponding to the same vehicle model and year as the vehicle model and year included in the request frame are stored in the trained model DB 511, the selection unit 522 can select the trained model corresponding to the total mileage closest to the total mileage included in the request frame.
[0093] The transmission unit 523 transmits the trained model for update selected by the selection unit 522 to the requesting vehicle.
[0094] Returning to Fig. 6, the trained model transmitted from the server 500 is received by the external communication device 350. The external communication device 350 divides the received trained model, for example, into multiple frames and transmits them to the relay ECU 200. The receiving unit 244 receives the frames transmitted from the external communication device 350, i.e., the trained model for update.
[0095] The input unit 245 inputs the first vehicle value to the received trained model for update (hereinafter also referred to as the "update model"). The update model is an example of a "second trained model." In a specific example, the input unit 231 reads the first vehicle value from the log data 213 and inputs the read first vehicle value to the update model. In other words, the first vehicle value that the input unit 231 inputs to the update model is a vehicle value previously detected by sensors 310A, 310B, and 310C, i.e., a past value (actual value).
[0096] When the update model receives the first vehicle value as input data, it outputs an estimated value of the second vehicle value. That is, the output data from the update model is an estimated value of the past value of the second vehicle value obtained from the past value of the first vehicle value, and is an estimated value of the vehicle value previously detected by sensor 310D.
[0097] The second compatibility determination unit 246 compares the estimated value output from the update model with the second vehicle value transmitted over the in-vehicle network to determine whether the update model is compatible with the vehicle. The second compatibility determination unit 246 is an example of a "third determination unit." In a specific example, the second compatibility determination unit 246 reads the second vehicle value from the log data 213. The second vehicle value recorded in the log data 213 is a past value of the second vehicle value. The second compatibility determination unit 246 compares the estimated value output from the update model with the second vehicle value read from the log data 213. The second vehicle value used for comparison with the estimated value is the second vehicle value detected at the time when the first vehicle value input to the update model was detected or at a time close to the time when the first vehicle value was detected.
[0098] For example, the second compatibility determination unit 246 calculates the difference between the estimated value output from the update model and the past value of the second vehicle value, and determines whether the difference is equal to or greater than a threshold. If the difference is less than the threshold, the second compatibility determination unit 246 determines that the update model is compatible with the vehicle. If the difference is equal to or greater than the threshold, the second compatibility determination unit 246 determines that the update model is not compatible with the vehicle.
[0099] When the second compatibility determination unit 246 determines that the update model is compatible with the vehicle, the update unit 247 updates the trained model 212 stored in the non-volatile memory 202 to the update model. That is, the update unit 247 overwrites the trained model 212 stored in the non-volatile memory 202 with the update model.
[0100] If the second compatibility determination unit 246 determines that the update model is not compatible with the vehicle, the learning unit 248 generates a new trained model (hereinafter also referred to as a "new model") by performing supervised learning using the first vehicle value and the second vehicle value transmitted over the in-vehicle network as training data. The new model is an example of a "third trained model."
[0101] In a specific example, the learning unit 248 reads the first vehicle value and the second vehicle value from the log data 213 and creates teacher data from the read first vehicle value and the second vehicle value. For example, the log data 213 includes a sufficient amount of first vehicle value and second vehicle value required for supervised learning. Specifically, the log data 213 accumulates first vehicle values and second vehicle values detected over a certain period of time. For example, when the relay ECU 200 receives new first vehicle values and second vehicle values, the received first vehicle values and second vehicle values are added to the log data 213. For example, when new first vehicle values and second vehicle values are added to the log data 213, the oldest first vehicle values and second vehicle values may be deleted from the log data 213. For example, the learning unit 248 can create teacher data from all first vehicle values and second vehicle values included in the log data 213.
[0102] The learning unit 248 generates a trained model that uses the first vehicle value as an input and the second vehicle value as an output based on the training data. That is, the learning unit 248 performs machine learning using the training data to construct a trained model.
[0103] The learning unit 248 provides training data to the neural network and performs supervised learning. In supervised learning, the first vehicle values in the training data are provided as inputs to the neural network, and learning is performed so that the output is the same as the second vehicle values. Such machine learning is performed repeatedly using multiple data sets that combine the first vehicle values and the second vehicle values. In machine learning, existing learning algorithms such as backpropagation and gradient descent may be used. Through machine learning, the weights of the neural network are adjusted and a trained model is constructed.
[0104] The update unit 247 can update the trained model 212 stored in the non-volatile memory 202 to a new model generated by the training unit 248.
[0105] The storage control unit 249 stores the new model generated by the learning unit 248 in the trained model DB 511. In a specific example, the storage control unit 249 transmits a registration request including the new model generated by the learning unit 248 and the vehicle information 214. The registration request is divided into, for example, multiple frames and transmitted to the external communication device 350. Upon receiving the registration request, the external communication device 350 performs necessary processing such as protocol conversion and transmits the registration request to the server 500.
[0106] When the server 500 receives the registration request, it registers the vehicle information and the new model included in the registration request in the trained model 511. This makes the new model available for use in multiple vehicles.
[0107] 7. Operation of Update System The operation of the in-vehicle system according to this embodiment will be described below.
[0108] FIG. 8 is a flowchart illustrating an example of the operation of the relay ECU according to the embodiment.
[0109] The normal mode is the default operation mode of the relay ECU 200. That is, the relay ECU 200 is set to the normal mode at startup.
[0110] When diagnostic device 370 is connected to the in-vehicle network, diagnostic device 370 transmits a frame. Processor 201 of relay ECU 200 detects the connection of diagnostic device 370 by receiving the frame. Processor 201 determines whether diagnostic device 370 is connected to the in-vehicle network (step S101).
[0111] If diagnostic device 370 is not connected to the in-vehicle network (NO in step S101), processor 201 maintains the normal mode and executes the fraudulent frame detection process (step S102).
[0112] FIG. 9 is a flowchart showing an example of the unauthorized frame detection process.
[0113] In the fraudulent frame detection process, processor 201 receives a frame including a first vehicle value and a frame including a second vehicle value (step S201). For example, in the CAN, a CAN ID indicating the ECU 300 that is the sender is assigned. Processor 201 identifies the sender by the CAN ID of the frame, and can thereby identify whether the frame is a frame including the first vehicle value, a frame including the second vehicle value, or another frame.
[0114] The processor 201 acquires the first vehicle value from the received frame and inputs the acquired first vehicle value to the trained model 212. The trained model 212 outputs an estimated value of the second vehicle value (step S202).
[0115] The processor 201 acquires the current value of the second vehicle value from the frame received in step S201, and calculates the difference between the acquired current value of the second vehicle value and the estimated value of the second vehicle value (step S203).
[0116] The processor 201 compares the calculated difference with a threshold value (step S204). If the difference is less than the threshold value (NO in step S204), the processor 201 ends the fraudulent frame detection process.
[0117] If the difference is equal to or greater than the threshold (YES in step S204), the processor 201 determines that the received frame is an unauthorized frame and transmits a notification frame to notify the user of the detection of the unauthorized frame (step S205). The UI device receives the notification frame and displays a screen to notify the user of the detection of the unauthorized frame. This completes the unauthorized frame detection process.
[0118] 8, when the unauthorized frame detection process is completed, the operation of the relay ECU 200 is completed. The relay ECU 200, for example, repeatedly executes the operation shown in FIG. 8 at a predetermined cycle.
[0119] If diagnostic device 370 is connected to the in-vehicle network (YES in step S101), processor 201 sets the operation mode to the maintenance mode (step S103).
[0120] The processor 201 executes the update process (step S104).
[0121] 10A and 10B are flowcharts illustrating an example of the update process.
[0122] Referring to FIG. 10A, in the update process, the processor 201 reads out the past values of the first vehicle value and the second vehicle value from the log data 213 (step S301).
[0123] The processor 201 inputs the first vehicle value read from the log data 213 to the trained model 212. The trained model 212 outputs an estimated value of the second vehicle value (step S302).
[0124] The processor 201 calculates the difference between the past value of the second vehicle value read from the log data 213 and the estimated value of the second vehicle value (step S303).
[0125] The processor 201 compares the calculated difference with a threshold value (step S304). If the difference is less than the threshold value (NO in step S304), the processor 201 determines that the trained model 212 is compatible with the vehicle, and ends the update process.
[0126] If the difference is equal to or greater than the threshold value (YES in step S304), the processor 201 determines that the trained model 212 is not suitable for the vehicle. The processor 201 transmits a request frame to the server 500 to request an update model. The request frame includes the vehicle information 214. The request frame is received by the external communication device 350, and the external communication device 350 forwards the request frame to the server 500.
[0127] FIG. 11 is a flowchart illustrating an example of the operation of the server according to the embodiment.
[0128] The server 500 receives the request frame (step S401), which causes the processor 501 of the server 500 to accept the request for an update model.
[0129] The processor 501 executes a model selection process to select an update model from the trained model DB 511 based on the vehicle information included in the request frame (step S402).
[0130] FIG. 12 is a flowchart illustrating an example of the model selection process.
[0131] In the model selection process, the processor 501 searches the trained model DB 511 for a trained model corresponding to the vehicle model and year included in the vehicle information (step S501).
[0132] The processor 501 determines whether multiple trained models corresponding to the vehicle model and year included in the vehicle information are obtained as a search result (step S502). If only one trained model corresponding to the vehicle model and year included in the vehicle information is obtained (NO in step S502), the processor 501 selects the trained model as an update model (step S503).
[0133] If multiple trained models corresponding to the vehicle model and year included in the vehicle information are obtained (YES in step S502), the processor 501 selects, from these trained models, the trained model corresponding to the total mileage closest to the total mileage included in the vehicle information as the update model (step S504). This completes the model selection process.
[0134] 11, the processor 501 transmits the selected update model to the requesting vehicle (external communication device 350) (step S403). This completes the operation of the server 500.
[0135] 10A , upon receiving the update model transmitted from the server 500, the external communication device 350 performs necessary processing such as protocol conversion and transmits the update model to the relay ECU 200. The relay ECU 200 receives the update model (step S306).
[0136] The processor 201 reads the past values of the first vehicle value and the second vehicle value from the log data 213 (step S307).
[0137] The processor 201 inputs the first vehicle value read from the log data 213 to the update model. The update model outputs an estimated value of the second vehicle value (step S308).
[0138] The processor 201 calculates the difference between the past value of the second vehicle value read from the log data 213 and the estimated value of the second vehicle value output from the update model (step S309).
[0139] Processor 201 compares the calculated difference with a threshold value (step S310). If the difference is less than the threshold value (NO in step S310), processor 201 determines that the update model is suitable for the vehicle, and updates trained model 212 stored in non-volatile memory 202 to the update model (step S311).
[0140] If the difference is equal to or greater than the threshold value (YES in step S310), the processor 201 determines that the update model is not suitable for the vehicle.
[0141] 10B, the processor 201 reads out the past values of the first vehicle value and the second vehicle value from the log data 213 (step S312). The processor 201 creates teacher data from the read out first vehicle value and second vehicle value (step S313).
[0142] The processor 201 provides the training data to the neural network and executes a learning process (step S314), thereby generating a new model.
[0143] The processor 201 updates the trained model 212 stored in the non-volatile memory 202 to a new model (step S315).
[0144] The processor 201 transmits a registration request including the generated new model and vehicle information. The registration request is transmitted (uploaded) to the server 500 by the external communication device 350. Upon receiving the registration request, the server 500 registers the vehicle information and new model included in the registration request in the trained model DB 511. This completes the update process.
[0145] 13 is a flowchart showing an example of the operation of the update system according to the embodiment, which is performed when the relay ECU 200 is in the maintenance mode.
[0146] When diagnostic device 370 is connected to the in-vehicle network, processor 201 of relay ECU 200 sets the operation mode to the maintenance mode. Processor 201 executes the update process.
[0147] The processor 201 inputs the first vehicle value included in the log data 213 to the trained model 212. The processor 201 acquires the estimated value output from the trained model 212. The processor 201 compares the second vehicle value included in the log data 213 with the estimated value output from the trained model 212, and determines whether the trained model 212 is compatible with the vehicle (step S11).
[0148] If it is determined that the trained model 212 is suitable for the vehicle, the processor 201 ends the processing. In this case, the trained model 212 is not updated.
[0149] If it is determined that the trained model 212 is not suitable for the vehicle, the processor 201 reads the vehicle information 214 from the non-volatile memory 202 and transmits a request frame including the vehicle information 214 (step S12). The external communication device 350 receives the request frame, performs necessary processing such as protocol conversion on the received request frame, and then transmits the request frame to the server 500 (step S13).
[0150] When the server 500 receives the request frame, the processor 501 selects a trained model for update from the trained model DB 511 based on the vehicle information included in the request frame (step S14).
[0151] The processor 501 transmits the selected trained model, which is the update model (step S15). The external communication device 350 receives the update model, performs necessary processing such as protocol conversion on the received update model, and then transmits the update model to the relay ECU 200 (step S16).
[0152] The relay ECU 200 receives the update model. The processor 201 inputs the first vehicle value included in the log data 213 into the update model. The processor 201 acquires the estimated value output from the update model. The processor 201 compares the second vehicle value included in the log data 213 with the estimated value output from the update model, and determines whether the update model is compatible with the vehicle (step S17).
[0153] If it is determined that the update model is suitable for the vehicle, the processor 201 updates the trained model 212 with the update model.
[0154] If it is determined that the update model is not suitable for the vehicle, the processor 201 creates training data from the log data 213 and performs machine learning using the created training data (step S18). The processor 201 updates the trained model 212 with a new model, which is a trained model generated by machine learning (step S19). Note that Fig. 13 shows an example of the operation of the update system when the update model is not suitable for the vehicle.
[0155] The processor 201 transmits (step S20) a registration request including the generated new model and the vehicle information 214. The external communication device 350 receives the registration request, performs necessary processing such as protocol conversion on the received registration request, and then transmits the registration request to the server 500 (step S21).
[0156] When the server 500 receives the registration request, the processor 501 registers the vehicle information 214 and the new model included in the registration request in the trained model DB 511 (step S22).
[0157] [8. Modifications] In the above-described embodiment, the trained model DB 511 is provided in the server 500, but this is not limiting. For example, a database server including the same database as the trained model DB 511 may be provided separately from the server 500. In this case, for example, the server 500 may access the database server and select an update model that matches the vehicle information.
[0158] In the above-described embodiment, multiple trained models are stored in the trained model DB 511, but this is not limiting. For example, multiple trained models may be stored in a file system. In this case, the server 500 stores a table that stores storage locations (directories) of trained models in association with vehicle information and can identify the storage location of a trained model that matches the vehicle information by referring to the table. The server 500 can acquire the trained model from the identified storage location and download the acquired trained model to the vehicle. In another example, the server 500 can transmit the storage location of the trained model to the external communication device 350 in response to a request. The external communication device 350 can download the trained model from the received storage location, for example, using File Transfer Protocol (FTP), and transfer the downloaded trained model to the relay ECU 200.
[0159] In the above-described embodiment, the trained model to be updated is selected based on the vehicle model, year, and total mileage, but this is not limiting. In addition to or instead of at least one of the above vehicle information, the trained model to be updated may be selected based on the country or region in which the vehicle is registered. Climates vary from country to country, and the rate at which a vehicle deteriorates varies depending on the climate. Therefore, a trained model corresponding to the same country or region as the requesting vehicle is considered to be more likely to be compatible with the requesting vehicle.
[0160] In the above-described embodiment, the trained model 212 is a neural network model, but is not limited to this. A trained model generated by a supervised machine learning algorithm other than a neural network, such as a decision tree or a support vector machine, may also be used.
[0161] In the embodiment described above, the relay ECU 200 stores the trained model 212 and determines whether the trained model 212 is compatible with the vehicle, but this is not limiting. The ECU 300 may store the trained model 212 and determine whether the trained model 212 is compatible with the vehicle.
[0162] [9. Supplementary Notes] [Supplementary Note 1] A method for updating a trained model used to detect fraudulent frames in an in-vehicle device, the method comprising: a step of: inputting a first vehicle value transmitted over an in-vehicle network to which the in-vehicle device is connected as input data; inputting the first vehicle value into a first trained model that outputs an estimated value correlated to the first vehicle value; and acquiring, by the in-vehicle device, the estimated value output from the first trained model; a step of: the in-vehicle device comparing the acquired estimated value with a second vehicle value transmitted over the in-vehicle network to determine whether the first trained model is compatible with the vehicle; a step of: a server selecting a second trained model for updating the first trained model when it is determined that the first trained model is not compatible with the vehicle; a step of: the server transmitting the selected second trained model to the in-vehicle device; a step of: the in-vehicle device receiving the second trained model transmitted from the server; and a step of: the in-vehicle device updating the first trained model to the received second trained model.
[0163] [Supplementary Note 2] An updating method for an in-vehicle device connected to an in-vehicle network to update a trained model used to detect fraudulent frames in the in-vehicle device, the updating method comprising: a step of inputting a first vehicle value transmitted through the in-vehicle network into a first trained model that uses the first vehicle value as input data and outputs an estimated value correlated with the first vehicle value, and acquiring the estimated value output from the first trained model; a step of comparing the estimated value output from the first trained model with a second vehicle value transmitted through the in-vehicle network to determine whether the first trained model is compatible with the vehicle; a step of receiving a second trained model for updating the first trained model from a server when it is determined that the first trained model is not compatible with the vehicle; and a step of updating the first trained model to the received second trained model.
[0164] [Supplementary Note 3] An update program for updating a trained model used to detect fraudulent frames in an in-vehicle device connected to an in-vehicle network, the update program causing a computer to execute the following steps: inputting a first vehicle value transmitted over the in-vehicle network into a first trained model that uses the first vehicle value as input data and outputs an estimated value correlated to the first vehicle value, and acquiring the estimated value output from the first trained model; comparing the estimated value output from the first trained model with a second vehicle value transmitted over the in-vehicle network to determine whether the first trained model is compatible with the vehicle; receiving a second trained model for updating the first trained model from a server when it is determined that the first trained model is not compatible with the vehicle; and updating the first trained model to the received second trained model.
[0165] [Supplementary Note 4] A method for providing an in-vehicle device connected to an in-vehicle network with a trained model used to detect fraudulent frames, the method comprising: a step of selecting a second trained model for updating the first trained model when it is determined that the first trained model is not suitable for the vehicle by comparing an estimated value output from a first trained model that uses a first vehicle value transmitted through the in-vehicle network as input data and outputs an estimated value correlated to the first vehicle value with a second vehicle value transmitted through the in-vehicle network; and a step of transmitting the selected second trained model to the in-vehicle device.
[0166] [Supplementary Note 5] A provision program for providing an in-vehicle device connected to an in-vehicle network with a trained model used to detect fraudulent frames, the provision program causing a computer to execute the following steps: selecting a second trained model for updating the first trained model when it is determined that the first trained model is not suitable for the vehicle by comparing a first vehicle value transmitted over the in-vehicle network as input data and a first trained model that outputs an estimated value correlated to the first vehicle value with a second vehicle value transmitted over the in-vehicle network; and transmitting the selected second trained model to the in-vehicle device.
[0167] [10. Supplementary Note] The embodiments disclosed herein are illustrative in all respects and are not restrictive. The scope of the present invention is defined by the claims, not the above-described embodiments, and includes meanings equivalent to the claims and all modifications within the scope thereof.
[0168] 10 Update system 100 In-vehicle system 200 Relay ECU (relay device, in-vehicle device) 201 Processor 202 Non-volatile memory 203 Volatile memory 204A, 204B, 204C Communication interface (communication I / F) 210 Malicious frame detection program 211 Update program 212 Trained model 213 Log data 214 Vehicle information 221 Mode setting unit 231 Input unit 232 Frame determination unit 233 Output unit 241 Input unit 242 First conformance determination unit 243 Request unit 244 Receiving unit 245 Input unit 246 Second conformance determination unit 247 Update unit 248 Learning unit 249 Storage control unit 300, 300A, 300B, 300C, 300D, 300E ECU (in-vehicle device) 310A, 310B, 310C, 310D Sensor 350 External communication device 370 Diagnostic device 400A, 400B, 400C Communication bus 410 Connector 500 Server 501 Processor 502 Non-volatile memory 503 Volatile memory 504 Communication interface (communication I / F) 510 Provided program 511 Trained model database 521 Receiving unit 522 Selecting unit 523 Transmitting unit
Claims
1. An update system comprising: an in-vehicle device; and a server, wherein the in-vehicle device includes a first trained model that uses a first vehicle value transmitted through an in-vehicle network to which the in-vehicle device is connected as input data, and outputs an estimated value correlated to the first vehicle value; and a first determination unit that compares the estimated value output from the first trained model with a second vehicle value transmitted through the in-vehicle network to determine whether the first trained model is suitable for the vehicle, wherein the server includes: a selection unit that selects a second trained model for updating the first trained model when the first determination unit determines that the first trained model is not suitable for the vehicle; and a transmission unit that transmits the second trained model selected by the selection unit to the in-vehicle device, wherein the in-vehicle device includes: a receiving unit that receives the second trained model transmitted from the server; and an update unit that updates the first trained model to the second trained model received by the receiving unit.
2. The update system described in claim 1, wherein the in-vehicle device further includes a memory unit that stores a first vehicle value and a second vehicle value that have been transmitted through the in-vehicle network in the past, and the first determination unit compares the estimated value output from the first trained model by inputting the first vehicle value stored in the memory unit into the first trained model with the second vehicle value stored in the memory unit to determine whether the first trained model is compatible with the vehicle.
3. The update system according to claim 2, wherein the first determination unit determines whether or not the first trained model is compatible with the vehicle when the vehicle is stopped.
4. The update system of claim 2 or claim 3, wherein the in-vehicle device further includes a mode setting unit that sets an operating mode to either a normal mode in which the vehicle runs or a maintenance mode for performing maintenance on the vehicle, and the first determination unit determines whether or not the first trained model is compatible with the vehicle when the operating mode is set to the maintenance mode.
5. The update system described in claim 4, wherein the in-vehicle device further includes a second determination unit that, when the operating mode is set to the normal mode, compares the estimated value output from the first learned model with a second vehicle value transmitted through the in-vehicle network to determine whether a frame including the second vehicle value is an unauthorized frame.
6. The update system according to any one of claims 1 to 5, wherein the selection unit selects the second trained model based on vehicle information relating to the vehicle.
7. The update system of claim 6, wherein the vehicle information includes a model of the vehicle.
8. The update system of claim 6 or claim 7, wherein the vehicle information includes a model year of the vehicle.
9. The update system of claim 6, wherein the vehicle information includes a total mileage of the vehicle.
10. The update system of claim 6, wherein the vehicle information includes the vehicle model, year, and total mileage of the vehicle, the selection unit selects the second trained model corresponding to the vehicle model and year included in the vehicle information, and when there are multiple second trained models corresponding to the vehicle model and year included in the vehicle information, the selection unit selects one of the multiple second trained models based on the total mileage included in the vehicle information.
11. The update system according to any one of claims 1 to 10, wherein the selection unit selects the second trained model from a storage unit that stores a plurality of trained models.
12. The in-vehicle device further includes: a third judgment unit that compares an estimated value output from the second trained model with a second vehicle value transmitted through the in-vehicle network to judge whether or not the second trained model is compatible with the vehicle; and a learning unit that generates a third trained model by performing supervised learning using the first vehicle value and the second vehicle value transmitted through the in-vehicle network as teacher data when the third judgment unit judges that the second trained model is not compatible with the vehicle; and the update unit updates the first trained model to the third trained model generated by the learning unit. The update system described in any one of claims 1 to 11.
13. The update system described in claim 12, wherein the in-vehicle device further includes a storage control unit that stores the third trained model generated by the learning unit in a storage unit that stores a plurality of trained models that can be used in a plurality of vehicles.
14. The update system according to any one of claims 1 to 13, wherein the in-vehicle device is a relay device that is connected to a plurality of communication lines included in the in-vehicle network and relays frames between the plurality of in-vehicle devices.
15. An in-vehicle device connected to an in-vehicle network, comprising: a first trained model that uses a first vehicle value transmitted through the in-vehicle network as input data and outputs an estimated value correlated to the first vehicle value; a first determination unit that compares the estimated value output from the first trained model with a second vehicle value transmitted through the in-vehicle network to determine whether the first trained model is suitable for the vehicle; a receiving unit that receives a second trained model for updating the first trained model from a server when the first determination unit determines that the first trained model is not suitable for the vehicle; and an updating unit that updates the first trained model to the second trained model received by the receiving unit.
16. A server capable of communicating with an in-vehicle device, comprising: a selection unit that uses a first vehicle value transmitted through an in-vehicle network to which the in-vehicle device is connected as input data, and compares an estimated value output from a first trained model that outputs an estimated value correlated to the first vehicle value with a second vehicle value transmitted through the in-vehicle network, and selects a second trained model for updating the first trained model when it is determined that the first trained model is not suitable for the vehicle; and a transmission unit that transmits the second trained model selected by the selection unit to the in-vehicle device.
Citation Information
Patent Citations
Remote damage prediction system
JP2004268633A
Determination device, determination program, determination method, and neural network model generation method
JP2020096286A
Abnormality detection method, abnormality detection device, and abnormality detection system
WO2017119246A1
