Reinforcement learning method and motor control unit

The reinforcement learning method optimizes a Q-table for motor control to quickly start an engine by minimizing noise and vibration through sound pressure and acceleration feedback, improving engine cranking efficiency.

JP2024121332AActive Publication Date: 2024-09-06TOYOTA JIDOSHA KK

Patent Information

Application Number
JP2023028374
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-09-06
Estimated Expiration
2043-02-27

AI Technical Summary

Technical Problem

Existing motor control systems struggle to start an engine quickly while minimizing vibration and noise during cranking.

Method used

A reinforcement learning method optimizes a Q-table to determine torque command values for the motor by using a sound pressure detector and acceleration sensor to calculate rewards, updating the Q-table to select actions that minimize noise and vibration, thereby enhancing engine start-up efficiency.

Benefits of technology

The method enables rapid engine start-up with reduced vibration and noise by optimizing the Q-table through reinforcement learning, ensuring quick and smooth engine cranking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024121332000001
    Figure 2024121332000001
Patent Text Reader

Abstract

To provide a reinforcement learning method which can optimize a Q table so as to make it possible to start an engine quickly while restraining vibration and / or noise.SOLUTION: A reinforcement learning method optimizes a Q table through reinforcement learning. The reinforcement learning method includes causing a computer to repeatedly execute the steps of: calculating a first reward on the basis of sound pressure or acceleration in each trial (step S140); calculating a second reward such that a return decreases as a time until starting of an engine is completed increases (step S140); and updating the Q table such that an action is selected with which a return that is a sum of rewards in the trials becomes larger (step S150).SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a reinforcement learning method for optimizing a Q table for selecting a torque command value to a motor for cranking an engine, and to a motor control unit equipped with a learned Q table. [Background technology]

[0002] Patent Document 1 discloses a machine learning device that learns a current command value for a motor. In the learning process, the machine learning device acquires state variables while driving the motor. The machine learning device then calculates a reward based on the state variables. The machine learning device learns the current command value based on the reward. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2018-014838 A Summary of the Invention [Problem to be solved by the invention]

[0004] When starting an engine, a motor drives a crankshaft of the engine to perform cranking. When controlling the motor that performs cranking, it is necessary to control the motor so that the engine can be started quickly. [Means for solving the problem]

[0005] The means for solving the above problems and their effects will be described below. A reinforcement learning method for solving the above problem optimizes a Q table, which is used in a motor control unit that determines a torque command value to a motor by selecting an action that maximizes a Q value, and which specifies a correspondence relationship between state variables including an engine rotation speed and the most recent torque command value to the motor, the action, and the Q value, by using reinforcement learning to have a computer repeatedly execute attempts to crank the engine and start the engine by controlling the motor using the Q table.

[0006] This reinforcement learning method causes the computer to repeatedly execute the steps of: calculating a first reward as a reward in each trial based on a sound pressure detected by a sound level meter that detects noise emitted from a vehicle or an acceleration detected by an acceleration sensor that detects vibrations of the vehicle; calculating a second reward as the reward such that the profit decreases as the time from the start of cranking to the completion of starting the engine increases; and updating the Q table so that an action that increases the profit, which is the sum of the rewards in the trial, is selected.

[0007] A motor control unit for solving the above problem includes a processing circuit and a storage device. In this control device, a learned Q table updated by the above reinforcement learning method is stored in the storage device. In this control device, the processing circuit determines the torque command value by referring to the learned Q table stored in the storage device and selecting an action that maximizes the Q value based on state variables including an engine speed and a most recent torque command value to a motor. Then, the processing circuit drives the motor based on the determined torque command value, thereby causing the motor to crank the engine. Effect of the Invention

[0008] The above-described reinforcement learning method can optimize the Q-table so as to suppress vibration and noise while enabling the engine to start quickly. The motor control unit described above can start the engine quickly while suppressing vibration and noise. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a schematic diagram showing the configuration of a learning system and the relationship between the learning system and a vehicle. [Diagram 2] FIG. 2 is a schematic diagram showing the configuration of a powertrain of a vehicle. [Diagram 3] FIG. 3 is a time chart showing (a) the transition of the torque of the first motor generator, (b) the presence or absence of ignition, and (c) the transition of the engine rotation speed when starting the engine. [Figure 4] FIG. 4 is a flowchart showing a sequence of processes involved in reinforcement learning. [Diagram 5] FIG. 5 is a flowchart showing the flow of a series of processes performed by the motor control unit to operate the first motor generator. [Figure 6] FIG. 6 is a time chart showing a transition of the torque command value. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of a reinforcement learning method and a motor control unit will be described with reference to FIGS. This reinforcement learning method is a method for optimizing a Q table stored in a motor control unit 23 mounted on a vehicle 10. This reinforcement learning method is executed by a learning system 100, which is a computer that executes a program for optimizing the Q table.

