Resource allocation method and device, terminal and readable storage medium

By obtaining system status information and inputting the pre-trained resource allocation model, combined with sample data set iterative training, the problem of poor rationality of resource allocation on the terminal side is solved, rational resource allocation in multi-service and multi-connection scenarios is achieved, and efficiency and performance are improved. .

CN118804305APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311689657.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-11
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In a multi-service and multi-connection scenario, it is difficult for the terminal side to allocate appropriate bandwidth resources and transmission power for different services, resulting in poor rationality of resource allocation and inability to meet the differentiated needs of network performance.

Method used

By obtaining the system status information, inputting the pre-trained resource allocation model for processing, obtaining the allocation information of transmit power and bandwidth resources, and iteratively training the model through the sample data set, determining the correction parameters to optimize resource allocation, and realizing the allocation of transmit power and bandwidth resources. Reasonable allocation.

Benefits of technology

The efficiency and rationality of resource allocation are improved. The allocation results of transmit power and bandwidth resources can be obtained simultaneously through pre-trained models only, achieving reasonable allocation of resources, improving overall performance and reducing complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118804305A_ABST
    Figure CN118804305A_ABST
Patent Text Reader

Abstract

The invention discloses a resource allocation method and device, a terminal and a readable storage medium, relates to the technical field of wireless, and aims to solve the problem of poor rationality of terminal-side resource allocation. The method is executed by a terminal, and specifically comprises: acquiring system state information of a first time slot, the system state information comprising channel gain of each of a plurality of systems and resource allocation information of a second time slot, the resource allocation information comprising transmission power corresponding to each of the plurality of systems, the second time slot is a time slot before the first time slot and the bandwidth resource corresponding to each service in each system in a plurality of services, and the second time slot is a time slot before the first time slot; and inputting the system state information of the first time slot into a pre-trained resource allocation model for allocation processing to obtain resource allocation information of the first time slot. According to the embodiment of the invention, the rationality of terminal side resource allocation can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless technology, and in particular to a resource allocation method, device, terminal and readable storage medium. Background Art

[0002] With the continuous development of wireless technology, the amount of mobile communication data has shown an exponential growth. The bandwidth resources of a single cell are more easily limited. Therefore, the wireless resources of multiple standard cells can be concentrated to provide services for a single user. This method is usually called multi-connection, such as the multi-radio dual connectivity (MR-DC) technology in the fifth generation mobile communication technology (5G). Usually, users will enjoy multiple business services at the same time, thus forming a multi-business multi-connection scenario.

[0003] In a multi-service and multi-connection scenario, it is difficult for the user terminal to allocate appropriate bandwidth resources and transmission power for different business services, resulting in poor rationality of resource allocation and difficulty in meeting the differentiated requirements of different services for network performance. Summary of the invention

[0004] Embodiments of the present invention provide a resource allocation method, device, terminal and readable storage medium to solve the problem of poor rationality of resource allocation on the terminal side.

[0005] In a first aspect, an embodiment of the present invention provides a resource allocation method, applied to a terminal, comprising:

[0006] Acquire system status information of a first time slot, the system status information including a channel gain of each of a plurality of systems and resource allocation information of a second time slot, the resource allocation information including a transmit power corresponding to each of the plurality of systems and a bandwidth resource corresponding to each of a plurality of services in each system, the second time slot being a time slot preceding the first time slot;

[0007] The system status information of the first time slot is input into a pre-trained resource allocation model for allocation processing to obtain resource allocation information of the first time slot.

[0008] Optionally, before inputting the system state information of the first time slot into a pre-trained resource allocation model for allocation processing to obtain the resource allocation information of the first time slot, the method further includes:

[0009] Acquire a sample data set, the sample data set includes a plurality of sample data, target sample data among the plurality of sample data includes system status information of a third time slot, resource allocation information of the third time slot, correction parameters and system status information of a fourth time slot, the fourth time slot is a time slot next to the third time slot, and the target sample data is any one of the plurality of sample data;

[0010] When the amount of sample data in the sample data set is greater than or equal to a threshold, the resource allocation model to be trained is iteratively trained based on the sample data set to obtain the pre-trained resource allocation model.

[0011] Optionally, before obtaining the sample data set, the method further includes:

[0012] Acquire system status information of the third time slot;

[0013] Inputting the system status information of the third time slot into the action network to obtain resource allocation information of the third time slot;

[0014] The correction parameter and the system status information of the fourth time slot are determined based on the resource allocation information of the third time slot.

[0015] Optionally, the determining the correction parameter based on the resource allocation information of the third time slot includes:

[0016] Determine the sum of utility functions of all services based on the resource allocation information of the third time slot;

[0017] When the sum of the utility functions of all the services is greater than a reference value, the correction parameter is determined as a positive number; when the sum of the utility functions of all the services is less than or equal to the reference value, the correction parameter is determined as a negative number, wherein the reference value is the sum of the utility functions of all the services determined based on the resource allocation information of the fifth time slot, and the fifth time slot is the previous time slot of the third time slot.

