System and method for training a neural network for controlling an aircraft - Patents.com
Training a neural network with a flight simulator to control aircraft addresses the inefficiencies of pilot data collection by providing a robust and cost-effective solution for simulating diverse scenarios.
Patent Information
- Application Number
- JP2020145354
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-08-29
- Filing Date
- 2020-08-31
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2040-08-31
AI Technical Summary
Collecting data from human pilots to train autonomous aircraft is time-consuming and costly, and it does not cover potential new scenarios that the aircraft may encounter.
A system and method for training a neural network using a flight simulator to generate control inputs, determine reward values based on state data, and update the neural network weights, allowing the network to control aircraft scenarios that pilots may not encounter.
The neural network trained using a flight simulator is more robust and requires fewer resources (time and money) compared to pilot data, as it can simulate a variety of scenarios, including those not normally encountered by pilots.
Smart Images

Figure 0007541876000021 
Figure 0007541876000022 
Figure 0007541876000023
Abstract
Description
[Technical field]
[0001] The present disclosure relates generally to training neural networks for controlling aircraft. [Background technology]
[0002] While advances in artificial intelligence and machine learning have made self-driving vehicles an achievable goal, aircraft continue to be piloted by pilots. Collecting data from human pilots to train autonomous aircraft can be time-consuming and costly. The collected training data, based on previous pilots' experience, will not cover potential new scenarios the aircraft may encounter. Summary of the Invention
[0003] In one particular implementation, an apparatus for training a neural network for controlling an aircraft includes a memory, a control input generator, and a neural network trainer. The memory is configured to store a first neural network. The control input generator is configured to provide the first control input to a flight simulator. The flight simulator is configured to generate first state data in response to the first control input and to provide the first state data as an input to the first neural network to generate candidate second control inputs. The control input generator is also configured to select a second control input for the flight simulator based on a random value. The second control input is selected from among the candidate second control inputs and a random offset control input. The random offset control input is based on a random offset added to the first control input. The control input generator is further configured to provide the second control input to the flight simulator. The flight simulator is configured to generate the second state data in response to the second control input. The neural network trainer is configured to update weights of the first neural network based at least in part on the first state data and the second state data.
[0004] In another particular implementation, a method of training a neural network for controlling an aircraft includes providing a first control input to a flight simulator. The flight simulator generates first state data in response to the first control input and provides the first state data as an input to a first neural network to generate candidate second control inputs. The method also includes selecting a second control input for the flight simulator based on a random value. The second control input is selected from among the candidate second control inputs and a random offset control input. The random offset control input is based on a random offset added to the first control input. The method includes providing the second control input to the flight simulator. The flight simulator generates the second state data in response to the second control input. The method also includes updating weights of the first neural network based at least in part on the first state data and the second state data.
[0005] In another particular implementation, a computer readable storage device includes instructions: The system stores instructions that, when executed by one or more processors, cause the one or more processors to perform or control operations for training a neural network for controlling an aircraft. The operations include providing a first control input to a flight simulator. The flight simulator generates first state data in response to the first control input and provides the first state data as an input to a first neural network to generate candidate second control inputs. The operations also include selecting a second control input for the flight simulator based on a random value. The second control input is selected from between the candidate second control inputs and a random offset control input. The random offset control input is based on a random offset applied to the first control input. The operations include providing the second control input to the flight simulator. The flight simulator generates the second state data in response to the second control input. The operations also include updating weights of the first neural network based at least in part on the first state data and the second state data.
[0006] The features, functions, and advantages described herein can be realized alone in various implementations or can be combined in yet other implementations, further details of which can be seen with reference to the following specification and drawings. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 illustrates a system configured to train a neural network for controlling an aircraft. [Diagram 2] FIG. 2 is a diagram of an example of a neural network of the system of FIG. 1. [Diagram 3] FIG. 1 illustrates a flowchart of an example method for training a neural network for controlling an aircraft. [Figure 4] 2 is a flowchart illustrating the life cycle of an aircraft, including the neural network of FIG. 1. [Diagram 5] FIG. 1 is a diagram of an aircraft configured to be controlled by a neural network. [Figure 6] FIG. 1 is a block diagram of a computing environment including computing devices configured to support aspects of computer-implemented methods and computer-executable program instructions (or codes) according to the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Aspects disclosed herein provide a system and method for training a neural network for controlling an aircraft. The neural network is trained by providing a control input to a flight simulator, determining a reward value based on state data generated by the flight simulator in response to the control input, and updating weights of the neural network based on the reward value. The state data is indicative of a state of a certain type of aircraft simulation in the flight simulator. The neural network is configured to generate control inputs based on the weights of the neural network in response to the state data. The trained neural network can be utilized to control a certain type of aircraft (e.g., a real aircraft). Training a neural network based on a flight simulator consumes fewer resources (e.g., time and money) compared to pilot data. A neural network trained using a flight simulator is also likely to be more robust because the flight simulator can be designed to simulate a variety of scenarios, including scenarios that pilots do not normally encounter.
[0009] The figures and the description in the following specification show specific and exemplary embodiments. Those skilled in the art will recognize that, even if not explicitly described or shown in the specification, they may devise various configurations that embody the principles described herein and are included in the scope of the claims that follow this specification. Furthermore, any examples described herein are intended to aid in the understanding of the principles of the disclosure and are not intended to be limiting. As a result, the disclosure is not limited to the specific embodiments or examples described below, but is limited by the claims and their equivalents.
[0010] In this specification, certain implementations are described with reference to the drawings. In this specification, common features are designated throughout the drawings by common reference numerals. In this specification, various terms are used only to describe certain implementations and are not intended to be limiting. For example, the singular forms "a," "an," and "the" are intended to include the plural, unless the context clearly indicates otherwise. Furthermore, some features described herein may be present in the singular in some implementations and in the plural in other implementations. For ease of reference in this specification, such features are generally introduced as "one or more" features, and hereafter, the singular feature will be referred to unless an aspect relating to a plurality of said features is described.
[0011] The terms "comprise, comprise, and comprising" are used interchangeably with "include, includes, including." Additionally, the term "wherein" is used interchangeably with the term "where." As used herein, "exemplary" refers to examples, implementations, and / or aspects, and should not be construed as limiting or indicating a preferred or preferred implementation. As used herein, ordinal terms (e.g., "first," "second," "third," etc.) modifying an element, such as a structure, component, or act, do not in themselves indicate any priority or ranking of the element relative to other elements, but merely distinguish the element from other elements having the same name (except for the use of the ordinal term). As used herein, the term "set" refers to a grouping of one or more elements, and the term "plurality" refers to a plurality of elements.
[0012] As used herein, "generating," "calculating," "using," "selecting," "accessing," and "determining" are interchangeable unless the context indicates otherwise. For example, "generating," "calculating," or "determining" a parameter (or signal) may refer to actively generating, calculating, or determining a parameter (or signal), or may refer to using, selecting, or accessing a parameter (or signal) that has already been generated, for example, by another component or device. As used herein, "coupled" may include "communicatively connected," "electrically coupled," or "physically coupled," and further (or alternatively) may include any combination thereof. Two devices (or components) may be directly or indirectly coupled (communicatively connected, electrically coupled, or physically coupled) via one or more other devices, components, wiring, buses, networks (e.g., wired networks, wireless networks, or combinations thereof), etc. Two devices (or components) that are electrically coupled can be included in the same device or different devices and can be connected via electronics, one or more connectors, or inductive coupling, as illustrative, non-limiting examples. In some implementations, two devices (or components) that are communicatively coupled, such as by electrical communication, can send and receive electrical signals (digital or analog signals) directly or indirectly via one or more wires, buses, networks, etc. As used herein, "directly coupled" is used to describe two devices that are coupled (e.g., communicatively connected, electrically coupled, or physically coupled) without any intervening components.
[0013] 1 illustrates an example of a system 100 configured to train a neural network for controlling an aircraft. The system 100 includes a flight simulator 146 that is communicatively connected to the target neural network 106, the master neural network 104, the memory 132, or a combination thereof. For example, the flight simulator 146 is configured to exchange data with the target neural network 106, the master neural network 104, the memory 132, or a combination thereof. The system 100 includes a reward calculator 142 that is connected to the flight simulator 146, the memory 132, or both. The system 100 includes a neural network trainer 140 that is connected to the memory 132, the reward calculator 142, the target neural network 106, the master neural network 104, or a combination thereof. The system 100 also includes a control input generator 144 that is connected to the memory 132, the master neural network 104, the offset calculator 148, the flight simulator 146, or a combination thereof.
[0014] In certain aspects, the neural network trainer 140 is configured to train the main neural network 104 based on a deep Q-Network (DQN) technique. For example, the neural network trainer 140 trains the main neural network 104 with a target neural network 106 that corresponds to a delayed copy of the main neural network 104. For example, the neural network trainer 140 is configured to update the weights of the target neural network 106 by copying the weights of the main neural network 104 in response to determining that the weights of the main neural network 104 have been updated at least one threshold number of times since a previous update of the weights of the target neural network 106.
[0015] It should be noted that in the following description, various functions performed by the system 100 of FIG. 1 are described as being performed by particular components or modules. However, this separation of components and modules is made for illustrative purposes only. In alternative embodiments, the functions described herein as being performed by a particular component or module are divided among multiple components or modules. Furthermore, in alternative embodiments, two or more components or modules of FIG. 1 may be combined into a single component or module. Each component or module illustrated in FIG. 1 may be implemented using hardware (e.g., a field-programmable gate array (FPGA) device, an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a controller, etc.), software (e.g., instructions executable by a processor), or any combination thereof.
[0016] In a particular aspect, the neural network trainer 140 is configured to use a reinforcement learning mechanism to train the main neural network 104. The reinforcement learning mechanism attempts to increase or maximize the reward value (calculated by the reward calculator 142). In a particular embodiment, the flight simulator 146 generates state data representative of the state of the aircraft simulation. The main neural network 104 generates the control input based on the state data. For example, the main neural network 104 uses the state data as an input to generate a plurality of predicted main reward values for a plurality of outputs. As used herein, a "predicted main reward value" refers to a reward value that results from the prediction of the main neural network 104 when a particular output of the plurality of outputs is provided as a control input to the flight simulator 146. Each of the plurality of outputs corresponds to a different control input. In one particular example, when the main neural network 104 is trained to control elevator settings of an aircraft, the multiple outputs correspond to various elevator settings (e.g., elevator position angles) that can be provided as inputs to the flight simulator 146. In this example, the predicted main reward value for a particular elevator setting indicates a reward value that the main neural network 104 predicts that the reward calculator 142 would generate if the particular elevator setting were provided as a control input to the flight simulator 146. In one particular implementation, the predicted main reward value 117 is a vector that includes a set of reward values, one predicted reward value for each possible control input. For example, when the control input corresponds to an elevator setting, the predicted main reward value 117 can indicate a predicted reward value for each allowed elevator setting. Alternatively, the predicted main reward value 117 can include a value that corresponds to a maximum predicted reward value of the vector.
[0017] Information identifying the control input associated with the vector of predicted primary reward values, the maximum predicted primary reward value, or the maximum predicted primary reward value of the multiple primary reward values is provided to a control input generator 144 to indicate candidate control inputs 107. The control input generator 144 selects or generates the control inputs that are provided to a flight simulator 146. The flight simulator 146 generates new state data based on the control inputs provided by the control input generator 144. A reward calculator 142 determines a reward value (e.g., a current reward value or a detected reward value) based on changes in the aircraft simulation state indicated by the state data (e.g., based on a comparison of the previous state data and the new state data).
[0018] The neural network trainer 140 updates the main neural network 104 based at least in part on the reward values. For example, the neural network trainer 140 determines weights 121 based on the reward values and updates the weighted node connections of the main neural network 104 based on the weights 121. In this manner, the main neural network 104 is trained to generate control inputs that result in "good" reward values (e.g., positive reward values) and to avoid generating control inputs that result in "bad" reward values (e.g., negative reward values).
[0019] In certain aspects, the neural network trainer 140 is configured to train the main neural network 104 based on the target neural network 106, which is a delayed copy of the main neural network 104. For example, the neural network trainer 140 updates the main neural network 104 based at least in part on the predicted target reward value 119 generated by the target neural network 106 for a particular simulation time step (t+1) and the predicted main reward value 127 generated by the main neural network 104 for a previous simulation time step (t). As used herein, a "predicted target reward value" refers to a reward value that would result from the prediction of the target neural network 106 if a particular control input is provided to the flight simulator 146. Like the main neural network 104, the target neural network 106 generates a number of predicted target reward values based on state data 105 from the flight simulator 146, where each target reward value 119 corresponds to a possible control input. In one particular implementation, predicted target reward value 119 is a vector that includes a set of reward values, one predicted reward value for each possible control input. For example, when the control input corresponds to an elevator setting, predicted target reward value 119 may indicate a predicted reward value for each allowed elevator setting. Alternatively, predicted target reward value 119 may include a single value that corresponds to the maximum predicted reward value of the vector.
[0020] Neural network trainer 140 updates main neural network 104 based on predicted main reward values 127 and predicted target reward values 119. In certain aspects, target neural network 106 is more stable than main neural network 104 because target neural network 106 is updated less frequently. Updating main neural network 104 based on predicted target reward values of target neural network 106 (e.g., a slow neural network in time) reduces the chance of main neural network 104 getting into an unstable feedback loop.
[0021] In one particular aspect, the control input generator 144 is configured to randomly select candidate control inputs 107 based on the output of the primary neural network 104 and the random control inputs. The control input generator 144 is configured to provide the selected control inputs to the flight simulator 146. Utilizing the random control inputs in addition to the control inputs generated by the primary neural network 104 allows for more robust training of the primary neural network 104. For example, training of the primary neural network 104 may include state data responsive to control inputs that are less likely to be generated by the primary neural network 104 (e.g., random control inputs).
[0022] In certain aspects, one or more components of system 100 (e.g., main neural network 104, target neural network 106, neural network trainer 140, reward calculator 142, control input generator 144, flight simulator 146, offset calculator 148, or combinations thereof) may be implemented, at least in part, by one or more processors executing one or more instructions. One or more components may be implemented as a single processor or multiple processors, such as a multi-core configuration, a multi-processor configuration, a distributed computing configuration, a cloud computing configuration, or any combination thereof. In some implementations, one or more portions of one or more components of system 100 are implemented by a processor using dedicated hardware, firmware, or a combination thereof.
[0023] During operation, the flight simulator 146 generates state data 105 indicative of a state of the aircraft simulation. In certain embodiments, the flight simulator 146 is configured to generate the state data 105 at a particular simulation time step. For example, the flight simulator 146 generates the state data 105 corresponding to a particular simulation time step (t+1). A simulation time step refers to the passage of a particular time interval (e.g., 5 minutes) for the aircraft simulation. In certain aspects, the flight simulation may be real-time (e.g., a 5 second simulated flight occurs every 5 seconds in real time). Alternatively, the flight simulation may occur at a different rate (e.g., a 120 minute simulated flight may occur over 120 seconds in real time). Furthermore, the simulated time steps may be equally spaced or non-equally spaced. For example, a first time interval may be utilized during a takeoff phase of the simulated flight and a second time interval may be utilized during a cruise phase of the simulated flight.
[0024] State data 105 is a vector that includes values that indicate the state of the aircraft during a particular simulation time step (t+1) of a flight simulation (e.g., at the beginning of, during, or at the end of the simulation time step (t+1)). In a particular aspect, state data 105 indicates the altitude, speed, pitch, elevator setting, altitude change, speed change, pitch change, or combinations thereof, of the aircraft during a particular simulation time step (t+1).
[0025] Flight simulator 146 stores state data 105 associated with a particular simulation time step (t+1) in memory 132 for reward value calculation associated with a subsequent simulation time step. Flight simulator 146 provides state data 105 to reward calculator 142, target neural network 106, primary neural network 104, or a combination thereof. Alternatively, reward calculator 142, target neural network 106, primary neural network 104, or a combination thereof obtains state data 105 from flight simulator 146 or memory 132.
[0026] The reward calculator 142 obtains state data 115 for a previous simulation time step (t) from the memory 132 in response to receiving state data 105 for a particular simulation time step (t+1) from the flight simulator 146. The reward calculator 142 determines a reward value 111 for a particular simulation time step (t+1) based on a comparison of the state data 105 for the particular simulation time step (t+1) to the state data 115 for the previous simulation time step (t). In a particular aspect, the reward calculator 142 determines the reward value 111 based on a reward function. The reward function may be based on a configuration setting, a default value, a user input, or a combination thereof. In a particular aspect, the reward calculator 142 determines the reward value 111 (R) during the takeoff simulation based on the following reward function: TIFF0007541876000001.tif24170
[0027] In one specific example, state data 115 indicates a first altitude and a first pitch of the aircraft simulation, and state data 105 indicates a second altitude and a second pitch of the aircraft simulation. Reward calculator 142 determines an altitude change based on a comparison of the first altitude to the second altitude (e.g., altitude change = second altitude - first altitude). Reward calculator 142 determines a pitch change based on a comparison of the first pitch to the second pitch (e.g., pitch change = second pitch - first pitch).
[0028] In certain aspects, reward calculator 142 determines that the pitch is converging in response to determining that the second pitch is less than the first threshold pitch (e.g., 12 degrees) and the pitch change is a positive value, or the second pitch is greater than the second threshold pitch (e.g., 13 degrees) and the pitch change is a negative value. Reward calculator 142 sets reward value 111 to a positive value (e.g., 1) in response to determining that the altitude change is greater than the first threshold altitude (e.g., 1 meter) and the second pitch is greater than or equal to the first threshold pitch (e.g., 12 degrees), the second pitch is less than or equal to the second threshold pitch (e.g., 13 degrees), or the pitch is converging. In this example, the positive value indicates that state data 105 is pointing to a "good" state for takeoff because the aircraft has gained altitude above the first threshold altitude and the pitch is converging or is already between the first pitch threshold and the second pitch threshold.
[0029] Alternatively, reward calculator 142 sets reward value 111 to a negative value (e.g., −1) in response to determining that the altitude change is less than a second threshold altitude (e.g., −1 meter). In this example, the negative value indicates that condition data 105 indicates “bad” conditions for takeoff because the aircraft has lost altitude above the second threshold altitude.
[0030] In certain aspects, the reward calculator 142 sets the reward value 111 to a neutral value (e.g., 0) in response to determining that the altitude change is greater than or equal to the second threshold altitude (e.g., -1 meter) and less than or equal to the first threshold altitude (e.g., 1 meter). In this example, the neutral value indicates a "neutral" condition for takeoff because the aircraft is not changing altitude significantly (e.g., between the first and second altitude thresholds). Alternatively, the reward calculator 142 sets the reward value 111 to a neutral value (e.g., 0.0) in response to determining that the altitude change is greater than the first threshold altitude (e.g., 1 meter), the second pitch is less than the first pitch threshold (e.g., 12) or greater than the second pitch threshold (e.g., 13), and the pitch has not converged. In this example, the neutral value indicates a "neutral" condition for takeoff. This is because the aircraft is gaining altitude but is pitching too low or too high to converge.
[0031] It should be understood that the reward functions for takeoff based on altitude and pitch are provided as illustrative, non-limiting examples. In other embodiments, reward calculator 142 is configured to determine reward values based on reward functions associated with various phases of flight (e.g., cruise, landing, turning, taxiing, parking, or combinations thereof). The reward functions may be based on various aircraft state data (e.g., pitch, yaw, roll, heading, altitude, fuel consumption, temperature sensor data, other types of sensor data, or combinations thereof).
[0032] The reward calculator 142 provides the reward value 111 to the neural network trainer 140. Alternatively, the neural network trainer 140 obtains the reward value 111 from the reward calculator 142 or from the memory 132. In response to receiving the reward value 111 for a particular simulation time step (t+1), the neural network trainer 140 obtains from the memory 132 a predicted primary reward value 127 for a previous simulation time step (t) and data indicative of the control inputs 113 provided to the flight simulator 146 at the previous simulated time step (t). For example, the state data 105 was generated based on the control inputs 113 of the previous simulation time step (t), and the primary neural network 104 previously generated the predicted primary reward value 127 for the candidate control inputs of the previous simulation time step (t) that are used to select the control inputs 113.
[0033] In one particular aspect, the neural network trainer 140 determines the weights 121 based on the predicted primary reward value 127 of the candidate control input for the preceding simulation time step (t) in response to determining that the control input 113 corresponds to the candidate control input generated by the primary neural network 104 for the preceding simulation time step (t). In one particular implementation, the neural network trainer 140 does not determine the weights 121 based on the predicted primary reward value 127 and does not update the primary neural network 104 in response to determining that the control input 113 corresponds to the random offset control input generated by the control input generator 144 for the preceding simulation time step (t). In an alternative implementation, the neural network trainer 140 obtains the predicted primary reward value 127 corresponding to the random offset control input (compared to the candidate control input) for the preceding simulation time step (t) in response to determining that the control input 113 corresponds to the random offset control input for the preceding simulation time step (t). The neural network trainer 140 determines the weights 121 based on the predicted primary reward values 127, as described herein.
[0034] The target neural network 106 generates a predicted target reward value 119 based on the state data 105 for a particular simulation step (t+1). In the example shown in FIG. 2, the neural network 220 includes a plurality of input nodes 202, a hidden layer including a plurality of hidden layer nodes 204, and a plurality of output nodes 206. In a particular embodiment, the input nodes 202 are fully connected to the hidden layer through a first plurality of weighted node connections. In a particular embodiment, the hidden layer is fully connected to the output nodes 206 through a second plurality of weighted node connections. In a particular embodiment, the hidden layer includes a first number (e.g., 40) of hidden layer nodes 204. The greater the number of hidden layer nodes 204, the more variable the neural network 220 can be. The fewer the number of hidden layer nodes 204, the faster the processing time to generate the value of the output node 206. Although FIG. 2 shows neural network 220 including one hidden layer, in other implementations, neural network 220 includes multiple hidden layers.
[0035] In certain aspects, the neural network 220 corresponds to the target neural network 106, the main neural network 104, or both of FIG. 1. In certain embodiments, each of the input nodes 202 is associated with a particular type of data (e.g., a particular value of the state data 105). For example, a first input node 202 is associated with pitch, a second input node 202 is associated with altitude, a third input node 202 is associated with speed, a fourth input node 202 is associated with elevator setting, a fifth input node 202 is associated with pitch change, a sixth input node is associated with altitude change, a seventh input node is associated with speed change, or a combination thereof. Although seven input nodes are provided as an illustrative example, it should be understood that in other examples, the input nodes 202 include fewer than seven input nodes or more than seven input nodes.
[0036] In certain aspects, normalized values are provided to one or more input nodes 202. For example, a normalized pitch value, a normalized altitude, and a normalized speed are provided to the first input node 202, the second input node 202, and the third input node 202, respectively. For example, valid pitch values are from a first pitch value (e.g., −60 degrees) to a second pitch value (e.g., 60 degrees). The pitch value (e.g., 30 degrees) is normalized (e.g., by the flight simulator 146, the neural network 220, or other components of the system 100) to generate a normalized pitch value (e.g., 0.5) in a range between the first normalized pitch value (e.g., −1) and the second normalized pitch value (e.g., 1). The normalized pitch value is provided to the first input node 202.
[0037] The neural network 220 (e.g., a neural network engine) determines the value of each hidden layer node 204 as a weighted sum of the values applied to the input nodes 202. The neural network 220 determines the output value of the output node 206 as a weighted sum of the values of the hidden layer nodes 204. For example, the neural network 220 determines the output value (e.g., a predicted reward value) of each output node 206 as a weighted sum of the values of the hidden layer nodes 204.
[0038] Each of the output nodes 206 corresponds to a particular control input for the flight simulator 146. In one particular embodiment, the neural network 220 is configured to generate a control input for controlling elevator settings of the aircraft simulation, the elevator settings having a range of values (e.g., control inputs) between a first elevator setting (e.g., -1) and a second elevator setting (e.g., 1). In this example, each of the output nodes 206 corresponds to a particular value in the range. For example, the neural network 220 includes a first output node, a second output node, a third output node, a fourth output node, and a fifth output node, which correspond to the first control input (e.g., -1), the second control input (e.g., -0.5), the third control input (e.g., 0), the fourth control input (e.g., 0.5), and the fifth control input (e.g., 1). 2, in other implementations, the neural network 220 includes fewer or more than five output nodes 206. In certain aspects, a greater number of output nodes 206 (e.g., 17 instead of 5) allows for more gradual changes and finer aircraft control than a smaller number of output nodes 206. However, a smaller number of output nodes 206 may allow for faster processing time to determine values for the output nodes 206.
[0039] In one particular aspect, the neural network 220 outputs a vector of predicted reward values or data identifying the output node 206 having the maximum predicted reward value among the predicted reward values generated by the neural network 220. For example, the output data may include or identify the predicted reward value 219, the control input associated with the output node 206, or both. In one particular aspect, the neural network 220 outputs output data (e.g., a vector) indicative of the control input and the corresponding predicted reward value.
[0040] In certain embodiments, target neural network 106 (e.g., target neural network engine) applies the pitch (e.g., normalized pitch), altitude (e.g., normalized altitude), speed (e.g., normalized speed), and elevator settings indicated by state data 105 to first input node 202, second input node 202, third input node 202, and fourth input node 202, respectively. In some implementations, target neural network 106 (e.g., target neural network engine) determines a pitch change based on a comparison of a first pitch indicated by state data 115 to the pitch indicated by state data 105, determines an altitude change based on a comparison of a first altitude indicated by state data 115 to the altitude indicated by state data 105, determines a speed change based on a change of a first speed indicated by state data 115 to the speed indicated by a state of state data 105, or determines the appropriate change based on a comparison of any combination thereof. In such an implementation, the target neural network 106 (e.g., a target neural network engine) applies the pitch change, altitude change, and speed change to the fifth input node 202, the sixth input node 202, and the seventh input node 202, respectively. The target neural network 106 generates an output value (e.g., a predicted reward value) at the output node 206. In a particular aspect, the predicted reward value 219 (e.g., the maximum predicted reward value among the predicted reward values) corresponds to the predicted target reward value 119 for a particular simulation time step (t+1).
[0041] 1 , the target neural network 106 provides the predicted target reward value 119 for a particular simulation time step (t+1) to the neural network trainer 140, or the neural network trainer 140 obtains the predicted target reward value 119 from the target neural network 106 or the memory 132. The neural network trainer 140 determines the weights 121 based on the predicted target reward value 119 for a particular simulation time step (t+1), the predicted primary reward value 127 for the preceding simulation time step (t), the reward value 111 for a particular simulation time step (t+1), or a combination thereof. In a particular aspect, the weights 121 are determined to reduce (e.g., minimize) the following loss (or cost) function: TIFF0007541876000002.tif11170However, TIFF0007541876000003.tif8170 is a file for training the main neural network 104 (e.g., weights This corresponds to the loss function for determining weights 121) represented by TIFF0007541876000004.tif7170. TIFF0007541876000005.tif8170 corresponds to the reward value 111 for a particular simulation time step (t+1). TIFF0007541876000006.tif8170 represents a function of a neural network (either the primary neural network 104 or the target neural network 106) with weights θ given a set of inputs S (e.g., state data) and the output values of the neural network denoted a (e.g., a control input or action). TIFF0007541876000007.tif8170 is generated by the target neural network 106 for a particular simulation time step (t+1) for the output a that has the maximum value (e.g., weights This corresponds to a predicted target reward value of 119 (represented in TIFF0007541876000008.tif7170). TIFF0007541876000009.tif7170 corresponds to the predicted primary reward value 127 generated by the primary neural network 104 for the previous simulation time step (t). TIFF0007541876000010.tif7170 corresponds to a discount value (e.g., 0.99). In certain aspects, the discount value is based on a configuration setting, a default value, a user input, or a combination thereof. In certain aspects, the loss function corresponds to the expected value of the squared difference between the predicted target reward value 119 for a particular simulation time step (t+1) and the predicted main reward value 127 for the preceding simulation time step (t).
[0042] In one particular embodiment, reducing (e.g., minimizing) the loss (or cost) function results in updating the main neural network 104 as shown in the following equation: TIFF0007541876000011.tif10170However, TIFF0007541876000012.tif8170 corresponds to the main neural network 104, TIFF0007541876000013.tif8170 corresponds to an updated version of the primal neural network 104 after adding weights 121, TIFF0007541876000014.tif6170 corresponds to the learning rate, TIFF0007541876000015.tif8170 corresponds to the predicted primary reward value 127 for the previous simulation time step (t). In certain aspects, the learning rate is based on a configuration setting, a default value, a user input, or a combination thereof. In certain aspects, the neural network trainer 140 uses the following formula: Determine TIFF0007541876000016.tif9170. That is, TIFF0007541876000017.tif11170However, TIFF0007541876000018.tif7170 corresponds to the reward value 111 for a particular simulation time step (t+1), TIFF0007541876000019.tif8170 corresponds to the predicted target reward value 119 for a particular simulation time step (t+1), TIFF0007541876000020.tif6170 corresponds to a discount value (e.g., 0.99). The neural network trainer 140 updates the main neural network 104 based on the weights 121. For example, when the main neural network 104 corresponds to the neural network 220 of FIG. 2, the neural network trainer 140 updates the weights of a first plurality of weighted connections between the input nodes 202 and the hidden layer nodes 204, the weights of a second plurality of weighted connections between the hidden layer nodes 204 and the output nodes 206, or a combination thereof.
[0043] In certain aspects, a simulation time step corresponds to an action cycle. Action cycle data associated with a particular simulation time step (t+1) includes state data 115, state data 105, reward values 111, control inputs 113, candidate control inputs associated with a previous simulation time step (t), predicted target reward values 119, predicted primary reward values 127, weights 121, or combinations thereof.
[0044] The neural network trainer 140 updates the main neural network 104 during a learning cycle. In a particular embodiment, the neural network trainer 140 updates the main neural network 104 based on action cycle data of one action cycle. For example, the neural network trainer 140 updates the main neural network 104 at a first time based on a first action cycle data of a previous simulation time step (t) and updates the main neural network 104 at a second time based on a second action cycle data of a particular simulation time step (t+1). In an alternative embodiment, the neural network trainer 140 updates the main neural network 104 at a particular time based on action cycle data associated with multiple action cycles. In a particular embodiment, the memory 132 includes a first-in first-out (FIFO) memory buffer that stores action cycle data associated with a threshold number of action cycles (e.g., 12000). In a particular embodiment, the threshold number of action cycles corresponds to a size of the replay memory. The neural network trainer 140 obtains action cycle data associated with a batch size (e.g., 128) of action cycles from the memory 132 as a mini-batch. In a particular aspect, the mini-batch includes action cycle data for a random set of action cycles. For example, the mini-batch includes action cycle data for 128 random action cycles from the 12000th most recent action cycle. The neural network trainer 140 updates the main neural network 104 at a particular time based on the mini-batch. In a particular embodiment, the mini-batch includes first action cycle data associated with a particular simulation time step (t+1) and second action cycle data associated with a second simulation time step.The neural network trainer 140 determines the weights 121 based on the first action cycle data and determines the second weights based on the second action cycle data. The neural network trainer 140 updates the main neural network 104 based on the weights 121, the second weights, or a combination thereof.
[0045] The main neural network 104 (e.g., a main neural network engine) generates a predicted main reward value for the state data 105. When the weights (e.g., weights 121) of the main neural network 104 differ from the weights of the target neural network 106, the predicted main reward value for the state data 105 generated by the main neural network 104 may differ from the predicted target reward value for the state data 105 generated by the target neural network 106.
[0046] The main neural network 104 (e.g., a main neural network engine) generates an output indicative of a predicted main reward value 117 (or at least one predicted maximum main reward value of the predicted main reward values). In FIG. 1, the predicted main reward value 117 is indicative of or corresponds to a candidate control input 107 for a particular simulation time step (t+1) to the control input generator 144. The main neural network 104 stores the predicted main reward value 117 associated with the candidate control input 107 for a particular simulation time step (t+1) in the memory 132. In a particular aspect, the main neural network 104 stores the predicted main reward value 117 and the corresponding control input in the memory 132.
[0047] In response to receiving a candidate control input 107 for a particular simulation step (t+1), the control input generator 144 obtains a control input 113 for a preceding simulation step (t) from the memory 132. An offset calculator 148 (e.g., a random number generator) generates a random offset 109 between a first offset (e.g., −0.5) and a second offset (e.g., 0.5). The control input generator 144 generates a random offset control input 191 for a particular simulation time step (t+1) based on the random offset 109 and the control input 113 for the preceding simulation time step (t) (e.g., random offset control input 191=control input 113+random offset 109). In this manner, the control input generator 144 generates the random offset control input 191 by randomly selecting a value from within a range (e.g., −0.5 to +0.5) that is centered around the value of the control input 113. In one particular aspect, the random offset control input 191 is between a first elevator setting (eg, -1) and a second elevator setting (eg, 1).
[0048] In a particular embodiment, the control input generator 144 determines that the control input 113 corresponds to a first output node (e.g., the eighth output node) of the primary neural network 104. The control input generator 144 identifies a second output node (e.g., the tenth output node) based on the first output node (e.g., the eighth output node) and the random offset 109 (e.g., 2). For example, the second identifier of the second output node is based on the sum of the first identifier of the first output node and the random offset 109 (e.g., second identifier=(first identifier+random offset 109) modulus (number of output nodes)). The control input generator 144 designates a particular control input corresponding to the second output node as the random offset control input 191. In this embodiment, the random offset 109 includes a random value between a first value (e.g., −2) and a second value (e.g., 2). In this manner, the control input generator 144 generates the random offset control input 191 by randomly selecting a value within a range that is centered around the value of the control input 113. The range is from a first control input corresponding to a first output node (e.g., the second output node) to a second control input corresponding to a second output node (e.g., the second output node). Generating the random offset control input 191 by randomly selecting a value within a range that is centered around the value of the control input 113 corresponds to implementing a "random-walk" scheme. In some embodiments, the random-walk scheme is suitable for aircraft controls that tend to be relatively continuous in nature (e.g., elevator setting) compared to aircraft controls that tend to have discrete states, such as flaps that change between extended and unextended states.
[0049] The control input generator 144 selects one of the candidate control inputs 107 or the random offset control input 191 as the control input 103 for a particular simulation time step (t+1). For example, the control input generator 144 generates a particular random value between a first value (e.g., 0.0) and a second value (e.g., 1.0). The control input generator 144 determines the randomization setting 193 based on the number of iterations (e.g., t+1) of training the primary neural network 104. For example, the control input generator 144 sets the randomization setting 193 to a first value (e.g., 0.0) in response to determining that the number of iterations (e.g., t+1) is less than an observation threshold (e.g., 3000). Setting the randomization setting 193 to a first value increases the likelihood that the random offset control input 191 is selected during an observation period that corresponds to fewer training iterations than the observation threshold.
[0050] In certain aspects, the control input generator 144, in response to determining that the iteration number (e.g., t+1) is equal to or greater than the observation threshold (e.g., 3000), sets the randomization setting 193 to a first value (e.g., 0.01) and a second value (e.g., 1.0) using a linear function based on the iteration number (e.g., t+1). For example, the linear function increases linearly from the first value (e.g., 0.01) to the second value (e.g., 1.0) from the first training iteration (e.g., 3000) to the second training iteration (e.g., 6000) to generate the randomization setting 193. The linear increase in the randomization setting 193 linearly decreases the likelihood that the random offset control input 191 will be selected during a search period following the observation period.
[0051] The control input generator 144 selects the random offset control input 191 as the control input 103 based on a determination that a particular random value is greater than the randomization setpoint 193. In certain aspects, selecting the random offset control input for at least some of the simulation time steps during the observation period allows for the exploration of more combinations of aircraft simulation states and control inputs, improving the robustness of the primary neural network 104. Alternatively, the control input generator 144 selects the candidate control input 107 as the control input 103 in response to a determination that a particular random value is less than or equal to the randomization setpoint 193. In certain aspects, selecting more of the candidate control inputs during the search period allows the behavior of the primary neural network 104 to converge.
[0052] In one particular aspect, the control input generator 144 stores data in the memory 132 identifying the control inputs 103 for a particular simulation time step (t+1). The control input generator 144 provides the control inputs 103 for a particular simulation time step (t+1) to the flight simulator 146. In one particular aspect, the neural network trainer 140 updates the target neural network 106 by replicating the main neural network 104 following an update of the main neural network 104 based on the weights 121 and in response to a determination that the main neural network 104 has been updated at least one threshold number of times after a previous update of the target neural network 106. For example, the neural network trainer 140 updates the target neural network 106 to have the same weights (e.g., weights 121) as the main neural network 104.
[0053] In certain aspects, the flight simulator 146 generates second state data for the next simulation time step (t+2) based on the control input 103 in response to determining that a particular simulation time step (t+1) is less than the search threshold (e.g., 6000). Training of the main neural network 104 continues according to the techniques described herein based on the state data 105 and the second state data. Alternatively, the flight simulator 146 generates an output indicating that the main neural network 104 has been trained in response to determining that a particular simulation time step (t+1) is greater than or equal to the search threshold (e.g., 6000). In certain aspects, the main neural network 104 is enabled and provided (e.g., uploaded) to the aircraft to control (the elevator setting of) the aircraft. For example, one or more sensors of the aircraft provide state data to the main neural network 104, and the elevator setting of the aircraft is updated based on the control input received from the main neural network 104.
[0054] In this manner, the system 100 allows for training of the main neural network 104 to control the aircraft. Training the main neural network 104 based on a flight simulator 146 consumes fewer resources (e.g., time and money) compared to pilot data. A neural network 104 trained using a flight simulator 146 is also likely to be more robust because the flight simulator 146 can be designed to simulate a variety of scenarios, including scenarios that pilots would not normally encounter.
[0055] 3 illustrates a method 300 for training a neural network for controlling an aircraft. In certain aspects, one or more operations of the method 300 are performed by the control input generator 144, the flight simulator 146, the neural network trainer 140, the system 100, or a combination thereof of FIG.
[0056] The method 300 includes providing a first control input to a flight simulator, at 302. For example, the control input generator 144 of Figure 1 provides the control input 113 to the flight simulator 146, as described with reference to Figure 1. The flight simulator 146 generates first state data in response to the control input 113.
[0057] The method 300 also includes providing the first state data as an input to the first neural network to generate candidate second control inputs, at 304. For example, the flight simulator 146 of Figure 1 provides the first state data to the main neural network 104 to generate candidate control inputs 107, as described with reference to Figure 1.
[0058] The method 300 further includes selecting 306 a second control input for the flight simulator based on the random value. For example, the control input generator 144 of FIG. 1 selects the control input 103 for the flight simulator 146 based on the random value, as described with reference to FIG. 1. The control input 103 is selected between the candidate control inputs 107 and a random offset control input 191, as described with reference to FIG. 1. The random offset control input 191 is based on the random offset 109 added to the control input 113, as described with reference to FIG.
[0059] The method 300 also includes providing a second control input to the flight simulator, at 308. For example, the control input generator 144 provides the control input 103 to the flight simulator 146. As described with reference to FIG. 1, the flight simulator 146 generates the second state data in response to the control input 103.
[0060] The method 300 further includes updating the weights of the first neural network based at least in part on the first state data and the second state data, at 310. For example, as described with reference to FIG. 1, the neural network trainer 140 updates the weights of the main neural network 104 based at least in part on the first state data and the second state data.
[0061] 4, a flow chart illustrating the life cycle of an aircraft configured to be controlled by a neural network is shown, designated as method 400. At a pre-production stage, the exemplary method 400 includes, at 402, specification and design of an aircraft, such as aircraft 500 described with reference to FIG. 5. At the aircraft specification and design, the method 400 may include specification and design of a neural network based aircraft control system. The neural network based aircraft control system includes or is configured to operate with the main neural network 104. At 404, the method 400 includes material procurement, which may include procuring materials for the neural network based aircraft control system.
[0062] During the production phase, the method 400 includes manufacturing the components and subassemblies at 406 and system integration with the aircraft at 408. For example, the method 400 may include manufacturing the components and subassemblies of the neural network based aircraft control system and system integration of the neural network based aircraft control system. For example, the master neural network 104 may be loaded into the neural network based aircraft control system. The method 400 includes certification and delivery of the aircraft at 410 and placing the aircraft into service at 412. Certification and delivery may include certifying the neural network based aircraft control system and placing the neural network based aircraft control system into service. While being operated by a customer, the aircraft may be scheduled for periodic maintenance and service (which may also include modifications, reconfigurations, refurbishments, etc.). For example, a new version of the master neural network 104 may be loaded into the neural network based aircraft control system. At 414, the method 400 includes performing maintenance and service on the aircraft, which may include performing maintenance and service on the neural network based aircraft control system.
[0063] Each of the processes of method 400 may be performed or implemented by a system integrator, a third party, and / or an operator (e.g., a customer). For purposes of this specification, a system integrator may include, but is not limited to, any number of aircraft manufacturers and major system subcontractors, a third party may include, but is not limited to, any number of vendors, subcontractors, and suppliers, and an operator may be an airline, a leasing company, a military entity, a service organization, etc.
[0064] Aspects of the present disclosure may also be described in the context of a vehicle, one particular example of which is an aircraft 500, shown in FIG.
[0065] In the example of Figure 5, the aircraft 500 includes an airframe 518 with a number of systems 520 and an interior 522. Examples of the number of systems 520 include one or more of a propulsion system 524, an electrical system 526, an environmental system 528, a hydraulic system 530, and a neural network-based aircraft control system 532 that includes or is configured to access the master neural network 104. Any number of other systems may also be included. The neural network-based aircraft control system 532 is configured to receive sensor data from one or more sensors 536 and control operation of one or more other systems 520 of the aircraft 500, such as the position of one or more control surfaces 534, based on the output of the master neural network 104 in response to the sensor data.
[0066] 6 is a block diagram of a computing environment 600 including a computing device 610 configured to facilitate aspects of the computer-implemented methods and computer-executable program instructions (or code) of the present disclosure. For example, the computing device 610, or portions thereof, are configured to execute instructions to initiate, perform, or control one or more of the operations described with reference to Figures 1-5. In certain aspects, the computing device 610 includes one or more components of the system 100 of Figure 1, one or more servers, one or more virtual devices, or a combination thereof.
[0067] Computing device 610 includes one or more processors 620. Processor 620 is configured to communicate with system memory 630, one or more storage devices 640, one or more input / output interfaces 650, one or more communication interfaces 660, or any combination thereof. System memory 630 includes volatile memory devices (e.g., random access memory (RAM) devices), non-volatile memory devices (e.g., read-only memory (ROM) devices, programmable read-only memory, and flash memory), or both. System memory 630 stores operating system 632, which may include a basic input / output system for booting computing device 610 and a complete operating system that allows computing device 610 to interact with a user, other programs, or other devices. System memory 630 stores system (program) data 636. For example, system memory 630 stores main neural network 104, target neural network 106, control input 103, control input 113, random offset 109, candidate control input 107, random offset control input 191, randomization settings 193, predicted main reward value 117, predicted main reward value 127, predicted target reward value 119, reward value 111, state data 105, state data 115, weights 121, or combinations thereof. In one particular aspect, system memory 630 includes memory 132 of FIG.
[0068] The system memory 630 includes one or more applications 634 (e.g., collections of instructions) executable by the processor 620. As an example, the one or more applications 634 include one or more instructions 682 executable by the processor 620 to initiate, control, or perform one or more of the operations described with reference to Figures 1-5. For example, the one or more applications 634 include such instructions 682 executable by the processor 620 to initiate, control, or perform one or more of the operations described with reference to the main neural network 104, the target neural network 106, the neural network trainer 140, the reward calculator 142, the control input generator 144, the flight simulator 146, the offset calculator 148, or any combination thereof.
[0069] In one particular implementation, the system memory 630 includes a non-transitory computer-readable medium (e.g., a computer-readable storage device) storing instructions 682 that, when executed by the processor 620, cause the processor 620 to initiate, perform, or control operations for training a neural network for controlling the aircraft. The operations include providing a first control input to a flight simulator. The flight simulator generates first state data in response to the first control input and provides the first state data as an input to the first neural network to generate candidate second control inputs. The operations also include selecting a second control input for the flight simulator based on a random value. The second control input is selected from between the candidate second control input and a random offset control input. The random offset control input is based on a random offset applied to the first control input. The operations further include providing the second control input to the flight simulator. The flight simulator generates the second state data in response to the second control input. The operations also include updating weights of the first neural network based at least in part on the first state data and the second state data.
[0070] The one or more storage devices 640 include non-volatile storage devices, such as magnetic disks, optical disks, or flash memory devices. In certain embodiments, the storage devices 640 include both removable and non-removable memory devices. The storage devices 640 are configured to store an operating system, an image of an operating system, applications (e.g., one or more applications 634), and program data (e.g., program data 636). In certain aspects, the system memory 630, the storage devices 640, or both, comprise tangible computer-readable media. In certain aspects, the one or more storage devices 640 are external to the computing device 610.
[0071] One or more input / output interfaces 650 enable computing device 610 to communicate with one or more input / output devices 670 to facilitate interaction with a user. For example, one or more input / output interfaces 650 may include a display interface, an input interface, or both. For example, input / output interface 650 may be adapted to receive input from a user, receive input from another computing device, or a combination thereof. In some implementations, the input / output interface 650 conforms to one or more standard interface protocols, including a serial interface (e.g., a universal serial bus (USB) interface or (IEEE (Institute of Electrical and Electronics Engineers) interface standard), a parallel interface, a display adapter, an audio adapter, or a custom interface. ("IEEE" is a registered trademark of the Institute of Electrical and Electronics Engineers, Inc. of Piscataway, NJ.) In some implementations, the input / output devices 670 include one or more user interface devices and a display, including any combination of buttons, keyboards, pointing devices, displays, speakers, microphones, touch screens, and other devices.
[0072] Processor 620 is configured to communicate with a device or controller 680 via one or more communications interfaces 660. For example, one or more communications interfaces 660 may include a network interface. Device or controller 680 may include, for example, aircraft 500 of FIG. 5 , one or more other devices, or any combination thereof. In certain embodiments, neural network trainer 140 provides main neural network 104 to aircraft 500 via communications interface 660 in response to determining that training of main neural network 104 is complete, receiving user input, or both.
[0073] In some implementations, a non-transitory computer-readable medium (e.g., a computer-readable storage device) stores instructions that, when executed by one or more processors, cause the one or more processors to initiate, perform, or control operations to implement some or all of the functionality described above. For example, the instructions may be executable to implement one or more of the operations or methods of FIGS. 1-5. In some implementations, some or all of the operations or methods of one or more of FIGS. 1-5 may be implemented by one or more processors (e.g., one or more central processing units (CPUs), one or more graphics processing units (GPUs), one or more digital signal processors (DSPs)) executing instructions through dedicated hardware circuitry, or any combination thereof.
[0074] The illustrations of the embodiments described herein are intended to provide a general understanding of the structure of various implementations. The above illustrations are not intended to serve as an exhaustive description of all elements and features of apparatuses and systems utilizing the structures or methods described herein. Many other implementations may become apparent to those skilled in the art upon review of the present disclosure. Other implementations may be utilized and derived from the present disclosure, such that structural and logical substitutions and changes may be made without departing from the scope of the present disclosure. For example, method operations may be performed in an order different from that shown in the figures, or one or more method operations may be omitted. Thus, the present disclosure and the figures should be considered illustrative rather than restrictive.
[0075] Moreover, while specific examples have been illustrated and described herein, it should be recognized that any subsequent configurations designed to achieve the same or similar results may be substituted for the specific implementations shown. The present disclosure is intended to cover any subsequent adaptations or variations of the various embodiments. Combinations of the above implementations, as well as other implementations not specifically described herein, will be apparent to those of skill in the art upon review of this specification.
[0076] The "Abstract" of the disclosure is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims. In addition, in the above "Description of the Preferred Embodiments," various features may be grouped together or described as one implementation for the purpose of brevity of the disclosure. The above-described embodiments illustrate the present disclosure, but do not limit it. Also, many modifications and variations are possible in accordance with the principles of the disclosure. As reflected in the following claims, the subject matter of the claimed invention may not be directed to all features in any of the disclosed embodiments. Accordingly, the scope of the disclosure is defined by the following claims and their equivalents.
Claims
1. 1. An apparatus for training a neural network for controlling an aircraft, comprising: a memory (132) configured to store a first neural network (104, 220); A control input generator (144), providing first control inputs (103, 113) to a flight simulator (146), the flight simulator (146) generating first state data (105, 115) in response to the first control inputs (103, 113), and providing the first state data (105, 115) as an input to the first neural network (104, 220) to generate candidate second control inputs (107); selecting a second control input (103, 113) for the flight simulator (146) based on a random value, the second control input (103, 113) being selected from between the candidate second control input (107) and a random offset control input (191), the random offset control input (191) being based on a random offset (109) added to the first control input (103, 113); and providing the second control input (103, 113) to the flight simulator (146), the flight simulator (146) being configured to generate second state data (105, 115) in response to the second control input (103, 113); A control input generator (144) configured to: a neural network trainer (140) configured to update weights (121) of the first neural network (104, 220) based at least in part on the first state data (105, 115) and the second state data (105, 115); 1. An apparatus for training a neural network for controlling an aircraft, comprising:
2. 2. The apparatus of claim 1, wherein the control input generator (144) is configured to generate the random offset control input (191) by randomly selecting a value from within a range centered around a value of the first control input (103, 113).
3. 3. The apparatus of claim 1, wherein the control input generator is configured to determine a reward value based on the altitude change and pitch indicated by the second state data, and the weights are updated based at least in part on the reward value.
4. 4. The apparatus of claim 3, wherein the first neural network includes a plurality of output nodes corresponding to a plurality of control inputs, a first output node of the plurality of output nodes corresponding to the candidate second control input, the first neural network is configured to receive the first state data and generate a plurality of predicted reward values as output values for the plurality of output nodes, and a first predicted reward value for the first output node is a maximum predicted reward value from the plurality of predicted reward values.
5. the memory (132) is further configured to store a second neural network (106, 220); The neural network trainer (140) providing the second state data (105, 115) as a second input to the second neural network (106, 220), the second neural network (106, 220) including a plurality of second output nodes (206) corresponding to the plurality of control inputs, the second neural network (106, 220) being configured to receive the second state data (105, 115) and generate a plurality of second predicted reward values as second output values for the plurality of second output nodes (206); providing the second state data (105, 115) as a second input to the second neural network (106, 220); determining that a second predicted reward value (119, 219) for a second output node (206) is a maximum predicted reward value from said plurality of second predicted reward values; [0023] 20. The method according to claim 1, further comprising:
5. The apparatus of claim 4, wherein the weights (121) of the first neural network (104, 220) are updated based on the reward value (111), the first predicted reward value (117, 127, 219), and the second predicted reward value (119, 219).
6. The apparatus of claim 5 , wherein the second neural network (106, 220) is a delayed copy of the first neural network (104, 220).
7. 1. A method of training a neural network for controlling an aircraft, comprising the steps of: providing first control inputs (103, 113) to a flight simulator (146), the flight simulator (146) generating first state data (105, 115) in response to the first control inputs (103, 113), and providing the first state data (105, 115) as an input to a first neural network (104, 220) to generate candidate second control inputs (107); selecting a second control input (103, 113) for the flight simulator (146) based on a random value, the second control input (103, 113) being selected from between the candidate second control input (107) and a random offset control input (191), the random offset control input (191) being based on a random offset (109) added to the first control input (103, 113); providing the second control input (103, 113) to the flight simulator (146), the flight simulator (146) generating second state data (105, 115) in response to the second control input (103, 113); providing the second control input (103, 113) to the flight simulator (146); updating weights (121) of said first neural network (104, 220) based at least in part on said first state data (105, 115) and said second state data (105, 115); A method for training a neural network for controlling an aircraft, comprising:
8. 8. The method of claim 7, wherein the candidate second control input (107) is selected as the second control input (103, 113) in response to determining that the random value is less than or equal to a randomization set value (193).
9. 9. The method of claim 7 or 8, wherein the random offset control input (191) is selected as the second control input (103, 113) in response to a determination that the random value is greater than a randomization set value (193).
10. 10. The method of claim 7, further comprising updating a randomization setting based on a number of iterations of training the first neural network, and wherein the second control input is selected based on the randomization setting.
11. 11. The method of claim 7, further comprising generating the random offset control input (191) by randomly selecting a value from within a range centered around the value of the first control input (103, 113).
12. 12. The method of any one of claims 7 to 11, wherein the first state data (105, 115) is indicative of at least one of altitude, speed, pitch, elevator setting, altitude change, speed change, or pitch change.
13. 13. The method of claim 7, further comprising determining a reward value (111) based on the altitude change and pitch indicated by the second state data (105, 115), and wherein the weights (121) are updated based at least in part on the reward value (111).
14. 14. The method of claim 13, wherein the first neural network (104, 220) includes a plurality of output nodes (206) corresponding to a plurality of control inputs, a first output node (206) corresponding to the candidate second control input (107), the first neural network (104, 220) is configured to receive the first state data (105, 115) and generate a plurality of predicted reward values as output values for the plurality of output nodes (206), and a first predicted reward value (117, 127, 219) for the first output node (206) is a maximum predicted reward value from the plurality of predicted reward values.
15. providing the second state data (105, 115) as a second input to a second neural network (106, 220), the second neural network (106, 220) including a plurality of second output nodes (206) corresponding to the plurality of control inputs, the second neural network (106, 220) being configured to receive the second state data (105, 115) and generate a plurality of second predicted reward values as second output values for the plurality of second output nodes (206); determining that a second predicted reward value (119, 219) for a second output node (206) is a maximum predicted reward value from said plurality of second predicted reward values; Further comprising:
15. The method of claim 14, wherein the weights (121) of the first neural network (104, 220) are updated based on the reward value (111), the first predicted reward value (117, 127, 219), and the second predicted reward value (119, 219).
16. 16. The method of claim 15, wherein the second neural network (106, 220) is a delayed copy of the first neural network (104, 220).
17. 17. The method of claim 15 or 16, further comprising updating the second weights of the second neural network (106, 220) based on the weights (121) of the first neural network (104, 220) based on a determination that a number of training iterations of the first neural network (104, 220) since a previous update of the second weights of the second neural network (106, 220) is greater than a threshold.
18. 1. A computer readable storage device, comprising: It stores instructions, The instructions, when executed by one or more processors, providing first control inputs (103, 113) to a flight simulator (146), the flight simulator (146) generating first state data (105, 115) in response to the first control inputs (103, 113), and providing the first state data (105, 115) as an input to a first neural network (104, 220) to generate candidate second control inputs (107); selecting a second control input (103, 113) for the flight simulator (146) based on a random value, the second control input (103, 113) being selected from between the candidate second control input (107) and a random offset control input (191), the random offset control input (191) being based on a random offset (109) added to the first control input (103, 113); providing the second control input (103, 113) to the flight simulator (146), the flight simulator (146) generating second state data (105, 115) in response to the second control input (103, 113); providing the second control input (103, 113) to the flight simulator (146); updating weights (121) of said first neural network (104, 220) based at least in part on said first state data (105, 115) and said second state data (105, 115); 23. A computer-readable storage device that causes the one or more processors to perform operations that include:
19. 20. The computer-readable storage device of claim 18, wherein the first status data (105, 115) is indicative of at least one of altitude, speed, pitch, elevator setting, altitude change, speed change, or pitch change.
20. 20. The computer-readable storage device of claim 18 or 19, wherein the operations further include determining a reward value (111) based on the altitude change and pitch indicated by the second state data (105, 115), and the weights (121) are updated based at least in part on the reward value (111).
Citation Information
Patent Citations
Intensified learning method / Device
JP1996076810A
Landing control device and method for flying object
JP2005059656A
Method of updating experience database storing experience used for machine learning
JP2018151876A
Control apparatus, unmanned system, control method and program
JP2019105891A
Method and system for training unmanned aerial vehicle control model based on artificial intelligence
US20190004518A1