[0011] <Configuration of learning system 100> As shown in FIG. 1, the learning system 100 includes a processing circuit 101 and a storage device 102. The storage device 102 stores programs and data. The processing circuit 101 executes the programs stored in the storage device 102. As described above, the learning system 100 optimizes the Q table to be stored in the storage device 25 of the motor control unit 23 mounted on the vehicle 10. The motor control unit 23 is a part of the control device 20. The vehicle 10 is mounted with a hybrid system 30. The control device 20 controls the hybrid system 30.

[0012] <Powertrain configuration of vehicle 10> 2, the power train of the vehicle 10 includes a hybrid system 30. The vehicle 10 drives drive wheels 40 by the hybrid system 30. The hybrid system 30 of the vehicle 10 includes a first motor generator 31, a second motor generator 32, an engine 33, a power split mechanism 34, a power control unit 35, and a reduction mechanism 36.

[0013] The second motor generator 32 is connected to a power control unit 35. The second motor generator 32 is connected to driving wheels 40 via a reduction gear mechanism 36. The engine 33 is connected to the driving wheels 40 via a power split mechanism 34 and the reduction gear mechanism 36. The first motor generator 31 is connected to the power split mechanism 34. The first motor generator 31 is, for example, a three-phase AC motor generator.

[0014] The power split mechanism 34 is composed of a planetary gear. The power split mechanism 34 can split the driving force of the engine 33 to the first motor generator 31 and the driving wheels 40. The first motor generator 31 generates electricity using the driving force of the engine 33 and generates electricity using the driving force from the driving wheels 40. The first motor generator 31 drives the crankshaft of the engine 33 when starting the engine 33. Therefore, the first motor generator 31 is a motor that drives the crankshaft of the engine 33 to crank the engine 33.

[0015] The first motor generator 31 and the second motor generator 32 are connected to a battery via a power control unit 35. AC power generated by the first motor generator 31 is converted to DC power by the power control unit 35 and charged into the battery. That is, the power control unit 35 functions as an inverter.

[0016] The DC power of the battery is converted to AC power by the power control unit 35 and supplied to the second motor generator 32. When the vehicle 10 is decelerated, the second motor generator 32 generates power using the driving force from the drive wheels 40. The generated power is then charged to the battery. That is, the vehicle 10 performs regenerative charging. At this time, the second motor generator 32 functions as a generator. The AC power generated by the second motor generator 32 is converted to DC power by the power control unit 35 and charged to the battery. When the engine 33 is cranked by the first motor generator 31, the power control unit 35 converts the DC power of the battery to AC power and supplies it to the first motor generator 31.

[0017] <Regarding the control device 20> The control device 20 controls the engine 33, the first motor generator 31, and the second motor generator 32. The control device 20 includes an engine control unit 22 that controls the engine 33. The control device 20 includes a motor control unit 23 that controls the first motor generator 31 and the second motor generator 32 by controlling a power control unit 35. The control device 20 further includes an overall control unit 21 that is connected to the engine control unit 22 and the motor control unit 23 and that overall controls the vehicle 10. These control units are composed of a processing circuit and a memory that stores programs executed by the processing circuit, etc.

[0018] As described above, the control device 20 controls the engine 33, the first motor generator 31, and the second motor generator 32. That is, the control device 20 controls the power train of the vehicle 10. The control device 20 receives detection signals from sensors provided in various parts of the vehicle 10. For example, an accelerator position sensor, a brake sensor, and a vehicle speed sensor are connected to the overall control unit 21. For example, a crank position sensor, a water temperature sensor, and an air flow meter are connected to the engine control unit 22. The crank position sensor outputs a crank angle signal every time the crankshaft rotates a certain angle. The engine control unit 22 calculates the rotation phase of the crankshaft and the engine rotation speed NE, which is the rotation speed of the crankshaft, based on the crank angle signal.

[0019] The motor control unit 23 receives the current, voltage, and temperature of the battery via the power control unit 35. Based on the current, voltage, and temperature, the motor control unit 23 calculates the ratio of the remaining charge to the charge capacity of the battery.

