Abstract
The development of modern vehicles equipped with various sensors and wireless communication has been the impetus for vehicular crowdsensing applications, which can be used to complete large-scale and complex social sensing tasks such as monitoring road surfaces condition. However, most of the sensing tasks are closely related with specific location and required to be performed in certain area, and in this article, we have proved these kind of location-based optimal task assignment to be an NP-hard (non-deterministic polynomial-time hard) problem. To solve this challenge, we first establish mathematical model of multi-vehicle collaborative task assignment problem, considering vehicle’s time budget constraint, location, and multiple requirements of sensing tasks. And we propose an approximation location-based task assignment mechanism for it, which is composed of two parts: the first part is to determine the allocating order among engaged vehicles and the second part is to schedule optimal sensing path for single vehicle, which in this article we propose an optimal sensing path scheduling algorithm to finish this task. Using Lingo software, we prove the efficiency of the proposed optimal sensing path scheduling algorithm. Extensive simulation results also demonstrate correctness and effectiveness of our approach.
Keywords
Introduction
By leveraging mobile vehicles as basic sensing units which cope through wireless network, vehicular crowdsensing is a new tool for pervasive information collection, sharing, and exploration, 1 which can be used to complete large-scale sensing application at a lower cost. Many large-scale sensing tasks, such as traffic network monitoring, need to collect large number of sensing data in order to get reliable result. Unfortunately, measuring traffic network from a limited number of observation points is not sufficient to capture all the details, especially at the fringes of network. 2 Thus, by outsourcing sensing task to the crowd of vehicles, such large-scale sensing activity can be performed at a societal scale, using numerous vehicles scattered over a wide geographic area, which can not only guarantee the quality of data collected but also reduce sensing cost.
Vehicular crowdsensing is a research branch of mobile crowdsensing, which not only utilizes vehicles but also mobile smart devices such as smartphones to perform sensing tasks. At present, research about mobile crowdsensing mainly focuses on the following aspects. (1) Crowdsensing systems built up to enable specific large-scale sensing task, such as network monitoring, cooperative localization, and environment monitoring.3,4 (2) Incentive mechanism. Since contributing sensing data consumes energy and bandwidth, mobile device often do not want to participate, thus it is essential to incentive mobile devices to provide sensing services.5,6 (3) Task assignment mechanism. Since mobile devices differ greatly in sensing and processing capabilities, it is important to assign appropriate tasks to individuals who can solve the problem properly according to the characteristics of the task. 7 Using an efficient task assignment mechanism, we can make full use of the capability of the masses. Moreover, to increase the quality of the results obtained through crowdsourcing, an accurate evaluation of the results of each task is required.8–12 (4) Reliable and privacy-preserving crowdsensing method. Due to the anonymity and low pay of mobile devices in crowdsourcing platforms, there may be concerns regarding reliability and privacy-preservation when using such platforms to deliver services. 13
In terms of sensing task assignment, since most sensing tasks are location dependent, it is important to consider both vehicles’ location and tasks’ required performing area. What’s more, since owners of vehicle have a limited time budget each day, he or she has limited capacity in performing the sensing task. Yang et al. 8 introduced the shifting method for unit disk model into task assignment problem, aiming at maximizing the utility of crowdsensing platform. In the above method, each sensing task was strictly allocated to one vehicle, which can reduce the cost of the platform. However, since there is no redundancy, the data collected may be unreliable. What’s more, the method only considered vehicles’ location as allocation factor, which is one-sided. He et al.9,10 took into account vehicles’ time budget and deployed redundancy to ensure reliability. However, they did not consider the characteristics of task, for example, quality demands of task, which is essential during allocation process.
In this article, we establish a location-based task assignment (LBTA) mechanism according to the characteristics of the location-dependent tasks and vehicles, aiming at maximizing the utility of crowdsensing platform. We consider the following three factors for allocation.
First, total traveling time of performing a set of sensing tasks which depends on both the location of vehicles and the required performing areas of a set of sensing tasks. Since each owner of vehicle has a time budget constraint, it is essential to consider both owner’s time budget constraint and total traveling time of a set of sensing tasks.
Second, the type of sensing task may also influence task allocation. In this article, we propose two types of tasks: compulsory tasks and original tasks, which will be described in detail later.
Finally, in order to ensure the completion quality of tasks, it is desirable to introduce redundancy by giving each task to several vehicles and aggregating the individual results by some fusion rules, that is, multiple vehicles may need to coordinate to perform the same sensing task.
Our contributions are three-folds:
We study the problem of location-based task allocation by taking into account the geographical characteristics of both sensing tasks and vehicles, quality requirements of tasks, and time budget constraint of owners of vehicles. We formulate the mathematical model of multi-vehicle collaborative task assignment problem considering the above allocation factors and prove that this task assignment problem is NP-hard (non-deterministic polynomial-time hard).
We propose an approximation mechanism called LBTA to solve the above problem, a heuristic algorithm composed of two parts: the first part is to determine the allocating order among engaged vehicles and the second part is to schedule optimal sensing path for single vehicle, which in this article we propose an optimal sensing path scheduling (OPS) algorithm to finish this task. In order to show the effectiveness of OPS algorithm, we compare the solution obtained by OPS with the solution obtained by exact algorithm, which in this article we use Lingo software. 14 The comparison shows that the solution obtained by OPS process is very close to the exact optimal solution.
We conduct extensive simulations, and the results demonstrate correctness and effectiveness of our approach.
The remaining of the article is organized as follows. We introduce the model in section “Modeling and problem formulation,” where we formulate the multi-vehicle collaborative task assignment problem. Then, we present an approximation algorithm LBTA in section “LBTA algorithm.” We report the results of our extensive simulations in section “Simulation evaluation” and conclude our work in section “Conclusion.”
Modeling and problem formulation
We consider a vehicular crowdsensing system, which consists of crowdsensing platform and several vehicles. Due to economical or geographical reasons, individuals with sensing tasks can publish their tasks in the platform and offer some incentives for those who complete these tasks. If the task needs to be completed in a certain geographical position, it is referred as a location-dependent task. In this article, we only discuss allocation scheme for location-dependent task.
Problem formulation
Individuals first publish their tasks in the platform. Then, available vehicles can register and claim for a list of interested tasks to perform. We denote the registered vehicle list as
Since we consider the geographical characteristics of sensing tasks, vehicles which are allocated sensing tasks need to travel to locations associated with these tasks. We refer to the series of tasks allocated to a certain
When planning optimal sensing path for each vehicle, we need to consider the following factors:
To guarantee the quality of each sensing
The type of sensing task may also influence sensing path planning. In this article, we propose two types of tasks: compulsory tasks and ordinary tasks.
We assume that the reward of the task publisher is ex-ante, that is, he or she has to submit the reward once the mobile vehicle starts to work on the task. Assume
Since vehicles have to travel to locations associated with assigned tasks, it is reasonable to assume that owner of
An illustrative example of this is given in Figure 1. In Figure 1, there are three sensing paths in different colors, and each one of them is assigned to a certain vehicle. The main purpose of this article is to plan sensing path for every mobile vehicle, aiming at maximizing the sum of utilities on these sensing paths.