[0018] Optionally, after inputting the system state information of the first time slot into a pre-trained resource allocation model for allocation processing and obtaining the resource allocation information of the first time slot, the method further includes:

[0019] Mapping the transmit power corresponding to each of the multiple systems respectively to obtain a power mapping value corresponding to each of the transmit powers;

[0020] Mapping the bandwidth resources corresponding to each of the multiple services in each system respectively to obtain a bandwidth mapping value corresponding to each of the bandwidth resources;

[0021] Wherein, the power mapping value and the bandwidth mapping value are both positive numbers.

[0022] Optionally, the mapping processing is performed on the transmit power corresponding to each system of the multiple systems to obtain a power mapping value corresponding to each transmit power, including:

[0023] Mapping the target transmit power to obtain a target power mapping value corresponding to the target transmit power, where the target transmit power is a transmit power corresponding to any one of the multiple systems;

[0024] Among them, the target power mapping value is the product of the corrected power and the first ratio, the corrected power is the sum of the target transmit power and the first preset value, the first ratio is the ratio of the transmit power upper limit corresponding to the terminal to the total power, the total power is the sum of the corrected powers corresponding to the multiple systems, and the corrected power is a positive number.

[0025] Optionally, the mapping processing is performed on the bandwidth resources corresponding to each of the multiple services in each system to obtain a bandwidth mapping value corresponding to each of the bandwidth resources, including:

[0026] Mapping the target bandwidth resource to obtain a target bandwidth mapping value corresponding to the target bandwidth resource, wherein the target bandwidth mapping value is a bandwidth resource corresponding to any one of the multiple services in a target system, and the target system is any one of the multiple systems;

[0027] Among them, the target bandwidth mapping value is the product of the modified bandwidth and the second ratio, the modified bandwidth is the sum of the target bandwidth resources and the second preset value, the second ratio is the ratio of the total bandwidth resources of the terminal in the target system to the total bandwidth, the total bandwidth is the sum of the modified bandwidths corresponding to multiple services in the target system, and the modified bandwidth is a positive number.

[0028] In a second aspect, an embodiment of the present invention provides a resource allocation device, and a terminal includes the resource allocation device, including:

[0029] a first acquisition module, configured to acquire system status information of a first time slot, the system status information including a channel gain of each of a plurality of systems and resource allocation information of a second time slot, the resource allocation information including a transmit power corresponding to each of the plurality of systems and a bandwidth resource corresponding to each of a plurality of services in each system, the second time slot being a time slot preceding the first time slot;

[0030] The processing module is used to input the system status information of the first time slot into a pre-trained resource allocation model for allocation processing to obtain resource allocation information of the first time slot.

[0031] In a third aspect, an embodiment of the present invention further provides a terminal, comprising: a memory, a processor, and a program stored in the memory and executable on the processor, wherein the processor implements the steps in the resource allocation method as described above when executing the program.

[0032] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium, on which a program is stored, and when the program is executed by a processor, the steps in the resource allocation method as described above are implemented.

[0033] In an embodiment of the present application, the system status information of the first time slot is obtained, the system status information includes the channel gain of each system in multiple systems and the resource allocation information of the second time slot, the resource allocation information includes the corresponding transmission power of each system in multiple systems, and the corresponding bandwidth resources of each service in multiple services in each system; the system status information of the first time slot is input into a pre-trained resource allocation model for allocation processing to obtain the resource allocation information of the first time slot. Through the above method, the terminal side can reasonably allocate the transmission power in multiple systems and the bandwidth resources in multiple services, and the allocation results of the transmission power and bandwidth resources can be obtained at the same time only through the pre-trained resource allocation model, which improves the efficiency and rationality of resource allocation. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0035] Figure 1 is a flow chart of a resource allocation method provided by an embodiment of the present invention;

[0036] Figure 2 is a flow chart of a training method for a resource allocation model to be trained provided by an embodiment of the present invention;

[0037] Figure 3 is a structural diagram of a resource allocation device provided by an embodiment of the present invention;

[0038] Figure 4 It is a structural diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In the embodiments of the present application, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] The embodiment of the present invention provides a resource allocation method, which can be applied to a terminal. The terminal side allocates power resources in multiple connection systems through the resource allocation method provided by the present invention, and allocates spectrum resources according to various service requirements of users. Figure 1 , Figure 1 FIG. 1 is a flow chart of a resource allocation method provided by an embodiment of the present invention, wherein the method is applied to a terminal and executed by the terminal. Figure 1 As shown, the method specifically comprises the following steps:

[0042] Step 101, obtaining system status information of a first time slot, wherein the system status information includes a channel gain of each system in a plurality of systems and resource allocation information of a second time slot, wherein the resource allocation information includes a transmit power corresponding to each system in the plurality of systems and a bandwidth resource corresponding to each service in a plurality of services in each system, wherein the second time slot is a time slot preceding the first time slot;

[0043] Step 102: input the system status information of the first time slot into a pre-trained resource allocation model for allocation processing to obtain resource allocation information of the first time slot.