[0020] The engine control unit 22 and the motor control unit 23 are each connected to the overall control unit 21 via a communication line. The overall control unit 21, the motor control unit 23, and the engine control unit 22 mutually exchange and share information based on detection signals input from sensors via CAN communication and calculated information.

[0021] <About cranking> As described above, the first motor generator 31 drives the crankshaft of the engine 33 to crank the engine 33. When starting the engine 33, the control device 20 drives the first motor generator 31 by the motor control unit 23 to achieve cranking.

[0022] 3 shows the transition of the MG torque when starting the engine 33, the transition of the presence or absence of ignition control in the engine 33, and the transition of the engine rotation speed NE. The MG torque is the torque of the first motor generator 31. As shown in FIG 3(a), when starting of the engine 33 is started at time t_0, the motor control unit 23 increases the MG torque and starts cranking to rotate the crankshaft by the driving force of the first motor generator 31.

[0023] When the engine speed NE reaches the preset rotation speed NEx at time t_1 as shown in FIG. 3(c), ignition control in the engine 33 is turned ON as shown in FIG. 3(b), and the engine control unit 22 starts ignition control. When ignition control is performed in this manner, the engine 33 starts to operate autonomously. Therefore, the motor control unit 23 sets the MG torque to "0" as shown in FIG. 3(a) to end cranking. When the engine speed NE converges to the target rotation speed NEt, starting of the engine 33 is completed.

[0024] Until cranking is thus completed, the motor control unit 23 controls the MG torque so as to quickly complete the starting of the engine 33 while minimizing vibration and noise.

[0025] Data for cranking is stored in the memory device 25 of the motor control unit 23. This data is a Q table that specifies the correspondence between state variables including the engine speed NE and the most recent torque command value for the first motor generator 31, actions, and Q values. The Q value is a value that indicates the value of taking a certain action in a certain state. The Q table stored in the memory device 25 is a learned Q table that has been optimized by reinforcement learning.

[0026] The processing circuit 24 of the motor control unit 23 refers to the Q table and determines the torque command value by selecting the action that maximizes the Q value based on state variables including the engine rotation speed NE and the most recent torque command value for the first motor generator 31. Specifically, in this embodiment, the processing circuit 24 determines the torque command value by selecting one torque command value from among six torque command values ​​set as the action. That is, the processing circuit 24 refers to the Q table and selects the option that maximizes the Q value from among the six options based on the state variables at that time. Then, the processing circuit 24 drives the first motor generator 31 based on the determined torque command value, thereby causing the first motor generator 31 to crank the engine 33.

[0027] <About optimizing the Q table by the learning system 100> Next, optimization of the Q table will be described. As described above, the learned Q table stored in the storage device 25 of the motor control unit 23 is optimized by reinforcement learning.

[0028] As shown in FIG. 1, the learning operation for optimizing the Q table is performed with a learning system 100 connected to a vehicle 10. The learning system 100 is connected to a control device 20 of the vehicle 10. When performing the learning operation, a sound level meter 50 and an acceleration sensor 51 are attached to the vehicle 10. The sound level meter 50 and the acceleration sensor 51 are connected to the learning system 100. The learning system 100 connected to the control device 20 is capable of communicating with the control device 20. Therefore, the learning system 100 can control the hybrid system 30 via the control device 20. The learning system 100 can acquire various data acquired by the control device 20 using sensors mounted on the vehicle 10.

[0029] FIG. 4 is a flowchart showing a series of processes for optimizing the Q table. In this reinforcement learning method, the learning system 100 is caused to repeatedly execute trials of starting the engine 33 by controlling the first motor generator 31 using the Q table. In each trial, the learning system 100 is caused to select an action based on the state variables with reference to the Q table. The learning system 100 then calculates a reward according to the state after the selected action is executed. As shown in FIG. 4, in this reinforcement learning method, the process of acquiring a state, selecting an action, and calculating a reward is repeated. In this way, data on the state before the action, the selected action, and the state and reward after the action are executed are collected. Using the data thus accumulated, the Q table is updated so that the optimal action for achieving the final goal can be selected based on the acquired state.

[0030] The learning system 100 refers to the Q table and selects an action based on the state variables. The Q value stored in the Q table is updated as shown in the following formula.

[0031]

number

