Dynamic spectrum and power control method based on cyclic Flash reinforcement learning
By adopting the deep reinforcement learning framework of cyclic Flash structure in dynamic spectrum access and power control, combined with the cyclic memory module and dual-head output architecture, the problems of insufficient robustness and adaptability in the existing technology are solved, and spectrum resources are realized. Efficient utilization and improvement of communication quality.
Patent Information
- Application Number
- CN202410823402.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-29
AI Technical Summary
Existing dynamic spectrum access and power control methods lack robustness and adaptability, especially in dynamic wireless network environments, and deep learning-based methods have poor timing memory capabilities and are difficult to effectively handle discrete and continuous actions within a unified framework. .
A deep reinforcement learning framework based on the cyclic Flash structure is used to design a decentralized deep reinforcement learning environment. Combining the cyclic memory module and the Flash structure, a ReF-RL framework is constructed to simultaneously optimize spectrum sensing, access and transmission power allocation. Using The dual-head output architecture handles discrete and continuous actions and enhances temporal memory capabilities for parts of the observable environment.
Significantly improve spectrum utilization efficiency and system performance, achieve joint optimization of spectrum access and power control, enhance the understanding and adaptability of agents to environmental dynamics, improve communication quality and energy efficiency, and solve the problem of low spectrum resource utilization. question.
Smart Images

