A task processing method, device and storage medium

By clustering feature information and matching task requirements on the node set on the server side, targeted distribution of tasks in the crowd sensing network system is achieved, solving the problem of low efficiency in sensing resource management in the existing technology, and improving task processing efficiency. and resource utilization.

CN113938813BActive Publication Date: 2024-09-27CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010616998.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-29
Publication Date
2024-09-27
Estimated Expiration
2040-06-29

AI Technical Summary

Technical Problem

Existing crowd intelligence sensing network systems have deficiencies in sensing resource management efficiency, especially challenges in resource utilization and task interaction and collaboration for large-scale sensing tasks, making it difficult to meet the needs of complex urban comprehensive management.

Method used

By clustering feature information on the node set on the server side, the execution nodes are determined, and task mapping relationships are established and distributed based on task requirements to achieve targeted distribution of tasks to be executed and improve the efficiency of resource scheduling.

Benefits of technology

It improves the efficiency of task processing, reduces the redundant time consumption of system resources, improves the single utilization rate of sensing nodes, and meets the timeliness requirements of complex sensing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113938813B
    Figure CN113938813B
Patent Text Reader

Abstract

The present invention discloses a task processing method, device and storage medium, the method comprising: determining at least one execution node from at least one node set; the at least one node set is obtained by clustering based on feature information corresponding to each node in the at least one node; each execution node in the at least one execution node is determined based on feature information corresponding to each node in the at least one node set and task requirements corresponding to each task to be executed in the task set; each task to be executed in the task set is sent to an execution node in the at least one execution node; wherein the task set comprises: at least one task to be executed and a task requirement corresponding to each task to be executed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to Internet of Things sensing technology, and in particular to a task processing method, device and storage medium. Background Art

[0002] The comprehensive perception of smart cities includes the comprehensive information perception of urban public utilities and people, objects, space environment and events / accidents. For example, it includes the information perception of public components and public environment related to comprehensive urban management, the information perception of home living places and environment, the information perception of citizens' education and health status, the information perception of special groups of people who pose potential safety threats to the public, and the information perception of public network public opinion.

[0003] The popularity of smartphones and other wearable devices has brought about a large number of perception nodes with communication and sensing capabilities. In terms of emerging technologies, a reference model of a crowd-sensing network system has been proposed. In the reference model, publishers publish tasks to data collectors through crowdsourcing and incentive mechanisms, and data collection is completed by people. This crowd-sensing crowdsourcing system can use people's collective wisdom through participatory perception to supplement and expand the existing infrastructure of smart cities to solve more complex large-scale perception problems, such as overcoming urban pollution, climate change, infectious diseases and other problems. However, how to improve the efficiency of perception resource management in the crowd-sensing network system is a problem that needs to be solved at present. Summary of the invention

[0004] In view of this, the main purpose of the present invention is to provide a task processing method, device and storage medium.

[0005] To achieve the above object, the technical solution of the present invention is achieved as follows:

[0006] An embodiment of the present invention provides a task processing method, which is applied to a server and includes:

[0007] Determine at least one execution node from at least one node set; the at least one node set is obtained by clustering based on feature information corresponding to each node in the at least one node; each execution node in the at least one execution node is determined based on feature information corresponding to each node in the at least one node set and task requirements corresponding to each task to be executed in the task set;

[0008] Send each to-be-executed task in the task set to an execution node in the at least one execution node; wherein the task set includes: at least one to-be-executed task and a task requirement corresponding to each to-be-executed task.

[0009] In the above scheme, the method further comprises:

[0010] Determine the at least one node set; the at least one node set is obtained by clustering based on feature information of the at least one node.

[0011] In the above solution, the determining the at least one node set includes:

[0012] Determine at least one first node and at least one second node from at least one node; the first node represents an initial hub node; the second node is other nodes in the at least one node except the initial hub node;

[0013] Determining at least one first set based on a first feature of each first node in the at least one first node and a first feature of each second node in the at least one second node;

[0014] Clustering is performed based on the first features and the second features of the nodes included in each of the at least one first set to obtain the at least one node set;

[0015] The first feature represents an online location; the second feature represents other features in the feature information except the online location.

[0016] In the above solution, determining at least one execution node from at least one node set includes:

[0017] Searching the at least one node set based on the task requirements corresponding to each to-be-executed task in the task set, and establishing the task mapping relationship based on the search results; the task mapping relationship includes: at least one execution node and the to-be-executed tasks corresponding to each execution node in the at least one execution node;

[0018] The sending each to-be-executed task in the task set to an execution node in the at least one execution node includes:

[0019] Based on the task mapping relationship, each to-be-executed task in the task set is sent to an execution node in the at least one execution node.

[0020] In the above solution, each node set in the at least one node set includes: a hub node; or includes: a hub node and at least one slave node;

[0021] The step of searching the at least one node set based on the task requirements corresponding to each to-be-performed task in the task set, and establishing the task mapping relationship based on the search results, includes:

[0022] Determine at least one subset of tasks to be performed; the subset of tasks to be performed is obtained by classifying the at least one task to be performed according to the task requirements corresponding to each task to be performed in the at least one task to be performed;

[0023] Taking a preset effect as a target, for each type of task subset to be executed in the at least one type of task subset to be executed, determining a corresponding target hub node from at least one hub node;

[0024] The task mapping relationship is determined based on each type of task subset to be executed and the target central node corresponding to each type of task subset to be executed; the task mapping relationship includes: the correspondence between each task to be executed in at least one type of task subset to be executed and each node in the node set where at least one target central node is located.

[0025] In the above scheme, the task to be executed is represented by a tuple; the tuple includes at least one of the following: task content, task requirements;

[0026] The task requirements include at least one of the following: task description, task location, and task time;

[0027] The task location includes: the center coordinates and radius of the task area;

[0028] The task time represents the timeliness of task execution;

[0029] Corresponding to the case where the number of tasks to be executed in the task set is at least two, the task requirement further includes: a time sequence relationship between each of the at least two tasks to be executed.

[0030] In the above scheme, the method further comprises:

[0031] Sending task requirements corresponding to each task to be executed in the task set;

[0032] Receiving execution willingness and execution capability for each task to be executed from at least one node; the execution willingness indicates whether the node is willing to execute the task to be executed; the execution capability is related to feature information of the node executing the corresponding task to be executed;

[0033] Based on the execution willingness and execution capability of at least one node for each task to be executed, characteristic information of at least one node is determined.

[0034] In the above solution, the execution capability includes at least one of the following: online location, online time, budget cost, moving speed, and device status information;

[0035] The device status information includes at least one of the following: device sensitivity and network status.

[0036] In the above solution, the characteristic information includes at least one of the following:

[0037] Moving distance; the moving distance is determined based on the task location and the online location;

[0038] Execution time; the execution time is determined based on at least the time it takes for the node to move to the task location and the time it takes for the node to execute the task; the time it takes for the node to move to the task location is determined based on the online time, the moving distance and the moving speed; the time it takes for the node to execute the task includes the time it takes for the node to complete the corresponding task to be executed at the task location; the time it takes for the node to execute the task is related to the device status information;

[0039] Execution cost; the execution cost is determined based on the budget cost.

[0040] In the above solution, the execution capability also includes: movement mode;

[0041] The method further includes: determining the moving speed based on the moving mode; and determining the moving speed based on a prediction of historical moving data corresponding to the moving mode.

[0042] In the above scheme, the method further comprises:

[0043] receiving a task request, and determining at least one to-be-performed task and a task requirement corresponding to each to-be-performed task in the at least one to-be-performed task based on the task request;

[0044] The task set is determined based on the at least one task to be performed and a task requirement corresponding to each of the at least one task to be performed.

