{'fraction_non_alphanumeric': 0.028044280442804426, 'fraction_numerical': 0.002214022140221402, 'mean_word_length': 5.053571428571429, '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}}
Deep Reinforcement Learning for Pre-caching and Task Allocation in Internet of Vehicles

With the development of Internet of Vehicles and 5G network, there is an increasing demand for services from vehicle users. Mobile edge computing offers a solution, that is, processing tasks on the edge server to improve user quality of experience (QoE). However, given the constant changes in the location of users on fast-moving vehicles, it remains a challenge on how to efficiently and stably transmit data. To address it, a method of pre-caching and task allocation based on deep reinforcement learning is proposed in this paper. The files requested by vehicle users are pre-cached on roadside units (RSUs), and transmission tasks are dynamically allocated to vehicle to vehicle (V2V) transmission and vehicle to roadside unit (V2R) transmission based on the speed of transmission. To be specific, pre-caching and task allocation are modeled as Markov decision processes (MDP). Then, Deep Deterministic Policy Gradient (DDPG) is applied to determine the optimal ratio of pre-caching and task allocation. The performance of the algorithm in different situations is analyzed through simulation and it is compared with other algorithms. It is found that DDPG can maximize the data reception rate of fast-moving vehicles, thereby improving the QoE of vehicle users.