Skip to main content

Advertisement

Log in

Time window-based online task assignment in mobile crowdsensing: Problems and algorithms

  • Published:
Peer-to-Peer Networking and Applications Aims and scope Submit manuscript

Abstract

Mobile crowdsensing (MCS) has been an effective sensing paradigm by exploiting the pervasive sensor-rich mobile devices for sensor data collection. Online task assignment is an important issue for mobile crowdsensing since tasks typically arrive dynamically and need to be handled in an online manner. In this paper, we study online task assignment for maximizing the total profit of the MCS platform while satisfying the time window requirement of each task. We first describe the crowdsensing model and then study the online task assignment in the following two different scenarios: (1) user-offline-arriving scenario, where all users are fully available throughout the whole sensing period and their movements are fully planned by the platform; (2) user-online-arriving scenario, where users arrive and depart dynamically and each user has a specific participatory time window for task executions. For the former scenario, we propose a benchmark algorithm and also an online heuristic algorithm. The benchmark algorithm tries to provide a best-case performance by assuming all future task arrival information is known in advance. The online algorithm adopts bipartite-matching-based strategy for task assignment and further performs minimal detour based data offloading for reducing the data upload cost, whenever possible. For the latter scenario, we propose an effective online algorithm, which adopts a maximum-profit-first strategy for task assignment and also minimal detour based data offloading for reduction of data upload cost whenever applicable. For all the proposed algorithms, we present their detailed design and deduce their time complexities. Extensive simulations are conducted and the results demonstrate that our proposed algorithms can largely increase the total profit of the platform as compared with existing work.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Algorithm 1.
Fig. 2
Algorithm 2
Fig. 3
Algorithm 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12
Fig. 13
Fig. 14
Fig. 15

Similar content being viewed by others

Data availability

Non Applicable.

Code availability

Available from the authors upon request.

Notes

  1. Note that the weights of edges in a bipartite graph are all calculated this way in later algorithms proposed in this paper, whenever applicable.

  2. In this paper, we focus on scenarios where the duration of a timeslot is quite long such that the mean number of task arrivals in a timeslot is much larger than one. In this case, the total number of timeslots will be much smaller than the (mean) total number of tasks (i.e., q <  < qn). Thus, the applicability condition for using counting sorting holds.

  3. This problem is also known as the pilgrimage to castrum problem, which can be briefly described as follows. There was a vendor, who worked at a bazaar. Each day he went to the bazaar from his home. But before reaching the bazaar, he always went first to a circular castrum to worship the statue of Apollo, which could be done at any boundary point of the castrum. The problem is thus to find a worship point which minimizes the total travel distance from his home to the worship point and then all way to the bazaar.

  4. It should be noted that, in the deduction of the complexity of the benchmark algorithm in the preceding subsection, we used n to represent the average number of tasks ending in a timeslot. Here, we use n to represent the average number of tasks arriving in a timeslot. The reason we can use n to represent both variables is because, in the long term, we have the average number of tasks arriving in a timeslot equals the average number of tasks ending in a timeslot. The reason is as follows. Since the value of T does not affect the conclusion, we here simply choose T = 0. Without loss of generality, the duration of a task is assumed to be uniformly chosen from {1, 2, …, k} timeslots and the number of tasks arrived in a slot is n, then the number of tasks ending in a slot is due to the contribution of its preceding k – 1 timeslots and also the current timeslot, each contributing an average number of (1/k)n tasks. Obviously, the expected total number of tasks ending in a slot is also n.