[0032] Q(s,a) is the expected profit that will be obtained in the future when action a is selected in state s. The reward is r. The profit is the sum of rewards r until the end of the trial. The subscript t in state s, action a, and reward r in the above formula is a number indicating one step in the trial. When state s changes after the action decision, the number t is incremented by one. In the following, the subscript is written with "_" followed by "_". Therefore, the reward r_t+1 in the above formula is the reward obtained when action a_t is selected in state s_t and state s becomes state s_t+1. In the above formula, α is the learning rate and γ is the discount rate. Both the learning rate α and the discount rate γ are values ​​greater than 0 and less than 1. In addition, maxQ(s_t+1,a) is the maximum value of the Q value in state s_t+1, which is the transition destination due to the selection of action a. In this section, action a refers to the action that maximizes Q(s_t+1, a_t+1) among the actions a_t+1 that can be taken in state s_t+1.

[0033] As described above, the behavior a in the learning system 100 can be selected from six options. Of course, this is just one example, and the content of the behavior a does not need to be limited to this. The options for the behavior a may be more or less than this.

[0034] In the reinforcement learning method of this embodiment, the learning system 100 calculates the reward r such that the profit increases as the engine 33 is started quickly while vibration and noise are suppressed. Specifically, the learning system 100 executes a step of calculating a first reward and a step of calculating a second reward as a step of calculating the reward r. The learning system 100 calculates the first reward based on the sound pressure detected by the sound level meter 50. The learning system 100 also calculates the first reward based on the acceleration detected by the acceleration sensor 51. The learning system 100 calculates the first reward when the logical sum condition of the sound pressure being equal to or greater than a threshold and the amount of change in the sound pressure per unit time being equal to or greater than a predetermined amount is satisfied, so that the profit is smaller than when the logical sum condition is not satisfied.

[0035] The learning system 100 calculates a predetermined negative value as the reward r when the sound pressure is equal to or greater than a threshold value. For example, the learning system 100 also calculates a predetermined negative value when the amount of change in sound pressure per unit time is equal to or greater than a predetermined amount. The magnitude of these negative values ​​may be different. By the learning system 100 thus calculating the first reward according to the sound pressure, the earnings become smaller when the sound pressure is large and when the sound pressure changes significantly.

[0036] The learning system 100 calculates the first reward so that the greater the acceleration, the smaller the profit. The acceleration sensor 51 detects the acceleration in three directions, up and down, left and right, and front and rear, of the vehicle 10. For example, when the acceleration in any direction exceeds a certain level, the learning system 100 calculates a negative value as the first reward so that the absolute value becomes larger as the acceleration becomes larger. By the learning system 100 calculating the first reward in this way according to the acceleration, the greater the acceleration, the smaller the profit becomes. However, when vibration occurs, the fluctuation of the acceleration caused by the vibration is detected many times until the vibration is attenuated and converged. Therefore, when the first reward based on the acceleration is calculated in one trial, the calculation of the first reward based on the acceleration may be stopped thereafter. By adopting such a method and stopping the calculation of the first reward, it is possible to avoid the first reward being calculated many times based on the same factor and being reflected in the profit.

[0037] The learning system 100 calculates the second reward so that the longer the time from the start of cranking to the completion of starting the engine 33, the smaller the profit becomes. For example, the learning system 100 calculates a constant negative value as the second reward every time it selects the action a and executes the action a that outputs a torque command value to the first motor generator 31. In other words, the learning system 100 calculates a constant negative value as the second reward every time it increments the number t by one. By the learning system 100 calculating the second reward in this way, the longer the time from the start of cranking to the completion of starting the engine 33, the smaller the profit becomes.

[0038] <Flow of the process involved in reinforcement learning> Next, we will explain in detail the flow of the series of processes involved in reinforcement learning with reference to the flowchart shown in Figure 4.

[0039] As shown in Fig. 4, when the learning operation starts, the processing circuit 101 of the learning system 100 starts cranking in the process of step S100. Specifically, the processing circuit 101 sets the number t to an initial value of "0". Then, the processing circuit 101 starts cranking. Immediately after the learning operation starts, the number of episodes indicating the number of trials is "0".

[0040] In the next step S110, the processing circuit 101 acquires a state s. Specifically, the processing circuit 101 acquires the engine speed NE and the most recent torque command value, which are state variables. Next, in the processing of step S120, the processing circuit 101 selects an action a. Specifically, the processing circuit 101 refers to a Q table stored in the storage device 102 and determines the action a from among the six options described above based on the state variables. At this time, the processing circuit 101 selects the action a using the ε-greedy method.

