An unmanned driving emergency obstacle avoidance method based on brain-like mechanism

Through the brain-like mechanism-oriented driverless emergency obstacle avoidance method, the brain's basal neural network and the signal processing mechanism of the thalamus and prefrontal cortex are used to construct an optimized pulse neural network, which solves the difficulty of decision-making in complex environments with traditional driverless technology. problem, achieving faster and more accurate response, adaptability and stability.

CN118683522BActive Publication Date: 2024-10-25NANJING UNIV OF INFORMATION SCI & TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411173784.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-10-25
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

Traditional autonomous driving technology faces challenges in making fast and accurate decisions in complex or dynamic environments. Deep reinforcement learning methods require a large amount of data and computing resources, resulting in insufficient real-time performance and energy efficiency.

Method used

Using a brain-like mechanism oriented driverless emergency obstacle avoidance method, based on the brain's basal neural network and the signal processing mechanism of the thalamus and prefrontal cortex, an optimized impulse neural network is constructed, which is carried out through the Itzhikevich neuron model and deep Q network. Training to acquire driverless emergency obstacle avoidance strategies and improve response speed and decision-making accuracy.

Benefits of technology

It improves the response speed and decision-making accuracy of unmanned vehicles in emergency situations, adapts to different driving environments, solves the real-time and energy efficiency issues in traditional deep learning methods, and improves it through the credit allocation strategy and reward signal pre-processing module to ensure learning stability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118683522B_ABST
    Figure CN118683522B_ABST
Patent Text Reader

Abstract

The present invention discloses an unmanned driving emergency obstacle avoidance method for brain-like mechanism, which belongs to the field of unmanned driving technology. The method includes: based on the lane scene, obtaining a state pulse sequence; inputting the state pulse sequence into a trained optimized pulse neural network to obtain an unmanned driving emergency obstacle avoidance strategy; wherein, the method for obtaining the trained optimized pulse neural network includes: based on the basal ganglia, constructing a pulse neural network using the Izhkevich neuron model; based on the orbitofrontal cortex signal response mechanism and the anterior cingulate cortex alert response mechanism, optimizing the pulse neural network to obtain an optimized pulse neural network; based on the deep Q network, training the optimized pulse neural network to obtain a trained optimized pulse neural network. The method can improve the reaction speed and decision-making accuracy of unmanned vehicles in emergency situations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an unmanned driving emergency obstacle avoidance method oriented to a brain-like mechanism, belonging to the technical field of unmanned driving. Background Art

[0002] In the field of driverless technology, driverless vehicles simulate human driving behavior by integrating multiple sensors, computing models, and control systems to achieve autonomous navigation and control. However, traditional driverless technology faces many challenges in making fast and accurate decisions in complex or dynamic environments. Although deep reinforcement learning, such as Deep Q-Network (DQN), shows potential in policy learning, it usually requires a large amount of data and computing resources, and has shortcomings in real-time and energy efficiency. Summary of the invention

[0003] The purpose of the present invention is to provide an unmanned driving emergency obstacle avoidance method based on brain-like mechanism, which can improve the reaction speed and decision-making accuracy of unmanned vehicles in emergency situations.

[0004] In order to achieve the above object, the present invention provides the following technical solutions:

[0005] In a first aspect, the present invention provides an unmanned driving emergency obstacle avoidance method based on a brain-like mechanism, comprising:

[0006] Based on the lane scenario, obtain the state pulse sequence;

[0007] Inputting the state pulse sequence into a trained optimized pulse neural network to obtain an unmanned driving emergency obstacle avoidance strategy;

[0008] Among them, the method for obtaining the trained optimized pulse neural network includes:

[0009] Based on the basal ganglia, a spiking neural network was constructed using the Izhkevich neuron model;

[0010] Based on the orbitofrontal cortex signal response mechanism and the anterior cingulate cortex vigilance response mechanism, the spiking neural network is optimized to obtain an optimized spiking neural network;

[0011] Based on the deep Q network, the optimized pulse neural network is trained to obtain a trained optimized pulse neural network.

[0012] In combination with the first aspect, further, based on the lane scenario, a state pulse sequence is obtained, including:

[0013] Collect event-driven data based on lane scenarios;

[0014] Preprocessing the event-driven data to obtain a binary image;

[0015] Based on the binarized image, a state pulse sequence is acquired.

[0016] In combination with the first aspect, further, the event-driven data is acquired by collecting the lane scene through a dynamic vision sensor.

[0017] In combination with the first aspect, further, based on the basal ganglia, a pulse neural network is constructed using the Izhkevich neuron model, including:

[0018] Based on the dorsal striatum structure in the basal ganglia, a performer network is constructed using the Izhkevich neuron model, wherein the performer network is used to: based on the Hebbian memory buffer, select an obstacle avoidance action according to the state pulse sequence, obtain an obstacle avoidance action reward, and output an unmanned driving emergency obstacle avoidance strategy according to the obstacle avoidance action;

[0019] Based on the ventral striatum structure in the basal ganglia, a judge network is constructed using the Izikevich neuron model, wherein the judge network is used to: output an obstacle avoidance action value function according to the obstacle avoidance action, and output a temporal difference error according to the obstacle avoidance action value function;

[0020] The performer network and the judge network form a spiking neural network;

[0021] The performer network optimizes the obstacle avoidance action selection according to the obstacle avoidance action value function.