[0044] The resource allocation method provided in the embodiment of the present application is applied to a multi-service multi-connection system, wherein the number of systems is at least two, the number of services is at least two, and the specific system type and service type are set according to actual conditions and are not limited here.

[0045] For ease of understanding, in the subsequent embodiments, the fusion networking system of 5G New Radio (NR) and Wireless Local Area Network (WLAN) will be used as an example. Exemplarily, the multiple services may include at least two of the following: a constant bit rate (CBR) service, a download service (DS) service, and a variable bit rate (VBR) service.

[0046] In specific implementation, the resource allocation process can be modeled as a Markov Decision Process (MDP). After obtaining the resource allocation information in the time slot based on the system status information of the network in the current time slot, the state is automatically updated to enter the next time slot, and the system status information of the next time slot is obtained. The resource allocation information in the time slot is obtained based on the system status information of the next time slot, and the system status information is continuously updated in this way.

[0047] In an embodiment of the present application, the system status information of the first time slot is obtained, the system status information includes the channel gain of each system in multiple systems and the resource allocation information of the second time slot, the resource allocation information includes the transmission power corresponding to each system in multiple systems, and the bandwidth resources corresponding to each service in multiple services in each system; the system status information of the first time slot is input into a pre-trained resource allocation model for allocation processing to obtain the resource allocation information of the first time slot. Through the above method, the terminal side can reasonably allocate the transmission power in multiple systems and the bandwidth resources in multiple services, and the allocation results of the transmission power and bandwidth resources can be obtained at the same time only through the pre-trained resource allocation model, which improves the efficiency and rationality of resource allocation. Furthermore, the optimal solution to the two problems of output power and spectrum allocation can be determined through a resource allocation model, realizing the joint optimization of the two, improving the overall performance and reducing the complexity.

[0048] Optionally, before step 102, the method further includes:

[0049] Acquire a sample data set, the sample data set includes a plurality of sample data, target sample data among the plurality of sample data includes system status information of a third time slot, resource allocation information of the third time slot, correction parameters and system status information of a fourth time slot, the fourth time slot is a time slot next to the third time slot, and the target sample data is any one of the plurality of sample data;

[0050] When the amount of sample data in the sample data set is greater than or equal to a threshold, the resource allocation model to be trained is iteratively trained based on the sample data set to obtain the pre-trained resource allocation model.

[0051] In some embodiments, simulation is performed through a simulator, the network status is continuously updated, sample data is obtained based on system status information and resource allocation information in different time slots, and when the number of sample data in the sample data set is greater than or equal to a threshold, the resource allocation model to be trained is iteratively trained based on the sample data set.

[0052] The specific structure of the resource allocation model to be trained is not limited here. For example, as an optional implementation, the Deep Deterministic Policy Gradient (DDPG) algorithm is used to solve the resource allocation problem. DDPG adopts an actor-critic architecture. The resource allocation model to be trained includes an actor network and a critic network, wherein the actor network is used to output actions, the critic network is used to evaluate the performance of the actor network, and the experience replay mechanism is used to improve the robustness and stability of network training. The critic network is optimized based on the minimum mean square error loss function, and the actor network parameters are updated based on the policy gradient, which will not be described in detail here.

[0053] Optionally, as an optional implementation, before obtaining the sample data set, the method further includes:

[0054] Acquire system status information of the third time slot;

[0055] Inputting the system status information of the third time slot into the action network to obtain resource allocation information of the third time slot;

[0056] The correction parameter and the system status information of the fourth time slot are determined based on the resource allocation information of the third time slot.

[0057] It should be understood that the action network is an action (actor) network in the actor-critic architecture. By inputting system state information into the action network, an action can be output, that is, the corresponding resource allocation information is obtained. After executing the action, the next state is entered and new system state information is obtained.

[0058] Of course, as another optional implementation, the system status information of the third time slot may also be input into the resource allocation model to be trained to obtain the resource allocation information of the third time slot, which will not be described in detail herein.

[0059] Optionally, the determining the correction parameter based on the resource allocation information of the third time slot includes:

[0060] Determine the sum of utility functions of all services based on the resource allocation information of the third time slot;

[0061] When the sum of the utility functions of all the services is greater than a reference value, the correction parameter is determined as a positive number; when the sum of the utility functions of all the services is less than or equal to the reference value, the correction parameter is determined as a negative number, wherein the reference value is the sum of the utility functions of all the services determined based on the resource allocation information of the fifth time slot, and the fifth time slot is the previous time slot of the third time slot.

[0062] Since the system runs dynamically, the system status will be continuously updated. In the process of obtaining the sample data set, the system status information and resource allocation information in multiple time slots can be continuously obtained, and it can be determined whether the resource allocation information in different time slots can maximize the sum of the utility functions of the business.

[0063] It should be understood that the utility function of each service is used to describe the satisfaction of the service, and its specific calculation method is not limited here. For example, the International Telecommunication Union (ITU) defines a utility function for each service based on the performance requirements of different services, which will not be described in detail here.