[0041] In the ε-greedy method, the Q table is referenced to select action a with the largest Q value in state s, but action a is determined randomly at a certain rate. When learning first begins, action a is determined randomly with little regard for the Q value. Then, as learning progresses, that is, as the number of episodes increases, the rate at which action a is determined randomly is gradually reduced. Eventually, action a is selected based solely on the Q value.

[0042] When the processing circuit 101 selects the action a in the process of step S120, the processing circuit 101 outputs a torque command value in accordance with the selected action a to control the first motor generator 31. Then, the processing circuit 101 advances the process to step S130.

[0043] In the process of step S130, the processing circuit 101 acquires a state s after the operation according to the action a. That is, the processing circuit 101 performs the same process as the process of step S110 to acquire state variables. Note that, when the selected action a is action a_t, the state s acquired in the process of step S130 is state s_t+1.

[0044] Next, the processing circuit 101 calculates the reward r in the process of step S140. Specifically, as described above, the processing circuit 101 executes the step of calculating the first reward and the step of calculating the second reward. After calculating the first reward and the second reward as the reward r in this way, the processing circuit 101 advances the process to step S150.

[0045] In the process of step S150, the processing circuit 101 updates the Q value stored in the Q table. The processing circuit 101 updates the Q table by updating the Q value as shown in the above formula. The value of maxQ(s_t+1, a) needs to be calculated by inputting the state s_t+1 into the Q table. Therefore, in this embodiment, the processing circuit 101 performs an action multiple times and accumulates multiple data in the storage device 102 to create a mini-batch. Then, the processing circuit 101 updates the Q value using the mini-batch. For example, in the reinforcement learning of this embodiment, the processing circuit 101 updates the Q value every time it selects an action a, executes the action a, and calculates the reward r five times.

[0046] Next, in the process of step S160, the processing circuit 101 determines whether or not a termination condition is satisfied. The termination condition is a logical OR condition of the engine rotation speed NE becoming equal to or higher than a preset rotation speed NEx and the time elapsed since the start of cranking exceeding a preset time. The preset time is a threshold value for determining that the start of the engine 33 has failed because cranking has been too long. For example, the preset time is set to several seconds.

[0047] In the process of step S160, if the processing circuit 101 determines that the termination condition is not satisfied (step S160: NO), the processing circuit 101 returns the process to step S110. That is, the processing circuit 101 repeatedly executes the processes from step S110 to step S150 until the termination condition is satisfied, and continues to update the Q table by repeatedly selecting the action a, calculating the reward r, and updating the Q value.

[0048] In the process of step S160, if the processing circuit 101 determines that the end condition is satisfied (step S160: YES), the processing circuit 101 advances the process to step S170. In the process of step S170, the processing circuit 101 ends cranking. Then, in the process of the next step S180, the processing circuit 101 increments the number of episodes by one.

[0049] Next, in the process of step S190, the processing circuit 101 determines whether the number of episodes is equal to or greater than a threshold. The threshold is a threshold for determining completion of learning. The magnitude of the threshold is a predefined hyperparameter such that learning is completed when the number of episodes is equal to or greater than the threshold. In this embodiment, the threshold is, for example, "1000."

[0050] In the process of step S190, if the processing circuit 101 determines that the number of episodes is less than the threshold value (step S190: NO), the processing circuit 101 returns the process to step S100. For example, after the engine 33 has been operating for 15 seconds, the learning system 100 stops the operation of the engine 33 to end the trial. Then, five seconds later, the learning system 100 executes the process of step S100 to start the next trial. If the elapsed time since the start of cranking exceeds a predetermined time before the engine 33 operates independently and cranking ends, the learning system 100 ends the trial as it is. Then, five seconds later, the learning system 100 executes the process of step S100 to start the next trial.

[0051] If the processing circuit 101 determines in the process of step S190 that the number of episodes is equal to or greater than the threshold value after repeated trials (step S190: YES), the processing circuit 101 advances the process to step S195. In this case, the optimization of the Q table is completed. Therefore, in the process of step S195, the processing circuit 101 saves the learned Q table in the storage device 102. After saving the learned Q table in the storage device 102 in this manner, the processing circuit 101 ends this series of processes related to reinforcement learning.

