A cognitive vehicle networking spectrum allocation method under uncertain service demand environment
By constructing a cognitive vehicle network system model and a multi-agent reinforcement learning algorithm, and combining graph neural networks to optimize spectrum allocation strategies, the problems of heterogeneous service demands and network topology changes in the Internet of Vehicles were solved, achieving efficient spectrum utilization and improved QoS satisfaction.
Patent Information
- Application Number
- CN202611288178.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-24
- Publication Date
- 2026-11-27
AI Technical Summary
In the Internet of Vehicles (IoV) environment, heterogeneous service demands are highly dynamic and difficult to meet uniformly. The network topology is highly dynamic and coupled with interference from multiple agents. Existing spectrum allocation methods are unable to simultaneously meet the strong QoS constraints of various secure and insecure services, and the system spectrum utilization and overall QoS satisfaction rate are low.
A cognitive vehicle network system model is constructed. Combining graph neural networks and multi-agent reinforcement learning algorithms, the spectrum allocation strategy is optimized through a partially observable Markov decision process. Considering multi-dimensional QoS requirements and the relationship between vehicle network topology and link interference, graph neural networks are used to extract topology and interference coupling information to achieve multi-agent collaborative decision-making.
It significantly improves the system's QoS satisfaction rate, can adapt to dynamic changes in service requirements and network topology, optimizes spectrum utilization, and meets multi-dimensional QoS requirements.
Smart Images

