Abstract

Mobile crowdsensing (MCS) is a popular way of data collection, which forms the large-scale sensing system by smart mobile terminal users and provides multimodal sensor data. In the sensing scenario, there are various sense resource requirements of tasks released by the platform. One of the most urgent issues in MCS is how to choose corresponding users with appropriate sense resources to accomplish assigned tasks. In this article, cooperating among a host of users to perform sense tasks is considered. Firstly, the cooperation among users to accomplish the sense tasks is described as an overlapping coalition formation game (OCF game). In addition, an initial coalition method of using social networks (SN) is proposed to accelerate the formation of coalition. Finally, the cooperation degree is used to describe the cooperative relationships among users, and virtual terminal coalition formation (VTCF) algorithm is proposed to simplify the process of coalition formation. The simulated results show that the proposed approach effectively improves the system’s utility under the constraints of task cost and sense quality.

1. Introduction

With the development of Internet technology and the popularization of smart devices, diverse high-performance sensors have been embedded into smart terminals, which can monitor and collect surrounding data to promote the development of mobile crowdsensing (MCS). Many new applications have been developed based on smart terminal sensing, such as smart healthcare [1], environment sensing [2], traffic condition detection [3], news [4], and even social networks [5]. Generally, these applications can be divided into three types [6]: personal sense, group sense, and community sense [7]. The mobile crowdsensing, in which a certain number of users are encouraged to participate in smart terminal sensing, is applied to ensure the sense quality of applications.

A typical MCS framework consists of task requesters, sense platforms, and mobile users [812]. In MCS, the sense platform assigns tasks required by requesters to the users, and then the matched users complete the tasks through mobile terminals. Finally, users upload the sensed results to the platform. Users upload information collected by sensors to the sense platform via wireless communication technologies such as WIFI and cellular network [13]. With the development of 5G [14], SDN [15], D2D [16], and other communication technologies, the communication in MCS has become faster, and the communication performance has also been greatly improved.

While sensing and uploading data, users need to consume their resources, such as battery energy, computing, and communication. Therefore, unless users are rewarded for compensating for the resources they consume, they may not be interested in sensing tasks. If the platform cannot recruit enough users, then sense quality of the task could not be guaranteed, which will affect the service quality provided by the platform. Hence, some works have considered the incentive mechanism to motivate users participating in the sensing task for the MCS system. The mechanism [17] considers the potential contribution of reverse auction and maintaining existing users when participants recruit new users. The optimization goal is to optimize the composition of users in the system while reducing the system cost. By quantifying the reputation of users [18], an incentive mechanism based on local differential privacy is proposed, which includes four aspects: incentive, reputation, data disturbance, and data aggregation. The incentive mechanism can select users who can offer more accurate data and compensate users who have spent privacy costs. Simultaneously, the reputation mechanism quantifies the reputation of users to improve the benefits of users.

It is worth pointing out that, during choosing sense tasks, it is assumed that users will make independent decisions and do not know how their strategies affect the sense performance of each task in most literatures. Therefore, most users are likely to participate in a popular task, while other tasks distributed by the platform cannot recruit enough participants, which leads to uneven allocation of users’ resources and a decrease in sensing quality. When the platform releases complex tasks, the user’s limited sense resources may affect the completion of the task.

To prevent the problem of uneven resource allocation mentioned above, cooperating among users is considered. Through cooperation and information exchange, users can understand the specific circumstances of their selected tasks, making more intelligent resource allocation choices. Considering the selfishness and reasonability of users, the coalition game theory is considered as an appropriate method to describe users’ cooperation relationships [19]. However, most of the literatures using coalition formation game for user cooperation assume that one user can only join one coalition [20], which is not suitable for practical scenario. As each user can participate in multiple sense tasks in the MCS system, the coalitions for different sense tasks may be overlapped.