[0022] In combination with the first aspect, further, based on the orbitofrontal cortex signal response mechanism and the anterior cingulate cortex vigilance response mechanism, the spiking neural network is optimized to obtain an optimized spiking neural network, including:

[0023] Based on the orbitofrontal cortex signal response mechanism, a reward signal preprocessing module is constructed, and the reward signal preprocessing module is used to: output a reward signal based on the obstacle avoidance action reward and the timing difference error, and output a vigilance value based on the reward signal;

[0024] Based on the vigilance response mechanism of the anterior cingulate cortex, an exploration module is constructed, wherein the exploration module is used to: output an exploration value according to the vigilance value;

[0025] The performer network, the judge network, the reward signal preprocessing module, and the exploration module constitute an optimized spiking neural network;

[0026] The performer network explores a new unmanned driving emergency obstacle avoidance strategy based on the exploration value.

[0027] In combination with the first aspect, further, based on the deep Q network, the optimized pulse neural network is trained to obtain the trained optimized pulse neural network, including:

[0028] Based on the pre-built simulated lane scenario, obtain the simulation state pulse sequence;

[0029] Input the simulated state pulse sequence into the deep Q network for training, select the simulated obstacle avoidance action based on the ε-greedy strategy, obtain the simulated obstacle avoidance action value function, and store the simulated state, simulated obstacle avoidance action, simulated obstacle avoidance action reward, next simulated state, and simulated distance between the vehicle and the obstacle in the experience buffer;

[0030] Replaying the experience buffer to obtain a replayed experience buffer;

[0031] Based on the replay experience buffer, a multi-head attention mechanism is used to perform scenario retrieval, obtain scenario recall state and scenario recall action, and store them in the working memory buffer;

[0032] Based on the Hebbian learning rule, the working memory buffer is updated, and the first k% of the episodic recall states and episodic recall actions in the updated working memory buffer are transferred to the Hebbian memory buffer;

[0033] Until the deep Q network reaches a preset training termination condition, the simulated vehicle action value function is input into the classification network to obtain a classification weight;

[0034] Normalizing the classification weights to obtain normalized weights;

[0035] The normalized weights are used as initialization weights of the optimized spiking neural network, and the optimized neural network is trained based on the Hebbian memory buffer to obtain a trained optimized spiking neural network.

[0036] In combination with the first aspect, further, based on the pre-built simulated lane scenario, a simulated state pulse sequence is obtained, including:

[0037] Based on the pre-built simulated lane scenario, collect simulated event-driven data;

[0038] Preprocessing the simulated event-driven data to obtain a binary simulated image;

[0039] Based on the binarized analog image, a simulation state pulse sequence is acquired.

[0040] In combination with the first aspect, further, using the normalized weight as the initialization weight of the optimized spiking neural network, training the optimized neural network based on the Hebbian memory buffer, and obtaining the trained optimized spiking neural network, including:

[0041] The normalized weights are used as the initialization weights of the optimized spiking neural network. Based on the Hebbian memory buffer, the performer network of the optimized spiking neural network is trained using the temporal difference error modulation pulse timing-dependent plasticity algorithm. The judge network of the optimized spiking neural network is trained using the reward modulation pulse timing-dependent plasticity algorithm to obtain a trained optimized spiking neural network.

[0042] In combination with the first aspect, further, when the performer network of the optimized pulse neural network is trained using the timing difference error modulation pulse timing dependent plasticity algorithm, and the judge network of the optimized pulse neural network is trained using the reward modulation pulse timing dependent plasticity algorithm, based on the excitatory thalamic cortical relay cell-inhibitory thalamic reticular nucleus cell signal regulation mechanism, credit is allocated to the timing difference error modulation pulse timing dependent plasticity algorithm and the reward modulation pulse timing dependent plasticity algorithm using credit allocation gain.

[0043] In combination with the first aspect, further, the preprocessing includes image reduction, image cropping, image frame accumulation processing and image binarization processing.

[0044] In a second aspect, the present invention provides an unmanned driving emergency obstacle avoidance device based on a brain-like mechanism, comprising:

[0045] A state pulse sequence acquisition module, wherein the state pulse sequence acquisition module is used to: acquire a state pulse sequence based on a lane scenario;

[0046] An unmanned driving emergency obstacle avoidance strategy acquisition module, the unmanned driving emergency obstacle avoidance strategy acquisition module is used to: input the state pulse sequence into the trained optimized pulse neural network to obtain the unmanned driving emergency obstacle avoidance strategy;

[0047] Among them, the method for obtaining the trained optimized pulse neural network includes:

[0048] Based on the basal ganglia, a spiking neural network was constructed using the Izhkevich neuron model;

[0049] Based on the orbitofrontal cortex signal response mechanism and the anterior cingulate cortex vigilance response mechanism, the spiking neural network is optimized to obtain an optimized spiking neural network;

[0050] Based on the deep Q network, the optimized pulse neural network is trained to obtain a trained optimized pulse neural network.

[0051] In a third aspect, the present invention provides a computer device, comprising:

[0052] Storage medium: used to store computer programs;

[0053] Processor: used to execute the computer program to implement the steps of the unmanned driving emergency obstacle avoidance method based on brain-like mechanism as described in any one of the first aspects.

[0054] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the unmanned driving emergency obstacle avoidance method for brain-like mechanisms as described in any one of the first aspects.

