{'fraction_non_alphanumeric': 0.02771362586605081, 'fraction_numerical': 0.0023094688221709007, 'mean_word_length': 4.351851851851852, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Heading Control of a Ship Based on Deep Reinforcement Learning (RL)

A deep reinforcement learning (RL) algorithm called Deep Q-Network(DQN) is used for the heading control of a ship in calm water and in waves. Ship’s state space is in continuous space and a set of five rudder angle actions are in discrete space. The optimal rudder action is selected based on maximum Q-value of the rudder actions. The ship positions and velocities serve as input and the Q-values associated with a set of rudder angles are the output of the DQN. Reward functions are designed such that the agent will try to reduce the Cross Track Error (CTE) and Heading Error (HE). The heading control of a KVLCC2 tanker in calm water and waves is investigated. The ship dynamics is represented using a 3DoF numerical model. The CTE and HE are calculated based on Line of Sight (LOS) Algorithm.