A complex network cognition-based federated reinforcement learning (FRL) end-to-end autonomous driving control system, comprising a measurement encoder, an image encoder, a complex network cognition module, a reinforcement learning module, and a federated learning module, wherein:
- the measurement encoder is configured to obtain state quantities required by the complex network cognition module and the reinforcement learning module, the state quantities required by the complex network cognition module comprise a x-coordinate, a y-coordinate, a heading angle change and a speed of a driving agent, the state quantities are handed over to the complex network cognition module as an input, the state quantities required by the reinforcement learning module comprise a steering wheel angle, a throttle, a brake, a gear, a lateral speed and a longitudinal speed, the state quantities are given to the reinforcement learning module as part of the inputs after extracting features from a two-layer fully connected network;
- the image encoder is configured to obtain an amount of image implicit state required by the reinforcement learning module, an image used is a 15-channel semantic bird's eye view (BEV), iRL∈[0,1]192*192*15, 192 is in pixels and the BEV used is 5px/m, 15 channels contain a drivable domain, a desired path, a road edge, 4 frames of other vehicles, 4 frames of pedestrians, and 4 frames of traffic signs, wherein the desired path is calculated using a A* algorithm, the semantic BEV is extracted by multilayer convolutional layers to extract implicit features and then passed to the reinforcement learning module as another part of the inputs;
- the complex network cognition module is configured to model a driving situation of a driving subject, and to obtain a maximum risk value of the driving subject in a current driving situation according to the state quantity provided by the measurement encoder, and finally to output dynamic driving suggestions based on the risk value through an activation function;
- the reinforcement learning module is configured to integrate the state quantities output from the measurement encoder and the image encoder, output corresponding strategies according to integrated network inputs, and interact with an environment to generate experience samples stored in a local replay buffer in the federated learning module, when the number of experience samples reaches a certain threshold, a batch of sample is taken from the local replay buffer for training, and finally trained neural network parameters are uploaded to the federated learning module;
- and
- the federated learning module is configured to receive the neural network parameters uploaded by the reinforcement learning module of the driving agents, and to aggregate a set of global parameters based on the plurality of neural network parameters, and finally to send the global parameters to the driving agents until a neural network converges, a global parameter aggregation is performed by a following equation:
- ϕ
- m
- *
- =
- 1
- N
-
- ∑
- n
- ϕ
- m
- n
- wherein ϕ*m denotes the global parameters at time m, N denotes the number of driving agents, and ϕmn denotes the neural network parameters at time m of the nth driving agent;
- wherein the activation function is configured to map the risk value, Activate(Risk) represents different activation functions according to different driving suggestions, and the mapped risk value will be used as a basis for guiding the output strategy of the reinforcement learning module:
- Activate
- go
- (
- Risk
- )
- =
- 4
- (
- 1
- +
- exp
-
- (
- -
- 300
- /
- Risk
- )
- )
- -
- 1
-
- Activate
- stop
- (
- Risk
- )
- =
- 4
- (
- 1
- +
- exp
-
- (
- -
- 0.2
- *
- Risk
- )
- )
- -
- 1
- wherein Activatego(Risk) denotes an activation function when the driving suggestion is forward, Activatestop(Risk) denotes an activation function when the driving suggestion is stop, and Risk denotes a current risk value of a self-vehicle, a dynamic risk suggestion Brisk;
- B
- risk
- =
- B
-
- (
- Activate
- go
- (
- Risk
- )
- ,
- β
- go
- )
- ,
- go
-
- B
- risk
- =
- B
-
- (
- α
- stop
- ,
- Activate
- stop
- (
- Risk
- )
- )
- ,
- stop
- wherein B denotes a beta distribution with αstop=βgo=1.