Artificial neural network and its training method
Through the methods of competitive reward adjustment and weight normalization, the problems of connection saturation and stimulus response imbalance in RSTDP technology are solved, and better learning and navigation performance of neural networks in autonomous vehicle control are achieved.
Patent Information
- Application Number
- CN201980074720.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-10-29
- Filing Date
- 2019-10-23
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2039-10-23
AI Technical Summary
When training artificial neural networks, the existing reward-regulated pulse time-dependent plasticity (RSTDP) technology can easily lead to the saturation of certain connections, favoring frequent stimulation and suppressing infrequent stimulation, leading to poor performance in infrequent stimulation.
Competitive reward-regulated spike-time-dependent plasticity (cRSTDP) and weight normalization methods are employed to keep the sum of synaptic input and output weights constant by adjusting the connection weights between neurons, prevent saturation, and exploit zero-sum rewards Training methods that ensure the long-term average of rewards is zero and balance responses to common and uncommon stimuli.
Effectively prevent neuron connection weight saturation, balance the response advantages of common and uncommon stimuli, and improve the learning and control performance of artificial neural networks in various tasks, especially in the navigation and control of autonomous vehicles.
Smart Images

Figure CN113015982B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to and the benefit of U.S. Provisional Application No. 62 / 752,190, filed on October 29, 2018, the entire contents of which are incorporated herein by reference. Background Art
[0003] Artificial neural networks are increasingly used to perform complex tasks such as image recognition, computer vision, speech recognition, and medical diagnosis. Artificial neural networks are typically trained by presenting a set of examples that have been manually identified as positive training examples (e.g., examples of the type of images or sounds that the artificial neural network is intended to recognize or identify) or negative training examples (e.g., examples of the type of images or sounds that the artificial neural network is intended not to recognize or identify).
[0004] An artificial neural network includes a collection of nodes connected to each other via synapses, called artificial neurons. In addition, artificial neurons are usually clustered into layers, such as an input layer, an output layer, and one or more hidden layers between the input layer and the output layer, which can perform different types of transformations on their inputs. An artificial neural network can be a non-spiking neural network or a spiking neural network. In a spiking neural network, artificial neurons form pulses when they reach a certain potential, and then their potential is reset, according to, for example, the leaky integrate-and-fire (LIF) model.
[0005] In non-spiking artificial neural networks, the connections between neurons have weights that are adjusted as the artificial neural network learns, which increases or decreases the signal strength at the connection depending on whether the connection between these neurons produces the desired behavior of the network (e.g., the correct classification of images or sounds). Some artificial neural networks learn response patterns through reward modulated spike time dependent plasticity (RSTDP), which records the event that one neuron excites another neuron, and then strengthens or weakens the relevant synapses depending on the value of the reward signal received thereafter. Previous studies have developed neuromorphic networks that use RSTDP to assist character recognition with the help of a linear classifier applied to the output layer. Other systems have used RSTDP for navigation tasks. However, related art systems using RSTDP typically allow certain connections to increase in strength until they are saturated by reaching the limits set by their equations for individual synapses. In addition, some related art systems using RSTDP train the network by applying rewards that are conducive to strengthening the connections between neurons associated with frequent experiences. Therefore, these related art systems are biased towards frequent stimuli and suppress relatively infrequent stimuli, and thus these related art systems may not perform well when provided with these infrequent stimuli. Summary of the invention
[0006] The present disclosure relates to various methods of training an artificial neural network having a series of layers and at least one weight matrix encoding connection weights between neurons in successive layers of the series of layers. In one embodiment, the method includes receiving at least one input at an input layer in the series of layers, generating at least one output based on the at least one input at an output layer in the series of layers, generating a reward based on a comparison between the at least one output and a desired output, and modifying the connection weights based on the reward. The modification of the connection weights includes keeping the sum of the synaptic input weights to each neuron substantially constant and keeping the sum of the synaptic output weights from each neuron substantially constant.
[0007] The method may also include adjusting the synaptic input and output weights of each neuron according to Equation 1, where Equation 1 is: Among them, T target is the target sum of the synaptic input or output weights, T actual is the actual sum of the synaptic input or output weights, W n is the current weight, and W n-1 is the previous weight.
[0008] Adjustments of synaptic input and output weights may be performed at regular intervals.
[0009] The regular interval may be approximately (about) 50 ms or less.
[0010] The method may also include averaging the rewards over a run time of the artificial neural network to be substantially zero.
[0011] Averaging the rewards may include calculating a running average score of the rewards according to Equation 2, where Equation 2 is X n =(X n-1 *(1-α))+S n *α, where α is the adaptation rate, S n is the score for a given iteration.
[0012] Generating a reward may include calculating a reward according to Equation 3, where Equation 3 is R n =S n -X n .
[0013] The present disclosure also relates to various embodiments of the system. In one embodiment, the system includes a processor and a non-transitory computer-readable storage medium operably coupled to the processor. The non-transitory computer-readable storage medium has software instructions stored therein, which, when executed by the processor, cause the processor to process input parameters using an artificial neural network stored in the processor, generate at least one output from the artificial neural network based on the input parameters, generate a reward based on a comparison between the output and an expected output, and modify the connection weights between neurons in the artificial neural network based on the reward. The modification of the connection weights includes keeping the sum of the synaptic input weights to each neuron substantially constant, and keeping the sum of the synaptic output weights from each neuron substantially constant.
[0014] The system may also include a series of sensors configured to generate the input parameters.
[0015] The system may also include at least one vehicle component, wherein the processor is configured to control the at least one vehicle component based on the at least one output of the artificial neural network.
[0016] The software instructions, when executed by the processor, may also cause the processor to average the rewards over a period of time to substantially zero.
[0017] An artificial neural network may include an input layer and an output layer, and each neuron of the input layer may be directly connected to each neuron of the output layer.
[0018] An artificial neural network may include an input layer, at least one hidden layer, and an output layer.
[0019] The present disclosure also relates to various methods for controlling a vehicle component of a vehicle having a series of sensors and a processor in communication with the series of sensors. In one embodiment, the method includes receiving input parameters from the series of sensors, processing the input parameters using an artificial neural network stored in the processor, controlling the vehicle component based on output parameters calculated by the artificial neural network, determining a reward based on a comparison between a desired behavior of the vehicle and a behavior of the vehicle resulting from control of the vehicle component, and modifying connection weights between neurons in the artificial neural network based on the reward. The modification of the connection weights includes maintaining a sum of synaptic input weights to each neuron substantially constant, and maintaining a sum of synaptic output weights from each neuron substantially constant.
[0020] The vehicle may be an autonomous vehicle.
[0021] An autonomous vehicle may be an autonomous car or an autonomous aerial vehicle.
[0022] As control of the vehicle brings the vehicle closer to the target, a reward may be calculated.
[0023] The value of the reward may be calculated in proportion to the reduction in distance between the vehicle and the target after taking control of the vehicle.
[0024] This summary is provided to introduce some concepts that will be further described in the following detailed description. This summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. One or more of the described features can be combined with one or more other described features to provide a usable device. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] These and other features and advantages of the embodiments of the present disclosure will become more apparent by reference to the following detailed description when considered in conjunction with the accompanying drawings. In the accompanying drawings, similar reference numerals are used to represent similar features and components throughout the drawings. The drawings are not necessarily drawn to scale.
[0026] Figure 1 is a schematic diagram of an artificial neural network for controlling an autonomous vehicle according to one embodiment of the present disclosure;
[0027] Figure 2A and 2B An artificial neural network for controlling an autonomous car and an autonomous aircraft according to an embodiment of the present disclosure is respectively depicted;
[0028] Figures 3A-3C Delineate the dependence of reward-conditioned spike timing-dependent plasticity (RSTDP) on the spike timing of presynaptic and postsynaptic neurons and on the arrival of reward;
[0029] Figure 4 is a diagram depicting changes in synaptic weights between neurons of an artificial network according to one embodiment of the present invention; and
[0030] Figure 5 is a flow chart illustrating the tasks of training an artificial neural network and controlling a vehicle using the artificial neural network according to one embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] The present disclosure relates to various embodiments of artificial neural networks with competitive reward-regulated spike time-dependent plasticity (cRSTDP) and methods for training neural networks. The artificial neural networks of the present disclosure may be applicable to controlling autonomous vehicles, such as autonomous cars or autonomous aircraft (e.g., drones). The artificial neural networks and methods for training artificial neural networks according to various embodiments of the present disclosure utilize weight normalization, wherein, as the connection weights between neurons are adjusted based on the rewards applied during training, the sum of the weights at each neuron in the neural network is kept constant or substantially constant (e.g., the total strength of the synaptic inputs to each neuron is kept constant or substantially constant, and the total strength of the synaptic outputs from each neuron is kept constant or substantially constant). Weight normalization creates competition between neurons for limited potential synaptic strengths, and thereby prevents or protects neurons from having excessive input or output strengths (e.g., weight normalization prevents the connection weights between neurons from saturation). In addition, the artificial neural networks and methods for training artificial neural networks according to various embodiments of the present disclosure utilize a zero-sum reward training method, wherein the long-term average of the reward value is zero or substantially zero. Zero-sum reward training of the neural network prevents or protects more frequently presented stimulus-response pairs from having a competitive advantage over less frequently presented stimulus-response pairs (e.g., zero-sum reward training of the neural network allows the neural network to learn from both rare and common experiences).
[0032] Figure 1An artificial neural network 100 is depicted according to one embodiment of the present disclosure, which is implemented into a control system of an autonomous or semi-autonomous vehicle, such as an autonomous car or an autonomous aircraft. The artificial neural network 100 may be stored on a non-transitory computer-readable storage medium (e.g., a computer memory), which when executed by a processor causes the artificial neural network 100 to learn to control an autonomous or semi-autonomous vehicle, such as navigating the vehicle toward a series of waypoints based on a reward system that strengthens the connection weights between neurons in the artificial network 100 when the firing of those neurons results in a successful outcome (e.g., moving the vehicle closer to one of the waypoints).
[0033] The term "processor" as used herein includes any combination of hardware, firmware, and software used to process data or digital signals. The hardware of the processor may include, for example, an application-specific integrated circuit (ASIC), a general or dedicated central processing unit (CPU), a digital signal processor (DSP), a graphics processing unit (GPU), and a programmable logic device such as a field programmable gate array (FPGA). In a processor, as used herein, each function is performed by configuring it as hardware (i.e., hard-wired) to perform the function, or by configuring it to execute instructions stored in a non-temporary storage medium. More general hardware, such as a CPU. The processor may be manufactured on a single printed wiring board (PWB) or distributed on several interconnected PWBs. The processor may contain other processors; for example, a processor may include two processors, an FPGA, and a CPU interconnected on a PWB.
[0034] exist Figure 1 In the illustrated embodiment, the artificial neural network 100 includes an input layer 101 including a series of neurons 102, one or more hidden layers 103 each including a series of neurons 104, and an output layer 105 including a series of neurons 106. Although in the illustrated embodiment, the artificial neural network 100 includes a single hidden layer 103, in one or more embodiments, the artificial neural network 100 may include any other suitable number of hidden layers, depending on, for example, the desired complexity of the information that the artificial neural network 100 is capable of learning. In addition, in one or more embodiments, an artificial neural network 100 may be provided without any hidden layer 103 (e.g., the input layer 101 may be directly connected to the output layer 105). In the illustrated embodiment, a series of connections 107 connect each neuron 102 in the input layer 101 to each neuron 104 in the hidden layer 103, and a series of connections 108 connect each neuron 104 in the hidden layer 103 to each neuron 106 in the output layer 105. In addition, each of the connections 107, 108 between neurons 102, 104, 106 in adjacent layers 101, 103, 105 has a connection weight.
[0035] The neurons 102 in the input layer 101 receive input from one or more sensors 109 (e.g., one or more sensors provided on a vehicle that the artificial neural network is configured to control). In one or more embodiments, the number of sensors 109 may depend, for example, on the amount of information that the artificial neural network 100 has available. The sensors 109 may be any suitable type or kind of sensors, depending on the type or kind of parameter that the sensors 109 are designed to detect and / or the type or kind of vehicle on or in which the sensors 109 are disposed. For example, in one or more embodiments, the sensors 109 may be target angle sensors configured to detect the relative angle of a target (e.g., a waypoint) relative to the orientation of the vehicle. In one or more embodiments, the sensors 109 may include a distance sensor (e.g., a laser distance sensor) configured to measure a distance between a target (e.g., a waypoint) and the vehicle. In one or more embodiments, the waypoint may be any suitable type or kind of waypoint, for example, a non-moving or substantially non-moving target in the direct driving point of the vehicle. In one or more embodiments, the number of neurons 102 in the input layer 101 depends on the number of sensors 109. In one or more embodiments, the input layer 101 includes at least one neuron 102 for each sensor 109. Although in the illustrated embodiment, the input layer 101 includes three neurons 102 corresponding to the three input sensors 109, in one or more embodiments, the input layer 101 may include any other suitable number of neurons 102, depending on the number of sensors 109 used in the vehicle.
[0036] The neurons 106 in the output layer 105 are configured to control one or more vehicle controls 110 on a vehicle, such as steering control of an autonomous or semi-autonomous automobile or rotor control of an autonomous or semi-autonomous aircraft. In one or more embodiments, the number of neurons 106 in the output layer 105 corresponds to the number of vehicle controls 110 that the artificial neural network 100 is configured to control. Thus, although in the illustrated embodiment the output layer 105 includes three neurons 106, in one or more embodiments the output layer 105 may include any other suitable number of neurons, depending on the number of vehicle controls 110 that the artificial neural network 100 is configured to control.
[0037] In the illustrated embodiment, the artificial neural network 100 is trained by applying a reward 111 (e.g., a feedback signal) to the artificial neural network 100. The reward 111 is configured to adjust the weights of the connections 107, 108 between the neurons 102, 104, 106 depending on the behavior of the vehicle compared to the expected behavior. When the expected behavior occurs, the reward 111 is applied to the artificial neural network 100 to adjust the weights of the connections 107, 108 between the neurons 102, 104, 106 so that the expected response to the input becomes more likely. The score value of the reward 111 may depend on any event that represents a desired event or goal. For example, in one or more embodiments, the reward 111 may be applied to the artificial neural network 100 whenever the vehicle (e.g., a car) gets closer to a goal (e.g., a waypoint). In one or more embodiments, the value of the reward 111 applied to the artificial neural network 100 may be proportional to the decrease in the distance between the vehicle and the goal (e.g., a waypoint). In one or more embodiments, the reward 111 is applied only when the vehicle successfully reaches the goal (e.g., a waypoint). In one or more embodiments, these different reward states result in different training times for the artificial neural network 100. For example, in one or more embodiments, applying a reward 111 each time the vehicle gets closer to a target trains the artificial neural network 100 faster than applying a reward 111 proportionally to a decrease in the distance between the vehicle and the target, and / or applying a reward 111 only when the vehicle successfully reaches the target.
[0038] In one or more embodiments, the reward 111 applied to train the artificial neural network 100 utilizes weight normalization, where for each neuron 102, 104, 106, the sum of the synaptic input weights to that neuron 102, 104, 106 is kept constant or substantially constant (e.g., the total strength of the synaptic inputs to each neuron 102, 104, 106 is kept at a constant or substantially constant value) as the weights of the connections 107, 108 between the neurons 102, 104, 106 are adjusted based on the applied reward 111. Thus, any time a presynaptic input weight to a neuron 102, 104, 106 changes, all other presynaptic input weights to that same neuron 102, 104, 106 are updated to maintain the same or substantially the same total weight contribution to that neuron 102, 104, 106. In one or more embodiments, the presynaptic weights that are adjusted to maintain a constant or substantially constant value may all be adjusted equally, or they may be adjusted in proportion to their previous presynaptic weights. Additionally, in one or more embodiments, weight normalization also maintains the sum of the synaptic output weights from each neuron 102, 104, 106 at a constant or substantially constant value (e.g., the total strength of the synaptic output from each neuron 102, 104, 106 is maintained at a constant or substantially constant value) as the weights of the connections 107, 108 between the neurons 102, 104, 106 are adjusted based on the applied reward 111. Thus, any time a synaptic output weight from a neuron 102, 104, 106 changes, all other synaptic output weights from that same neuron 102, 104, 106 are updated to maintain the same or substantially the same total weight contribution from that neuron 102, 104, 106. In one or more embodiments, the synaptic output weights (adjusted to maintain a constant or substantially constant value) may all be adjusted equally, or they may be adjusted proportionally to their previous synaptic output weights. Weight normalization creates competition for limited potential synaptic strengths between neurons 102, 104, 106, and thereby prevents or protects neurons 102, 104, 106 from having excessive input or output strengths (e.g., weight normalization prevents or protects the weights of connections 107, 108 between neurons 102, 104, 106 from saturation).
[0039] In addition, in one or more embodiments, training the artificial neural network 100 also includes adjusting the weight of each of the connections 107 and 108 to adjust the sum of the connection weights back to a preset target. The weights of the connections 107 and 108 can be adjusted at predetermined regular intervals, such as 50ms (or approximately or about 50ms) or less. In one or more embodiments, the intervals for adjusting the weights of the connections 107 and 108 can be any time less than the weight dynamics, which is configured to ensure that the weights of the connections 107 and 108 do not have enough time to significantly move out of their expected range. In one or more embodiments, the weights of each of the connections 107 and 108 can be adjusted according to the following equation 1:
[0040]
[0041] Where W n is the updated weight for a given connection 107, 108, and W n-1 is the previous weight of connection 107, 108, T target is the target sum of the synaptic input and output weights, and T actual is the actual sum of the synaptic input and output weights.
[0042] In one or more embodiments, training the artificial neural network 100 includes normalizing the long-term average of the reward 111 to zero or close to zero (e.g., approximately or about zero). The zero-sum reward 111 is configured to prevent or protect frequently presented stimulus-response pairs from having a competitive advantage over less frequent stimulus-response pairs (e.g., zero-sum reward 111 training of the neural network 100 allows the neural network 100 to learn from both rare experiences and common experiences). For example, in one or more embodiments in which the input to the input layer 101 is from a distance and target angle sensor 109 in a vehicle, the zero-sum reward 111 is configured to prevent or protect input from a distance sensor 109 that may be updated more frequently than the target angle sensor 109 from having a greater impact on the training of the artificial neural network 100 than the target angle sensor 109. In one or more embodiments, the running average score of the reward 111 is calculated according to the following equation 2:
[0043] X n =(X n-1 *(1-α))+S n *α (Equation 2)
[0044] Where α is the adaptation rate, S nis the score for a given iteration. The adaptation rate α can be chosen arbitrarily and it determines the time scale of the averaging. The adaptation rate α is how quickly the algorithm adjusts when the average score changes. Higher values of the adaptation rate α will make the algorithm focus more strongly on recent scores. The score S n It is an evaluation of how close the previous output is to the expected output. The reward 111 is then calculated according to the following equation 3:
[0045] R n =S n -X n (Equation 3)
[0046] Figure 2A An artificial neural network 200 for controlling an autonomous vehicle according to one embodiment of the present disclosure is described. In the illustrated embodiment, the artificial neural network 200 includes an input layer 201 having two input neurons 202', 202" and an output layer 203 having two output neurons 204', 204". The neurons 202', 202" in the input layer 201 are directly connected to the neurons 204', 204" in the output layer 203 through connections 205 in an all-to-all manner. The neurons 202', 202" in the input layer 201 receive signal inputs 206 from a target angle sensor 207 (e.g., a sensor configured to detect a relative angle of a target relative to the orientation of the autonomous vehicle). In the illustrated embodiment, the neurons 202', 202" in the input layer 201 receive input signals 206 that are proportional to the angle between the direction of motion of the vehicle and the target position. Neurons 204', 204" in the output layer 203 control left and right steering controls 208, 209 of the autonomous car, respectively (e.g., the output of one neuron 204' in the output layer 203 is configured to steer the car to the left, and the output of another neuron 204" in the output layer 203 is configured to steer the car to the right).
[0047] Neurons 202', 202" in the input layer 201 are initially connected to neurons 204', 204" in the output layer 203 by connections 205 with equal weights, and the artificial neural network 200 is trained by applying rewards 210 to adjust the weights of the connections 205 between neurons 202', 202" and 204', 204" based on the desired action of the car so that the desired response to the input 206 becomes more likely. In one or more embodiments, each time a neuron 204', 204" in the output layer 203 controls the steering controls 208, 209 and brings the car closer to the target, a reward 210 may be applied to adjust the weights of the connections between neurons 202', 202" and 204', 204" . In one or more embodiments, the value of the reward 210 applied to the artificial neural network 200 may be proportional to the decrease in the distance between the car and the target caused by the neuron 204', 204" in the output layer 203 controlling the steering controls 208, 209. In one or more embodiments, the reward 210 may be applied to adjust the weights of the connections 205 between the neurons 202', 202" and 204', 204" only when the car successfully reaches the goal. Additionally, the long-term average of the reward 210 may be normalized to zero, approximately or about zero, or close to zero (e.g., as described above, the artificial neural network 200 may be trained with zero and rewards 210).
[0048] In addition, in one or more embodiments, the training Figure 2A The reward 210 of the artificial neural network 200 shown in FIG. 2 may utilize weight normalization, as described above, wherein, for each neuron 202′, 202″, 204′, 204″, as the weights of the connections 205 between the neurons 202′, 202″, 204′, 204″ are adjusted based on the applied reward 210, the sum of the synaptic input weights to that neuron 202′, 202″, 204′, 204″ remains constant or substantially constant, and / or the sum of the synaptic output weights from that neuron 202′, 202″, 204′, 204″ remains constant or substantially constant. constant or substantially constant value, which creates competition for limited potential synaptic strength between neurons 202', 202", 204', 204", and thereby prevents or protects neurons 202', 202", 204', 204" from having excessive input or output strength (e.g., the total strength of synaptic inputs to each neuron 202', 202", 204', 204" remains at a constant or substantially constant value, and / or the total strength of synaptic outputs from each neuron 202', 202", 204', 204" remains at a constant or substantially constant value).
[0049] Figure 2BAn artificial neural network 300 for controlling an autonomous aircraft is depicted in accordance with one embodiment of the present disclosure. In the illustrated embodiment, the artificial neural network 300 includes an input layer 301 having four input neurons 302', 302", 302'", 302"" and an output layer 303 having four output neurons 304', 304", 304'", 304"', 304"". The neurons 302', 302", 302'", 302"" in the input layer 301 are directly connected to the neurons 304', 304", 304'", 304"" in the output layer 303 through connections 305 in a many-to-many manner. The neurons 302', 302", 302'", 302"', 302"" in the input layer 301 receive signal inputs 306 from sensors 307 (e.g., sensors 307 configured to detect the relative angle of the orientation of a target to the autonomous aircraft and the distance from the autonomous aircraft to the target). In the illustrated embodiment, neurons 302', 302", 302'", 302"" in the input layer 301 receive input signals 306 that are proportional to the angle between the direction of motion of the aircraft and the distance to the target location. Neurons 304', 304", 304'", 304"" in the output layer 303 control the tilt control 308, 309, 310, 311 of the autonomous aircraft (e.g., the outputs of neurons 304', 304", 304'", 304"" in the output layer 303 are configured to tilt the autonomous aircraft left, right, forward, and backward, respectively).
[0050] Neurons 302', 302", 302"', 302"" in the input layer 301 are initially connected to neurons 304', 304", 304"', 304"" in the output layer 303 with equal weights via connections 305, and the artificial neural network 300 is trained by applying rewards 312 to adjust the weights of the connections 305 between neurons 302'-302"" and 304'-304"" based on the desired action of the autonomous aircraft so that the desired response to the input 306 becomes more likely. In one or more embodiments, each time neurons 304'-304"" in the output layer 303 control the tilt controls 308, 309, 310, 311 and bring the autonomous aircraft closer to the target, rewards 312 may be applied to adjust the connection weights between neurons 302'-302"" and 304'-304"". In one or more embodiments, reward 312 may be applied to adjust the connection weights between neurons 302′-302″″ and 304′-304″″ only when the autonomous vehicle successfully reaches the target. Additionally, the long-term average of reward 312 may be normalized to zero, approximately or about zero, or close to zero (e.g., as described above, artificial neural network 300 may be trained with zero and reward 312).
[0051] In addition, in one or more embodiments, the training Figure 2B The reward 312 of the artificial neural network 300 shown in FIG. 3 may utilize weight normalization, as described above, wherein, for each neuron 302′-302″″ and 304′-304″″, as the connection weights between the neurons 302′-302″″ and 304′-304″″ are adjusted based on the applied reward 312, the sum of the synaptic input weights to the neurons 302′-302″″ and 304′-304″″ remains constant or substantially constant, and / or the sum of the synaptic output weights from the neurons 302′-302″″ and 304′-304″″ remains constant. 304'-304"" and 304'-304"" and thereby prevents or protects the neurons 302'-302"" and 304'-304"" from having excessive input or output strengths (e.g., the total strength of the synaptic inputs to each neuron 302'-302"" and 304'-304"" remains at a constant or substantially constant value, and / or the total strength of the synaptic outputs from each neuron 302'-302"" and 304'-304"" remains at a constant or substantially constant value).
[0052] Figures 3A-3C Depicted is the dependence of reward-conditioned spike timing-dependent plasticity (RSTDP) on presynaptic and postsynaptic neuron spike timing and the arrival of reward, in accordance with various embodiments of the present disclosure.
[0053] Figure 4 is a graph depicting the change in synaptic weights between neurons of an artificial network according to one embodiment of the present invention as a function of the number of iterations of the artificial neural network. An iteration refers to a single call to the artificial neural network. Figure 4 The pictures in this article are collected from Figure 2A The artificial neural network 200 shown is generated by data, which includes two input neurons 202', 202" and two output neurons 204', 204" connected in a many-to-many manner, and Figure 4 The weights in are for each of the four synaptic connections between neurons 202', 202", 204', 204". Figure 4 In the graph shown, iteration occurs every 0.3 seconds (or approximately or about every 0.3 seconds) when the vehicle is running in real time. In one or more embodiments, iteration can occur at any other suitable frequency, such as less than 0.3 seconds or greater than 0.3 seconds, depending on the desired speed at which the artificial neural network can make adjustments to the direction of the vehicle. Figure 4The graph in depicts the connection weights between neurons in an artificial neural network implemented in an autonomous aerial vehicle (e.g., a drone). The artificial neural network includes eight (8) neurons, including four input neurons configured to receive inputs from sensors indicating a cardinal direction (e.g., north, east, south, or west) of a target, and four output neurons configured to control the tilt direction of the autonomous aerial vehicle. The input neurons are directly connected to the output neurons in a many-to-many manner. In one or more embodiments, effective training of the artificial neural network can be completed in approximately or about 500 iterations, although significantly more iterations may be required for the connection weights to stabilize. Figure 4 In the illustrated embodiment, the connection weights stabilize after approximately or about 5,000 iterations.
[0054] Figure 4 The adaptability of the artificial neural network to changing environments and / or sensor damage is also described. After approximately or about 7,500 iterations of the artificial neural network, the left and right inputs (e.g., inputs from the left and right sensors) are swapped. Figure 4 As shown in , switching the left and right inputs initially caused a significant degradation in the performance of the artificial neural network in controlling the autonomous vehicle toward the target, but after approximately or about 10,000 iterations (2,500 iterations after the abrupt change in the left and right inputs at 7,500 iterations), the artificial neural network was able to relearn and control the vehicle toward the target, as shown by the connection weights being stable at approximately 10,000 iterations. Thus, in the illustrated embodiment, the relearning rate of the artificial neural network (i.e., the rate at which the artificial network learns after the abrupt swap of the left and right inputs) is significantly faster than the initial learning rate of the artificial neural network.
[0055] Figure 5 4 is a flow chart illustrating the tasks of a method 400 of training an artificial neural network and utilizing the artificial neural network to control at least one component of an autonomous or semi-autonomous vehicle (e.g., an autonomous or semi-autonomous car or aircraft) according to one or more embodiments of the present disclosure. Figure 5In the illustrated embodiment, method 400 includes a task 410 of receiving inputs from one or more sensors (e.g., distance sensors and / or angle sensors) at an input layer of an artificial neural network, the one or more sensors being configured to measure and / or determine the distance of a vehicle to a target (e.g., a waypoint) and / or the angle between the vehicle and the target. In the illustrated embodiment, method 400 also includes a task 420 of generating at least one output based on at least one input at an output layer of the artificial neural network. Method 400 also includes a task 430 of controlling one or more controls of the vehicle (e.g., left and right steering controls of a car or a tilt control of an aircraft) based on the outputs from neurons in the output layer. In the illustrated embodiment, method 400 also includes a task 440 of generating a reward based on a comparison between the desired behavior of the vehicle and the behavior of the vehicle resulting from controlling the controls of the vehicle.
[0056] exist Figure 5 In the illustrated embodiment, method 400 also includes a task 450 of modifying connection weights between neurons in the artificial neural network based on the reward calculated or determined in task 440. In one or more embodiments, task 450 of modifying connection weights includes maintaining a sum of synaptic input weights to each neuron substantially constant and maintaining a sum of synaptic output weights from each neuron substantially constant (e.g., task 450 of modifying connection weights utilizes weight normalization, wherein the sum of weights at each neuron in the neural network is maintained constant or substantially constant as the connection weights between neurons are adjusted based on the rewards applied during training). As described above, weight normalization creates competition for limited potential synaptic strengths between neurons and thereby prevents or protects neurons from having excessive input or output strengths (e.g., weight normalization prevents saturation of connection weights between neurons). Additionally, in one or more embodiments, task 450 of modifying connection weights may include adjusting the weights of synapses at set or predetermined regular intervals, such as, for example, 50 ms (or approximately or about 50 ms) or less. In one or more embodiments, the weights of the connections may be adjusted according to equation 1 above.
[0057] Continue to refer Figure 5 In the embodiment shown in , method 400 includes a task 460 of normalizing the long-term average of the reward calculated or determined in task 440 to zero or near zero (e.g., approximately or about zero). As described above, the zero-sum reward is configured to prevent or protect frequently presented stimulus-response pairs from having a competitive advantage over less frequent stimulus-response pairs (e.g., zero-sum reward training of a neural network allows the neural network to learn from both rare experiences and common experiences). In one or more embodiments, the task 460 of normalizing the long-term average of the reward to zero or near zero can be performed according to Equations 2 and 3 above.
[0058] As the artificial neural network learns to control the vehicle, the above tasks 410-460 are repeated (e.g., at regular intervals, such as every 0.3 seconds or approximately or about every 0.3 seconds). In one or more embodiments, effective training of the artificial neural network can be completed within about 500 iterations, but significantly more iterations may be required for connection weights to stabilize (e.g., in one or more embodiments, connection weights may stabilize after approximately or about 5,000 iterations).
[0059] It should be understood that the drawings are not necessarily to scale, and any one or more features of the embodiments may be combined in addition to or in place of any one or more features in another embodiment. Although relative terms such as "outside", "inside", "up", "down", "below", "above", "vertical", "horizontal" and similar terms are used herein to describe the spatial relationship between an element and another element, it should be understood that these terms are intended to cover the different orientations of various elements and components of the present invention in addition to the orientation shown in the figure. In addition, as used herein, the terms "substantially", "approximately", "generally" and similar terms are used as approximate terms rather than degree terms, and are intended to illustrate the inherent deviations of measurements or calculated values that will be recognized by those of ordinary skill in the art. In addition, the above-mentioned tasks may be performed in the order described or in any other suitable order. In addition, the above-mentioned method is not limited to the described tasks. On the contrary, for each embodiment, one or more of the above-mentioned tasks may not exist, and / or additional tasks may be performed. In addition, as used herein, when an element or layer is referred to as being "on", "connected to", "coupled to" or "adjacent to" another element or layer, it may be directly on another element or layer, directly connected to, directly coupled to or immediately adjacent to another element or layer, or one or more intermediate elements or layers may be present. In contrast, when an element or layer is referred to as being “directly on,” “directly connected to,” “directly coupled to,” or “immediately adjacent to” another element or layer, there are no intervening elements or layers present.
[0060] In addition, any numerical range cited herein is intended to include all subranges of the same numerical precision contained within the quoted range. For example, the range of "1.0 to 10.0" is intended to include all subranges between the minimum value 1.0 and the maximum value 10.0 (and including the minimum value 1.0 and the maximum value 10.0), that is, having a minimum value equal to or greater than 1.0 and a maximum value equal to or less than 10.0, such as 2.4 to 7.6. Any maximum numerical limit described herein is intended to include all lower numerical limits contained therein, and any minimum numerical limit described in this specification is intended to include all higher numerical limits contained therein. Therefore, the applicant reserves the right to modify this specification, including the claims, to explicitly list any subranges contained within the range explicitly listed herein.
[0061] Although the present invention has been described in detail with specific reference to exemplary embodiments of the present invention, the exemplary embodiments described herein are not exhaustive, nor are they intended to limit the scope of the present invention to the exact forms disclosed. Those skilled in the art and technology to which the present invention belongs will appreciate that changes and variations may be made to the described structures and methods of assembly and operation without intentionally departing from the principles, spirit and scope of the present invention as set forth in the appended claims and their equivalents.
Claims
1. A system for training an artificial neural network, comprising: processor; as well as a non-transitory computer-readable storage medium operably coupled to the processor, the non-transitory computer-readable storage medium having software instructions stored therein that, when executed by the processor, cause the processor to: processing input parameters using the artificial neural network stored in the processor; generating at least one output from the artificial neural network based on the input parameters; generating a reward based on a comparison between the at least one output and a desired output; average said rewards over the time period to zero; as well as modifying connection weights between neurons in the artificial neural network based on the reward, wherein modifying the connection weights includes keeping a sum of synaptic input weights to each neuron constant and keeping a sum of synaptic output weights from each neuron constant, The artificial neural network is used to control an autonomous vehicle, and the input parameters include an angle between a target and the orientation of the autonomous vehicle and a distance from the autonomous vehicle to the target. 2 . The system of claim 1 , further comprising a plurality of sensors configured to generate the input parameters.
3. The system of claim 2, further comprising at least one vehicle component, wherein: The processor is configured to control the at least one vehicle component based on the at least one output of the artificial neural network.
4. The system according to any one of claims 1 to 3, wherein the artificial neural network comprises an input layer and an output layer, and wherein each neuron of the input layer is directly connected to each neuron of the output layer.
5. The system according to any one of claims 1 to 3, wherein the artificial neural network comprises an input layer, at least one hidden layer and an output layer.
6. A method of training the artificial neural network of the system according to claim 1, the artificial neural network having a plurality of layers and at least one weight matrix, the at least one weight matrix encoding connection weights between neurons in consecutive layers of the plurality of layers, the method comprising: receiving input parameters at an input layer among the plurality of layers; generating at least one output based on the input parameters at an output layer among the plurality of layers; generating a reward based on a comparison between the at least one output and a desired output; averaging the rewards over the running time of the artificial neural network to zero; as well as modifying the connection weights based on the reward, wherein the modifying the connection weights includes maintaining a constant sum of synaptic input weights to each neuron and maintaining a constant sum of synaptic output weights from each neuron, The artificial neural network is used to control an autonomous vehicle, and the input parameters include an angle between a target and the orientation of the autonomous vehicle and a distance from the autonomous vehicle to the target.
7. The method of claim 6, further comprising adjusting the synaptic input and output weights of each neuron according to Equation 1, wherein Equation 1 is: in, T target is the target sum of the synaptic input or output weights, T actual is the actual sum of the synaptic input or output weights, W n is the current weight, and W n-1 is the previous weight.
8. The method according to claim 7, wherein: The adjustment of the synaptic input and output weights is performed at regular intervals.
9. The method according to claim 8, wherein: The regular interval is 50 ms or less.
10. The method according to any one of claims 6 to 9, wherein: Averaging the rewards includes calculating a moving average score of the rewards according to Equation 2, where Equation 2 is X n =(X n-1 *(1-α))+S n *α, where α is the adaptation rate, S n is the score for a given iteration.
11. The method according to claim 10, wherein: Generating the reward includes calculating the reward according to Equation 3, where Equation 3 is R n =S n -X n .
12. A method for controlling a vehicle component of a vehicle having a plurality of sensors and a system according to claim 1 in communication with the plurality of sensors, the method comprising: receiving input parameters from the plurality of sensors; processing the input parameters using an artificial neural network stored in the processor; controlling a vehicle component based on at least one output parameter calculated by the artificial neural network; determining a reward based on a comparison between a desired behavior of the vehicle and a behavior of the vehicle resulting from control of a component of the vehicle; averaging the rewards over the running time of the artificial neural network to zero; as well as modifying connection weights between neurons in the artificial neural network based on the reward, wherein modifying the connection weights includes keeping a sum of synaptic input weights to each neuron constant and keeping a sum of synaptic output weights from each neuron constant, The input parameters include an angle between the target and the orientation of the vehicle and a distance from the vehicle to the target.
13. The method according to claim 12, wherein: The vehicle is an autonomous vehicle.
14. The method according to claim 13, wherein: The autonomous vehicle is selected from the group consisting of an autonomous car and an autonomous aerial vehicle.
15. The method according to any one of claims 12 to 14, wherein: The reward is calculated when control of the vehicle brings the vehicle closer to the target.
16. The method according to any one of claims 12 to 14, wherein: The value of the reward is calculated in proportion to a decrease in the distance between the vehicle and the target after control of the vehicle is taken.