References

  1. Guo B, Wang Z, Yu Z, Wang Y, Yen NY, Huang R, Zhou X (2015) Mobile crowd sensing and computing: The review of an emerging human-powered sensing paradigm. ACM Comput Surv 48(1):1–31

  2. Liu Y, Kong L, Chen G (2019) Data-Oriented Mobile : A Comprehensive Survey. IEEE Commun Surv Tutorials 21(3):2849–2885 (third quarter)

    Article  Google Scholar 

  3. S. Hu, L. Su, H. Liu, H. Wang, and T. F. Abdelzaher (2015) SmartRoad: Smartphone-Based Crowd Sensing for Traffic Regulator Detection and Identification. ACM TOSN 11(4):1–27

  4. Dutta J, Gazi F, Roy S, Chowdhury C (2016) AirSense: Opportunistic crowd-sensing based air quality monitoring system for smart city, in Proc. IEEE Sensors 2016, pp. 1–3

  5. Zheng Y, Liu F, Hsieh H (2013) U-Air: When urban air quality inference meets big data, in Proc. 19th ACM SIGKDD Int. Conf. Knowl. Discovery Data Mining, pp. 1436–1444

  6. Aram S, Troiano A, Pasero E (2012) Environment sensing using smartphone, in Proc. IEEE Sensors Applications Symposium, pp. 1–4

  7. Yang Z, Shangguan L, Gu W, Zhou Z, Wu C, Liu Y (2014) Sherlock: Micro-Environment Sensing for Smartphones. IEEE Trans Parallel Distrib Syst 25(12):3295–3305

    Article  Google Scholar 

  8. Wu C, Yang Z, Liu Y (2015) Smartphones based crowdsourcing for indoor localization. IEEE Trans Mob Comput 14(2):444–457

    Article  Google Scholar 

  9. Gong W, Zhang B, Li C (2018) Task Assignment in Mobile Crowdsensing: Present and Future Directions. IEEE Network 32(4):100–107

    Article  Google Scholar 

  10. Peng S, Zhang B, Yan Y, Li C (2021) Time Window-based Online Task Assignment for Mobile Crowdsensing, in Proc. of IEEE ICC 2021, pp. 1–6

  11. He S, Shin D, Zhang J, Chen J (2014) Toward optimal allocation of location dependent tasks in crowdsensing, in Proc. of IEEE INFOCOM 2014, pp. 745–753

  12. Wang X, Jia R, Tian X, Gan X (2018) Dynamic task assignment in crowdsensing with location awareness and location diversity, in Proc. IEEE INFOCOM 2018, pp. 2420–2428

  13. Li H, Li T, Wang W, Wang Y (2019) Dynamic Participant Selection for Large-Scale Mobile Crowd Sensing. IEEE Trans Mob Comput 18(12):2842–2855

    Article  Google Scholar 

  14. Wang J, Wang F, Wang Y, Wang L, Qiu Z, Zhang D, Guo B, Lv Q (2020) HyTasker: Hybrid Task Allocation in Mobile Crowd Sensing. IEEE Trans Mob Comput 19(3):598–611

    Article  Google Scholar 

  15. Liu Y, Guo B, Chen C, Du H, Yu Z, Zhang D, Ma H (2019) FooDNet: Toward an Optimized Food Delivery Network Based on Spatial Crowdsourcing. IEEE Trans Mob Comput 18(6):1288–1301

    Article  Google Scholar 

  16. Yang Y, Liu W, Wang E, Wu J (2019) A Prediction-Based User Selection Framework for Heterogeneous Mobile CrowdSensing. IEEE Trans Mob Comput 18(11):2460–2473

    Article  Google Scholar 

  17. Yucel F, Yuksel M, Bulut E (2021) Coverage-aware Stable Task Assignment in Opportunistic Mobile Crowdsensing. IEEE Trans Veh Technol 70(4):3831–3845

    Article  Google Scholar 

  18. Wang L, Yu Z, Han Q, Guo B, Xiong H (2018) Multi-Objective Optimization Based Allocation of Heterogeneous Spatial Crowdsourcing Tasks. IEEE Trans Mob Comput 17(7):1637–1650

    Article  Google Scholar 

  19. Kang Y, Miao X, Liu K, Chen L, Liu Y (2015) Quality-aware online task assignment in mobile crowdsourcing, in Proceedings of IEEE MASS 2015, pp. 127–135

  20. Gong W, Zhang B, Li C (2019) Location-Based Online Task Assignment and Path Planning for Mobile Crowdsensing. IEEE Trans Veh Technol 68(2):1772–1783

    Article  Google Scholar 

  21. Li X, Zhang X (2021) Multi-Task Allocation Under Time Constraints in Mobile Crowdsensing. IEEE Trans Mob Comput 20(4):1494–1510

    Article  Google Scholar 

  22. Tao X, Song W (2021) Profit-Oriented Task Allocation for Mobile Crowdsensing with Worker Dynamics: Cooperative Offline Solution and Predictive Online Solution. IEEE Trans Mob Comput 20(8):2637–2653

    Article  Google Scholar 

  23. Xu J, Xiang J, Yang D (2015) Incentive Mechanisms for Time Window Dependent Tasks in Mobile Crowdsensing. IEEE Trans Wireless Commun 14(11):6353–6364

    Article  Google Scholar 

  24. Xu J, Fu J, Yang D, Xu L, Wang L, Li T (2017) FIMI: A Constant Frugal Incentive Mechanism for Time Window Coverage in Mobile Crowdsensing. J Comput Sci Technol 32(5):919–935

    Article  Google Scholar 

  25. Sun X, Yang X, Wang C, Wang J (2020) A Novel User Selection Strategy with Incentive Mechanism Based on Time Window in Mobile Crowdsensing. Discret Dyn Nat Soc. Article ID 2815073, 13. https://doi.org/10.1155/2020/2815073

  26. Hu T, Xiao M, Hu C, Gao G, Wang B (2017) A QoS-sensitive task assignment algorithm for mobile crowdsensing. Pervasive Mobile Comput 41:333–342

    Article  Google Scholar 

  27. Tao X, Song W (2019) Location-Dependent Task Allocation for Mobile Crowdsensing With Clustering Effect. IEEE Internet Things J 6(1):1029–1045

    Article  Google Scholar 

  28. Liu Y, Guo B, Wang Y, Wu W, Yu Z, Zhang D (2016) TaskMe: multi-task allocation in mobile crowd sensing, in Proc. of ACM UbiComp 2016, pp. 403–414

  29. Peng S, Gong W, Zhang B, Zhao Y, Li C (2020) AP-Assisted Online Task Assignment for Mobile Crowdsensing. Mob Netw Appl 25(5):1694–1707

    Article  Google Scholar 

  30. Zhang M, Yang P, Tian C, Tang S, Gao X, Wang B, Xiao F (2016) Quality-Aware Sensing Coverage in Budget-Constrained Mobile Crowdsensing Networks. IEEE Trans Veh Technol 65(9):7698–7707

    Article  Google Scholar 

  31. Wang E, Yang Y, Wu J, Liu W, Wang X (2018) An Efficient Prediction-Based User Recruitment for Mobile Crowdsensing. IEEE Trans Mobile Comput 17(1):16–28

    Article  Google Scholar 

  32. Munkres J (1957) Algorithms for the assignment and transportation problems. Soc Indust Appl Math 5(1):32–38

    Article  MathSciNet  MATH  Google Scholar 

