Abstract

IoT-based smart agriculture plays a significant role in building a high-yield, sustainable, and intelligent modern agriculture. However, limited battery capacity and low-power processors of sensors cannot accommodate the exponential expansion of data from smart agriculture sensing terminals. To overcome the challenges, we introduced solar harvesting and multiaccess edge computing (MEC) to investigate sustainable monitoring of smart agriculture in solar-powered MEC-enabled WSNs. Considering the cyclical and day-night fluctuations of solar energy, we formulate a joint optimization problem for resource scheduling and computation offloading strategy to maximize the minimum weighted computation capacity across the time slots under solar energy constraints. To solve the mixed-integer nonlinear program (MINLP), we propose a multiply-iterated decoupling optimization algorithm by jointly optimizing a computation offloading strategy, energy provision of the solar-powered hybrid access point (HAP), and local CPU frequency as well as time scheduling. Simulation results show that the proposed algorithm can efficiently use solar energy to balance network calculations, improve network energy efficiency, and realize unmanned and sustainable agricultural WSN.

1. Introduction

1.1. Background

The flourishing development of IoT has brought new opportunities and challenges to modern agriculture, especially in precision agriculture and smart irrigation applications [1]. Wireless sensor networks (WSNs), as the sensing layer of IoT, can achieve comprehensive sensing and timely response to environmental status with their highly scalable and ubiquitous architecture, which can effectively assist the smart agriculture systems in maximizing yields and minimizing wastage [2]. However, the characteristics of sensors, including the low-power processor and energy-constrained battery, make it difficult to process complex tasks sustainably. It seriously affects the upgrade application of agriculture WSNs, especially in precision agriculture, where WSN not only needs to consume more energy to continuously monitor feature parameters, such as soil moisture, soil nutrients, crop growth, and pests, but also requires to pay more computation to process data and transmit commands with low latency [3]. Therefore, how to tackle the energy constraints and computation limitations of sensors simultaneously is a critical problem in the development of sustainable agriculture WSN.

Conventional sensors are powered by limited capacity batteries. Networks that prolong the network lifetime by regularly replacing batteries can result in significant maintenance costs and serious environmental pollution. To satisfy the energy requirements for comprehensive monitoring, existing research focuses on either open-source or cost-saving approaches [4]. Specific energy-efficient approaches for battery-constrained WSNs cover clustering-based schemes [5], node deployment strategies [6], node scheduling algorithms [7], energy-efficient routing schemes [8], and energy-efficient joint designs [9], all of which prolong the network lifetime at the expense of network performance and fail to inherently provide a sustainable energy supply to the network. Moreover, the deployment of batteries in soil and water quality monitoring applications is not allowed since it is necessary to prevent environmental damage caused by battery leakage or damage. Based on RF, wireless power transfer (WPT) technology can provide a continuous and controlled energy supply for sensors and effectively solve the energy constraint problem [10]. However, the existing wireless energy mainly derives from high-capacity batteries or the nearby power grid, which is problematic in agricultural applications due to the difficulty of introduction and high maintenance costs. Renewable environmental energy sources, such as solar energy, wind energy, thermal energy, and vibration, can provide a continuous, convenient, and clean energy supply for remote agriculture by virtue of their wide distribution and accessibility [11]. Solar energy, as the most popular ambient microenergy source, enjoys a higher power density (15 mW/cm2), greater geographic flexibility, easier installation, and periodicity available, making it particularly appropriate for the perpetual energy supply of nodes in agricultural WSNs [12].

To make up for the limited computing capacity of sensors, the majority of agricultural systems use cloud computing to process, analyse, and store large amounts of heterogeneous data through multiple network layers, which imposes a significant burden on the information and communication infrastructure, causing enormous energy costs and more significant information return latency [13]. It obviously fails to match the low latency requirements of precision agriculture with exponentially increasing monitoring tasks. The multiaccess edge computing (MEC) allows the sensors to offload intensive computations to nearby servers located at the edge of the radio access network, thus facilitating better performance than the cloud computing paradigm in terms of latency, effective bandwidth, energy consumption, and load balancing, which is considered to be a promising solution to enhance the computing capability of WSN [14]. Existing MEC research has mainly focused on networks that rely on limited batteries [15] or stable and controllable RF signals [16] for energy supply, achieving maximum computation rate [17], minimum energy consumption [18], and maximum energy efficiency [19] by jointly optimizing offloading decisions and resource allocation, which makes it difficult to apply in remote agricultural IoT with the requirement of unmanned, low-latency, comprehensive state monitoring. It is significant to build a solar-powered MEC green agricultural IoT to satisfy the requirements of smart agriculture for comprehensive sensing and real-time processing. However, due to the randomness and volatility of solar energy, research on energy-efficient offloading decisions and resource scheduling of MEC based on solar energy supply faces significant challenges.