To tackle the issues discussed above, a novel incentive mechanism that uses social networks to recruit users for the MCS system is described. Users can cooperate through social networks to complete tasks released by the platform. In the process of coalition forming, the concept of cooperation degree inspired by the concept of trust degree [21] is proposed to describe cooperation relationships among users. The main contributions of this paper are summarized as follows:(1)The concept of cooperation degree in the MCS system is introduced to better describe cooperation relationships among users. When the user completes the task, the corresponding cooperation degree will be updated at once, which estimates the positivity of users taking part in the coalition.(2)To accelerate the formation of coalitions, a coalition initialization method based on SN according to the characteristics of users’ social networks is proposed, which makes coalition formation much faster.(3)The task allocation problem in MCS is described as an OCF game. To simplify the process of coalition formation, a virtual terminal coalition formation algorithm (VTCF algorithm) is proposed, which can transform an overlapping coalition problem into a nonoverlapping coalition formation one. Moreover, virtual terminals choose different coalitions to join and allocate sense resources to maximize the system utility. Through simulated experiments, the proposed and reported task allocation algorithms are evaluated and compared. Experimental results have verified the effectiveness of the proposed algorithm.

The rest of this paper is organized as follows. First of all, the related works are reviewed in Section 2; and then system models are described in Section 3. In Section 4, an OCF game is used to describe task assignment of MCS. A coalition initialization method based on SN and the VTCF algorithm are proposed to solve the forming of coalition and the utility of platform is evaluated. In Section 5, the proposed task allocation algorithm is simulated and the effectiveness of the proposed algorithm has been verified. In the end, the related works discussed in this paper are concluded in Section 6.

At present, some researchers have summarized the research work of task assignment [2226] and cooperation mechanism [2730] from different perspectives.

Usually, participants will not voluntarily participate in tasks provided by the sense system. Due to the selfishness of users, the appropriate task allocation and cooperation mechanism are very important to improve the performance of the system. The two complementary modes of opportunistic participation and participatory participation into a two-stage hybrid framework called HyTasker were proposed in [22]. In an offline stage, one group of users (called opportunistic users) is selected, and they complete MCS tasks in daily life. In an online stage, the other groups of users (called participatory users) is assigned; they are required to perform tasks that opportunistic users cannot accomplish. A task management framework called Spatial Recruiter to match staffs to perceptual tasks effectively was proposed in [23]. A greedy heuristic method is designed to select and allocate workers. An optimal incentive mechanism for service providers was studied in [24]. The two-stage Stackelberg game method was used to analyze the participation degree of mobile users and optimal incentive mechanisms of service providers by backward induction. In order to motivate the participants, an incentive mechanism was designed by taking the social network effect, which was from the underlying mobile social field, into consideration. An incentive mechanism algorithm of joint coverage and reputation based on Stackelberg game theory was developed in [25]. In the first place, location information and the historical reputation of mobile users were used to select optimal users, meeting the user’s requirements for information quality. Secondly, the two-stage Stackelberg game was employed to analyze the sense level of mobile users; in this way, an optimal incentive mechanism of the server center was obtained. Last but not least, the expectation maximization (EM) algorithm is used to evaluate the data quality of tasks, and the historical reputation of each user is updated accordingly. An incentive mechanism was proposed in [26], which first selected some users from online social networks as seeds and then social relationships among users were used to influence selection of potential candidates for task execution. The target was to maximize the number of recruiters and increase coverage based on the initial seed.

A smartphone collaborative sense system to encourage users to participate in sense tasks was considered in [27]. In the case of limited wireless channel resources, the authors therein discussed the incentive mechanism of cooperation and noncooperation and expressed the cooperation of users to complete tasks as overlapping coalitions forming game. Users maximize their own interests by choosing multiple coalitions to join and invest in wireless resources. Compared with noncooperative methods, the system performance will be improved if the cooperative method has been adopted. The cooperation between secondary users (SUs) in cognitive radio to improve sense performance and spectrum efficiency was discussed in [28]. Each SU makes its own cooperative sense decision according to its own business needs. SU’s cooperation was described as the formation of overlapping coalitions and proved the stability of the coalition structure. The cooperation strategy between roadside units (RSU) was studied in [29]. Through cooperation, the RSU can coordinate the data types transmitted to the vehicle through the vehicle-to-roadside (V2R) communication link. This solution used the underlying content-sharing V2R communication network increased the diversity of information circulation in the network. Compared with the noncooperative situation, the average rate of return has been improved. A strategy based on a genetic algorithm approach was proposed to achieve optimal collaborative learning groups and the system performance in [30].