[0052] The learned Q table data thus stored in the storage device 102 of the learning system 100 is stored in the storage device 25 of the motor control unit 23 of the vehicle 10. This enables the vehicle 10 to quickly start the engine 33 while suppressing vibrations and noise.

[0053] <Flow of processing executed by the motor control unit 23> The motor control unit 23, which has a storage device 25 in which the learned Q table optimized by reinforcement learning as described above is stored, executes a series of processes shown in FIG. 5 when starting the engine 33 to crank the engine 33.

[0054] As shown in Fig. 5, when this series of processes starts, the processing circuit 24 of the motor control unit 23 executes the process of step S200. In the process of step S200, the processing circuit 24 acquires the state s in the same manner as the process of step S110 described with reference to Fig. 4. That is, the processing circuit 24 acquires a state variable.

[0055] Next, in the process of step S210, the processing circuit 24 refers to the learned Q table stored in the storage device 25, selects the action a with the largest Q value based on the state variables, and determines the action a. After determining the action a in this way, the processing circuit 24 advances the process to step S220.

[0056] In the next step S220, the processing circuit 24 executes the action a by outputting a torque command value determined based on the selected action a, thereby controlling the first motor generator 31. Then, the processing circuit 24 temporarily ends this series of processes.

[0057] The motor control unit 23 repeatedly executes this series of processes until the engine rotation speed NE reaches the default rotation speed NEx. As a result, the motor control unit 23 repeatedly controls the first motor generator 31 by selecting the action a based on the state variables with reference to the learned Q table. In this way, the motor control unit 23 cranks the engine 33 using the learned Q table. The motor control unit 23 determines the torque command value for the first motor generator 31 by selecting the action a with the largest Q value.

[0058] <Action of this embodiment> In the reinforcement learning method of this embodiment, the Q table is optimized by reinforcement learning that repeatedly executes trials to start the engine 33. In each trial, the learning system 100 executes a step of calculating a first reward based on sound pressure and acceleration in step S140. In each trial, the learning system 100 that executes this reinforcement learning method executes a step of calculating a second reward in step S140 such that the longer it takes to complete the start of the engine 33, the smaller the profit. Then, the learning system 100 executes a step of updating the Q table so that an action a that increases the profit is selected through the process of step S150.

[0059] The above reinforcement learning method calculates the second reward so that the longer the time from the start of cranking to the completion of starting the engine 33, the smaller the profit. Therefore, the Q table updated by the above reinforcement learning method is optimized so that the action a that shortens the time from the start of cranking to the completion of starting the engine 33 is selected. Furthermore, the above reinforcement learning method optimizes the Q table by reflecting noise and vibration information in the calculation of the first reward.

[0060] <Effects of this embodiment> (1) The above-described reinforcement learning method can optimize the Q table so that the engine 33 can be started quickly while suppressing vibration and noise.

[0061] (2) When the logical OR condition that the sound pressure is greater than or equal to a threshold value and the amount of change in sound pressure per unit time is greater than or equal to a predetermined amount is met, the learning system 100 calculates the first reward so that the revenue is smaller than when the logical OR condition is not met.

[0062] Even if the sound pressure is below the threshold, if the sound pressure suddenly increases, people are likely to feel that noise has occurred. The above reinforcement learning method calculates the first reward so that the profit is smaller even when the change in sound pressure is equal to or greater than the predetermined amount than when the logical sum condition is not satisfied. Therefore, the Q table updated by the above reinforcement learning method is optimized so that the sound pressure does not exceed the threshold and does not increase suddenly. That is, the above reinforcement learning method can optimize the Q table so that the engine 33 can be started quickly while suppressing noise.

[0063] (3) The learning system 100 calculates the first reward so that the profit decreases as the acceleration increases. The above-described reinforcement learning method can optimize the Q table so that the engine 33 can be started quickly while suppressing vibration.

[0064] (4) The motor control unit 23 includes a processing circuit 24 and a storage device 25. The storage device 25 of the motor control unit 23 stores a learned Q table updated by the above-mentioned reinforcement learning method.

[0065] 5, the processing circuit 24 determines the torque command value by selecting the action a that maximizes the Q value based on state variables including the engine speed NE and the most recent torque command value, with reference to the learned Q table stored in the storage device 25. Then, the processing circuit 24 cranks the engine 33 by driving the first motor generator 31 based on the determined torque command value.

[0066] The motor control unit 23 selects the action a by using the learned Q table optimized by the above learning method. Therefore, the motor control unit 23 can start the engine 33 quickly while suppressing vibration and noise.