[0064] In this embodiment, the correction parameters are used to provide feedback based on resource allocation information. When the output of the network can increase the sum of the utility functions of all businesses, positive incentives are provided through the correction parameters. On the contrary, when the output of the network reduces the sum of the utility functions of all businesses, negative incentives are provided through the correction parameters. By setting the above correction parameters, the resource allocation model to be trained can be gradually guided to converge towards the global optimal direction.

[0065] Optionally, after step 102, the method further includes:

[0066] Mapping the transmit power corresponding to each of the multiple systems respectively to obtain a power mapping value corresponding to each of the transmit powers;

[0067] Mapping the bandwidth resources corresponding to each of the multiple services in each system respectively to obtain a bandwidth mapping value corresponding to each of the bandwidth resources;

[0068] Wherein, the power mapping value and the bandwidth mapping value are both positive numbers.

[0069] It should be understood that the output layer activation function of the model is usually a tanh function, so the output values ​​of the model are all in the interval [-1, 1]. The feasible solutions of the transmit power and bandwidth resources should be positive numbers, so it is difficult to directly obtain the feasible solutions of the transmit power and bandwidth resources based on the output values ​​of the model.

[0070] The output results of the resource allocation model mainly include two types of data: one is the transmit power, which specifically includes the transmit power allocated by the terminal to each system; the other is the bandwidth resources, which specifically includes the bandwidth resources allocated by the terminal to each service in each system. After obtaining the output results of the resource allocation model, the above output values ​​are mapped respectively, and the output values ​​are mapped to positive numbers, so as to obtain feasible values ​​of the transmit power and bandwidth resources.

[0071] Optionally, the mapping processing is performed on the transmit power corresponding to each system of the multiple systems to obtain a power mapping value corresponding to each transmit power, including:

[0072] Mapping the target transmit power to obtain a target power mapping value corresponding to the target transmit power, where the target transmit power is a transmit power corresponding to any one of the multiple systems;

[0073] Among them, the target power mapping value is the product of the corrected power and the first ratio, the corrected power is the sum of the target transmit power and the first preset value, the first ratio is the ratio of the transmit power upper limit corresponding to the terminal to the total power, the total power is the sum of the corrected powers corresponding to the multiple systems, and the corrected power is a positive number.

[0074] Optionally, the mapping processing is performed on the bandwidth resources corresponding to each of the multiple services in each system to obtain a bandwidth mapping value corresponding to each of the bandwidth resources, including:

[0075] Mapping the target bandwidth resource to obtain a target bandwidth mapping value corresponding to the target bandwidth resource, wherein the target bandwidth mapping value is a bandwidth resource corresponding to any one of the multiple services in a target system, and the target system is any one of the multiple systems;

[0076] Among them, the target bandwidth mapping value is the product of the modified bandwidth and the second ratio, the modified bandwidth is the sum of the target bandwidth resources and the second preset value, the second ratio is the ratio of the total bandwidth resources of the terminal in the target system to the total bandwidth, the total bandwidth is the sum of the modified bandwidths corresponding to multiple services in the target system, and the modified bandwidth is a positive number.

[0077] For ease of understanding, a specific embodiment will be taken as an example for description below.

[0078] Specifically, represents the output of the resource allocation model after the activation layer at time slot t, O t,m ∈[-1, 1] means O t The mth element in , the bandwidth mapping value obtained after mapping can be expressed as:

[0079]

[0080]

[0081]

[0082]

[0083]

[0084]

[0085] The power mapping value obtained after mapping can be expressed as:

[0086]

[0087]

[0088] The resource allocation model outputs the resource allocation information of terminal k in time slot t (denoted as a t ) can be expressed as:

[0089]

[0090] Used to characterize the bandwidth resources corresponding to CBR services in the NR system. It is used to characterize the bandwidth resources corresponding to the DS service in the NR system within the time slot t. It is used to characterize the bandwidth resources corresponding to the VBR service in the NR system in time slot t. It is used to characterize the bandwidth resources corresponding to the CBR service in the WLAN system within the time slot t. It is used to characterize the bandwidth resources corresponding to the DS service in the WLAN system within the time slot t. It is used to characterize the bandwidth resources corresponding to the VBR service in the WLAN system in time slot t. Used to characterize the transmit power corresponding to the NR system in time slot t, Used to characterize the transmit power of the WLAN system in time slot t.

[0091] As can be seen from the above formula, due to O t,m∈[-1, 1], in order to make the mapped values ​​obtained after mapping all positive numbers, the first preset value and the second preset value are both 1. Through the above mapping, a feasible solution for resource allocation can be obtained in each time slot based on the output of the resource allocation model, and the terminal can allocate bandwidth resources and transmit power based on the feasible solution.