[0045] An embodiment of the present invention provides a task processing device, which is applied to a server; the device comprises: a first processing module and a second processing module, wherein:

[0046] The first processing module is used to determine at least one execution node from at least one node set; the at least one node set is obtained by clustering based on feature information corresponding to each node in the at least one node; each execution node in the at least one execution node is determined based on feature information corresponding to each node in the at least one node set and task requirements corresponding to each task to be executed in the task set;

[0047] The second processing module is used to send each to-be-executed task in the task set to an execution node in the at least one execution node; wherein the task set includes: at least one to-be-executed task and a task requirement corresponding to each to-be-executed task.

[0048] In the above solution, the first processing module is also used to determine the at least one node set; the at least one node set is obtained by clustering based on feature information of the at least one node.

[0049] In the above scheme, the first processing module is used to determine at least one first node and at least one second node from at least one node; the first node represents the initial hub node; the second node is the other node in the at least one node except the initial hub node;

[0050] Determining at least one first set based on a first feature of each first node in the at least one first node and a first feature of each second node in the at least one second node;

[0051] Clustering is performed based on the first features and the second features of the nodes included in each of the at least one first set to obtain the at least one node set;

[0052] The first feature represents an online location; the second feature represents other features in the feature information except the online location.

[0053] In the above scheme, the first processing module searches the at least one node set based on the task requirements corresponding to each to-be-executed task in the task set, and establishes the task mapping relationship based on the search results; the task mapping relationship includes: at least one execution node and the to-be-executed tasks corresponding to each execution node in the at least one execution node;

[0054] The sending each to-be-executed task in the task set to an execution node in the at least one execution node includes:

[0055] Based on the task mapping relationship, each to-be-executed task in the task set is sent to an execution node in the at least one execution node.

[0056] In the above solution, each node set in the at least one node set includes: a hub node; or includes: a hub node and at least one slave node;

[0057] The first processing module is specifically used to determine at least one type of subset of tasks to be executed; the subset of tasks to be executed is obtained by classifying the at least one task to be executed according to the task requirements corresponding to each task to be executed in the at least one task to be executed;

[0058] Taking a preset effect as a target, for each type of task subset to be executed in the at least one type of task subset to be executed, determining a corresponding target hub node from at least one hub node;

[0059] The task mapping relationship is determined based on each type of task subset to be executed and the target central node corresponding to each type of task subset to be executed; the task mapping relationship includes: the correspondence between each task to be executed in at least one type of task subset to be executed and each node in the node set where at least one target central node is located.

[0060] In the above scheme, the task to be executed is represented by a tuple; the tuple includes at least one of the following: task content, task requirements;

[0061] The task requirements include at least one of the following: task description, task location, and task time;

[0062] The task location includes: the center coordinates and radius of the task area;

[0063] The task time represents the timeliness of task execution;

[0064] Corresponding to the case where the number of tasks to be executed in the task set is at least two, the task requirement further includes: a time sequence relationship between each of the at least two tasks to be executed.

[0065] In the above solution, the device further comprises: a third processing module, configured to send task requirements corresponding to each to-be-executed task in the task set;

[0066] Receiving execution willingness and execution capability for each task to be executed from at least one node; the execution willingness indicates whether the node is willing to execute the task to be executed; the execution capability is related to feature information of the node executing the corresponding task to be executed;

[0067] Based on the execution willingness and execution capability of at least one node for each task to be executed, characteristic information of at least one node is determined.

[0068] In the above solution, the execution capability includes at least one of the following: online location, online time, budget cost, moving speed, and device status information;

[0069] The device status information includes at least one of the following: device sensitivity and network status.

[0070] In the above solution, the characteristic information includes at least one of the following:

[0071] Moving distance; the moving distance is determined based on the task location and the online location;

[0072] Execution time; the execution time is determined based on at least the time it takes for the node to move to the task location and the time it takes for the node to execute the task; the time it takes for the node to move to the task location is determined based on the online time, the moving distance and the moving speed; the time it takes for the node to execute the task includes the time it takes for the node to complete the corresponding task to be executed at the task location; the time it takes for the node to execute the task is related to the device status information;

[0073] Execution cost; the execution cost is determined based on the budget cost.

[0074] In the above solution, the execution capability also includes: movement mode;

[0075] The third processing module is further used to determine the moving speed based on the moving mode; the moving speed is determined based on the prediction of historical moving data corresponding to the moving mode.

[0076] In the above solution, the device further includes: a fourth processing module, configured to receive a task request, and determine at least one task to be performed and a task requirement corresponding to each task to be performed in the at least one task to be performed based on the task request;

[0077] The task set is determined based on the at least one task to be performed and a task requirement corresponding to each of the at least one task to be performed.

[0078] An embodiment of the present invention provides a task processing device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-mentioned task processing methods when executing the program.

[0079] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above task processing methods are implemented.

[0080] A task processing method, device and storage medium provided by an embodiment of the present invention include: a server determines at least one execution node from at least one node set; the at least one node set is obtained by clustering based on feature information corresponding to each node in the at least one node; each execution node in the at least one execution node is determined based on feature information corresponding to each node in the at least one node set and task requirements corresponding to each task to be executed in the task set; each task to be executed in the task set is sent to an execution node in the at least one execution node; wherein the task set includes: at least one task to be executed and task requirements corresponding to each task to be executed; in this way, based on the feature information corresponding to each node and the task requirements corresponding to each task to be executed in the task set, the execution node for each task to be executed is determined, the tasks to be executed are distributed in a targeted manner, and the efficiency of task processing is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] Figure 1 A flowchart of a task processing method provided by an embodiment of the present invention;

[0082] Figure 2 A flowchart of another task processing method provided by an embodiment of the present invention;

[0083] Figure 3A schematic diagram of feature extraction provided by an embodiment of the present invention;

[0084] Figure 4 A schematic diagram of perception task distribution provided by an embodiment of the present invention;

[0085] Figure 5 A schematic diagram of a perception task distribution application is provided for an embodiment of the present invention;

[0086] Figure 6 A schematic diagram of the structure of a task processing device provided by an embodiment of the present invention;

[0087] Figure 7 A schematic diagram of the structure of another task processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0088] Before further describing the present invention in detail in conjunction with the embodiments, the related technologies of network slicing are first described.

[0089] As mentioned above, the main shortcomings of the existing IoT crowd-sensing technology are as follows:

[0090] In traditional technologies, the existing perception network construction of various urban departments is relatively independent, dedicated, and vertically closed. For example, in order for a travel platform to obtain location information of public transportation vehicles, it is necessary to deploy location sensors on each bus. The environmental monitoring sensors used by communication operators' outdoor base stations to monitor base station antenna panels cannot be used to monitor the meteorological environment. Therefore, traditional technologies have the limitations of dedicated network construction, and it is difficult to expand functions and add value according to user needs.

[0091] The above-mentioned dedicated network and dedicated perception network technology solution is difficult to meet the comprehensive perception needs of the industry field by relying solely on existing sensors in the field, and if it relies on building a complete perception network by itself, the cost is too high. At the same time, the interconnection and interoperability on the platform side may not be able to effectively meet the cross-industry perception needs. At present, cross-platform interconnection and interoperability is to share and reuse data through data stored on the platform side. However, due to operational cost considerations, each platform will have its own customized pre-processing and storage rules for the original data, and the data stored on the platform side cannot effectively meet the perception requirements of other industry fields.