Figure CN123185666A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of mobile communication technology, and specifically relates to a cognitive vehicle network spectrum allocation method under uncertain service requirements. Background Technology
[0002] With the rapid development of intelligent transportation systems, autonomous driving, and vehicle-road cooperative technologies, the Internet of Vehicles (IoV) needs to support massive data transmission and concurrent access from a large number of terminals, facing a severe shortage of wireless spectrum resources. Cognitive Radio (CR) technology provides an effective way to alleviate the spectrum shortage in IoV by allowing secondary users to dynamically access or reuse licensed spectrum without interfering with the normal communication of primary users, thus forming Cognitive Vehicular Networks (CVN).
[0003] However, in real-world cognitive vehicle-to-everything (V2V) communication spectrum allocation still faces two key technical challenges that existing technologies struggle to address effectively:
[0004] First, heterogeneous service demands are highly dynamic and difficult to meet uniformly. The types of services carried by autonomous driving and vehicle-to-everything (V2X) are increasingly diverse, with different services (such as emergency collision avoidance, vehicle platooning, and in-vehicle multimedia) exhibiting significant differences in key indicators such as reliability, latency, and throughput. Furthermore, service arrival rates, packet sizes, and Quality of Service (QoS) constraints dynamically change with vehicle driving conditions and traffic conditions. Traditional spectrum allocation strategies are mostly designed for general services or optimized only for fixed, single QoS levels, lacking the ability to flexibly adapt to multi-dimensional and differentiated QoS requirements. This makes it difficult for existing methods to simultaneously meet the strong QoS constraints of various secure and insecure services in resource-constrained spectrum environments.
[0005] Second, the highly dynamic changes in network topology and severe coupling with multi-agent interference are significant challenges. The high-speed movement of vehicles causes continuous changes in the distance, adjacency, and interference intensity between V2V user pairs, resulting in a distinct dynamic graph characteristic in the underlying network topology of cognitive vehicular networks. When multiple V2V users reuse the same cellular user (i.e., primary user) channel, complex mutual interference occurs between them. In this situation, the spectrum access and power control decisions of a single V2V user not only affect itself but also severely impact the transmission performance of neighboring V2V users and the communication quality of cellular users. Therefore, spectrum allocation in cognitive vehicular networks is essentially a multi-agent collaborative decision-making problem deeply influenced by the interference coupling between nodes.
[0006] Currently, most spectrum allocation schemes based on machine learning or deep reinforcement learning adopt a centralized architecture. This requires significant communication overhead to achieve global information synchronization in highly dynamic vehicle scenarios, resulting in poor real-time performance. On the other hand, distributed independent reinforcement learning or traditional state stitching methods are insufficient to fully characterize and extract the spatial topological relationships and dynamic interference relationships between vehicle nodes. This lack of awareness of global graph topological changes easily leads to resource conflicts, enhanced interference, and policy oscillations in multi-agent environments, ultimately resulting in low overall spectrum utilization and low overall QoS satisfaction rate for heterogeneous services. Summary of the Invention
[0007] To address the aforementioned problems in the prior art, this invention employs a cognitive vehicle-to-everything (V2X) spectrum allocation method under conditions of uncertain business requirements, comprising:
[0008] S1. Construct a cognitive vehicle network system model, including base stations, multiple cellular users, and multiple cognitive vehicles;
[0009] S2. Construct a communication model and a multi-dimensional QoS requirement model based on the cognitive vehicle network system model;
[0010] S3. Construct the objective optimization problem based on the communication model and the multidimensional QoS requirement model;
[0011] S4. Establish a partially observable Markov decision process based on the objective optimization problem;
[0012] S5. Based on a partially observable Markov decision process, a combination of graph neural networks and multi-agent reinforcement learning algorithms is used to solve the objective optimization problem and obtain the optimal spectrum allocation strategy for cognitive vehicles.
[0013] Beneficial effects:
[0014] 1. This invention constructs a QoS requirement model from three dimensions: latency, reliability, and throughput. It unifies multi-dimensional QoS requirements into minimum rate requirements. Under the premise of ensuring the communication quality of cellular users, it constructs an optimization function with the objective of maximizing the system's QoS satisfaction rate, thus solving the spectrum allocation problem under uncertain service requirements. 2. Considering the dynamic changes in vehicle network topology and link interference relationships, this invention uses graph neural networks (GraphSAGE) to extract the topological structure and interference coupling information between vehicle links, and combines it with MAPPO to realize multi-agent collaborative decision-making. This can effectively adapt to the dynamic changes in service requirements and network topology, and significantly improve the system's QoS satisfaction rate. Attached Figure Description
[0015] Figure 1 This is a system model diagram provided for an embodiment of the present invention;
[0016] Figure 2A flowchart illustrating a cognitive vehicle-to-everything (V2X) spectrum allocation method under uncertain business requirements, provided as an embodiment of the present invention;
[0017] Figure 3 Satisfaction maps of different algorithms in QoS provided in embodiments of the present invention;
[0018] Figure 4 The QoS satisfaction rate provided in this embodiment of the invention varies with different latency thresholds;
[0019] Figure 5 The QoS satisfaction rate provided in this embodiment of the invention varies with different packet arrival rates;
[0020] Figure 6 The QoS satisfaction rate provided in this embodiment of the invention varies with different reliability thresholds;
[0021] Figure 7 The QoS satisfaction rate provided in this embodiment of the invention varies with different CU signal-to-interference-plus-noise ratio thresholds. Detailed Implementation
[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0023] like Figure 1 , Figure 2 As shown, this embodiment of the invention employs a cognitive vehicle-to-everything (V2X) spectrum allocation method under conditions of uncertain business requirements, including:
[0024] S1. Construct a cognitive vehicle network system model, including base stations, multiple cellular users (CUs), and multiple cognitive vehicles;
[0025] Cognitive vehicle set within the system Each cognitive vehicle n and its communication radius Vehicle-to-vehicle (V2V) communication occurs between the nearest neighbor vehicles within the range, forming K V2V user pairs, i.e., a set of V2V user pairs. Each V2V user pair (hereinafter referred to as VU agent) consists of a V2V transmitter and a V2V receiver.
[0026] The overall uplink available frequency bandwidth in the system is orthogonally divided into M channels, and the channel set is represented as follows: Assuming the number of cellular users is the same as the number of channels M, each cellular user CU is pre-assigned a channel m as the primary user to communicate with the base station via the uplink. The VU agent, as a secondary user, dynamically accesses channels through a hybrid spectrum access method while ensuring normal communication of the CU, thereby sharing M channels with the cellular users.
[0027] Set binary variables This indicates the occupancy status of channel m in time slot t. =1 indicates that time slot t and channel m are busy (occupied by an active CU). =0 indicates that channel m is idle in time slot t; if the k-th VU selects multiplexed channel m in time slot t, then its binary channel allocation indicator variable... ,otherwise The transmit power adjustment variable for VU is denoted as And it is selected from a predefined set of discrete power P.
[0028] S2. Construct a communication model and a multi-dimensional QoS requirement model based on the cognitive vehicle network system model;
[0029] Building a communication model includes:
[0030] Define the signal-to-interference-plus-noise ratio (SINR) of the signal from the c-th cellular user received by the base station receiver in any time slot t on channel m. Represented as:
[0031]
[0032] in, This indicates the occupancy status of channel m in time slot t; Let c be the transmit power of the c-th cellular user in time slot t; This represents the channel gain from the c-th cellular user in time slot t to the base station on channel m; For the kth V2V user in time slot t, the channel allocation indicator variable (0 or 1) is used on channel m. The transmit power adjustment variable for the k-th V2V user pair in time slot t (belonging to the discrete power set P); This represents the channel gain from the transmitter of the k-th V2V user pair in time slot t to the base station on channel m; This represents the additive white Gaussian noise power at the base station receiver.
[0033] Correspondingly, the transmission rate of the c-th cellular user in time slot t on channel m This can be expressed by Shannon's formula as follows:
[0034]
[0035] Where W is the bandwidth of channel m, and the bandwidth of all channels m is the same;
[0036] In the communication model, the signal-to-interference-plus-noise ratio (SINR) at the receiver of the k-th V2V user pair (VU agent) when it accesses channel m in time slot t is defined. :
[0037]
[0038] in, This represents the signal gain from the transmitter of the k-th V2V user pair in time slot t to its receiver on channel m; This represents the channel gain from the c-th cellular user in time slot t to the k-th V2V user pair on channel m; This represents the channel allocation indicator variable for the u-th V2V user in time slot t on channel m; The transmit power adjustment variable for the u-th V2V user pair in time slot t; This represents the channel gain from the transmitter of the u-th V2V user pair in time slot t to the receiver of the k-th V2V user pair on channel m.
[0039] Correspondingly, the transmission rate of the k-th V2V user pair in time slot t on channel m It can be written as:
[0040]
[0041] Then the total transmission rate of the k-th V2V user pair in time slot t Represented as:
[0042]
[0043] To address the uncertainty of Quality of Service (QoS) requirements for heterogeneous services in the Internet of Vehicles (IoV), this invention establishes a multi-dimensional QoS unified rate mapping framework. It performs mathematical modeling from three independent dimensions: reliability, throughput, and latency, and uniformly transforms them into an equivalent minimum service rate threshold.
[0044] Specifically, constructing a multi-dimensional QoS requirement model includes:
[0045] 1. Reliability requirements:
[0046] In reliability requirement modeling, the reliability index is defined as the probability of successfully transmitting a fixed number of bytes of data within a specific time delay; assuming that in time slot t, the k-th VU transmits data per unit time... periodic sending There are groups, and the group size is . The relative physical distance between the sending end and the receiving end is Its reliability index in time slot t It can be calculated using the decoupled three-layer probability model:
[0047]
[0048] in, This represents the probability of packet collision loss caused by half-duplex access for the k-th V2V user pair in time slot t; This represents the probability of sensing failure for the k-th V2V user pair in time slot t, which is the probability that the received signal power is lower than the sensing power threshold due to path loss and shadow fading. This represents the probability of packet demodulation loss for the k-th V2V user in time slot t due to interference caused by the equivalent interference of the physical layer multipath propagation effect, i.e., the probability of loss due to propagation effect;
[0049] The probability of collision loss due to multiple transceivers simultaneously selecting the same subframe for transmission in half-duplex mode. Calculated by the following formula:
[0050]
[0051] Large-scale path loss and the probability of perception failure caused by log-normal shadowing fading Expanded from the error function:
[0052]
[0053] Where erf(⋅) is the standard error function; Indicates distance as The path loss value at that time; The preset receiver sensing power threshold is used; is the standard deviation of the shading of a log-normal distribution.
[0054] Packet demodulation loss probability determined by physical layer demodulation performance The block error rate (BLER) is characterized by integrals at different signal-to-noise ratios, as shown in the equation:
[0055]
[0056] Wherein, BL(s) represents the block error rate function when the signal-to-noise ratio is equal to s; It is the received power of the k-th VU at the receiving end; For the receiver signal-to-interference-plus-noise ratio (SINR) under a given sensing power constraint ( (and transmission / reception distance) The conditional probability density function is calculated as follows:
[0057] Let the SINR of the k-th communication link in time slot t be:
[0058] And define events
[0059]
[0060] in, This represents the received power of the k-th link in time slot t. Higher than the receiving perception threshold This means that the signal can be detected by the receiving end.
[0061] Therefore, given that the received power satisfies the sensing condition and the transmit / receive distance is... In the case of ( The probability of data block transmission failure due to propagation is the conditional average block error rate (CAP), where C represents the instantaneous distance between the sender and the target receiver of the i-th communication link in time slot t.
[0062] Conditional probability density function It can be written according to Bayes' theorem as
[0063]
[0064] Further written as
[0065]
[0066] in, For a given , Take s and event Simultaneous joint density, To achieve a transmission and reception distance of The conditional probability density function of the receiver signal-to-interference-plus-noise ratio (SINR). Given the channel signal-to-interference-plus-noise ratio Fixed transmission and reception distance is At that time, the event The conditional probability of occurrence; To fix the transmission and reception distance as Unconstrained channel When retrieving values, the event The marginal conditional probability of occurrence, i.e., the normalization coefficient:
[0067]
[0068] Where u is the variable for signal-to-interference-plus-noise ratio.
[0069] The reliability metrics of each V2V user pair in time slot t are converted into rate representation to obtain the reliability rate of each V2V user pair in time slot t. :
[0070] in, For the k-th V2V user pair in time slot t; The packet transmission rate of the k-th V2V user pair in time slot t is the number of packets periodically transmitted per second. Let be the packet size of the k-th V2V user pair in time slot t; Unit of time;
[0071] The minimum reliability rate required to meet the reliability requirements for each V2V user pair in time slot t is calculated. :
[0072]
[0073] in, This represents the minimum reliability threshold required for the k-th V2V user pair.
[0074] 2. Throughput requirements:
[0075] In throughput demand modeling, throughput represents the total number of valid bits successfully delivered per unit time; the throughput of the k-th V2V user pair in time slot t and its constraints are as follows:
[0076]
[0077] in, Let be the throughput of the k-th V2V user pair in time slot t. Let be the total transmission rate of the k-th V2V user pair in time slot t. For the first The minimum throughput threshold required for each V2V user.
[0078] Taking into account the reliability differences of the receiver, the throughput of each V2V user pair in time slot t is converted into a rate expression, thus obtaining the throughput rate of each V2V user pair in time slot t. :
[0079]
[0080] Calculate the minimum throughput rate required by each V2V user in time slot t to meet the throughput demand. :
[0081]
[0082] 3. Latency requirements
[0083] Establish the delay rate of each V2V user pair in time slot t. Let t be the total transmission rate of each V2V user pair. ;
[0084] In latency requirement modeling, the total latency of service flows in the network is... Due to transmission delay Channel queuing delay Hardware processing latency It consists of three cascaded parts.
[0085] In the maximum queuing model, the data arrival process is typically modeled as a Poisson process, with packet lengths following an exponential distribution; the actual service capacity of the link is:
[0086]
[0087] Delay rate The higher the latency, the shorter the data packet service time and queuing time, therefore the higher the probability of latency default. Increases and decreases.
[0088] Using the maximum plus random queuing theory, we can obtain an upper bound on the delay violation probability with respect to arrival rate, average packet length, and service rate. Under uncertain packet arrival rates, the hard delay constraint is transformed into a maximum delay violation probability constraint:
[0089] In the formula, For the k-th V2V user, the maximum tolerable latency is required. Let be the probability of the k-th V2V user violating the maximum required latency.
[0090] right Inverse solution, the following form will appear: The transcendental equations, therefore requiring the use of Lambert's equations. Inverting a function. Since the relevant variables are in the negative interval, Lambert's algorithm is used. function's lower branch Finally, the minimum delay rate of each V2V user pair in time slot t is obtained. :
[0091]
[0092] In the formula, Let represent the lower branch of the Lambert function (W function), which satisfies the standard equation. And intermediate parameter terms Satisfying the relation
[0093] The result obtained through this formula This refers to the minimum latency rate required to meet this latency boundary under conditions of service packet arrival rate and random fluctuations in network topology. .
[0094] After obtaining the rate transition boundaries of the three-dimensional QoS indicators, the maximum value among the three is extracted as the joint minimum transmission rate required by the service in the current time slot. As shown in the formula:
[0095]
[0096] S3. Construct the objective optimization problem based on the communication model and the multidimensional QoS requirement model;
[0097] Under the premise of ensuring basic communication quality for cellular users, limiting transmission power, and ensuring topology reachability, this invention equivalently merges the multidimensional nonlinear index optimization problem into an objective optimization problem with the goal of maximizing the overall system QoS satisfaction rate Φ(t), as follows:
[0098]
[0099]
[0100]
[0101]
[0102]
[0103]
[0104]
[0105] In the formula, This is a standard indicator function, taking a value of 1 when the inequality within the parentheses is true, and a value of 0 otherwise; A is the set of channel allocation indicator variables, and P is the set of power allocation variables. Let be the set of neighboring cognitive vehicles of the nth cognitive vehicle. , For the recognition of vehicle n, Two-dimensional position, For the maximum communication radius, The maximum number of allowed neighbors, This is the required received signal-to-interference-plus-noise ratio (SINNR) threshold.
[0106] S4. Establish a partially observable Markov decision process based on the objective optimization problem;
[0107] To address the aforementioned objective optimization problem, since each vehicle node can only acquire local time-varying information and there is interference coupling between them, this invention abstracts it into a partially observable Markov decision process (POMDP), which is modeled and described by a quadruple (S,A,P,R).
[0108] Each V2V user pair is defined as a reinforcement learning agent k, and its complete local observation state space is defined. :
[0109]
[0110] in, The channel state and interference information observed locally by agent k in time slot t. Indicates that agent k is in time slot Channel Channel gain on The interference characteristics of agent k in the previous time slot t-1 channel m; The graph embedding features of agent k in time slot t; Let k be the set of neighboring agents. The action of each agent in the previous time slot t-1 is used to characterize the state of the neighbor game. Let $t$ be the queuing delay of the current traffic packet of agent $k$ in the local transmission queue in time slot $t$. Let be the queue length of agent k in time slot t, used to characterize the dynamic features of uncertain business flows; Let represent the channel occupancy state obtained by agent k in time slot t. The occupancy status of channel m obtained by agent k in time slot t is obtained by broadcast from the base station or roadside unit;
[0111] Establish the action space for each agent k. The action space of each agent k consists of discrete composite decision-making based on joint sub-channel selection and discrete power level control, expressed as:
[0112]
[0113] in, Assign an indicator variable to agent k in time slot t on channel m. Assign indicator variables to the channel of agent k in time slot t. Let be the transmit power adjustment variable for agent k in time slot t;
[0114] The reward function is designed to incentivize agents to collaboratively achieve multi-dimensional QoS metrics while protecting the uplink of cellular users from malicious interference.
[0115] For the VU service satisfaction component, i.e., when there is no performance loss for cellular users, the instantaneous data rate is converted into a normalized dimensionless value, and the basic reward for agent k in time slot t when there is no performance loss for cellular users is defined. :
[0116]
[0117] In the formula, , and These represent the reliability rate, delay rate, and throughput rate of agent k in time slot t, respectively. These are the normalized weights for reliability, latency, and throughput, respectively, and are calculated using the following piecewise functions:
[0118]
[0119]
[0120]
[0121] in, , These are the minimum rate thresholds required to meet the reliability, latency, and throughput requirements of the service, namely the minimum reliability rate, minimum latency rate, and minimum throughput rate for each V2V user pair. This design enables each VU node to coordinate autonomously, allowing multiple QoS metrics to be met simultaneously.
[0122] When performance degradation occurs to any active cellular user, the difference between the current cellular SINR and the base station protection threshold is used as an interference penalty, and a cellular penalty reward is defined. Satisfaction:
[0123]
[0124] In the formula, For the penalty factor function, Let be the transmission rate of cellular user c on channel m in time slot t. This represents the minimum transmission rate that cellular user c can accept. .
[0125] Preferably, .
[0126] Combining the above two parts, the hybrid cooperative reward of the k-th agent at time t is defined as:
[0127]
[0128] In other words, if unacceptable strong interference is caused to the communication of cellular primary users, the final reward will be absolutely dominated by the penalty item; otherwise, it will be determined by the VU's own multi-dimensional satisfaction with its services.
[0129] Global average reward To conduct collaborative training of multi-agent systems:
[0130]
[0131] Establish channel reward function Channel reward function It is a node The channel reward vector maintained for each candidate channel:
[0132]
[0133] When the intelligent agent In the time slot Select Channel Then, the environment calculates immediate rewards based on the current resource allocation actions. The reward is then used to update the component corresponding to the selected channel.
[0134]
[0135] in, For intelligent agents In the time slot Selected channel, A reward function that combines the revenue from remaining service gaps and the penalty for transmission time:
[0136]
[0137] in, , As weight, The normalized V2I remaining business revenue gap, The normalized V2V remaining business gap revenue, The maximum allowed transmission time is preset for agent k. For intelligent agents In the time slot Transmission time.
[0138] Normalized V2I remaining business gap revenue:
[0139] Calculate the total V2I rate for each agent k based on the channel and transmit power selected by each agent k in the current time slot t. :
[0140]
[0141]
[0142] in, For the V2V agent k, select channel m in time slot t and use transmit power. At that time, the signal-to-interference-plus-noise ratio (SINR) of the signal from the c-th cellular user corresponding to channel m is received by the base station receiver.
[0143] For the total V2I rate Normalization is performed to obtain the normalized V2I remaining business gap revenue. :
[0144]
[0145] in, , Let V be the minimum and maximum values of the total V2I rate across all candidate channel-power action sets for agent k.
[0146] Normalized V2V remaining business gap revenue:
[0147] Calculate the V2V remaining service gap revenue for each agent k based on the channel and transmit power selected by each agent k in the current time slot t. :
[0148]
[0149]
[0150]
[0151] in, Indicates V2V users' views The current remaining traffic to be transmitted, that is, the current remaining traffic to be transmitted between the i-th cognitive vehicle and the j-th cognitive vehicle; Indicates V2V users' views The remaining allowed transmission time, i.e., the remaining allowed transmission time between the i-th cognitive vehicle and the j-th cognitive vehicle. Indicates V2V users' views The V2V rate between the i-th cognitive vehicle and the j-th cognitive vehicle, where agent k selects channel m and power p. For the u-th V2V user pair, when agent k selects channel m and power p in time slot t, the signal-to-interference-plus-noise ratio at its receiver; This represents the signal gain from the transmitter of the u-th V2V user pair in time slot t to its receiver on channel m; This represents the channel gain from the c-th cellular user in time slot t to the u-th V2V user pair on channel m; Let be the transmit power of the u-th V2V user pair in time slot t; This represents the channel gain from the transmitter of the k-th V2V user pair in time slot t to the receiver of the u-th V2V user pair on channel m.
[0152] Similarly, perform min-max normalization:
[0153]
[0154] in, , These are the minimum and maximum values of the total V2I rate, respectively, within the entire set of candidate channel-power actions for agent k.
[0155] S5. Based on a partially observable Markov decision process, a combination of graph neural network and multi-agent reinforcement learning algorithm is used to solve the objective optimization problem and obtain the optimal spectrum allocation strategy for cognitive vehicles.
[0156] To overcome the problem that traditional value function estimation cannot converge in continuous action or large discrete space in partially observable POMDP vehicle networking environments, this embodiment of the invention adopts the multi-agent proximal policy optimization (MAPPO) mechanism in the policy solution stage, and adopts the centralized training and distributed execution (CTDE) framework. Its network topology includes a policy network (Actor network, parameter θ) and a state value evaluation network (Critic network, parameter ϕ).
[0157] Solving the objective optimization problem includes:
[0158] During the intensive training phase:
[0159] S501. Initialize GraphSAGE, target GraphSAGE, Actor network, and Critic network;
[0160] S502, based on GraphSAGE and Actor network, collects empirical samples from multiple time slots through interaction with the environment;
[0161] Empirical samples of acquisition time slot t include:
[0162] Step 1: Each agent k acquires its local observation state in time slot t. ;
[0163] Step 2: Each agent k constructs its own locally weighted undirected interference graph for time slot t. ; their respective local weighted undirected interference graphs Input GraphSAGE to obtain the local graph embedding features for each time slot t. ;
[0164] Locally weighted undirected interference graph ;in, The set of nodes includes agent k and its neighbor V2V user pairs in the current time slot t; Let be the set of edges, including the edges between agent k and each of its neighboring V2V user pairs in the current time slot t;
[0165] For each node Its node characteristics are the channel information observed locally by the corresponding V2V user in time slot t. Where q is the index of the node; Let be the signal gain from the transmitter of the q-th V2V user pair to its receiver on channel m in time slot t, i.e., the signal gain from the transmitter to its receiver in time slot t. A V2V user pair in the time slot Channel The instantaneous channel state characteristics after normalization are jointly determined by path loss, shadowing fading, and small-scale fast fading:
[0166]
[0167] in For path loss, For the shadow to fade, It is a small-scale, fast-fading phenomenon.
[0168] Let q be the interference strength of the q-th V2V user pair on channel m in the previous time slot t-1, that is, the interference strength calculated based on the VU channel and power selection results of the previous time slot. V2V users on the channel Normalized interference characteristics include cellular user interference, co-channel interference from other V2V users, and receiver noise:
[0169]
[0170] in, This indicates cellular user interference, specifically, interference between the c-th cellular user and the c-th cellular user on channel m. Interference between V2V users This represents the channel gain from the c-th cellular user in time slot t-1 to the q-th V2V user pair on channel m; This indicates whether other V2V users used channel m for u in the previous time slot. This indicates the transmit power of other V2V users in the previous time slot t-1. This indicates that other V2V users have access to u on the channel m in the previous time slot t-1. Interference link gain of V2V user pairs, and channel gain from the transmitter of other V2V user pairs u in the previous time slot t-1 to the receiver of the k-th V2V user pair on channel m. Indicates noise power.
[0171] For each edge Its weight for:
[0172]
[0173] in, This indicates that the transmitter of agent k interacts with its neighboring V2V users. The distance between the transmitters, u is the index of the neighboring V2V user pair of agent k in the current time slot t; D represents the locally weighted undirected interference graph. The distance matrix between the transmitters of all nodes in the array.
[0174] Each of the local weighted undirected interference graphs Input to GraphSAGE includes:
[0175] The GraphSAGE encoder initiates multi-layer inductive message propagation and spatial feature iterative transformation on the established interference-weighted graph, and its hidden graph convolution output state at the (l+1)th convolutional layer... Follow the iterative mechanism:
[0176]
[0177] In the formula, the initial layer features , σ(⋅) represents the trainable learning weight matrix in the convolutional layer of the graph; σ(⋅) is the non-linear activation function ReLU; N(k) is the set of neighbor nodes sampled by agent k; AGG(⋅) is a mean aggregator that is not affected by the node permutation order.
[0178] After graph convolutional propagation of depth L, the final output of the highest-level feature is the extracted spatial low-dimensional graph embedding feature vector. This vector depth captures the spatial topology evolution patterns of multi-hop spatial association, location changes, and potential strong neighborhood interference in the current high-dynamic vehicle-to-everything (V2X) network.
[0179] Step 3: Each agent k embeds its local graph into the features of time slot t. and local observation status By stitching the data together, we obtain the complete local observation states of each agent k in time slot t. ;
[0180] intelligent agents will By performing a secondary horizontal stitching with its own local queue observations and channel observations, a complete local observation state is formed. This serves as the input driver for the subsequent MAPPO collaborative learning mechanism.
[0181] Step 4: Each agent k transmits its complete local observation state for time slot t. Inputting the Actor network yields the action probability distribution of each agent k in time slot t. ;
[0182] Step 5: Each agent k performs actions according to its own probability distribution in time slot t. Select and execute the optimal action. Each receives a hybrid collaborative reward in time slot t. and channel rewards ;
[0183] Step 6: Each agent k obtains its local observation state for the next time slot t+1. Construct the local weighted undirected interference graphs for each of the next time slots t+1. ;
[0184] Step 7: Each agent k constructs empirical samples in time slot t. .
[0185] S503. Based on the empirical samples collected from multiple time slots, iteratively train GraphSAGE, target GraphSAGE, Actor network, and Critic network to obtain trained GraphSAGE, target GraphSAGE, Actor network, and Critic network.
[0186] For each training iteration, the training process for GraphSAGE, the target GraphSAGE, the Actor network, and the Critic network includes:
[0187] Step 1: Based on the local weighted undirected interference map in the empirical samples of each time slot t Construct a globally weighted undirected interference graph for each time slot t. ; The globally weighted undirected interference graph for each time slot t Input the target GraphSAGE for the current iteration to obtain the global graph embedding features for each time slot t. Among them, global graph embedding features Including global graph embedding features of each agent k ;
[0188] Step 2: Extract the local observation states from the empirical samples of each time slot t. and corresponding time slot global graph embedding features By splicing the data, the global splicing state of each time slot t is obtained. ; The global stitching state of each time slot t By inputting the Critic network from the previous iteration and the Critic network from the current iteration, the global state value function evaluation for each time slot t is obtained. and ;
[0189] Step 3: Calculate the local weighted undirected interference map from the empirical samples of each time slot t. Input the GraphSAGE of the current iteration to obtain the local graph embedding features of each agent k in each time slot t. The local observation states in the empirical samples of each time slot t and corresponding local graph embedding features By stitching the data together, we obtain the complete local observation states of each agent k in each time slot t. ; to obtain the complete local observation state of each agent k in each time slot t. By inputting the Actor network from the previous iteration and the Actor network from the current iteration, we obtain the action probability distribution of each agent k in each time slot t. and ;
[0190] In order to suppress the value function gradient update variance under highly dynamic fluctuations in vehicle network traffic and rapid fading interference, this invention introduces a generalized advantage estimation (GAE) mechanism in the Critic network.
[0191] Step 4: Introduce generalized dominance estimation and evaluate based on the global state value function of each time slot t. Solving for the dominance function ;
[0192] That is, based on the hybrid collaborative reward in the empirical samples of each time slot t. Calculate the global average reward for each time slot t. The global state value function is evaluated based on each time slot t. and global average reward Calculate the time difference error for each time slot t, and then calculate the dominance function for each time slot t based on the time difference error. :
[0193]
[0194]
[0195] Where γ is the long-term discount factor; λ is the weighting coefficient that satisfies GAE smoothing adjustment. The time difference error for time slot t; To determine the average global cooperative reward of the system in time slot t, the advantage function is calculated before gradient backpropagation. Zero-mean and unit-variance normalization smoothing is performed to prevent local gradient surges.
[0196] To avoid model paralysis or severe policy oscillation caused by excessively large policy update steps in non-stationary multi-agent environments under the constraint of high-variance wireless time-varying communication, the loss function of the Actor policy network in the MAPPO mechanism introduces a clipped surrogate objective.
[0197] Step 5: Based on the action probability distribution , Calculate the probability ratio of the new and old strategies. Based on the probability ratio of the old and new strategy parameters Advantage function Calculate the parameters of the Actor network in the current iteration. Target optimization loss :
[0198]
[0199]
[0200] in, The ratio of the probabilities of the new and old strategies. Let represent the action probability distribution output by the Actor network in the previous iteration; clip(⋅) denotes the bounded clipping function, used to forcibly constrain the policy update magnitude within the trust region boundary; ϵ is the clipping hyperparameter (usually chosen as 0.2).
[0201] Step 6: Evaluate based on the global state value function of each time slot t. and dominance function Calculate return target Evaluation based on the global state value function of each time slot t and return goals Calculate the parameters of the Critic network in the current iteration round. Mean square error loss :
[0202]
[0203]
[0204] Step 7: Based on the action probability distribution Calculate policy entropy Optimize loss based on target Mean square error loss and policy entropy Calculate the overall joint backpropagation loss function :
[0205]
[0206]
[0207] in, The mean squared error loss is a value function. Policy entropy encourages algorithms to have long-term exploration capabilities. This is the adjustment coefficient;
[0208] Step 8: Based on the overall joint backpropagation loss function and mean square error loss The Adam optimizer is used to perform alternating gradient backpropagation to update the parameters of the Actor and Critic networks in the current iteration:
[0209]
[0210]
[0211] in, The learning rate is shared between the Actor and Critic networks;
[0212] Step 9: Embed global graph features based on each agent k in each time slot t. Local graph embedding features and channel rewards Calculate the parameters of GraphSAGE in the current iteration. Mean square error loss ;
[0213] Construct the mean squared error loss using GraphSAGE output, target GraphSAGE output, and channel reward. :
[0214]
[0215] Where B represents a time slot. The set of nodes participating in this GraphSAGE training; For the parameters of the target GraphSAGE, perform hard copying from the parameters of GraphSAGE according to a preset period; Nodes representing feedback from the environment Channel rewards.
[0216] Step 10: Based on the mean square error loss Update the parameters of the current iteration of GraphSAGE Parameters of the target GraphSAGE Then, a hard update is performed according to the preset iteration cycle based on the parameters of GraphSAGE;
[0217] The current GraphSAGE network updates its parameters independently through the RMSprop optimizer and error backpropagation, while the target network parameters are hard-updated from the current network parameters at a preset period. The graph embeddings output by GraphSAGE are then concatenated with local observations and used as input features for MAPPO policy decisions and centralized value estimation.
[0218]
[0219] in, This is the learning rate.
[0220] S504. Deploy the trained GraphSAGE and Actor networks to each agent.
[0221] During the distributed execution phase:
[0222] S511. Each agent loads the trained GraphSAGE network and Actor network, and obtains its local observation state for the current time slot t. and locally weighted undirected interference graph Locally weighted undirected interference graph Input the trained GraphSAGE to obtain the local graph embedding features of the current time slot t. ;;
[0223] S512, Each agent k embeds its local graph of its current time slot t into the features. With local observation status By stitching the data together, we obtain the complete local observation state for the current time slot t. ;
[0224] S513, Each agent k will display its complete local observation state for its current time slot t. Input the respective deployed Actor networks to obtain the action probability distribution for the current time slot t. ;
[0225] S514, The action probability distribution of each agent k according to its current time slot t Select and execute the optimal action.
[0226] After offline centralized iterative training through large-scale simulation rounds, the vehicle OBU obtains a converged and generalized Actor policy network model and GraphSAGE feature extraction weight parameters. During the distributed execution phase, due to the high speed of the vehicle, vehicle nodes frequently join, unjoin, or have existing communication pairs disappear. Therefore, this invention initiates a periodic interference topology graph dynamic refresh and update mechanism.
[0227] When a new vehicle enters or a new VU communication pair is established, there is no need to start a time-consuming retraining of the entire deep reinforcement learning model. Instead, the corresponding topological node is added to the interference graph structure and the local physical distance is updated. The graph feature embedding of the unknown new node can be generated online by directly using the well-trained GraphSAGE neighborhood inductive aggregation function. When the original vehicle leaves the network, the corresponding node and edge weight are directly deleted in the topology, and the aggregation input of the surrounding neighbor nodes is adaptively reduced. The Actor decision module only needs to perform forward inference to achieve millisecond-level distributed online adaptive spectrum and discrete power allocation for the arrival rate of changing service packets and network topology reconstruction.
[0228] To verify the effectiveness and superiority of the method proposed in this embodiment, a cognitive vehicle network simulation system was built, and a multi-dimensional comparative experiment was conducted with existing independent proximal policy optimization (MAPPO) and resource allocation algorithms based on multi-agent deep Q-network (MADQN).
[0229] Figure 3 The curves showing the change in system QoS satisfaction rate with training rounds for different algorithms are presented. As the number of training rounds increases, the QoS satisfaction rate of each algorithm exhibits a characteristic of initially rising rapidly and then gradually converging. The GNN-MAPPO algorithm proposed in this invention shows the fastest improvement speed in the initial stage because GraphSAGE effectively extracts the topological associations and interference information between VUs; after convergence, it stabilizes in a higher QoS satisfaction rate range (approximately above 90%), consistently outperforming the baseline algorithms MAPPO and MADQN, indicating that this scheme has stronger stability and global optimization capability in multi-agent collaborative optimization.
[0230] Figure 4 The paper demonstrates how QoS satisfaction rate varies with different latency thresholds. As the latency tolerance is relaxed from 20ms to 100ms, the system requirements decrease, and the QoS satisfaction rate of all algorithms shows an upward trend. However, under the strict latency constraints of 20ms to 40ms, the performance of algorithms such as MADQN drops significantly, while the method of this invention, due to its mechanism of strictly mapping the latency default probability to a rate lower bound in the reward design, still maintains the most significant performance advantage, demonstrating a strong guarantee capability for low-latency services.
[0231] Figure 5 The changes in QoS satisfaction rates for each algorithm under different packet arrival rates (10Hz to 60Hz) are presented. As the service packet arrival rate increases, network load rises sharply, and competition for limited spectrum resources intensifies, leading to a decline in the QoS satisfaction rates of all algorithms. Compared to the comparative algorithms, the algorithm of this invention maintains the highest QoS satisfaction rate even under heavy load conditions (e.g., 60Hz) through precise topology awareness and spatial avoidance, demonstrating its excellent robustness under sudden increases in dynamic throughput demands.
[0232] Figure 6 The paper demonstrates the changes in QoS satisfaction rates for various algorithms under different reliability requirements (99% to 99.999%). As reliability requirements increase, the system's tolerance for transmission failures drops sharply, requiring services to be completed under conditions of lower interference. Because the method of this invention performs equivalent rate merging on the multidimensional nonlinear indicators of the service, the intelligent agent swarm can still maintain excellent resource allocation capabilities under extremely high reliability requirements. Compared with traditional algorithms, it exhibits the smallest performance degradation and the best reliability guarantee.
[0233] Figure 7 The paper compares the QoS satisfaction rates of various algorithms as the SINR threshold for cellular users changes (from 1dB to 6dB). As CU protection requirements become more stringent, the allowable VU interference tolerance of the system decreases, compressing the feasible decision space. Because this invention introduces a negative penalty term for CU communication disruption and a hard handover mechanism into the reward function, the outage probability of the proposed algorithm is always strictly suppressed within the protection threshold. While ensuring CU communication quality, it still rationally allocates power and channels, achieving the highest QoS satisfaction rate.
[0234] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for spectrum allocation in cognitive vehicle-to-everything (V2X) networks under uncertain business requirements, characterized in that: include: S1. Construct a cognitive vehicle network system model, including base stations, multiple cellular users, and multiple cognitive vehicles; S2. Construct a communication model and a multi-dimensional QoS requirement model based on the cognitive vehicle network system model; S3. Construct the objective optimization problem based on the communication model and the multidimensional QoS requirement model; S4. Establish a partially observable Markov decision process based on the objective optimization problem; S5. Based on a partially observable Markov decision process, a combination of graph neural networks and multi-agent reinforcement learning algorithms is used to solve the objective optimization problem and obtain the optimal spectrum allocation strategy for cognitive vehicles.
2. The cognitive vehicle-to-everything (V2X) spectrum allocation method under uncertain business demand conditions according to claim 1, characterized in that, The uplink available frequency bandwidth of the cognitive vehicle network system model is orthogonally divided into M channels, resulting in a channel set. The number of cellular users is the same as the number of channels M, and each cellular user is pre-assigned a channel to communicate with the base station via uplink. Each cognitive vehicle communicates with its nearest neighboring cognitive vehicles within its communication range, forming a set of V2V user pairs. V2V user pairs share M channels with cellular users; where K is the number of V2V user pairs.
3. The method for spectrum allocation in a cognitive vehicle-to-everything (V2X) network under uncertain business demand conditions, as described in claim 2, is characterized in that... Building a communication model includes: Calculate the signal-to-interference-plus-noise ratio (SIR) of the signal received by the base station from the c-th cellular user on channel m in time slot t. : in, This indicates the occupancy status of channel m in time slot t; Let c be the transmit power of the c-th cellular user in time slot t; This represents the channel gain from the c-th cellular user in time slot t to the base station on channel m; For the k-th V2V user in time slot t, channel allocation indicator variable on channel m; The transmit power adjustment variable for the k-th V2V user pair in time slot t; This represents the channel gain from the transmitter of the k-th V2V user pair in time slot t to the base station on channel m; This represents the additive white Gaussian noise power at the base station receiver. Calculate the transmission rate of the c-th cellular user in time slot t on channel m. : Where W is the bandwidth of channel m; Calculate the signal-to-interference-plus-noise ratio (SIR) of the k-th V2V user pair in time slot t on channel m. : in, This represents the signal gain from the transmitter of the k-th V2V user pair in time slot t to its receiver on channel m; This represents the channel gain from the c-th cellular user in time slot t to the k-th V2V user pair on channel m; This represents the channel allocation indicator variable for the u-th V2V user in time slot t on channel m; The transmit power adjustment variable for the u-th V2V user pair in time slot t; This represents the channel gain from the transmitter of the u-th V2V user pair in time slot t to the receiver of the k-th V2V user pair on channel m. Calculate the transmission rate of the k-th V2V user pair in time slot t on channel m. : Calculate the total transmission rate of the k-th V2V user pair in time slot t. : 。 4. The method for spectrum allocation in a cognitive vehicle-to-everything (V2X) network under uncertain business demand conditions, as described in claim 2, is characterized in that... Constructing a multidimensional QoS requirement model includes: Establish reliability metrics for each V2V user pair in time slot t. The reliability metrics of each V2V user pair in time slot t. Converting to rate representation, we obtain the reliability rate of each V2V user pair in time slot t. : ; Calculate the minimum reliability rate for each V2V user pair in time slot t. : ; Establish throughput of each V2V user pair in time slot t The throughput of each V2V user pair in time slot t. Converting to rate representation, we obtain the throughput rate of each V2V user pair in time slot t. : Calculate the minimum throughput rate for each V2V user pair in time slot t. : Establish the delay rate of each V2V user pair in time slot t. Let t be the total transmission rate of each V2V user pair. ; Calculate the minimum delay rate of each V2V user pair in time slot t. : Minimum transmission rate required by each V2V user for: in, Let be the packet transmission rate of the k-th V2V user pair in time slot t. Let be the packet size of the k-th V2V user pair in time slot t. Let be the total transmission rate of the k-th V2V user pair in time slot t. Unit of time; This represents the minimum reliability threshold required for the k-th V2V user pair. For the first The minimum throughput threshold required by each V2V user; W is the channel bandwidth. For the first The maximum tolerable latency required by each V2V user. Let be the probability of the k-th V2V user violating the maximum required latency requirement. This represents the lower branch of the Lambert function. It is an intermediate variable.
5. The cognitive vehicle-to-everything (V2X) spectrum allocation method under uncertain business demand conditions according to claim 4, characterized in that, The objective optimization problem is: Among them, C1 is the service satisfaction rate constraint, C2 is the channel selection constraint, C3 is the channel allocation indicator variable constraint, C4 is the discrete power constraint, C5 is the link feasibility constraint, and C6 is the cellular user protection constraint. For system QoS satisfaction rate, If it is an indicator function, If the value is 1, then the indicator function value is 1; otherwise, the indicator function value is 0. Let be the total transmission rate of the k-th V2V user pair in time slot t. Let A be the minimum transmission rate required for the k-th V2V user pair in time slot t, and let P be the set of channel allocation indicator variables and P be the set of power allocation variables. For the k-th V2V user in time slot t, the channel allocation indicator variable is provided on channel m. Let be the transmit power adjustment variable for the k-th V2V user pair in time slot t. Let be the set of neighboring cognitive vehicles of the nth cognitive vehicle. , For the cognitive vehicle n, Two-dimensional position, For the maximum communication radius, The maximum number of allowed neighbors, The received signal-to-interference-plus-noise ratio (SINR) threshold. This indicates the occupancy status of channel m in time slot t.
6. The cognitive vehicle-to-everything (V2X) spectrum allocation method under uncertain business demand conditions according to claim 5, characterized in that, Establishing a partially observable Markov decision process includes: Each V2V user pair is treated as a separate intelligent agent; Establish the complete local observation state space for each agent k : in, The channel information observed locally by agent k in time slot t. Let K be the channel gain of agent k in time slot t on channel m. Let be the interference intensity of agent k on channel m in the previous time slot t-1; Let k be the set of neighboring agents. The action of each agent in the previous time slot t-1; Let be the queuing delay of agent k in time slot t; Let be the queue length of agent k in time slot t; Let represent the channel occupancy state obtained by agent k in time slot t. This represents the occupancy status of channel m obtained by agent k in time slot t; The graph embedding features of agent k in time slot t; Establish the action space for each agent k: in, Assign an indicator variable to agent k in time slot t on channel m. Assign indicator variables to the channel of agent k in time slot t. Let be the transmit power adjustment variable for agent k in time slot t; Establish a hybrid collaborative reward function: in, For the hybrid cooperative reward of agent k in time slot t, This is the base reward for agent k when time slot t does not cause performance loss to cellular users. The cellular penalty reward is the cellular penalty reward when agent k causes performance loss to any cellular user in time slot t. , and These represent the reliability rate, delay rate, and throughput rate of agent k in time slot t, respectively. These are the normalized weights for reliability, latency, and throughput, respectively. For the penalty factor function, Let be the transmission rate of cellular user c on channel m in time slot t. The minimum transmission rate required by cellular user c; Establish channel reward function : Among them, the channel reward function For intelligent agents The channel reward maintained for channel m. For intelligent agents In the time slot Selected channel, A reward function that combines the revenue from remaining service gaps with the penalty for transmission time; , As weight, The normalized V2I remaining business revenue gap, This represents the normalized revenue shortfall from remaining V2V business. The maximum allowed transmission time is preset for agent k. For intelligent agents In the time slot Transmission time.
7. The cognitive vehicle-to-everything (V2X) spectrum allocation method under uncertain business demand conditions according to claim 6, characterized in that, The normalized weights for reliability, latency, and throughput are: in, , Minimum reliability rate, minimum latency rate, and minimum throughput rate for each V2V user pair.
8. The method for spectrum allocation in a cognitive vehicle-to-everything (V2X) network under uncertain business demand conditions as described in claim 1, characterized in that, Solving the objective optimization problem includes: During the intensive training phase: S501. Initialize GraphSAGE, target GraphSAGE, Actor network, and Critic network; S502, based on GraphSAGE and Actor network, collects empirical samples from multiple time slots through interaction with the environment; S503. Based on the empirical samples collected from multiple time slots, train GraphSAGE, target GraphSAGE, Actor network and Critic network to obtain trained GraphSAGE, target GraphSAGE, Actor network and Critic network. S504. Deploy the trained GraphSAGE and Actor networks to each agent. During the distributed execution phase: S511. Each agent loads the trained GraphSAGE network and Actor network, and obtains its local observation state for the current time slot t. and locally weighted undirected interference graph Locally weighted undirected interference graph Input the trained GraphSAGE to obtain the local graph embedding features of the current time slot t. ; S512, Each agent k embeds its local graph of its current time slot t into the features. With local observation status By stitching the data together, we obtain the complete local observation state for the current time slot t. ; S513, Each agent k will display its complete local observation state for its current time slot t. Input the trained Actor network to obtain the action probability distribution in the current time slot t. ; S514, The action probability distribution of each agent k according to its current time slot t Select and execute the optimal action.
9. A method for spectrum allocation in a cognitive vehicle-to-everything (V2X) network under uncertain business demand conditions, as described in claim 8, is characterized in that... Locally weighted undirected interference graph ;in, The set of nodes includes agent k and its neighbor V2V user pairs in the current time slot t; Let be the set of edges, including the edges between agent k and each of its neighbor V2V user pairs in the current time slot t; For each node Its node characteristics are the channel information observed locally by the corresponding V2V user in time slot t. Where q is the index of the node; For each edge Its weight for: in, This indicates that the transmitter of agent k interacts with its neighboring V2V users. The distance between the transmitters; D represents the locally weighted undirected interference graph. The distance matrix between the transmitters of all nodes in the matrix, where u is the index of the neighbor V2V user pair of agent k in the current time slot t.
10. A method for spectrum allocation in a cognitive vehicle-to-everything (V2X) network under uncertain business demand conditions, as described in claim 8, is characterized in that... Experience Sample For each training iteration, the training process for GraphSAGE, the target GraphSAGE, the Actor network, and the Critic network includes: Step 1: Based on the local weighted undirected interference map in the empirical samples of each time slot t Construct a globally weighted undirected interference graph for each time slot t. ; Calculate the globally weighted undirected interference graph for each time slot t Input the target GraphSAGE for the current iteration to obtain the global graph embedding features for each time slot t. Among them, global graph embedding features Including global graph embedding features of each agent k ; Step 2: Extract the local observation states from the empirical samples of each time slot t. and corresponding time slot global graph embedding features By splicing the data, the global splicing state of each time slot t is obtained. ; The global stitching state of each time slot t By inputting the Critic network from the previous iteration and the Critic network from the current iteration, the global state value function evaluation for each time slot t is obtained. and ; Step 3: Calculate the local weighted undirected interference map from the empirical samples of each time slot t. Input the GraphSAGE of the current iteration to obtain the local graph embedding features of each agent k in each time slot t. The local observation states in the empirical samples of each time slot t and corresponding local graph embedding features By stitching the data together, we obtain the complete local observation states of each agent k in each time slot t. ; to obtain the complete local observation state of each agent k in each time slot t. By inputting the Actor network from the previous iteration and the Actor network from the current iteration, we obtain the action probability distribution of each agent k in each time slot t. and ; Step 4: Based on the hybrid collaborative reward in the empirical samples of each time slot t Calculate the global average reward for each time slot t. The global state value function is evaluated based on each time slot t. and global average reward Calculate the time difference error for each time slot t, and then calculate the dominance function for each time slot t based on the time difference error. ; Step 5: Based on the action probability distribution , Calculate the probability ratio of the new and old strategies. Based on the probability ratio of the old and new strategy parameters Advantage function Calculate the objective optimization loss of the Actor network in the current iteration. : Step 6: Evaluate based on the global state value function of each time slot t. and dominance function Calculate return target The global state value function is evaluated based on each time slot t. and return goals Calculate the mean squared error loss of the Critic network in the current iteration. : Step 7: Based on the action probability distribution Calculate policy entropy Optimize loss based on target Mean square error loss and policy entropy Calculate the overall joint backpropagation loss function ; Step 8: Based on the overall joint backpropagation loss function and mean square error loss Update the parameters of the Actor and Critic networks in the current iteration. , : Step 9: Embed global graph features based on each agent k in each time slot t. Local graph embedding features and channel rewards Calculate the mean squared error loss of GraphSAGE in the current iteration. ; Step 10: Based on the mean square error loss Update the parameters of the current iteration of GraphSAGE Parameters of the target GraphSAGE Hard updates are performed according to the preset period based on the parameters of GraphSAGE.