3. System Model

In this section, the MCS system model is given, which is composed of a service platform, a wireless base station (BS), and some users carrying smart terminals, as shown in Figure 1. In the system, the sensing platform publicizes sense tasks, and the set of sense tasks is denoted by . The set of smartphone users is denoted by . To simplify the model analysis, it is assumed that a user has only one mobile terminal. The concept of the terminal is equivalent to the user in the subsequent sections. mobile terminal users form a social network, represented by graph ; in a , the vertex represents a user on the social network and connects with other users through undirected edges; and the edge stands for the communication from its source user to its direct destination user. The weight of the edge indicates the degree of cooperation between the mobile users and is expressed as . If the value of the cooperation degree is larger, it means that the cooperation relationship is more positive.

It is supposed that a mobile terminal user has at most types of sense resources and there are kinds of sense resources in the MCS system; each user is associated with sense resource , which is a set of sense resources owned by user , denoted as ; for example, the user has three kinds of sense resources: . Sense cost of sense resources represents the cost of user providing sense resources . expresses the total cost of user providing all sense resources. Neighbor is the set of social neighbors of user , where , and user is the neighbor of user ; for example, the neighbor set of user 1 is as shown in Figure 1. Sense quality of sense resources expresses sense quality of user providing sense resource . The larger value of means stronger sense ability of user .

Task is denoted by . expresses a group of sense resources required for task . represents the quality requirements of sense resources for task . represents the budget of task . expresses the revenue of task , and expresses the amount of computation required to execute task . It is supposed that a task always requires multiple users with different sense resources to cooperate with each other. Each user can freely allocate sense resources among these tasks. An matrix represents resource allocation, in which denotes that user provides the -th resource for task . Resources of the terminal are limited as

The utility function of the certain task, which is a function of terminal sense cost and task budget, is used to evaluate the performance of accomplishing each task. The set of users participating in task is denoted as . The utility function of task is given bywhere , is the number of sense resources all users actually provided for task , and is the completion rate of task . When the user completes the sense task, the cost usually includes consumption of battery energy and computing resources [31]. When the user performs sense task, the consumption of computing resources and battery energy can be expressed as and . Let denote the computing capability of terminal in terms of CPU cycles/s. If user provides sense resource to execute sense task , the task completion time is , where represents the amount of computation required to provide sense resource [32], where .

To calculate the energy consumption of the terminal performing tasks, the energy consumption model widely used for each computing cycle [33], where is the energy coefficient depending on the chip structure and is the CPU frequency. Therefore, the energy consumption of terminal when providing resource is calculated as

Therefore, the total cost of user participating in task to provide resource is

Considering all tasks of the platform, the utility function of the platform is given by the following formula:

If users consume their resources without getting any benefits from the sensing platform, they will not be willing to participate in the task. To encourage users to participate in the task and ensure the quality of task completion, an incentive mechanism is designed in which users will be rewarded in the platform according to their contributions to the task. The total revenue of user can be defined aswhere represents the benefit of user from task . The total benefit for user can be described as , where is an incentive factor. Because the benefits of users from different tasks are different due to the resources invested in the task and the utility of task, the resource allocation among tasks is significant to maximize their benefits and improve the platform’s performance.

3.1. Centralized Case

Note that users are not willing to participate in tasks without pay. Therefore, the platform needs to reward the contribution of users, which is often called an incentive mechanism. For an existing MCS system, the platform provides an incentive mechanism, while users try to get maximum profits from the platform. The centralized case represented the upper bound of the system sense performance [27], where users are fully scheduled by the platform. In the centralized case, users are forced to participate in the task without any reward. The platform determines how users participate in the task. This example describes the upper bound of the system’s sense performance, which does not exist in practice because users are unwilling to participate in tasks without any reward.