[0067] <Example of change> This embodiment can be modified as follows: This embodiment and the following modifications can be combined with each other to the extent that there is no technical contradiction.

[0068] The engine control unit 22 selects one torque command value from among the torque command values ​​set in six stages as the action a for selecting to determine the torque command value, and determines the torque command value.

[0069] In contrast, the above-mentioned reinforcement learning method can also be applied to optimizing the Q table of the motor control unit 23, which selects one from a plurality of options for the amount of change in the torque command value as action a to be selected to determine the torque command value.

[0070] In this case, the reinforcement learning method further executes, for example, a step of causing the learning system 100 to calculate a third reward when the torque command value exceeds a predetermined range so that the profit is smaller than when the torque command value does not exceed the predetermined range. In the reinforcement learning method in this case, for example, as shown in FIG. 6, a first threshold tq_1 and a second threshold tq_2 are set as thresholds for the torque command value. Then, the learning system 100 calculates a negative reward r as the third reward when the torque command value determined by referring to the Q table exceeds a range of "0" or more and the second threshold tq_2 or less. Furthermore, when the torque command value is greater than the first threshold tq_1 even if it is within a range of "0" or more and the second threshold tq_2 or less, the learning system 100 calculates a negative value with an absolute value smaller than the third reward calculated when the torque command value exceeds the above range as the third reward. When the torque command value is within a range of "0" or more and the first threshold tq_1 or less, the learning system 100 sets the third reward to "0".

[0071] If the torque command value is set too high during cranking, the engine speed NE will rev up too much immediately after starting ignition control, resulting in increased fuel consumption. The first threshold value tq_1 is a torque command value that serves as an upper limit for suppressing an increase in fuel consumption when starting the engine 33. The first threshold value tq_1 is a value that is set based on the results of experiments conducted in advance. The second threshold value tq_2 is an upper limit value of the MG torque that can be realized by the first motor generator 31.

[0072] The above-described reinforcement learning method can optimize the Q table so as to prevent the torque command value from exceeding a preset range. Therefore, the learning system 100 can optimize the Q table so as to prevent the engine speed NE from increasing, which would increase fuel consumption. The learning system 100 can optimize the Q table so as to prevent the torque command value from being calculated as being unrealizable. In addition, the reinforcement learning method may be a method in which the first threshold value tq_1 is not set, and the learning system 100 is caused to calculate a negative third reward only when the torque command value exceeds a preset range of "0" or more and a second threshold value tq_2 or less.

[0073] The method of calculating the first reward may be changed as appropriate. For example, the reinforcement learning method may be a method that employs, as the step of calculating the first reward, a step of calculating a first reward of a positive value when a sound pressure equal to or greater than a threshold is not detected. The reinforcement learning method may be a method that employs, as the step of calculating the first reward, a step of calculating a first reward of a positive value when an acceleration equal to or greater than a threshold is not detected.

[0074] The reinforcement learning method may be a method employing a step of calculating the first reward based only on either the sound pressure or the acceleration as the step of calculating the first reward. In other words, the reinforcement learning method may be a method omitting the step of calculating the first reward based on the sound pressure. The reinforcement learning method may be a method omitting the step of calculating the first reward based on the acceleration.

[0075] The types and number of state variables can be changed as appropriate. For example, the reinforcement learning method may be a method in which the types of state variables are increased. In the above embodiment, an example was shown in which, once the first reward based on acceleration has been calculated in one trial, the calculation of the first reward based on acceleration is stopped thereafter. In contrast, the reinforcement learning method may be a method in which the trial is terminated at the point in time when the first reward based on acceleration has been calculated in one trial. In this case, at the point in time when the acceleration exceeds a threshold, a negative value with a large absolute value is calculated as the first reward, the Q value is updated, and the trial is terminated.

[0076] In the above embodiment, the learning system 100 calculates a constant negative value as the second reward every time the action a is selected and the action a is executed to output a torque command value to the first motor generator 31. However, the method of calculating the second reward so that the profit decreases as the time from the start of cranking to the completion of starting the engine 33 increases is not limited to this method. For example, the learning system 100 may calculate a negative value as the second reward with a larger absolute value as the deviation between the engine rotation speed NE and the target rotation speed NEt increases. Even with this method, the profit decreases as the time taken to complete the start of the engine 33 increases.