[0092] The existing crowd-sensing technology solutions (such as the crowd-sensing network system mentioned above) mainly focus on crowdsourcing mechanisms, incentive mechanisms and user privacy protection mechanisms. In terms of perception node resource management and sharing, they often only consider the simplest crowd-sensing network, that is, the simple task allocation of crowd-sensing node resources. The scheduling algorithms currently used include polling scheduling algorithm, least connection scheduling algorithm, target source address hash scheduling algorithm, etc. Most of them adopt static scheduling and online resource scheduling methods. After the user request arrives, resources are immediately allocated to the task according to the pre-recorded node information and processing begins. The above scheduling algorithm is only a simple allocation of tasks, and the utilization rate of perception resources needs to be improved. There are still many problems in the related technologies of perception node resource management and sharing that need further research and resolution; such as the resource management problem of perception data streams with growing data scale; the problem of task interaction and collaboration in large-scale actual crowd-sensing network systems; the impact of the distribution and mobility model of perception nodes on resource scheduling; solving the above problems can bring huge economic benefits.

[0093] Based on this, in the scheme of the embodiment of the present invention, the server determines at least one execution node from at least one node set; the at least one node set is obtained by clustering based on the feature information corresponding to each node in the at least one node; each execution node in the at least one execution node is determined based on the feature information corresponding to each node in the at least one node set and the task requirements corresponding to each task to be executed in the task set; each task to be executed in the task set is sent to an execution node in the at least one execution node; wherein the task set includes: at least one task to be executed and the task requirements corresponding to each task to be executed.

[0094] The present invention will be further described in detail below in conjunction with the embodiments.

[0095] Figure 1 A flowchart of a task processing method provided by an embodiment of the present invention; Figure 1 As shown, the task processing method is applied to a server; the method comprises:

[0096] Step 101: Determine at least one execution node from at least one node set;

[0097] The at least one node set is obtained by clustering based on the characteristic information corresponding to each node in the at least one node; each execution node in the at least one execution node is determined based on the characteristic information corresponding to each node in the at least one node set and the task requirements corresponding to each task to be executed in the task set;

[0098] Step 102: Send each to-be-executed task in the task set to an execution node in the at least one execution node;

[0099] The task set includes: at least one task to be executed and a task requirement corresponding to each task to be executed.

[0100] In some embodiments, the method further comprises:

[0101] Determine the at least one node set; the at least one node set is obtained by clustering based on feature information of the at least one node.

[0102] In some embodiments, the determining the at least one node set comprises:

[0103] Determine at least one first node and at least one second node from at least one node; the first node represents an initial hub node; the second node is other nodes in the at least one node except the initial hub node;

[0104] Determining at least one first set based on a first feature of each first node in the at least one first node and a first feature of each second node in the at least one second node;

[0105] Clustering is performed based on the first features and the second features of the nodes included in each of the at least one first set to obtain the at least one node set;

[0106] The first feature represents an online location; the second feature represents other features in the feature information except the online location.

[0107] For example, for a task set, there is at least one corresponding node (i.e., there is at least one data collector who registers and requests to participate); at least one first node (i.e., the number is K) is selected from at least one node (i.e., N nodes), and there are M (M=NK) second nodes. The above screening rule can be to select a node that is dynamically online (i.e., in communication with the server) as the first node; here, the first node is the initial hub node; clustering is performed based on the characteristic information of each node in the N nodes to obtain at least one node set.

[0108] Here, clustering is performed based on the characteristic information of each node in the N nodes to obtain at least one node set, including:

[0109] Based on the characteristic information of N nodes (including online location, online time, mobile characteristics, device status information, etc.), all currently registered second nodes are clustered according to characteristic information such as online location, and assigned to the initial hub node with the most similar characteristics to form K clusters. Then, the hub nodes of each cluster are recalculated in the new cluster, and the K hub nodes are continuously updated until convergence. The objective function is as follows: Equations 1 and 2;

[0110]

[0111]

[0112] Among them, x a represents the ath sensor node, μ k represents the center of the kth cluster; Formula 1 indicates that N sensing nodes should be divided into K sets (K≤N) so that the sum of squares is minimized;

[0113] c ak Indicates whether the characteristic information (including online location, online time, mobile characteristics, device status information, etc.) of the a-th sample (the sample represents a sensing node) belongs to the K-th class;

[0114] N represents the total number of nodes participating in the registration request;

[0115] st stands for subject to, which means that... satisfies...; 1 means they belong to the same category, and 0 means they do not belong to the same category.

[0116] In some embodiments, determining at least one execution node from at least one node set includes:

[0117] Searching the at least one node set based on the task requirements corresponding to each to-be-executed task in the task set, and establishing the task mapping relationship based on the search results; the task mapping relationship includes: at least one execution node and the to-be-executed tasks corresponding to each execution node in the at least one execution node;

[0118] The sending each to-be-executed task in the task set to an execution node in the at least one execution node includes:

[0119] Based on the task mapping relationship, each to-be-executed task in the task set is sent to an execution node in the at least one execution node.

[0120] In actual application, after the server determines that the publisher has published a task, it needs to consider sending different tasks to be executed to each execution node in the shortest time possible, so that the nodes that meet the task online time requirements and have the execution intention can complete the tasks to be executed as soon as possible. In the embodiment of the present invention, the differentiated distribution of tasks to be executed is achieved through the central nodes in each set of at least one node set; specifically, the characteristic information of each node can be combined to improve the single-unit utilization rate of resource scheduling through a hierarchical search algorithm, and reduce the redundant time consumption of system resources.

[0121] In some embodiments, each node set in the at least one node set includes: a hub node; or includes: a hub node and at least one slave node;

[0122] The step of searching the at least one node set based on the task requirements corresponding to each to-be-performed task in the task set, and establishing the task mapping relationship based on the search results, includes:

[0123] Determine at least one subset of tasks to be performed; the subset of tasks to be performed is obtained by classifying the at least one task to be performed according to the task requirements corresponding to each task to be performed in the at least one task to be performed;

[0124] Taking a preset effect as a target, for each type of task subset to be executed in the at least one type of task subset to be executed, determining a corresponding target hub node from at least one hub node;

[0125] The task mapping relationship is determined based on each type of task subset to be executed and the target central node corresponding to each type of task subset to be executed; the task mapping relationship includes: the correspondence between each task to be executed in at least one type of task subset to be executed and each node in the node set where at least one target central node is located.

[0126] The preset effect may be:

[0127] Aim to minimize total expenses;

[0128] The constraint is that the total execution time should be short.

[0129] Here, the total cost refers to the sum of the rewards paid by users corresponding to at least one execution node;

[0130] The total execution time refers to the total time consumed by each execution node to execute the corresponding task to be executed.

[0131] Here, after the server determines that the publisher has published the task, it can present the tasks to be executed on the corresponding platform, displaying information such as task description, task location, task time, task reward (that is, the budget cost provided, that is, presenting the corresponding reward rules to inform the data collector), and users can fill in the corresponding content based on the presented information.

[0132] Here, a certain search strategy, such as a greedy strategy, can be adopted to predict the time consumption of the task of the node to be executed, and the above steps are performed based on the predicted results to establish the task mapping relationship; the greedy strategy can be specifically implemented by adopting an autoregressive moving average model (ARMA).

[0133] That is to say, in order to achieve the preset effect, that is, the minimum total overhead and the short total execution time, the task requirements corresponding to each task to be executed in the task set are searched for at least one node set, and the task mapping relationship is established based on the search results, which also includes: determining the overhead and time of each node executing any task to be executed.

[0134] The overhead of each node in executing any task to be executed is determined according to the reward mechanism corresponding to each task to be executed, that is, the budget cost.

[0135] The time consumed by each node to execute any task to be executed is predicted by adopting an autoregressive moving average model (ARMA) based on the historical data of each node to predict the time consumed by each node to execute the corresponding task to be executed.