1.2. Related Works

In MEC systems, it is essential to design efficient offloading decision and resource scheduling for improving network performance in terms of energy efficiency, spectral efficiency, latency, and lifetime [14]. Compared to single-user offloading [20], the multiuser offloading decision is more suitable for the smart agricultural IoT as it requires a combination of communication resources and collaboration between multiple users [18].

From the perspective of task features, there are two basic computation offloading decisions for MEC, such as binary and partial offloading [14]. Partial offloading allows a task to be partitioned into two parts, with one executed locally and the other offloaded for edge computing, which is mostly used for high-volume and complex tasks such as environmental monitoring and healthcare applications. Binary offloading requires a task to be executed as a whole packet either locally or offloaded to a remote MEC server, which is more suitable for applications with high relevance, such as anomaly detection. Research on binary and partial offloading is also abundant [16, 21, 22]. In [21], Zhou et al. investigated the optimal resource allocation for maximizing the network computation efficiency under the partial and binary offloading mode. Mao et al. [22] designed the online partial offloading and resource allocation algorithm to trade-off between energy efficiency and delay. In [16], Bi et al. proposed two efficient solution algorithms (such as the coordinate descent method and the ADMM-based method) to tackle the binary combinatorial computing mode selection. Partial offloading is a relaxed form of binary offloading from a mathematical point of view, which is simpler to compute since it eliminates the discrete random variables. However, in many practical scenarios, especially those suffering from timing characteristics, computing tasks may not be arbitrarily divisible; thus, the binary offloading will be considered in this work.

From the energy supply perspective, traditional MEC are powered by limited capacity batteries. Researchers have focused on proposing excellent offload decisions and resource allocation strategies that can reduce node energy consumption and prolong network lifetime, but this is limited. In [15], Xu et al. investigated the energy minimization task offloading and resource allocation for MEC in NOMA-HetNets under the constraints of QoS requirements. Literature [23] proposes a cooperative offloading technique based on the Lagrangian Suboptimal Convergent Computation Offloading Algorithm (LSCCOA) to minimize weighted sum of transmit power consumption. Considering the limitations and complexity of the integrated batteries in nodes, more and more scholars are focusing on introducing WPT to provide continuous and controlled energy supply for sensors sensing, forwarding, etc., thus improving network energy efficiency and prolonging network lifetime [24]. In a wireless powered multiuser MEC system, Literature [16] jointly optimized the binary offloading mode and the transmission time allocation to maximize the sum computation rate of all the devices. Literature [18] proposed a power minimized resource scheduling strategy by jointly optimizing downlink energy beamforming, uplink computation offloading, and local task execution at users. To enhance computation efficiency and prolong the network lifetime, Literature [17] jointly optimizes the allocation of the communication, computing, and energy resources with the aid of WPT in Full-Duplex (FD) mode. In [25], Li et al. proposed a joint user association and dynamic offloading scheme to enhance the computing capability and achieve sustainable device operation. Different from the works in [18] where channel state information (CSI) is assumed to be fixed, the authors in [26] consider a practical scenario with casual task state information (TSI) and CSI and propose a real-time resource allocation strategy to minimize the total system energy consumption. However, these studies are based on the continuous and stable energy transmitting power provided by high-capacity batteries or the nearby power grid, which is not suitable for the agricultural environment far from cities and complex terrain, so we need to find a more suitable energy source for agricultural WSNs. Given the stochastic and volatile nature of environmental energy, few existing studies on renewable energy-powered MEC are available. In [27], the multiuser energy consumption and computing resource minimization problem for hybrid renewable energy and grid supply is studied under energy harvesting and QoS constraints. Literature [28] investigated the decentralized partially observable offloading problem in the multiuser EH-enabled system, in which multiple IoT devices cooperate to maximize the network performance while meeting QoE requirements. Although MEC-based optimal offloading decisions and resource scheduling problems have been studied under conventional battery supply, WPT supply, and renewable energy access supply, all of these have failed to fully exploit both the periodic cleanliness of solar energy and the continuous controllability advantages of WPT through technological complementarity in MEC networks to meet the operational requirements of precision agricultural IoT.