An illustration of sensing path planning for three mobile users.
Modeling
According to the problem description in section “Problem formulation,” we formulate the location-dependent task assignment problem as follows.
Given an undirected weighted graph
Node in set S represents compulsory task, which means this task must be performed during its time window. Ordinary task is not that important as compulsory one, when vehicles do not have enough time to go through and perform all tasks, some ordinary tasks may be ignored, but the chosen ordinary tasks also need to be performed in their time windows.
For
where
For
Since
Suppose the starting node of
Based on the above definitions, we can define the overall utility of mobile sensing as follows
What’s more, since each
We cast the optimal sensing task assignment problem as the following integer program
We refer to this problem as the mobile vehicle-sensing utility maximization (MVSUM) problem.
The hardness of MVSUM
In this section, we will show that MVSUM is an NP-hard problem.
Theorem 1
MVSUM is NP-hard. Furthermore, for any
Proof
The hardness follows directly since the maximum coverage problem, 15 an NP-hard problem, is a special case of MVSUM. In other words, it means MVSUM can be degenerated to the maximum coverage problem. If MVSUM can be solved in polynomial time, then so does maximum coverage problem, which is a contradiction.
Since MVSUM is NP-hard, we need to focus on approximation algorithm based on greedy algorithm.
LBTA algorithm
Main algorithm flow of LBTA
Figure 2 presents the workflow of LBTA.