[0136] For example, a search table of tasks and nodes can be initialized first. The search table is used to represent the task mapping relationship. The left side of the table is a task queue arranged from large to small according to the computational amount corresponding to each task to be executed. Taski represents the task with task ID i in the queue. The right side of the table is a node list. Each node in the table is represented by<Device ID,T> The key-value pair description of the type, where the device ID represents the node with ID i, and Tij represents the time required for the task to be executed with Task ID i to be completed at the node with device ID j. The order of the nodes can be arranged from small to large according to the value of Tij. If the task to be executed is executed fastest on a certain node, then other tasks with similar application requirements also have the shortest execution time on this node, such as Task2 in the table. If a node has strong perception accuracy, sampling frequency and network throughput at the same time, then no matter which task is assigned to the perception node, it often has a faster execution speed, such as Device 2 in the table.

[0137]

[0138] Table 1

[0139] In conjunction with the above Table 1, searching the at least one node set based on the task requirements corresponding to each to-be-performed task in the task set and establishing the task mapping relationship based on the search results are further described.

[0140] The server may classify the at least one task to be performed, and determine at least one subset of tasks to be performed; the subset of tasks to be performed is based on the task requirements corresponding to each task to be performed in the at least one task to be performed, for example, the task requirement requires strong perception accuracy;

[0141] For the subset of tasks to be executed that require strong perception accuracy in the at least one type of subset of tasks to be executed, a corresponding first target hub node is determined from at least one of the hub nodes; accordingly, the selected first target hub node is a hub node with strong perception accuracy;

[0142] Establishing a mapping relationship between each task to be executed in the subset of tasks to be executed that require high perception accuracy and the first target hub node determined above and other nodes in the corresponding node set;

[0143] By analogy, the corresponding target central node can be determined from at least one of the central nodes according to the task subsets to be executed of each type of task requirement, and the task mapping relationship can be determined between the task subsets to be executed of each type of task requirement and the target central nodes corresponding to the task subsets to be executed.

[0144] It should be noted that when suggesting the task mapping relationship above, it is necessary to consider the minimum total overhead as the goal and the short total execution time as the constraint condition; the task mapping relationship is established based on the above conditions. Specifically, ARMA can be used to predict the time required for each node to execute the corresponding task to be executed; based on the prediction results, task requirements, and node execution capabilities, the task mapping relationship is established after comprehensive consideration.

[0145] In some embodiments, the to-be-performed task is represented by a tuple; the tuple includes at least one of the following: task content, task requirements;

[0146] The task requirements include at least one of the following: task description, task location, and task time;

[0147] The task location includes: the center coordinates and radius of the task area;

[0148] The task time represents the timeliness of task execution;

[0149] Corresponding to the case where the number of tasks to be executed in the task set is at least two, the task requirement further includes: a time sequence relationship between each of the at least two tasks to be executed.

[0150] In some embodiments, the method further comprises:

[0151] Sending task requirements corresponding to each task to be executed in the task set;

[0152] Receiving execution willingness and execution capability for each task to be executed from at least one node; the execution willingness indicates whether the node is willing to execute the task to be executed; the execution capability is related to feature information of the node executing the corresponding task to be executed;

[0153] Based on the execution willingness and execution capability of at least one node for each task to be executed, characteristic information of at least one node is determined.

[0154] In some embodiments, the execution capability includes at least one of the following: online location, online time, budget cost, moving speed, and device status information;

[0155] The device status information includes at least one of the following: device sensitivity and network status.

[0156] That is, the user can fill in the corresponding content according to the presented information, which may include the above-mentioned execution capabilities.

[0157] The device sensitivity may include: the sensitivity of a sensor included in the device;

[0158] The network status may include: network throughput;

[0159] The execution capability also includes: range of motion, storage capacity, social attributes, task publisher evaluation, etc.

[0160] In some embodiments, the feature information includes at least one of the following:

[0161] Moving distance; the moving distance is determined based on the task location and the online location;

[0162] Execution time; the execution time is determined based on at least the time it takes for the node to move to the task location and the time it takes for the node to execute the task; the time it takes for the node to move to the task location is determined based on the online time, the moving distance and the moving speed; the time it takes for the node to execute the task includes the time it takes for the node to complete the corresponding task to be executed at the task location; the time it takes for the node to execute the task is related to the device status information;

[0163] Execution cost; the execution cost is determined based on the budget cost.

[0164] In one embodiment, the execution capability further includes: a movement mode; the movement mode is related to the movement speed;

[0165] The method further includes: determining the moving speed based on the moving mode; and determining the moving speed based on a prediction of historical moving data corresponding to the moving mode.

[0166] That is to say, when filling in the corresponding content, the user can fill in the specific speed value for the moving speed; or fill in the moving method;

[0167] In the case where the moving speed is filled in with the moving mode, the server obtains the historical moving data corresponding to the node; and predicts and determines the moving speed based on the historical moving data corresponding to the moving mode.

[0168] Specifically, modes of movement include at least: walking, driving, and public transportation;

[0169] The corresponding historical mobility data at least includes: historical walking mobility data, historical driving mobility data, and historical public transportation mobility data;

[0170] Thus, the server can use a preset data processing model to identify historical walking movement data to predict the movement speed corresponding to when the movement mode is walking;

[0171] Using a preset data processing model to identify historical driving movement data to predict the movement speed corresponding to the movement mode being driving; and / or,

[0172] The preset data processing model is used to identify historical bus movement data to predict the movement speed corresponding to the movement mode being bus.

[0173] The preset data processing model is pre-set by the developer. The data processing model can be predicted by taking the average value, combining historical bus conditions, etc., which is not limited here.

[0174] In some embodiments, the method further comprises:

[0175] receiving a task request, and determining at least one to-be-performed task and a task requirement corresponding to each to-be-performed task in the at least one to-be-performed task based on the task request;

[0176] The task set is determined based on the at least one task to be performed and a task requirement corresponding to each of the at least one task to be performed.

[0177] In some embodiments, the method further comprises:

[0178] Receive result information from the execution node; the result information includes: task execution result and task execution end time;

[0179] Based on the result information, the execution nodes in the idle state are released.

[0180] Through the method provided by the embodiment of the present invention, the execution node for each task to be executed is determined based on the characteristic information corresponding to each node and the task requirements corresponding to each task to be executed in the task set, and the tasks to be executed are distributed in a targeted manner, thereby improving the efficiency of task processing and saving the total cost consumed by task processing.

[0181] The task processing method provided by the embodiment of the present invention can be applied to other fields such as environmental monitoring, traffic management, smart city, public safety, social services, etc. The following embodiment is only used as an example and does not limit the method provided by the embodiment of the present invention.

[0182] Here, we take the perception task of a smart city energy and environmental protection project in real life as an example. It is necessary to collect and statistically analyze the pollution information such as fine particulate matter (PM2.5) in various locations in the city for a long time. The distribution of PM2.5 pollution in the city is affected by weather such as cloudy and sunny, wind speed, and is also affected by the location of urban factories, urban governance environment, and urban geographical characteristics. The collection of environmental data in all spaces and all time periods not only requires extremely high perception costs, but also according to the "80 / 20 rule", most of the sampled data is redundant, and the analysis of the overall characteristics of urban PM2.5 pollution is meaningless. However, through the group intelligence collaborative platform, tasks can be issued more accurately. These subtasks completed within the specified time need to collect information from important areas such as urban streets and shopping malls at fixed points. Considering that mobile phones and vehicle-mounted perception devices have become popular, these mobile devices contain sensor devices. Therefore, voluntary registration and task distribution can be adopted for various industries to allow these online perception resources to jointly assist the specially built workstations and wireless sensor networks in urban public utilities to complete perception tasks. Therefore, the task allocation in the example scenario is centered on platform tasks, aiming to shorten the time of task allocation and improve the utilization rate of perception node monomers.