Given the constraints in (1), the utility of platform in centralized case is

This is a 0-1 integer nonlinear programming (INLP) problem, which can be solved by optimization algorithm [34].

3.2. Cooperative Approach

The resource allocation problem of the terminals can be modeled as an OCF game. The terminal has the right to determine the resources allocated to each task. In this scenario, it is supposed that a coalition corresponds to a task and the members of the coalition complete relevant sensing task in the OCF game. Moreover, the members of the coalition can allocate sense resources for different tasks. Based on the OCF game model, the overlapping coalition formation algorithm is suitable for multiterminal sense resource allocation. The algorithm can converge to a stable overlapping coalition structure (OCS), improving overall sense performance. The coalition for completing the task can be described as the coalition members and the allocation resources of members.

Definition 1. The sense resource allocation problem of terminal is modeled as OCF game, which is expressed as , where represents the set of terminals and represents the coalition value; the coalition value of coalition is defined asTo represent the cooperation behavior among terminals, the cooperation degree between the terminals and is described as . The cooperation degree of the coalition is represented by . Assuming that the cooperation degree among all terminals with cooperation relationships is initialized with the same initial value , among them, the cooperation degree of coalition member is expressed aswhere is the income of all users participating in task and represents the number of sense resources contributed by terminal to the coalition. The update of cooperation degree among users will be introduced in the third part of Section 4.
In OCF game model, the coalition structure is a set of the total coalitions for accomplishing all tasks and is denoted as . Each task corresponds to a coalition. Therefore, the size of the coalition structure is fixed, which is equal to .
When a coalition completes the task, it can be called an effective coalition. The set of effective coalitions is called an effective coalition structure (ECS). In the process of coalition formation, on the one hand, terminal resource allocation needs to maximize the cooperation degree of coalition. On the other hand, it needs to form the coalition with the most significant coalition value. The sense resource allocation problem of all terminals can be formed as the following optimization problem:where are scale factors, satisfying and represents the sense quality requirement of sense resource in coalition . The goal is constrained by three equations: means that the sense resources provided by the terminal must satisfy sense resources required by sense task , , means that the quality of the sense resources provided by terminal is not lower than the quality of sense resources required by the task, and means that cost of coalition to complete the task does not exceed the budget of the task.
Usually, the coalition pays users a certain reward in some form according to its resource allocation. Hence, a reasonable method of income distribution is very crucial to motivate them to join a coalition. In the OCF game model, the return is a finite vector, expressed by . is the revenue of coalition . In the proposed OCF game, it is assumed that the total profits of the coalition are affected by the participating degree of coalition members. The coalition will offer rewards to its members. For terminal , the revenue of terminal from coalition is defined as follows:where represents the resources provided by terminal for coalition and represents total resources provided by terminal for coalition . With the revenue that terminal obtained from coalition , the terminal ’s total revenue from the platform is

4. Virtual Terminal Coalition Formation (VTCF) Game

Since one coalition corresponds to one task, one terminal can participate in multiple tasks to make full use of the terminal’s resources. Based on distributed social networks, in this section, the coalition forming methods are proposed, where the terminal’s sense cost, sense quality, and the degree of cooperation between terminals are considered to be used to comprehensively express preference relationships in the process of dynamic coalition formation.

4.1. Virtual Terminal

