Wireless resource allocation method and device based on general inductance calculation control and computer equipment
Optimizing wireless resource allocation through adaptive windows and deep dual-Q networks solves the problem of slow convergence speed, achieves efficient resource allocation, and meets high-reliability and low-latency communication requirements.
Patent Information
- Application Number
- CN202411039090.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-09-10
AI Technical Summary
The current wireless resource allocation method based on synaesthesia computation and control has a slow convergence speed when faced with the integrated design of a large state-action space, and cannot meet the communication requirements of high reliability and low latency.
The adaptive window is used to extract the current state parameters from the initial state parameters, and combined with the ε-greedy strategy and the deep double-Q network, the network parameters are updated through the preset reward function and loss function to optimize the resource allocation strategy.
It improves the efficiency and stability of resource allocation, shortens training time, achieves reasonable allocation of wireless resources, and meets high-reliability and low-latency communication requirements.
Smart Images

Figure CN118632364A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a wireless resource allocation method, device and computer equipment based on synaesthesia computing and control. Background Art
[0002] With the explosive growth of data traffic, high-reliability and low-latency communications are facing a new round of challenges. However, directly using 4G / 5G wireless networks to interconnect industrial devices such as sensors, controllers, actuators, etc. is not enough to meet the strict reliability, latency and efficiency requirements of IoT devices. Faced with the needs of various emerging wireless services, such as unmanned vehicles, holographic communications, and extended reality, wireless networks are required to provide comprehensive functions of target perception, intelligent computing, and information communication in a timely manner. In the current 5G wireless network, these functions are separated and irreversible. However, the comprehensive solution must take into account each subsystem, making it a complex problem to derive accurate and comprehensive integrated design models for multiple subsystems with different protocols, topologies, and settings that are closely related. Moreover, the interaction between multiple subsystems must also be considered when performing integrated design.
[0003] In response to these challenges, wireless resource allocation based on synaesthesia computing and control has become an important strategy. Synaesthesia computing and control is to achieve the integrated design of communication, perception, computing, and control functions through means such as hardware sharing and spectrum sharing. This approach uses model-free reinforcement learning, such as Q-learning, to observe the system and take actions by adjusting control, communication, and computing parameters simultaneously with little or no prior knowledge. However, one challenge of current methods in the face of integrated design problems with a fairly large state-action space is their slow convergence. Summary of the invention
[0004] The purpose of this application is to solve at least one of the above-mentioned technical defects, especially when facing integrated design problems with a relatively large state-action space, one challenge of current methods is their slow convergence speed.
[0005] In a first aspect, the present application provides a wireless resource allocation method based on synaesthesia computing and control, which is applied to a wireless network system, and the method includes:
[0006] Acquire multiple initial state parameters of the wireless network system, and extract from each initial state parameter using an adaptive window to obtain a current state parameter;
[0007] According to the current state parameters, after selecting and executing the corresponding wireless resource allocation action using the ε-greedy strategy, the next state parameters of the wireless network system are calculated, and according to the next state parameters, the current state reward value is calculated using a preset reward function;
[0008] According to the current state parameter and its corresponding wireless resource allocation action, the primary network is used to evaluate the corresponding current state Q value, and according to the next state parameter and the current network parameter corresponding to the primary network, the target network is used to predict the corresponding next state Q value;
[0009] According to the current state reward value, the current state Q value and the next state Q value, the preset loss function is used to update the network parameters of the main network, and the next state parameters of the wireless network system are used as the current state parameters to continue to select and execute the corresponding wireless resource allocation action.
[0010] In one embodiment, a wireless network system includes a base station, a sensor, a controller, and a user terminal;
[0011] The state parameters are defined as:
[0012]
[0013] In the formula, is the first channel gain between the sensor and the controller, is the second channel gain between the base station and the controller, is the third channel gain between the base station and the user end, is the amount of sensor perception data, is the amount of data on the user side, is the sampling frequency of the controller.
[0014] In one embodiment, the expression corresponding to the adaptive window is:
[0015]
[0016] In the formula, is a constant, is the sampling frequency of the sensor.
[0017] In one of the embodiments, the radio resource allocation action is defined as:
[0018]
[0019] In the formula, Indicates Does the base station allocate the time slot subcarriers, Indicates Whether the time slot controller should allocate subcarriers to sensors, Indicates The transmission power of each time slot controller to the sensor; Indicates The transmission power of the base station to the sensor in each time slot; Indicates The base station's transmission power to the user end in each time slot.
[0020] In one embodiment, the expression of the preset reward function is:
[0021]
[0022] In the formula, is the system utility function of the wireless network system, It means that the data throughput of user terminal l at time t is greater than the lower limit of the throughput of user terminal l at time t. It means that the processing delay of user terminal l at time t is less than the upper limit of the processing delay of user terminal l at time t. It indicates that the perceived delay of the wireless network system at time t is less than the upper limit of the perceived delay at time t. -Inf indicates negative infinity.
[0023] In one embodiment, the system utility function of the wireless network system is:
[0024]
[0025] In the formula, for Moment Client The total throughput gain is For the user side The data throughput gain factor is, For the user side The lower limit of data throughput is for Moment Client The total processing delay gain is For the user side The processing delay gain coefficient is For the user side The upper limit of processing delay, for Total perceived delay gain at each moment, is the perceived delay gain coefficient, The upper limit of perceived delay.
[0026] In one embodiment, the expression of the preset loss function is:
[0027]
[0028] In the formula, is the current state Q value, is the target Q value, m is a constant;
[0029] in, , is the current state reward value, is the Q value of the next state.
[0030] In a second aspect, the present application provides a wireless resource allocation device based on synaesthesia computing and control, which is applied to a wireless network system, and the device includes:
[0031] A state parameter determination module is used to obtain multiple initial state parameters of the wireless network system and extract from each initial state parameter using an adaptive window to obtain a current state parameter;
[0032] A reward value determination module is used to calculate the next state parameter of the wireless network system after selecting and executing the corresponding wireless resource allocation action using the ε-greedy strategy according to the current state parameter, and calculate the current state reward value using a preset reward function according to the next state parameter;
[0033] A Q value determination module is used to use the primary network to evaluate the corresponding current state Q value according to the current state parameter and the corresponding wireless resource allocation action, and to use the target network to predict the corresponding next state Q value according to the next state parameter and the current network parameter corresponding to the primary network;
[0034] The network parameter update module is used to update the network parameters of the main network according to the current state reward value, the current state Q value and the next state Q value, using a preset loss function, and taking the next state parameters of the wireless network system as the current state parameters to continue to select and execute the corresponding wireless resource allocation action.
[0035] In a third aspect, the present application provides a storage medium: the storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the wireless resource allocation method based on synaesthesia and computing control in any of the above embodiments.
[0036] In a fourth aspect, the present application provides a computer device, comprising: one or more processors, and a memory;
[0037] The memory stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the steps of the wireless resource allocation method based on synaesthesia computing and control in any of the above embodiments are performed.
[0038] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0039] In the wireless resource allocation method, device and computer equipment based on synaesthesia computing and control provided in the present application, the current state parameters are extracted from multiple initial state parameters through an adaptive window, which can effectively control the size and complexity of the state parameters; the ε-greedy strategy can find a balance between exploration and utilization, and can allocate resources even in unknown situations; the reward value of the current state is calculated using a preset reward function, which helps to evaluate the pros and cons of each action, thereby making more effective resource allocation; the main network is used to evaluate the Q value of the current state and the target network predicts the Q value of the next state, which helps to stabilize and accelerate the training process of reinforcement learning, wherein the use of the target network reduces the Q value estimation deviation during the training process and increases the stability of the training; according to the current state reward value, the current state Q value and the next state Q value predicted by the target network, the network parameters of the main network are updated using a preset loss function, and the resource allocation strategy can be gradually optimized by iteration. In this way, by combining the adaptive window and the deep dual Q network, the reasonable allocation of wireless resources is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0041] Figure 1 A flow chart of a wireless resource allocation method based on synaesthesia computing and control provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of the structure of a wireless network system provided in an embodiment of the present application;
[0043] Figure 3 A schematic diagram of the workflow of the AOW-DDQN method provided in an embodiment of the present application;
[0044] Figure 4 A comparison chart of the cumulative training time of multiple algorithms provided in the embodiments of the present application;
[0045] Figure 5 A comparison chart of total energy consumption of multiple algorithms provided in the embodiments of the present application;
[0046] Figure 6 A schematic diagram of the structure of a wireless resource allocation device based on synaesthesia computing and control provided in an embodiment of the present application;
[0047] Figure 7 A schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0049] The present application provides a wireless resource allocation method based on synaesthesia computing and control, which is applied to wireless network systems, such as Figure 1 As shown, the method includes:
[0050] S101: Acquire multiple initial state parameters of a wireless network system, and extract from each initial state parameter using an adaptive window to obtain a current state parameter.
[0051] The initial state parameters of a wireless network system refer to various variables or features that describe the current state of the system. These parameters may include, but are not limited to, the current channel load, number of users, signal strength, transmission rate, interference level, etc. Adaptive windowing is a technique used to extract representative current state parameters from a large number of initial state parameters. Its purpose is to more accurately reflect the current state of the system by dynamically adjusting the window size to adapt to changes in the system state in time or space. This approach allows the system to cover as much of the potential system state space as possible while maintaining high efficiency.
[0052] In this step, first, various initial state parameters of the wireless network system need to be obtained through appropriate sensors or data acquisition devices. These devices can be sensors that monitor signal strength, counters that count the number of users, monitors that detect channel load, etc. The frequency of acquisition can be determined according to demand, usually periodically. Once a set of data of initial state parameters is obtained, the next step is how to extract current state parameters from these data. The selection of the adaptive window needs to take into account the speed and stability requirements of the system state change.
[0053] In one example, an initial window size is set that is suitable for the frequency of state changes of the system. The step of the window determines where to move the window to extract the current state parameters. For each window position, the mean, median, or other representative statistics of the initial state parameters are calculated. This will help reduce the impact of noise on the data and provide a stable and reliable representation of the current state of the system. The window size and step are dynamically adjusted according to the actual situation of the system state change. For example, if the system state changes slowly, the step of the window can be increased to improve the sampling efficiency; if the system state changes quickly, the window size can be reduced to capture the changes more accurately. Finally, the window position that best represents the current system state is selected, and the state parameters at this position are used as the current state parameters for subsequent decisions and operations.
[0054] S102: After selecting and executing the corresponding wireless resource allocation action according to the current state parameters using the ε-greedy strategy, the next state parameters of the wireless network system are calculated, and according to the next state parameters, the current state reward value is calculated using a preset reward function.
[0055] The ε-greedy strategy is a common strategy used in reinforcement learning to strike a balance between exploration and exploitation. In the ε-greedy strategy, a random action (exploration) is selected with probability ε, and the action currently considered to be the best (exploitation) is selected with probability 1-ε. The wireless resource allocation action refers to a decision made based on the current state parameters, such as selecting a specific channel, adjusting the transmission power, changing the scheduling strategy, etc. The purpose of these actions is to optimize network performance, such as increasing the data transmission rate, reducing interference, etc. The next state parameter is the new state that the system enters after the resource allocation action is executed. These parameters reflect the actual response of the system after the action is executed, such as the updated channel load, the adjusted number of users, the changed signal strength, etc. The preset reward function is a function defined between the system state and the action, which is used to evaluate the quality or effect of each action. The reward function can be different according to the specific optimization goal, such as maximizing the data transmission rate, minimizing interference, balancing the user experience, etc. It provides an evaluation or feedback of the system state to help make the right choice in the decision-making process.
[0056] In this step, according to the ε-greedy strategy, at each decision point, a random action is selected with probability ε, and the action currently considered to be the best is selected with probability 1-ε, that is, the optimal action based on the current strategy and existing experience. Execute the selected action, such as adjusting channel allocation, changing transmission power, etc. When the action is completed, observe the response of the system and record the new state parameters. These parameters constitute the state at the next moment. Using the preset reward function, calculate the reward value of the current state based on the new state parameters. The reward function can be defined according to the specific optimization goal, such as evaluating the size of the reward value based on the increase in data transmission rate, the reduction in interference, etc.
[0057] S103: According to the current state parameters and their corresponding wireless resource allocation actions, the primary network is used to evaluate the corresponding current state Q value, and according to the next state parameters and the current network parameters corresponding to the primary network, the target network is used to predict the corresponding next state Q value.
[0058] Q-value (also called action-value function) is used in reinforcement learning to evaluate the expected reward value of performing an action in a specific state. Specifically, for a given state (s) and action (a), the Q-value (Q(s, a)) represents the expected cumulative reward that can be obtained starting from state (s) after performing action (a). The Q-value function can choose between different actions to maximize long-term rewards. In deep reinforcement learning, two neural networks are usually used to estimate Q-values: the main network and the target network. The main network is used to estimate the Q-value (Q(s, a)) at the current state (s). The parameters of the main network are trained and used to select actions in actual decision-making. The target network is used to predict the Q-value (Q(s', a')) at the next state (s'). The parameters of the target network are obtained by periodically updating the parameters of the main network in order to enhance the stability and convergence of the training.
[0059] In this step, according to the current wireless network system state parameter (s) and the executed wireless resource allocation action (a), the current state parameter (s) is input into the main network to obtain the corresponding Q value (Q(s, a)). This step involves the forward propagation operation, and the main network will output the expected Q value of executing action (a) under state (s). After executing action (a), observe the response of the system and obtain the parameters of the next state (s'). These parameters reflect the actual state of the system after the action is executed. The next state parameter (s') is input into the target network to obtain the corresponding Q value (Q(s',a')). Here (a') is the next action selected according to the current policy, which can be the action selected according to the current policy of the main network.
[0060] S104: According to the current state reward value, the current state Q value and the next state Q value, the preset loss function is used to update the network parameters of the main network, and the next state parameters of the wireless network system are used as the current state parameters to continue to select and execute the corresponding wireless resource allocation action.
[0061] In deep reinforcement learning, the loss function is used to measure the difference between the predicted Q value and the actual reward. Typical loss functions can be mean square error (MSE) or Huber loss, which are used to optimize the prediction accuracy of Q value.
[0062] In this step, a preset loss function is used to measure the difference between the predicted Q value (Q(s, a)) of the current state and the actual reward. The loss function can be used to adjust the parameters of the main network through the back-propagation algorithm to minimize the error between the predicted Q value and the actual reward. This step is a key step in deep reinforcement learning to ensure that the strategy can be continuously optimized based on experience. The observed next state parameters (s') are updated to the current state parameters (s) so that the action can be selected in the next step.
[0063] It can be understood that when the ε-greedy strategy selects actions, there is a certain probability that random actions will be selected to explore the environment, and sometimes the action currently estimated to be optimal will be selected to utilize known information. The update of the main network parameters can help improve the accuracy of the Q-value estimation for each action. In this way, in the utilization phase, the strategy is more likely to select the truly optimal action rather than the action that only appears to be optimal on the surface, thereby improving the efficiency and performance of wireless resource allocation. In addition, if the main network can accurately estimate the long-term effect of each action (through the Q value), the ε-greedy strategy will be less affected by random exploration when selecting actions. This means that the strategy is more likely to avoid selecting suboptimal actions, thereby reducing the possibility of performance loss and improving the overall effect and stability of wireless resource allocation.
[0064] In the above embodiment, the current state parameters are extracted from multiple initial state parameters through an adaptive window, which can effectively control the size and complexity of the state parameters; the ε-greedy strategy can find a balance between exploration and utilization, and can allocate resources even in unknown situations; the reward value of the current state is calculated using a preset reward function, which helps to evaluate the pros and cons of each action, thereby making more effective resource allocation; the main network is used to evaluate the Q value of the current state and the target network predicts the Q value of the next state, which helps to stabilize and accelerate the training process of reinforcement learning, wherein the use of the target network reduces the Q value estimation deviation during the training process and increases the stability of the training; according to the current state reward value, the current state Q value and the next state Q value predicted by the target network, the network parameters of the main network are updated using a preset loss function, and the resource allocation strategy can be gradually optimized by iteration. In this way, by combining the adaptive window and the deep dual-Q network, the reasonable allocation of wireless resources is achieved.
[0065] In one embodiment, a wireless network system includes a base station, a sensor, a controller, and a user terminal;
[0066] The state parameters are defined as:
[0067]
[0068] In the formula, is the first channel gain between the sensor and the controller, is the second channel gain between the base station and the controller, is the third channel gain between the base station and the user end, is the amount of sensor perception data, is the amount of data on the user side, is the sampling frequency of the controller.
[0069] It can be understood that the state parameters of the wireless network system include parameters that affect decision making. The goal of the present invention is to allocate the wireless resources of the base station according to the state of the current system environment and the service request of the user, so as to obtain high QoS for the user and obtain low perceived delay. According to analysis, the parameters that affect decision making include: channel gain, data volume, and sampling frequency of the controller.
[0070] Further, Figure 2This is a schematic diagram of a wireless network system model. The system in the figure includes multiple sensors and controllers, and the controller has a scheduling function, and a physical base station (including a server). The present invention considers two typical services: eMBB (such as high-definition video surveillance) and URLLC (intelligent robotic arm). The eMBB service requires a higher data transmission rate, and the URLLC service requires a lower transmission delay and more reliable service. However, there are certain challenges in supporting different service types under the same base station, and it is necessary to balance the resources of the two services.
[0071] based on Figure 2 The system model is used to analyze the problem. The purpose of resource allocation is to ensure that each user's service can be responded to while ensuring a high QoS. The factors that affect the service QoS are the throughput of the eMBB service and the processing delay of the URLLC service. In addition, in order to better provide intelligent services, perceived delay is also a very important factor. The controllers represented by To represent the sensor, use To represent the user. The controller is connected to the Sensors. Sensors ( ) and controller ( ) is expressed as . Modeled as a wireless channel following Rayleigh fading, and The first The channel gain in the time slot is Indicates. The transmit power of each time slot is To express. The total bandwidth is evenly divided into subcarriers, the bandwidth of each subcarrier is Indicates that the total BS bandwidth is evenly divided into subcarriers, each subcarrier has a bandwidth of According to Shannon's theorem, the link capacity can be calculated as: ,in ( ) is the indicator variable of the controller subcarrier allocation, Indicates Time slots The first Subcarriers are allocated ,otherwise , Represents Gaussian white noise power. In the present invention, the processing of the sensing data is divided into processing at the controller and processing at the base station server.
[0072] The communication delay in the controller processing is: ,in, yes The amount of sensor perception data to be transmitted in the time slot, yes and The computational delay is calculated based on the number of CPU revolutions required to complete the computational task. on The computing power is expressed as , the unit is the number of CPU revolutions per second. Then the calculation delay is: , yes The computing resources required to process each bit of computing task, measured in CPU revolutions per bit.
[0073] The communication delay in the base station server processing is expressed as: . yes The wireless link capacity with the BS. The calculation delay at the base station server is: . The base station server is used for The computing power on.
[0074] The end-to-end delay is divided into the delay of assigning the computing task to the controller or the base station server, which are: and , correspondingly, the minimum end-to-end delay of the sensing data is: ,exist Get the first The transmission rate of each user is: .in ( ) is the indicator variable of the base station subcarrier allocation, Indicates The BS will Subcarriers are allocated to users ,otherwise , express The transmission power of BS at the moment, express Moment BS and users The channel gain between .
[0075] The time taken for data packet transmission is: ,in for Moment User The total processing delay of the data; for Moment User The amount of data.
[0076] In one embodiment, the expression corresponding to the adaptive window is:
[0077]
[0078] In the formula, is a constant, is the sampling frequency of the sensor.
[0079] It is understandable that due to the high sampling rate of sensors in the industrial Internet of Things, the use of the DDQN algorithm (Double Deep Q Network) may have some problems, such as using the output data of high sampling rate sensors directly as the state set of the DDQN algorithm. Then, due to too many samples, the training process is still very slow. Considering that it is difficult for the environment to change suddenly, such as the position of the robot arm is difficult to change significantly in a very short time, it is inefficient to use the output of the sensor to train the DDQN network. In order to solve this problem, the AOW-DDQN algorithm (Adaptive Observation Window) is used to dynamically adjust the number of training data through an adaptive observation window, and use the observation window to extract the state set of DDQN as samples for model training. The DDQN algorithm with an adaptive observation window has the advantages of the DDQN algorithm. At the same time, the adaptive observation window can flexibly balance the sensor data problem and simultaneously improve the accuracy and training speed. In the IIOT environment, the latency problem has gradually become the most important problem. Therefore, the AOW-DDQN algorithm is selected to solve the optimization problem.
[0080] The AOW-DDQN algorithm adds an adaptive observation window to the DDQN algorithm. By changing the size of the window, it can significantly reduce excessive state data and improve training efficiency when the sampling frequency is large.
[0081] In one embodiment, the radio resource allocation action is defined as:
[0082]
[0083] In the formula, Indicates Does the base station allocate the time slot subcarriers, Indicates Whether the time slot controller should allocate subcarriers to sensors, Indicates The transmission power of each time slot controller to the sensor; Indicates The transmission power of the base station to the sensor in each time slot; Indicates The base station's transmission power to the user end in each time slot.
[0084] In one embodiment, the expression of the preset reward function is:
[0085]
[0086] In the formula, is the system utility function of the wireless network system, It means that the data throughput of user terminal l at time t is greater than the lower limit of the throughput of user terminal l at time t. It means that the processing delay of user terminal l at time t is less than the upper limit of the processing delay of user terminal l at time t. It indicates that the perceived delay of the wireless network system at time t is less than the upper limit of the perceived delay at time t. -Inf indicates negative infinity.
[0087] Reward refers to the feedback of the objective function on the state selection action during the training process. When a state set input is received, an action set needs to be output. This action set as output may be more in line with the goal, then a reward will be obtained, and the larger the reward value, the more in line with the goal; it is also possible that the output action set does not meet the goal, then a penalty will be obtained, and the larger the penalty value, the less in line with the goal. Therefore, the positive or negative value of the reward represents whether it meets the goal, and the size of the reward value represents the distance from the goal. With the reward as feedback, we can measure which action to choose in the current state based on the reward. The essence of deep reinforcement learning is the process of maximizing long-term decision benefits based on goals.
[0088] The present invention aims to find an optimization solution that maximizes the utility function under given constraints. The core goal of the AOW-DDQN algorithm is to maximize this utility function. Since the AOW-DDQN algorithm itself does not directly deal with constraints, it is necessary to transform these constraints so that the algorithm can effectively optimize within the constraint framework.
[0089] The given constraints may include: constraint C1 that the service power does not exceed the total power of the base station; constraint C2 that the total bandwidth of the two services is not greater than the total bandwidth of the base station; constraint C3 that the data throughput of user terminal l at time t is greater than the lower limit of the throughput of user terminal l at time t; constraint C4 that the processing delay of user terminal l at time t is less than the upper limit of the processing delay of user terminal l at time t; constraint C5 that the perceived delay of the wireless network system at time t is less than the upper limit of the perceived delay at time t. Constraints C1, C4, and C5 can be satisfied by limiting the action space, and constraints C6, C7, and C8 are constrained by reward values. When any of them is not satisfied, the reward is negative infinity, and when the constraints are satisfied, the reward is a utility function.
[0090] In one embodiment, the system utility function of the wireless network system is:
[0091]
[0092] In the formula, for Moment Client The total throughput gain is For the user side The data throughput gain factor is, For the user side The lower limit of data throughput is for Moment Client The total processing delay gain is For the user side The processing delay gain coefficient is For the user side The upper limit of processing delay, for Total perceived delay gain at each moment, is the perceived delay gain coefficient, The upper limit of perceived delay.
[0093] In one embodiment, the expression of the preset loss function is:
[0094]
[0095] In the formula, is the current state Q value, is the target Q value, m is a constant;
[0096] in, , is the current state reward value, is the Q value of the next state.
[0097] The loss function is designed based on the Q-value update equation of Q learning, which selects the action that obtains the maximum Q value of the next state. The update equation is:
[0098] .
[0099] To facilitate understanding of the solution of the present application, a specific example is provided below for illustration.
[0100] In order to solve the problem of limited resources in the scenario of synaesthesia and computing control, the present invention uses a deep reinforcement learning method for integrated design. Specifically, the present invention adds an adaptive observation window of DDQN to improve the training performance of DDQN, thereby achieving a reasonable allocation of limited resources. AOW-DDQN adaptively changes the size of the observation window to generate the system state based on the physical environment. The input of AOW-DDQN is the error between the perception data of the current system environment and the set point as the system state. Including parameters such as bandwidth and delay. Finally, the simulation results show that the AOW-DDQN algorithm has a faster resource allocation speed than the DQN algorithm and the DDQN algorithm, and can better solve the user's low latency problem.
[0101] Figure 3 This is the workflow of the AOW-DDQN method. The algorithm consists of six components, including windows, reward functions, replay memory, loss functions, main networks, and target networks. The algorithm can observe the environment and adaptively generate DDQN states, and use reward functions to reward or punish DDQN agents that take actions. The main network is a DNN (Deep Neural Network), which is trained to estimate the Q value of each state-action pair. The target network is another DNN, which improves the stability of the learning process by updating parameters every several steps. The replay memory stores historical interaction data, such as the state s(t) at time t, the action a(t) at time t, the reward value r(t) at time t, and the state s(t+1) at time t+1, and randomly creates small batches to train the main network.
[0102] Based on the calculation method of the above parameters, the process of the AOW-DDQN method is obtained:
[0103] 1. Initialize the agent;
[0104] 2. Initialization parameters;
[0105] 3. Initialize the playback memory;
[0106] 4.For each episode i=1,2,…,episodes_num do:
[0107] 5. Calculate the window size W, the first time is the number of the entire cache.
[0108] 6. Get the initial state set S;
[0109] 7. For each time j=1,2,…,W do:
[0110] 8. The agent takes actions based on the algorithm;
[0111] 9. Calculate various parameters required respectively;
[0112] 10. Calculate rewards based on the actions taken by the agent;
[0113] 11. Storing experience in replay memory;
[0114] 12. When a certain amount of experience is accumulated, a certain amount of replay sampling is selected;
[0115] 13. Transfer the main network parameters to the target network every several steps;
[0116] 14. Calculate the loss function;
[0117] 15. The main network uses [s(t), a(t)] to generate Q value, and the target network uses s(t+1) to generate predicted Q value;
[0118] 16. Calculate the gradient and update the main network;
[0119] 17. s(t)=s(t+1), update the next state to the current state and enter the next loop;
[0120] 18. End For
[0121] 19. End For
[0122] The basic parameters of the simulation design are: base station bandwidth 5MHz, base station total power 20W, subcarrier spacing 15kHz, noise power -80dBm / Hz, base station PRB number 25 blocks, sampling frequency initial value 500Hz, maximum tolerable perceived delay 0.2ms. The basic parameter settings are as follows:
[0123]
[0124] The service scenario parameters for simulation design are: two services, eMBB and URLLC, both of which are Poisson arrival, and the data packet arrival rate is 150 packets per second; the eMBB service data packet size is 2000 bits, the minimum rate requirement is 500 kbit / s, and the maximum tolerance processing delay is 10 ms; the URLLC service data packet size is 64 bits, the minimum rate requirement is 15 kbit / s, and the maximum tolerance processing delay is 1 ms. The service parameter settings are shown below.
[0125]
[0126] The training parameters of the AOW-DDQN algorithm are set as follows: throughput gain coefficient is 0.01 / kbps, processing delay gain coefficient is 5 / ms, perception delay gain coefficient is 40 / ms, replay memory size is 500, and replay batch data size is 25. The algorithm probability value is 0.1, the discount factor is 0.95, the learning rate is 1e-4, the update step number of the target Q network is 50, and the number of iterations is 10. The AOW-DDQN model training parameter settings are as follows.
[0127]
[0128] Figure 4 The figure shows the comparison of the cumulative training time of the DQN algorithm, the DDQN algorithm and the AOW-DDQN algorithm. It can be seen that when the number of training episodes of the three algorithms is the same, the AOW-DDQN algorithm has a smaller training time and a faster training speed, and performs best among the three algorithms, followed by the DDQN algorithm, and the DQN algorithm performs the worst among the three algorithms.
[0129] Figure 5 It can be seen that as the training progresses, the energy consumed gradually increases. After 60 episodes of training, the training can converge to a certain range. The energy consumption of the AOW-DDQN algorithm is obviously lower than that of the other two algorithms.
[0130] The following describes the wireless resource allocation device based on synaesthesia computing and control provided in the embodiment of the present application. The wireless resource allocation device based on synaesthesia computing and control described below and the wireless resource allocation method based on synaesthesia computing and control described above can be referred to each other. Figure 6 As shown, the present application provides a wireless resource allocation device based on synaesthesia computing and control, which is applied to a wireless network system, and the device includes:
[0131] The state parameter determination module 201 is used to obtain multiple initial state parameters of the wireless network system and extract from each initial state parameter using an adaptive window to obtain a current state parameter;
[0132] The reward value determination module 202 is used to calculate the next state parameter of the wireless network system after selecting and executing the corresponding wireless resource allocation action using the ε-greedy strategy according to the current state parameter, and calculate the current state reward value using a preset reward function according to the next state parameter;
[0133] A Q value determination module 203 is used to use the primary network to evaluate the corresponding current state Q value according to the current state parameter and the corresponding wireless resource allocation action, and to use the target network to predict the corresponding next state Q value according to the next state parameter and the current network parameter corresponding to the primary network;
[0134] The network parameter updating module 204 is used to update the network parameters of the main network according to the current state reward value, the current state Q value and the next state Q value using a preset loss function, and use the next state parameters of the wireless network system as the current state parameters to continue to select and execute the corresponding wireless resource allocation action.
[0135] In one embodiment, a wireless network system includes a base station, a sensor, a controller, and a user terminal;
[0136] The state parameters are defined as:
[0137]
[0138] In the formula, is the first channel gain between the sensor and the controller, is the second channel gain between the base station and the controller, is the third channel gain between the base station and the user end, is the amount of sensor perception data, is the amount of data on the user side, is the sampling frequency of the controller.
[0139] In one embodiment, the expression corresponding to the adaptive window is:
[0140]
[0141] In the formula, is a constant, is the sampling frequency of the sensor.
[0142] In one embodiment, the radio resource allocation action is defined as:
[0143]
[0144] In the formula, Indicates Does the base station allocate the time slot subcarriers, Indicates Whether the time slot controller should allocate subcarriers to sensors, Indicates The transmission power of each time slot controller to the sensor; Indicates The transmission power of the base station to the sensor in each time slot; Indicates The base station's transmission power to the user end in each time slot.
[0145] In one embodiment, the expression of the preset reward function is:
[0146]
[0147] In the formula, is the system utility function of the wireless network system, It means that the data throughput of user terminal l at time t is greater than the lower limit of the throughput of user terminal l at time t. It means that the processing delay of user terminal l at time t is less than the upper limit of the processing delay of user terminal l at time t. It indicates that the perceived delay of the wireless network system at time t is less than the upper limit of the perceived delay at time t. -Inf indicates negative infinity.
[0148] In one embodiment, the system utility function of the wireless network system is:
[0149]
[0150] In the formula, for Moment Client The total throughput gain is For the user side The data throughput gain factor is, For the user side The lower limit of data throughput is for Moment Client The total processing delay gain is For the user side The processing delay gain coefficient is For the user side The upper limit of processing delay, for Total perceived delay gain at each moment, is the perceived delay gain coefficient, The upper limit of perceived delay.
[0151] In one embodiment, the expression of the preset loss function is:
[0152]
[0153] In the formula, is the current state Q value, is the target Q value, m is a constant;
[0154] in, , is the current state reward value, is the Q value of the next state.
[0155] In one embodiment, the present application also provides a storage medium, in which computer-readable instructions are stored. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the wireless resource allocation method based on synaesthesia and computing control as described in any of the above embodiments.
[0156] In one embodiment, the present application also provides a computer device, in which computer-readable instructions are stored. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the wireless resource allocation method based on synaesthesia and computing control as described in any of the above embodiments.
[0157] Indicatively, Figure 7 As shown, Figure 7 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 300 may be provided as a server. Figure 7 The computer device 300 includes a processing component 302, which further includes one or more processors, and a memory resource represented by a memory 301, for storing instructions executable by the processing component 302, such as an application. The application stored in the memory 301 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 302 is configured to execute instructions to execute the wireless resource allocation method based on synaesthesia computing and control of any of the above embodiments.
[0158] The computer device 300 may further include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate based on an operating system stored in the memory 301, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, Free BSD TM, or the like.
[0159] Those skilled in the art will understand that Figure 7The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0160] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not clearly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements. Herein, "one", "one", "said", "the" and "it" may also include plural forms, unless the context clearly indicates another way. A plurality refers to at least two cases, such as 2, 3, 5 or 8, etc. "And / or" includes any and all combinations of the relevant listed items.
[0161] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.
[0162] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A wireless resource allocation method based on synaesthesia computing and control, characterized in that: Applied to a wireless network system, the method comprises: Acquire multiple initial state parameters of the wireless network system, and extract from each initial state parameter using an adaptive window to obtain a current state parameter; According to the current state parameters, after selecting and executing the corresponding wireless resource allocation action using the ε-greedy strategy, the next state parameters of the wireless network system are calculated, and according to the next state parameters, the current state reward value is calculated using a preset reward function; According to the current state parameter and its corresponding wireless resource allocation action, the primary network is used to evaluate the corresponding current state Q value, and according to the next state parameter and the current network parameter corresponding to the primary network, the target network is used to predict the corresponding next state Q value; According to the current state reward value, the current state Q value and the next state Q value, a preset loss function is used to update the network parameters of the main network, and the next state parameters of the wireless network system are used as the current state parameters to continue to select and execute the corresponding wireless resource allocation action.
2. The wireless resource allocation method based on synaesthesia computing and control according to claim 1 is characterized in that: The wireless network system includes a base station, a sensor, a controller and a user terminal; The state parameters are defined as: In the formula, is the first channel gain between the sensor and the controller, is a second channel gain between the base station and the controller, is the third channel gain between the base station and the user terminal, is the amount of sensor data, is the data volume of the user terminal, is the sampling frequency of the controller.
3. The wireless resource allocation method based on synaesthesia computing and control according to claim 2 is characterized in that: The expression corresponding to the adaptive window is: In the formula, is a constant, is the sampling frequency of the sensor.
4. The wireless resource allocation method based on synaesthesia computing and control according to claim 2 is characterized in that: The radio resource allocation action is defined as: In the formula, Indicates time slots, whether the base station allocates the subcarriers, Indicates time slots, whether the controller is to allocate subcarriers to the sensor, Indicates The transmission power of the controller to the sensor in each time slot; Indicates The transmission power of the base station to the sensor in each time slot; Indicates The transmission power of the base station to the user terminal in a time slot.
5. The wireless resource allocation method based on synaesthesia computing and control according to claim 2 is characterized in that: The expression of the preset reward function is: In the formula, is the system utility function of the wireless network system, It means that the data throughput of user terminal l at time t is greater than the lower limit of the throughput of user terminal l at time t. It means that the processing delay of user terminal l at time t is less than the upper limit of the processing delay of user terminal l at time t. It indicates that the perceived delay of the wireless network system at time t is less than the perceived delay upper limit at time t, and -Inf indicates negative infinity.
6. The wireless resource allocation method based on synaesthesia computing and control according to claim 5 is characterized in that: The system utility function of the wireless network system is: In the formula, for Moment Client The total throughput gain is For the user side The data throughput gain factor is For the user side The lower limit of data throughput is for Moment Client The total processing delay gain is For the user side The processing delay gain coefficient is For the user side The upper limit of processing delay, for Total perceived delay gain at each moment, is the perceived delay gain coefficient, The upper limit of perceived delay.
7. The wireless resource allocation method based on synaesthesia computing and control according to claim 1 is characterized in that: The expression of the preset loss function is: In the formula, is the current state Q value, is the target Q value, m is a constant; in, , is the current state reward value, is the Q value of the next state.
8. A wireless resource allocation device based on synaesthesia computing and control, characterized in that: Applied to a wireless network system, the device comprises: A state parameter determination module, used to obtain a plurality of initial state parameters of the wireless network system, and extract from each initial state parameter using an adaptive window to obtain a current state parameter; A reward value determination module, used to calculate the next state parameter of the wireless network system after selecting and executing the corresponding wireless resource allocation action using the ε-greedy strategy according to the current state parameter, and calculate the current state reward value using a preset reward function according to the next state parameter; A Q value determination module is used to use the main network to evaluate the corresponding current state Q value according to the current state parameter and the corresponding wireless resource allocation action, and use the target network to predict the corresponding next state Q value according to the next state parameter and the current network parameter corresponding to the main network; The network parameter updating module is used to update the network parameters of the main network according to the current state reward value, the current state Q value and the next state Q value using a preset loss function, and use the next state parameters of the wireless network system as the current state parameters to continue to select and execute the corresponding wireless resource allocation action.
9. A storage medium, characterized in that: The storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the wireless resource allocation method based on synaesthesia computing and control as described in any one of claims 1 to 7.
10. A computer device, characterized in that: include: one or more processors, and memory; The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the wireless resource allocation method based on synaesthesia computing and control as described in any one of claims 1 to 7 are performed.
Citation Information
Cited By
Multi-robot cooperative control method and system in multi-machine sensing calculation control, and storage medium
CN121785373A