[0183] Figure 2 A flowchart of another task processing method provided by an embodiment of the present invention; Figure 2 As shown, the task processing method is applied to a server (specifically, it may refer to the server of the above-mentioned group intelligence collaboration platform); the method includes:

[0184] Step 201: The task publisher issues a service request;

[0185] Here, the server confirms the service needs of the task publisher, determines the overall requirements such as the task collection volume, task duration, time period, time coverage, space coverage, etc., and calculates the roles and duration of all data collectors within the time period.

[0186] The spatial coverage rate represents the coverage of the task address range; for example, if the collection address range is region A, X (assuming 100) collection locations are required within this range, and the spatial coverage rate is 10%, then at least X*10% (that is, 10) collection low points are required;

[0187] The time coverage represents the coverage of the task time range; for example, the collection time range is Y (assuming 24) hours in a day, and the time coverage within this range is 1 / 12, then at least Y*1 / 12 (that is, 2) time points must be collected.

[0188] Step 202: The data collector registers the task;

[0189] Here, the data collector registers on a registration platform provided by the server, and the registration includes providing at least one of the following: online location, online time, budget cost, moving speed, and device status information;

[0190] Among them, the device status information includes: the device's communication method, device sensitivity, collected data type, collection accuracy, collection frequency, etc.

[0191] The server provides an identification (ID) for each data collector, and the identification may be the identification of a node (such as a terminal, a sensor, or other equipment) held by the data collector.

[0192] The step 202 further includes: the server determining characteristic information of each node related to task quality management.

[0193] For example, the network throughput and latency of a node can be determined by communication methods (such as mobile cellular networks, WiFi, Bluetooth, etc.);

[0194] The perception capability can be determined based on the sensitivity of the device, the type of data collected, the collection accuracy, the collection frequency, etc.

[0195] The collection interest may be determined based on online time, online address, etc. Here, the online address may include: current location, historical track, etc.

[0196] The above-mentioned server establishment node and task quality management related indicators are equivalent to Figure 1 In the method shown, the execution willingness and execution capability for each task to be executed (equivalent to the above-mentioned registered information) are received from at least one node; based on the execution willingness and execution capability for each task to be executed from at least one node, the characteristic information of at least one node (equivalent to the above-mentioned indicator) is determined.

[0197] Figure 3 A schematic diagram of feature extraction provided by an embodiment of the present invention; wherein the sampling location, sampling time, and budget cost are relevant information of the perception task presented by the server platform;

[0198] The total moving distance, sampling time, execution willingness, sensor sensitivity, moving speed, online time, and network throughput can be calculated based on the information filled in by the user.

[0199] Step 203: perception task definition;

[0200] Here, the server determines whether the perception task is appropriate based on the service requirements of the task publisher. Here, it is assumed that the perception task set T = {t1, t2, t3, …, tn}, that is, the perception task set includes at least one perception task. The task publisher can also specify how many perception nodes are required to complete each perception task.

[0201] Assume that there are currently j sensing nodes, the sensing node set U = {u1, u2, u3, …, uj}, the moving speed of the sensing node is V, the set of nodes that complete task tn is UT = {ut1, ut2, ut3, …, utj}, the set of tasks completed by each sensing node is TU = {tu1, tu2, tu3, …, tuj}, the total distance moved by each sensing node to complete the corresponding task set is D{TU}, and each sensing task takes W unit time to complete.

[0202] Step 204, grid division of the sensing space;

[0203] Here, considering that the perception tasks are mainly concentrated in several areas with obvious attribute differences (high pollution concentration), if the task distribution is directly carried out without analyzing the characteristic factors of the area, it will lead to the lack of rationality of task distribution and make the cost of node execution too high. The grid division of the perception space is to make the perception tasks and the target area reasonably covered, the perception space is reasonably covered and the grid hub nodes are selected, so that each grid has the most appropriate node scale and optimizes the spatial coverage of perception resources.

[0204] The network partitioning of the perceptual space is equivalent to Figure 1 In the method, at least one set of nodes is determined.

[0205] Specifically, step 204 includes:

[0206] Step 2041: Based on the category of the perception target and the registration status of the data collector, K dynamically online (i.e., in communication with the server) perception nodes are selected from the perception space as initial hub nodes.

[0207] Step 2042: Based on the data distribution characteristics (location distribution, mobility characteristics, etc.) of the crowd-sensing scene perception nodes, all currently registered perception nodes are assigned to the nearest hub node according to location clustering to form K clusters (i.e., the clustering process is to determine K initial hub nodes and assign other perception nodes to the initial hub node closest to it); recalculate the hub nodes of each cluster in the new cluster (equivalent to Figure 1The central node in the method shown in the figure) and continuously update K central nodes until convergence. The objective function is as follows:

[0208]

[0209]

[0210] Among them, x a represents the ath sensor node, μ k represents the center of the kth cluster; Formula 1 indicates that N sensing nodes should be divided into K sets (K≤N) so that the sum of squares is minimized;

[0211] c ak Indicates whether the data distribution characteristics (such as location distribution, mobility characteristics, etc.) of the ath sample (the sample refers to the sensing node) belongs to the Kth class; N represents the total number of registered sensing nodes;

[0212] st means subject to, that is, ... satisfies...; 1 means belonging to the same category, and 0 means not belonging to the same category.

[0213] Step 205: Distribute tasks;

[0214] After the publisher publishes the task requirements, it is necessary to consider spreading different tasks to the grid of the perception space in the shortest time possible, so that the nodes that meet the online time requirements of the perception tasks and have the willingness to execute can complete the perception tasks as soon as possible.

[0215] Here, the central nodes of the grid assist in the differentiated distribution of tasks, and combined with the characteristic information of the perception nodes, the hierarchical search algorithm is used to improve the single-unit utilization rate of perception resource scheduling and reduce the redundant time consumption of system resources.

[0216] The step 205 includes:

[0217] Step 2051, establishing a hierarchical search table;

[0218] Before scheduling, the server creates a search table of tasks and sensing nodes based on the quantified sensing tasks and feature information of the sensing nodes.

[0219] The left side of the table is a task queue arranged in descending order of computational effort. Taski represents the task with Task ID i in the queue. The right side of the table is a list of sensor nodes.<Device ID,T> The key-value pair description of the type, where the device ID represents the sensor node with ID i, and Tij represents the time required for the task with Task ID i to be executed on the sensor node with device ID j. The order of the sensor nodes in the table is arranged from small to large according to the value of Tij. If a task executes fastest on a sensor node, then other tasks with similar application requirements also have the shortest execution time on the sensor node, such as Task 2 in the table. If a sensor node has strong perception accuracy, sampling frequency and network throughput at the same time, then no matter which task is assigned to the sensor node, it often has a faster execution speed, such as Device 2 in Table 2.

[0220]

[0221]

[0222] Table 2

[0223] Table 2 is a hierarchical search table of tasks and perception nodes, which represents the mapping relationship between each perception task and perception node.