[0055] Fifthly, the present invention provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the unmanned driving emergency obstacle avoidance method for brain-like mechanisms as described in any one of the first aspects.

[0056] Compared with the prior art, the present invention has the following beneficial effects:

[0057] The unmanned driving emergency obstacle avoidance method for brain-like mechanism provided by the present invention is based on the signal processing mechanism of the basal neural network of the brain and the thalamus and prefrontal cortex, and an optimized pulse neural network is constructed. According to the input state pulse sequence, the unmanned driving emergency obstacle avoidance method for brain-like mechanism is obtained, which can adapt to different driving environments and improve the reaction speed and decision-making accuracy of unmanned vehicles in emergency situations. The Hepburn memory buffer is constructed to improve the learning speed and memory integration ability, so that the unmanned vehicle can quickly learn and respond from past experience. Based on the vigilance response mechanism of the anterior cingulate cortex, an exploration module is constructed, and a credit allocation strategy is designed to make the learning process more stable and efficient, effectively solving the credit allocation problem in traditional deep learning methods. Based on the signal response mechanism of the orbitofrontal cortex, a reward signal preprocessing module is constructed, which can improve the sensitivity to crisis situations and the accuracy of decision-making. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 It is a flow chart of an unmanned driving emergency obstacle avoidance method oriented to a brain-like mechanism provided by an embodiment of the present invention;

[0059] Figure 2 It is a schematic diagram of optimizing a pulse neural network based on deep Q network training provided by an embodiment of the present invention;

[0060] Figure 3 is a schematic diagram of a performer network structure provided by an embodiment of the present invention;

[0061] Figure 4 is a schematic diagram of the judge network structure provided by an embodiment of the present invention;

[0062] Figure 5 It is a schematic diagram of a Hebbian memory buffer provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0063] The technical solution of the present application is further described in detail below in conjunction with specific implementation methods.

[0064] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and should not be construed as limitations on the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments may be combined with each other.

[0065] Embodiment 1:

[0066] Figure 1 This is a flowchart of an unmanned driving emergency obstacle avoidance method for a brain-like mechanism provided by this embodiment. This flowchart only shows the logical sequence of the method of this embodiment. Under the premise of no conflict, different Figure 1 The steps shown or described are accomplished in the order shown.

[0067] The present embodiment provides an unmanned driving emergency obstacle avoidance method for brain-like mechanisms. The unmanned driving emergency obstacle avoidance method for brain-like mechanisms provided by the present embodiment can be applied to a terminal, and can be executed by an unmanned driving emergency obstacle avoidance device for brain-like mechanisms. The device can be implemented by software and / or hardware. The device can be integrated in a terminal, for example: any tablet computer or computer device with communication function.

[0068] Spiking Neural Network (SNN) simulates the spiking behavior of neurons in the human brain, has higher computational efficiency and energy efficiency, and has become a potential solution to the real-time and energy efficiency problems of existing driverless technology. The introduction of biologically inspired learning mechanisms, such as Temporal Difference Error-modulated Spike Timing-Dependent Plasticity (TD-STDP) and Reward-modulated Spike Timing-Dependent Plasticity (R-STDP), enables SNN to train more efficiently and adapt to complex environments.

[0069] There is currently no method that can enable unmanned driving systems to achieve rapid and efficient decision-making in emergency situations by drawing on the biological mechanisms of signal processing and learning in the brain, especially the structure and function of the basal ganglia, thalamus, and prefrontal cortex, to improve the system's reaction speed and decision-making accuracy.

[0070] See also Figure 1 The unmanned driving emergency obstacle avoidance method for brain-like mechanism provided in this embodiment specifically includes the following steps:

[0071] Step 1: Based on the lane scenario, obtain the state pulse sequence;

[0072] In this embodiment, based on the lane scenario, obtaining the state pulse sequence specifically includes the following steps:

[0073] Step 1: Collect event-driven data based on lane scenarios;

[0074] In this embodiment, event-driven data is acquired by a dynamic vision sensor (DVS) to collect lane scenes. The DVS generates sparse, event-based (with or without events), continuous frame images, which can represent changes in relative brightness in the lane scene.

[0075] Step 2: Preprocess the event-driven data to obtain a binary image;

[0076] In this embodiment, the preprocessing includes image reduction, image cropping, image frame accumulation processing and image binarization processing.

[0077] In order to reduce the computational complexity, the image resolution can be reduced. Specifically, the 128×128 frame image is divided into 4×4 regions, and the number of events in each region is calculated. The information of the divided continuous frame images is compressed into a 32×16 image and converted into a binary state.

[0078] The formula for image binarization is:

[0079]

[0080] in, Represents the binary state, represents the frame image matrix, Indicates no event. Indicates that there is an event. , Indicates the dimension of the frame image.

[0081] Step 3: Based on the binarized image, obtain the state pulse sequence.

[0082] In this embodiment, the binary image is encoded: , get the state pulse sequence set: ,in, Indicates The state pulse sequence is The specific pulse signal at the time.

[0083] Step 2: Input the state pulse sequence into the trained optimized pulse neural network to obtain the unmanned driving emergency obstacle avoidance strategy.

[0084] In this embodiment, obtaining the trained optimized spiking neural network specifically includes the following steps:

[0085] Step 1: Based on the basal ganglia, a spiking neural network is constructed using the Izhikevich neuron model;