To solve the problem of overlapping coalition formation in an uncertain distributed environment, the concept of the virtual terminal is introduced to reduce the complexity in the overlapping coalition formation process, which is inspired by the concept of virtual auctioneer proposed in [35]. In the actual application of the Internet of things, a terminal usually has multiple sense capabilities. For instance, in the application of air quality monitoring, a terminal can collect , and other gas concentrations at the same time. A terminal with multiple sense capabilities is virtualized into multiple virtual terminals. Each virtual terminal has only one sense capability. For example, terminal has a sense capability set , which can be replaced by three virtual terminals , and each virtual terminal has only one sense capability. In this case, each virtual terminal uses distributed mobility to form a coalition structure. A terminal can participate in multiple tasks in the coalition structure, while a virtual terminal can only participate in one task. Therefore, overlapping coalition formation is simplified as the problem of nonoverlapping coalition formation, if the concept of the virtual terminal is adopted.

In social networks, each terminal can participate in multiple tasks, which leads to the overlapping coalitions. According to the characteristics of the coalition, the virtual terminal coalition form (VTCF) game is described. The terminal can join multiple coalitions at the same time, while the virtual terminal can only join one coalition. A multisense ability terminal is replaced by multiple virtual terminals with single-sense ability. The virtual terminal participates in the allocation of sense resources. The virtual terminal of terminal is represented by . When , it indicates that the virtual terminal has sense resources. A distributed coalition formation model for terminals in social networks to ensure convergence is built, which adopts three mobile strategies, exiting, joining, and switching, to form a virtual terminal coalition structure.

4.2. VTCF Algorithm Design

In this section, the resource allocation problem is modeled as the formation of the virtual terminal coalition, in which the virtual terminal participates in the resource allocation process. In the overlapping coalition game, the terminal is willing to cooperate to form a coalition for higher return. The virtual terminal can form a nonoverlapped coalition to complete corresponding tasks. However, each terminal has a variety of sensing capabilities, causing different tasks. As a result, it is natural to use overlapping coalitions to form a game to simulate resource allocation of terminals with multiple sense capabilities.

In the OCF game, participants form overlapping coalitions to improve the degree of cooperation and coalition value. To improve the cooperation degree of the system, each cooperative terminal can participate in multiple coalitions by using multiple sense capabilities. In this way, terminals form overlapping coalitions to maximize system utility. The introduction of a single-sense virtual terminal instead of a multisense terminal can effectively reduce the complexity of the overlapping coalition formation process. The coalition formation game for resource allocation is represented by the set of . is a group of cooperative terminals, and each terminal can be virtualized into multiple virtual terminals. Sense resource owned by all terminals is . For task allocation, each virtual terminal only participates in one task, and the number of coalitions for each terminal participating is up to . In the coalition formation game model, all terminals work together to increase the value of . The game can be regarded as a VTCF game. The main feature of the game is that each virtual terminal can join a coalition.

As each virtual terminal contributes a kind of sensing resources and can join different coalitions, the set of virtual terminals to form the coalition is described as . The supporter of coalition is denoted as . Coalition structure is expressed as . As some terminals prefer to be idle in later tasks, they may not contribute sense resources. is used to express the virtual terminal coalition that does not participate in any task. The number of coalitions is equal to .

To evaluate the performance of each finished task, the utility function of the virtual terminal is written as

The total cost of all virtual terminals is expressed as . For each coalition structure, the total resource allocation of each terminal in each coalition does not exceed its own capacity, as shown in the following equation:

The cooperation degree obtained by the terminal from different tasks is determined by sensing resources invested in the task and cooperation utility completing the task. Considering coalition value and cooperation degree, the system utility is shown as

It is very vital for the terminal to update a new coalition cooperation degree for maximizing the utility of platform. During the terminal executing the task, the update formula of cooperation degree is given as

The variation of cooperation degree between terminals and can be expressed as

is the number of terminals connecting to terminal in the graph.

From (9), (16), and (17), the update formula of cooperation degree of terminal can be obtained as

4.2.1. The Formation of Initial Coalition Structure

Because the terminal is in social network, the theory of graph search can be used to study the generation of initial coalition structure. This section proposes searching for initial coalition members based on SN, as shown in Figure 2. Task initiator initiates coalition request and negotiates with its directly connected firstly to form a coalition. If sense resources contributed by negotiated coalition still cannot satisfy sense resources required by the task, then negotiate with ’s acquaintance to form a coalition. In a large-scale coalition, if the sense cost of existing members is higher than the sense cost of the current member to be negotiated during the negotiation process, the assigned sense resource for the task will be updated, and the process will be repeated until the task requirements are met.