[0092] As a specific embodiment, taking the fusion networking system of 5G NR and WLAN as an example, assuming that there are K users in the system, let U = {1, 2, ..., K} represent the user set, each user is connected to both WLAN and 5G links for data transmission, and data can be transmitted in parallel on the two links. Any terminal k can adaptively adjust its transmit power on the two links based on the resource allocation method provided in the embodiment of the present invention, where the total transmit power of the terminal is limited by its own equipment capability. and denote the transmit power of terminal k on WLAN and NR links respectively, represents the upper limit of the total transmission power of terminal k, then

[0093] The signal-to-interference-to-noise ratio when the NR base station decodes the terminal k signal can be expressed as:

[0094]

[0095] in, represents the channel gain of terminal k on the NR link, n NR Indicates the noise power on the NR base station side.

[0096] Similarly, the signal to interference and noise ratio when the WLAN base station decodes the terminal k signal can be expressed as:

[0097]

[0098] in, represents the channel gain of terminal k on the WLAN link, n WLAN Indicates the noise power on the WLAN base station side.

[0099] Any terminal k can use multiple services at the same time. Different services have different requirements on performance indicators. Therefore, ITU defines a utility function for each service according to the performance requirements of different services to describe the service satisfaction. In this embodiment, the services corresponding to terminal k include CBR service, DS service and VBR service. The utility functions of each service are as follows:

[0100] Utility function U of CBR service CBR It can be expressed as:

[0101]

[0102] Utility function U of DS service DS It can be expressed as:

[0103]

[0104] Utility function U of VBR service VBR It can be expressed as

[0105]

[0106] Among them, R CBR,THRE is the preset threshold, R VBR,THRE is a preset threshold.

[0107] CBR service rate R of terminal k k,CBR , DS service rate R k,DS and VBR service rate R k,VBR Respectively expressed as:

[0108]

[0109]

[0110]

[0111]

[0112]

[0113] in, Used to characterize the bandwidth resources corresponding to CBR services in the NR system. Used to characterize the bandwidth resources corresponding to DS services in the NR system. Used to characterize the bandwidth resources corresponding to VBR services in the NR system. Used to characterize the bandwidth resources corresponding to CBR services in the WLAN system. Used to characterize the bandwidth resources corresponding to DS services in the WLAN system. Used to indicate the bandwidth resources corresponding to VBR services in the WLAN system.

[0114] In order to ensure the user experience of the three services at the same time, the objective function of this resource allocation problem can be modeled as maximizing the sum of the utility functions of multiple services:

[0115]

[0116]

[0117] This method solves the objective function by maximizing the sum of utility functions of multiple services that satisfy the above constraints. The solution process of the above resource allocation problem is modeled as an MDP, and then the resource allocation model to be trained is trained based on the DDPG algorithm, so that the final pre-trained resource allocation model can output the spectrum and power resource allocation scheme of the terminal under multi-connection and multi-service conditions. After the model converges, the solution of resource allocation can be obtained with linear complexity.

[0118] See also Figure 2 ,like Figure 2 As shown, the training of the model includes a sampling phase and a training phase, wherein the sampling phase is used to obtain a sample data set, and the specific acquisition method is as follows.

[0119] Taking any time slot t as an example, the simulator is used to read the current network environment state S (i.e., the system state information s of the current time slot t). t ), in time slot t, the system state should include the channel gain of terminal k in the NR system and the channel gain of the WLAN system In addition, it also includes the resource allocation information a of the previous time slot (t-1) t-1 , so the system status information s t The vectorizable representation is

[0120] System status information t Input actor network, output action A according to the current state (i.e. resource allocation information a of the current time slot t) t ). Since the activation function of the output layer of the model to be trained is the tanh function, its output values ​​are all in the interval [-1, 1]. Therefore, the output values ​​are mapped according to the requirements, and the output values ​​are mapped to positive values ​​to obtain the final resource allocation information. For details, please refer to the above content and no limitation is made here.

[0121] Resource allocation information a of terminal k in time slot t t It can be expressed as:

[0122]

[0123] Used to characterize the bandwidth resources corresponding to CBR services in the NR system. It is used to characterize the bandwidth resources corresponding to the DS service in the NR system within the time slot t. It is used to characterize the bandwidth resources corresponding to the VBR service in the NR system in time slot t. It is used to characterize the bandwidth resources corresponding to the CBR service in the WLAN system within the time slot t. It is used to characterize the bandwidth resources corresponding to the DS service in the WLAN system within the time slot t. It is used to characterize the bandwidth resources corresponding to the VBR service in the WLAN system in time slot t. Used to characterize the transmit power corresponding to the NR system in time slot t, Used to characterize the transmit power of the WLAN system in time slot t.

[0124] The above actions are performed based on the output resource allocation information, the correction parameter R is calculated, and the environmental state is updated to proceed to the next state to obtain the system state information for the next time slot.

[0125] According to the above content, we can get:

[0126]

[0127]

[0128]

[0129] The resource allocation information a of time slot t t Substitute into the objective function Let b t represents the corresponding objective function value, b t is the sum of the utility functions of all services maximized under the above constraints, and the modified parameter r of the network at time slot t is t It can be expressed as r t =βb t , where β represents the weight factor.

