Wireless sensor data transmission power control method and system
By formulating the wireless sensor data transmission problem as a Markov decision process and using the flexible actor-critic algorithm, the data transmission strategy is optimized, the problem of unstable energy supply in the wireless sensor network is solved, and the data transmission efficiency is improved and the network is improved. Life extension.
Patent Information
- Application Number
- CN202410742529.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-11
AI Technical Summary
In wireless sensor networks, the randomness and dynamics of natural energy lead to unstable energy supply, affecting the continuity and efficiency of sensor data transmission. It is difficult for existing technologies to effectively balance data transmission and energy consumption.
The wireless sensor data transmission problem is formulated as a Markov decision process and solved using the Flexible Actor-Critic Algorithm (SAC), and the data transmission strategy is optimized to maximize the amount of data transmission under the premise of energy sustainability.
By learning and optimizing energy usage strategies, data transmission efficiency is improved under uncertain energy and channel conditions, extending the operating life of wireless sensor networks and reducing operating costs.
Smart Images

Figure CN118695219A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data transmission control, and in particular to a method and system for controlling data transmission power of a wireless sensor. Background Art
[0002] In recent years, with the advancement of low-power and miniaturized electronics, the application of the Internet of Things (IoTs) has increased dramatically. These widely deployed wireless devices are usually powered by batteries, and the battery capacity is usually limited, which brings serious performance bottlenecks to the realization of large-scale wireless communication networks. Especially in some special environments, regular manual battery replacement and wired charging are costly, troublesome, dangerous, and even impossible in some special cases, such as sensors implanted in the human body, which will greatly limit the life of the wireless network and increase the network operation cost.
[0003] Energy harvesting (EH) technology enables wireless sensor networks (WSNs) to be self-sustainable to maintain their long-term key performance indicators, such as data throughput, as shown in the patent application publication number CN117858188A. Due to the high dynamics and complexity of the environment, a stable energy supply cannot be provided, and efficient learning algorithms are required to enable the system to adapt to the energy supply of the environment. Wireless communication nodes with EH capabilities have the potential to achieve self-sustainability and permanent operation. Communication nodes can harvest piezoelectric, radio frequency (RF) energy, or use natural energy such as solar, thermal, wind, etc. to charge batteries in an environmentally friendly way, and then use the harvested energy to transmit data, such as Figure 1 As shown. However, the arrival of natural energy is highly random, the environment in which the EH node is located is dynamically changing, and the corresponding energy collection process has randomness and dynamic characteristics. These uncertainties will affect the key performance of the sensor network. Therefore, a control method and system that can balance wireless sensor data transmission and energy consumption is needed. Summary of the invention
[0004] The purpose of the present invention is to solve the deficiencies of the prior art and provide a method and system for controlling data transmission power of a wireless sensor.
[0005] In order to solve the above problems, the present invention adopts the following technical solution: a wireless sensor data transmission power control method, characterized in that it includes the following steps: Step 1: Setting a communication connection between a wireless sensor and a data receiving node, wherein the wireless sensor includes a storage module for data storage and a battery for energy storage; Step 2: The wireless sensor collects data information from the outside world and stores it in its own memory. At the same time, the wireless sensor also obtains energy from the outside world to charge the battery; Step 3: Calculate the amount of data and energy stored in the wireless sensor at set intervals; Step 4: Establish an optimization problem of data transmission and energy consumption, with the goal of maximizing the data transmission of wireless sensors within a set time under the premise of energy sustainability; Step 5: Formulate the optimization problem in step 4 as a Markov decision process, and then use the flexible actor-critic algorithm to solve the process to obtain the data transmission strategy of the wireless sensor at the current moment; Step 6: The wireless sensor executes the data transmission strategy and transmits data to the data receiving node.
[0006] According to the wireless sensor data transmission power control method of claim 1, it is characterized in that the process of expressing the optimization problem as a Markov decision in step 5 comprises the following steps: Step 51: Based on the Markov decision process, a model is built for the energy collection and data transmission process of the wireless sensor. The model is expressed as MDP M={S, A,P, R, γ}; S represents all possible states s contained in the state space; A represents all possible actions a contained in the action space; P represents the state transition probability, which is the probability that the wireless sensor will transition to the state st+1 after executing the action at in the state st at time t; R represents the set reward value; the parameter γ represents the discount factor, which is the importance attached to future rewards; Step 52: Building the Energy Harvesting Model , data collection model and data transfer models , and based on the energy collection model, data collection model and data transmission model, define the problem statement of the wireless sensor data transmission strategy; the energy collection model represents the amount of electricity stored in the battery at the beginning of the current time slot i, the data collection model represents the amount of data stored in the wireless sensor at the beginning of the current time slot i, and the data transmission model represents the data transmission rate in time slot i; Step 53: Setting a reward function of a reward value R; Step 54: Setting the model algorithm based on the flexible actor-critic algorithm; Step 55: Building and training a model based on a model algorithm; Step 56: Run the model to obtain the data transmission strategy of the wireless sensor at the current moment, and control the output power of the transmission data of the wireless sensor.
[0007] Step 52 Energy Harvesting Model Using the harvest-store-use (HSU) architecture, it is expressed as formula (1): (1) in is the energy harvesting model of the wireless sensor, which represents the power at the beginning of the current i-th time slot; is the energy consumed in the previous time slot i-1; is the wireless sensor transmission power of the previous time slot i-1; is the energy collected in the battery in the previous time slot i-1; The upper limit of the battery capacity of the wireless sensor.
[0008] The data collection model in step 52 The harvest-store-use (HSU) architecture is adopted, which is expressed as formula (2): (2) in represents the amount of data stored in the wireless sensor storage module at the beginning of the current i-th time slot; The amount of data sent in the previous time slot i-1; is the transmission rate of the i-th time slot; The amount of data obtained for the i-1th time slot; The upper limit of the data cache capacity of the storage module.
[0009] The data transmission model in step 52 , expressed as formula (3): (3) in, represents the data transmission rate in time slot i; represents the channel gain; represents the variance of the noise.
[0010] The problem of wireless sensor data transmission strategy in step 52 can be expressed as formula (4): (4) in, represents the data transmission rate in time slot i; represents the channel gain; represents the variance of the noise; Indicates a time interval; N Represents a natural number.
[0011] The reward function of the reward value R in the step 53 includes the single-step data transmission amount r1, the action energy exceeding limit penalty r2, the action data exceeding limit penalty r3 and the energy overflow penalty r4; wherein the single-step data transmission amount r1 represents the amount of data transmitted by the wireless sensor in a single-step action; the action energy exceeding limit penalty r2 is related to the distance between the action energy and the boundary value of the set energy range, and the action energy represents the energy consumed by the wireless sensor to transmit a set amount of data in the action; the action data exceeding limit penalty r3 is related to the amount of data transmitted by the wireless sensor in the action and the amount of data remaining in the cache; the energy overflow penalty r4 is related to the overflowed energy of the wireless sensor and the amount of untransmitted data stored by the wireless sensor when the energy overflows.
[0012] In step 54, the model algorithm is set based on the flexible actor-critic algorithm, as shown in formula (9): (9) Among them, the content expressed by formula (9) is that the mean value of the constraint entropy is greater than Under the premise of maximizing expected return; represents the immediate reward for taking action at in state st; represents the mean of the cumulative returns obtained under strategy 𝜋; middle( s t ,a t ) ~ρ π Represents a state-action pair (st, at) taken from the state-action distribution , which means that we need to calculate the state-action distribution caused by the policy 𝜋 The mean of the negative log probability of the action is Indicates expected value; Indicated in strategy Next, the probability of choosing action at when in state st; is the set target value.
[0013] Formula (9) is simplified by Lagrange multiplier method to obtain coefficients α The loss function is: (12) in, s t ∼ R Indicates that the state st is sampled from the experience replay pool R; It means that the action at is sampled from the policy π in the state st.
[0014] A wireless sensor data transmission power control system, comprising: A data receiving node and a wireless sensor, wherein the wireless sensor includes a memory for storing data and a battery for storing electricity; A collection module, used to collect the remaining energy and data volume in the wireless sensor; A training module for acquiring wireless sensor data and training models. The training module is used to establish an optimization problem. The goal of the optimization problem is to maximize the amount of data transmitted by wireless sensors within a set time under the premise of energy sustainability. A Markov decision process is established for the optimization problem, and then the flexible actor-critic algorithm is used to solve the process.
[0015] The beneficial effects of the present invention are: By formulating the problem as a Markov decision process and then solving it with the flexible actor-critic algorithm (SAC) method, and through some reinforcement learning techniques and careful design of the reward function, a strategy model is obtained. The final strategy can learn and optimize the energy usage strategy by tracking the specific energy, data size, and channel state information received in each time slot when the future information of energy, data, and channel state is unknown, so as to achieve better results. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 Models for energy and data harvesting and data transmission for wireless sensors; Figure 2 This is a diagram of the SAC algorithm architecture of Example 1; Figure 3 is the variation of the long-term average throughput with the number of iterations in the case of unlimited data in Example 1; Figure 4 The long-term average throughput varies with the number of iterations in the case of limited data in Example 1. DETAILED DESCRIPTION
[0017] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0018] It should be noted that the illustrations provided in the following embodiments are only used to schematically illustrate the basic concept of the present invention. The figures only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0019] Embodiment 1: like Figure 2 As shown, a wireless sensor data transmission power control method comprises the following steps: Step 1: Setting a communication connection between a wireless sensor and a data receiving node, wherein the wireless sensor includes a storage module for data storage and a battery for energy storage; Step 2: The wireless sensor collects data information from the outside world and stores it in its own memory. At the same time, the wireless sensor also obtains energy from the outside world to charge the battery; Step 3: Calculate the amount of data and energy stored in the wireless sensor at set intervals; Step 4: Establish an optimization problem of data transmission and energy consumption, with the goal of maximizing the data transmission of wireless sensors within a set time under the premise of energy sustainability; Step 5: Formulate the optimization problem in step 4 as a Markov decision process, and then use the flexible actor-critic algorithm to solve the process to obtain the data transmission strategy of the wireless sensor at the current moment; Step 6: The wireless sensor executes the data transmission strategy and transmits data to the data receiving node.
[0020] The process of expressing the optimization problem as a Markov decision in step 5 includes the following steps: Step 51: Based on the Markov decision process, a model is built for the energy collection and data transmission process of the wireless sensor. The model is expressed as MDP M={S, A,P, R, γ}; S represents all possible states s contained in the state space; A represents all possible actions a contained in the action space; P represents the state transition probability, which is the probability that the wireless sensor will transition to the state st+1 after executing the action at in the state st at time t; R represents the set reward value; the parameter γ represents the discount factor, which is the importance attached to future rewards; Step 52: Building the Energy Harvesting Model , data collection model and data transfer models , and based on the energy collection model, data collection model and data transmission model, define the problem statement of the wireless sensor data transmission strategy; the energy collection model represents the amount of electricity stored in the battery at the beginning of the current time slot i, the data collection model represents the amount of data stored in the wireless sensor at the beginning of the current time slot i, and the data transmission model represents the data transmission rate in time slot i; Step 53: setting a reward function of the reward value R; the reward function includes a single-step data transmission amount r1, an action energy over-limit penalty r2, an action data over-limit penalty r3, and an energy overflow penalty r4; wherein the single-step data transmission amount r1 represents the amount of data transmitted by the wireless sensor in a single-step action; the action energy over-limit penalty r2 is related to the distance of the action energy from the boundary value of the set energy range, and the action energy represents the energy consumed by the wireless sensor to transmit a set amount of data in the action; the action data over-limit penalty r3 is related to the amount of data transmitted by the wireless sensor in the action and the amount of data remaining in the cache; the energy overflow penalty r4 is related to the overflowed energy of the wireless sensor and the amount of untransmitted data stored by the wireless sensor when the energy overflows; Step 54: Setting the model algorithm based on the flexible actor-critic algorithm; Step 55: Building and training a model based on a model algorithm; Step 56: Run the model to obtain the data transmission strategy of the wireless sensor at the current moment, and control the output power of the transmission data of the wireless sensor.
[0021] In step 51, a state s in the state space S is expressed as ;in Indicates the remaining power of the wireless sensor; Indicates the channel gain state of the wireless sensor; Randomly represents the random arrival energy when the wireless sensor transmits data, that is, the energy consumed in transmitting data; Indicates the amount of remaining data in the wireless sensor; Represents the amount of random arrival data transmitted by the wireless sensor. According to the Markov characteristic, the state st inherits all the historical state information before time t, and the wireless sensor can make the next power allocation decision based on this historical state information to form a new state st+1.
[0022] The action a included in the action space A in step 51 is the transmission power pi of the wireless sensor at the corresponding time sequence, which represents the power of transmitting data. It should be noted that at a certain moment, the transmission power pi of the wireless sensor is a constant. Since there is a nonlinear relationship between the transmission power and the amount of remaining data of the wireless sensor, the wireless sensor has the highest energy utilization efficiency when the transmission power is a constant.
[0023] The state transition probability P in step 51 characterizes the system dynamics on the time slot, wherein since the state space S and the action space A are both continuous and infinite, the space of the state transition probability P is also continuous and infinite, so the optimal power allocation strategy of the wireless sensor cannot be derived through traditional offline optimization technology.
[0024] Since the wireless sensor continuously collects renewable energy from the environment when working and stores it in its battery for subsequent use, the energy collection model in step 52 The harvest-store-use (HSU) architecture is adopted, which is expressed as formula (1): (1) in is the energy harvesting model of the wireless sensor, which represents the power at the beginning of the current i-th time slot; is the energy consumed in the previous time slot i-1; is the wireless sensor transmission power of the previous time slot i-1; is the energy collected in the battery in the previous time slot i-1; The upper limit of the battery capacity of the wireless sensor.
[0025] Similarly, the data collection model The harvest-store-use (HSU) architecture is also adopted, which is expressed as formula (2): (2) in represents the amount of data stored in the wireless sensor storage module at the beginning of the current i-th time slot; The amount of data sent in the previous time slot i-1; is the transmission rate of the i-th time slot; The amount of data obtained for the i-1th time slot; The upper limit of the data cache capacity of the storage module.
[0026] Assume that the noise is independent and identically distributed zero-mean additive white Gaussian noise (AWGN) with variance In addition, the transmission power At each time interval The amount of data transmitted in each time slot of the wireless sensor is determined by the transmission power pi and the channel gain hi. Therefore, the data transmission model , expressed as formula (3): (3) in, represents the data transmission rate in time slot i; represents the channel gain; represents the variance of the noise.
[0027] The purpose of this model is to maximize the long-term average data throughput from the sensor to the data receiver, so the problem of wireless sensor data transmission strategy can be expressed as formula (4): (4) in, Indicates a time interval; N represents a natural number. The transmission power pi of the wireless sensor is also affected by the amount of power and data, which can be expressed as The reward R in step 53 is mainly the data transmission volume r1 of the wireless sensor in each time slot, because the goal of this strategy is to maximize the data transmission volume of the wireless sensor in the time period; in addition, action violation penalty and energy overflow penalty r4 are set as negative rewards, wherein the action violation penalty includes action energy over-limit penalty r2 and action data over-limit penalty r3. The negative reward is set to achieve the convergence of the algorithm and obtain the largest possible data transmission volume r1 of the wireless sensor. The action energy over-limit penalty r2 and action data over-limit penalty r3 are set because the action of the wireless sensor is limited by both the battery power and the amount of data, so the wireless sensor is very easy to exceed the constraint range of the action energy during the action process. At the same time, in order to ensure that the model training can proceed smoothly, the action energy over-limit penalty r2 is set. The energy overflow penalty r4 is also multiplied by a set value representing the current remaining data volume, because the more the remaining data volume, the more it is necessary to speed up the data transmission, and the greater the penalty for energy overflow.
[0028] The flexible actor-critic algorithm (SAC) in step 54 is a reinforcement learning algorithm with good performance in the field of continuous control. The SAC algorithm combines the advantages of policy gradient and value function, and balances the problem of exploration and utilization by maximizing the information entropy of the environment. The network architecture of the SAC algorithm is as follows: Figure 2 As shown in the figure, it consists of 1 Actor network, 2 Critic networks and 2 Critic target networks. The Actor network receives the input state, outputs the action and the corresponding entropy; the Critic network evaluates the Q value of the current state-action pair; the Critic target network provides a more stable Q value target, and the parameters are gradually updated from the main Q network through a delayed update method.
[0029] In addition, the idea of maximum entropy reinforcement learning (RL) is to maximize the cumulative reward and make the strategy more random. An entropy regularization term is added to the goal of reinforcement learning to control the randomness of the strategy. In summary, the optimal strategy π* is expressed as formula (5): (5) Among them, π* represents the optimal strategy; represents the immediate reward for taking action at in state st; H Expressed as , where X is a random variable and its probability density function is ; α is a regularization coefficient used to control the importance of entropy. α The larger it is, the stronger the exploration ability of the wireless sensor is, which helps to find a better strategy and reduce the possibility of the strategy falling into a worse local optimum; represents the probability distribution of selecting actions according to strategy π in state st; represents the mathematical expectation, represents the expected value according to the policy π.
[0030] The policy network is regarded as an "actor" that outputs actions in the continuous action space, while the Q network is regarded as a "critic" that evaluates the value of the actions output by the policy network. In the initial stage, the Q network does not know whether the actions output by the policy network are good or bad, and needs to use the temporal difference (TD) method to learn the value of these actions. The function Q(𝑠 t ,𝑎 𝑡 ) represents the expected reward that can be obtained from executing action at from the current state st to the end of the round, which is used to measure the pros and cons of executing an action in a given state. The state value function V(st) is defined as π Continue to execute, the expected cumulative reward value that can be obtained; the state value function V(st) represents the degree of execution of the strategy under a given state, and is used to evaluate the value of state s. The state value function V(st) is expressed as formula (6): (6) Where V(st) represents the state value of state st; Indicated in strategy π Next, the probability of choosing action at when in state st; Indicates that the action at follows the strategy π Calculate the expected value of the probability distribution; Q(𝑠 t ,𝑎 𝑡 ) is the state-action-value function.
[0031] In the calculation of the critic, or Q-value network, the SAC algorithm uses a target network and experience replay mechanism, similar to DQN. Based on the idea of Double DQN, the SAC algorithm uses two Q networks representing the action value function. , each time a Q network is used, a network with a smaller Q value is selected to alleviate the problem of overestimation of the Q value. In order to make the training parameter update process more stable, SAC also uses the mechanism of the target network, that is, to generate two target Q networks , these two Q networks are updated by soft update, and One-to-one correspondence. When calculating the loss function of the Q network, use Calculate the Q target estimate part of the latter term in the loss function. The loss function of any Q network is Formula (7): (7) in, Represents historical data taken from the experience replay pool R; Indicates that action at+1 is from the strategy Sampled at state st+1; It means that any Q network has parameters The estimated value of Indicates that the at action is executed in state st. This state-action pair In the parameters The estimated value of Q under . It represents the estimated value of the target Q network. It should be noted that in this example, there are two corresponding target networks of the Q network of the action value function, which are represented as and Similarly, in the process of updating the Q network using the estimated value of the target network, we also select The smaller value of the two reduces the estimation bias; γ represents the discount factor; Indicates the state value of state st+1; Indicated in strategy π The probability of selecting action at+1 when in state st+1; Indicates an immediate reward.
[0032] For the environment of continuous action space, the strategy of SAC algorithm outputs the mean and standard deviation of Gaussian distribution, but the process of sampling actions according to Gaussian distribution is not differentiable. Here, we use the reparameterization technique, first sampling from a standard normal distribution, then multiplying the sampled value by the standard deviation and adding the mean, so that it can be considered as sampling from the strategy Gaussian distribution, and this is differentiable for the strategy function. Specifically, according to the current state st, the Actor network obtains the Gaussian distribution parameter 𝜇( 𝑠 t ,𝜃) and σ ( s t ,𝜃). The output action 𝑎 t = μ ( s t ,𝜃)+ σ ( s t ,𝜃)⋅ ϵ t , where 𝜖 t ∼𝑁(0,1)) is the noise sampled from the standard normal distribution, which can be expressed as . This can be considered as sampling from the strategy Gaussian distribution, and this is differentiable for the strategy function. In this embodiment, Ornstein-Uhlenbeck noise suitable for continuous action control is also used to increase the action exploration ability. The loss function of the strategy is shown in (8): (8) in, s t ∼ R Indicates that the state st is sampled from the experience replay pool R; 𝜖 𝑡 ∼𝑁 represents the noise 𝜖 𝑡 is sampled from a standard normal distribution 𝑁; strategy In Represents the parameters of the policy network; Indicates that the policy network π outputs in state st The probability of the function, Defined as , where μ and σ are strategies The mean and variance of the Gaussian distribution output in state st; Represents the output of two action value functions Q network in state st The expected value reward that the function can obtain.
[0033] How to choose the coefficient of entropy in the flexible actor-critic algorithm αVery important; combined with the content in this example, in a state s where the optimal action a of the wireless sensor is uncertain, the wireless sensor's exploration of the environment is insufficient. At this time, the entropy value should be larger to increase the wireless sensor's exploration of the environment; and after the exploration of the environment is more sufficient, a smaller entropy value is needed to seek the optimal action, where the exploration of the environment can be understood as the data collected by the wireless sensor and the rate at which it obtains power. In order to automatically adjust the entropy regularization term, SAC rewrites the goal of reinforcement learning into a constrained optimization problem as shown in formula (9): (9) Among them, the content expressed by formula (9) is that the mean value of the constraint entropy is greater than Under the premise of maximizing expected return; represents the immediate reward for taking action at in state st; represents the mean of the cumulative returns obtained under strategy 𝜋; middle( s t ,a t ) ~ρ π Represents a state-action pair (st, at) taken from the state-action distribution , which means that we need to calculate the state-action distribution caused by the policy 𝜋 The mean of the negative log probability of the action is Indicates expected value; Indicated in strategy Next, the probability of choosing action at when in state st; is the set target value.
[0034] Then, by simplifying, we can get α The loss function of , the simplification process is shown in formula (10) to formula (12): By using the Lagrange multiplier method, the constrained optimization problem is converted into an unconstrained optimization problem. Introduce Lagrange multipliers. In this example, the coefficients α As a multiplier; rewrite its objective function (9) into a new Lagrangian objective function : (10) By expanding the Lagrangian objective function above , we can get: (11) In order to make the entropy of the policy as close as possible to the target entropy, the coefficient with respect to the constraint entropy is minimized α The loss function is: (12) in, s t ∼ R Indicates that the state st is sampled from the experience replay pool R; It means that the action at is sampled from the policy π in the state st.
[0035] The process of training the model in step 55 first requires using random network parameters and Initialize the Critic network separately and Actor Network , copy the same parameters, , respectively initialize the target network and ; Then initialize the experience replay pool size, OU noise parameters, and sampling batch size respectively N , discount factor γ ; Finally, initialize the battery power of the wireless sensor represented by the sending node S , the amount of data in the cache , channel gain , collect energy , collect data .
[0036] The procedure for training the model in step 55 is as follows: 1) for sequence do 2) Initial state 3) for time step t=1→Tdo 4) s t Input to the Actor strategy network to get the action a t (Data transmission power p t ) 5) Sending node S performs the action a t , get reward r t ( r t Data transfer volume r 1 , Action Energy Exceeding Limit Penalty r 2 , Action data exceeding limit penalty r 3 , Energy Overflow Penalty r 4 Added), the environment state becomess t+1 6) The obtained Deposit into experience replay pool R 7) If the amount of data in the current experience replay pool is greater than N 8) for the number of training rounds k=1→K do 9) Sampling from the experience replay pool N Tuples 10) For each tuple, use the target critic network calculate 11) Perform the following gradient update on the parameters of both Critic networks: Minimize the loss function for j=1,2 12) Reparameterization, sampling action Then use the following loss function to update the current Actor network parameters to improve the strategy of the wireless sensor so that it can choose a better transmission power: 13) Update the entropy coefficient α according to the following loss function to balance the agent's exploration and reward improvement 14) Soft update the target critic network parameters so that the target network parameters slowly catch up with the critic network to ensure training stability: 15) end for 16) end if 17) end for 18) end for like Figure 3 , 4 As shown, in order to verify the effectiveness of the above model algorithm, a simulated scenario is established for simulation training. The first consideration in establishing the scenario is whether the data collected by the wireless sensor is limited or unlimited.
[0037] In the first scenario, the data is assumed to be infinite, that is, only the random arrival of energy is considered. This makes sense in the scenario where there is always data to be sent. At the same time, the offline problem in this scenario becomes a convex problem. Here, offline means that the arrival of energy and channel state information in the entire sequence are completely known at the beginning. The SCS solver is used to find the numerical optimal solution of the offline problem and compare it with the algorithm execution result to judge the performance and feasibility of the algorithm. In the process of judging the algorithm, 10 environmental seeds are first randomly generated and fixed. It should be noted that these ten environmental seeds do not participate in the training of the model. In the process of training the model, each iteration, which contains five episodes, compares the difference between the solution of the current wireless sensor strategy in these 10 environmental seeds and the optimal solution, and plots it into a curve according to the number of iterations. At the same time, the greedy strategy and the proximal policy optimization algorithm (PPO) are used as the baseline of the algorithm performance for reference, such as Figure 3 This scenario also represents another practical application scenario, that is, the case where the data to be sent is infinite. Another purpose of simulating this scenario is to verify the feasibility and effectiveness of the algorithm, because when the amount of data is limited, the problem becomes a non-convex problem, and the scenarios are continuous, and it is impossible to give an offline optimal solution; in the scenario with infinite data, the problem is a convex problem, and the numerical optimal solution can be found; so first assume that the scenario data is infinite.
[0038] Then consider the second more realistic scenario, that is, the scenario with limited data. In this scenario, data and energy arrive randomly. The greedy strategy and PPO algorithm are used as baselines to verify the effectiveness of the algorithm. The experimental results are shown in Figure 4 As shown, the SAC algorithm initialization method makes the initial parameters of the algorithm larger. Since the environment accepts illegal actions and cuts them, and what is shown here is the actual data throughput rather than the real reward of the agent, the effect is similar to the greedy strategy.
[0039] According to the comparison of the curves in the two scenarios, the results show that the trained agent can achieve the goal of maximizing data throughput without knowing future information, and its performance in scenarios with infinite and limited data volume is better than that of the greedy algorithm, and is closer to the optimal solution for data transmission and energy allocation of wireless sensors.
[0040] During the implementation process, the problem is formulated as a Markov decision process, and then solved using the flexible actor-critic algorithm (SAC) method. Through some reinforcement learning techniques and careful design of the reward function, a strategy model is obtained. The final strategy can learn and optimize the energy usage strategy by tracking the specific energy, data size, and channel state information received in each time slot when the future information of energy, data, and channel state is unknown, so as to achieve better results.
[0041] A wireless sensor data transmission power control system, comprising: A data receiving node and a wireless sensor, wherein the wireless sensor includes a memory for storing data and a battery for storing electricity; A collection module, used to collect the remaining energy and data volume in the wireless sensor; A training module for acquiring wireless sensor data and training models. The training module is used to establish an optimization problem. The goal of the optimization problem is to maximize the amount of data transmitted by wireless sensors within a set time under the premise of energy sustainability. A Markov decision process is established for the optimization problem, and then the flexible actor-critic algorithm is used to solve the process.
[0042] The embodiments of the present application can be provided as methods or computer program products. Therefore, the present application can adopt the form of complete hardware embodiment, complete software embodiment, or the embodiment in combination with software and hardware. Moreover, the present application can adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0043] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0044] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0045] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0046] The above description is only a specific example of the present invention and does not constitute any limitation to the present invention. It is obvious that for professionals in this field, after understanding the content and principle of the present invention, various modifications and changes in form and details may be made without departing from the principle and structure of the present invention, but these modifications and changes based on the idea of the present invention are still within the scope of protection of the claims of the present invention.
Claims
1. A wireless sensor data transmission power control method, characterized in that: The steps include: Step 1: Setting a communication connection between a wireless sensor and a data receiving node, wherein the wireless sensor includes a storage module for data storage and a battery for energy storage; Step 2: The wireless sensor collects data information from the outside world and stores it in its own memory. At the same time, the wireless sensor also obtains energy from the outside world to charge the battery; Step 3: Calculate the amount of data and energy stored in the wireless sensor at set intervals; Step 4: Establish an optimization problem of data transmission and energy consumption, with the goal of maximizing the data transmission of wireless sensors within a set time under the premise of energy sustainability; Step 5: Formulate the optimization problem in step 4 as a Markov decision process, and then use the flexible actor-critic algorithm to solve the process to obtain the data transmission strategy of the wireless sensor at the current moment; Step 6: The wireless sensor executes the data transmission strategy and transmits data to the data receiving node.
2. According to claim 1, a wireless sensor data transmission power control method is characterized in that: The process of expressing the optimization problem as a Markov decision in step 5 includes the following steps: Step 51: Based on the Markov decision process, a model is built for the energy collection and data transmission process of the wireless sensor. The model is expressed as MDP M={S, A,P, R, γ}; S represents all possible states s contained in the state space; A represents all possible actions a contained in the action space; P represents the state transition probability, which is the probability that the wireless sensor will transition to the state st+1 after executing the action at in the state st at time t; R represents the set reward value; the parameter γ represents the discount factor, which is the importance attached to future rewards; Step 52: Building the Energy Harvesting Model , data collection model and data transfer models , and define the problem statement of wireless sensor data transmission strategy based on energy collection model, data collection model and data transmission model; The energy collection model represents the amount of electricity stored in the battery at the beginning of the current time slot i, the data collection model represents the amount of data stored in the wireless sensor at the beginning of the current time slot i, and the data transmission model represents the data transmission rate in time slot i; Step 53: Setting a reward function of a reward value R; Step 54: Setting the model algorithm based on the flexible actor-critic algorithm; Step 55: Building and training a model based on a model algorithm; Step 56: Run the model to obtain the data transmission strategy of the wireless sensor at the current moment, and control the output power of the transmission data of the wireless sensor.
3. A wireless sensor data transmission power control method according to claim 2, characterized in that: Step 52 Energy Harvesting Model Using the harvest-store-use (HSU) architecture, it is expressed as formula (1): (1) in is the energy harvesting model of the wireless sensor, which represents the power at the beginning of the current i-th time slot; is the energy consumed in the previous time slot i-1; is the wireless sensor transmission power of the previous time slot i-1; is the energy collected in the battery in the previous time slot i-1; The upper limit of the battery capacity of the wireless sensor.
4. A wireless sensor data transmission power control method according to claim 2, characterized in that: The data collection model in step 52 The harvest-store-use (HSU) architecture is adopted, which is expressed as formula (2): (2) in represents the amount of data stored in the wireless sensor storage module at the beginning of the current i-th time slot; The amount of data sent in the previous time slot i-1; is the transmission rate of the i-th time slot; The amount of data obtained for the i-1th time slot; The upper limit of the data cache capacity of the storage module.
5. A wireless sensor data transmission power control method according to claim 1, characterized in that: The data transmission model in step 52 , expressed as formula (3): (3) in, represents the data transmission rate in time slot i; represents the channel gain; represents the variance of the noise.
6. A wireless sensor data transmission power control method according to claim 2, characterized in that: The problem of wireless sensor data transmission strategy in step 52 can be expressed as formula (4): (4) in, represents the data transmission rate in time slot i; represents the channel gain; represents the variance of the noise; Indicates a time interval; N Represents a natural number.
7. A wireless sensor data transmission power control method according to claim 1, characterized in that: The reward function of the reward value R in the step 53 includes the single-step data transmission amount r1, the action energy exceeding limit penalty r2, the action data exceeding limit penalty r3 and the energy overflow penalty r4; wherein the single-step data transmission amount r1 represents the amount of data transmitted by the wireless sensor in a single-step action; the action energy exceeding limit penalty r2 is related to the distance between the action energy and the boundary value of the set energy range, and the action energy represents the energy consumed by the wireless sensor to transmit a set amount of data in the action; the action data exceeding limit penalty r3 is related to the amount of data transmitted by the wireless sensor in the action and the amount of data remaining in the cache; the energy overflow penalty r4 is related to the overflowed energy of the wireless sensor and the amount of untransmitted data stored by the wireless sensor when the energy overflows.
8. A wireless sensor data transmission power control method according to claim 2, characterized in that: In step 54, the model algorithm is set based on the flexible actor-critic algorithm, as shown in formula (9): (9) Among them, the content expressed by formula (9) is that the mean value of the constraint entropy is greater than Under the premise of maximizing expected return; represents the immediate reward for taking action at in state st; represents the mean of the cumulative returns obtained under strategy 𝜋; middle( s t ,a t ) ~ρ π Represents a state-action pair (st, at) taken from the state-action distribution , which means that we need to calculate the state-action distribution caused by the policy 𝜋 The mean of the negative log probability of the action is Indicates expected value; Indicated in strategy Next, the probability of choosing action at when in state st; is the set target value.
9. A wireless sensor data transmission power control method according to claim 8, characterized in that: Formula (9) is simplified by Lagrange multiplier method to obtain coefficients α The loss function is: (12) in, s t ∼ R Indicates that the state st is sampled from the experience replay pool R; It means that the action at is sampled from the policy π in the state st.
10. A wireless sensor data transmission power control system, characterized in that: include: A data receiving node and a wireless sensor, wherein the wireless sensor includes a memory for storing data and a battery for storing electricity; A collection module, used to collect the remaining energy and data volume in the wireless sensor; A training module for acquiring wireless sensor data and training models. The training module is used to establish an optimization problem. The goal of the optimization problem is to maximize the amount of data transmitted by wireless sensors within a set time under the premise of energy sustainability. A Markov decision process is established for the optimization problem, and then the flexible actor-critic algorithm is used to solve the process.
Citation Information
Patent Citations
Mobile sensor intelligent track design method based on sustainable data acquisition
CN113365222A
Information age minimization sensor power distribution method and system
CN117858188A
Space-air-ground integrated UAV-assisted IoT data collectioncollection method based on aoi
US20230239037A1
