Safety energy efficiency optimization method of wireless communication system
Through intelligent reflective surface technology and multi-agent reinforcement learning algorithm MADDPG, the security and energy efficiency of the wireless communication system is optimized, and the problems of intelligence and power consumption of drone eavesdropping tasks in the wireless communication system are solved, achieving low power consumption and high reliability. secure transmission.
Patent Information
- Application Number
- CN202410779491.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When existing wireless communication systems achieve secure transmission with low power consumption and high reliability, they face the problems of high cost of beamforming technology, extra power consumption for artificial noise and coordinated interference, and the intelligence of drones as eavesdroppers is not considered. Fully consider the impact on the intelligence level of its eavesdropping tasks.
Intelligent reflective surface technology is combined with the multi-agent reinforcement learning algorithm MADDPG to construct an optimization model under the flight status constraints of the eavesdropping drone. The security drone sends interference signals to the eavesdropping drone to optimize user transmission power and eavesdropping drones. aircraft flight trajectory to maximize safety and energy efficiency.
In a time-varying environment where the eavesdropping drone has intelligence and uncontrollable maneuverability, the MADDPG algorithm is used to obtain a deterministic strategy, reduce exploration noise, improve the stability and reliability of safety and energy efficiency, and reduce power consumption.
Smart Images

Figure CN118764853A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of physical layer security technology in the field of wireless communications, and in particular relates to a method for optimizing the security energy efficiency of a wireless communication system. Background Art
[0002] As an alternative to encrypted wireless communication technology, physical layer security (PLS) has attracted extensive attention from researchers in recent years. It is seen as a promising approach with the potential to significantly improve the resilience and security of wireless communication systems. PLS can use wireless channel information to adjust system parameters in real time, thereby improving the security performance of the system and effectively preventing potential eavesdropping. Currently, there are many strategies to enhance PLS performance, such as beamforming, cooperative interference, and artificial noise. Nevertheless, beamforming technology increases deployment costs due to the need for a large number of antennas, while artificial noise and cooperative interference consume additional power. Therefore, achieving low-power, high-reliability secure transmission has become a key challenge. In order to overcome the limitations of traditional PLS technology, the intelligent reconfigurable surface (IRS) technology proposed in recent years provides an innovative solution to improve the security of information transmission. The intelligent reflective surface consists of a large number of energy-saving, low-cost, reconfigurable passive reflective elements, each of which can adaptively adjust its amplitude and / or phase to control the intensity and direction of electromagnetic waves. This capability enables the intelligent reflective surface to enhance the signal reception of legitimate users while suppressing the signals received by eavesdroppers. The application of Unmanned Aerial Vehicle (UAV) in communication systems has attracted widespread attention due to its rapid deployment and cost-effectiveness. It is often used for critical operations in the fields of agriculture, forestry, environmental protection, and security. Especially when ground communication facilities are destroyed or blocked by obstacles, UAVs can flexibly reposition and establish effective communication links with exposed equipment, which plays a vital role in emergency scenarios.
[0003] Although existing studies have explored the application of drones in communication systems, these studies usually assume that drones carrying some equipment or communicating drones are intelligent and can flexibly adjust their flight trajectories, while drones acting as eavesdroppers are assumed to have fixed positions or preset trajectories. This assumption ignores the intelligence of drones as eavesdroppers and may affect their intelligence level when actually performing eavesdropping tasks. Summary of the invention
[0004] The purpose of the present invention is to solve the problem raised in the background technology and to propose a security energy efficiency optimization method for a wireless communication system.
[0005] To achieve the above object, the technical solution adopted by the present invention is:
[0006] A method for optimizing the security energy efficiency of a wireless communication system, wherein the wireless communication system includes a security drone carrying an intelligent reflective surface, an eavesdropping drone, a base station, and a preset number of users. Under the action of the security drone, each user communicates with the base station through the intelligent reflective surface, wherein the eavesdropping drone maintains continuous eavesdropping on each user through the intelligent reflective surface, and the security drone also sends an interference signal to the eavesdropping drone. The method for optimizing the security energy efficiency of the wireless communication system includes:
[0007] S1. An optimization model is constructed under the constraint that the eavesdropping drone is in flight state, with the goal of maximizing the average security energy efficiency within a preset time period;
[0008] S2. Use the multi-agent reinforcement learning algorithm MADDPG to solve the optimization model, obtain the optimal safety and energy efficiency optimization plan, and execute the optimal safety and energy efficiency optimization plan for optimization.
[0009] Preferably, the objective function of the optimization model is:
[0010]
[0011] in,
[0012]
[0013] in,
[0014] R n,s (t) = [R n,b (t)-R n,e (t),0] +
[0015] in,
[0016]
[0017] in,
[0018]
[0019]
[0020] in,
[0021]
[0022] Wherein, the preset time period of the wireless communication system is divided into T time slots, and each time slot is represented by t∈{1,...,T}, E(t) represents the security energy efficiency of the wireless communication system, n represents the nth user, and n∈{1,...,N}, N is the total number of users, and p n (t) represents the transmission power of the nth user in time slot t, p u (t) represents the power of the jamming signal sent by the secure UAV to the eavesdropping UAV at time slot t, R n,s (t) represents the secure communication rate between the nth user and the base station in time slot t, R n,b (t) represents the normal communication rate between the nth user and the base station in time slot t, R n,e (t) represents the eavesdropping rate of each user by the eavesdropping drone in time slot t, [x,0] + =max(0,x),α n (t) represents the scheduling factor of the nth user in time slot t, and α n (t) = 1, indicating that the nth user communicates with the base station in time slot t, α n (t) = 0, indicating that the nth user does not communicate with the base station in time slot t. represents the noise power of the base station, represents the noise power of the eavesdropping drone, h u,e (t) represents the channel gain from the secure drone to the eavesdropping drone at time slot t, G n,b (t) represents the composite channel gain from the nth user to the base station in time slot t,
[0023] G n,e (t) represents the composite channel gain from the nth user to the eavesdropping drone at time slot t, h n,b (t), h n,r (t) and h r,b (t) represents the channel gain from the nth user to the base station, the nth user to the smart reflector, and the smart reflector to the base station in time slot t, H represents the conjugate transposed matrix of the complex matrix, h n,e (t) represents the channel gain from the nth user to the eavesdropping drone at time slot t, h r,e (t) represents the channel gain from the smart reflective surface to the eavesdropping drone at time slot t, Θ(t) represents the reflection coefficient matrix of the smart reflective surface at time slot t, β k (t) represents the phase shift made by the kth reflection element in the reflection coefficient matrix of the smart reflection surface to the incident signal in time slot t, which is a real angle, β k (t)∈[0,2π], and k∈{1,...,K}, K represents the number of reflection elements in the reflection coefficient matrix of the smart reflection surface, is a complex number, j represents an imaginary unit, and Indicates plural The modulus of is 1.
[0024] Preferably, the constraints of the optimization model include:
[0025] The eavesdropping drone is in flight, and the flight position of the eavesdropping drone is Q e (t)Satisfy:
[0026]
[0027] in,
[0028]
[0029] 0≤v e (t)≤v e,max
[0030] 0≤θ e (t)≤2π
[0031] Among them, x e (t) represents the position of the safety drone on the x-axis at time slot t, and y e (t) represents the position of the safety drone on the y-axis at time slot t, Δ t represents the length of each time slot, and at t = 1, x e (t) and y e (t) takes the preset value, v e (t) represents the flight speed of the eavesdropping drone at time slot t, represents the flight angle of the eavesdropping drone at time slot t, and v e,max Indicates the maximum flight speed of the eavesdropping drone.
[0032] Preferably, the constraints of the optimization model also include:
[0033] The safety drone is in flight and the flight position of the safety drone is Q u (t)Satisfy:
[0034]
[0035] in,
[0036]
[0037] 0≤v u (t)≤v u,max
[0038] 0≤θ u (t)≤2π
[0039] Among them, x u (t) represents the position of the safety drone on the x-axis at time slot t, and y u(t) represents the position of the safety drone on the y-axis at time slot t, and at t = 1, x u (t) and y u (t) takes the preset value, v u (t) represents the flight speed of the safety drone at time slot t, θ u (t) represents the flight angle of the safety drone at time slot t, v u,max Indicates the maximum flight speed of the safety drone.
[0040] Preferably, the constraints of the optimization model also include:
[0041] The power constraints of the jamming signal sent by the security drone to the eavesdropping drone are satisfied:
[0042]
[0043] The user's transmission power constraint satisfies:
[0044]
[0045] The user's scheduling factor constraints satisfy:
[0046]
[0047] The phase shift constraint made by the kth reflection element in the reflection coefficient matrix of the smart reflection surface at time slot t to the incident signal satisfies:
[0048]
[0049] Among them, p u,min and p u,max represents the minimum and maximum power of the jamming signal sent by the security drone to the eavesdropping drone, p n,min and p n,max Represent the minimum and maximum transmission power of the user respectively.
[0050] Preferably, the multi-agent reinforcement learning algorithm MADDPG is used to solve the optimization model, obtain the optimal safety and energy efficiency optimization scheme, and execute the optimal safety and energy efficiency optimization scheme for optimization, including:
[0051] Converting solving the optimization model into optimizing the constraints of the optimization model;
[0052] Define the first agent to optimize the flight position of the safety drone, the transmission power of the safety drone, the transmission power of the user, the phase shift of the incident signal made by the reflection element in the reflection coefficient matrix, and the user scheduling factor within a preset time period, and the state space of the first agent in the current time slot t is s 1 (t) = {G 1,b (t),...,GN,b (t); G 1,e (t),...,G N,e (t);c u (t);c e (t)}, where c u (t) and c e (t) represent the two-dimensional coordinates of the security drone and the eavesdropping drone respectively. The action space of the first agent at the current time slot t is a 1 (t) = {θ u (t),v u (t); α 1 (t),...,α N (t); p 1 (t),...,p N (t); p u (t); β 1 (t),...,β K (t)}, the reward function of the first agent is r 1 (t) = E(t);
[0053] Define the second agent to optimize the flight position of the eavesdropping drone within a preset time period, and the state space of the second agent at the current time slot t is s 2 (t) = {G 1,e (t),...,G n,e (t);c e (t)}, the action space of the second agent at the current time slot t is a 2 (t) = {θ e (t),v e (t)}, the reward function of the second agent is
[0054] The Actor-Critic neural network is introduced for each agent, and the Actor-Critic neural network includes the Actor current network, the Actor target network, the Critic current network and the Critic target network. From time slot 1 to T, the training process of the Actor-Critic neural network by the MADDPG algorithm is:
[0055] S2.1, initialize the initial state of each agent;
[0056] S2.2. For each agent i, obtain the current state s i (t), let s(t) = {s 1 (t),s 2 (t)}, each s i (t) is the input of the Actor's current network, and the action a corresponding to the Actor's current network outputi (t);
[0057] S2.3. The two agents perform their respective actions a i (t), let a(t) = {a 1 (t),a 2 (t)};
[0058] S2.4. After the action is completed, each agent receives the corresponding reward r i (t), let r(t) = {r 1 (t),r 2 (t)}, and then observe the state s of the next time slot i (t+1), let s(t+1)={s 1 (t+1),s 2 (t+1)};
[0059] S2.5, store each set of data {s(t), a(t), r(t), s(t+1)} into the experience playback buffer;
[0060] S2.6. For each agent, perform action a i (t);
[0061] S2.6.1. Extract a preset number of groups of data from the experience playback buffer and train and update the Actor-Critic neural network;
[0062] S2.6.2. For each update, use the Critic current network to calculate the Q value of the current action, update the parameters of the Critic current network by minimizing the mean square error loss function, and update the parameters of the Actor current network by using the policy gradient;
[0063] S2.7. For each agent, update the parameters of the respective Actor target network and Critic target network;
[0064] S2.8. Repeat S2.2-S2.7 until the predetermined number of training rounds is reached to obtain the trained Actor network and Critic network. Input the initial state of each intelligent agent into the trained Actor network to obtain the action corresponding to the initial state. After executing the action, observe the state of the next time slot and input it into the trained Actor network again. Repeat the operation until the action corresponding to time slots 1 to T is obtained and used as the optimal action, that is, the optimal flight position of the safety drone, the transmission power of the safety drone, the transmission power of the user, the reflection coefficient matrix of the intelligent reflection surface and the scheduling factor of each user in all time slots are obtained, as well as the optimal flight position of the eavesdropping drone in all time slots, and the optimal result is used as the optimal solution of the optimization model in the preset time period.
[0065] Compared with the prior art, the present invention has the following beneficial effects:
[0066] The security energy efficiency optimization method of this wireless communication system constructs an optimization model under the constraint that the eavesdropping drone is in a flight state, and converts the solution of the optimization model into the constraints of the optimization model for optimization to achieve the goal of maximizing security energy efficiency; considering the intelligence of the eavesdropping drone and the time-varying environment brought about by the uncontrollable maneuverability of the eavesdropping drone, MADDPG is used to solve the problem during optimization to obtain a deterministic strategy in each state, thereby reducing the noise in the exploration process and making the training results more stable. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 A flowchart of a method for optimizing the security energy efficiency of a wireless communication system according to the present invention;
[0068] Figure 2 The figure is a schematic diagram of the structure of the wireless communication system assisted by the intelligent reflective surface and the UAV of the present invention. DETAILED DESCRIPTION
[0069] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0070] It should be noted that when a component is referred to as being "connected" to another component, it may be directly connected to the other component or there may be an intermediate component. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0071] like Figure 1-Figure 2 As shown, a method for optimizing the security energy efficiency of a wireless communication system includes:
[0072] The wireless communication system includes a security drone carrying an intelligent reflective surface, an eavesdropping drone, a base station (BS Base Station) and a preset number of users (in Figure 2 Under the action of the security drone, each user communicates with the base station through the intelligent reflective surface, wherein the eavesdropping drone maintains continuous eavesdropping on each user through the intelligent reflective surface, and the security drone also sends interference signals to the eavesdropping drone.
[0073] S1. An optimization model is constructed under the constraint that the eavesdropping drone is in flight state, with the goal of maximizing the average security energy efficiency within a preset time period (1 to T), specifically including:
[0074] The objective function of the optimization model is:
[0075]
[0076] in,
[0077]
[0078] in,
[0079] R n,s (t) = [R n,b (t)-R n,e (t),0] +
[0080] in,
[0081]
[0082] in,
[0083]
[0084] in,
[0085]
[0086] Wherein, the preset time period of the wireless communication system is divided into T time slots, and each time slot is represented by t∈{1,...,T}, E(t) represents the security energy efficiency of the wireless communication system, n represents the nth user, and n∈{1,...,N}, N is the total number of users, and p n (t) represents the transmission power of the nth user in time slot t, p u (t) represents the power of the jamming signal sent by the secure UAV to the eavesdropping UAV at time slot t, R n,s (t) represents the secure communication rate between the nth user and the base station in time slot t, R n,b (t) represents the normal communication rate between the nth user and the base station in time slot t, R n,e (t) represents the eavesdropping rate of each user by the eavesdropping drone in time slot t, [x,0] + =max(0,x),α n (t) represents the scheduling factor of the nth user in time slot t, and α n (t) = 1, indicating that the nth user communicates with the base station in time slot t, α n (t) = 0, indicating that the nth user does not communicate with the base station in time slot t. represents the noise power of the base station, represents the noise power of the eavesdropping drone, h u,e (t) represents the channel gain from the secure drone to the eavesdropping drone at time slot t, G n,b (t) represents the composite channel gain from the nth user to the base station in time slot t, G n,e (t) represents the composite channel gain from the nth user to the eavesdropping drone at time slot t, h n,b (t), h n,r (t) and h r,b (t) represents the channel gains from the nth user to the base station, the nth user to the smart reflector, and the smart reflector to the base station in time slot t, H represents the conjugate transposed matrix of the complex matrix, and in represents a K×1 complex matrix, h n,e (t) represents the channel gain from the nth user to the eavesdropping drone at time slot t, h r,e (t) represents the channel gain from the smart reflective surface to the eavesdropping drone at time slot t, Θ(t) represents the reflection coefficient matrix of the smart reflector at time slot t, β k (t) represents the phase shift made by the kth reflection element in the reflection coefficient matrix of the smart reflection surface to the incident signal in time slot t, which is a real angle, β k (t)∈[0,2π], and k∈{1,...,K}, K represents the number of reflection elements in the reflection coefficient matrix of the smart reflection surface, is a complex number, j represents an imaginary unit, and Indicates plural The modulus of is 1.
[0087] Among them, the constraints of the optimization model include:
[0088] 1) The eavesdropping drone is in flight, and the flight position of the eavesdropping drone is Q e (t)Satisfy:
[0089]
[0090] in,
[0091]
[0092] 0≤v e (t)≤v e,max
[0093] 0≤θ e (t)≤2π
[0094] Among them, x e(t) represents the position of the safety drone on the x-axis at time slot t, and y e (t) represents the position of the safety drone on the y-axis at time slot t (such as establishing a rectangular coordinate system with any point on the base station as the origin), Δ t represents the length of each time slot, and at t = 1, x e (t) and y e (t) takes the preset value (set according to experience), v e (t) represents the flight speed of the eavesdropping drone at time slot t, represents the flight angle of the eavesdropping drone at time slot t, and v e,max Indicates the maximum flight speed of the eavesdropping drone.
[0095] 2) The safety drone is in flight and the flight position of the safety drone is Q u (t)Satisfy:
[0096]
[0097] in,
[0098]
[0099] 0≤v u (t)≤v u,max
[0100] 0≤θ u (t)≤2π
[0101] Among them, x u (t) represents the position of the safety drone on the x-axis at time slot t, and y u (t) represents the position of the safety drone on the y-axis at time slot t (if a rectangular coordinate system is established with any point on the base station as the origin), and at t = 1, x u (t) and y u (t) takes the preset value (set according to experience), v u (t) represents the flight speed of the safety drone at time slot t, θ u (t) represents the flight angle of the safety drone at time slot t, v u,max Indicates the maximum flight speed of the safety drone.
[0102] 3) The power constraints of the jamming signal sent by the security drone to the eavesdropping drone are satisfied:
[0103]
[0104] 4) The user's transmission power constraints meet:
[0105]
[0106] 5) The user's scheduling factor constraints are satisfied:
[0107]
[0108] 6) The phase shift constraint made by the kth reflection element in the reflection coefficient matrix of the smart reflection surface at time slot t to the incident signal satisfies:
[0109]
[0110] Among them, p u,min and p u,max represents the minimum and maximum power of the jamming signal sent by the security drone to the eavesdropping drone, p n,min and p n,max Represent the minimum and maximum transmission power of the user respectively.
[0111] S2. Use the multi-agent reinforcement learning algorithm MADDPG to solve the optimization model, obtain the optimal safety and energy efficiency optimization plan, and execute the optimal safety and energy efficiency optimization plan for optimization, including:
[0112] Converting solving the optimization model into optimizing the constraints of the optimization model;
[0113] Define the first agent to optimize the flight position of the safety drone, the transmission power of the safety drone, the transmission power of the user, the phase shift of the incident signal made by the reflection element in the reflection coefficient matrix, and the user scheduling factor within a preset time period, and the state space of the first agent in the current time slot t is s 1 (t) = {G 1,b (t),...,G N,b (t); G 1,e (t),...,G N,e (t);c u (t);c e (t)}, where c u (t) and c e (t) represent the two-dimensional coordinates of the security drone and the eavesdropping drone respectively. The action space of the first agent at the current time slot t is a 1 (t) = {θ u (t),v u (t); α 1 (t),...,α N (t); p 1 (t),...,p N (t); p u (t); β 1 (t),...,β K (t)}, the reward function of the first agent is r 1(t) = E(t);
[0114] Define the second agent to optimize the flight position of the eavesdropping drone within a preset time period, and the state space of the second agent at the current time slot t is s 2 (t) = {G 1,e (t),...,G n,e (t);c e (t)}, the action space of the second agent at the current time slot t is a 2 (t) = {θ e (t),v e (t)}, the reward function of the second agent is
[0115] The Actor-Critic neural network is introduced for each agent, and the Actor-Critic neural network includes the Actor current network, the Actor target network, the Critic current network and the Critic target network. From time slot 1 to T, the training process of the Actor-Critic neural network by the MADDPG algorithm is as follows (each round of training is from time slot 1 to T):
[0116] S2.1, initialize the initial state of each agent, that is, when t = 1;
[0117] S2.2. For each agent i, obtain the current state s i (t) (When t = 1, it is the initial state. After the current action is completed, the state of the next time slot is observed). Let s(t) = {s 1 (t),s 2 (t)}, each s i (t) is the input of the Actor's current network, and the action a corresponding to the Actor's current network output i (t);
[0118] S2.3. The two agents perform their respective actions a i (t), let a(t) = {a 1 (t),a 2 (t)};
[0119] S2.4. After the action is completed, each agent receives the corresponding reward r i (t), let r(t) = {r 1 (t),r 2 (t)}, and then observe the state s of the next time slot i (t+1), let s(t+1)={s 1 (t+1),s 2 (t+1)};
[0120] S2.5, store each set of data {s(t), a(t), r(t), s(t+1)} into the experience replay buffer (the size of the experience replay buffer is set in advance, t is 1 to T);
[0121] S2.6. For each agent, perform action a i (t);
[0122] S2.6.1. Extract a preset number of groups of data from the experience playback buffer and train and update the Actor-Critic neural network;
[0123] S2.6.2. For each update, use the Critic current network to calculate the Q value of the current action, update the parameters of the Critic current network by minimizing the mean square error loss function, and update the parameters of the Actor current network by using the policy gradient;
[0124] S2.7. For each agent, update the parameters of the respective Actor target network and Critic target network;
[0125] S2.8. Repeat S2.2-S2.7 until the predetermined number of training rounds is reached to obtain the trained Actor network and Critic network. Input the initial state of each intelligent agent (i.e., t=1) into the trained Actor network to obtain the action corresponding to the initial state. After executing the action, observe the state of the next time slot and input it into the trained Actor network again. Repeat the operation until the action corresponding to time slots 1 to T is obtained and used as the optimal action, that is, the optimal flight position of the security drone, the transmission power of the security drone, the transmission power of the user, the reflection coefficient matrix of the intelligent reflection surface and the scheduling factor of each user for all time slots (1 to T time slots) are obtained, and the optimal flight position of the eavesdropping drone for all time slots is obtained, and the optimal result is used as the optimal solution of the optimization model in the preset time period.
[0126] Figure 2 The lines in the diagram represent the communication between devices.
[0127] The security energy efficiency optimization method of this wireless communication system constructs an optimization model under the constraint that the eavesdropping drone is in a flight state, and converts the solution of the optimization model into the constraints of the optimization model for optimization to achieve the goal of maximizing security energy efficiency; considering the intelligence of the eavesdropping drone and the time-varying environment brought about by the uncontrollable maneuverability of the eavesdropping drone, MADDPG is used to solve the problem during optimization to obtain a deterministic strategy in each state, thereby reducing the noise in the exploration process and making the training results more stable.
[0128] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0129] The above-described embodiments only express the more specific and detailed embodiments described in this application, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of this application, which all belong to the protection scope of this application. Therefore, the protection scope of the patent application shall be based on the attached claims.
Claims
1. A method for optimizing the security energy efficiency of a wireless communication system, wherein the wireless communication system comprises a security drone carrying an intelligent reflective surface, an eavesdropping drone, a base station and a preset number of users, wherein each user communicates with the base station through the intelligent reflective surface under the action of the security drone, wherein the eavesdropping drone maintains continuous eavesdropping on each user through the intelligent reflective surface, and the security drone also sends an interference signal to the eavesdropping drone, wherein the method is characterized in that: The method for optimizing the security energy efficiency of the wireless communication system comprises: S1. An optimization model is constructed under the constraint that the eavesdropping drone is in flight state, with the goal of maximizing the average security energy efficiency within a preset time period; S2. Use the multi-agent reinforcement learning algorithm MADDPG to solve the optimization model, obtain the optimal safety and energy efficiency optimization plan, and execute the optimal safety and energy efficiency optimization plan for optimization.
2. The method for optimizing the security and energy efficiency of a wireless communication system according to claim 1, wherein: The objective function of the optimization model is: in, in, R n,s (t)=[R n,b (t)-R n,e (t),0] + in, in, in, Wherein, the preset time period of the wireless communication system is divided into T time slots, and each time slot is represented by t∈{1,...,T}, E(t) represents the security energy efficiency of the wireless communication system, n represents the nth user, and n∈{1,...,N}, N is the total number of users, and p n (t) represents the transmission power of the nth user in time slot t, p u (t) represents the power of the jamming signal sent by the secure UAV to the eavesdropping UAV at time slot t, R n,s (t) represents the secure communication rate between the nth user and the base station in time slot t, R n,b (t) represents the normal communication rate between the nth user and the base station in time slot t, R n,e (t) represents the eavesdropping rate of each user by the eavesdropping drone in time slot t, [x,0] + =max(0,x),α n (t) represents the scheduling factor of the nth user in time slot t, and α n (t) = 1, indicating that the nth user communicates with the base station in time slot t, α n (t) = 0, indicating that the nth user does not communicate with the base station in time slot t. represents the noise power of the base station, represents the noise power of the eavesdropping drone, h u,e (t) represents the channel gain from the secure drone to the eavesdropping drone at time slot t, G n,b (t) represents the composite channel gain from the nth user to the base station in time slot t, G n,e (t) represents the composite channel gain from the nth user to the eavesdropping drone at time slot t, h n,b (t), h n,r (t) and h r,b (t) represents the channel gain from the nth user to the base station, the nth user to the smart reflector, and the smart reflector to the base station in time slot t, H represents the conjugate transposed matrix of the complex matrix, h n,e (t) represents the channel gain from the nth user to the eavesdropping drone at time slot t, h r,e (t) represents the channel gain from the smart reflective surface to the eavesdropping drone at time slot t, Θ(t) represents the reflection coefficient matrix of the smart reflective surface at time slot t, β k (t) represents the phase shift made by the kth reflection element in the reflection coefficient matrix of the smart reflection surface to the incident signal in time slot t, which is a real angle, β k (t)∈[0,2π], and k∈{1,...,K}, K represents the number of reflection elements in the reflection coefficient matrix of the smart reflection surface, is a complex number, j represents an imaginary unit, and Indicates plural The modulus of is 1.
3. The method for optimizing the security and energy efficiency of a wireless communication system according to claim 2, wherein: The constraints of the optimization model include: The eavesdropping drone is in flight, and the flight position of the eavesdropping drone is Q e (t)Satisfy: in, 0≤v e (t)≤v e,max 0≤θ e (t)≤2π Among them, x e (t) represents the position of the safety drone on the x-axis at time slot t, and y e (t) represents the position of the safety drone on the y-axis at time slot t, Δ t represents the length of each time slot, and at t = 1, x e (t) and y e (t) takes the preset value, v e (t) represents the flight speed of the eavesdropping drone at time slot t, represents the flight angle of the eavesdropping drone at time slot t, and v e,max Indicates the maximum flight speed of the eavesdropping drone.
4. The method for optimizing the security and energy efficiency of a wireless communication system according to claim 3, wherein: The constraints of the optimization model also include: The safety drone is in flight and the flight position of the safety drone is Q u (t)Satisfy: in, 0≤v u (t)≤v u,max 0≤θ u (t)≤2π Among them, x u (t) represents the position of the safety drone on the x-axis at time slot t, and y u (t) represents the position of the safety drone on the y-axis at time slot t, and at t = 1, x u (t) and y u (t) takes the preset value, v u (t) represents the flight speed of the safety drone at time slot t, θ u (t) represents the flight angle of the safety drone at time slot t, v u,max Indicates the maximum flight speed of the safety drone.
5. The method for optimizing the security and energy efficiency of a wireless communication system according to claim 4, wherein: The constraints of the optimization model also include: The power constraints of the jamming signal sent by the security drone to the eavesdropping drone are satisfied: The user's transmission power constraint satisfies: The user's scheduling factor constraints satisfy: The phase shift constraint made by the kth reflection element in the reflection coefficient matrix of the smart reflection surface at time slot t to the incident signal satisfies: Among them, p u,min and p u,max represents the minimum and maximum power of the jamming signal sent by the security drone to the eavesdropping drone, p n,min and p n,max Represent the minimum and maximum transmission power of the user respectively.
6. The method for optimizing the security and energy efficiency of a wireless communication system according to claim 5, wherein: The multi-agent reinforcement learning algorithm MADDPG is used to solve the optimization model, obtain the optimal safety and energy efficiency optimization plan, and execute the optimal safety and energy efficiency optimization plan for optimization, including: Converting solving the optimization model into optimizing the constraints of the optimization model; The first agent is defined to optimize the flight position of the safety drone, the transmission power of the safety drone, the transmission power of the user, the phase shift of the incident signal made by the reflection element in the reflection coefficient matrix, and the user scheduling factor within a preset time period, and the state space of the first agent at the current time slot t is s1(t)={G 1,b (t),...,G N,b (t); G 1,e (t),...,G N,e (t);c u (t);c e (t)}, where c u (t) and c e (t) represent the two-dimensional coordinates of the security drone and the eavesdropping drone respectively. The action space of the first agent at the current time slot t is a1(t) = {θ u (t),v u (t); α1(t),...,α N (t); p1(t),...,p N (t); p u (t); β1(t),...,β K (t)}, the reward function of the first agent is r1(t)=E(t); The second agent is defined to optimize the flight position of the eavesdropping drone within a preset time period, and the state space of the second agent at the current time slot t is s2(t) = {G 1,e (t),...,G n,e (t);c e (t)}, the action space of the second agent at the current time slot t is a2(t) = {θ e (t),v e (t)}, the reward function of the second agent is The Actor-Critic neural network is introduced for each agent, and the Actor-Critic neural network includes the Actor current network, the Actor target network, the Critic current network and the Critic target network. From time slot 1 to T, the training process of the Actor-Critic neural network by the MADDPG algorithm is: S2.1, initialize the initial state of each agent; S2.
2. For each agent i, obtain the current state s i (t), let s(t)={s1(t),s2(t)}, and replace each s i (t) is the input of the Actor's current network, and the action a corresponding to the Actor's current network output i (t); S2.
3. The two agents perform their respective actions a i (t), let a(t)={a1(t),a2(t)}; S2.
4. After the action is completed, each agent receives the corresponding reward r i (t), let r(t) = {r1(t), r2(t)}, and then observe the state s of the next time slot i (t+1), let s(t+1)={s1(t+1),s2(t+1)}; S2.5, store each set of data {s(t), a(t), r(t), s(t+1)} into the experience playback buffer; S2.
6. For each agent, perform action a i (t); S2.6.
1. Extract a preset number of groups of data from the experience playback buffer and train and update the Actor-Critic neural network; S2.6.
2. For each update, use the Critic current network to calculate the Q value of the current action, update the parameters of the Critic current network by minimizing the mean square error loss function, and update the parameters of the Actor current network by using the policy gradient; S2.
7. For each agent, update the parameters of the respective Actor target network and Critic target network; S2.
8. Repeat S2.2-S2.7 until the predetermined number of training rounds is reached to obtain the trained Actor network and Critic network. Input the initial state of each intelligent agent into the trained Actor network to obtain the action corresponding to the initial state. After executing the action, observe the state of the next time slot and input it into the trained Actor network again. Repeat the operation until the action corresponding to time slots 1 to T is obtained and used as the optimal action, that is, the optimal flight position of the safety drone, the transmission power of the safety drone, the transmission power of the user, the reflection coefficient matrix of the intelligent reflection surface and the scheduling factor of each user in all time slots are obtained, as well as the optimal flight position of the eavesdropping drone in all time slots, and the optimal result is used as the optimal solution of the optimization model in the preset time period.