[0224] The execution completion time Tij is equal to the sum of the time the data collector waits for the task to be received, the time the data collector moves to the perception sampling point, the data collector sampling time, and the time (TET) the task takes to execute in the device. Initially, the execution completion time Tij is the task allocation time, which is composed of the time the data collector waits for the task to be received and the time the data collector moves to the perception sampling point. Among them, the time the data collector moves to the perception sampling point is related to the trajectory law, direction speed, etc. of the user's position. Participating in data collection needs to consider the perception loss caused by the moving distance. The selection of data collectors needs to meet the following requirements: each data collector needs to complete multiple tasks within the specified time, and at the same time, it is necessary to optimize the minimum total distance moved to complete the task and the execution completion time of the data collector. Set the objective function and constraints as follows:

[0225]

[0226]

[0227] Where D{TU} represents the total distance moved to complete all perception tasks;

[0228] TU jrepresents the set of sensing tasks corresponding to the jth sensing node; D(TUj) represents the distance moved by the jth sensing node to complete all its corresponding sensing tasks; m represents the upper limit of the total number of sensing nodes;

[0229] V represents the moving speed of the sensing node (which can be understood as the data collector holding the sensing node); W represents the unit time required for each sensing task;

[0230] Tij represents the unit time taken by the jth sensing node to complete the i-th sensing task.

[0231] Step 2052: Perform hierarchical scheduling based on the above search table;

[0232] The step 2052 includes: using a search strategy (such as a greedy strategy) to search for perception nodes in the grid based on the task requirements corresponding to each perception task, and establishing the task mapping relationship based on the search results; the task mapping relationship represents the mapping relationship between the perception task and the perception node; then, based on the task mapping relationship, each perception task is sent to each perception node for execution.

[0233] Specifically, Tij is obtained recursively by updating the search table. Initially, the first column of tasks is assigned to the sensor nodes in the first row, and then greedy selection is made step by step. The greedy strategy adopted can be to use the ARMA model to further predict the task time of the sensor nodes based on the historical data of each sensor node actually obtained. Starting from the first task in the search table, the Tij value of the task and the selected sensor node task queue are updated every time the task is successfully assigned; the search table updated in this way represents the determined task mapping relationship.

[0234] Specifically, in conjunction with Table 2:

[0235] First allocation: Try to allocate Task2 to Device2. Since the task queue of Device2 is empty, the current choice is the best and the task allocation is successful. Then update the task queue of Device2 and add Task2 to the task queue, while T22=TET22 remains unchanged, where TET22 is the execution time of Task 2 on Device2.

[0236] Second allocation: Try to allocate Task1 to Device2, but at this time, there is already Task2 in the task queue of Device2, so T12 = TET12 + T22, where TET12 is the time it takes for Task1 to execute on Device2. The task queue of Device3 is empty, so T12 needs to be compared with T13 to determine which is the best choice.

[0237] If T12 < T13, then Device2 remains the optimal choice. Task1 is assigned to Device2 and the task assignment is successful. Then, update the message queue of Device2, add Task1 to the task queue, and update the value of T12.

[0238] If T12 > T13, then Device3 is the optimal choice. Task1 is assigned to Device3 and the task assignment is successful. Then, update the message queue of Device3, add Task1 to the task queue, and T13 = TET13 remains unchanged.

[0239] If T12 = T13, then compare the status and location of Device2 and Device3, and assign the task to the sensing node that has been online longer and is closer to the sampling location.

[0240] The third assignment: Still give priority to trying to assign Task4 to Device2. At this time, it is necessary to compare T42, T43, and T44. The specific execution steps are the same as those of the second assignment, but several more judgments are required.

[0241] The fourth assignment: Still give priority to trying to assign Task3 to Device2. At this time, it is necessary to compare T32 and T31 because the task queue of Device1 is empty at this time. The specific execution steps are the same as those of the second assignment.

[0242] According to the above method, until all N tasks are completely assigned.

[0243] Step 206: Recycle the task results and release the resources of the idle nodes;

[0244] According to the above hierarchical search table, determine the mapping relationship between tasks and sensing nodes. After distributing tasks according to the mapping relationship, wait for the corresponding sensing nodes to execute the tasks;

[0245] After the task is completed, the central node recovers the task results from the subordinate nodes (referring to other nodes in the same class as the central node except the central node) and releases the idle sensing nodes.

[0246] Complete the process of sensing task assignment based on differential distribution according to the above steps.

[0247] The solution provided by the embodiment of the present invention, on the one hand, combines the region division method to achieve reasonable coverage of tasks and target regions; on the other hand, based on the sensing ability characteristics of sensing nodes, a differential distribution method for sensing tasks within the sensing region grid is used to reduce the time consumption of task distribution.

[0248] Figure 4 It is a schematic diagram of sensing task distribution provided by an embodiment of the present invention; as Figure 4As shown, a task set is determined; wherein the task set includes: at least one perception task to be performed. Clustering is performed according to the node set to obtain a grid set. The grid set includes: at least one grid; each grid includes a hub node and at least one slave node (i.e., a perception node other than the hub node).

[0249] Through the coverage quality and perception overhead measurement model, a hierarchical search algorithm is used to match each perception task in the task set with each perception node, that is, to obtain the corresponding mapping relationship between the perception task and the perception node; the tasks are distributed to each perception node according to the mapping relationship.

[0250] An embodiment of the present invention also provides an Internet of Things group intelligence perception crowdsourcing system, which uses mechanisms such as task allocation, incentives, and data quality management to crowdsource the perception tasks; data collectors use various sensors of perception nodes to sample data, and the collected data is processed by front-end processing and privacy protection means and then recycled to the Internet of Things group intelligence perception crowdsourcing system to meet the perception task requirements.

[0251] Perception tasks are generated and submitted by task publishers at certain specific times. In perception tasks, it is generally necessary to collect a variety of information within a specified time, and different data collectors need to dynamically distribute tasks according to their own perception capabilities of different categories. The strength of perception capabilities needs to be combined with factors such as the data collector's willingness to execute, sensor sensitivity, single unit investment cost, network throughput, range of motion, storage capacity, social attributes, and task publisher evaluation.

[0252] The Internet of Things Group Intelligence Perception Crowdsourcing System is used for task management and scheduling. The Internet of Things Group Intelligence Perception Crowdsourcing System may include: a service request module, a task scheduling module, a monitoring management module, and a perception node selection and analysis module; wherein:

[0253] The service request module is used to process the user request of the task publisher and quantify the user request into a computable task according to certain rules. For example, a perception task is defined as a tuple (task content, task description, task location, task time, etc.), where the task content includes various perception operations, such as perceiving noise, taking a photo, taking a video, etc.; the task description refers to the requirements and parameters of the perception task, such as recording duration, photo pixels, video format, etc.; the task location includes the center coordinates and perception radius of the perception task area; and the task time refers to the timeliness of the execution of the perception task.

[0254] The task scheduling module is the core of the entire scheduling process, which is used to complete the allocation of resources and the scheduling of tasks, and to achieve the reasonable mapping of tasks and perception nodes. After the publisher publishes the task, it is necessary to consider spreading different tasks to each perception node in the perception space in the shortest time. The task scheduling module performs hierarchical search and task mapping based on the node perception capability characteristics, establishes a distribution algorithm and scheduling mechanism for task diffusion differences, and distributes each perception task to each perception node.

[0255] The monitoring and management module is used to monitor the working status of the perception nodes in real time and can dynamically manage them as needed, allowing different group intelligence resources to perform tasks with different collection frequencies and collection accuracies at different times and locations according to their respective capabilities, online time, and execution willingness.

[0256] The sensing node selection and analysis module is responsible for sensing node location analysis and cluster selection. The other three modules of task distribution are coupled through it, making the resource scheduling of the entire sensing system more balanced.

[0257] The solution provided by the embodiment of the present invention divides the grid and selects the central node to assist the task request node in distributing the task. The hierarchical search algorithm saves a lot of time spent on exhausting all possibilities to find the optimal solution, improves the speed of task allocation, and greatly reduces the redundant consumption of perception task allocation.

