Network conflict-free resource allocation method based on double deep Q network and conflict degree algorithm
By adopting the conflict-free resource allocation method of double deep Q network and conflict degree algorithm in 6G-IoT, the problem of large-scale overlapping interference is solved, the resource reuse rate and network throughput are improved, and the problems in the existing technology are solved. Problems with resource underutilization and low throughput.
Patent Information
- Application Number
- CN202311173545.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-12
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-09-12
AI Technical Summary
In 6G-IoT, large-scale overlapping phenomena in the network lead to inevitable interference. Existing technologies are difficult to effectively manage large-scale overlapping interference, resulting in low network QoS and throughput and insufficient resource utilization.
A conflict-free resource allocation method based on Double Deep Q Network (DDQN) and Conflict Degree Algorithm (CD) is adopted. By constructing a single-ring multi-graph model, it is transformed into a Markov decision-making process, and the environment module and DDQN network module are used for resource allocation. Dynamically adjust resource allocation strategies to maximize resource reuse and network throughput.
Conflict-free resource allocation is achieved in DT-6G-IoT, which improves resource reuse rate and network throughput, effectively reduces the impact of large-scale overlapping interference, and improves resource management efficiency.
Smart Images

Figure CN117202377B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication resource allocation, and in particular to a network conflict-free resource allocation method based on a double deep Q network and a conflict degree algorithm. Background Art
[0002] With the increasing number of IoT devices, 6G-IoT has a larger number of various devices with wider coverage and wider coverage, resulting in complex overlapping interference. How to effectively manage resources in 6G-IoT is an urgent problem to be solved. The difficulty of current resource management lies in how to improve resource utilization and avoid interference. At present, based on the deep reinforcement learning (DRL) method, the online DRL algorithm is designed to improve resource utilization. However, most current studies only provide resource scheduling of network units, and rarely consider using global network information for global resource management, which makes resources underutilized.
[0003] In order to improve resource reuse, researchers began to use digital twins (DT) to assist the network in resource scheduling from the perspective of the entire network. The resource reuse rate of the network can be significantly improved by using DT to assist the network. However, in 6G-IoT, large-scale overlapping of networks is very common, and large-scale overlapping interference is inevitable, resulting in low QoS and throughput of the network. Few studies have fully considered the management of large-scale overlapping resources in the network. How to effectively avoid large-scale overlapping interference in DT-6G-IoT is still an unresolved problem. Summary of the invention
[0004] In view of this, the object of the present invention is to provide a network conflict-free resource allocation method based on a dual deep Q network and a conflict degree algorithm, which can improve the reuse rate of network resources and network throughput.
[0005] The objective of the present invention is achieved through the following technical solutions:
[0006] The present invention provides a network conflict-free resource allocation method based on a double deep Q network and a conflict degree algorithm, comprising the following steps:
[0007] Step 1: Obtain the user interference relationship of the network environment to be allocated resources and construct a single-loop multi-graph model. Under the constraint of no resource conflict, the optimization problem is constructed with the goal of maximizing the reuse rate ρ of the entire network resources.
[0008] Step 2: For the single-loop multi-graph model, the optimization problem is modeled as a Markov decision process, which includes six elements: state space, action space, state transfer matrix, immediate reward function, strategy and action value function;
[0009] Step 3: construct a resource allocation model, the resource allocation model includes an environment module and a DDQN network module, wherein the environment module is used to simulate the user interference relationship in the network environment; the DDQN network module includes a main network and a target network, a replay memory D, an ε-greedy algorithm unit and a loss function calculation unit;
[0010] Step 4: According to the DDQN algorithm and the conflict degree algorithm, select the action corresponding to the maximum action value function to obtain the optimal conflict-free resource allocation strategy.
[0011] Furthermore, in step 1, constructing a single-loop multi-graph model includes the following steps:
[0012] S11: According to the hypergraph theory, the interference area in the network environment is modeled as a hypergraph model, which is expressed as H = {V, E}, where V = {v1, v2, ..., v n} represents the vertex set, representing the user set, E = {e1, e2, ..., e m} is a hyperedge set, representing the user's IC set, and the relationship between vertices and hyperedges is represented by the association matrix I h Indicates that I h The columns in I correspond to vertices, h The rows in correspond to hyperedges, where
[0013] I h ={a (i,j)}, i=1,2,...,n, j=1,2,...,m
[0014]
[0015] S12: According to the duality theory, the hypergraph model is transformed into a dual hypergraph model. In the dual hypergraph, E = {e1, e2, ..., e m} represents the vertex set, i.e., IC set, V = {v1,v2,...,v n} represents the edge set, that is, the user set, V = {v1,v2,...,v n} represents the edge set, the ring of vertices represents non-overlapping users, the edge represents overlapping users, the dual hypergraph and an incidence matrix I dh association,
[0016] S13: Through matrix transformation, the dual hypergraph model is transformed into a multi-graph model. The multi-graph model and the adjacency matrix A mulit Association, in the multi-graph model, each edge is only related to two vertices, and there can be multiple edges between two vertices. If there is a hyperedge associated with multiple vertices, the hyperedge is split into multiple edges associated with two vertices;
[0017] S14: converting the multi-graph model into a single-loop multi-graph model, including:
[0018] Remove overlapping users from A mulit Separate from A mulit It is expressed as:
[0019] A mulit =A mu +A su ,
[0020] Among them, A mu represents the number of overlapping users between ICs, through A mulit In the example, the diagonal elements are set to 1, and the other values remain unchanged; su Denotes the number of non-overlapping users in each IC, through A su =A mulit -A mu get;
[0021] According to A mu A single-loop multi-graph model is obtained, and the single-loop multi-graph model corresponds to an association matrix M, wherein the columns of the association matrix M correspond to the users in the single-loop multi-graph, and the rows correspond to the hyperedges.
[0022] Further, S13 includes:
[0023] (1) Calculate the number of cycles on each vertex of the dual hypergraph, including:
[0024] to I dh Sum each column of and set all elements except 1 in the result to 0 to obtain a sequence R*, where the number of elements in R* is equal to the number of edges in the dual hypergraph;
[0025] A one-dimensional column vector R* is used to record whether an edge is a ring. R*(n)=1 indicates that the edge v n is a ring, R*(i) represents the i-th element in R*;
[0026] I dh Each row of R* performs a logical AND operation and sums the obtained elements to obtain the number of rings for each vertex in the multigraph, which is expressed as diag(A mulit )=I dh ·R*, “·” indicates logical AND operation;
[0027] (2) Calculate the edges between different vertices of the dual hypergraph, including:
[0028] Will I dh Perform a logical AND operation on the elements in any two rows and sum them to get the number of edges between the two vertices in the multigraph corresponding to the two rows;
[0029] (3) The number of rings of each vertex in the multigraph is taken as A mulit For the elements on the diagonal, the number of edges between different vertices is A mulit Off-diagonal elements.
[0030] Furthermore, the resource reuse rate ρ in step 1 is defined as:
[0031]
[0032] Among them, φ represents the total number of users, k c Indicates the total number of resources.
[0033] Furthermore, the conflict-free resource constraint in step 1 is expressed as:
[0034]
[0035] in,
[0036] K represents the resource set;
[0037]
[0038] D Confilt (v i ,k) represents user v i The degree of conflict in using resource k;
[0039] M Confilt is the conflict association matrix, that is, the association matrix M, which represents user v i Collections that conflict with other users;
[0040] e(v i ) is the edge set in the single-loop multi-graph model, user v i and e(v i ) are all associated with the same vertex in the single-loop multi-graph model;
[0041]
[0042] Further, step 2 includes the following steps:
[0043] S21: Determine the action space A, where for any time t, a t ∈A, in the target user v that contains the assignment i and action a at the allocated resource k t Defined as:
[0044] a t = {v i ,k},k∈K,
[0045] Among them, K represents the total resources;
[0046] S22: Determine the state space S, where the state s t Corresponding to the communication resource allocation of users in the single-loop multi-graph model at time t, the initial state s0 represents the state without any resource allocation. The Markov state is defined using the extended association matrix. i , the expanded incidence matrix M a (t i ) is expressed as:
[0047]
[0048] in,
[0049] M(t i ) represents the time t i is the association matrix M corresponding to the single-loop multi-graph model;
[0050] E k (t i ) represents the time t i is the communication resource allocation of each user in the single-ring multi-graph model, and an element of 0 indicates unallocated resources;
[0051] S23: Determine the immediate reward function r t , the immediate reward function is an immediate reward function based on the degree of conflict:
[0052]
[0053] Among them, D Conflict(t) represents the degree of conflict at time t, that is r(s t ,a t ) means in s t Select action a in state t Environmental rewards;
[0054] S24: Determine the state transfer matrix P, where the state transfer matrix P is composed of the transition probabilities between various states, and the transition probability is defined as p(s t+1 |s t ,a t ,s t-1 ,a t-1 ,...)=p(s t+1 |s t ,a t )=p(s t ,a t ,s t+1 ), which means that for any time t, for state s t Apply action a t Transition to next state s t+1The probability of , then for strategy π,
[0055]
[0056] in, Indicates that through strategy π, the state s t Transition to next state s t+1 The probability of π(a|s) is p(a t =a|s t =s), which represents the probability of applying action a to state s at time t, a~π(·|s), where “~” represents probability distribution sampling;
[0057] S25: Determine the action value function q under strategy π π (s,a), where q π (s,a) represents the expected discounted return after applying action a to state s under strategy π, which can be expressed as:
[0058]
[0059] Where E[·] represents the expectation operator and γ represents the discount factor.
[0060] Further, step 4 includes the following steps:
[0061] S41: Initialize the CCQN network and its parameters, including initializing the main network weight w and the target network weight θ, and selecting the initial action a0 and its initial state s0;
[0062] S42: Select a random action in the action space A to perform a t Otherwise, choose an action that maximizes the action value function;
[0063] S43: According to the selected action a t and status t Calculate the instant reward r t , and get the expanded incidence matrix M at the next time t+1 a (t+1);
[0064] S44: Using the extended correlation matrix M at time t+1 a (t+1) to obtain the state at time t+1, that is, s t+1 =M a (t+1), and the current experience e t = t ,a t ,r t ,s t+1 >Store in replay memory D;
[0065] S45: randomly select an experience from the replay memory D to train the weight parameter w of the main network, and update the parameter θ=w in the target network according to the set update step size;
[0066] S46: Update the greed factor ε, that is
[0067]
[0068] Among them, ε t represents the greed factor at time t; ε t+1 represents the greed factor at time t+1; ε decay Indicates the set attenuation factor; ε min Indicates the minimum greed factor set;
[0069] S46: for each iteration, repeat steps S42-S46 until the iteration is completed;
[0070] S47: Output the final network weight w and the target network weight θ, as well as the optimal strategy π*(s,a).
[0071] Furthermore, for the weight parameters in the main network, the agent uses the gradient method to update, which is expressed as:
[0072]
[0073]
[0074] in,
[0075] L t (ω)=[q(s,a;ω)-y t ] 2 ,
[0076]
[0077] α represents the gradient update step size;
[0078] L t (ω) represents the loss function at time t; y t Represents the output of the target network at time t.
[0079] Further, determine the optimal strategy π*(s,a), where π*(s,a)=argmax π∈Π q π (s,a), that is, determine the optimal action value function It is equivalent to finding the optimal strategy, Π represents the set of all strategies, and is used to determine the optimal action value function The action-value function is approximated by a deep network method, that is, the strategy corresponding to the maximum q(s,a;w) is found to be the optimal strategy.
[0080] Furthermore, determining the user interference relationship includes the following steps:
[0081] Calculate any two users v i and v j The maximum distance R between the (i,j) ;
[0082] Get user v i and v j The actual distance between (i,j) ;
[0083] According to R (i,j) and l (i,j) relationship, determine the user v i and v j Interference between (i,j) ,in
[0084]
[0085] Inter (i,j) =1 means v i Interference j ,Inter (i,j) =0 means no interference.
[0086] The beneficial effects of the present invention are:
[0087] 1. Under the DT framework, the present invention analyzes the interference relationship between devices according to the communication distance and location information, proposes the concept of interference cell (IC), and establishes a hypergraph interference model for large-scale overlapping interference scenarios in DT-6G-IoT based on hypergraph theory, which intuitively reflects the interference relationship between users;
[0088] 2. In order to reduce the difficulty of resource allocation in DT-6G-IoT, the hypergraph model is simplified into a dual hypergraph using the hypergraph duality theory. The dual hypergraph is converted into a multigraph by analyzing the user interference relationship in the hyperedge. In order to obtain the resource allocation model of ICS overlap of interfering cells, the multigraph is simplified into a single-ring multigraph, and the conflict-free resource allocation problem is converted into a coloring problem in a single-ring multigraph.
[0089] 3. In order to achieve conflict-free resource allocation in overlapping areas and improve resource utilization, the present invention proposes a conflict-free resource allocation algorithm (i.e., DDQN-CD algorithm) based on a dual deep Q network (DDQN) and a conflict degree algorithm (CD algorithm). The algorithm uses DDQN-CD to learn the resource allocation process in DT-6G-IoT, and dynamically adjusts the resource allocation method based on empirical playback data to achieve conflict-free resource allocation and maximize resource reuse rate and network throughput.
[0090] Other advantages, objectives and features of the present invention will be described in the following description to some extent, and to some extent, will be obvious to those skilled in the art based on the following examination and study, or can be taught from the practice of the present invention. The objectives and other advantages of the present invention can be realized and obtained through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0091] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings, in which:
[0092] Figure 1 It is the DT-6G-IoT architecture in the present invention;
[0093] Figure 2 is the communication interference model in the present invention;
[0094] Figure 3 is an exemplary hypergraph model in the present invention;
[0095] Figure 4 (a)- Figure 4 (c) are respectively exemplary dual hypergraph models, multi-graph models and single-loop multi-graph models in the present invention;
[0096] Figure 5 It is the DDQN-CD architecture of DT-6G-IoT in the present invention;
[0097] Figure 6 It is a simulation diagram of the relationship between the cumulative revenue and the number of iterations in the DDQN-CD algorithm of the present invention;
[0098] Figure 7 It is a comparison chart of the simulation results of resource allocation of the DDQN-CD algorithm in the present invention and other algorithms;
[0099] Figure 8 This is a comparison chart of the maximum network throughput of the DDQN-CD algorithm in the present invention and other algorithms;
[0100] Fig. 9 This is a comparison chart of the minimum network throughput of the DDQN-CD algorithm in the present invention and other algorithms;
[0101] Fig.10 This is a comparison chart of the average network throughput of the DDQN-CD algorithm in the present invention and other algorithms;
[0102] Fig.11 This is a comparison chart of the maximum resource reuse rate of the DDQN-CD algorithm in the present invention and other algorithms. DETAILED DESCRIPTION
[0103] The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the preferred embodiments are only for illustrating the present invention, rather than for limiting the protection scope of the present invention.
[0104] The present invention proposes a network conflict-free resource allocation method based on a double deep Q network and a conflict degree algorithm, comprising the following steps:
[0105] Step 1: Obtain the user interference relationship of the network environment to be allocated resources and construct a single-loop multi-graph model. Under the constraint of no resource conflict, the optimization problem is constructed with the goal of maximizing the reuse rate ρ of the entire network resources.
[0106] Step 2: For the single-loop multi-graph model, the optimization problem is modeled as a Markov decision process, which includes six elements: state space, action space, state transfer matrix, immediate reward function, strategy and action value function;
[0107] Step 3: construct a resource allocation model, the resource allocation model includes an environment module and a DDQN network module, wherein the environment module is used to simulate the user interference relationship in the network environment; the DDQN network module includes a main network and a target network, a replay memory D, an ε-greedy algorithm unit and a loss function calculation unit;
[0108] Step 4: According to the DDQN algorithm and the conflict degree algorithm, select the action corresponding to the maximum action value function to obtain the optimal conflict-free resource allocation strategy.
[0109] In order to achieve effective conflict-free resource management in large-scale ultra-dense networks, the present invention proposes a DT-assisted ultra-dense access point (AP) and user equipment (UE) 6G-IoT framework, such as Figure 1As shown. The framework mainly consists of three layers, namely the 6G-IoT layer, the indoor baseband processing unit (Building Baseband Unit, BBU) pool and the DT layer. In the 6G-IoT layer, there are n UEs and multiple APs. The communication radius of the terminal and the AP overlaps and covers a large area. The terminal uses D2D communication to form a self-organizing network, and the AP provides auxiliary access in the network. Considering the possible differences in communication radius between different types of terminals, this scenario sets up two terminals with different communication radiuses. The terminal perceives the surrounding environment information and sends it to the BBU pool through the 6G-IoT layer AP. The BBU pool consists of BBU and computing servers, collects all environmental information in the network, and builds a DT layer to virtually map various node relationships in the entire network. The DT layer is a global model that interacts with the terminal and AP in real time and keeps synchronization with the physical network. Since the global model contains information about the entire network, DT can be used to assist the resource management of the terminal to avoid interference. Compared with APs, there are a large number of UEs in DT-6G-IoT, and overlapping interference mainly occurs between UEs. Therefore, the present invention mainly considers large-scale overlapping interference between UEs and D2D schemes.
[0110] In some embodiments, the determination of the user interference relationship comprises the following steps:
[0111] Calculate any two users v i and v j The maximum distance R between the (i,j) ;
[0112] Get user v i and v j The actual distance between (i,j) ;
[0113] According to R (i,j) and l (i,j) relationship, determine the user v i and v j Interference between (i,j) ,in
[0114]
[0115] Inter (i,j) =1 means v i Interference j ,Inter (i,j) =0 means no interference.
[0116] Typical interference scenarios in DT-6G-IoT are as follows: Figure 2For example. Since UE1 and UE2 are within each other's communication radius, interference will occur when they send data at the same time. The power received from UE2 to UE1 can be calculated as:
[0117]
[0118] Among them, P t(2,1) is the transmit power of UE2, G r is the receiving gain of UE1, G t is the transmit gain of UE2, h r is the antenna height of UE1, h t is the antenna height of UE2, λ is the attenuation factor, l (2,1) is the distance from UE1 to UE2.
[0119] When P r(2,1) Exceeds the interference threshold S of UE1 th When , the communication between UE1 and UE3 will be interrupted. The communication interference radius of UE2 is R (2,1) , indicating the maximum distance that may cause interference between UE2 and UE1. r(2,1) =S th ,but Right now but
[0120] Comparison R (i,j) and l (i,j) ,UE i and UE j The interference relationship between them can be expressed as:
[0121]
[0122] Among them, Inter (i,j) =1 indicates UE i Interference UE j ;Inter (i,j) =0 means no interference.
[0123] In 6G-IoT, each user is interfered by multiple users, and the interference relationship between users is complex. As a graphical tool, hypergraph has been widely used in network topology modeling. Unlike ordinary graphs, an edge in ordinary graphs can only correspond to two vertices, which is not suitable for analyzing the interference relationship between users in 6G-IoT. Hyperedges can contain multiple vertices, which can clearly describe the interference relationship between multiple users in the network. Therefore, hypergraph theory is an effective way to analyze the large-scale overlapping interference of DT-6G-IoT. According to the interference relationship between users, the interference area is modeled using hypergraph theory.
[0124] The present invention constructs the interference model of DT-6G-IoT using hypergraph theory and transforms the hypergraph interference into a single-loop multi-graph coloring problem.
[0125] In some embodiments, constructing a single-loop multi-graph model includes the following steps:
[0126] S11: According to the hypergraph theory, the interference area in the network environment is modeled as a hypergraph model, which is expressed as H = {V, E}, where V = {v1, v2, ..., v n} represents the vertex set, representing the user set, E = {e1, e2, ..., e m} is a hyperedge set, representing the user's IC set. If other users within the infrared range of a user receive interference, the area is defined as an IC (i.e., interference cell) centered on the user. In the hypergraph model, the relationship between vertices and hyperedges is represented by the association matrix I h Indicates that I h The columns in I correspond to vertices, h The rows in correspond to the hyperedges of H, where
[0127] I h ={a (i,j)}, i=1,2,...,n, j=1,2,...,m,
[0128]
[0129] I h You can also write:
[0130]
[0131] It should be noted that in the hypergraph model, there are two cases without interference in DT-6G-IoT, so they are not considered. These two cases are: 1) the vertex is not associated with any hyperedge, which means it is an isolated vertex, that is, the user stops working in DT-6G-IoT; 2) the hyperedge is associated with only one vertex, that is, the hyperedge contains only one vertex, which means that the user will not be interfered by other users. In this case, arbitrary resources can be allocated to the user.
[0132] Based on the relationship between vertices and hyperedges, the method of establishing hyperedges can be as follows: establish hyperedges with devices as the center, and each hyperedge contains many covered devices. Devices within the hyperedge are within each other's communication range and can cause interference to each other. Not all hyperedges are retained in the hypergraph, because if the hyperedge e i Contains hyperedge e j , then only the hyperedge e is retained in the hypergraph model i .
[0133] Figure 3is an exemplary hypergraph model. Figure 3 We can get its correlation matrix I h .
[0134] I h It can be expressed as:
[0135]
[0136] Typically, each IC will be considered a hyperedge. However, not all hyperedges are preserved. For example, in Figure 3 User v1 is affected by users v4, v7, v8, v 10 ,v 11 Therefore, IC1 is considered as the hyperedge e1. Similarly, we can get the hyperedges e2, e3, ..., e 11 However, e4,e5,...,e 11 It is contained by e1, e2 and e3, so there are no hyperedges e4, e5, ..., e 11 , only e1, e2 and e3 are retained.
[0137] from Figure 3 It can be seen that users in an IC can be divided into two categories: overlapping users and non-overlapping users. Non-overlapping users refer to users who belong to only one IC, that is, users who are associated with a vertex of a hyperedge. Overlapping users are located in multiple different ICs, that is, users who are associated with multiple hyperedges. Compared with non-overlapping users, the interference relationship of overlapping users is extremely complex, that is, the resource allocation of overlapping users is more challenging, so this application mainly studies this type of situation. After allocating overlapping users, non-overlapping users can use traditional resource allocation algorithms to allocate the remaining resources.
[0138] Although the hypergraph model can represent the interference between users, the relationship between hyperedges and vertices is complex, which is not convenient for interference analysis and resource allocation. For example, as the number of users increases and the interference situation becomes more complicated, it is difficult to distinguish non-overlapping users on a single hyperedge vertex from other users.
[0139] In order to solve this problem and simplify the hypergraph model of DT-6G-IoT with large-scale overlapping coverage, the present invention converts the hypergraph model into a dual hypergraph model in S12 according to the duality theory.
[0140] In the dual hypergraph, the ring of vertices represents non-overlapping users, and the edge connecting two vertices represents overlapping users. In this way, non-overlapping users and overlapping users can be accurately distinguished. It is worth noting that the vertices in the dual hypergraph represent interfering cells IC, and the interference relationship between users remains unchanged.
[0141] In the dual hypergraph, E = {e1,e2,...,em} represents the vertex set, i.e., IC set, V = {v1,v2,...,v n} represents the edge set, that is, the user set.
[0142] Dual Hypergraph and an Incidence Matrix I dh association, among which
[0143]
[0144] Similarly, Figure 3 Taking the hypergraph model shown in the figure as an example, according to formula (5),
[0145]
[0146] It should be noted that ① in formula (7) means that there are at least two users covered by the hyperedge (i.e., e i is associated with at least two vertices in the dual hypergraph model). According to formula (7), the corresponding dual hypergraph model can be obtained, as Figure 4 (a) shown.
[0147] In the dual hypergraph model, there are still users associated with multiple hyperedges, such as user v8 being interfered by multiple interfering users (IUs), such as Figure 4 (a). It is difficult to allocate resources to user v8 while avoiding interference from multiple IUs. To simplify the analysis of users with multiple IUs, we transform the dual hypergraph into a multigraph where each edge is associated with only two vertices and there can be multiple edges between two vertices. If a hyperedge is associated with multiple vertices, it can be split into multiple edges associated with two vertices in the multigraph. For example, in Figure 4 In (a), the hyperedge v8 connects vertices e1, e2, and e3, which can be divided into three different edges, which connect e1, e2, and e3 in pairs. In addition, in the multi-graph model, the same symbols are used as in the dual hypergraph.
[0148] Therefore, in S13: the dual hypergraph model is transformed into a multi-graph model through matrix transformation. The association matrix I of the dual hypergraph dh It can be transformed into the adjacency matrix A of the multi-graph model through the matrix mulit This step may specifically include:
[0149] (1) Calculate the number of cycles on each vertex of the dual hypergraph, including:
[0150] to I dh Sum each column of and set all elements except 1 in the result to 0 to obtain a sequence R*, where the number of elements in R* is equal to the number of edges in the dual hypergraph;
[0151] A one-dimensional column vector R* is used to record whether an edge is a ring. R*(n)=1 indicates that the edge v n is a ring, R*(i) represents the i-th element in R*;
[0152] I dh Each row of R* performs a logical AND operation and sums the resulting elements to obtain the number of rings for each vertex in the multigraph;
[0153] (2) Calculate the edges between different vertices of the dual hypergraph, including:
[0154] Will I dh Perform a logical AND operation on the elements in any two rows and sum them to get the number of edges between the two vertices in the multigraph corresponding to the two rows;
[0155] (3) The number of rings of each vertex in the multigraph is taken as A mulit For the elements on the diagonal, the number of edges between different vertices is A mulit Off-diagonal elements.
[0156] The above process is expressed as:
[0157] diag(A mulit )=I dh ·R*, (8)
[0158] Here, “·” represents a logical AND operation.
[0159] According to equations (7) and (8), we can get:
[0160]
[0161] In the multi-graph model, the adjacency matrix A mulit In , its elements represent the number of edges between vertices, the diagonal elements represent the number of users in each IC, and the off-diagonal elements represent the number of overlapping users.
[0162] According to A mulit , we can get Figure 4 (a) Multi-graph model 4 after transformation (b). In the multi-graph model, a ring represents non-overlapping users with corresponding ICs. Since non-overlapping users only need to consider the interference of one IU, while overlapping users need to consider the interference of multiple IUs, the resource allocation strategies for the two types of users are different.
[0163] In the multi-graph model, a ring represents non-overlapping users with corresponding ICs. Since non-overlapping users only need to consider the interference of one IU, while overlapping users need to consider the interference of multiple IUs, the resource allocation strategies for the two types of users are different.
[0164] For non-overlapping users, such as Figure 4In v5 of (b), the traditional resource allocation strategy does not consider overlapping interference, because it only needs to avoid using the same resources as one IC. Therefore, we can only focus on the resource allocation of overlapping users and move the overlapping users from A to B. mulit A mulit It can be expressed as:
[0165] A mulit =A mu +A su , (10)
[0166] Among them, A mu represents the number of overlapping users between ICs, through A mulit In the example, the diagonal elements are set to 1, and the other values remain unchanged; su Denotes the number of non-overlapping users in each IC, through A su =A mulit -A mu get.
[0167] According to formula (9), we can get:
[0168]
[0169]
[0170] Therefore, in S14: According to A mu By obtaining a single-loop multi-graph model, the multi-graph model can be transformed into a single-loop multi-graph model, such as Figure 4 (c). Next, in the single-loop multi-graph model, the resource allocation problem for non-conflicting overlapping users is transformed into an edge coloring problem. In the edge coloring problem, different colors represent different resources, and colors can be reused for multiple users.
[0171] The single-loop multi-graph model corresponds to an association matrix M, the columns of which correspond to users in the single-loop multi-graph, and the rows correspond to hyperedges. The association matrix M can be used to calculate the interference intensity between users. The calculation of interference intensity helps the convergence of DRL in the later stage.
[0172] Figure 4 The incidence matrix M of (c) can be expressed as:
[0173]
[0174] Among them, the rows represent the vertices of the matrix M, and the columns represent the edges of the matrix M. v5,v9,v 10 ,v 11 express Figure 4 (b) belongs to non-overlapping users, so it is not in Figure 4 (c) Consideration.
[0175] In order to evaluate the interference intensity of DT-6G-IoT, two types of conflicts that constitute DT-6G-IoT interference are defined, and a method for calculating the interference intensity based on a single-loop multi-graph model is proposed. The two types of conflicts include: 1) different users connected to the same vertex are assigned the same resource; 2) different resources are repeatedly assigned to the same user.
[0176] The present invention uses the conflict association matrix M conflict (i.e., the association matrix M) to represent user v i A collection of conflicts with others.
[0177] User i The conflict degree of using resource k can be defined as:
[0178]
[0179] in,
[0180]
[0181] exist Figure 4 (c), e(v i ) is an edge set, v i and e(v i ) are all associated with the same vertex.
[0182] In DT-6G-IoT, in order to meet the requirement of conflict-free resource allocation, all user resources must be allocated in D Conflict (v i ,k)=0. Therefore, the necessary conditions (i.e. constraints) for conflict-free resource allocation are:
[0183]
[0184] Wherein, K represents a set of network communication resources.
[0185] The total number of users φ and the number of communication resources k c There is a certain relationship between them, which can be used to evaluate the effect of resource reuse. The resource reuse rate of the entire network, ρ, can be defined as:
[0186]
[0187] Under the necessary condition (16), ρ should be made as large as possible. The sufficient condition for the conflict-free resource allocation strategy is to obtain the maximum value of the sum of the resource allocation influence values of each user, that is:
[0188]
[0189] The goal of the resource allocation strategy is to maximize the resource reuse rate of the total resource allocation of DT-6G-IoT under the constraint of no resource conflict. Constraint C1 means that the resource allocation result of the entire network is conflict-free.
[0190] The resource management problem of overlapping areas in DT-6G-IoT can be regarded as a coloring problem of a single-loop multigraph with multiple edges between vertices. On this basis, the present invention proposes a conflict-free resource allocation strategy based on a double deep Q network and a conflict degree algorithm (i.e., DDQN-CD algorithm) to improve resource reuse rate.
[0191] Assume that the DT-6G-IoT network is stable, that is, the total number of users tends to be constant. Then, the evaluation of communication resource allocation depends on three key factors: the current network state M, the total number of users φ, and the currently allocated communication resources K. The conflict-free resource allocation strategy is an optimal decision problem. To this end, the present invention proposes a DDQN-CD algorithm to perceive the communication resource allocation process of DT-6G-IoT, and designs a communication resource allocation strategy that maximizes the conflict-free resource reuse rate of DT-6G-IoT.
[0192] Based on the conflict-free resource allocation strategy in DT-6G-IoT, a finite-length Markov chain model can be constructed. In this model, the state s t The communication resource allocation at time t corresponds to the initial state s0 in the finite length Markov chain model, which means that there is no resource allocation. Figure 4 In (c), no communication resources have been allocated to any user. The Markov state time series of time length M is s(t0), s(t1), ..., s(t i ),...,s(t M-1 ),s(t i )∈S, where S is a finite set {s 1 ,...,s N}, ie, |S|=N. Therefore, the state transition probability P(s(t i+1 )|s(t i )) can be defined as:
[0193] P(s(t i+1 )|s(t i ))=Pr(s(t i+1 )|s(t i ),s(t i-1 ),...,s(t0)). (19)
[0194] According to formula (13), the correlation matrix M cannot contain the resource allocation state. The correlation matrix M cannot be defined as the Markov state of DT-6G-IoT to design the resource allocation strategy. Therefore, the present invention proposes an extended correlation matrix to define the Markov state. At time t i , the expanded incidence matrix M a (t i ) is expressed as:
[0195]
[0196] Among them, M(t i ) represents the time t i When is the correlation matrix M corresponding to the single-loop multi-graph model; E k (t i ) represents the time t i , is the communication resource allocation of each user in the single-ring multi-graph model, and an element of 0 indicates unallocated resources. The extended association matrix contains the allocated communication resource situation and the relationship between different users.
[0197] Figure 4 (c) The corresponding extended incidence matrix M a (t i ) can be expressed as:
[0198]
[0199] The conflict-free resource allocation problem of DT-6G-IoT is a combinatorial optimization problem, that is, finding the optimal state According to formula (18), the state It means that the resource allocation of all users in DT-6G-IoT is based on the premise of ensuring that resources do not conflict (i.e. ∑ i D Conflict (v i , k)=0) to maximize the resource reuse rate ρ. Therefore, the present invention further proposes to construct a state transfer matrix P to obtain the optimal state The state transition matrix can be defined as:
[0200]
[0201] Among them, the element p in the state transfer matrix P ss' represents the probability of the state transitioning from state s to s', satisfying p ss' =p(s'|s),∑ j p(s j |s)=1,
[0202] Building a Markov decision process (MDP) framework is the main task to achieve reinforcement learning. MDP consists of six basic elements, including the action value function Q(s,a), (s∈S,a∈A), the action space A, the state space S, the state transition matrix P, the strategy π and the immediate reward function r(s,a).
[0203] In some embodiments, step 2 comprises the following steps:
[0204] S21: Determine the action space A, where for any time t, a t ∈A, in the target user v that contains the assignment i and action a at the allocated resource k t Defined as:
[0205] a t = {v i ,k},k∈K, (23)
[0206] Among them, K represents the total resources;
[0207] S22: Determine the state space S, where the state s t Corresponding to the communication resource allocation of users in the single-loop multi-graph model at time t, the initial state s0 represents the state without any resource allocation, and the Markov state is defined using the extended incidence matrix;
[0208] S23: Determine the immediate reward function r t , the instant reward function is an instant reward function based on the degree of conflict. The instant reward r(t) is the environmental reward when action a(t) is selected in state s(t). The instant reward implicitly defines the goal of the optimal decision problem, that is, the reward function can define the positive direction of MDP learning. At time t in the environment, the reward can be expressed as r t = r(s t ,a t ).
[0209] According to formula (18), under the constraints, the agent chooses a behavior that maximizes the immediate reward. In order to obtain the maximum immediate reward, the agent can choose the action that maximizes the action value function, that is, when D Conflict = 0, ρ is maximum. The randomness of exploration in reinforcement learning can cause the agent to perform illegal operations for resource allocation. To address this problem, when considering the allocation of user resources in DT-6G-IoT, the action rewards are divided into effective rewards (positive feedback) and invalid rewards (negative feedback). If the action being performed causes interference between users, the immediate reward r t It will be a negative feedback. When DT-6G-IoT allocates communication resources to satisfy D ConflictWhen (e, k) = 0, the user will receive positive feedback rewards according to the resource reuse rate ρ.
[0210] Therefore, the immediate reward function r based on the degree of conflict t It can be expressed as:
[0211]
[0212] Among them, D Conflict(t) represents the degree of conflict at time t, that is r(s t ,a t ) means in s t Select action a in state t Environmental rewards;
[0213] S24: Determine the state transition matrix P. By applying action a to state s, the MDP system can complete the state transition from the current state s to the next state s'. Its transition probability can be expressed as p(s,a,s'). Action a, state s and s' need to satisfy the following conditions: p(s,a,s')≥0 and p(s,a,s')≤1 and ∑ s'∈S p(s,a,s')=1.
[0214] According to the Markov property, the current action choice a t It does not depend on previous actions and historical states. Define the transition probability as p(s t+1 |s t ,a t ,s t-1 ,a t-1 ,...)=p(s t+1 |s t ,a t )=p(s t ,a t ,s t+1 ), which means that for any time t, for state s t Apply action a t Transition to next state s t+1 The probability of , then for strategy π,
[0215]
[0216] In MDP Equivalent to the transition probability in a Markov chain. Indicates that through strategy π, the state s t Transition to next state s t+1 probability.
[0217] Given a Markov decision process (S, A, P, r, γ), for each state s∈S and action a∈A, the policy π is the rule that the agent uses to decide what action to perform next. For each state s∈S, if this state satisfies π(s, a) ≥ 0 and ∑ a∈A π(s,a)=1, then it is defined as a random strategy. The probability of π(a|s) is p(a t =a|s t =s), which represents the probability of applying action a to state s at time t, a~π(·|s), where “~” represents probability distribution sampling.
[0218] S25: Determine the action value function q under strategy π π (s,a), where q π (s,a) represents the expected discounted return after applying action a to state s under strategy π, which can be expressed as:
[0219]
[0220] Where E[·] represents the expectation operator and γ represents the discount factor.
[0221] Since the optimal strategy π* enables the agent to obtain the optimal action value function q*(s,a), the optimal strategy π* can be implicitly solved by obtaining the optimal value function. Therefore, the optimal Bellman equation can be obtained
[0222]
[0223]
[0224] Among them, q*(s,a) represents the optimal expected long-term benefit of each state-action pair, so the optimal strategy π*(s,a)=argmax π∈П q π (s,a). Therefore, the optimal action value function is obtained This is equivalent to finding the optimal strategy π*.
[0225] For DT-6G-IoT, it is difficult to directly solve the optimal action value function q*(s,a) by exhaustive method, and the state transition probability p(s'|s,a) is usually unknown. Therefore, the present invention introduces offline strategy TD control to obtain the optimal action value function q*(s,a), namely Q-learning. The basic idea is to estimate the action value function based on the reward and the maximum Q value. The update rule is an upgraded version of TD learning, using the action value function and the built-in MAX operator instead of the action value function of the next state. The action value function is stored in the |S|×|A|Q table.
[0226]
[0227] Where α is the learning rate. The ε-greedy algorithm is the most basic search algorithm, that is, the probability of selecting the best action is 1-ε, and the probability of randomly selecting another action is ε. Generally, the algorithm prefers to select the action with the largest Q value under the current environment state. Therefore, in order to obtain a larger reward, the agent needs to try different actions to explore potential better action environments.
[0228] For example, when the size of the optional MDP actions is too large, the agent cannot efficiently and quickly traverse all state-action pairs, let alone find the optimal action strategy. Therefore, in order to solve large-scale or even infinite action-state spaces, a deep network method is used to approximate the action-value function q(s,a). It is defined as follows:
[0229] q(s,a;ω)≈q * (s,a). (30)
[0230] In order to eliminate the uncertainty problem caused by the increase in the number of states and actions, or even the infinity of the external environment, a neural network with a parameter of ω (deep Q-network, DQN) is used to represent the original action value function and perform function fitting. Therefore, when DRL is used to solve problems with large state-action pairs, only the weights of the neural network need to be stored. The objective function of DRL is mathematically defined as follows:
[0231]
[0232] Experience t = t ,a t ,r t ,s t+1 >, the prediction error (loss function) L(ω) is proposed to update the action value function q(s,a;ω); L(ω) can be defined as
[0233] L(ω)=[q(s,a;ω)-y] 2 , (32)
[0234] Where y is the target output of DQN. This minimizes the prediction error (loss function) in equation (32). When acquiring new experience ET, the agent will update ω using a gradient-based method. The process of updating the weights W of the Q-network is as follows:
[0235]
[0236] w←w-α[q(s,a;w)-y]▽q(s,a;w). (34)
[0237] In DQN, the value function has a maximization operation in its update formula. DT6G-IoT selects action a with the largest resource reuse rate ρ for user resource allocation. This selected action a maximizes the value of q(s,a;ω). Overall, the estimated value function is greater than the true value function, and the error increases with the number of behaviors. In order to solve the problem of overestimation of the value function, according to the definition of DDQN-CD, different value functions are used to realize behavior selection and evaluation, namely
[0238]
[0239] The action is selected by the main network q(s,a;ω) and its value is evaluated by the target network q(s,a;θ). DDQN uses different value functions for action selection and evaluation respectively. When in the target network, the Q value is not necessarily the maximum value, so it can avoid overestimating suboptimal actions by selecting.
[0240] like Figure 5 As shown, the present invention proposes a DDQN-CD architecture for DT-6G-IoT, including a flowchart of user resource allocation in the overlapping area and agent replay memory training. The MDP architecture of DT-6G-IoT consists of 6 functional modules: 1) single-loop multi-graph model of DT-6G-IoT; 2) main network and target network; 3) loss function; 4) replay memory D; 5) ε-greedy algorithm unit; 6) loss function L unit.
[0241] The input of conflict-free resource allocation based on DDQN-CD algorithm has six parameters: 1) the capacity of replay memory D max ; 2) The decay rate of the greed factor ε decay ; 3) Minimum value of ε; 4) Target network update frequency; 5) Extended association matrix M corresponding to the single-loop multi-graph model in DT-6G-IoT a ; 6) Greed factor initial value ε0. The output of the DDQN-CD algorithm includes: 1) the weight of the Q function (i.e., the main network); 2) the weight of the target Q function (i.e., the target network); 3) the optimal allocation result of user resources in the overlapping area.
[0242] Therefore, according to the above description, the conflict-free resource allocation based on the DDQN-CD algorithm proposed in the present invention may include the following steps:
[0243] S41: Initialize the CCQN network and its parameters, including initializing the main network weight w and the target network weight θ, and selecting the initial action a0 and its initial state s0;
[0244] S42: Select a random action in the action space A to perform a t Otherwise, choose an action that maximizes the action value function;
[0245] S43: According to the selected action a t and status t Calculate the instant reward r t , and get the expanded incidence matrix M at the next time t+1 a (t+1);
[0246] S44: Using the extended correlation matrix M at time t+1 a (t+1) to obtain the state at time t+1, that is, s t+1 =M a (t+1), and the current experience e t = t ,a t ,r t ,s t+1 >Store in replay memory D;
[0247] S45: randomly select an experience from the replay memory D to train the weight parameter w of the main network, and update the parameter θ=w in the target network according to the set update step size;
[0248] S46: Update the greed factor ε, that is
[0249]
[0250] Among them, ε t represents the greed factor at time t; ε t+1 represents the greed factor at time t+1; ε decay represents the decay rate of the set greed factor ε; ε min Indicates the minimum greed factor set;
[0251] S46: for each iteration, repeat steps S42-S46 until the iteration is completed;
[0252] S47: Output the final network weight w and the target network weight θ, as well as the optimal strategy π*(s,a).
[0253] DDQN-CD can obtain experience e by randomly sampling from the replay memory D t+1 Therefore, the weight parameter w in the Q function (i.e., the main network) can be updated through gradient training, and the parameter θ in the target Q function (i.e., the target network) can also be updated once according to the update frequency.
[0254] The computational complexity and performance of the DDQN-CD algorithm are described below.
[0255] Since the computational complexity of DQN comes from the matrix operations of the fully connected layers, the complexity of DQN with J fully connected layers can be described as Where K j represents the neural size of layer J. The DDQN-CD framework is a combination of Q-learning and two deep neural networks (DNNs) with the same structure. Since the Q-network only performs forward propagation in the training step, the total computational complexity of the DDQN-CD algorithm is Where O(T) is the complexity of the ∈ greedy strategy.
[0256] The present invention has established and conducted extensive simulations on a general-purpose server equipped with Intel(R) Xeon(R) Gold 6242R CPU@3.10GHz (20CPUs) 64GB memory and NVIDIA GeForce RTX 3080Ti GPU to evaluate the performance of the proposed algorithm. A summary of all key simulation parameters of the environment model and DRL model is shown in Table I.
[0257] Table 1: Parameter settings
[0258]
[0259] The performance evaluation indicators of the DDQN-CD algorithm include cumulative revenue, network throughput, and resource reuse rate.
[0260] 1) Cumulative gain: The cumulative gain U is used to represent the convergence performance of the DDQN-CD algorithm. The larger the cumulative gain, the better the estimation performance of the DDQN-CD model. The cumulative gain U can be defined as
[0261]
[0262] 2) Network throughput: The evaluation metric is a classic metric
[34] . This metric calculates the network throughput of a single user.
[0263] The network throughput ω can be expressed as
[0264]
[0265] 3) Conflict-free resource reuse rate: The conflict-free resource reuse rate ρ defined in formula (17) is used to evaluate the resource reuse rate of conflict-free resource allocation.
[0266] The simulation results are described below.
[0267] The convergence of DDQN-CD algorithm is verified by simulation experiments. The convergence of DDQN-CD algorithm is judged by measuring the transformation trend of cumulative revenue U.
[0268] Figure 6 It is a simulation diagram of the relationship between the cumulative benefit and the number of iterations in the DDQN-CD algorithm of the present invention. Among them, the curve represents the data after average processing. The cumulative benefit U of the DDQN-CD algorithm changes with the increase of the number of training times. Before 1000 iterations, the cumulative benefit U increases or decreases significantly, that is, the DDQN-CD algorithm is exploring a conflict-free resource allocation strategy, and the average benefit curve is in an upward state. After more than 1000 iterations, the cumulative benefit U mostly fluctuates between 500 and 600, that is, the DDQN-CD algorithm converges and the average benefit curve is in a stable state.
[0269] Figure 7 is to convert the DDQN-CD algorithm ( Figure 7 (a)) and the random matching (RM) algorithm ( Figure 7 (b)), Greedy Matching (GM) algorithm ( Figure 7 (c)) and the maximum node degree (MND) algorithm ( Figure 7 (d)) Simulation comparison results on the allocated resources. The communication resources used in the simulation experiment are frequency resources (FR). In the DDQN-CD algorithm, FRS19 and 20 are reused twice, and FRS 6, 10, 16 and 17 are reused once, for a total of 12 different FRS. In the RM algorithm, FRS11 and 13 are reused once, and FRS1 and 14 are not allocated, for a total of 18 different FRS. In the GM algorithm, FR1 is reused twice, and FRS5, 10, and 11 are not allocated to any user, for a total of 17 different FRS. In the MND algorithm, FR2 is reused twice, FR4 is reused once, and FR9, 10, 14, 19 and 20 are not allocated to any user, for a total of 15 different FRS. According to (37), the network throughput of DDQN-CD algorithm, RM algorithm, GM algorithm and MND algorithm reached 80.6Mb / s, 53.7Mb / s, 58.2Mb / s and 67.1Mb / s respectively.
[0270] Figure 8 The maximum network throughput of DT-6G-IoT under different algorithms is given. The maximum network throughput is the best networking performance of DT-6G-IoT without interference. It is usually used to design the upper bound of the network. It should be noted that Figure 8 In the figure, for the simulation results with different numbers of users, from left to right, the results of the DDQN-CN algorithm, the results of the RM algorithm, the results of the GM algorithm, and the results of the MND algorithm are shown. Figure 8As shown in the figure, when DT-6G-IoT has 20 users, the maximum network throughput obtained by the DDQN-CD algorithm is above 80Mb / s. The network throughputs of other algorithms are all below 80Mb / s. When DT-6G-IoT has 45 users, the maximum network throughput obtained by the DDQN-CD algorithm can reach above 200Mb / s. The maximum network throughput obtained by the MND algorithm is between 180Mb / s and 200Mb / s. The network throughputs of other algorithms are between 140Mb / s and 160Mb / s. In general, the DDQN-CD algorithm has a greater advantage over DT-6G-IoT in terms of network throughput and communication capability.
[0271] Fig. 9 The minimum network throughput of DT-6G-IoT under different algorithms is given. The minimum network throughput reflects the minimum basic communication performance when DT-6G-IoT is severely interfered. It is the lower limit of network performance. It should be noted that Fig. 9 In the figure, for the simulation results with different numbers of users, from left to right, the results of the DDQN-CN algorithm, the results of the RM algorithm, the results of the GM algorithm, and the results of the MND algorithm are shown. Fig. 9 As shown in the figure, when DT6G-IoT has 20 users, the minimum network throughput obtained by the DDQN-CD algorithm is between 60Mb / s and 80Mb / s. The network throughput of other algorithms is between 40Mb / s and 60Mb / s. When DT-6G-IoT has 45 users, the minimum network throughput obtained by the DDQN-CD algorithm is between 180Mb / s and 200Mb / s. The minimum network throughputs of the MND algorithm, GM algorithm, and RM algorithm are between 160Mb / s and 180Mb / s, above 140Mb / s, and between 120Mb / s and 140Mb / s, respectively. In summary, as the network density increases, the DDQN-CD algorithm has obvious advantages over other algorithms in improving the minimum network throughput.
[0272] Fig.10 The average network throughput of DT-6G-IoT under different algorithms is shown. The average network throughput is usually used to evaluate the network performance under actual interference scenarios, which can effectively reflect the communication capability of DT-6G-IoT in actual applications. Fig.10 In the figure, for the simulation results with different numbers of users, from left to right, the results of the DDQN-CN algorithm, the results of the RM algorithm, the results of the GM algorithm, and the results of the MND algorithm are shown. Fig.10As shown in Figure 9, when DT-6G-IoT has 20 users, the average network throughput of the DDQN-CD algorithm, the RM algorithm, and the MND algorithm are all above 60Mb / s. The average network throughput of the RM algorithm is between 40Mb / s and 60Mb / s. The DDQN-CD algorithm has the largest increase in the average throughput of DT-6G-IoT, followed by the MND algorithm. Overall, the average network throughput of the RM algorithm and the GM algorithm are similar. When DT-6G-IoT has 45 users, the average network throughput of the DDQN-CD algorithm and the MND algorithm is between 180Mb / s and 200Mb / s. The DDQNCD algorithm has a higher average network throughput. Compared with the minimum network throughput shown in Figure 9, the DDQN-CD algorithm is more stable than other algorithms, and the network throughput fluctuates less.
[0273] Fig.11 The maximum resource reuse rate of DT-6G-IoT under different algorithms is given. Fig.11 In the figure, the four simulation results from top to bottom represent the results of DDQN-CD algorithm, MND algorithm, RM algorithm and GM algorithm respectively. Fig.11 As shown in the figure, the maximum resource reuse rate of the DDQN-CD algorithm is the largest. When the number of users is greater than 25, the maximum resource reuse rate of the DDQN-CD algorithm fluctuates between 0.5 and 0.6. Compared with the DDQN-CD algorithm and the MND algorithm, the maximum resource reuse rates of the RM algorithm and the GM algorithm are lower. When the number of users is greater than 35, the maximum resource reuse rates of the RM algorithm and the GM algorithm begin to drop rapidly.
[0274] This paper studies the resource management problem with large-scale overlapping interference in large-scale ultra-dense DT-6G-IoT. First, a DT-assisted 6G-IoT resource allocation model is proposed, and the interference relationship between users is represented based on a hypergraph. Then, in order to avoid interference between users in the overlapping area, the hypergraph is converted into a single-loop multigraph, and the conflict-free resource allocation problem is converted into a multi-graph coloring problem of average network throughput (Mb / s) resource reuse rate (%). Finally, the DDQN-CD algorithm is designed to achieve conflict-free and maximize resource reuse rate. Experimental results show that the algorithm has a high network resource reuse rate and throughput, and can provide better performance in DT-6G-IoT.
[0275] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution, which should be included in the scope of the claims of the present invention.
Claims
1. A network conflict-free resource allocation method based on a double deep Q network and a conflict degree algorithm, characterized in that: The following steps are involved: Step 1: Obtain the user interference relationship of the network environment to be allocated resources and construct a single-loop multi-graph model. Under the constraint of no resource conflict, the optimization problem is constructed with the goal of maximizing the reuse rate ρ of the entire network resources. Step 2: For the single-loop multi-graph model, the optimization problem is modeled as a Markov decision process, which includes six elements: state space, action space, state transfer matrix, immediate reward function, strategy and action value function; Step 3: construct a resource allocation model, wherein the resource allocation model includes an environment module and a DDQN network module, wherein the environment module is used to simulate the user interference relationship in the network environment; the DDQN network module includes a main network and a target network, a replay memory D, an ε-greedy algorithm unit and a loss function calculation unit; Step 4: According to the DDQN algorithm and the conflict degree algorithm, select the action corresponding to the maximum action value function to obtain the optimal conflict-free resource allocation strategy. Step 4 specifically includes: S41: Initialize the DDQN network and its parameters, including initializing the main network weight w and the target network weight θ, and selecting the initial action a0 and its initial state s0; S42: Select a random action in the action space A to perform a t exploration, or 1-ε t The probability of selecting an action that maximizes the action value function; S43: Action a selected at time t t and status t Calculate the instant reward r t , and get the expanded incidence matrix M at the next time t+1 a (t+1), where the immediate reward r t It is obtained based on the degree of conflict, namely: Among them, r(s t ,a t ) means in s t Select action a in state t Environmental rewards, D Conflict(t) represents the degree of conflict at time t, that is D Confilt (v i ,k) represents user v i The conflict degree of using resource k, ρ is the resource reuse rate; The extended incidence matrix M at time t+1 a (t+1) is expressed as: Among them, M(t+1) represents the correlation matrix corresponding to the single-loop multi-graph model at time t+1, and E k (t+1) represents the resource allocation matrix of the user at time t+1; S44: Using the extended correlation matrix M at time t+1 a (t+1) to obtain the state at time t+1, that is, s t+1 =M a (t+1), and the current experience e t = t ,a t ,r t ,s t+1 >Store in replay memory D; S45: randomly select an experience from the replay memory D to train the weight parameter w of the main network, and update the parameter θ=w in the target network according to the set update step size; S46: Update the greed factor ε, that is Among them, ε t represents the greed factor at time t, that is, the probability threshold at time t; ε t+1 represents the greed factor at time t+1; ε decay Indicates the set attenuation factor; ε min Indicates the minimum greed factor set; S46: for each iteration, repeat steps S42-S46 until the iteration is completed; S47: Output the final network weight w and the target network weight θ, as well as the optimal strategy π*(s,a).
2. The network conflict-free resource allocation method based on a double deep Q network and a conflict degree algorithm according to claim 1, characterized in that: In step 1, constructing a single-loop multi-graph model includes the following steps: S11: According to the hypergraph theory, the interference area in the network environment is modeled as a hypergraph model, which is expressed as H = {V, E}, where V = {v1, v2, ..., vn} represents the vertex set, represents the user set, and E = {e1, e2, ..., e m } is a hyperedge set, representing the user's IC set, and the relationship between vertices and hyperedges is represented by the association matrix I h Indicates that I h The columns in I correspond to vertices, h The rows in correspond to hyperedges, where I h ={a (i,j) },i=1,2,...,n,j=1,2,...,m S12: According to the duality theory, the hypergraph model is transformed into a dual hypergraph model. In the dual hypergraph, E = {e1, e2, ..., e m } represents the vertex set, i.e., IC set, V = {v1,v2,...,v n } represents the edge set, that is, the user set, the vertex ring represents non-overlapping users, the edge represents overlapping users, the dual hypergraph and an association matrix I dh association, S13: Through matrix transformation, the dual hypergraph model is transformed into a multi-graph model. The multi-graph model and the adjacency matrix A mulit Association, in the multi-graph model, each edge is only related to two vertices. There are multiple edges between two vertices. If there is a hyperedge associated with multiple vertices, the hyperedge is split into multiple edges associated with two vertices; S14: converting the multi-graph model into a single-loop multi-graph model, including: Remove overlapping users from A mulit Separate from A mulit It is expressed as: A mulit =A mu +A su , Among them, A mu The elements in represent the number of overlapping users between ICs. mulit This is achieved by setting the diagonal elements to 1 and keeping the other values unchanged; A su The elements in represent the number of non-overlapping users in each IC, through A su =A mulit -A mu get; According to A mu A single-loop multi-graph model is obtained, and the single-loop multi-graph model corresponds to an association matrix M, wherein the columns of the association matrix M correspond to the users in the single-loop multi-graph, and the rows correspond to the hyperedges.
3. The network conflict-free resource allocation method based on a double deep Q network and a conflict degree algorithm according to claim 2, characterized in that: S13 includes: (1) Calculate the number of cycles on each vertex of the dual hypergraph, including: to I dh Sum each column of and set all elements except 1 in the result to 0 to obtain a sequence R*, where the number of elements in R* is equal to the number of edges in the dual hypergraph; A one-dimensional column vector R* is used to record whether an edge is a ring. R*(i)=1 indicates that the edge v i is a ring, R*(i) represents the i-th element in R*; I dh Each row of R* performs a logical AND operation and sums the obtained elements to obtain the number of rings for each vertex in the multigraph, which is expressed as diag(A mulit )=I dh ·R*, "·" indicates logical AND operation; (2) Calculate the edges between different vertices of the dual hypergraph, including: Will I dh Perform a logical AND operation on the elements in any two rows and sum them to get the number of edges between the two vertices in the multigraph corresponding to the two rows; (3) The number of rings of each vertex in the multigraph is taken as A mulit For the elements on the diagonal, the number of edges between different vertices is A mulit Off-diagonal elements.
4. The network conflict-free resource allocation method based on a double deep Q network and a conflict degree algorithm according to claim 2, characterized in that: The resource reuse rate ρ in step 1 is defined as: Among them, φ represents the total number of users, k c Indicates the total number of resources.
5. The network conflict-free resource allocation method based on double deep Q network and conflict degree algorithm according to claim 2 is characterized in that: The conflict-free resource constraint in step 1 is formulated as: in, K represents the resource set; D Confilt (v i ,k) represents user v i The degree of conflict in using resource k; M Confilt is the conflict association matrix, that is, the association matrix M, which represents user v i Collections that conflict with other users; e(v i ) is the edge set in the single-loop multi-graph model, user v i and e(v i ) are all associated with the same vertex in the single-loop multi-graph model; 6. The network conflict-free resource allocation method based on a double deep Q network and a conflict degree algorithm according to claim 5, characterized in that: Step 2 includes the following steps: S21: Determine the action space A, where for any time t, a t ∈Α, in the target user v containing the assignment i and action a at the allocated resource k t Defined as: and t ={in i ,k},k∈K, S22: Determine the state space S, where the state s t Corresponding to the communication resource allocation of users in the single-loop multi-graph model at time t, the initial state s0 represents the state without any resource allocation. The Markov state is defined using the extended association matrix. i , the expanded incidence matrix M a (t i ) is expressed as: in, M(t i ) represents the time t i When is the association matrix M corresponding to the single-loop multi-graph model; E k (t i ) represents the time t i is the communication resource allocation of each user in the single-ring multi-graph model, and an element of 0 indicates that no resources are allocated; S23: Determine the immediate reward function r t , the immediate reward function is an immediate reward function based on the degree of conflict: Among them, D Conflict(t) represents the degree of conflict at time t, that is r(s t ,a t ) means in s t Select action a in state t Environmental rewards; S24: Determine the state transfer matrix P, where the state transfer matrix P is composed of the transition probabilities between various states, and the transition probability is defined as p(s t+1 |s t ,a t ,s t-1 ,a t-1 ,...)=p(s t+1 |s t ,a t )=p(s t ,a t ,s t+1 ), which means that for any time t, for state s t Apply action a t Transition to next state s t+1 The probability of , then for strategy π, in, Indicates that through strategy π, the state s t Transition to next state s t+1 The probability of π(a|s) is p(a t =a|s t =s), which represents the probability of applying action a to state s at time t, a~π(·|s), "~" represents probability distribution sampling; S25: Determine the action value function q under strategy π π (s,a), where q π (s,a) represents the expected discounted return after applying action a to state s under strategy π, which can be expressed as: Where E[·] represents the expectation operator and γ represents the discount factor.
7. The network conflict-free resource allocation method based on a double deep Q network and a conflict degree algorithm according to claim 6, characterized in that: For the weight parameters in the main network, the agent uses the gradient method to update, which is expressed as: in, L t (ω)=[q(s t ,a t ;w)-y t ] 2 , α represents the gradient update step size; L t (ω) represents the loss function at time t; y t represents the output of the target network at time t; q() represents the action-value function.
8. The network conflict-free resource allocation method based on a double deep Q network and a conflict degree algorithm according to claim 7, characterized in that: Determine the optimal strategy π*(s,a), where π*(s,a)=argmax π∈Π q π (s,a), that is, determine the optimal action value function It is equivalent to finding the optimal strategy, Π represents the set of all strategies, and is used to determine the optimal action value function The action-value function is approximated by a deep network method, that is, the strategy corresponding to the maximum q(s,a;w) is found to be the optimal strategy.
9. The network conflict-free resource allocation method based on a double deep Q network and a conflict degree algorithm according to claim 1, characterized in that: The determination of user interference relationships includes the following steps: Calculate any two users v i and v j The maximum distance R between the (i,j) ; Get user v i and v j The actual distance between (i,j) ; According to R (i,j) and l (i,j) relationship, determine the user v i and v j Interference between (i,j) ,in Inter (i,j) =1 means v i Interference j ,Inter (i,j) =0 means no interference.
Citation Information
Patent Citations
Low-delay high-reliability V2V resource allocation method based on deep reinforcement learning
CN112954651A
6G dense networking non-overlapping interference resource allocation method based on deep reinforcement learning
CN116193608A
Wireless network resource allocation method and system
CN116261224A
