Unmanned aerial vehicle video stream code rate adaptive transmission method based on attention mechanism
By using the attention mechanism-based code rate adaptive method in drone video streaming, combined with edge computing and D3QN algorithms, the accuracy of code rate decision-making and energy consumption balance issues are solved, and high-quality video streaming transmission is achieved. and low-energy consumption drone operation, meeting the dual goals of user experience and system optimization.
Patent Information
- Application Number
- CN202410863039.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-29
- Publication Date
- 2024-09-13
Smart Images

Figure CN118646919A
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of wireless communication networks and mobile edge computing, and in particular to a method for adaptively transmitting bit rate of unmanned aerial vehicle video streams based on an attention mechanism. Background Art
[0002] In recent years, unmanned aerial vehicles (UAVs) have been widely used in wireless communication networks due to their mobility and cost advantages. The use of drones for aerial photography, emergency command and live broadcasting is becoming more and more common. However, due to uncertain factors such as high video bit rate, long wireless transmission distance and many interference factors, the quality of video transmission may deteriorate. In order to improve the quality of experience (QoE), the bit rate of the video stream needs to be dynamically adjusted according to the network conditions and cache status. In the process of using drones to transcode video streams, the adaptive bit rate (ABR) algorithm faces the following problems:
[0003] (1) There is a contradiction between the energy consumption of video stream transcoding and transmission. When the computing resources and power resources of drones are limited, it is necessary to balance the relationship between user QoE and drone endurance.
[0004] (2) Considering the real-time requirements of video transmission, the transcoding decision time of the ABR algorithm cannot be too long;
[0005] (3) The complexity and unpredictability of the network status. The constantly changing flight status of the drone and the obstacles that may be encountered during the transmission process will cause the channel transmission rate to fluctuate to a large extent.
[0006] For problem 1, the existing technology will offload the video stream to an edge server that is close to the terminal device and has a certain computing power to run, so as to reduce the computing pressure of the terminal device. For example, method 1 proposes a heterogeneous network based on edge cloud assistance, which provides users with high-quality real-time video streaming services by solving problems such as user scheduling, transcoding decisions, computing and wireless spectrum resource allocation in the network. Method 2 proposes a real-time video streaming transmission algorithm in a mobile edge environment, which uploads videos shot by mobile terminals such as mobile phones to the edge server for processing, and then the user downloads the processed video to the local to meet the user's QoE requirements. Method 3 proposes an edge-based live temporary caching solution, which caches the minimum number of live video clips at the edge in a context-aware manner, avoids video buffering, and greatly reduces initial startup delay and live broadcast delay. Related methods apply edge computing to the field of video live broadcast, improving problems such as excessive delay and unstable video playback in live broadcast. However, currently, drone-assisted communications mainly use drones to assist in data collection of wireless sensors or to assist in task offloading of mobile edge computing, or use drones as mobile relays in ground node communications. It is still unclear how the rate adaptive algorithm for transmitting video streams using drones in an edge computing environment works.
[0007] For question 2, existing technologies can use reinforcement learning (RL) to model adaptive bitrate selection as a Markov decision process to optimize the transmission quality of video streaming. The RL-based ABR algorithm aims to optimize user QoE and trains the ABR algorithm in a data-driven manner. The algorithm does not rely on pre-designed models or assumptions about the environment. It obtains the maximum reward return by continuously interacting with the environment, and gradually learns the optimal strategy for bitrate adaptation, achieving better performance than heuristic methods.
[0008] For problem 3, the conventional solution needs to adjust the code rate decision in time according to the state of the wireless communication channel, so that the code rate decision has better foresight and predictability. Considering that the historical code rate decision will affect the code rate selection in the current state, the historical state information also has an important impact on the code rate decision in the current state. The attention mechanism allows the model to automatically adjust the weight according to the importance of the input data, so as to focus on the information that is more critical to the prediction results. This mechanism enables the model to conduct targeted learning of different variables and data at different time points when processing multivariate time series, thereby improving the accuracy of predictions. Summary of the invention
[0009] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a drone video stream bitrate adaptive transmission method based on the attention mechanism to solve the problems raised in the above background technology. The present invention takes maximizing QoE and minimizing the energy consumption of the drone system as the optimization goals, and establishes a drone video stream transmission model with edge device assisted transcoding, which has better performance in meeting user QoE requirements and energy consumption.
[0010] In order to achieve the above object, the present invention is implemented by the following technical scheme: a UAV video stream bitrate adaptive transmission method based on attention mechanism, which is based on edge computing technology and D3QN reinforcement learning algorithm, and optimizes bitrate decision through attention mechanism to achieve the purpose of maximizing QoE and minimizing UAV energy consumption, and specifically includes the following steps:
[0011] S1. According to the characteristics of UAV video stream transmission, a video stream transmission system consisting of UAVs, edge devices and ground users is established;
[0012] S2. Establish a UAV video transmission system model, including a communication model and an energy consumption model;
[0013] S3. Construct an optimization task, the goal of which is to maximize user QoE while minimizing drone energy consumption;
[0014] S4. Design a deep reinforcement learning network interaction framework to solve the bitrate adaptation problem of video transmission by drones in edge environments.
[0015] Furthermore, the S1 performs a three-dimensional environmental modeling of the UAV flight environment in the system by a three-dimensional grid method. The UAV flies randomly in a three-dimensional space (L×W×H), and the ground user coordinates are Coor local =(x local ,y local ,z local )∈R 1×3 , the initial coordinate position of the drone is Coor uav,0 =(x0,y0,z0)∈R 1×3 ; Since the channel gain is related to the position of the drone and the ground user, the coordinates of the drone at the beginning of each time slot are set to Coor uav,t =(x t ,y t ,z t )∈R 1×3 At the end, the coordinates of the drone are Coor uav,t+1 =(x t+1 ,y t+1 ,z t+1 )∈R 1×3 , and assumes that the channel gain is fixed in each time slot.
[0016] Furthermore, the communication model in S2 uses time division multiplexing technology to divide the original video stream into video blocks with a time slot length of T=2s and transmit them to ground users. The channel gain of time slot t can be expressed as:
[0017]
[0018] Where α0 is the channel gain per unit distance, dis t is the Euclidean distance between the UAV and the ground user. According to the channel gain, the channel transmission rate can be expressed as:
[0019]
[0020] B is the channel bandwidth, P t is the wireless signal transmission power, σ 2 is the noise power, L t Transmission loss caused by obstacles. Under given bandwidth and signal-to-noise ratio, when a video block encounters an obstacle during transmission, the communication link will be affected and the channel transmission rate will decrease.
[0021] Furthermore, the energy consumption model in S2 includes transcoding energy consumption and transmission energy consumption; in each time slot t, the transcoding energy consumption of the edge device is expressed as:
[0022]
[0023] Where κ1 is the energy efficiency parameter of transcoding, f edge is the computing frequency of the edge device CPU, is the transcoding duration, expressed as:
[0024]
[0025] Among them, b 1080p is the original bit rate. For the sake of generality, we assume that the original video is transcoded to the average bit rate b at time slot t. mean , S is the computational intensity of video transcoding (cycles / bit). After transcoding, the video block is transmitted from the drone to the ground user. The transmission energy consumption is expressed as:
[0026]
[0027] where v t is the channel transmission rate of time slot t, and the sum of transcoding energy consumption and transmission energy consumption generated by transmitting video in unit time slot is expressed as:
[0028]
[0029] Furthermore, S3 takes the difference between the user QoE and the energy consumption in each time slot as the optimization target, which is expressed as:
[0030]
[0031] The weighting coefficients β1 and β2 are used to balance the relationship between user QoE and system energy consumption. t ) is the video definition, |q(b t )-q(b t-1 )| indicates the bit rate fluctuation degree, R t Z is the delay time of video block transmission. penalty is the buffer overflow penalty value; μ1, μ2, and μ3 are the weight coefficients of video definition, bit rate fluctuation, and delay, respectively. t ) is expressed as:
[0032]
[0033] Video block freeze delay duration R t Depends on the transcoding duration of the current time slot video block Transmission duration and the cache duration Z of the previous time slot t-1 , expressed as:
[0034]
[0035] Cache duration Z t Depends on the cache duration Z of the previous time slot t-1 , video block transcoding duration and transmission time It is expressed as:
[0036]
[0037] Furthermore, the overall optimization goal in S3 is to maximize η during the entire transmission process. t The expected value of is as follows:
[0038] P1
[0039] stC1:Coor uav,t ∈{x t ,y t ,z t |x t ∈[0,L],y t ∈[0,W],z t ∈[5,H]}
[0040] C2:L t ∈{1,Lloss}
[0041] C3:b t ∈{b 360p ,b 480p ,b 720p ,b 1080p}
[0042] C4:
[0043] C5:μ1,μ2,μ3>0
[0044] C6:μ4∈{0,1}
[0045] C7:β1,β2>0
[0046] Among them, C1 constrains the drone to fly in a limited space; C2 assumes that the drone transmission channel has two situations: interference and non-interference; C3 constrains the optional bit rate range of the video stream; C4 constrains the energy consumption threshold of video stream transmission; C5 and C6 limit the weight coefficient range of each performance indicator in user QoE; C7 limits the weight coefficient range of user QoE and system energy consumption.
[0047] Furthermore, the S4 uses a deep reinforcement learning framework to train and solve the drone video stream bitrate decision behavior based on the attention mechanism, including:
[0048] The state of reinforcement learning is defined as follows:
[0049] s t =(h t ,B t ,E t ,b t-1 ,Z t-1 ,R t-1 )∈S
[0050] Status t Mainly includes wireless channel gain h t , obstacles block B t , the remaining energy E t , and the code rate b of the previous time slot t-1 , buffer length Z t-1 and the delay time R t-1 ;
[0051] The actions of reinforcement learning are defined as follows:
[0052] A={1Mbps,2Mbps,3.5Mbps,5Mbps}
[0053] The element a in the action space tDefined as selectable transcoding bitrates, corresponding to four video definition levels: low definition (360p), standard definition (480p), high definition (720p) and ultra-high definition (1080p);
[0054] The reward for reinforcement learning is defined as follows:
[0055] r t = r(s t ,a t )=β1QoE t -β2E assist,t
[0056] The goal of the agent is to find an optimal strategy that maximizes the long-term cumulative reward of the drone during video transmission by selecting the bit rate under this strategy distribution, expressed as:
[0057]
[0058] Where γ is the discount factor, and its value range is γ∈[0,1]. The larger the γ is, the more attention the agent pays to the long-term cumulative reward. π (s t ,a t ) is the Q-value function, which represents the action value function of the model under the guidance of strategy π, expressed as:
[0059] Q π (s t ,a t )=E π [U t ∣S t =s t ,A t =a t ]
[0060] =E π [r(st,at)+γQ π (s t+1 ,π(s t+1 ))∣S t =s t ,A t =a t ]
[0061] Furthermore, the S4 uses the Transformer attention network to encode the historical time slot state sequence, and calculates the weight coefficient of each state feature vector in the historical time slot state sequence to quantify the importance of the historical state information of different time slots to the current state code rate decision; before encoding the historical time slot state sequence, the first M state feature vectors including the current time slot t are first concatenated in sequence, and the concatenated state sequence is:
[0062] St M =(s t ,s t-1 ,s t-2 ,...,s t-M+1 )
[0063] Furthermore, the time slot state s i ,i∈[t-M+1,t] contains various heterogeneous feature components such as channel state, residual energy state and video stream transmission state. In order to ensure that the network can be trained normally, it is necessary to i After normalization, all s i As a token i Together they form a state sequence It is expressed as:
[0064]
[0065]
[0066] After normalization, the Transformer attention network is used to To encode, the process is as follows:
[0067]
[0068]
[0069] Multihead(Q,K,V)=concat(head1,…,head h )W o
[0070] head i =Attention(QW i Q ,KW i K ,VW i V )
[0071] in represents the parameter vector, and the rest of the attention network is expressed as follows:
[0072]
[0073]
[0074] LN(·) represents layer normalization, FFN(·) represents a layer of feedforward neural network; the output encoding result The semantic information of the M state feature vectors including the current time slot can reflect the importance of different historical time slot states to the bit rate decision in the current state.
[0075] Furthermore, the S4 uses the encoding result of the historical time slot state sequence Predict the transcoding bitrate under the current state, obtain immediate rewards after using the selected bitrate in the environment, and provide direction for strategy updates; predict the network based on Predicted transcoding bitratea t , the environment adopts a t Transcode the video chunks and generate instant rewards r t and the end of the round sign done t , and then enter the next state s t+1 , after which, the historical time slot state sequence is updated to (s t ,s t-1 ,...,s t-M+2 ), in the same t+1 After sequential splicing, the next splicing state is obtained The current splicing state Action a t , reward r t , the next splicing state And the end of the round sign done t As an experience tuple Stored in the experience replay pool, the experience replay mechanism is used to update the prediction network and the target network. The error expression between the prediction value and the target value is as follows:
[0076]
[0077] Among them, Y t Current splicing status The target value is expressed as follows:
[0078]
[0079] To approximate the action Q value function, the expression is as follows:
[0080]
[0081] In order to update the strategy in the direction of increasing rewards and make the predicted value as close to the target value as possible, the stochastic gradient descent method is used to back-propagate and update the parameter ω. E ,ω V ,ω A The expression is as follows:
[0082]
[0083] As the number of training times increases, the parameters of the prediction network and the target network are constantly updated alternately. In the process of applying different state-action pairs to maximize the cumulative reward, the action value function gradually converges and the bit rate decision is close to the optimal.
[0084] Beneficial effects of the present invention:
[0085] 1. This attention-based UAV video stream bitrate adaptive transmission method takes QoE maximization and UAV system energy consumption minimization as optimization goals, and proposes a UAV video stream bitrate adaptive transmission method based on attention coding. A UAV video stream transmission model with edge device assisted transcoding is established; based on three-dimensional environment modeling, the Markov decision process is used to formally describe the bitrate selection problem.
[0086] 2. This attention-based UAV video stream bitrate adaptive transmission method aims to solve the problems of inaccurate bitrate prediction and unstable action value evaluation in complex environments. The D3QN bitrate adaptive algorithm based on attention coding is used to predict the optimal bitrate. The proposed algorithm is compared with the random strategy algorithm, DDQN, D3QN, and LSTM_D3QN. Simulation results show that this method has better performance in meeting user QoE requirements and energy consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0087] Figure 1 A concatenated graph of historical time slot state vectors according to an embodiment of the present invention;
[0088] Figure 2 Schematic diagram of the D3QN algorithm framework based on attention coding according to an embodiment of the present invention;
[0089] Figure 3 Schematic diagram of round reward value under different bit rate prediction algorithms;
[0090] Figure 4 Schematic diagram of energy efficiency distribution in the last 50 rounds under different bit rate prediction algorithms. DETAILED DESCRIPTION
[0091] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.
[0092] See also Figures 1 to 4 The present invention provides the following technical solution: a method for adaptively transmitting a UAV video stream bit rate based on an attention mechanism. This embodiment further illustrates the specific effect of the method through simulation:
[0093] (1) Simulation conditions
[0094] Assume that the UAV flies randomly in a three-dimensional space (L×W×H), and the ground user coordinate is Coor local =(x local ,y local ,z local )∈R 1×3 , the initial coordinate position of the drone is Coor uav,0 =(x0,y0,z0)∈R 1×3 Since the channel gain is related to the position of the UAV and the position of the ground user, the coordinates of the UAV at the beginning of each time slot are set to Coor uav,t =(x t ,y t ,z t )∈R 1×3 At the end, the coordinates of the drone are Coor uav,t+1 =(x t+1 ,y t+1 ,z t+1 )∈R 1×3 , and it is assumed that the channel gain in each time slot is fixed. The specific simulation environment parameters are shown in Table 1.
[0095] Table 1 UAV real-time video streaming transmission environment simulation parameters
[0096]
[0097] (2) Simulation results
[0098] The present invention trains and tests the model in a Pytorch environment. A single Encoder module in the Transformer attention network is used to encode the historical time slot state sequence. The advantage network and the state value network use a 3-layer fully connected neural network, the hidden layer has 128 neurons, and GeLU is used as the activation function. The minimum batch size and the experience replay pool size are 64 and 100,000, respectively. When the number of samples in the experience replay pool reaches the minimum batch size, the prediction network training begins. The entire network is trained for 1,000 rounds, and the number of training times for the prediction network in each round depends on the number of video blocks sent in the round. During the training process, the initial exploration rate ε is set to 100%, the termination exploration rate is set to 1%, and the exponential decay factor is 0.992. In order to make the agent biased towards future rewards, the discount factor γ is set to 0.95. The initial learning rate of the Adam optimizer is 0.003, and the learning rate is adjusted using an exponential decay strategy with an adjustment multiple of 0.995. After every 300 trainings, the target network parameters are updated using the prediction network parameters. When the remaining energy is lower than the threshold of 5%, the training task of this round ends.
[0099] In this embodiment, Figure 3 The round reward values under different bit rate prediction algorithms are compared. Figure 3 It can be seen that since the random strategy algorithm does not consider environmental changes, the round reward has been fluctuating around -660. The four reinforcement learning algorithms need to interact with the environment by "trial and error" in the initial stage, so the round reward value is less than 0. With the accumulation of iterations, the reward values of the four reinforcement learning algorithms gradually increase, but the number of rounds required to obtain positive rewards is different. Since DDQN only calculates the value of each action, the reward value still fluctuates around 0 after training to 580 rounds. D3QN learns the value information of the state independently and the relative advantages of the action in this state. Compared with DDQN, D3QN improves the accuracy of action value estimation, so positive rewards can be obtained in 220 rounds. Based on D3QN, LSTM_D3QN and the present invention use historical state information to predict the code rate in the current state, and the round reward value is improved to varying degrees. However, compared with LSTM_D3QN, the round reward value of the present invention is larger and the fluctuation range is smaller. This is because the present invention can more accurately quantify the impact of historical state information on the current code rate decision by calculating the weights of different time slot state features. Therefore, the historical time slot state sequence encoded by attention plays an important role in improving the prediction accuracy of the optimal coding rate.
[0100] In this embodiment, Figure 4 The energy efficiency distribution of the last 50 rounds under different bitrate prediction algorithms is compared. Figure 4 (a) The number of video blocks that each algorithm can transmit in each round in the last 50 rounds when β1:β2=1:1, the obstacle appearance probability is 10%, and the number of multi-head attention is 3. The statistical results show that the number of video blocks transmitted by HSAE_D3QN is 13.79%, 8.38% and 4.21% more than that of DDQN, D3QN and LSTM_D3QN, respectively.
[0101] Figure 4 (b) The average reward values obtained by the five algorithms for transmitting each video block are given, and the average reward value of the random strategy algorithm is only -1.355. The average reward values of DDQN, D3QN, LSTM_D3QN and the method proposed in this invention are 0.016, 0.164, 0.295 and 0.473 respectively. After using attention coding to predict the bit rate, the average reward value obtained by the method proposed in this invention for transmitting each video block is nearly 1.8 times higher than that of D3QN. Secondly, according to the definition of the reward function, the round reward value is positively correlated with QoE and negatively correlated with system energy consumption.
[0102] Figure 4 (c) shows the average QoE distribution of the five algorithms, and the distribution trend is Figure 4The distribution of the average reward value in (b) remains consistent. Among them, the average QoE of the random strategy algorithm is only -0.858, and the average QoEs of DDQN, D3QN, LSTM_D3QN, and the proposed method are 0.457, 0.584, 0.699, and 0.861, respectively. The average QoE of the proposed method is 47.43% and 23.18% higher than that of D3QN and LSTM_D3QN, respectively.
[0103] Figure 4 The distribution of system energy consumption in (d) is opposite to the distribution trend of the round reward value. Among them, the average system energy consumption of the method proposed in the present invention, LSTM_D3QN, D3QN and DDQN are 0.307J, 0.321J, 0.333J and 0.349J respectively, and the average energy consumption of the method proposed in the present invention is reduced by 7.81% and 4.06% compared with D3QN and LSTM_D3QN respectively. In addition, the distribution interval of the system energy consumption of LSTM_D3QN is [0.295, 0.356], and the distribution interval of the system energy consumption of the method proposed in the present invention is [0.280, 0.328], and the system energy consumption distribution is more stable.
[0104] Based on the above analysis, since the method proposed in the present invention can make bit rate decisions based on the channel change status, residual energy and video stream transmission status in the historical time slot, it can minimize the system energy consumption while meeting the QoE requirements.
[0105] The basic principles and main features of the present invention and the advantages of the present invention are shown and described above. For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic characteristics of the present invention.
[0106] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. Adaptive bitrate transmission method for drone video stream based on attention mechanism, Features: The transmission method is based on edge computing technology and D3QN reinforcement learning algorithm, and optimizes the bit rate decision through the attention mechanism to achieve the purpose of maximizing QoE and minimizing the energy consumption of drones. It specifically includes the following steps: S1. According to the characteristics of UAV video stream transmission, a video stream transmission system consisting of UAVs, edge devices and ground users is established; S2. Establish a UAV video transmission system model, including a communication model and an energy consumption model; S3. Construct an optimization task, the goal of which is to maximize user QoE while minimizing drone energy consumption; S4. Design a deep reinforcement learning network interaction framework to solve the bitrate adaptation problem of video transmission by drones in edge environments.
2. According to the attention mechanism-based UAV video stream bit rate adaptive transmission method of claim 1, Features: S1 uses a three-dimensional grid method to model the three-dimensional environment of the UAV flight environment in the system. The UAV flies randomly in the three-dimensional space (L×W×H), and the ground user coordinates are Coor local =(x local ,y local ,z local )∈R 1×3 , the initial coordinate position of the drone is Coor uav,0 =(x 0 ,y 0 ,z 0 )∈R 1×3 ; Since the channel gain is related to the position of the drone and the ground user, the coordinates of the drone at the beginning of each time slot are set to Coor uav,t =(x t ,y t ,z t )∈R 1×3 At the end, the coordinates of the drone are Coor uav,t+1 =(x t+1 ,y t+1 ,z t+1 )∈R 1×3 , and assumes that the channel gain is fixed in each time slot.
3. According to the attention mechanism-based UAV video stream bit rate adaptive transmission method of claim 1, Features: The communication model in S2 uses time division multiplexing technology to divide the original video stream into video blocks with a time slot length of T = 2s and transmit them to ground users. The channel gain of time slot t can be expressed as: where α 0 is the channel gain per unit distance, dis t is the Euclidean distance between the UAV and the ground user. According to the channel gain, the channel transmission rate can be expressed as: B is the channel bandwidth, P t is the wireless signal transmission power, σ 2 is the noise power, L t Transmission loss caused by obstacles. Under given bandwidth and signal-to-noise ratio, when a video block encounters an obstacle during transmission, the communication link will be affected and the channel transmission rate will decrease.
4. According to claim 3, the method for adaptive transmission of drone video stream bitrate based on attention mechanism, Features: The energy consumption model in S2 includes transcoding energy consumption and transmission energy consumption. In each time slot t, the transcoding energy consumption of the edge device is expressed as: where κ 1 is the energy efficiency parameter of transcoding, f edge is the computing frequency of the edge device CPU, is the transcoding duration, expressed as: Among them, b 1080p is the original bit rate. For the sake of generality, we assume that the original video is transcoded to the average bit rate b at time slot t. mean , S is the computational intensity of video transcoding (cycles / bit). After transcoding, the video block is transmitted from the drone to the ground user. The transmission energy consumption is expressed as: where v t is the channel transmission rate of time slot t, and the sum of transcoding energy consumption and transmission energy consumption generated by transmitting video in unit time slot is expressed as:
5. According to the attention mechanism-based UAV video stream bit rate adaptive transmission method of claim 1, Features: S3 takes the difference between user QoE and energy consumption in each time slot as the optimization target, which is expressed as: Weighting coefficient β 1 ,β 2 Used to balance the relationship between user QoE and system energy consumption, q(b t ) is the video definition, |q(b t )-q(b t-1 )| indicates the bit rate fluctuation degree, R t Z is the delay time of video block transmission. penalty is the buffer overflow penalty value; μ 1 ,μ 2 ,μ 3 are the weight coefficients of video definition, bit rate fluctuation, and delay, respectively. t ) is expressed as: Video block freeze delay duration R t Depends on the transcoding duration of the current time slot video block Transmission duration and the cache duration Z of the previous time slot t-1 , expressed as: Cache duration Z t Depends on the cache duration Z of the previous time slot t-1 , video block transcoding duration and transmission duration It is expressed as:
6. The method for adaptively transmitting bitrate of drone video stream based on attention mechanism according to claim 5, Features: The overall optimization goal in S3 is to maximize η during the entire transmission process. t The expected value of is as follows: P1 s.t.C 1 :Coor uav,t ∈{x t ,y t ,z t |x t ∈[0,L],y t ∈[0,W],z t ∈[5,H]} C 2 :L t ∈{1,L loss } C 3 :b t ∈{b 360p ,b 480p ,b 720p ,b 1080p } C 4 : C 5 :m 1 ,m 2 ,m 3 >0 C 6 :m 4 ∈{0,1} C 7 :β 1 ,β 2 >0 Among them C 1 Restrict the drone to fly within a limited space; C 2 Assume that there are two situations in the UAV transmission channel: interference and no interference; C 3 Constrain the optional bit rate range of the video stream; C 4 Constrain the energy consumption threshold of video streaming transmission; C 5 ,C 6 Limit the weight coefficient range of each performance indicator in user QoE; C 7 Limit the weight coefficient range of user QoE and system energy consumption.
7. The method for adaptively transmitting bitrate of drone video stream based on attention mechanism according to claim 1, Features: The S4 uses a deep reinforcement learning framework to train and solve the drone video stream bitrate decision behavior based on the attention mechanism, including: The state of reinforcement learning is defined as follows: s t =(h t ,B t ,E t ,b t-1 ,Z t-1 ,R t-1 )∈S Status t Mainly includes wireless channel gain h t , obstacles block B t , the remaining energy E t , and the code rate b of the previous time slot t-1 , buffer length Z t-1 And the delay time R t-1 ; The actions of reinforcement learning are defined as follows: A={1Mbps,2Mbps,3.5Mbps,5Mbps} The element a in the action space t Defined as selectable transcoding bitrates, corresponding to four video definition levels: low definition (360p), standard definition (480p), high definition (720p) and ultra-high definition (1080p); The reward for reinforcement learning is defined as follows: r t =r(s t ,a t )=β 1 Quality of Life t -b 2 E assist,t The goal of the agent is to find an optimal strategy that maximizes the long-term cumulative reward of the drone during video transmission by selecting the bit rate under this strategy distribution, expressed as: Where γ is the discount factor, and its value range is γ∈[0,1]. The larger the γ is, the more attention the agent pays to the long-term cumulative reward. π (s t ,a t ) is the Q-value function, which represents the action value function of the model under the guidance of strategy π, expressed as: Q π (s t ,a t )=E π [U t ∣S t =s t ,A t =a t ] =E π [r(s t ,a t )+γQ π (s t+1 ,π(s t+1 ))∣S t =s t ,A t =a t ] 8. The method for adaptively transmitting bitrate of drone video stream based on attention mechanism according to claim 7, Features: The S4 uses the Transformer attention network to encode the historical time slot state sequence, and quantifies the importance of the historical state information of different time slots to the current state rate decision by calculating the weight coefficient of each state feature vector in the historical time slot state sequence; before encoding the historical time slot state sequence, the first M state feature vectors including the current time slot t are concatenated in sequence, and the concatenated state sequence is: S t M =(s t ,s t-1 ,s t-2 ,...,s t-M+1 ) 9. The method for adaptively transmitting bitrate of drone video stream based on attention mechanism according to claim 8, Features: The time slot state s i ,i∈[t-M+1,t] contains various heterogeneous feature components such as channel state, residual energy state and video stream transmission state. In order to ensure that the network can be trained normally, it is necessary to i After normalization, all s i As a token i Together they form a state sequence It is expressed as: After normalization, the Transformer attention network is used to To encode, the process is as follows: Multihead(Q,K,V)=concat(head 1 ,…,head h )W o head i =Attention(QW i Q ,KW i K ,VW i V ) in represents the parameter vector, and the rest of the attention network is expressed as follows: H 2 =FFN(H 1 ) LN(·) represents layer normalization, FFN(·) represents a layer of feedforward neural network; the output encoding result The semantic information of the M state feature vectors including the current time slot can reflect the importance of different historical time slot states to the bit rate decision in the current state.
10. The method for adaptively transmitting bitrate of drone video stream based on attention mechanism according to claim 9, Features: The S4 uses the encoding result of the historical time slot state sequence Predict the transcoding bitrate under the current state, obtain immediate rewards after using the selected bitrate in the environment, and provide direction for strategy updates; predict the network based on Predicted transcoding bitratea t , the environment adopts a t Transcode the video chunks and generate instant rewards r t and the end of the round sign done t , and then enter the next state s t+1 , after which, the historical time slot state sequence is updated to (s t ,s t-1 ,...,s t-M+2 ), in the same t+1 After sequential splicing, the next splicing state is obtained The current splicing state Action a t , reward r t , the next splicing state And the end of the round sign done t As an experience tuple Stored in the experience replay pool, the experience replay mechanism is used to update the prediction network and the target network. The error expression between the prediction value and the target value is as follows: Among them, Y t Current splicing status The target value is expressed as follows: To approximate the action Q value function, the expression is as follows: In order to update the strategy in the direction of increasing rewards and make the predicted value as close to the target value as possible, the stochastic gradient descent method is used to back-propagate and update the parameter ω. E ,ω V ,ω A The expression is as follows: As the number of training times increases, the parameters of the prediction network and the target network are constantly updated alternately. In the process of applying different state-action pairs to maximize the cumulative reward, the action value function gradually converges and the bit rate decision is close to the optimal.
Citation Information
Cited By
Intelligent code transmission regulation and control method and system for unmanned system
CN120568483A
Intelligent coding transmission regulation method and system for unmanned system
CN120568483B