[0086] In this embodiment, the Izikevich neuron model is used to model the firing behavior of basal ganglia neurons. In Location Membrane potential at , restore variables dynamic changes.

[0087] The modeling formula of Izhkevich neuron model is:

[0088]

[0089] in, Representing neurons In Location The total synaptic current received at Representing neurons In Location The external current received at , represents the parameters used to control the speed and recovery characteristics of the Izhkevich neuron model, Indicates the reset amount, Indicates the increase, represents the peak voltage, ,when achieve hour, Reset to ,and Increase The maximum voltage applied to the neuron is set to +30mv, which ensures that the neuron resets after reaching a certain voltage in the simulation.

[0090] The synaptic connection of the cell nucleus is one-to-one, and the voltage-dependent magnesium ion channel has an effect on the N-methyl-D-aspartate receptor (NMDA) current. NMDA is a very important receptor in the nervous system, involved in synaptic plasticity, learning and memory. Magnesium ions usually block the channel of the NMDA receptor, and only at a specific voltage will magnesium ions detach, allowing calcium ions and other ions to flow into the cell, thereby triggering a series of neural responses.

[0091] In this embodiment, based on the basal ganglia, the spiking neural network is constructed using the Izikevich neuron model, which specifically includes the following steps:

[0092] Step ①: Based on the dorsal striatum structure in the basal ganglia, the performer network is constructed using the Izhkevich neuron model. The performer network is used to: select obstacle avoidance actions based on the Hebbian memory buffer and the state pulse sequence, obtain obstacle avoidance action rewards, and output unmanned driving emergency obstacle avoidance strategies based on the obstacle avoidance actions;

[0093] Step ②: Based on the ventral striatum structure in the basal ganglia, the judge network is constructed using the Izhkevich neuron model. The judge network is used to: output the obstacle avoidance action value function according to the obstacle avoidance action, and output the temporal difference error according to the obstacle avoidance action value function;

[0094] In this embodiment, the performer network optimizes the obstacle avoidance action selection according to the obstacle avoidance action value function.

[0095] Step ③: The performer network and the judge network form a pulse neural network.

[0096] Step 2: Based on the signal response mechanism of the orbitofrontal cortex and the vigilance response mechanism of the anterior cingulate cortex, the spiking neural network is optimized to obtain an optimized spiking neural network;

[0097] In this embodiment, based on the orbitofrontal cortex signal response mechanism and the anterior cingulate cortex vigilance response mechanism, the spiking neural network is optimized, and obtaining the optimized spiking neural network specifically includes the following steps:

[0098] Step ①: Based on the orbitofrontal cortex signal response mechanism, a reward signal preprocessing module is constructed. The reward signal preprocessing module is used to: output a reward signal based on the obstacle avoidance action reward and the temporal difference error, and output a vigilance value based on the reward signal;

[0099] In the orbitofrontal cortex signal response mechanism, the medial orbitofrontal cortex tends to respond to positive reward signals, while the lateral orbitofrontal cortex tends to respond to negative reward signals.

[0100] When the time series differential error When , a positive reward signal is triggered , when the time series differential error When , a negative reward signal is triggered .

[0101] In this embodiment, the alert value The update formula is:

[0102]

[0103] in, The medial orbitofrontal cortex Response, The lateral orbitofrontal cortex Response.

[0104] Step ②: Based on the vigilance response mechanism of the anterior cingulate cortex, an exploration module is constructed. The exploration module is used to: output the exploration value according to the vigilance value;

[0105] In this embodiment, the exploration value The calculation formula is:

[0106]

[0107] in, represents the weight of the medial orbitofrontal cortex, represents the weights for the lateral orbitofrontal cortex.

[0108] In this embodiment, the performer network explores new unmanned driving emergency obstacle avoidance strategies based on the exploration value.

[0109] Step ③: The performer network, the judge network, the reward signal preprocessing module and the exploration module constitute an optimized pulse neural network.

[0110] Step 3: Based on the deep Q network, train the optimized pulse neural network to obtain the trained optimized pulse neural network.

[0111] In this embodiment, based on the deep Q network, the optimized spiking neural network is trained, and obtaining the trained optimized spiking neural network specifically includes the following steps:

[0112] Step ①: Based on the pre-built simulated lane scenario, obtain the simulation state pulse sequence;

[0113] In this embodiment, based on the pre-built simulated lane scene, obtaining the simulated state pulse sequence specifically includes the following steps:

[0114] Step i: Based on the pre-built simulated lane scenario, collect simulated event-driven data;

[0115] In this embodiment, the open source autonomous driving simulator CARLA is used to construct a simulated lane scenario, and three entry scenarios with different intrusion levels (normal intrusion, aggressive intrusion, and extremely aggressive intrusion) are set to evaluate the performance of the agent in a high-fidelity simulation environment. The response capability and driving performance of the unmanned driving system in different intrusion scenarios are comprehensively evaluated through indicators such as success rate, avoidance time, vehicle acceleration, and rear vehicle acceleration, thereby optimizing and improving the system's emergency obstacle avoidance capability.

[0116] Step II: preprocessing the simulated event-driven data to obtain a binary simulated image;

[0117] In this embodiment, the preprocessing includes image reduction, image cropping, image frame accumulation processing and image binarization processing. The method of preprocessing the simulated event-driven data to obtain a binarized simulated image in step ii is the same as the method of preprocessing the event-driven data to obtain a binarized image in step 2.