[0130] {S t , a t , r t , S t+1} as a sample data written into the cache, and the sample data is continuously acquired according to the above process, and the collected sample data is stored in the cache. It is determined whether the number of sample data in the cached sample data set meets the training requirements. If so, the model training is performed, otherwise, the sample data is continued to be collected.

[0131] The resource allocation model to be trained is iteratively trained based on the sample data set to determine whether the training end condition is met. If so, the model training is terminated to obtain the final trained resource allocation model. Otherwise, the cache is cleared and the next state is entered to re-collect sample data for model training again. The resource allocation model to be trained includes an actor network and a critic network, where the actor network is used to output actions, and the critic network is used to evaluate the performance of the actor network. The experience replay mechanism is used to improve the robustness and stability of network training. The critic network is optimized based on the minimum mean square error loss function, and the actor network parameters are updated based on the policy gradient. The details are not repeated here.

[0132] In this embodiment, a resource allocation method applied to the terminal side is proposed for the case of multiple systems and multiple services. The DDPG algorithm is used to train the neural network to output the resource allocation plan in this scenario. After the network converges, a feasible solution for resource allocation can be obtained with linear complexity. At the same time, on the terminal side, the transmit power in multiple systems is reasonably allocated by using deep reinforcement learning (DRL). After using the utility function of all services as the objective function, by maximizing the objective function, it can be ensured that the spectrum resources allocated to each service can meet the needs of each service, thereby realizing flexible allocation of spectrum resources to services and ensuring the satisfaction of each service.

[0133] See also Figure 3 The embodiment of the present invention further provides a resource allocation device 300, the terminal includes the resource allocation device 300, and the resource allocation device 300 includes:

[0134] A first acquisition module 301 is used to acquire system status information of a first time slot, where the system status information includes a channel gain of each system in a plurality of systems and resource allocation information of a second time slot, where the resource allocation information includes a transmit power corresponding to each system in the plurality of systems and a bandwidth resource corresponding to each service in a plurality of services in each system, where the second time slot is a time slot preceding the first time slot;

[0135] The processing module 302 is used to input the system status information of the first time slot into a pre-trained resource allocation model for allocation processing to obtain resource allocation information of the first time slot.

[0136] Optionally, the resource allocation device 300 further includes:

[0137] a second acquisition module, configured to acquire a sample data set, wherein the sample data set includes a plurality of sample data, wherein target sample data among the plurality of sample data includes system status information of a third time slot, resource allocation information of the third time slot, correction parameters, and system status information of a fourth time slot, wherein the fourth time slot is a time slot next to the third time slot, and the target sample data is any sample data among the plurality of sample data;

[0138] The training module is used to iteratively train the resource allocation model to be trained based on the sample data set when the number of sample data in the sample data set is greater than or equal to a threshold, so as to obtain the pre-trained resource allocation model.

[0139] Optionally, the resource allocation device 300 further includes:

[0140] A second acquisition module, used to acquire the system status information of the third time slot;

[0141] An input module, used for inputting the system status information of the third time slot into an action network to obtain resource allocation information of the third time slot;

[0142] A determination module is used to determine the correction parameter and the system status information of the fourth time slot based on the resource allocation information of the third time slot.

[0143] Optionally, the determining module is specifically used to:

[0144] Determine the sum of utility functions of all services based on the resource allocation information of the third time slot;

[0145] When the sum of the utility functions of all the services is greater than a reference value, the correction parameter is determined as a positive number; when the sum of the utility functions of all the services is less than or equal to the reference value, the correction parameter is determined as a negative number, wherein the reference value is the sum of the utility functions of all the services determined based on the resource allocation information of the fifth time slot, and the fifth time slot is the previous time slot of the third time slot.

[0146] Optionally, the resource allocation device 300 further includes:

[0147] A first mapping module, configured to respectively map the transmit power corresponding to each of the multiple systems to obtain a power mapping value corresponding to each of the transmit powers;

[0148] A second mapping module is used to map the bandwidth resources corresponding to each of the multiple services in each system to obtain a bandwidth mapping value corresponding to each of the bandwidth resources;

[0149] Wherein, the power mapping value and the bandwidth mapping value are both positive numbers.

[0150] Optionally, the first mapping module is specifically configured to:

[0151] Mapping the target transmit power to obtain a target power mapping value corresponding to the target transmit power, where the target transmit power is a transmit power corresponding to any one of the multiple systems;

[0152] Among them, the target power mapping value is the product of the corrected power and the first ratio, the corrected power is the sum of the target transmit power and the first preset value, the first ratio is the ratio of the transmit power upper limit corresponding to the terminal to the total power, the total power is the sum of the corrected powers corresponding to the multiple systems, and the corrected power is a positive number.

[0153] Optionally, the second mapping module is specifically configured to:

[0154] Mapping the target bandwidth resource to obtain a target bandwidth mapping value corresponding to the target bandwidth resource, wherein the target bandwidth mapping value is a bandwidth resource corresponding to any one of the multiple services in a target system, and the target system is any one of the multiple systems;