The social network-based coalition initialization method (SN-CI) is described in Algorithm 1. Starting from the task initiator to search for the virtual terminal set and sense resource set that satisfy sense resource required by task (Steps 6–12), if the sense resources of task cannot meet the needs of the task, SN is used to find the neighbors of terminal to complete the task (Steps 13–31), where means that the first terminal in queue is taken out. If sense resource contributed by terminal can just be satisfied by neighbor of terminal (Step 17), the cost of neighbor providing resource is lower than the cost of resource contributed by terminal . Sense quality requirements are met, and then is replaced in the original virtual terminal set with (Step 19). Resource in the resource set of can no longer be used in other tasks, so it is deleted from the queue (Step 20). The resource set that previously removed resource must readd resource (Step 21); otherwise, resource is directly added to (Steps 23–27). means adding ’s neighbors to queue . The entire social network can be used until all resource requirements of task are met (Steps 28-29). Finally, a coalition structure containing all virtual terminal coalition sets is obtained.

(1)Input:
(2)Output: coalition structure
(3)
(4)fordo
(5);
(6)fordo
(7)  ifthen
(8)   ;
(9)   ;
(10)   .
(11)  end if
(12)end for
(13);
(14)whiledo
(15)  ;
(16)  fordo
(17)   ifthen
(18)    ifthen
(19)     ;
(20)     ;
(21)     .
(22)    end if
(23)   else ifthen
(24)    ;
(25)    ;
(26)    .
(27)   end if
(28)   ;
(29)   .
(30)  end for
(31)end while
(32)ifthen
(33)  .
(34)end if
(35)end for
(36)return:.

Different coalition structures may lead to different system utility. To maximize the utility of the system, it is necessary to find the best coalition structure.

4.2.2. Virtual Terminal Joining, Exiting, and Switching

The critical mechanism of coalition formation is to enable virtual terminals to leave or join the coalition according to specified preferences. In particular, each virtual terminal must compare and rank its potential coalitions based on its preferences. Here, the preference order for any virtual terminal is defined below.

Definition 2. (preference order). For any virtual terminal , two coalition structures for completing tasks are given. For any virtual terminal , indicates that prefers to . Since the preference order depends on the system utility, the preference order for the virtual terminal is defined as follows:According to Definition 2, the utility of the coalition structure increases, and the virtual terminal will choose this coalition structure. This preference order guarantees a comprehensive increment in the degree of cooperation and platform utility during the formation of the coalition. Using our proposed preference order, the coalition structure can reach stability with a limited number of iterations during its coalition formation.
During the formation of coalition, the virtual terminal decides to join or leave the coalition according to the order of preference. Three-movement rules are defined for possible movement directions of the virtual terminal. Firstly, the virtual terminal exits from the current coalition and enters an idle coalition. Secondly, the virtual terminal leaves an idle coalition and enters any other coalition. Thirdly, the virtual terminal transfers from its existing coalition to a nonidle coalition. Virtual terminals can form different coalition structures with these operations.

Definition 3. (exiting rule). It is assumed that the virtual terminals and . If , then leaves coalition , and then coalition structure becomes the coalition structure . The new coalition structure is .
According to Definition 3, if system utility of this newly formed coalition structure is better than that of current coalition structure, the virtual terminal leaves the current coalition to join the idle coalition , and becomes . This situation occurs because of virtual terminal , which may have a negative coalition effect. Therefore, may be more willing to leave coalition to avoid negative benefits. That is, is unfriendly, and no other terminal is willing to form a coalition with it.