[0077] The measurement data of state variables, sound pressure, and acceleration do not have to be the values ​​collected by the sensors themselves. For example, data collected by the sensors may be preprocessed and used. Specifically, a moving average value of the collected data may be calculated to remove noise contained in the collected data, and the moving average value may be used. Furthermore, maximum and minimum values ​​over a certain period of time may be used.

[0078] In the above embodiment, an example of optimizing the Q-table used for controlling the first motor generator 31 when cranking the engine 33 has been shown. The above-described reinforcement learning method can also be applied to other motor controls. For example, it can be applied to optimizing the Q-table used for controlling a drive motor of an electric vehicle or a motor that drives an electric actuator. [Explanation of symbols]

[0079] 10...vehicle, 20...control device, 21...overall control unit, 22...engine control unit, 23...motor control unit, 24...processing circuit, 25...storage device, 30...hybrid system, 31...first motor generator, 32...second motor generator, 33...engine, 34...power split mechanism, 35...power control unit, 36...reduction mechanism, 40...driving wheel, 50...sound level meter, 51...acceleration sensor, 100...learning system, 101...processing circuit, 102...storage device

Claims

1. a reinforcement learning method for optimizing a Q table, which is used in a motor control unit that determines a torque command value for a motor by selecting an action that maximizes a Q value, and which specifies a correspondence relationship between a state variable including an engine rotation speed and the most recent torque command value for the motor, the action, and the Q value, by using the Q table to make a computer repeatedly execute a trial of cranking the engine by controlling the motor using the Q table to start the engine, The computer is caused to repeatedly execute the steps of: calculating a first reward as a reward in each trial based on a sound pressure detected by a sound level meter that detects noise emitted from a vehicle or an acceleration detected by an acceleration sensor that detects vibrations of the vehicle; calculating a second reward as the reward such that the profit decreases as the time from the start of cranking to the completion of starting the engine increases; and updating the Q table such that the action that increases the profit, which is the sum of the rewards in the trial, is selected. Reinforcement learning methods.

2. The computer calculates the first remuneration so that, when a logical sum condition is satisfied, the sound pressure is equal to or greater than a threshold value and the amount of change in the sound pressure per unit time is equal to or greater than a predetermined amount, the profit is smaller than when the logical sum condition is not satisfied. The reinforcement learning method according to claim 1 .

3. The computer calculates the first reward such that the profit decreases as the acceleration increases. The reinforcement learning method according to claim 1 .

4. a reinforcement learning method for optimizing a Q table used in a motor control unit, the method comprising the steps of: selecting, as the action to be selected for determining the torque command value, one option from a plurality of options which are options for an amount of change in the torque command value and have different magnitudes of change amounts set, by referring to the Q table; The computer further executes, as the step of calculating the reward, a step of calculating a third reward such that, when the torque command value exceeds a predetermined range, the profit is smaller than when the torque command value does not exceed the predetermined range. The reinforcement learning method according to claim 1 .

5. A processing circuit and a storage device are included. a step of causing a computer to repeatedly execute a trial of cranking an engine by controlling the motor using the Q table to start the engine by controlling the motor using the Q table to crank the engine; a step of causing the computer to repeatedly execute a step of calculating a first reward as a reward based on a sound pressure detected by a sound level meter that detects noise emitted from a vehicle or an acceleration detected by an acceleration sensor that detects vibrations of the vehicle; a step of calculating a second reward as the reward such that the longer the time from the start of cranking to the completion of starting the engine, the smaller the profit; and a step of updating the Q table such that the action that increases the profit, which is the sum of the rewards in the trial, is selected, and the Q table updated by the reinforcement learning method is stored in the storage device; The processing circuit determines the torque command value by referring to the Q table stored in the storage device and selecting the action that maximizes the Q value based on state variables including an engine rotation speed and the most recent torque command value to the motor; The processing circuit drives the motor based on the determined torque command value, thereby causing the motor to crank the engine. Motor control unit.

Citation Information

Patent Citations

  • Fuel injection control device for engine

    JP1997088670A

  • Starter

    JP2017129075A

  • Vehicle control data generation method, vehicle control device, vehicle control system, on-vehicle device and vehicle learning device

    JP2021067191A

  • Method of generating vehicle control data, vehicle control device, and vehicle control system

    US20210114596A1

  • Method and Device for Controlling Hybrid Vehicle

    US20230083915A1

Cited By

  • Reinforcement learning method

    JP2026001944A