[0155] Among them, the target bandwidth mapping value is the product of the modified bandwidth and the second ratio, the modified bandwidth is the sum of the target bandwidth resources and the second preset value, the second ratio is the ratio of the total bandwidth resources of the terminal in the target system to the total bandwidth, the total bandwidth is the sum of the modified bandwidths corresponding to multiple services in the target system, and the modified bandwidth is a positive number.

[0156] The resource allocation device 300 provided in the embodiment of the present invention can execute the above-mentioned resource allocation method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.

[0157] The embodiment of the present invention further provides a terminal. Since the principle of the terminal to solve the problem is similar to the resource allocation method in the embodiment of the present invention, the implementation of the terminal can refer to the implementation of the method, and the repeated parts will not be repeated. Figure 4 As shown, the terminal 400 of the embodiment of the present invention includes: a processor 401, which is used to read the program in the memory 402 and execute the following process:

[0158] Acquire system status information of a first time slot, the system status information including a channel gain of each of a plurality of systems and resource allocation information of a second time slot, the resource allocation information including a transmit power corresponding to each of the plurality of systems and a bandwidth resource corresponding to each of a plurality of services in each system, the second time slot being a time slot preceding the first time slot;

[0159] The system status information of the first time slot is input into a pre-trained resource allocation model for allocation processing to obtain resource allocation information of the first time slot.

[0160] Optionally, the processor 401 is further configured to read a program in the memory 402 and execute the following steps:

[0161] Acquire a sample data set, the sample data set includes a plurality of sample data, target sample data among the plurality of sample data includes system status information of a third time slot, resource allocation information of the third time slot, correction parameters and system status information of a fourth time slot, the fourth time slot is a time slot next to the third time slot, and the target sample data is any one of the plurality of sample data;

[0162] When the amount of sample data in the sample data set is greater than or equal to a threshold, the resource allocation model to be trained is iteratively trained based on the sample data set to obtain the pre-trained resource allocation model.

[0163] Optionally, the processor 401 is further configured to read a program in the memory 402 and execute the following steps:

[0164] Acquire system status information of the third time slot;

[0165] Inputting the system status information of the third time slot into the action network to obtain resource allocation information of the third time slot;

[0166] The correction parameter and the system status information of the fourth time slot are determined based on the resource allocation information of the third time slot.

[0167] Optionally, the processor 401 is further configured to read a program in the memory 402 and execute the following steps:

[0168] Determine the sum of utility functions of all services based on the resource allocation information of the third time slot;

[0169] When the sum of the utility functions of all the services is greater than a reference value, the correction parameter is determined as a positive number; when the sum of the utility functions of all the services is less than or equal to the reference value, the correction parameter is determined as a negative number, wherein the reference value is the sum of the utility functions of all the services determined based on the resource allocation information of the fifth time slot, and the fifth time slot is the previous time slot of the third time slot.

[0170] Optionally, the processor 401 is further configured to read a program in the memory 402 and execute the following steps:

[0171] Mapping the transmit power corresponding to each of the multiple systems respectively to obtain a power mapping value corresponding to each of the transmit powers;

[0172] Mapping the bandwidth resources corresponding to each of the multiple services in each system respectively to obtain a bandwidth mapping value corresponding to each of the bandwidth resources;

[0173] Wherein, the power mapping value and the bandwidth mapping value are both positive numbers.

[0174] Optionally, the processor 401 is further configured to read a program in the memory 402 and execute the following steps:

[0175] Mapping the target transmit power to obtain a target power mapping value corresponding to the target transmit power, where the target transmit power is a transmit power corresponding to any one of the multiple systems;

[0176] Among them, the target power mapping value is the product of the corrected power and the first ratio, the corrected power is the sum of the target transmit power and the first preset value, the first ratio is the ratio of the transmit power upper limit corresponding to the terminal to the total power, the total power is the sum of the corrected powers corresponding to the multiple systems, and the corrected power is a positive number.

[0177] Optionally, the processor 401 is further configured to read a program in the memory 402 and execute the following steps:

[0178] Mapping the target bandwidth resource to obtain a target bandwidth mapping value corresponding to the target bandwidth resource, wherein the target bandwidth mapping value is a bandwidth resource corresponding to any one of the multiple services in a target system, and the target system is any one of the multiple systems;

[0179] Among them, the target bandwidth mapping value is the product of the modified bandwidth and the second ratio, the modified bandwidth is the sum of the target bandwidth resources and the second preset value, the second ratio is the ratio of the total bandwidth resources of the terminal in the target system to the total bandwidth, the total bandwidth is the sum of the modified bandwidths corresponding to multiple services in the target system, and the modified bandwidth is a positive number.

[0180] The terminal provided in the embodiment of the present invention can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.

[0181] The embodiment of the present application also provides a readable storage medium, on which a program is stored. When the program is executed by a processor, the various processes of the above-mentioned resource allocation method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0182] Among them, the readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical storage (such as compact disk (CD), digital video disk (DVD), Blu-ray Disc (BD), high-definition versatile disk (HVD), etc.), and semiconductor memory (such as read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read only memory (EEPROM), non-volatile memory (NAND FLASH), solid-state drive (Solid State Disk or Solid State Drive, SSD)), etc.