[0118] Step iii: Based on the binarized simulation image, obtain the simulation state pulse sequence.

[0119] In this embodiment, the method of obtaining the simulation state pulse sequence based on the binarized simulation image in step iii is the same as the method of obtaining the state pulse sequence based on the binarized image in step 3.

[0120] Step ②: Input the simulated state pulse sequence into the deep Q network for training, select the simulated obstacle avoidance action based on the ε-greedy strategy, obtain the simulated obstacle avoidance action value function, and store the simulated state, simulated obstacle avoidance action, simulated obstacle avoidance action reward, next simulated state, and simulated distance between the vehicle and the obstacle into the experience buffer;

[0121] In this embodiment, each time training is performed, the current simulation state , Current simulated obstacle avoidance action , Current simulated obstacle avoidance action reward , next simulation state , the simulated distance between the current vehicle and the obstacle Store into the experience buffer.

[0122] Each time training, simulate the obstacle avoidance action value function The update formula is:

[0123]

[0124] in, represents the first learning rate, represents the discount factor, Represents the simulated obstacle avoidance action that maximizes the simulated obstacle avoidance action value function.

[0125] Step 3: Replay the experience buffer to obtain the replay experience buffer;

[0126] In this embodiment, the sampled five-tuple in the replay experience buffer is ,After each training is completed, the reference time of the sampled five-tuple is calculated, that is, the average frequency of calling each stored event.

[0127] The calculation formula for reference time is:

[0128]

[0129] in, Indicates The reference time of the time slot, Indicates The time at which a time slot is added to the experience buffer, Indicates belonging to The attention weight of the time slot, Indicates the length of time.

[0130] Step ④: Based on the replay experience buffer, use the multi-head attention mechanism to perform context retrieval, obtain context recall state and context recall action and store them in the working memory buffer;

[0131] Step ⑤: Based on the Hebbian learning rule, the working memory buffer is updated, and the first k% of the episodic recall states and episodic recall actions in the updated working memory buffer are transferred to the Hebbian memory buffer;

[0132] In this embodiment, the top k% of episodic recall states and episodic recall actions with the largest reference time are transferred to the Hebbian memory buffer through memory integration:

[0133]

[0134] in, represents the change in association weight, , represents the learning rate for positive reward signals and negative reward signals, represents the maximum weight, , Represents factors related to time and working memory.

[0135] Step ⑥: Until the deep Q network reaches the preset training termination condition, the simulated vehicle action value function is input into the classification network to obtain the classification weight;

[0136] In this embodiment, the preset training termination condition is: the performance of the deep Q network reaches a preset threshold, that is, ,in, represents the performance of the deep Q network, Indicates the preset threshold.

[0137] Step 7: Normalize the classification weights to obtain normalized weights;

[0138] In this embodiment, the formula for normalization processing is:

[0139]

[0140] in, represents the normalized weight, Represents the classification weight.

[0141] Step ⑧: Use the normalized weights as the initialization weights of the optimized spiking neural network, train the optimized neural network based on the Hebbian memory buffer, and obtain the trained optimized spiking neural network.

[0142] In this embodiment, the normalized weights are used as the initialization weights of the optimized pulse neural network, and the optimized neural network is trained based on the Hebbian memory buffer to obtain the trained optimized pulse neural network. Specifically, the normalized weights are used as the initialization weights of the optimized pulse neural network, and based on the Hebbian memory buffer, the performer network of the optimized pulse neural network is trained using the timing difference error modulation pulse timing dependence plasticity algorithm, and the judge network of the optimized pulse neural network is trained using the reward modulation pulse timing dependence plasticity algorithm to obtain the trained optimized pulse neural network.

[0143] Among them, when the critic network of the optimized pulse neural network is trained by using the reward-modulated pulse timing-dependent plasticity algorithm, the weights of the critic network are updated by using the reward-modulated pulse timing-dependent plasticity algorithm.

[0144] Synaptic weight changes Defined as:

[0145]

[0146] in, represents the scaling factor of the magnitude constant of the increase in synaptic weight (i.e., long-term potentiation, LTP) when the presynaptic neuron fires earlier than the postsynaptic neuron. represents the proportional factor of the magnitude constant of the decrease in synaptic weight when the presynaptic neuron fires later than the postsynaptic neuron (i.e., long-term depression, LTD), It represents the time difference between the presynaptic neuron and the postsynaptic neuron. Specifically, it refers to the time interval between the presynaptic neuron firing a pulse signal and the postsynaptic neuron firing a pulse signal. represents the time constant associated with (LTD), which determines how quickly the inhibitory effect decays over time.

[0147]

[0148] in, Represents synaptic weight The time derivative, represents the reward signal, represents the qualification trace of the judge network, A variable used to accumulate and store information about the activity of pre- and post-synaptic neurons. The purpose of this variable is to affect changes in synaptic weights when a reward signal is applied.

[0149]

[0150] in, express The time derivative, express The time constant, Decided The decay rate over time, Representation and The relevant weight change function, Determines when the time difference between the pre- and post-synaptic neurons is When , the specific form and magnitude of the change in synaptic weight, Indicates the time point when the presynaptic (pre) or postsynaptic (post) neuron fires a pulse. Indicates the time point used to capture function of the pulse event.