Definition 4. (joining rule). It is assumed that the virtual terminals and . If and join coalition , the coalition structure becomes , and the new coalition structure is .
Based on Definition 4, does not initially belong to coalition in the coalition structure . It is assumed that the virtual terminal , which does not participate in the sensing task, leaves the current idle coalition and joins coalition . The current coalition structure becomes a new coalition structure . If the coalition structure is better than for virtual terminal , according to equation (19), joins the coalition and current coalition structure is replaced by . Only when the terminal’s actions improve the effectiveness of the coalition structure will the virtual terminal join a new coalition.

Definition 5. (switching rule). It is assumed that the virtual terminal and . If , is transferred from coalition to coalition and coalition structure becomes . The new coalition structure is .
According to Definition 5, when a new coalition structure is better than the current coalition structure, is transferred from the coalition where it was to the new coalition. Switching rules balance scale of different coalitions and improve the utilization of resources. During the formation of the coalition structure, one task can be selected by many virtual terminals, and one virtual terminal can select multiple tasks. When the virtual terminal finds that it can improve its system utility by transferring from coalition to , it will execute the switch rules. In this way, can allocate their sense resources to different coalitions autonomously, and the utility of the system will be improved.

Definition 6. If, for any , there are and , where will not leave coalition and will not join other coalitions, then the coalition structure of a group of virtual terminals is stable. That is, Nash equilibrium is reached.
According to Definition 6, for a virtual terminal in a stable coalition structure, it will not leave any coalition and will not join any new coalition. Therefore, all virtual terminals will stay in the current coalition, and no changes will be made.

4.2.3. VTCF Algorithm

To achieve a stable coalition structure, the VTCF algorithm is proposed, as shown in Algorithm 2, which is a distributed algorithm and is executed by each . In Algorithm 2, forms a coalition according to three moving rules. At the beginning of each iteration, is randomly selected from feasible coalitions. Assuming that leaves current coalition and forms a new coalition structure (Step 7), judge whether current coalition structure is a valid coalition structure (Step 8). If so, using based on equations (8) and (15), calculate the system utility value of coalition structure (Step 9). Similarly, the joining rule and the switching rule can generate a potential new coalition structure. The values of coalition structures and are calculated by equations (8)) and (15) (Steps 15 and 22), respectively. If the coalition structure produced by the roll-out operation is better than the current coalition structure, the coalition structure is updated (Step 11). Similarly, considers joining rules (Step 14) as well as switching rules (Step 21) and updates the system utility value of the coalition structure. When a task is completed, the degree of cooperation is updating between terminals (Step 27) through equation (18). repeats the coalition formation process until all will not deviate from current coalition or join other new coalitions (Step 29). In other words, the process converges to a stable coalition structure.

(1)Initialization stage:
(2)Virtual terminal forms an initial coalition based on Algorithm 1
(3)Coalition formation Stage:
(4)repeat
(5)fordo
(6) randomly selects from idle coalition;
(7);
(8)if is a ECS then
(9)  calculates ;
(10)  ifthen
(11)   ;
(12)  end if
(13)end if
(14)if is a ECS then
(15)  calculates ;
(16)  ifthen
(17)   ;
(18)  end if
(19)end if
(20);
(21)if is a ECS then
(22)  calculates ;
(23)  ifthen
(24)   ;
(25)  end if
(26)end if
(27) update cooperation degree according to equation (18);
(28)end for
(29)until the coalition converges to the final Nash-stable

Theorem 1. After a finite number of iterations, the proposed VTCF algorithm converges to a stable coalition structure.

Proof. Assume that the numbers of terminals and sense resource types owned by terminals are limited and there are structural restrictions among terminals. The number of possible coalition structures must be less than . When the VTCF algorithm is executed, the coalition formation process involves a series of movements of the virtual terminal, which leads to the generation of a series of coalition structures , where is the total number of movements of virtual terminal. According to equations (10) and (15), a new coalition structure with higher system utility is formed after each virtual terminal moves. In addition, the number of possible coalition structures is limited. Therefore, is a finite number. The contradiction proof method is used to prove that if is final coalition structure after last virtual terminal movement, then it must be stable. Assuming that is unstable, according to Definition 6, the existence of causes to deviate from its current coalition or join a new coalition. Therefore, according to the proposed virtual terminal coalition formation algorithm, will join, exit, or transfer operations, and coalition structure will become a new coalition structure. This contradicts the fact that is the final coalition structure. Therefore, is a stable coalition structure. Therefore, after a limited number of iterations, the proposed VTCF algorithm enables to achieve a stable coalition structure.
In the coalition formation process of Algorithm 2, each seeks to improve value of coalition structure. After each iteration, the movement of leads to a new coalition structure . Therefore, whenever the coalition structure changes, more excellent system utility is obtained, and can adaptively change their cooperation strategy to form a stable coalition structure.