1.3. Contributions

In this paper, we consider a solar-powered multinode MEC-enabled WSN system, as shown in Figure 1, where a solar-powered hybrid access point (HAP) integrated with a MEC server jointly recharges all sensors and computes the offloading task. Each sensor uses up the charged energy to make the optimal offloading decision given the system objective. In particular, we are interested in maximizing the minimum weighted system computation capacity as indicated by throughput across the time slots subject to the periodicity and day-night variability of solar energy. To our knowledge, this is the first paper that studies the optimal design in a multinode solar-WPT-powered MEC network using binary offloading strategy for agricultural WSN. Our contributions are detailed below. (1)We constructed a solar-powered multinode MEC-enabled agricultural WSN framework to achieve balanced system computation capacity, which is necessary for building efficient, clean, unmanned sustainable smart agriculture(2)We formulate a maximize the minimum weighted system throughput problem for Solar-Powered MEC-enabled WSN to determine the computation offloading strategy of each node in each time slot and the time trade-off between energy broadcast and transmission, which jointly optimize the energy provision of solar-powered HAP, multinode computation offloading strategy, and local CPU frequency as well as computing offloading time schedule(3)To solve the mixed-integer nonlinear program (MINLP), we propose a multiply-iterated decoupling optimization method. First, we initialize a computation offloading strategy to obtain a semiclosed-form solution for the optimal local CPU frequency and the optimal edge computation communication time allocation subject to a specific HAP energy provision. We then propose a low-complexity algorithm to compute the optimal solution for HAP energy provision and time allocation by using the dual and successive convex approximation (SCA) methods. Subsequently, we propose a coordinate descent (CD) method to update the previous computation offloading strategy and finally get the optimal solution of the model by several iterations of the loop

The rest of the paper is organized as follows. Section 2 introduces the system model and assumption. Section 3 formulates the maximize the minimum weighted system throughput problem for solar-powered MEC-enabled battery-free WSN. Section 4 presents the details of the multiply-iterated decoupling optimization method for the nonconvex problem mentioned above. Section 5 evaluates the simulation results, and Section 6 concludes the paper.

2. System Model and Assumption

We consider a solar-powered multinode MEC-enabled WSN system with perfect CSI as shown in Figure 2, where a solar-powered HAP integrated with a MEC server consistently harvests and stores solar energy with battery capacity , then employs WPT to charge a set of battery-free sensor nodes and compute offloading tasks. It is assumed that all channels are reciprocity and follow a quasistatic block fading model [29], in which the channel gain of a channel remains constant over a slot but varies between slots. Each node makes full use of recharged energy to perform environmental monitoring and task computing, which follows a binary offloading strategy, i.e., operating in either local computing or computation offloading at each slot. Local computing is where the sensor node performs the generated computing tasks by the on-chip microprocessor, which has low computing capability due to energy and size constraints. Computation offloading means that the sensor node offloads the entire task to the MEC server embedded in HAP with much more processing power, which provides cloud-like computation capability for WSN to realize the requirements of computationally intensive applications in precision agriculture. To achieve real-time state monitoring for smart agriculture, we need to guarantee that the network sensor nodes are in a full-time sensing state, which imposes greater requirements for better management of the HAP’s energy provision and offloading decisions of the network. This is illustrated in Figure 2.

2.1. Time Scheduling Model

Considering the periodicity and day-night variability of solar harvesting, we propose a time division computing offloading scheduling (TDCOS) to improve the system computation capacity and solar energy utilisation of each time slot. To avoid interference, we assume that HAP and its member nodes run on different frequencies. Each node adopts a half-duplex time mode to communication with a HAP and uses time division multiple access (TDMA) to achieve computation offloading to avoid cochannel interference. Consider a finite time horizon with a whole day as shown in Figure 3, which is divided into slots with duration . Let denote the set of the time slots . Each time slot is divided into the following two intervals: (1) energy broadcast time, where HAP charges all devices for a time simultaneously; (2) computing offloading time, where each node chooses to operate at either local computing or computing offloading based on the system throughput within a time slot; then, each offload node takes turns uploading tasks in their allocated time slots . In this case, task offloading can occupy the rest of the time slot after energy broadcasting of HAP, as shown in the following equation.