Download references

Funding

This work was supported in part by the NSF of China under Grant No. 61872331, the Natural Sciences and Engineering Research Council (NSERC) of Canada (Discovery Grant RGPIN-2018–03792), and the InnovateNL SensorTECH Grant 5404–2061-101.

Author information

Authors and Affiliations

Authors

Contributions

Shuo Peng formulated the problems, designed the algorithms, did the simulation coding and debugging job, and prepared the original draft. Kun Liu involved part of the algorithms design and complexity deduction. Shiji Wang involved the writing, review, editing, and project administration. Yangxia Xiang involved the simulation software development and validation. Baoxian Zhang supervised this work, involved the writing, review, editing, and also funding acquisition. Cheng Li involved the writing, review, editing, and also funding acquisition.

Corresponding author

Correspondence to Baoxian Zhang.

Ethics declarations

Competing interests

The authors declare no competing interests.

Ethics approval

This work does not involve any work related to ethics.

Consent to publish

All authors consent to publication.

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendix

Appendix

Here, we describe how to find the point X leading to the minimal length of path A–X-B to resolve the pilgrimage to castrum problem.

A Cartesian coordinate system is first constructed (see Fig. 16). Given the user’s initial location (denoted by A), the user’s target location (denoted by B), and the circular castrum, which is centered at O and has a radius r, the problem is to find the point X leading to the minimal length of path A–X-B. Denote the coordinate of A as (xA, 0), the coordinate of B as (xB, yB). Denote ∠AOX as θ, ∠AOB as α. Then we have the coordinate of point X as (rcosθ, rsinθ).

Fig. 16
figure 16

Illustration for finding point X leading to minimal length of path A–X-B. In this figure, AMOX and BNOX

By using geometric methods, we can find the point X which leads to the minimal distance of path A–X-B satisfies ∠AXM = ∠BXN. Then we have tanAXM = tanBXN. So we have:

$$\frac{{x}_{A}cos\theta -r}{{x}_{A}sin\theta }=\frac{\sqrt{{x}_{B}^{2}+{y}_{B}^{2}} \mathrm{cos}\left(\alpha -\theta \right)-r}{\sqrt{{x}_{B}^{2}+{y}_{B}^{2}} \mathrm{sin}\left(\alpha -\theta \right)}.$$
(21)

Since cos(α-θ) = cosαcosθ + sinαsinθ and sin(α-θ) = sinαcosθcosαsinθ, we have:

$$\frac{{x}_{A}cos\theta -r}{{x}_{A}sin\theta }=\frac{{x}_{B}cos\theta +{y}_{B}sin\theta -r}{{y}_{B}cos\theta -{x}_{B}sin\theta }$$
(22)

Denote \(tan\frac{\theta }{2}=x\), then we have:

$$sin\theta =\frac{2x}{1+{x}^{2}}$$
(23)
$$cos\theta =\frac{1-{x}^{2}}{1+{x}^{2}}$$
(24)

Combine Eqs. (22), (23) and (24) together, we have:

$$\begin{aligned}&\left({x}_{A}+r\right){y}_{B}{x}^{4}+\left[{4x}_{A}{x}_{B}+2r({x}_{A}+{x}_{B})\right]{x}^{3}-{6x}_{A} {y}_{B}{x}^{2}\\&\qquad \ \ +\left[2r\left({x}_{A}+{x}_{B}\right)-{4x}_{A}{x}_{B}\right]x+\left({x}_{A}-r\right){y}_{B}=0\end{aligned}$$
(25)

Equation (25) is a quartic equation with unknown quantity x. By using some math tools (such as Matlab), the equation can be easily solved. Then we can get the value of θ (i.e., ∠AOX). Therefore, the coordinate of point X can be obtained.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Peng, S., Liu, K., Wang, S. et al. Time window-based online task assignment in mobile crowdsensing: Problems and algorithms. Peer-to-Peer Netw. Appl. 16, 1069–1087 (2023). https://doi.org/10.1007/s12083-023-01454-4

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s12083-023-01454-4

Keywords