[0258] Figure 5 Provide a schematic diagram of a perception task distribution application for an embodiment of the present invention; Figure 5 For example, it is applicable to the above-mentioned IoT crowd-sensing crowdsourcing system. For the providers of the IoT crowd-sensing crowdsourcing system, the specific technical solutions of the IoT crowd-sensing crowdsourcing system can help them improve the system and improve the efficiency of the system. For the users of the IoT crowd-sensing crowdsourcing system, the resource allocation system reference model can provide them with a basis for selection and help them choose better services of the crowd-sensing crowdsourcing system. In the IoT crowd-sensing crowdsourcing system, there is a mutually restrictive relationship between the allocation of perception tasks and the resource overhead of the perception system. Only by systematically designing the unique perception business attributes and characteristics can an efficient task allocation and message distribution mechanism be formed, thereby reducing service latency and improving the efficiency of the crowdsourcing system.

[0259] The method provided in the embodiment of the present invention analyzes the general characteristics of the perception tasks of the perception layer and defines the perception capabilities of the perception nodes of the perception layer of the Internet of Things, and extracts features of the perception benefit target, perception cost and node capability through a machine learning method (such as Figure 3 ), build the perception layer task processor, and use the improved greedy algorithm (the specific method used has been Figure 1 , Figure 2The method shown in the figure is described and will not be repeated here), and a hierarchical search algorithm is used to increase the speed of task allocation and reduce the redundant time consumption of system resources.

[0260] The embodiment of the present invention also provides the construction of a mobile model of a sensing node. The mobile mode of the sensing node may be walking, driving, or taking a bus. Based on the historical mobile data corresponding to various mobile modes, the moving speed of the sensing node is predicted. In addition, when the relevant parameters of the coverage problem become more and the problem becomes more complicated, the method provided by the embodiment of the present invention can also be further improved and optimized in combination with business attributes.

[0261] Figure 6 A schematic diagram of the structure of a task processing device provided by an embodiment of the present invention; Figure 6 As shown, the task processing device is applied to a server and includes: a first processing module and a second processing module, wherein:

[0262] The first processing module is used to determine at least one execution node from at least one node set; the at least one node set is obtained by clustering based on feature information corresponding to each node in the at least one node; each execution node in the at least one execution node is determined based on feature information corresponding to each node in the at least one node set and task requirements corresponding to each task to be executed in the task set;

[0263] The second processing module is used to send each to-be-executed task in the task set to an execution node in the at least one execution node; wherein the task set includes: at least one to-be-executed task and a task requirement corresponding to each to-be-executed task.

[0264] In some embodiments, the first processing module is further used to determine the at least one node set; the at least one node set is obtained by clustering based on feature information of the at least one node.

[0265] Here, the first processing module is specifically used to determine at least one first node and at least one second node from at least one node; the first node represents the initial hub node; the second node is other nodes in the at least one node except the initial hub node;

[0266] Determining at least one first set based on a first feature of each first node in the at least one first node and a first feature of each second node in the at least one second node;

[0267] Clustering is performed based on the first features and the second features of the nodes included in each of the at least one first set to obtain the at least one node set;

[0268] The first feature represents an online location; the second feature represents other features in the feature information except the online location.

[0269] In some embodiments, the first processing module is specifically used to determine at least one execution node from at least one node set, including:

[0270] Searching the at least one node set based on the task requirements corresponding to each to-be-executed task in the task set, and establishing the task mapping relationship based on the search results; the task mapping relationship includes: at least one execution node and the to-be-executed tasks corresponding to each execution node in the at least one execution node;

[0271] The sending each to-be-executed task in the task set to an execution node in the at least one execution node includes:

[0272] Based on the task mapping relationship, each to-be-executed task in the task set is sent to an execution node in the at least one execution node.

[0273] Here, each node set in the at least one node set includes: a hub node; or includes: a hub node and at least one slave node;

[0274] The first processing module is specifically used to determine at least one type of subset of tasks to be executed; the subset of tasks to be executed is obtained by classifying the at least one task to be executed according to the task requirements corresponding to each task to be executed in the at least one task to be executed;

[0275] Taking a preset effect as a target, for each type of task subset to be executed in the at least one type of task subset to be executed, determining a corresponding target hub node from at least one hub node;

[0276] The task mapping relationship is determined based on each type of task subset to be executed and the target central node corresponding to each type of task subset to be executed; the task mapping relationship includes: the correspondence between each task to be executed in at least one type of task subset to be executed and each node in the node set where at least one target central node is located.

[0277] In some embodiments, the to-be-performed task is represented by a tuple; the tuple includes at least one of the following: task content, task requirements;

[0278] The task requirements include at least one of the following: task description, task location, and task time;

[0279] The task location includes: the center coordinates and radius of the task area;

[0280] The task time represents the timeliness of task execution;

[0281] Corresponding to the case where the number of tasks to be executed in the task set is at least two, the task requirement further includes: a time sequence relationship between each of the at least two tasks to be executed.

[0282] In some embodiments, the device further comprises: a third processing module, configured to send a task requirement corresponding to each to-be-performed task in the task set;

[0283] Receiving execution willingness and execution capability for each task to be executed from at least one node; the execution willingness indicates whether the node is willing to execute the task to be executed; the execution capability is related to feature information of the node executing the corresponding task to be executed;

[0284] Based on the execution willingness and execution capability of at least one node for each task to be executed, characteristic information of at least one node is determined.

[0285] The execution capability includes at least one of the following: online location, online time, budget cost, moving speed, and device status information;

[0286] The device status information includes at least one of the following: device sensitivity and network status.

[0287] The characteristic information includes at least one of the following:

[0288] Moving distance; the moving distance is determined based on the task position and the online position;

[0289] Execution time; the execution time is determined based on at least the time it takes for the node to move to the task location and the time it takes for the node to execute the task; the time it takes for the node to move to the task location is determined based on the online time, the moving distance and the moving speed; the time it takes for the node to execute the task includes the time it takes for the node to complete the corresponding task to be executed at the task location; the time it takes for the node to execute the task is related to the device status information;

[0290] Execution cost; the execution cost is determined based on the budget cost.

[0291] In some embodiments, the execution capability further includes: movement mode;

[0292] The third processing module is further used to determine the moving speed based on the moving mode; the moving speed is determined based on the prediction of historical moving data corresponding to the moving mode.

[0293] In some embodiments, the apparatus further comprises: a fourth processing module, configured to receive a task request, and determine at least one to-be-performed task and a task requirement corresponding to each to-be-performed task in the at least one to-be-performed task based on the task request;

[0294] The task set is determined based on the at least one task to be performed and a task requirement corresponding to each of the at least one task to be performed.

[0295] It should be noted that: the task processing device provided in the above embodiment only uses the division of the above program modules as an example to illustrate when implementing the corresponding task processing method. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the network device is divided into different program modules to complete all or part of the processing described above. In addition, the device provided in the above embodiment and the embodiment of the corresponding method belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0296] Figure 7 A schematic diagram of the structure of another task processing device provided by an embodiment of the present invention; Figure 7 As shown, the device 70 includes: a processor 701 and a memory 702 for storing a computer program that can be run on the processor; wherein, when the processor 701 is used to run the computer program, it executes: determining at least one execution node from at least one node set; the at least one node set is obtained by clustering based on feature information corresponding to each node in the at least one node; each execution node in the at least one execution node is determined based on feature information corresponding to each node in the at least one node set and task requirements corresponding to each task to be executed in the task set; each task to be executed in the task set is sent to an execution node in the at least one execution node; wherein the task set includes: at least one task to be executed and a task requirement corresponding to each task to be executed.