2.2. Energy Harvest Model

We consider a solar-powered HAP equipped with a solar panel of size and has a rechargeable battery with capacity , as shown in Figure 2. We assume that solar energy arriving at HAP follows the -state Markov chain model [30],where each state represents an EH profile expressed as a probability distribution with a given mean and variance . Specifically, letting represent the solar intensity on the HAP at time slot , the solar-harvested energy of HAP at slot can be expression by the following equation. where denotes the solar energy conversion rate of HAP. Within each time slot of period , the HAP converts the available energy at the start of time slot to charge all member nodes with wireless power transfer (WPT) and process tasks offloaded by some nodes on the MEC server, followed by storing the residual solar energy in the battery for the next slot. Let denote the transmitting power of HAP, which characterizes the antenna performance of HAP and is satisfied with . Here, denotes the energy consumption of HAP processing the tasks offloaded by nodes. Consequently, the available energy of HAP at the end of slot can be defined as the following equation. where the broadcast energy of HAP is constrained by as a result of the causal energy limitations. Also, to ensure proper monitoring at night within the constraints of day-night variability of solar-harvesting, we need to further constrain the lower limit of available energy for the HAP at any time slot as shown in the following equation.

For avoiding energy overflow, is limited by the capacity of the HAP battery , as shown in the following equation.

During the energy broadcasting phase, each member node harvests the wireless energy for task monitoring and offloading during the time slot. Let denote the channel gain from the HAP to node based on the Rayleigh fading model [31]. Ignoring interference from noise, we can get the charged energy of each node at slot , which can be expressed as the following equation. where denotes the energy-harvesting efficiency, which can be considered as a fixed value since the transmitting power is usually small in WSNs. In order to establish a sustainable agricultural WSN, we need the network to achieve energy neutral operation (ENO), which means the energy harvesting and consumption of HAP is balanced in one period. The mathematical expression is as in the following equation. where denotes the acceptable error range.

2.3. Computing Model

For each node, task computing can be performed locally or alternatively by offloading to the MEC server embedded in HAP. Here, we introduce the set of binary offloading variable , where denotes that the node decides to offload its computation task to the MEC server. Otherwise, . Based on the given computing offloading strategy, the detailed operation of each node is illustrated as follows.

2.3.1. Local Computing

When node makes the decision of local computing, it would perform the task computation independently of the others with the charged energy. Let indicate the number of CPU cycles required to complete a task with unit data size and denote the CPU frequency, which characterizes the computational power of the node and satisfies with . It is assumed that is the total throughout on local computing at the slot ; the corresponding energy consumption and computation latency can be calculated as shown in the Equations (8) and (9), respectively. where denotes energy consumption parameters, which depend on the chip architecture [32]. Notice that local computing can last for the entire time slot , since the energy charging and local computing can be done simultaneously based on the circuit as shown in Figure 2. Accordingly, the total local computing throughput are constrained by computation latency and energy consumption in the Equations (10) and (11), respectively.

2.3.2. Computing Offloading

Apart from local computing, each node needs to take turns using up the charged energy for offloading the entire task to the MEC server embedded in HAP, and downloading the computation results after MEC server has completed the task calculation when offloading decision . According to the Shannon theory [33], the available offload computing rate of node , denoted by , can be calculated by the following equation. where denotes the communication bandwidth and denotes the receiver noise power. Let denote the offloading transmitting power of node at time slot . The total throughput of each offload node in its allocated time can be calculated by the following equation.

After receiving the raw data of all the member nodes, the HAP computes and sends back the output result back to the corresponding node. Given that the calculation results at MEC are smaller and the downlink transmission rate is higher, the downlink energy consumption and latency can be ignored [34]. Thus, the energy consumption of computation offloading at the MEC server, denoted by, can be expressed as the following equation. where is the capacitance coefficient specified by the MEC server’s CPU architecture and is the CPU frequency of the HAP during each slot, which is fixed during the calculation cycle of the task by the DVFS technique [35].