[0151] In this embodiment, when the performer network of the optimized spiking neural network is trained using the timing difference error modulation pulse timing dependent plasticity algorithm, and when the judge network of the optimized spiking neural network is trained using the reward modulation pulse timing dependent plasticity algorithm, based on the excitatory thalamic cortical relay cell-inhibitory thalamic reticular nucleus cell signal regulation mechanism, the credit allocation gain is used to allocate credit to the timing difference error modulation pulse timing dependent plasticity algorithm and the reward modulation pulse timing dependent plasticity algorithm, so that the reward signal is accurately allocated to the specific action.

[0152] Credit allocation gain Defined as:

[0153]

[0154] in, represents the top-down input signal, i.e., the action signal output by the performer network, represents the activity level of the inhibitory thalamic reticular nucleus cell circuit, Represents the credit allocation gain adjustment parameter.

[0155] The critic network and the performer network are adjusted separately using the credit assignment gain.

[0156] For the critic network, the credit assignment gain is used to adjust the impact of the temporal difference error:

[0157]

[0158] in, represents the second learning rate, Represents variables related to pre- and post-synaptic neuronal activity, and is used to capture changes in spike timing dependency. This method can accurately identify and reward synapses and neurons that contribute positively to the final decision, enhancing the learning ability and adaptability of neural networks in complex environments.

[0159] For the performer network, the credit allocation gain is incorporated into the TDEM pulse timing-dependent plasticity algorithm:

[0160]

[0161] in, Represents the eligibility trace of the performer network, used to capture the history of pre- and post-synaptic neuronal activity.

[0162] In the trained optimized spiking neural network, the update formula of the obstacle avoidance action value function is:

[0163]

[0164] Timing Differential Error The calculation formula is:

[0165]

[0166] The state pulse sequence obtained based on the lane scene is input into the trained optimized pulse neural network, and the performer network outputs the action probability .

[0167] In the performer network, the average firing rate of excitatory neurons is:

[0168]

[0169] The average firing rate of an inhibitory neuron is:

[0170]

[0171] The action probability is calculated as:

[0172]

[0173] in, , express Moment The average firing rate of excitatory and inhibitory neurons corresponding to each action, , Represents the number of excitatory and inhibitory neurons. , Indicates The firing rate of neurons, the action probability It is calculated by the softmax function, where represents the temperature constant, Indicated in Always choose your action probability.

[0174] like Figure 2 As shown in Figure 1, the deep Q network (DQN) first interacts with the environment and stores experience through the ε-greedy strategy, and then uses these experiences to train the deep Q network. The target action value Q network is used to calculate the updated target, and then the loss function is constructed to perform a stochastic gradient descent step on the action network. When the performance of the deep Q network reaches a preset threshold, that is, After that, its strategy is transferred to an optimized spiking neural network (SNN). The generated weights are normalized and used to initialize the weights of the optimized spiking neural network. After training, the weights can be transferred to an optimized spiking neural network with an Izhkevich neuron model that matches the previous network architecture. Figure 2 middle, represents the exploration rate in the ε-greedy strategy, With probability , the algorithm will randomly choose an action, and With a probability of , the algorithm will select the action with the largest current Q value. represents the action space, that is, the set of all possible actions, represents the weight parameter of the Q network, represents the weight parameter of the target Q network, It represents the target value used to update the Q network, which is generally calculated by the Bellman equation. a1, a2, and a3 represent the output actions of the classification network.

[0175] like Figure 3As shown in the figure, the performer network of the optimized spiking neural network is constructed using the Izhkevich neuron model. The performer network contains all BG pathways involved in action selection and can simulate the activity of the neural nucleus during action selection. The performer network also considers the regulatory effect of the substantia nigra compacta (SNc) on the dopamine (DA) pathway. The direct pathway and the superdirect pathway are responsible for generating action a, and the indirect pathway is an inhibitor that inhibits the generation of erroneous actions. The Izhkevich neuron model is used to define the neuron groups such as D1, D2, GPe, STN, GPi / SNr by the Izhkevich neuron model modeling formula. Figure 3 In the figure, CTX denotes cerebral cortex, FSN denotes fast-spiking interneuron, D1 denotes D1-type central neuron, D2 denotes D2-type central neuron, SNc denotes substantia nigra pars compacta, Gpe denotes globus pallidus lateralis, STN denotes subthalamic nucleus, Gpi denotes globus pallidus medialis, SNr denotes substantia nigra pars reticulata, and Thalamus denotes thalamus.

[0176] In the direct pathway, excitatory input (e.g. from the cortex to a D1 neuron) will increase the membrane potential of the D1 neuron , through the external input current in the formula This will make it easier for D1 neurons to reach their firing threshold , thereby inhibiting GPi / SNr neurons and reducing inhibition of the thalamus.

[0177] In the indirect pathway, inhibitory input (e.g. from the cortex to D2 neurons) will decrease the membrane potential of the D2 neurons. , by adjusting the synaptic input current The indirect pathway also involves interactions between the GPe and STN, which modulate the input current and firing rate of these neurons to increase excitatory input to the GPi / SNr, thereby enhancing inhibition of the thalamus.

[0178] In the hyperdirect pathway, the cortex directly excites STN neurons, which in turn increases the input current to STN neurons. The excitatory input from STN neurons will directly enhance the inhibition of GPi / SNr on the thalamus, achieving rapid behavioral inhibition.