[0183] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0184] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0185] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0186] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A resource allocation method, applied to a terminal, characterized in that: include: Acquire system status information of a first time slot, the system status information including a channel gain of each of a plurality of systems and resource allocation information of a second time slot, the resource allocation information including a transmit power corresponding to each of the plurality of systems and a bandwidth resource corresponding to each of a plurality of services in each system, the second time slot being a time slot preceding the first time slot; The system status information of the first time slot is input into a pre-trained resource allocation model for allocation processing to obtain resource allocation information of the first time slot.

2. The method according to claim 1, characterized in that Before inputting the system status information of the first time slot into a pre-trained resource allocation model for allocation processing to obtain the resource allocation information of the first time slot, the method further includes: Acquire a sample data set, the sample data set includes a plurality of sample data, target sample data among the plurality of sample data includes system status information of a third time slot, resource allocation information of the third time slot, correction parameters and system status information of a fourth time slot, the fourth time slot is a time slot next to the third time slot, and the target sample data is any one of the plurality of sample data; When the amount of sample data in the sample data set is greater than or equal to a threshold, the resource allocation model to be trained is iteratively trained based on the sample data set to obtain the pre-trained resource allocation model.

3. The method according to claim 2, characterized in that Before obtaining the sample data set, the method further includes: Acquire system status information of the third time slot; Inputting the system status information of the third time slot into the action network to obtain resource allocation information of the third time slot; The correction parameter and the system status information of the fourth time slot are determined based on the resource allocation information of the third time slot.

4. The method according to claim 3, characterized in that The determining the correction parameter based on the resource allocation information of the third time slot includes: Determine the sum of utility functions of all services based on the resource allocation information of the third time slot; When the sum of the utility functions of all the services is greater than a reference value, the correction parameter is determined as a positive number; when the sum of the utility functions of all the services is less than or equal to the reference value, the correction parameter is determined as a negative number, wherein the reference value is the sum of the utility functions of all the services determined based on the resource allocation information of the fifth time slot, and the fifth time slot is the previous time slot of the third time slot.

5. The method according to claim 1, characterized in that After inputting the system status information of the first time slot into a pre-trained resource allocation model for allocation processing and obtaining the resource allocation information of the first time slot, the method further includes: Mapping the transmit power corresponding to each of the multiple systems respectively to obtain a power mapping value corresponding to each of the transmit powers; Mapping the bandwidth resources corresponding to each of the multiple services in each system respectively to obtain a bandwidth mapping value corresponding to each of the bandwidth resources; Wherein, the power mapping value and the bandwidth mapping value are both positive numbers.

6. The method according to claim 5, characterized in that The mapping processing is performed on the transmit power corresponding to each system of the multiple systems to obtain a power mapping value corresponding to each transmit power, including: Mapping the target transmit power to obtain a target power mapping value corresponding to the target transmit power, where the target transmit power is a transmit power corresponding to any one of the multiple systems; Among them, the target power mapping value is the product of the corrected power and the first ratio, the corrected power is the sum of the target transmit power and the first preset value, the first ratio is the ratio of the transmit power upper limit corresponding to the terminal to the total power, the total power is the sum of the corrected powers corresponding to the multiple systems, and the corrected power is a positive number.

7. The method according to claim 5, characterized in that The mapping process is performed on the bandwidth resources corresponding to each of the multiple services in each system to obtain a bandwidth mapping value corresponding to each of the bandwidth resources, including: Mapping the target bandwidth resource to obtain a target bandwidth mapping value corresponding to the target bandwidth resource, wherein the target bandwidth mapping value is a bandwidth resource corresponding to any one of the multiple services in a target system, and the target system is any one of the multiple systems; Among them, the target bandwidth mapping value is the product of the modified bandwidth and the second ratio, the modified bandwidth is the sum of the target bandwidth resources and the second preset value, the second ratio is the ratio of the total bandwidth resources of the terminal in the target system to the total bandwidth, the total bandwidth is the sum of the modified bandwidths corresponding to multiple services in the target system, and the modified bandwidth is a positive number.

8. A resource allocation device, a terminal comprising the resource allocation device, characterized in that: include: a first acquisition module, configured to acquire system status information of a first time slot, the system status information including a channel gain of each of a plurality of systems and resource allocation information of a second time slot, the resource allocation information including a transmit power corresponding to each of the plurality of systems and a bandwidth resource corresponding to each of a plurality of services in each system, the second time slot being a time slot preceding the first time slot; The processing module is used to input the system status information of the first time slot into a pre-trained resource allocation model for allocation processing to obtain resource allocation information of the first time slot.

9. A terminal, comprising: A memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: The processor is configured to read a program in a memory to implement the steps in the resource allocation method according to any one of claims 1 to 7.

10. A readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps in the resource allocation method according to any one of claims 1 to 7 are implemented.