3. Problem Formulation

In this subsection, we formulate a maximize the minimum weighted system computation problem for the solar-powered MEC-enabled battery-free WSN to determine the computation offloading strategy of each node in each time slot and the time trade-off between energy broadcast and transmission, which jointly optimize the multinode computation offloading strategy , the amount of energy provision by solar-powered HAP , and local CPU frequency , as well as computing offloading time scheduling . Here, we qualify the volume of network computation in terms of throughput. Accordingly, the weighted total throughput maximization problem is formulated as the following equation. where is a weight factor that accounts for the priorities of different nodes and is specified by the application layer. is the transmission power constraint which ensures that the transmission power of the HAP is nonnegative and bounded by the maximum transmission power depending on the system architecture. Battery capacity constraint ensures that the battery energy level of HAP is upper bounded by the battery capacity . Energy consumption constraint specifies that the energy consumption for broadcasting and computation offloading does not exceed the available energy of HAP at the start of the time slot, which can effectively guarantee the energy requirements for night-time network monitoring. is an energy neutral operation (ENO) constraint wherein the energy harvesting and consumption of HAP is balanced in one period. Time slot constraint specifies that all nodes need to accomplish energy charging and computational offloading within one time slot. indicates that the variables of offloading decision variables are 0-1 binary decision variables. The frequency constraint denotes that the local CPU frequency should be limited within a range of . indicates that the local computing time of the node cannot exceed the duration of a time slot. Due to the combinatorial nature of the multinode computing offloading strategy and its strong coupling with resource scheduling, problem (P0) is hard to tackle.

4. Joint Optimization Method

In this section, we introduce a joint optimization between resource scheduling and computation offloading strategy to maximize the minimum weighted system throughput for solar-powered MEC-enabled battery-free WSN. In response to this mixed-integer nonlinear program (MINLP), we propose a multiply-iterated decoupling optimization method, where we first initialize a computation offloading strategy to obtain a semiclosed-form solution for the optimal local CPU frequency and the optimal edge computation communication time allocation subject to a certain HAP energy provision. We then propose a low-complexity algorithm to compute the optimal solution for HAP energy provision and time allocation. Subsequently, we propose a coordinate descent (CD) method to update the previous computation offloading strategy and finally get the optimal solution of the model. Next, we propose a corresponding solution for each iteration.

4.1. Optimal Local Computing

In this subsection, we investigate the optimization of the local CPU computation frequency given the computation offload strategy. From problem (P0), it can be seen that independently optimizing the local CPU frequency does not affect the performance of other nodes when the is fixed. Combining Equations (8)–(11) and constraint , we can conclude by the following equation.

Note that the function is monotonically decreasing on the domain. Hence, we can obtain the optimal semiclosed solution for the local CPU frequency for each node, which is shown in the following equation.

To ensure that the network works properly, needs to be satisfied. By substituting into Equation (8), we can obtain the maximum local computing data volume by the following equation. where is a fixed parameter.

4.2. Joint Iterative Optimization of Broadcast Power and Transmission Time

In this subsection, we continue to study the optimal computation offloading resource scheduling with the assumption that is known and is fixed. Here, we first transform problem (P0) into problem (P1) by removing the variables and making formal transformations to the objective function, which can be formulated as the following equation.

To solve the problem (P1) for nodes with offloading decision, we need to adopt the iteration optimization algorithm for offloading time allocation and energy broadcast scheduling. Let and denote the set of variables related to offloading time and energy charging allocation for nodes in the -th iteration, respectively. Specifically, each iteration can be divided into two steps. Firstly, the optimal offloading time allocation of iteration is derived from the given value of . Then, with the fixed value of , the optimal energy broadcast scheduling is obtained. The iterative algorithm is repeated until it converges to stopping criterion ; then, we can obtain a closed-form solution for optimal offloading time allocation and energy broadcast scheduling for problem (P1). The criterion is specified by the total throughput variation value , which can be expressed by the following equation.

As shown in Algorithm 1, we need to solve problem (P2) and problem (P3) to obtain an optimal solution for offloading time allocation and energy broadcast scheduling, respectively. The problem P2 is shown as the following equation.