[0179] like Figure 4 As shown in the figure, by imitating the dorsal striatum structure in the basal ganglia, the performer network is constructed using the Izhkevich neuron model to calculate the action value function , inspired by the prefrontal cortex and basal ganglia, an exploration module was designed, in which Simulating the human brain's response at different levels of alertness, the sensitivity to positive and negative reinforcement signals is dynamically adjusted by adjusting the weights of the medial and lateral orbitofrontal cortices (OFC). Figure 4In the figure, MOFC represents cerebral cortex, LOFC represents fast-spiking interneurons, RE represents inhibitory thalamic reticular nucleus cells, TC represents excitatory thalamocortical relay cells, Thal represents thalamus, ACC represents anterior cingulate cortex, ERR represents anterior cingulate cortex error cells, COR represents anterior cingulate cortex correct cells, Striatum represents striatum, VGPE represents ventral globus pallidus lateralis, pD1 and pD2 represent probabilities associated with dopamine receptors D1 and D2 in the basal ganglia, and v represents state value, that is, the total reward expected from the current state. , Indicated in Positive rewards and negative rewards received at all times.

[0180] in It represents the intensity of the disturbance, which is calculated based on the reward prediction error and the exploration rate. The specific formula is as follows:

[0181]

[0182]

[0183] in, is the scaling factor of the baseline disturbance size, is the parameter of the adjustment function, which is used to control the decay speed of the disturbance. Reward prediction error (RPE), which represents the difference between the expected reward and the actual reward at the current time step. is the exploration rate, which indicates the agent's exploration tendency in the current state.

[0184] like Figure 5 As shown in Figure 1, the memory module itself consists of two parts: explicit episodic memory and Hebbian memory. At each time step, the outputs of these two parts are combined using an attention mechanism and then sent to the SNN controller and the DQN controller. The explicit memory is a slot-based memory that stores event keys and values. At the end of each episode, the normalized "reference time" of each slot is calculated, indicating how often each stored event is called on average by incoming queries. Once an episode is completed, the top k% of slots with the largest reference times are transferred to the Hebbian memory through a memory consolidation process. Figure 5 middle, Indicates the current state. Indicates the current state at the moment, that is, the state of the current system. Represents the past state extracted from the context retrieval, that is, the state related to the current state retrieved from the historical memory, Represents the immediate reward at the current moment, that is, the current system based on the state and actions The instant rewards you receive, Represents the past reward extracted from the context retrieval, that is, the past state The associated reward value, Indicates the expanded reward, which is an immediate reward and past rewards A weighted combination of factors is used to better assess the value of the current state.

[0185] Embodiment 2:

[0186] This embodiment provides an unmanned driving emergency obstacle avoidance device based on a brain-like mechanism, including:

[0187] The state pulse sequence acquisition module is used to: acquire a state pulse sequence based on a lane scenario;

[0188] The unmanned driving emergency obstacle avoidance strategy acquisition module is used to: input the state pulse sequence into the trained optimized pulse neural network to obtain the unmanned driving emergency obstacle avoidance strategy;

[0189] Among them, obtaining the trained optimized spiking neural network includes:

[0190] Based on the basal ganglia, a spiking neural network was constructed using the Izhkevich neuron model;

[0191] Based on the signal response mechanism of the orbitofrontal cortex and the vigilance response mechanism of the anterior cingulate cortex, the spiking neural network is optimized to obtain the optimized spiking neural network;

[0192] Based on the deep Q network, the optimized spiking neural network is trained to obtain the trained optimized spiking neural network.

[0193] The unmanned driving emergency obstacle avoidance device for brain-like mechanism provided in the embodiment of the present application can execute the unmanned driving emergency obstacle avoidance method for brain-like mechanism provided in Example 1 of the present application, and has the corresponding functional modules and beneficial effects of the execution method.

[0194] Embodiment 3:

[0195] This embodiment provides a computer device, including:

[0196] Storage medium: used to store computer programs;

[0197] Processor: used to execute computer programs to implement the steps of the unmanned driving emergency obstacle avoidance method based on brain-like mechanism in Example 1.

[0198] Embodiment 4:

[0199] This embodiment provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the unmanned driving emergency obstacle avoidance method for brain-like mechanisms in Embodiment 1 are implemented.

[0200] Embodiment 5:

[0201] This embodiment provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the unmanned driving emergency obstacle avoidance method for brain-like mechanisms in Example 1.

[0202] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0203] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0204] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0205] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0206] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An unmanned driving emergency obstacle avoidance method based on brain-like mechanism, characterized in that: include: Based on the lane scenario, obtain the state pulse sequence; Inputting the state pulse sequence into a trained optimized pulse neural network to obtain an unmanned driving emergency obstacle avoidance strategy; Among them, the method for obtaining the trained optimized pulse neural network includes: Based on the basal ganglia, a spiking neural network was constructed using the Izhkevich neuron model; Based on the orbitofrontal cortex signal response mechanism and the anterior cingulate cortex vigilance response mechanism, the spiking neural network is optimized to obtain an optimized spiking neural network; Based on the deep Q network, the optimized pulse neural network is trained to obtain a trained optimized pulse neural network.

2. The unmanned driving emergency obstacle avoidance method for brain-like mechanism according to claim 1 is characterized in that: Based on the lane scenario, obtain the state pulse sequence, including: Collect event-driven data based on lane scenarios; Preprocessing the event-driven data to obtain a binary image; Based on the binarized image, a state pulse sequence is acquired.