Dynamic target assignment workflow.
Before starting task allocation process, the platform needs to initialize system parameters including geographical locations of vehicles and sensing tasks, number of duplicates for each sensing task, and its corresponding score. After initialization, the platform generates order allocation among various vehicles and starts a round of task assignment. When it is vehicleu’s turn, the platform will plan a sensing path for that vehicle using OPS algorithm described in section “OPS based on single vehicle” and update the number of duplicates for each sensing task. If time and resources permit, the platform will generate a new order allocation for vehicles and starts a new round of assignment. If the present scheme is superior to older one, 16 the older one will be replaced. Repeat the above process until time and resources are out of limit, thus establishing a best assignment scheme at present.
OPS based on single vehicle
The algorithm can be described as follows.
1. Sort the order of compulsory nodes.
When sorting the order of compulsory nodes, we are trying to find a shortest possible route that visits each compulsory node exactly once and returns to the original node, which is a classical traveling salesman problem (TSP) and has been proved to be non-deterministic polynomial complete (NPC) problem. Thus, in this article, based on greedy criterion, we sort the order as follows.
Based on the current compulsory node, the platform traverses all non-visited compulsory nodes that are reachable from the current one and selects the nearest one as next node. The platform marks the current node as visited, moves on to the next node, and repeats the greedy strategy until all compulsory nodes have been marked as visited. According to that order, we also need to adjust time window constraint.
After the above process, we get a path
2. Insert other nodes into the path created in step 1.
First, we try to find a sensing plan for sub-path
In order to do node insertion into sub-path
Based on the above definition, we start insertion in backward order, that is, we first deal with node
According to the time window and time distance between nodes, we can get all the time adjacent neighborhood nodes of
Algorithm of OPS based on single vehicle.
An illustrative example
In this section, we give a simple example to illustrate how OPS works on a single vehicle. Eight sensing tasks correspond to eight nodes in Figure 3, and tasks 2 and 4 are compulsory nodes. Current vehicle’s time budget is set to be 40 min. Figure 3 represents the situation and related parameters of each node, and Table 2 represents the time distance between every pair of nodes.

Situation and related parameters of each node.
Time distance between every pair of nodes (minutes).
The exact solution
In this section, we select node 0 as the starting node. Since the computation scale in this case is not large, we can obtain the exact result by solving the integer linear programming using Lingo software. The exact optimal route is 0-3-1-2-5-7-4-0 with total income 840.
The OPS solution
First, we need to sort the compulsory nodes, which are nodes
The compulsory nodes divide path p into 3 sub-paths
The latest arrival time of
According to Table 1, the set of time adjacent neighborhoods of
By repeating the above process, we can get the complete route of
Comparison of above solutions
In this case, solutions obtained by OPS algorithm and Lingo software are the same, but the efficiency of the former algorithm is higher than the later one. This shows that the precise algorithm is suitable for small-scale, high-accuracy demand problem, while heuristic algorithm is suitable for large-scale, time-sensitive problem and can efficiently obtain suboptimal solution.
Simulation evaluation
In this section, we present performance evaluation studies to evaluate the performance of our approach (LBTA algorithm). The goal of the simulation study is to verify the effectiveness of our proposed LBTA algorithm. The simulation is based on MyEclipse development environment.
Simulation setup
In MyEclipse development environment, we set m vehicles and n sensing tasks distributed in a 15 km × 15 km region randomly. To simulate actual sensing task allocation process, first we set each vehicle’s time budget Tmax to be a random variable
Simulation parameters.
During the process of simulation, we conduct each class of experiment for 10 times and we select the average value of these results as final result. Since we make our target of allocation as maximizing the utility of platform, in next steps, we mainly focus on some factors affecting platform utility, which include vehicle’s time budget, number of vehicles, total amount of tasks, and proportion of tasks in different types. We define platform utility as
Results analysis
1. While the vehicle’s time budget constraint and the proportion of different types of tasks are fixed, we vary the number of sensing tasks n from 25 to 55, while the number of mobile vehicles m are fixed from 10 to 30, respectively. The platform utility obtained by LBTA for each scenario is recorded and the result is plotted in Figure 4.