Obviously, problem (P2) is a convex problem, so we can introduce Lagrangian multipliers with constraints ~ to form a partial Lagrangian and achieve the optimal objective value by the strong duality, as is shown in the following equation.

The corresponding dual function can be calculated by the following equation.

According to KKT condition ,we can obtain the optimal which satisfies the following equation. where denotes the Lambert-W function and is satisfied with.

Then, the solution of the dual problem can be determined by a subgradient method as shown in Equations (33) and (34).

Here, . With the fixed value found above, Problem (P1) can be transformed into Problem (P3), which can be shown as Equation (35).

Obviously, Problem (P3) is a nonconvex problem because the second term of the objective function is a convex function. In order to solve this problem, we use the SCA approach [36] to propose the energy broadcast scheduling algorithm with logarithmic approximation. Instead of directly dealing with the highly nonconcave rate function, we apply the logarithmic approximation method to convert the throughput function into , which is shown in Equation (36). where and are the parameter variable in the SCA process, which can be calculated as seen in Equations (37) and (38), respectively. is the iteration number in the SCA process. denotes the low bound of the original throughput function , which is satisfied with .

Unfortunately, is still a nonconcave function owing to the existence of logarithmic function . Let ; then, the logarithmic function can be converted into a log-sum-exp function and the problem (P3) can be reformulated into a convex problem (P4), which is shown as Equation (39). where and . Utilizing Lagrangian duality, we propose the SCA-based power allocation algorithm based on the logarithmic approximation method. The Lagrangian duality of the problem is defined as Equation (40).

The corresponding dual function can be shown as Equation (41).

According to KKT condition , we can obtain the optimal which satisfies Equation (42). The solution of the dual problem can be determined by a subgradient method as shown in Equations (42) and (43).

By substituting energy broadcast scheduling and computation offloading time scheduling into , we can get the optimal solution of broadcast power and time by Equations (44) and (45), respectively.

Algorithm 1 shows the pseudocode of iterative optimisation with combination of SCA and Lagrangian dual theory for optimal resource scheduling.

Input: given a computation offloading strategy.
Output: the optimal to Problem (P2) given .
1Initialize and
2Repeat
3Calculate local CPU frequency according to Equation (25);
4Repeat
5Calculate edge offloading time allocation according to Equation (32);
6Update according to Equations (33)–(35);
7Until converges;
8Let
9Repeat
10Repeat
11Calculate energy provision according to Equation (43);
12Update , according to Equations (44)–(46);
13Until , converges;
14Repeat
15Calculate , according to Equations (39) and (40);
16Update number of iterations ;
17Until converges;
18Update outer loop iterations and tolerance
19Until
20Let
21Calculate the optimal energy broadcast power and corresponding time according to Equations (48) and (49)
22Return the optimal solution by
4.3. Coordinate Descent for Computing Mode Optimization

In this subsection, we introduce the coordinate descent (CD) method [37] to jointly optimize the binary decision variable , which can significantly lower the computational complexity and faster convergence by along the direction of only one variable at a time; see the pseudocode of Algorithm 2 for details. First, we initialize a binary decision variable in slot and denote as the computation offloading strategy at iteration, where the optimal system throughput can be solved by Algorithm 1. In order to find the optimal decision in each iteration, we switch the decision variables for each node in turn and calculate its system throughput gain in the iteration, which can be calculated by Equation (50). where denotes the switched computation offloading strategy with node and can be calculated by Equation (51). where denotes the modulo-2 summation operator. Obviously, denotes a better decision for node in iterations, and we need and vice versa. Therefore, the optimal decision under this iteration is obtained by comparing the selection of the best . Meanwhile, increases monotonically with the number of iterations and the optimal value is bounded, so the method can converge to the optimal value.

Input: initial computation offloading strategy.
Output: an approximate solution .
1Initialization:
2Repeat
3
4For each node do
5Calculate in Equation (20) using Algorithm 1
6End
7Let and;
8Update using Equation (51);
9Until
10Let and calculate the optimal resource scheduling
11Return the optimal computation offloading strategy to P1