3. The unmanned driving emergency obstacle avoidance method for brain-like mechanism according to claim 2 is characterized in that: The event-driven data is acquired by collecting the lane scene through a dynamic vision sensor.

4. The unmanned driving emergency obstacle avoidance method for brain-like mechanism according to claim 1 is characterized in that: Based on the basal ganglia, the spiking neural network is constructed using the Izhkevich neuron model, including: Based on the dorsal striatum structure in the basal ganglia, a performer network is constructed using the Izhkevich neuron model, wherein the performer network is used to: based on the Hebbian memory buffer, select an obstacle avoidance action according to the state pulse sequence, obtain an obstacle avoidance action reward, and output an unmanned driving emergency obstacle avoidance strategy according to the obstacle avoidance action; Based on the ventral striatum structure in the basal ganglia, a judge network is constructed using the Izikevich neuron model, wherein the judge network is used to: output an obstacle avoidance action value function according to the obstacle avoidance action, and output a temporal difference error according to the obstacle avoidance action value function; The performer network and the judge network form a spiking neural network; The performer network optimizes the obstacle avoidance action selection according to the obstacle avoidance action value function.

5. The unmanned driving emergency obstacle avoidance method for brain-like mechanism according to claim 4 is characterized in that: Based on the orbitofrontal cortex signal response mechanism and the anterior cingulate cortex vigilance response mechanism, the spiking neural network is optimized to obtain an optimized spiking neural network, including: Based on the orbitofrontal cortex signal response mechanism, a reward signal preprocessing module is constructed, and the reward signal preprocessing module is used to: output a reward signal based on the obstacle avoidance action reward and the timing difference error, and output a vigilance value based on the reward signal; Based on the vigilance response mechanism of the anterior cingulate cortex, an exploration module is constructed, wherein the exploration module is used to: output an exploration value according to the vigilance value; The performer network, the judge network, the reward signal preprocessing module, and the exploration module constitute an optimized spiking neural network; The performer network explores a new unmanned driving emergency obstacle avoidance strategy based on the exploration value.

6. The unmanned driving emergency obstacle avoidance method for brain-like mechanism according to claim 1 is characterized in that: Based on the deep Q network, the optimized pulse neural network is trained to obtain the trained optimized pulse neural network, including: Based on the pre-built simulated lane scenario, obtain the simulated state pulse sequence; Input the simulated state pulse sequence into the deep Q network for training, select the simulated obstacle avoidance action based on the ε-greedy strategy, obtain the simulated obstacle avoidance action value function, and store the simulated state, simulated obstacle avoidance action, simulated obstacle avoidance action reward, next simulated state, and simulated distance between the vehicle and the obstacle in the experience buffer; Replaying the experience buffer to obtain a replayed experience buffer; Based on the replay experience buffer, a multi-head attention mechanism is used to perform scenario retrieval, obtain scenario recall state and scenario recall action, and store them in the working memory buffer; Based on the Hebbian learning rule, the working memory buffer is updated, and the first k% of the episodic recall states and episodic recall actions in the updated working memory buffer are transferred to the Hebbian memory buffer; Until the deep Q network reaches a preset training termination condition, the simulated obstacle avoidance action value function is input into the classification network to obtain the classification weight; Normalizing the classification weights to obtain normalized weights; The normalized weight is used as the initialization weight of the optimized spiking neural network, and the optimized spiking neural network is trained based on the Hebbian memory buffer to obtain a trained optimized spiking neural network.

7. The unmanned driving emergency obstacle avoidance method for brain-like mechanism according to claim 6 is characterized in that: Based on the pre-built simulated lane scenario, obtain the simulated state pulse sequence, including: Based on the pre-built simulated lane scenario, collect simulated event-driven data; Preprocessing the simulated event-driven data to obtain a binary simulated image; Based on the binarized analog image, a simulation state pulse sequence is acquired.

8. The unmanned driving emergency obstacle avoidance method for brain-like mechanism according to claim 6 is characterized in that: The method further comprises: using the normalized weight as the initialization weight of the optimized spiking neural network, training the optimized spiking neural network based on the Hebbian memory buffer, and obtaining a trained optimized spiking neural network, including: The normalized weights are used as the initialization weights of the optimized spiking neural network. Based on the Hebbian memory buffer, the performer network of the optimized spiking neural network is trained using the temporal difference error modulation pulse timing-dependent plasticity algorithm. The judge network of the optimized spiking neural network is trained using the reward modulation pulse timing-dependent plasticity algorithm to obtain a trained optimized spiking neural network.

9. The unmanned driving emergency obstacle avoidance method for brain-like mechanism according to claim 8 is characterized in that: When the performer network of the optimized spiking neural network is trained by using the timing difference error modulation pulse timing dependent plasticity algorithm, and when the judge network of the optimized spiking neural network is trained by using the reward modulation pulse timing dependent plasticity algorithm, credit is allocated to the timing difference error modulation pulse timing dependent plasticity algorithm and the reward modulation pulse timing dependent plasticity algorithm based on the excitatory thalamic cortical relay cell-inhibitory thalamic reticular nucleus cell signal regulation mechanism using credit allocation gain.

10. The unmanned driving emergency obstacle avoidance method for brain-like mechanism according to claim 2 or 7, characterized in that: The preprocessing includes image reduction, image cropping, image frame accumulation processing and image binarization processing.

Citation Information

Cited By

  • Basal ganglion-based spiking neural network decision model

    CN120124687A