Impact of number of sensing tasks and number of vehicles on platform utility.
Figure 4 shows that as the number of mobile vehicles increases, the corresponding platform utility also increases, given that the number of sensing tasks is 25. The reason is that mobile vehicles only conduct sensing tasks within their time budget constraint, so when the number of vehicles is relatively low, part of sensing tasks could not be executed. As the number of vehicles grows, the number of executed sensing tasks will also increase, which leads to overall promotion of platform utility.
When the number of vehicles remains unchanged, platform utility increases as the amount of sensing tasks gets larger. The reason is that, although the number of vehicles and the number of sensing tasks these vehicles are capable of executing remain unchanged, vehicles are more capable of choosing sensing task with higher reward, thus achieving higher platform utility.
2. While the vehicle’s time budget constraint and the number of vehicles are fixed, we vary the number of sensing tasks from 25 to 55, while the proportion of different types of sensing tasks are fixed to 1:3, 1:2, and 1:1, respectively. The platform utility obtained by LBTA for each scenario is recorded and the result is plotted in Figure 5.

Impact of proportion of different tasks on platform utility.
Compulsory task has to be completed, but its price may be lower than some ordinary tasks. Thus, more compulsory tasks result in lower platform utility.
3. When the number of vehicles and the proportion of different class of tasks are fixed, we vary the number of sensing tasks from 25 to 55, while time budget constraint of vehicles is fixed from 30 to 50, respectively. The platform utility obtained by LBTA for each scenario is recorded and the results are plotted in Figure 6.

Impact of time budget constraint on platform utility.
Clearly, as the vehicle’s time budget constraint increases, the total utility of the platform increases. This is because when the time budget is lower, the number of sensing tasks performed by the vehicles is lower as well. As the time budget grows, the number of performed sensing tasks will increase, and the corresponding platform utility grows too. Once the vehicle’s time budget is big enough, vehicles will be able to finish all sensing tasks, which achieves maximum of platform utility.
4. Platform utility obtained by LBTA versus utility obtained by greedy algorithm
Finally, we show the advantage of LBTA. Our proposed LBTA can deal with sensing task assignment problem with compulsory nodes, for which there is no such existing algorithm. Thus, we choose greedy algorithm for comparison. Greedy algorithm solves the task allocation problem for single vehicle greedily, which uses existing orienteering algorithm to allocate sensing tasks, and sensing task is strictly allocated to one vehicle.
We vary the number of sensing tasks n from 25 to 55, while the number of vehicles is fixed to 15, 20, and 25. We plot the result in Figure 7(a). And we vary the number of sensing tasks n from 50 to 100, while the number of vehicles is fixed to 20, and the proportion of compulsory tasks versus ordinary tasks is fixed to 1:3. The result is plotted in Figure 7(b).

(a) Platform utility obtained ratio from LBTA and greedy algorithm. (b) Compulsory task completion achieved by LBTA and greedy algorithm.
From Figure 7(a), it is clear that the platform utility obtained from LBTA is approximately the same as greedy algorithm. However, from Figure 7(b), as for the compulsory task completion ratio, greedy algorithm only accomplishes an average of 68.3%, while LBTA achieved 95.5% on average. This shows the significant advantage of LBTA over greedy algorithm.
Conclusion
In this article, we studied the problem of allocating location-dependent tasks in vehicular crowdsensing applications. We first introduce several allocation factors, which have not been considered in previous work. Then, we focus on the task allocation problem and show that the problem is NP-hard and propose an efficient algorithm, LBTA. Moreover, we provide an illustrative case to help explain the LBTA. Extensive simulation results prove the effectiveness of our proposed LBTA algorithm.
Footnotes
Academic Editor: Sangheon Pack
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Natural Science Foundation of China (nos 61302078 and 61372108) and Funds for Creative Research Groups of China (no. 61121061).
