Full-duplex safety relay selection and power distribution method based on reinforcement learning
By using reinforcement learning methods based on DDPG and DQN, the problems of high computational complexity and poor adaptability in relay selection and power allocation in full-duplex communication systems are solved, and efficient, stable and secure channel performance improvement of full-duplex channels is achieved.
Patent Information
- Application Number
- CN202410919519.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-01
Smart Images

Figure CN118890673A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of full-duplex communication, and in particular relates to a full-duplex secure relay selection and power allocation method based on reinforcement learning. Background Art
[0002] In recent years, machine learning, especially deep learning, has shown great potential in solving complex mathematical problems and has achieved some results in the field of communications. As one of the branches of machine learning, reinforcement learning is considered to be a feasible solution to real-time decision-making problems (such as dynamic resource allocation) because it does not rely on system models and prior information. Deep reinforcement learning (DRL) combines the advantages of reinforcement learning and deep learning, and accelerates the convergence rate of the algorithm through deep neural networks, thereby improving the efficiency of reinforcement learning in large-scale systems. As a method of autonomous learning, reinforcement learning is constantly expanding its scope of application. Its application in improving communication systems and improving communication quality also provides new ideas and solutions for the development of communication technology.
[0003] Most existing works use traditional optimization algorithms and deep learning algorithms to solve relay selection and power allocation problems. Most studies that use traditional optimization methods to solve full-duplex relay selection and power allocation problems first transform the original NP-hard problem into a solvable convex optimization problem through various means, and then use various heuristic algorithms to iteratively converge to the final solution. It can be seen that the computational complexity of these methods is generally high, which makes the computational overhead and computational delay relatively large when using these methods in complex mobile communication systems. Converting the original problem into a suboptimal, less computationally complex sub-problem may result in a suboptimal result, thereby limiting the performance gain. Therefore, it is difficult for traditional optimization methods to simultaneously meet the requirements of low latency, high rate and high capacity for future communication systems.
[0004] Machine learning has shown its advantages in solving complex mathematical problems, and some scholars at home and abroad have begun to use machine learning algorithms to study the power allocation problem of communication systems. Among them, the deep learning method can effectively reduce the computational complexity of solving the power allocation problem, and can guarantee a better power allocation result after the network parameters are trained. However, the deep learning method requires enough sample data, and only after the network parameters are trained can better results be obtained efficiently. In complex communication systems, due to various physical limitations, it is usually difficult to obtain accurate sample data, and it usually takes a long time to train complex networks. Therefore, it is necessary to wait until the technology in related fields is further developed before deep learning algorithms can be effectively applied to communication systems.
[0005] DRL can autonomously learn and adjust decision strategies according to the real-time environment and feedback information, and has good adaptability and self-adaptability. Compared with traditional methods that require manual design and adjustment of parameters, DRL can handle relay selection and power allocation problems more intelligently. A widely used learning method in DRL is deep Q learning (DQN). The DQN algorithm has been used in many studies, but when faced with continuous action tasks, DQN can only quantify the action interval and output discrete action values. Unlike DQN, deep deterministic policy gradient (DDPG) can output continuous values and complete continuous action tasks. The DDPG algorithm is built on the actor-critic architecture, combining the advantages of DQN's experience replay and target network strategy, and enhancing the stability of the learning process. Therefore, the DQN algorithm can be used for relay selection in multi-relay situations, and the DDPG algorithm can be used for power allocation to achieve an intelligent decision-making process and improve the safety performance of full-duplex channels. Summary of the invention
[0006] The purpose of the present invention is to provide a full-duplex secure relay selection and power allocation method based on reinforcement learning.
[0007] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0008] The present invention provides a full-duplex secure relay selection and power allocation method based on reinforcement learning, which mainly includes the following steps:
[0009] (1) Construct a full-duplex eavesdropping channel to obtain the channel gain information of each link;
[0010] (2) Construct a network structure consisting of a DQN relay selection unit and a DDPG power allocation unit for relay selection and power allocation decisions;
[0011] (3) Setting network hyperparameters, iterative training of the DQN relay selection unit and the DDPG power allocation unit;
[0012] (4) Adjust network hyperparameters to optimize model performance.
[0013] Furthermore, the full-duplex wiretap channel consists of a source node S, a destination node D, an wiretap node E, and a plurality of relay nodes (R1, R2, ... R n ), only one relay node is selected in each time slot to assist the signal transmission between the source node S and the destination node D; suppose that in time slot i, the source node S sends a signal x i , the kth relay node is selected to forward the signal, then the relay node R k The received signal is:
[0014]
[0015] The first term of expression (1) is the target signal sent by the source node S, P s represents the transmission power of the source node S; is the number of nodes from source node S to relay node R in time slot i. k The link channel gain coefficient; n r,i is the relay node R k Gaussian white noise at n r,i ~CN(0,N0);v i is the residual self-interference caused by the relay node working in full-duplex mode; the relay node R k When receiving the signal r i At the same time, the signal r i Amplify and forward the signal i =br i-1 , r i-1 Represents the relay node R in time slot i-1 k The received signal, the signal received at the destination node D is expressed as:
[0016]
[0017] Where b is the amplification factor when the relay node forwards the signal. In time slot i-1, the source node S sends a signal x i-1 , P r Represents the relay node R k The transmission power; is the relay node R in time slot i k The link channel gain coefficient to the destination node D; n r,i-1 is the relay node R in time slot i-1 k Gaussian white noise at v i-1 is the residual self-interference caused by the relay node operating in full-duplex mode in time slot i-1; n d,i is the Gaussian white noise at the destination node D, denoted by n d,i ~CN(0,N0); Similar to the destination node D, the signal received at the eavesdropping node E is expressed as:
[0018]
[0019] in is the relay node R in time slot i k The link channel gain coefficient to the eavesdropping node E; n e,i is the Gaussian white noise at the eavesdropping node E, denoted by n e,i ~CN(0,N0); is the distance from source node S to relay node R in time slot i-1 kThe link channel gain coefficient of
[0020] Let E[|x i | 2 ] = q1, so that the average power of the signal actually sent by the source node S is q1P s , then E[|t i | 2 ]=E[|br i-1 | 2 ] = q2, so that the relay node R k The average power of the forwarded signal is q2P r ; Therefore, the relay node R k The variable gain amplification factor at is:
[0021]
[0022] The residual self-interference V=E[|v i | 2 ], assuming that the residual self-interference follows a Gaussian distribution, that is, v i ~CN(0,N0).
[0023] Furthermore, in step (2), the channel security capacity optimization problem is first modeled, assuming that the full-duplex eavesdropping channel is a static channel and the relay node R k The channel gain is Then the channel capacity expression of the legal channel is:
[0024]
[0025] The channel capacity expression of the eavesdropping channel is:
[0026]
[0027] in The channel safety capacity expression of the full-duplex system is:
[0028] C S =[C D -C E ] + #(7)
[0029] Let α j =|h j | 2 ,Right now are all constants, and the channel safety capacity is obtained by solving the following channel safety capacity optimization problem:
[0030]
[0031] Assume that the full-duplex system is already in a state of secure transmission, that is, the channel security capacity of the full-duplex system is greater than 0, i.e., α3 > α4. At this time, the legitimate channel capacity is greater than the eavesdropping channel capacity. From equations (6), (7), and (8), the channel security capacity optimization problem is equivalent to:
[0032]
[0033] Under the constraint of q1 + q2 ≤ q, this equation (9) is simplified to:
[0034]
[0035] Furthermore, the specific operation process of step (3) is as follows:
[0036] (3.1) The state space of joint relay selection and power allocation is the channel gain information of all transmission links obtained by the entire full-duplex system, where each item respectively contains the channel gain coefficient and transmission signal-to-noise ratio of the corresponding link; assume that the full-duplex eavesdropping channel is a static channel, and the state s t is simplified to:
[0037] s t ={γ 1_1 , γ 1_3 , γ 1_4 , γ 2_1 , γ 2_3 , γ 2_4 ...γ i_1 , γ i_3 , γ i_4 , γ2}#(11)
[0038] where γ i_1 , γ i_3 , γ i_4 are respectively the link channel gain information between the i-th relay node and the source node, destination node, and eavesdropping node;
[0039] (3.2) The goal of power allocation is to allocate q1 and q2 to optimize the performance of the full-duplex system. By DDPG, a real value q1 (0 < q1 < q) is output, forming a bounded action space and being applicable to dealing with problems of continuous action spaces; in addition, the output action should include the relay selection result output by the DQN relay selection unit, that is:
[0040]
[0041] where represents the output action of the DQN unit, that is, the selected relay node, represents the output action of the DDPG unit, that is, the q1 value of power allocation, a trepresents the action output of the joint relay selection and power allocation, and q1(t) represents the q1 value allocated at each moment.
[0042] (3.3) The reward function r t The safety capacity expression of the channel is defined as equation (10), where γ1, γ3, and γ4 are replaced by the channel gain information of the selected relay node.
[0043] Furthermore, the DQN relay selection unit is used to process discrete tasks, and the DDPG power allocation unit is used to process continuous tasks.
[0044] Furthermore, in step (4), all link channel gain information of the current time slot is used as state s t Sent to the network; using state s t As input, the Q network of the DQN relay selection unit outputs the relay selection action The estimated Q value of Then use the ε-greedy strategy to select an action As the relay selection scheme in the current time slot; at the same time, the DDPG power allocation unit is based on the state s t and parameter μ produce a deterministic power allocation action Execute an action After that, the deep reinforcement learning network calculates the feedback reward function r t , the full-duplex system obtains the channel gain of the next time slot as the state s of the next time slot t+1 , and continue to transmit it to the deep reinforcement learning network.
[0045] Furthermore, in step (4), the DQN relay selection unit and the DDPG power allocation unit both use the experience playback strategy to convert the sample data {s t , a t , r t ,s t+1}Store to a size of In each time slot, N sample data are randomly selected from the memory pool to update the network parameters.
[0046] Furthermore, in step (4), based on the randomly selected sample data {s i , a i , r i ,s i+1}, the target network in the DQN relay selection unit and the DDPG power allocation unit generates the corresponding target Q value using parameters χ, μ, θ, that is:
[0047]
[0048] y i =r i +γQ(s i+1 ,π(s i+1 ;μ - );θ - )#(16)
[0049] The parameters χ in the DQN relay selection unit and the parameters θ in the DDPG power allocation unit are trained by minimizing the loss function:
[0050]
[0051]
[0052] According to the deterministic policy gradient theorem, the Actor network π(s t ; μ) updates its network parameter μ in the direction of obtaining more cumulative rewards, that is:
[0053]
[0054] For the parameter χ in the DQN relay selection unit - , every W time slots, the parameter χ of the corresponding Q network is assigned to the parameter χ - , achieving parameter χ - Update; every W time slots, the parameter μ of the Actor network and the parameter θ of the Critic network in the DDPG power allocation unit are assigned to the parameter μ - and θ - , to achieve parameter μ - and θ - Updates.
[0055] The beneficial effects of the present invention are:
[0056] In full-duplex communication, signals can be transmitted in both directions simultaneously on the same frequency band. This effectively utilizes spectrum resources and improves communication efficiency. However, due to the broadcast and open characteristics of wireless transmission, any unintended receiver (eavesdropper) can listen to the signal from the source node to the destination node, which is an important problem that needs to be solved. Therefore, in a full-duplex eavesdropping channel, the first task is to achieve the goal of maximizing the channel security capacity and improving the security of the system. In the past few years, relay selection and power allocation technologies have been frequently used in some mobile communication scenarios to increase the transmission range and reliability of wireless communications. Traditional relay selection and power allocation algorithms can enhance the security of the system to a certain extent, but there is a problem that these algorithms have high computational complexity and computational delay, and lack the flexibility and adaptability of autonomous adjustment, so it is increasingly difficult to meet the requirements of future mobile communication systems.
[0057] Therefore, the technical problem to be solved by the present invention is: to propose a full-duplex secure relay selection and power allocation method based on reinforcement learning. When there are multiple relay nodes, the optimal relay node is adaptively selected through DRL, and power is allocated under the joint power constraint to achieve the goal.
[0058] Compared with the prior art, the present invention has the following advantages:
[0059] (1) The existing technology usually relies on traditional optimization algorithms for relay selection and power allocation. These optimization algorithms require detailed system models and parameter adjustments, and have poor adaptability to dynamic environments. And due to the lack of an effective adaptive learning mechanism, the system may not be stable and reliable when facing unknown interference and dynamic conditions. Based on the characteristics of reinforcement learning, the full-duplex secure relay selection and power allocation method based on reinforcement learning proposed in the present invention can be dynamically adjusted according to the current communication environment and historical data, thereby effectively responding to eavesdropping threats and enhancing channel security, and is suitable for dynamic and uncertain communication environments. At the same time, the present invention makes full use of the stability and learning ability of the deep reinforcement learning algorithm, and the system can ensure long-term reliability and stability while maintaining efficient operation.
[0060] (2) Traditional deep learning algorithms usually rely on a large amount of labeled data for training, which is often difficult to obtain in dynamic and uncertain communication environments. In addition, traditional deep learning algorithms have limited ability to process real-time environmental feedback and make self-adjustments, and usually need to be retrained when the environment changes. The full-duplex secure relay selection and power allocation method based on reinforcement learning proposed in the present invention does not require a large amount of pre-labeled data, and can autonomously optimize decisions in a real-time changing environment. In addition, the method of the present invention focuses on maximizing long-term rewards rather than just immediate outputs, which makes system decisions more comprehensive and forward-looking, and is particularly suitable for resource allocation and relay selection in communication systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 The present invention is an overall flow chart of a full-duplex secure relay selection and power allocation method based on reinforcement learning.
[0062] Figure 2 The present invention is a detailed flow chart of a full-duplex secure relay selection and power allocation method based on reinforcement learning.
[0063] Figure 3 It is a full-duplex eavesdropping channel model.
[0064] Figure 4 This is the network structure diagram of joint relay selection and power allocation based on DQN and DDPG.
[0065] Figure 5 Comparison of the average channel security capacity of the DQN+DDPG method and other traditional methods under different signal-to-noise ratios.
[0066] Figure 6 Comparison of the average channel security capacity of the DQN+DDPG method and other traditional methods under different β values. DETAILED DESCRIPTION
[0067] The present invention provides a full-duplex secure relay selection and power allocation method based on reinforcement learning. It is mainly based on the full-duplex eavesdropping channel model, constructs a security capacity expression, and uses DQN+DDPG to perform joint relay selection and power allocation. The present invention adopts DQN to optimize the selection process of relay nodes, and dynamically selects the most suitable relay nodes through learning strategies to maximize the security capacity of the channel and effectively resist the interference of eavesdropping nodes. The power allocation in the full-duplex channel is adjusted by the DDPG algorithm, and the power is adaptively adjusted according to the real-time network status to optimize the signal transmission quality. The exploration and utilization mechanism of reinforcement learning is used to gradually expand the performance boundary of the full-duplex channel, thereby improving the adaptability and stability of the full-duplex channel in an uncertain environment.
[0068] like Figure 1 As shown, the present invention provides a full-duplex secure relay selection and power allocation method based on reinforcement learning, which mainly includes the following steps: constructing a channel model, establishing a security capacity expression, designing reinforcement learning elements and building a network structure.
[0069] like Figure 2 As shown, the present invention provides a full-duplex secure relay selection and power allocation method based on reinforcement learning, and its specific operation process is as follows:
[0070] (1) Construct a full-duplex eavesdropping channel to obtain the channel gain information of each link;
[0071] Consider a full-duplex eavesdropping channel consisting of a source node S, a destination node D, an eavesdropping node E, and multiple relay nodes (R1, R2, ... R n ) composition, such as Figure 3 As shown in Figure 2, it is assumed that there is a strong channel fading between the source node S and the destination node D, and they cannot communicate directly. Therefore, multiple full-duplex relay nodes using the AF forwarding protocol are introduced. During the communication process, only one relay node is selected in each time slot to assist the signal transmission between the source node S and the destination node D.
[0072] The signal transmission process is as follows: Assume that in time slot i, the source node S sends a signal x i , the kth relay node is selected to forward the signal, then the relay node R kThe received signal is:
[0073]
[0074] The first term of expression (1) is the target signal sent by the source node S, where P s represents the transmission power of the source node S. is the number of nodes from source node S to relay node R in time slot i. k The link channel gain coefficient. r,i is the relay node R k Gaussian white noise at n r,i ~CN(0,N0). i is the residual self-interference caused by the relay node working in full-duplex mode. k When receiving the signal r i At the same time, the signal r i Amplify and forward the signal i =br i-1 , r i-1 Represents the relay node R in time slot i-1 k The received signal, the signal received at the destination node D can be expressed as:
[0075]
[0076] Where b is the amplification factor when the relay node forwards the signal. In time slot i-1, the source node S sends a signal x i-1 , P r Represents the relay node R k of transmission power. is the relay node R in time slot i k The link channel gain coefficient to the destination node D. r,i-1 is the relay node R in time slot i-1 k Gaussian white noise at v i-1 is the residual self-interference caused by the relay node operating in full-duplex mode in time slot i-1. d,i is the Gaussian white noise at the destination node D, denoted by n d,i ~CN(0,N0). Similar to the destination node D, the present invention can obtain the signal received at the eavesdropping node E, which is expressed as:
[0077]
[0078] in is the relay node R in time slot i k The link channel gain coefficient to the eavesdropping node E. n e,i is the Gaussian white noise at the eavesdropping node E, denoted by n e,i~CN(0,N0). is the distance from source node S to relay node R in time slot i-1 k The link channel gain coefficient.
[0079] Let E[|x i | 2 ] = q1, so that the average power of the signal actually sent by the source node S is q1P s , then E[|t i | 2 ]=E[|br i-1 | 2 ] = q2, so that the relay node R k The average power of the forwarded signal is q2P r Therefore, the relay node R k The variable gain amplification factor at is:
[0080]
[0081] The residual self-interference V=E[|v i | 2 ]. Assume that the residual self-interference follows a Gaussian distribution, that is, v i ~CN(0,N0). In addition, the variance of the residual self-interference is modeled as V=β(q2P r ) λ , where β and λ (0≤λ≤1) are constants that depend on the elimination technique.
[0082] (2) Construct a DQN relay selection unit and a DDPG power allocation unit for relay selection and power allocation decisions;
[0083] In order to make the full-duplex system have better security performance, from the perspective of channel safety capacity, the following is the specific modeling process of the channel safety capacity optimization problem.
[0084] Assume that the full-duplex eavesdropping channel is a static channel and the selected relay node R k The channel gain is changes slowly and can be considered as a constant, then the channel capacity expression of the legal channel is:
[0085]
[0086] Similarly, the channel capacity expression of the eavesdropping channel can be obtained as:
[0087]
[0088] in, The channel safety capacity expression of the full-duplex system is:
[0089] C S =[C D -C E ] + #(7)
[0090] For convenience, let α j =|h j | 2 ,Right now are all constants. The channel safety capacity can be obtained by solving the following channel safety capacity optimization problem:
[0091]
[0092] Assuming that the full-duplex system is already in a secure transmission state, that is, the channel security capacity of the full-duplex system is greater than 0, that is, α3>α4. At this time, the legitimate channel capacity is greater than the eavesdropping channel capacity. According to equations (6), (7), and (8), the channel security capacity optimization problem can be equivalent to:
[0093]
[0094] Under the constraint condition of q1+q2≤q, the formula (9) can be simplified as:
[0095]
[0096] (3) Setting network hyperparameters, iterative training of the DQN relay selection unit and the DDPG power allocation unit;
[0097] (3.1) State: The state space of the joint relay selection and power allocation should be designed as the channel gain information of all transmission links obtained by the entire full-duplex system, where each item contains the channel gain coefficient and transmission signal-to-noise ratio of the corresponding link. Since the present invention presupposes that the full-duplex eavesdropping channel is a static channel, the state s t can be simplified to:
[0098] st = {γ 1_1 , γ 1_3 , γ 1_4 , γ 2_1 , γ 2_3 , γ 2_4 ...γ i_1 , γi _3 , γ i_4 ,γ2}#(11)
[0099] Among them, γ i_1 , γ i_3 , γ i_4 are the link channel gain information between the i-th relay node and the source node, destination node and eavesdropping node respectively.
[0100] (3.2) Action: The goal of power allocation is to allocate q1 and q2 to optimize the performance of the full-duplex system. By using DDPG, a real value q1 (0 < q1 < q) is output, forming a bounded action space and being applicable to dealing with problems in a continuous action space. In addition, the output action should also include the relay selection result output by the DQN relay selection unit, that is:
[0101]
[0102] Among them, represents the output action of the DQN unit, that is, the selected relay node, represents the output action of the DDPG unit, that is, the q1 value of power allocation, a t represents the action output of joint relay selection and power allocation, and q1(t) represents the q1 value allocated at each moment.
[0103] (3.3) Reward: To achieve the goal of improving the channel security capacity, the reward function r t is defined as the channel security capacity expression, that is, Equation (10), where γ1, γ3, γ4 are replaced by the channel gain information of the selected relay node.
[0104] (4) Adjust the network hyperparameters to optimize the model performance;
[0105] As Figure 4 shown, the joint relay selection and power allocation network structure based on DQN and DDPG constructed by the present invention is divided into two parts. One is the DQN relay selection unit for dealing with discrete tasks, and the other is the DDPG power allocation unit for dealing with continuous tasks.
[0106] The channel gain information of all links in the current time slot is used as the state s t and sent to this network. Using the state s t as the input, the Q network of the DQN relay selection unit outputs the estimated Q value of the relay selection action After that, an action is selected using the ε-greedy strategy as the relay selection scheme in the current time slot. At the same time, the DDPG power allocation unit generates a deterministic power allocation action t according to the state s After executing the action , the feedback reward function r t calculated by the deep reinforcement learning network is obtained. The full-duplex system gets the channel gain of the next time slot as the state s t+1 of the next time slot and continues to transmit it to the deep reinforcement learning network.
[0107] Both the DQN relay selection unit and the DDPG power allocation unit use the experience replay strategy to convert the sample data {s t ,a t ,r t ,s t+1}Store to a size of In each time slot, N sample data are randomly selected from the memory pool to update the network parameters, so that learning becomes more stable and the strategy is prevented from fluctuating or diverging. Based on the randomly selected sample data {s i ,a i ,r i ,s i+1}, the target network in the DQN relay selection unit and the DDPG power allocation unit uses parameters χ, μ, θ to generate the corresponding target Q value, namely:
[0108]
[0109] y i =r i +γQ(s i+1 ,π(s i+1 ;μ - );θ - )#(16)
[0110] The parameters χ in the DQN relay selection unit and the parameters θ in the DDPG power allocation unit are trained by minimizing the following loss function:
[0111]
[0112]
[0113] According to the deterministic policy gradient theorem, the Actor network π(s t ; μ) updates its network parameter μ in the direction of obtaining more cumulative rewards, that is:
[0114]
[0115] For the parameter χ in the DQN relay selection unit - , every W time slots, the parameter χ of the corresponding Q network is assigned to the parameter χ - , achieving parameter χ - Similarly, every W time slots, the parameter μ of the Actor network and the parameter θ of the Critic network in the DDPG power allocation unit are assigned to the parameter μ - and θ - , to achieve parameter μ - and θ- Updates.
[0116] (5) Comparison test of channel security capacity obtained by using the DQN+DDPG method of the present invention and other traditional methods
[0117] Assume that there are three relay nodes in the full-duplex system for relay selection, and the three groups of channel gain coefficients are α 1_1 =1,α 1_3 =2,α 1_4 =1;α 2_1 =0.5,α 2_3 =1,α 2_4 =0.5; α 3_1 =0.25,α 33 =0.5,α 34 =0.25. If not otherwise specified, the combined power limit q = 1, the self-interference coefficient β = 0.1, λ = 1,
[0118] In order to evaluate the performance of the reinforcement learning-based full-duplex secure relay selection and power allocation method proposed in the present invention, it is considered to compare it with other common relay selection and power allocation methods in different scenarios.
[0119] Assumptions like Figure 5 As shown in the figure, when the DQN method of selecting relays and DDPG power allocation is adopted, the highest average channel safety capacity is achieved at all SNR levels compared with other methods. In particular, in the high SNR area, the performance gap between the DQN method of selecting relays and DDPG power allocation and other methods is more obvious, reflecting the performance superiority of the DQN method of selecting relays and DDPG power allocation. According to formula (10), it can be calculated that when the signal-to-noise ratio approaches infinity, the channel safety capacity approaches 1. When the DQN method of selecting relays and DDPG power allocation is adopted, its average channel safety capacity gradually increases with the increase of the signal-to-noise ratio and approaches the limit value of 1.
[0120] β represents the channel self-interference coefficient. The larger the β value, the stronger the channel self-interference. Figure 6 As can be seen in Figure 1, the method of using DQN to select relays and DDPG to allocate power shows the best performance at all β values. Among them, all curves decrease with the increase of β, which shows that the self-interference of the channel has a significant negative impact on the channel safety capacity. However, the strategy of combining DQN to select relays and DDPG to allocate power is more reliable in dealing with this situation, and maintains a relatively high channel safety capacity even at higher β values.
[0121] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A full-duplex secure relay selection and power allocation method based on reinforcement learning, characterized in that: It includes the following steps: (1) Construct a full-duplex eavesdropping channel to obtain the channel gain information of each link; (2) Construct a network structure composed of a DQN relay selection unit and a DDPG power allocation unit for relay selection and power allocation decision-making; (3) Set network hyperparameters, and iteratively train the DQN relay selection unit and the DDPG power allocation unit; (4) Adjust network hyperparameters to optimize the model performance.
2. The full-duplex secure relay selection and power allocation method based on reinforcement learning according to claim 1 is characterized in that: The full-duplex wiretap channel consists of a source node S, a destination node D, an wiretap node E, and multiple relay nodes (R1, R2, ... R n ), only one relay node is selected in each time slot to assist the signal transmission between the source node S and the destination node D; suppose that in time slot i, the source node S sends a signal x i , the kth relay node is selected to forward the signal, then the relay node R k The received signal is: The first term of expression (1) is the target signal sent by the source node S, P s represents the transmission power of the source node S; is the number of nodes from source node S to relay node R in time slot i. k The link channel gain coefficient; n r,i is the relay node R k Gaussian white noise at n r,i ~CN(0,N0);v i is the residual self-interference caused by the relay node working in full-duplex mode; the relay node R k When receiving the signal r i At the same time, the signal r i Amplify and forward the signal i =br i-1 , r i-1 Represents the relay node R in time slot i-1 k The received signal, the signal received at the destination node D is expressed as: Where b is the amplification factor when the relay node forwards the signal. In time slot i-1, the source node S sends a signal x i-1 , P r Represents the relay node R k The transmission power; is the relay node R in time slot i k The link channel gain coefficient to the destination node D; n r,i-1 is the relay node R in time slot i-1 k Gaussian white noise at v i-1 is the residual self-interference caused by the relay node operating in full-duplex mode in time slot i-1; n d,i is the Gaussian white noise at the destination node D, denoted by n d,i ~CN(O,N0); Similar to the destination node D, the signal received at the eavesdropping node E is expressed as: in is the relay node R in time slot i k The link channel gain coefficient to the eavesdropping node E; n e,i is the Gaussian white noise at the eavesdropping node E, denoted by n e,i ~CN(0,N0); is the distance from source node S to relay node R in time slot i-1 k The link channel gain coefficient of Let E[|x i | 2 ] = q1, so that the average power of the signal actually sent by the source node S is q1P s , then E[|t i | 2 ]=E[|br i-1 | 2 ] = q2, so that the relay node R k The average power of the forwarded signal is q2P r ; Therefore, the relay node R k The variable gain amplification factor at is: The residual self-interference V=E[|v i | 2 ], assuming that the residual self-interference follows a Gaussian distribution, that is, v i ~CN(0,N0).
3. The full-duplex secure relay selection and power allocation method based on reinforcement learning according to claim 1 is characterized in that: In step (2), the channel security capacity optimization problem is first modeled, assuming that the full-duplex eavesdropping channel is a static channel and the relay node R k The channel gain is Then the channel capacity expression of the legal channel is: The channel capacity expression of the eavesdropping channel is: in The channel safety capacity expression of the full-duplex system is: C S =[C D -C E ] + #(7) Let α j =|h j | 2 ,Right now are all constants, and the channel safety capacity is obtained by solving the following channel safety capacity optimization problem: Assume that the full-duplex system is already in a state of secure transmission, that is, the channel security capacity of the full-duplex system is greater than 0, i.e., α3>α4. At this time, the legitimate channel capacity is greater than the eavesdropping channel capacity. From equations (6), (7), and (8), the channel security capacity optimization problem is equivalent to: Under the constraint condition of q1+q2≤q, this equation (9) is simplified to:
4. The full-duplex secure relay selection and power allocation method based on reinforcement learning according to claim 3 is characterized in that: The specific operation process of step (3) is as follows: (3.1) The state space of joint relay selection and power allocation is the channel gain information of all transmission links obtained by the entire full-duplex system, where each item contains the channel gain coefficient and transmission signal-to-noise ratio of the corresponding link. Assuming that the full-duplex eavesdropping channel is a static channel, the state s t Simplified to: s t ={γ 1_1 ,c 1_3 ,c 1_4 ,c 2_1 ,c 2_3 ,c 2_4 …c i_1 ,c i_3 ,c i_4 ,γ2}#(11) where γ i_1 , γ i_3 , γ i_4 are the link channel gain information between the i-th relay node and the source node, the destination node and the eavesdropping node respectively; (3.2) The goal of power allocation is to allocate q1 and q2 to optimize the performance of the full-duplex system. A real value q1 (0<q1<q) is output through DDPG, forming a bounded action space and being applicable to dealing with problems of continuous action spaces; in addition, the output action should include the relay selection result output through the DQN relay selection unit, that is: in represents the output action of the DQN unit, i.e. the selected relay node, Indicates the output action of the DDPG unit, i.e., the q1 value of the power distribution, a t represents the action output of the joint relay selection and power allocation, q1(t) represents the q1 value allocated at each moment; (3.3) The reward function r t The safety capacity expression of the channel is defined as equation (10), where γ1, γ3, and γ4 are replaced by the channel gain information of the selected relay node.
5. The full-duplex secure relay selection and power allocation method based on reinforcement learning according to claim 1, characterized in that: The DQN relay selection unit is used to handle discrete tasks, and the DDPG power allocation unit is used to handle continuous tasks.
6. The full-duplex secure relay selection and power allocation method based on reinforcement learning according to claim 1, characterized in that: In step (4), all link channel gain information of the current time slot is used as state s t Sent to the network; using state s t As input, the Q network of the DQN relay selection unit outputs the relay selection action The estimated Q value of Then use the ε-greedy strategy to select an action As the relay selection scheme in the current time slot; at the same time, the DDPG power allocation unit is based on the state s t and parameter μ produce a deterministic power allocation action Execute an action After that, the deep reinforcement learning network calculates the feedback reward function r t , the full-duplex system obtains the channel gain of the next time slot as the state s of the next time slot t+1 , and continue to transmit it to the deep reinforcement learning network.
7. The full-duplex secure relay selection and power allocation method based on reinforcement learning according to claim 6 is characterized in that: In step (4), the DQN relay selection unit and the DDPG power allocation unit both use the experience playback strategy to convert the sample data {s t , a t , r t , S t+1 }Store to a size of In each time slot, N sample data are randomly selected from the memory pool to update the network parameters.
8. The full-duplex secure relay selection and power allocation method based on reinforcement learning according to claim 7 is characterized in that: In step (4), based on the randomly selected sample data {s i , a i ,ri,S i+1 }, the target network in the DQN relay selection unit and the DDPG power allocation unit generates the corresponding target Q value using parameters χ, μ, θ, that is: y i =r i +γQ(s i+1 ,π(s i+1 ;m - );i - )#(16) Train the parameters χ in the DQN relay selection unit and the parameters θ in the DDPG power allocation unit by minimizing the loss function: According to the deterministic policy gradient theorem, the Actor network π(s t ; μ) updates its network parameter μ in the direction of obtaining more cumulative rewards, that is: For the parameter χ in the DQN relay selection unit - , every W time slots, the parameter χ of the corresponding Q network is assigned to the parameter χ - , achieving parameter χ - Update; every W time slots, the parameter μ of the Actor network and the parameter θ of the Critic network in the DDPG power allocation unit are assigned to the parameter μ - and θ - , to achieve parameter μ - and θ - Updates.
Citation Information
Cited By
Optimization method of offshore distributed power distribution unit unmanned aerial vehicle cooperative security communication network
CN119854831A
Intelligent safety capacity improving method and device for guaranteeing deterministic time delay
CN120547627A