Next, we consider the complexity of the proposed algorithm. Here, the complexity of the proposed algorithm is calculated based on the two stages. During the computation offloading strategy definition phase, the number of iterative updates for each strategy increases linearly with , and the complexity is , where is the number of nodes. In iteration optimization phases of and , the number of messages exchanged in each iteration which is equal to the total number of nodes with computational complexity is . Therefore, the overall complexity of the proposed algorithm is .

5. Results and Discussion

In this section, we evaluate the proposed algorithm for solar-powered agriculture WSN in terms of the system average throughput, energy efficiency, and relevant parameters against the existing All Local Computing, All Offloading, Algorithm [16], and Optimal. All Local Computing means the sensor uses the charged energy to process their tasks locally. All Offloading denotes that the sensor offloads all computing tasks to the MEC for processing. Algorithm [16] is presented to address maximizing the computation rate of all users for WPT-powered WSN by jointly optimizing the individual computing mode selection and the system transmission time allocation where it is assumed that HAP is well powered and the transmitting power is fixed. Optimal refers to finding the optimal mode and allocating energy employing exhaustive enumeration. All except Algorithm [16] use the same energy provision constraint as the proposed. The following firstly illustrates the simulation environment and then presents the simulation results.

5.1. Simulation Setup

We consider a coverage area of with total node number [5, 10, 15, 21, 25] for solar-powered multinode MEC-enabled agriculture WSN, which includes a HAP-integrated MEC and several sensor nodes randomly distributed. HAP are equipped with a solar panel, which has an energy-harvesting efficiency of 20%. Solar energy arrivals are calculated in a similar way to [30], which follows the hidden Markov model with four states, including excellent, good, fair, and poor. The distribution of each state has a mean of 94.6, 76.0, 45.6, and 17.9, and variance of 0.31, 1.55, 1.48, and 0.71, respectively. The HAP has a battery with a capacity of 10 kJ, and the maximum transmitting power is set to 5 W. All nodes recharge themselves with energy efficiency 0.51, and the parameter of computing efficiency is set 109. The local CPU frequency of each node is set ranging from 0.2 GHz to 2 GHz, and the CPU frequency of each MEC server is set as 4 GHz. The channel gain from the sensor node to HAP follows the Rayleigh fading channel model, where the path loss factor is set varying from 2.0 Hz to 3.5 Hz. The system bandwidth is set to 200 kHz, and the noise spectral density is set to -95 dB/Hz. The numerical experiments are performed by the Monte Carlo method as follows. All nodes are randomly distributed in the sensing area for 100 times, and the corresponding maximum throughput is calculated, which are probabilistically distributed by interval, and the number with the highest throughput value from the highest probability interval is selected as the optimal throughput of this network, and the corresponding offloading calculation decision and resource scheduling scheme is the best. All the simulations are performed on a desktop computer with an Intel Core i7-8700U 3.2 GHz CPU and 24 GB memory.

5.2. Performance for Network

To achieve sustainable monitoring for solar-powered agriculture WSNs, we propose a joint optimization method for resource scheduling and computation offloading strategy to maximize the minimum system throughput of each time slot during one period under the solar energy periodicity and volatility constraints. Figure 4 shows in detail the variation of system throughput over time and the system period energy efficiency under two different algorithms. Here, the period energy efficiency is defined as the ratio of network throughput to network energy consumption during one period, where the energy consumption mainly comes from the energy broadcast and the energy consumption of the MEC in HAP and can be measured as the solar-harvested of HAP, which can be expressed as Equation (50).

Figure 4 illustrates the variation of the system throughput over time under different weather conditions. It is obvious to observe that the system throughput of Algorithm [16] fluctuates significantly at different time slots within one period compared to the proposed, which can reach the maximum during the day but zero at night. This is because Algorithm [16] is designed to maximize the system computation rate with the assumption that the HAP is always energetic and that the transmit power is constant. This is clearly not applicable to highly volatile solar energy. Conversely, the proposed has a balanced throughput across time slots by maximizing the minimum one slot throughput to balance the energy broadcast by the HAP across time slots, which can achieve a rational energy allocation and storage during the day to ensure normal monitoring at night. Also, it is evident from Figure 4 that the proposed can achieve a higher system period energy efficiency than the Algorithm [16] by managing the broadcast power of harvested solar energy. Compared to rainy days, the system has higher throughput and energy efficiency on sunny days because it has more solar energy and its value varies less over time. More notably, the algorithm proposed in this paper has better stability in terms of throughput either over diurnal or climate change processes, which shows that it is more adaptable to real-time energy changes in the network.