[0297] Among them, when the processor runs the computer program, it implements the corresponding processes implemented by the server in each method of the embodiment of the present invention, which will not be repeated here for the sake of brevity.

[0298] In actual application, the device 70 may further include: at least one network interface 703. The various components in the task processing device 70 are coupled together via a bus system 704. It is understood that the bus system 704 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 704 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 7 In the figure, various buses are marked as bus system 704. There may be at least one processor 701. The network interface 703 is used for wired or wireless communication between the task processing device 70 and other devices.

[0299] The memory 702 in the embodiment of the present invention is used to store various types of data to support the operation of the task processing device 70 .

[0300] The method disclosed in the above embodiment of the present invention can be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 701 or the instruction in the form of software. The above processor 701 may be a general processor, a digital signal processor (DSP, DiGital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 701 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 702. The processor 701 reads the information in the memory 702 and completes the steps of the above method in combination with its hardware.

[0301] In an exemplary embodiment, the task processing device 70 can be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to execute the aforementioned method.

[0302] An embodiment of the present invention also provides a computer-readable storage medium having a computer program stored thereon; when the computer program is executed by a processor, the following steps are performed: determining at least one execution node from at least one node set; the at least one node set is obtained by clustering feature information corresponding to each node in the at least one node; each execution node in the at least one execution node is determined based on feature information corresponding to each node in the at least one node set and task requirements corresponding to each task to be executed in a task set; and each task to be executed in the task set is sent to an execution node in the at least one execution node; wherein the task set includes: at least one task to be executed and a task requirement corresponding to each task to be executed.

[0303] Among them, when the computer program is executed by the processor, the corresponding processes implemented by the server in each method of the embodiment of the present invention are implemented, and for the sake of brevity, they are not repeated here.

[0304] In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0305] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0306] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0307] A person skilled in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), disks or optical disks, etc. Various media that can store program codes.

[0308] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0309] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A task processing method, characterized in that: The method is applied to a server, and the method comprises: Determine at least one execution node from at least one node set; the at least one node set is obtained by clustering based on feature information corresponding to each node in the at least one node; each execution node in the at least one execution node is determined based on feature information corresponding to each node in the at least one node set and task requirements corresponding to each task to be executed in the task set; Sending each to-be-executed task in the task set to an execution node in the at least one execution node; wherein the task set includes: at least one to-be-executed task and a task requirement corresponding to each to-be-executed task; The step of determining at least one execution node from at least one node set includes: Searching the at least one node set based on the task requirements corresponding to each to-be-executed task in the task set, and establishing a task mapping relationship based on the search results; the task mapping relationship includes: at least one execution node and the to-be-executed tasks corresponding to each execution node in the at least one execution node; the total execution time of each to-be-executed task in the task mapping relationship is the shortest; The sending each to-be-executed task in the task set to an execution node in the at least one execution node includes: Based on the task mapping relationship, each to-be-executed task in the task set is sent to an execution node in the at least one execution node.

2. The method according to claim 1, characterized in that The method further comprises: Determine the at least one node set; the at least one node set is obtained by clustering based on feature information of the at least one node.

3. The method according to claim 2, characterized in that The determining of the at least one node set comprises: Determine at least one first node and at least one second node from at least one node; the first node represents an initial hub node; the second node is other nodes in the at least one node except the initial hub node; Determining at least one first set based on a first feature of each first node in the at least one first node and a first feature of each second node in the at least one second node; Clustering is performed based on the first features and the second features of the nodes included in each of the at least one first set to obtain the at least one node set; The first feature represents an online location; the second feature represents other features in the feature information except the online location.

4. The method according to claim 1, characterized in that: Each node set in the at least one node set includes: a hub node; or includes: a hub node and at least one slave node; The step of searching the at least one node set based on the task requirements corresponding to each to-be-performed task in the task set, and establishing the task mapping relationship based on the search results, includes: Determine at least one subset of tasks to be performed; the subset of tasks to be performed is obtained by classifying the at least one task to be performed according to the task requirements corresponding to each task to be performed in the at least one task to be performed; Taking a preset effect as a target, for each type of task subset to be executed in the at least one type of task subset to be executed, determining a corresponding target hub node from at least one hub node; The task mapping relationship is determined based on each type of task subset to be executed and the target central node corresponding to each type of task subset to be executed; the task mapping relationship includes: the correspondence between each task to be executed in at least one type of task subset to be executed and each node in the node set where at least one target central node is located.

5. The method according to claim 4, characterized in that The task to be performed is represented by a tuple; the tuple includes at least one of the following: task content and task requirements; The task requirements include at least one of the following: task description, task location, and task time; The task location includes: the center coordinates and radius of the task area; The task time represents the timeliness of task execution; Corresponding to the case where the number of tasks to be executed in the task set is at least two, the task requirement further includes: a time sequence relationship between each of the at least two tasks to be executed.

6. The method according to claim 2, characterized in that The method further comprises: Sending task requirements corresponding to each task to be executed in the task set; Receiving execution willingness and execution capability for each task to be executed from at least one node; the execution willingness indicates whether the node is willing to execute the task to be executed; the execution capability is related to feature information of the node executing the corresponding task to be executed; Based on the execution willingness and execution capability of at least one node for each task to be executed, characteristic information of at least one node is determined.

7. The method according to claim 6, characterized in that The execution capability includes at least one of the following: online location, online time, budget cost, moving speed, and device status information; The device status information includes at least one of the following: device sensitivity and network status.

8. The method according to claim 7, characterized in that The characteristic information includes at least one of the following: Moving distance; the moving distance is determined based on the task location and the online location; Execution time; the execution time is determined based on at least the time it takes for the node to move to the task location and the time it takes for the node to execute the task; the time it takes for the node to move to the task location is determined based on the online time, the moving distance and the moving speed; the time it takes for the node to execute the task includes the time it takes for the node to complete the corresponding task to be executed at the task location; The duration of the node executing the task is related to the device status information; Execution cost; the execution cost is determined based on the budget cost.

9. The method according to claim 8, characterized in that The execution capability also includes: movement mode; The method further includes: determining the moving speed based on the moving mode; and predicting and determining the moving speed based on historical moving data corresponding to the moving mode.

10. The method according to claim 1, characterized in that The method further comprises: receiving a task request, and determining at least one to-be-performed task and a task requirement corresponding to each to-be-performed task in the at least one to-be-performed task based on the task request; The task set is determined based on the at least one task to be performed and a task requirement corresponding to each of the at least one task to be performed.

11. A task processing device, characterized in that: Applied to a server; the device comprises: a first processing module and a second processing module, wherein: The first processing module is used to determine at least one execution node from at least one node set; the at least one node set is obtained by clustering based on feature information corresponding to each node in the at least one node; each execution node in the at least one execution node is determined based on feature information corresponding to each node in the at least one node set and task requirements corresponding to each task to be executed in the task set; The second processing module is used to send each to-be-executed task in the task set to an execution node in the at least one execution node; wherein the task set includes: at least one to-be-executed task and a task requirement corresponding to each to-be-executed task; The first processing module is further used to search the at least one node set based on the task requirements corresponding to each to-be-executed task in the task set, and establish a task mapping relationship based on the search results; the task mapping relationship includes: at least one execution node and the to-be-executed tasks corresponding to each execution node in the at least one execution node; the total execution time of each to-be-executed task in the task mapping relationship is the shortest; The second processing module is further configured to send each to-be-executed task in the task set to an execution node in the at least one execution node based on the task mapping relationship.

12. A task processing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 10 are implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.