Figure CN118870549A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of wireless communications, and in particular relates to a dynamic spectrum access and power control method based on cyclic Flash reinforcement learning. Background Art
[0002] Radio spectrum is a precious and limited natural resource that requires careful management and allocation. The traditional approach to spectrum resource allocation is to divide the spectrum into specific frequency bands and issue exclusive licenses to operators. However, this static allocation method leads to inefficient spectrum utilization. Even if the primary licensee does not use the spectrum resources temporarily, secondary users cannot access the allocated frequency bands, resulting in a waste of spectrum resources and seriously hindering the further development of communication technology. The problem of inefficient wireless spectrum utilization has prompted us to seek more flexible spectrum management strategies to meet the rapid growth of communication needs brought about by the Internet of Things (IoT) revolution. Implementing dynamic spectrum access (DSA) on a cognitive radio (CR) platform is considered to be a promising solution. By allowing more dynamic access to limited spectrum resources, DSA technology can significantly improve spectrum utilization efficiency. However, although the introduction of DSA has helped alleviate the problem of spectrum shortage, its widespread application in broadcasting, automotive, medical and radio communications has led to the increasing saturation of available frequency bands. In order to further expand the capacity of wireless communication systems, researchers are actively studying and developing new spectrum resources. As the spectrum resources available for DSA continue to expand, the demand for spectrum continues to exceed the supply. Therefore, further improving the efficiency of the dynamic spectrum access algorithm and fully tapping the potential of DSA are crucial to alleviating the "spectrum drought" and supporting the development of future communication technologies.
[0003] In order to overcome the inherent limitations of traditional DSA algorithms, researchers have turned their attention to machine learning and deep learning technologies. He Jiang et al. proposed a DSA method based on graph neural networks, applied to femtocell networks, showing higher efficiency and scalability than traditional algorithms. T. Nawaz and A. Alzahrani developed a machine learning-based periodic spectrum analysis method for signal classification and interference detection. W. Lee et al. proposed a collaborative spectrum sensing framework based on convolutional neural networks for detecting primary users, so that perception can be adaptively adjusted according to environmental changes without the need for explicit mathematical modeling.
[0004] Deep reinforcement learning (DRL) technology has shown significant potential in the field of dynamic spectrum access (DSA). For example, S. Bhandari et al. used deep Q-network (DQN) to achieve multi-channel access in an uncertain environment, and Hao Song et al. achieved fully decentralized spectrum access through distributed DRL. The DRL algorithm enables devices to adapt to changing conditions in real time by autonomously learning from environmental feedback. However, spectrum selection is only a key part of the complex problem of DSA. Actual communication systems also need to effectively manage transmission power, control data rates, and mitigate interference, which is particularly important for sensitive applications such as medical implants. Transmission power management brings a dual challenge, which not only affects the energy consumption of the device itself, but may also cause interference to other devices sharing the communication space.
[0005] Although the above methods have made some progress, they still have some limitations. Traditional DSA methods often lack the necessary robustness and adaptability, especially when faced with the unpredictability of dynamic wireless networks. Deep learning-based methods rely on a large amount of labeled data for training, which may be difficult to collect and may limit system performance and flexibility if the data quality is poor. Reinforcement learning-based methods have poor temporal memory capabilities and either focus only on power control or discretize the action space to combine with spectrum selection, which cannot effectively handle discrete and continuous actions in a unified framework. Summary of the invention
[0006] In view of the limitations of existing dynamic spectrum access and power control methods, the present invention proposes an innovative solution based on cyclic Flash structure reinforcement learning. The present invention designs an advanced decentralized deep reinforcement learning (RL) environment, which uniquely optimizes spectrum sensing, access and transmission power allocation in one operation without discretizing the action space. In addition, the present invention designs the state space, action space, transition dynamics and reward function to accurately reflect the random characteristics of the wireless spectrum environment. More importantly, the present invention proposes a dual-head output architecture that is compatible with most actor-critic (AC based) algorithms, which greatly simplifies the processing flow of dynamic spectrum and power control. At the same time, in order to enhance the time memory ability of part of the observable environment and enable the intelligent agent to better understand and adapt to the dynamics of the environment, the present invention innovatively proposes a cyclic Flash (ReF) architecture. ReF cleverly combines the cyclic memory module with the Flash structure as the representation learning layer of the deep reinforcement learning algorithm. By seamlessly integrating the ReF architecture with the deep reinforcement learning algorithm, the present invention constructs the ReF-RL framework. Applying this framework to a hybrid dynamic spectrum access environment can achieve joint optimization of spectrum access and power control, significantly improving spectrum utilization efficiency and system performance. The ReF-RL framework of the present invention provides a new idea and effective technical means for solving the complex problem of dynamic spectrum management.
[0007] In order to achieve the above object, the specific technical scheme of the present invention is as follows:
[0008] The method for dynamic spectrum access and power control in wireless communication based on cyclic Flash reinforcement learning includes the following steps:
[0009] Step (1) Construction of decentralized deep reinforcement learning environment
[0010] A hybrid dynamic spectrum access (DSA) environment is constructed where N secondary users (SUs) compete for access to M channels without centralized control. Each channel is assigned to a primary user (PU) with exclusive usage rights to avoid cross interference, creating a dynamic environment where channel availability depends on the activity of the PU. SUs are able to sense channel occupancy but may face perception errors, resulting in inaccurate assessments. When PUs are inactive, SUs can access them concurrently, potentially inducing interference between them.
[0011] If the SU makes a decision to interfere with the PU based on wrong perception, this will not only damage the communication quality but also trigger penalties. The state of each channel is determined by the PU activity and is modeled as a Markov process whose transition probabilities reflect the stochastic nature of the PU behavior.
[0012] Each user pair consists of a transmitting unit (T) and a receiving unit (R). The task of the SU is not only to select the channel, but also to determine the appropriate transmission power within the constraints of its remaining energy reserves, which are gradually depleted over time. To navigate this complex environment, the SU must strategically balance the immediate rewards of successful communication with the long-term consequences of energy depletion and the risk of causing interference.
[0013] For the convenience of analysis, the hybrid DSA environment is mapped onto a two-dimensional plane. The symbol P represents the set of locations of all devices. For the nth SU, the locations of the receiver and transmitter are represented by and Similarly, the receiver and transmitter of the mth PU are represented by and express.
[0014] The indices n and m belong to the sets {1,2,...,N} and {1,2,...,M} respectively, where N and M correspond to the total number of SUs and PUs.
[0015]
[0016] in and Represent the position of the nth SU and the position of the mth PU respectively. After each communication, the receiver and transmitter of the SU may change their positions due to mobility. The updated coordinates of the receiver and transmitter of the nth SU are given by (x new ,y new ) is expressed as follows, calculated according to formula (2):
[0017]
[0018] Where (x old ,y old ) represents the original coordinates before moving, v n represents the speed, θ n is the moving direction, and t is the duration of the communication. n and θ n are randomly sampled to introduce variability in SU mobility patterns.
[0019] According to the characteristics of the above environment, the present invention selects the WINNER II channel model to estimate the path loss based on large-scale parameters:
[0020]
[0021] where f c represents the channel frequency, d represents the communication distance, PL(d0), A w , B wThey are the path loss, path loss exponent and frequency dependence factor of the reference distance. After determining the basic path loss, the Rician channel model is further used to finely describe the signal propagation. The Rician model regards the received signal as a combination of a line-of-sight (LoS) component and multiple non-line-of-sight (NLoS) scattered components. The Rician channel coefficient h is expressed as:
[0022]
[0023] where g r and g t are the gains of the receiving and transmitting antennas, respectively, represents the LoS component, χ1 is sampled from the uniform distribution U(0,1). χ2 describes the NLoS component, sampled from the circularly symmetric Gaussian distribution N(0,10 -PL ) is sampled.
[0024] In a hybrid DSA environment, the signal received by the nth SU on the mth channel consists of the following components. The desired signal from the SU’s own transmitter is combined with the PU of the mth channel and interference from other SUs operating on the same channel. In addition, the signal is perturbed by additive white Gaussian noise (AWGN), a common model of background noise in communication systems. These components enable the calculation of the signal-to-interference-plus-noise ratio (SINR) of the nth SU receiver, a key metric for evaluating communication quality, as follows:
[0025]
[0026] Where n and k index the SU, and m is the index of the PU. and They represent the transmission power of the nth SU, the mth PU and the kth SU on the mth channel respectively. B is the channel bandwidth, N m is the noise power spectral density. represents the gain of the nth SU and the mth PU on the mth channel, represents the signal path loss between the nth SU and the mth PU. represents the gain of the m-th SU and the m-th PU on the m-th channel, represents the signal path loss between the mth SU and the mth PU. represents the gain of the m-th SU and the k-th PU on the m-th channel, represents the signal path loss between the mth SU and the kth PU.
[0027] Using Shannon's channel capacity theorem, the data rate ρ of the nth SU on the mth channel is defined as:
[0028] ρn =log2(1+SINR n ) (6)
[0029] After a communication interaction, the energy state of the SUs needs to be updated to reflect the consumption during the transmission. This update is represented by the following equation:
[0030]
[0031] in is the residual energy of the nth SU before communication interaction, is the remaining energy after the update. It is worth noting that when the energy parameter decreases to zero or lower, subsequent communication becomes infeasible.
[0032] In order to be applicable to deep reinforcement learning algorithms, the hybrid dynamic spectrum access (DSA) problem is formalized as a distributed partially observable Markov decision process consisting of a six-tuple Definition, where represents the state space, represents the action space of the nth secondary user, T is the state transition function, is the reward function for the nth secondary user, is the observation space of the nth secondary user, and Ω is the observation function. At each time step t, the secondary user (SU) agent in the environment observes the state Select Action Receive Rewards and transfer to the next state s t+1 ~T(s t ,a t ). Under partial observability, the SU agent in a hybrid DSA environment must infer the true state based on its observations to make optimal decisions and interact with the channel primary user (PU).
[0033] State Space Including the device position P, the main channel state CS and the remaining energy E of SU:
[0034]
[0035] Where CS∈{0,1}, 0 means the channel is idle, 1 means the channel is busy. E represents the remaining energy of SU.
[0036] Observation Space Provides local observations of the nth SU agent, including its own position Main channel status and its own residual energy e n :
[0037]
[0038] in, is the state of the mth channel observed by the nth SU, e n is the residual energy of the nth SU.
[0039] Action Space Allows selection of a channel c n and the transmission power w n :
[0040]
[0041] Among them, the selected channel c n is discrete, and the transmission power w n is continuous.
[0042] State transfer function: T uses a random model to describe channel dynamics, user mobility, and energy consumption. The channel state and position changes of stimulus user pairs are obtained by random sampling from a uniform distribution.
[0043] Observation function: Ω associates the true channel state with the observed value according to the perceived error probability δ, with noise. It is defined as follows:
[0044]
[0045] Among them, I(·) is the indicator function, U follows the uniform distribution U~Uniform(0,1), and δ is the threshold of perception error.
[0046] Reward function: It balances communication quality and energy usage, penalizing idle slots, interference, and battery depletion while rewarding throughput and efficiency. It provides a reward for each step based on the state, action, channel conditions, and two hyperparameters α and β. α is a trade-off parameter and β adjusts the impact of energy consumption. The definitions in different scenarios are as follows:
[0047] a. No channel is selected or interference occurs with active primary users: It is expressed as two different negative constants, representing the penalties for unexpected events.
[0048] b. Communicate through idle channels: Use the following formula to calculate:
[0049]
[0050] c. Collision-free communication: Add additional reward constants to strengthen the appeal of this outcome.
[0051] For stage penalties Let ξ be the battery capacity, e n is the remaining energy of the nth SU. Using the binary indicator I i Track n Is it below the i-th threshold? Stage penalty The calculation of is as follows:
[0052]
[0053] Among them, e max is the total power consumption of secondary users, r p is a predefined penalty constant. When the energy e n When it falls below a certain threshold, the penalty According to the above definition, the expected cumulative discounted reward of the nth SU starting from time step t within a finite time step T is expressed as:
[0054]
[0055] Among them, 0<γ<1 is the discount factor, and the goal is to find a strategy π * , which maximizes the expected reward at the beginning of an cycle:
[0056]
[0057] in, is G when t = 0 t n Special case, argmax is to find the maximum value that meets the requirements, Represents the mathematical expectation under any strategy π.
[0058] This hybrid action space control problem of partially observable power control and spectrum selection is challenging for dynamic programming but amenable to deep reinforcement learning. We adopt a fully decentralized approach assuming that each agent learns independently in the environment to solve this problem.
[0059] Step (2) Representation learning method based on cyclic flash
[0060] At each time step t, the observation o and reward r of the SU only contain immediate information. However, useful information can be obtained from global and historical patterns, such as periodic environmental changes or past performance on a certain channel. Integrating these temporally related factors can improve the adaptability and efficiency of wireless devices. A large number of existing works use the Transformers structure as the representation learning infrastructure, but it requires a lot of computing and memory space to store state transformation history information, which greatly damages the scalability of the algorithm.
[0061] To solve these problems, this paper proposes a representation learning method called Recurrent Flash, which combines the Flash architecture with the recursive idea. The Flash structure is mainly composed of a gated attention unit (GAU), which first converts the input sequence into non-overlapping blocks for operation, then applies local secondary attention within each block, and uses a global attention mechanism across blocks to capture long-range dependencies. Secondary Bond Linear Query and linear keys Finally, the calculation of GAU is divided into two parts. First, the local attention of each block is calculated.
[0062]
[0063] Where V g Represent the values of the block input sequence, and b is the bias term. Then global linear attention is used to summarize the information of all blocks:
[0064]
[0065] in is the output of the global prior attention, G is the total number of multi-head attention heads, It is a multi-head linear key, V h These outputs are combined and gated before the final projection:
[0066]
[0067] Among them, g It is Flash structure output, U g is the intermediate output of the gating mechanism, W o is the output projection matrix, and ⊙ represents the element-by-element multiplication. By doing so, GAU thus reduces the computational complexity while retaining the Transformer's ability to capture long-distance interactions. The Transformer model built on the linear version of GAU is the core Flash model used for representation learning in this step.
[0068] The representation learning process based on cyclic Flash is as follows: given a step window, the Flash structure uniformly represents the historical interaction information within the window as past tokens Historical interaction information outside the window will be compressed into memory tokens By interacting with the environment in step (1) in real time, the current observation state of the secondary user is obtained and mapped to the current token After concatenating all the information and performing position encoding, we can get the input of the Flash structure:
[0069]
[0070] Among them, the symbol Represents a tensor connection operation. After the input is processed by the Flash layer, the output is obtained in The representation output obtained by the Flash structure has a sequence length equal to the sum of the lengths of the past token and the current token. The first token of is used as input to step (3). As part of the updated memory token, it is recycled as part of the next input sequence, allowing the network to maintain a compact history of past states. The memory token acts as a memory mechanism, storing historical neural network states, while the current token captures immediate observations, actions, and rewards.
[0071] The Recurrent Flash-based representation learning approach allows minimal modifications to existing deep reinforcement learning algorithms to improve performance without introducing additional complexity, retaining the advantages of temporal insights while avoiding the scalability issues of previous Transformer-based representation learning approaches.
[0072] Step (3) Dual-head output deep reinforcement learning algorithm
[0073] In traditional methods, deep reinforcement learning requires discretization of continuous power control or the use of two sets of algorithms to separately process it and dynamic spectrum access. The present invention designs a dual-head architecture, which aims to seamlessly adapt to the existing Actor-Critic (AC)-based deep reinforcement learning algorithm, so that it can process discrete spectrum access and continuous power control actions in a unified manner. After obtaining the representation information learned by the Flash structure in step (2), it is passed into the AC-based deep reinforcement learning algorithm to obtain the algorithm intermediate variables. At this time, the dual-head output deep reinforcement learning algorithm separates the output layer into a discrete output layer and a linear output layer, and outputs the power size and specific channel that the secondary user should select for this interaction. Among them, the dual-head architecture eliminates the need to discretize the power action through a softmax discrete head that calculates the spectrum access probability and a continuous head that outputs the mean and standard deviation of the power control action. This method promotes efficient discrete-continuous action parallel sampling and promotes effective learning. KL divergence is the key to the calculation of the loss function of the AC-based deep reinforcement learning algorithm. The present invention uniquely defines the KL divergence calculation method for discrete and continuous actions. The formula is as follows:
[0074]
[0075] Among them, KL1 represents the discrete action KL divergence, and represent the discrete channel action probability distributions of the target and online policy networks, respectively.
[0076]
[0077] Among them, KL2 represents the continuous action KL divergence, μ′ and μ represent the means of the probability distribution of continuous power actions, σ′ and σ represent the standard deviations, which are represented by normal distributions N(μ′,σ′) and N(μ,σ) respectively. The overall KL divergence of the algorithm consists of the sum of two parts:
[0078] KL=KL1+KL2 (23)
[0079] By integrating KL divergence into the loss function calculation of the AC-based deep reinforcement learning algorithm and optimizing the algorithm iteratively, the secondary user can obtain the optimal communication strategy in the mixed action spectrum access environment through continuous learning. This strategy can achieve extremely high communication quality while ensuring low energy consumption.
[0080] Beneficial effects of the present invention:
[0081] 1. This paper proposes an innovative deep reinforcement learning framework to solve the optimization problem in hybrid dynamic spectrum access. Unlike previous methods, this paper models the problem as a distributed partially observable Markov decision process and designs a practical reinforcement learning interaction environment. By simultaneously optimizing discrete channel selection and continuous power allocation under a unified framework, this paper overcomes the limitations of existing methods and achieves efficient utilization of spectrum resources.
[0082] 2. The Recurrent Flash Reinforcement Learning (ReF-RL) framework proposed in this invention cleverly combines ReF with deep reinforcement learning, giving secondary users the ability to make intelligent decisions based on local observations. The recurrent memory module enhances the agent's understanding and adaptability to environmental dynamics, enabling it to make optimal decisions in a complex and changing radio environment. The application of the ReF-RL framework not only improves the communication quality of secondary users, but also significantly improves the energy efficiency of the system, which not only helps to alleviate the increasingly serious "spectrum famine" problem, but also provides new ideas and impetus for the development of future communication technologies.
[0083] 3. The present invention makes full use of the advantages of deep reinforcement learning and recurrent neural networks to build a unified framework to deal with multiple key issues in dynamic spectrum access. Through the application of the present invention, the utilization efficiency of wireless spectrum resources can be significantly improved, a wider range of dynamic spectrum access activities can be supported, and the rapidly changing wireless network environment can be adapted.
[0084] 4. Compared with the prior art, the method of the present invention not only optimizes the allocation of spectrum and power, significantly improves the communication quality and energy efficiency, but also enhances the adaptability to dynamic changes in the wireless environment by cleverly combining historical information and real-time observation, making the decision more accurate and efficient. The method proposed in the present invention is universal and scalable, and can be applied to various wireless communication scenarios to promote the further development of cognitive radio and intelligent spectrum management. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] Figure 1 It is the overall architecture diagram of the present invention.
[0086] Figure 2 It is a framework diagram of the present invention for realizing reinforcement learning based on a cyclic Flash structure.
[0087] Figure 3 It is the overall flow chart of the present invention. DETAILED DESCRIPTION
[0088] The specific implementation of the present invention is further explained in conjunction with the accompanying drawings and technical solutions. Figure 1 The overall framework diagram of the dynamic spectrum access and power control method in wireless communication based on cyclic Flash reinforcement learning of the present invention is shown in FIG. Figure 2 The overall flow chart of the model is shown in Figure 3 shown.
[0089] The specific embodiments of the present invention are mainly described in detail below:
[0090] (1) Simulation environment settings. The number of primary users in the environment is set to M = 6, the number of secondary users is set to N = 2, the user activity space is 150 m long and 150 m wide, the channel communication bandwidth is B = 20 MHz, and the noise spectrum density is N m =-147dBm, channel frequency f c =5GHz, transmission antenna gain g t =20, receiving antenna gain g r =20, the reference distance path loss is PL(d0)=41, and the path loss index is A w =22.7, the path loss spectrum dependence factor is B w =20.
[0091] (2) Training of reinforcement learning algorithm based on cyclic Flash structure. First, initialize the policy network and value network in the cyclic Flash structure and its supporting Actor-Critic based reinforcement learning algorithm. The algorithm adopts the policy-based maximum a posteriori probability optimization algorithm (VMPO) after dual-head modification. The output layer of the policy network includes a discrete output head for processing discrete actions and a continuous output head for continuous actions. The network structure consists of a linear layer plus an activation layer. The input dimension of the cyclic Flash structure is 68, and the intermediate hidden layer and output dimensions are both 128; the input dimension of the policy network and the value network is 128, the intermediate hidden layer dimension is 128, the output dimension of the discrete output head is 6, the output dimension of the continuous output head is 1, and the output dimension of the value network is 1. The cyclic Flash structure uses the SiLU activation function, and the policy network and the value network use the ReLU activation function. It is also necessary to initialize the historical tokens and past tokens in the cyclic Flash structure, the token dimension is 128, and initialize a replay pool of the reinforcement learning algorithm. The learning rate of the neural network is set to 0.00004, the maximum number of training cycles is 1200, and the maximum number of interactions per cycle is 600.
[0092] After initialization, the agent begins interactive training with the environment. At each time step, the agent observes the current state of its environment, including its own position, available channel status, and remaining power, etc. This information is the basis for the agent's decision. The agent embeds the observed information, maps it to the token dimension, and combines it with the current token, and combines it with the memory token and the past token to generate an input sequence, which is input into the cyclic Flash structure to obtain a representation of the environment. This representation is then passed to the policy network, which selects the optimal channel through the discrete output head, while the continuous output head determines the corresponding transmission power. This dual-head output mechanism enables the agent to process discrete and continuous action spaces simultaneously, thereby more finely adjusting the channel selection and power adjustment during the communication process. At the same time, the representation is also passed to the value network to estimate the value of the current state of the environment.
[0093] The agent will continue this process until the remaining energy is exhausted or the number of interactions reaches 500. The interaction information will be stored in the replay pool. Once the number of interactions exceeds 300, the agent will extract sample data from the replay pool, calculate the loss function, and update the parameters of the cyclic Flash structure, policy network, and value network through the stochastic gradient descent method. As the training cycle deepens, the performance of the agent gradually improves. When it reaches the 1200th training cycle, the two secondary users can achieve an average cycle return of 5.5, and the number of interactions in a single cycle can reach a maximum of 600 times. In addition, the collision probability between the two secondary users is reduced to 0%, the interference probability to the primary user is controlled at 6%, and the optimal communication rate without collision reaches 94%.
[0094] The training process uses Python and PyTorch framework to build and train neural network models, effectively achieving efficient parameter optimization and network training.
Claims
1. Dynamic spectrum access and power control method in wireless communication based on cyclic flash reinforcement learning, It is characterized in that The steps include: Step (1) Construction of decentralized deep reinforcement learning environment A hybrid dynamic spectrum access (DSA) environment is constructed, in which N secondary users (SUs) compete for access to M channels without centralized control; each channel is assigned to a primary user (PU) with exclusive use rights to avoid cross-interference, thus creating a dynamic environment where channel availability depends on the activity of the PU; secondary users are able to sense channel occupancy but may face perception errors, resulting in inaccurate assessments; when PUs are inactive, SUs can access them concurrently, potentially inducing interference between them; If the SU makes a decision to interfere with the PU based on wrong perception, this will not only damage the communication quality but also trigger penalties; the state of each channel is determined by the PU activity and is modeled as a Markov process whose transition probability reflects the randomness of the PU behavior; Each user pair consists of a transmitting unit T and a receiving unit R; the task of the SU is not only to select the channel, but also to determine the appropriate transmission power within the constraints of its remaining energy reserves, which are gradually depleted over time; The hybrid DSA environment is mapped onto a two-dimensional plane; the symbol P represents the set of locations of all devices; for the nth SU, the locations of the receiver and transmitter are represented by and Similarly, the receiver and transmitter of the mth PU are represented by and Indicates that the indexes n and m cover the sets {1,2,...,N} and {1,2,...,M} respectively, where N and M correspond to the total number of SUs and PUs; in and Represent the position of the nth SU and the position of the mth PU respectively. After each communication, the receiver and transmitter of the SU may change their positions due to mobility; the updated coordinates of the receiver and transmitter of the nth SU are given by (x new ,y new ) is expressed as follows, calculated according to formula (2): Where (x old ,y old ) represents the original coordinates before moving, v n represents the speed, θ n is the moving direction, t is the duration of the communication; v n and θ n are randomly sampled to introduce variability in SU mobility patterns; The WINNER II channel model is selected to estimate the path loss based on large-scale parameters: where f c represents the channel frequency, d represents the communication distance, PL(d 0 ), A w , B w They are the path loss, path loss index and frequency dependence factor of the reference distance. After determining the basic path loss, the Rician channel model is further used to finely describe the signal propagation. The Rician model regards the received signal as a combination of the line-of-sight LoS component and multiple non-line-of-sight NLoS scattered components. The Rician channel coefficient h is expressed as: where g r and g t are the gains of the receiving and transmitting antennas, respectively, represents the LoS component, χ 1 Sampling from uniform distribution U(0,1); χ 2 Describe the NLoS component, from the circularly symmetric Gaussian distribution N(0,10 -PL ) in the sample; In a hybrid DSA environment, the signal received by the nth SU on the mth channel consists of the following components; the desired signal from the SU’s own transmitter combined with the PU of the mth channel and interference from other SUs operating on the same channel; in addition, the signal is perturbed by additive white Gaussian noise; the signal-to-interference-plus-noise ratio (SINR) at the nth SU receiver is calculated as follows: Where n and k index the SU, and m is the index of the PU; where, and denote the transmission power of the nth SU, the mth PU and the kth SU on the mth channel respectively; B is the channel bandwidth, N m is the noise power spectral density; represents the gain of the nth SU and the mth PU on the mth channel, represents the signal path loss between the nth SU and the mth PU; represents the gain of the m-th SU and the m-th PU on the m-th channel, represents the signal path loss between the mth SU and the mth PU; represents the gain of the m-th SU and the k-th PU on the m-th channel, represents the signal path loss between the mth SU and the kth PU; Using Shannon's channel capacity theorem, the data rate ρ of the nth SU on the mth channel is defined as: ρ n log 2 (1+SINR n ) (6) After a communication interaction, the energy state of the SUs needs to be updated to reflect the consumption during the transmission; this update is represented by the following equation: in is the residual energy of the nth SU before communication interaction, is the remaining energy after renewal; In order to be suitable for deep reinforcement learning algorithms, the hybrid dynamic spectrum access DSA problem is formalized as a distributed partially observable Markov decision process consisting of a six-tuple Definition, where represents the state space, represents the action space of the nth secondary user, T is the state transition function, is the reward function for the nth secondary user, is the observation space of the nth secondary user, Ω is the observation function; at each time step t, the secondary user (SU) agent in the environment observes the state Select Action Receive Rewards and transfer to the next state s t+1 ~T(s t ,a t ); Under partial observability, the SU agent in the hybrid DSA environment must infer the true state based on its observations to make optimal decisions and interact with the channel primary user PU; State Space Including the device position P, the main channel state CS and the remaining energy E of SU: Where CS∈{0,1}, 0 means the channel is idle, 1 means the channel is busy; E represents the remaining energy of SU; Observation Space Provides local observations of the nth SU agent, including its own position Main channel status and its own residual energy e n : in, is the state of the mth channel observed by the nth SU, e n is the residual energy of the nth SU; Action Space Allows selection of a channel c n and the transmission power w n : Among them, the selected channel c n is discrete, and the transmission power w n is continuous; State transfer function: T uses a random model to describe channel dynamics, user mobility, and energy consumption; the channel state and position changes of stimulus user pairs are obtained by random sampling on a uniform distribution; Observation function: Ω associates the true channel state with the observed value according to the perceived error probability δ, with noise; it is defined as follows: Among them, I(·) is the indicator function, U follows the uniform distribution U~Uniform(0,1), and δ is the threshold of perception error; Reward function: It balances communication quality and energy usage, penalizing idle time slots, interference, and battery depletion while rewarding throughput and efficiency; It provides a reward for each step based on the state, action, channel conditions, and two hyperparameters α and β. α is a trade-off parameter, and β adjusts the impact of energy consumption. The definitions in different scenarios are as follows: a. No channel is selected or interference occurs with active primary users: It is expressed as two different negative constants, representing the penalties for undesirable events; b. Communicate through idle channels: Use the following formula to calculate: c. Collision-free communication: Add additional reward constants to strengthen the appeal of this result; For stage penalties Let ξ be the battery capacity, e n is the remaining energy of the nth SU; using the binary indicator I i Track n Is it below the i-th threshold? Stage penalty The calculation of is as follows: Among them, e max is the total power consumption of secondary users, r p is a predefined penalty constant; when the energy e n When it falls below a certain threshold, the penalty will gradually increase; according to the above definition, the expected cumulative discounted reward of the nth SU starting from time step t within a finite time step T is expressed as: Among them, 0<γ<1 is the discount factor, and the goal is to find a strategy π * , which maximizes the expected reward at the beginning of an cycle: in, is when t = 0 Special case; argmax is the maximum value that satisfies the requirements. represents the mathematical expectation under any strategy π; Step (2) Representation learning method based on cyclic flash The Flash structure is mainly composed of gated attention units (GAUs). GAUs first convert the input sequence into non-overlapping blocks for operation, then apply local secondary attention within each block, and use global attention mechanism across blocks to capture long-range dependencies. Secondary Bond Linear Query and linear keys Finally, the calculation of GAU is divided into two parts; first, the local attention of each block is calculated Where V g They represent the values of the block input sequence, and b is the bias term; then global linear attention is used to summarize the information of all blocks: in is the output of the global prior attention, G is the total number of multi-head attention heads, It is a multi-head linear key, V h are multi-head linear values; these outputs are combined and gated before the final projection: Among them, g It is Flash structure output, U g is the intermediate output of the gating mechanism, W o is the output projection matrix, ⊙ represents the element-by-element multiplication; the Transformer model built based on the linear version of GAU is the Flash model used for representation learning; The representation learning process based on cyclic Flash is as follows: given a step window, the Flash structure uniformly represents the historical interaction information within the window as past tokens Historical interaction information outside the window will be compressed into memory tokens By interacting with the environment in step (1) in real time, the current observation state of the secondary user is obtained and mapped to the current token After concatenating all the information and performing position encoding, we can get the input of the Flash structure: Among them, the symbol Represents a tensor connection operation; after the input is processed by the Flash layer, the output is obtained in The representation output obtained by the Flash structure has a sequence length equal to the sum of the lengths of the past token and the current token; The first token of is used as the input of step (3), As part of the updated memory token, it is recycled as part of the next input sequence, allowing the network to maintain a compact history of past states; the memory token acts as a memory mechanism to store historical neural network states, while the current token captures immediate observations, actions, and rewards; Step (3) Dual-head output deep reinforcement learning algorithm Design a dual-head architecture for Actor-Critic (AC) based deep reinforcement learning algorithm to handle discrete spectrum access and continuous power control actions in a unified manner; After obtaining the representation information learned by the Flash structure in step (2), it is passed into the AC-based deep reinforcement learning algorithm to obtain the intermediate variables of the algorithm; at this time, the dual-head output deep reinforcement learning algorithm separates the output layer into a discrete output layer and a linear output layer, and outputs the power size and specific channel that the secondary user should choose for this interaction respectively; wherein, the dual-head architecture eliminates the need to discretize the power action through a softmax discrete head that calculates the spectrum access probability and a continuous head that outputs the mean and standard deviation of the power control action; KL divergence is the key to the loss function calculation of the AC-based deep reinforcement learning algorithm. It defines the calculation method of KL divergence for discrete and continuous actions; the formula is as follows: Among them, KL 1 represents the discrete action KL divergence, and represent the discrete channel action probability distributions of the target and online policy networks, respectively; Among them, KL 2 represents the KL divergence of continuous actions, μ′ and μ represent the means of the probability distribution of continuous power actions, σ′ and σ represent the standard deviations, which are represented by normal distributions N(μ′,σ′) and N(μ,σ) respectively; the overall KL divergence of the algorithm consists of the sum of two parts: CL=CL 1 +KL 2 (23) The KL divergence is integrated into the loss function calculation of the AC-based deep reinforcement learning algorithm, and through algorithm iterative optimization, the secondary user obtains the optimal communication strategy in the mixed action spectrum access environment through continuous learning; this strategy can achieve extremely high communication quality while ensuring low energy consumption.
Citation Information
Cited By
Dynamic spectrum access method based on attention mechanism and echo state network
CN120263321A
A Dynamic Spectrum Access Method Based on Attention Mechanism and Echo State Network
CN120263321B