Figure 5 shows the effect of different algorithms on the system average throughput during one period versus total node number for path loss factor . It is obvious that the proposed can achieve near-optimal performance and is superior to the other algorithms as the number of nodes increases. As more nodes are added gradually, the system average throughput of all the above algorithms increases, especially in the offload mode. But when the number of nodes is particularly large, the throughput in the offload mode drops abruptly. The reason for this is that when the number of nodes exceeds a threshold, wireless channel interference will increase, and this will lead to a reduction in offload link capacity. However, the local computing mode grows smoothly with the number of nodes due to the high independence of each node.

Figures 6(a) and 6(b) compare the effects of the path loss factor and the average distance between HAP and nodes on the system average throughput under different algorithms, respectively, where both and are important factors that affect the channel state. It can be seen from Figure 6(a) that, for a given , the average throughput of the above algorithms all suffer varying degrees of decline as the channel state deteriorates with increasing from 2 to 3.5. All Offloading is close to optimal performance when is small and drops significantly as increases, which is because task offloading suffers from both the energy broadcast downlink state and the data transmission uplink state. In contrast, local computation has a more moderate degradation due to its dependence on the downlink state only. Note that the Proposed is perfectly aligned with the optimal algorithm because it jointly optimizes energy scheduling and offloading strategy, which drives the network to choose more local computing to reduce losses as the channel state progressively deteriorates. In Figure 6(b), we compare the average throughput variation of systems with different algorithms when the average distance of HAP-to-nodes varies from 10 m to 50 m when . We observe that the throughput of the above methods decreases as the average distance increases, because the distance between HAP and nodes affects the channel gain , which affects the harvested energy of node and subsequently affects local throughput and computation offloading throughput , as in . Comparing Figures 6(a) and 6(b), we can observe that and have a similar effect on system throughput, as both and influence network throughput by regulating the channel state.

Finally, we investigated the effect of the local minimum local CPU frequency on the network average throughput under different algorithms in Figure 7, from which we can observe that as the minimum local CPU frequency gradually increases, the average throughput under all local computing is affected the most with a significant downward trend, with some impact under the proposed, but almost no impact under all offloading. This is because the increase of the minimum local CPU frequency can drive more nodes to choose offloading. It is interesting to note that when the minimum local CPU frequency gradually increases to a certain value, the throughput under proposed tends to under offloading. This is because all nodes of the network would choose the computation offloading when the minimum local CPU frequency is greater than a certain threshold.

6. Conclusions

This paper studied a real-time environmental monitoring system for solar-powered MEC-enabled smart agriculture. To alleviate the cyclical and day-night fluctuation influence of solar energy on network performance, we formulated a joint resource scheduling and computation offloading strategy optimization problem, which maximizes the minimum weighted computation capacity across the time slots by jointly optimizing the computation offloading strategy, energy provision of the solar-powered hybrid access point (HAP), local CPU frequency as well as time scheduling. Based on the coordinate descent method and successive convex approximation theory, we developed a multiply-iterated decoupling optimization algorithm to solve the strong coupling between binary offloading strategy, broadcast power, and time allocation. The simulation results demonstrate that the proposed algorithm outperforms in terms of energy efficiency and computational volume time slot balance and can better adapt to solar energy variations to meet the real-time status monitoring requirements of the smart agriculture IoT.

In order to further improve green energy utilization, future research can be extended as follows. First, the assumption of the solar harvesting rate in this paper is linear. In practice, it varies nonlinearly with the transmitting power, so it will be more relevant to examine the optimal offloading decision under the nonlinear harvesting conditions. Next, HAP broadcast power can be extended by using MIMO technology to reduce interference and improve energy utilization. In addition, NOMA-based protocols can be used instead of TDMA-based multinode task offloading to improve the network’s spectral efficiency. Finally, the long-term optimization model of network energy can be constructed by considering the time-varying nature of network energy state information, channel state information, and task state information.

Data Availability

The data are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was partially supported by the National Natural Science Foundation of China (NSFC) under Grant 62071179.