5. Numerical Simulations

Task allocation using the VTCF algorithm in a social network environment is simulated. The simulated results of the proposed algorithm are compared with coalition forming based on random initialization, SN-CI, and centralized case [27], respectively. In random allocation, users only randomly allocate their resources to tasks that they can complete. In the case of SN-CI, the user allocates resources according to the allocation method of Algorithm 1. Finally, the platform utility and the cost of tasks are evaluated in the MCS system. The simulation parameters are shown in Table 1. All curves are generated based on an average of 1000 instances.

In Figure 3, the abscissa is the number of effective iterations, which indicates that a user successfully joins a coalition. It can be seen that the utility of platform becomes stable with the increment of effective iteration numbers based on the VTCF algorithm. Convergence time becomes shorter as the number of users is reduced. The utility value becomes larger when the number of users increases, which indicates that much more users participate in coalition forming. The utility of platform for the VTCF algorithm based on SN and random initialization coalition methods to generate a stable coalition structure are compared in Figure 4. It can be observed that the utility of the platform will increase as the number of iterations increases and tends to be stable. It shows that the initialization coalition method of SN converges faster than random initialization coalition method, and it can accelerate the formation of coalitions.

Figure 5 shows the influence of parameter on the system utility. The system utility firstly increases with the increment of and reaches a peak value with , which can be regarded as a good combination of cooperation degree and coalition value, and then it decreases as further increases. Figure 6 shows the effect of the number of tasks on the utility of the platform with . By using the VTCF algorithm, the platform utility will increase as the number of tasks increases with . Moreover, the performance of the proposed algorithm is close to that of centralized case and much better than the results of random and SN initialization coalition forming methods.

The relationship between the total sense cost and the number of tasks is shown in Figure 7. It can be seen that the whole sense cost of platform will increase with the increment of the number of tasks. At the same time, the cost of tasks by using the VTCF algorithm is close to that of centralized case, which indicates that the proposed algorithm consumes less battery energy and computing time. It is very suitable for the IoT applications. In Figure 8, it can be seen that the utility of the platform increases as the number of users becomes larger. This is explained that much more appropriate users join the coalition to improve the utility of the system as the number of users increases. As the budget of the platform is fixed, the coalition forming in the later period will always be concentrated among users with high cooperation and low cost; the system utility will enhance slowly as user numbers furtherly increase.

6. Conclusion

In this article, a cooperation method using overlapping coalition formation game is used to describe the assignment of sense tasks in MCS. The SN-CI based on social networks is proposed to accelerate the formation of coalitions. Moreover, the VTCF algorithm by using the concept of virtual terminals and cooperation degree is proposed to simplify the process of coalition formation. The utility of platform is evaluated by using VTCF, SN-CI, and random, centralized case methods, respectively. The simulated results show that SN-CI method is much quicker than random initialization method in original coalition forming. Furtherly, the utility of platform has been evaluated by the proposed VTCF algorithm and compared with that of using random, centralized case methods. Simulated results have verified the performance of VTCF. The concepts and algorithm proposed in this paper can be regarded as a reference in related study of MCS.

Data Availability

The writing material was derived from different journals as provided in the references. A MATLAB tool has been utilized to simulate the concept.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this study.

Acknowledgments

This research was funded by the National Key Research and Development Program of China under Grant no. 2018YFB2100100.