Energy adaptive task flow scheduling method and system for robot swarm

By constructing a spatiotemporal task flow graph and optimizing the task flow scheduling of robot clusters using a spatiotemporal graph convolutional network, and comprehensively considering the energy consumption of computation, motion, and communication, the problem of single energy consumption modeling in existing technologies is solved, and high-energy-efficiency task flow execution and reliable completion of critical tasks are achieved.

CN123177985APending Publication Date: 2026-11-27CENT SOUTH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611288089.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-24
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies fail to effectively consider the energy consumption of robot motion and perception and communication in robot swarm task scheduling, resulting in a single dimension of energy consumption modeling, ignoring the cost of spatial movement and task dependencies, and affecting the energy efficiency and task completion rate of the scheduling scheme.

Method used

A spatiotemporal graph convolutional network is used to construct a spatiotemporal task flow graph. Combining computational, motion, and communication energy consumption, a multi-objective greedy scheduling method is used to optimize the allocation of subtasks to processors and execution times, thereby achieving high-energy-efficiency scheduling under energy-constrained conditions.

Benefits of technology

While meeting task flow deadlines and spatial reachability constraints, the robot maximizes energy efficiency and critical task completion rate, reduces total energy consumption, balances energy consumption, and extends robot lifespan.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177985A_ABST
    Figure CN123177985A_ABST
Patent Text Reader

Abstract

The application discloses a kind of energy adaptive task flow scheduling methods and systems for robot cluster, the method of the present application includes constructing the space-time task flow graph of the subtask node of robot and its edge, the attribute of subtask node includes calculation time consumption matrix, spatial position coordinate and perception communication data volume;Edge includes the dependent edge between subtask node and the space transfer edge of undirected;Optimal total energy budget is estimated from space-time task flow graph using trained space-time graph convolution network, which refers to the minimum total energy consumption under the premise that the total completion time of conditional task flow does not exceed deadline;Under the constraint of optimal total energy budget, assign responsible processor and actual start execution time for each subtask in space-time task flow graph.The present application aims to realize the high energy efficiency scheduling of task flow execution under energy limited condition, maximize energy efficiency and key task completion rate under the premise of meeting task flow deadline constraint and spatial accessibility constraint.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of robot swarm task scheduling and energy management technology, specifically relating to an energy-adaptive task flow scheduling method and system for robot swarms. Background Technology

[0002] Robot swarms consist of several heterogeneous robots with sensing, computing, and movement capabilities. They collaborate to execute complex task flows to accomplish work objectives that a single robot cannot achieve independently. Typical application scenarios for robot swarms include: collaborative operations of heterogeneous sorting and handling robots in warehousing and logistics centers, multi-robot inspections in industrial parks, and collaborative search and rescue operations using drones and ground robots at disaster sites. In these scenarios, robots are typically powered by batteries, which have limited energy supply and cannot be replenished online. Meanwhile, the increasing computationally intensive tasks (such as CNN-based object recognition, SLAM real-time mapping, and path planning) pose a significant challenge to the robots' energy systems.

[0003] Existing task scheduling technologies for robot swarms are mainly studied from the following two directions. (1) Computational task flow scheduling. This type of method models the computational tasks performed by the robot as a directed acyclic graph (DAG), where nodes represent subtasks and edges represent data dependencies between subtasks. Classic algorithms such as the heterogeneous earliest completion time algorithm HEFT and the single-processor critical path algorithm CPOP focus on how to allocate subtasks in the DAG to heterogeneous processors to minimize the overall completion time. Subsequent studies have introduced energy budget constraints on this basis, such as heterogeneous budget constraint scheduling HBCS and deadline-budget constraint scheduling DBCS, to optimize computational energy consumption under deadline constraints. However, the above methods all assume that the processor is a fixed facility and only consider the computational power consumption of the processor, without addressing the two key characteristics that distinguish robots from fixed servers: characteristic 1, the execution of subtasks often corresponds to specific physical locations, and the robot needs to move between different task points, generating non-negligible motion energy consumption; characteristic 2, the robot also needs to perform sensor data acquisition and wireless communication, generating additional sensing and communication energy consumption. (2) Multi-robot task allocation. These methods employ market auction mechanisms, contract network protocols, or swarm intelligence algorithms to allocate independent tasks among multiple robots to minimize total distance traveled or total energy consumption. However, these methods treat each task as an indivisible atomic unit, ignoring the DAG dependencies between subtasks within complex task flows, and thus failing to fine-tune the execution timing at the subtask level. Overall, existing technologies suffer from three core flaws: First, energy consumption modeling is one-dimensional, considering only processor computational power consumption and failing to incorporate robot-specific motion and perception / communication energy consumption into a unified scheduling optimization framework. In real robot systems, motion energy consumption can account for 30% to 60% of total energy consumption; ignoring this dimension will cause the scheduling scheme to deviate significantly from expectations during physical execution. Second, task models lack a spatial dimension; existing DAG models only describe the computational dependencies of subtasks, not their physical location information, preventing the scheduler from perceiving the spatial movement costs associated with subtask switching. Third, existing methods rely on heuristic binary search or fully connected neural networks for energy budget estimation. The former is time-consuming to solve, while the latter cannot capture the interaction between the spatial proximity features and the time-dependent features of nodes in the task graph, resulting in limited budget estimation accuracy and thus affecting the overall energy efficiency of scheduling decisions. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to provide an energy-adaptive task flow scheduling method and system for robot swarms, which addresses the above-mentioned problems in the prior art. The present invention aims to achieve high-efficiency scheduling of task flow execution under energy-constrained conditions, and maximize energy efficiency and critical task completion rate while satisfying task flow deadline constraints and spatial reachability constraints.

[0005] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows: An energy-adaptive task flow scheduling method for robot swarms includes the following steps: S101, construct a spatiotemporal task flow graph consisting of the robot's sub-task nodes and their edges. The attributes of the sub-task nodes include the computation time matrix, spatial position coordinates, and the amount of perception and communication data. The edges include directed dependency edges representing data dependencies between sub-task nodes and undirected spatial transition edges between any pair of sub-task nodes. The weight of the undirected spatial transition edge is the Euclidean distance between the pair of sub-task nodes. S102, use the trained spatiotemporal graph convolutional network to estimate the optimal total energy budget from the spatiotemporal task flow graph. The optimal total energy budget refers to the minimum total energy consumption under the premise that the total completion time of the task flow does not exceed the deadline. S103, under the constraint of the optimal total energy budget, assigns a responsible processor and the actual start time to each subtask in the spatiotemporal task flow graph.

[0006] Optionally, step S102 includes: S201 uses a trained spatiotemporal graph convolutional network to estimate the optimal total energy budget from the spatiotemporal task flow graph; S202, a heuristic budget verification method based on binary search is used to verify the deadline of the optimal total energy budget obtained by the spatiotemporal graph convolutional network inference. This includes: using the optimal total energy budget as a scheduling budget constraint, generating a scheduling scheme using a preset scheduling algorithm and obtaining the total completion time of the scheduling scheme; if the total completion time of the scheduling scheme does not exceed the preset deadline, the scheduling scheme is verified and the optimal total energy budget is accepted, and the process proceeds to step S103; otherwise, a binary search is performed between the lower and upper bounds of the energy budget, where the lower bound of the energy budget refers to the total energy cost when all subtasks are executed using the processor with the lowest energy consumption, and the upper bound of the energy budget refers to the total energy cost when all subtasks are executed using the processor with the highest energy consumption; using the searched energy budget as a scheduling budget constraint, generating a scheduling scheme using a preset scheduling algorithm and obtaining the total completion time of the scheduling scheme; finding the smallest energy budget that satisfies the preset deadline constraint to replace the optimal total energy budget, and then proceeding to step S103.

[0007] Optionally, in step S102, the spatiotemporal graph convolutional network includes a spatial graph convolutional layer, a temporal graph convolutional layer, and a cross-modal fusion layer. The spatial graph convolutional layer is used for message passing on spatial transition edges, the temporal graph convolutional layer is used for message passing on dependency edges, and the cross-modal fusion layer is used to concatenate the spatial embedding output by the spatial graph convolutional layer and the temporal embedding output by the temporal graph convolutional layer. The interaction weights of the two are learned through a multi-head attention mechanism, and the feature embedding vector of the whole graph is obtained through global average pooling. Finally, the optimal energy consumption control rate is output through a fully connected layer and a sigmoid activation function, and the optimal energy consumption control rate is mapped to the optimal total energy budget.

[0008] Optionally, mapping the optimal energy consumption control rate to the optimal total energy budget refers to converting the optimal energy consumption control rate into the optimal total energy budget based on the conversion relationship between the energy budget and the energy consumption control rate. ; in, For the optimal total energy budget, The total energy cost of using the most power-consuming processor to execute all subtasks. The total energy cost when using the least power-consuming processor for all subtasks. To achieve the optimal energy consumption control rate, , Corresponding to the most energy-efficient configuration, The fastest configuration is available.

[0009] Optionally, step S103 includes: S301, calculate each subtask separately. priority And according to priority Sort: ; in, For subtasks Average execution time across all processors For subtasks sub-tasks The communication cost between them For subtasks The set of successor subtasks; S302 pre-allocates the optimal total energy budget to each subtask according to the energy consumption span ratio. : ; in, For subtasks Energy budget, The total energy cost of using the most power-consuming processor to execute all subtasks. The total energy cost when using the least power-consuming processor for all subtasks. Total energy cost of executing subtasks on the processor min and max represent the minimum and maximum values, respectively. S303, Computation Subtask In each processor The total energy cost of execution, including computational energy consumption, motion energy consumption, and communication energy consumption, is used to allocate energy costs to each subtask. Select the processor and start execution time.

[0010] Optionally, the calculation function expression for the total energy cost in step S303 is: ; in, For subtasks In each processor The total energy cost of execution, For processor The operating current, For subtasks In each processor Execution time on The terrain energy consumption coefficient is related to the terrain type. For robot maintenance quality, It is the acceleration due to gravity. To move the robot from the position of the immediate subtask execution The Euclidean distance of the execution location. For the speed-energy consumption nonlinear coefficient, For the robot's moving speed, For wireless communication transmission power, The amount of data to be transmitted This refers to the communication bandwidth.

[0011] Optionally, in step S303, the total energy cost is used to determine the cost of each subtask. The selection of the processor and start execution time includes: S401, sequentially traverse the sorted subtask queue, and adopt a forward earliest time scheduling strategy. Under the constraints of optimal total energy budget and non-preemptive processor, calculate the earliest start time for each subtask along the topological order of the dependent edges in the spatiotemporal task flow graph. and the corresponding allocated processor; S402, the sorted subtask queue is traversed in reverse order, and a reverse latest time scheduling strategy is adopted. Starting from the deadline of the exit subtask, the latest start time of each subtask is calculated along the reverse topological order of the dependent edges in the spatiotemporal task flow graph. The earliest start time will be used. With the latest start time The defined time interval serves as the schedulable space for subtasks. ; S403, in each subtask schedulable space In the process, an integer programming algorithm is used to determine the optimal actual start time for each subtask. The optimization objective is to minimize the variance of total energy cost over time. The constraints used in the integer programming algorithm include that the actual start time of the specified critical task must not be later than its preset latest safe execution time.

[0012] The present invention also provides an energy-adaptive task flow scheduling system for robot swarms, comprising an interconnected microprocessor and a memory, wherein the microprocessor is programmed or configured to execute the energy-adaptive task flow scheduling method for robot swarms.

[0013] The present invention also provides a computer-readable storage medium storing a computer program or instructions that are programmed or configured to execute the energy-adaptive task flow scheduling method for robot swarms via a processor.

[0014] The present invention also provides a computer program product, including a computer program or instructions, which are programmed or configured to execute the energy-adaptive task flow scheduling method for robot swarms via a processor.

[0015] Compared with existing technologies, the present invention mainly achieves the following beneficial effects: The method of the present invention extends the traditional DAG task model into a spatiotemporal task flow graph that includes spatial location dimension information. On this basis, it uses a spatiotemporal graph convolutional network to achieve accurate energy budget estimation, and completes joint optimization of subtasks to processors and execution time through spatial constraint-aware multi-objective greedy scheduling. It comprehensively considers three modes of robot computing energy consumption, motion energy consumption and communication energy consumption, and achieves high-energy-efficiency scheduling of task flow execution under energy-constrained conditions. Under the premise of satisfying task flow deadline constraints and spatial reachability constraints, it maximizes energy efficiency and critical task completion rate. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the basic process of the method in an embodiment of the present invention.

[0017] Figure 2 This is a schematic diagram comparing the energy consumption of task flow execution using different scheduling methods in embodiments of the present invention.

[0018] Figure 3 This is a schematic diagram comparing current fluctuations under different scheduling methods in an embodiment of the present invention.

[0019] Figure 4 This is a schematic diagram comparing the equivalent lifetime of different scheduling methods in embodiments of the present invention. Detailed Implementation

[0020] To enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention will be further described in detail below with reference to the accompanying drawings in the embodiments of the present invention.

[0021] like Figure 1 As shown, the Robot Energy-Efficient Task Scheduling (REE-TS) method for robot swarms in this embodiment includes the following steps: S101, Construct a spatio-temporal task dependency graph (ST-TDAG) consisting of the robot's sub-task nodes and their edges. The attributes of the sub-task nodes include the computation time matrix, spatial position coordinates, and the amount of sensing and communication data. The edges include directed dependency edges representing data dependencies between sub-task nodes and undirected spatial transition edges between any pair of sub-task nodes. The weight of the undirected spatial transition edge is the Euclidean distance between the pair of sub-task nodes. S102, use the trained spatiotemporal graph convolutional network ST-GCN to estimate the optimal total energy budget from the spatiotemporal task flow graph. The optimal total energy budget refers to the minimum total energy consumption under the premise that the total completion time of the task flow does not exceed the deadline. S103, under the constraint of the optimal total energy budget, assigns a responsible processor and the actual start time to each subtask in the spatiotemporal task flow graph.

[0022] Step S101 is used to construct the spatiotemporal task flow graph ST-TDAG composed of the robot's sub-task nodes and their edges. Compared with the traditional directed acyclic graph (DAG), the spatiotemporal task flow graph ST-TDAG is extended in two types of information: (1) In terms of node attributes, each sub-task node In addition to the original computation time matrix (This indicates that the subtask is on a heterogeneous processor) In addition to the execution time, spatial location coordinates are added. and sensing communication data volume Two attributes. (2) In terms of edge structure, in addition to the original directed computational dependency edges. In addition to (representing data dependencies between subtasks), a new undirected space transfer edge is added. Its edge weight is the Euclidean distance between the positions of the two subtasks. The physical meaning is that the robot starts from a subtask. The execution location is moved to The spatial distance traversed by the execution location. The construction rules of the spatiotemporal task flow graph ST-TDAG are as follows: If the subtask execution dependencies The output result is then used to establish a directed computational dependency edge in the graph. For any two subtask nodes in ST-TDAG, establish an undirected spatial transfer edge. The edge weights are the Euclidean distances between the position coordinates. This graph structure with two types of edges allows subsequent graph convolution operations to propagate information simultaneously in both the "computational dependency" and "spatial proximity" dimensions. The spatial transfer edges and the motion energy consumption model together embody the spatial reachability constraint, that is, the robot must move to the execution position of the subtask before executing the subtask, and the motion energy consumption and time consumed in this movement process are constrained in the calculation of energy budget and start execution time.

[0023] Step S102 is the first stage—the energy budget estimation stage based on the spatiotemporal graph convolutional network. In this first stage, this embodiment uses the spatiotemporal graph convolutional network ST-GCN to estimate the optimal total energy budget from the spatiotemporal task flow graph ST-TDAG. The optimal total energy budget refers to the condition that the total completion time of the task flow does not exceed the deadline. The minimum total energy consumption under the given conditions. There is a non-linear negative correlation between energy budget and completion time—the more generous the budget, the more likely the scheduler can prioritize using high-performance (high-power) processors to compress the time, resulting in a shorter completion time; the tighter the budget, the more forced the scheduler is to use low-power processors, but the completion time may exceed the deadline. Therefore, there exists a critical value that ensures the completion time does not exceed the deadline; this critical value is the optimal budget. Specifically, in this embodiment, step S102 includes: S201 uses a trained spatiotemporal graph convolutional network to estimate the optimal total energy budget from the spatiotemporal task flow graph; S202, a heuristic budget verification method based on binary search is used to verify the deadline of the optimal total energy budget obtained by the spatiotemporal graph convolutional network inference. This includes: using the optimal total energy budget as a scheduling budget constraint, generating a scheduling scheme using a preset scheduling algorithm and obtaining the total completion time of the scheduling scheme; if the total completion time of the scheduling scheme does not exceed the preset deadline, the scheduling scheme is verified and the optimal total energy budget is accepted, and the process proceeds to step S103; otherwise, a binary search is performed between the lower bound (total energy cost when all subtasks are executed using the processor with the lowest energy consumption) and the upper bound (total energy cost when all subtasks are executed using the processor with the highest energy consumption) of the energy budget, using the searched energy budget as a scheduling budget constraint, generating a scheduling scheme using a preset scheduling algorithm and obtaining the total completion time of the scheduling scheme, finding the smallest energy budget that satisfies the preset deadline constraint to replace the optimal total energy budget, and then proceeding to step S103.

[0024] In step S102 of this embodiment, the spatiotemporal graph convolutional network ST-GCN includes a spatial graph convolutional layer, a temporal graph convolutional layer, and a cross-modal fusion layer. The spatial graph convolutional layer is used for message passing on spatial transition edges, the temporal graph convolutional layer is used for message passing on dependency edges, and the cross-modal fusion layer is used to concatenate the spatial embeddings output by the spatial graph convolutional layer and the temporal embeddings output by the temporal graph convolutional layer. The interaction weights of the two are learned through a multi-head attention mechanism, and the feature embedding vector of the entire graph is obtained through global average pooling. Finally, the optimal energy consumption control rate is output through a fully connected layer and a sigmoid activation function, and the optimal energy consumption control rate is mapped to the optimal total energy budget. The network structure of this spatiotemporal graph convolutional network ST-GCN consists of three core cascaded modules: the first module is the spatial graph convolutional layer, which performs message passing on spatial transition edges of the spatiotemporal task flow graph ST-TDAG. Message passing is performed on the top level. Message passing uses a Chebyshev polynomial approximation of spectral graph convolution for each subtask node. The first module aggregates features from other subtask nodes within its spatial neighborhood (i.e., physically adjacent nodes). The spatial neighborhood is not determined based on a fixed threshold, but rather by automatically identifying which spatial neighbors significantly influence the energy features of the current node through learnable attention weights. The second module is a temporal graph convolutional layer, which handles the computational dependencies of the spatiotemporal task flow graph ST-TDAG. Message passing is performed on the upper layer. The passing direction is executed once each along the directed edge in the forward direction (from predecessor to successor) and in the reverse direction (from successor to predecessor), ensuring that deadline constraint information propagates from predecessor to successor and task urgency information is fed back from successor to predecessor. The third module is a cross-modal fusion layer, which concatenates the spatial embeddings output from the spatial graph convolutional layer and the temporal embeddings output from the temporal graph convolutional layer. The interaction weights between the two are learned through a multi-head attention mechanism, and the feature embedding vector for the entire graph is obtained through global average pooling. Finally, a scalar value—the optimal energy consumption control rate—is output through a fully connected layer and a sigmoid activation function. .

[0025] In this embodiment, mapping the optimal energy consumption control rate to the optimal total energy budget refers to converting the optimal energy consumption control rate into the optimal total energy budget based on the conversion relationship between the energy budget and the energy consumption control rate. ; in, For the optimal total energy budget, The total energy cost of using the most power-consuming processor to execute all subtasks. The total energy cost when using the least power-consuming processor for all subtasks. To achieve the optimal energy consumption control rate, , Corresponding to the most energy-efficient configuration, This corresponds to the fastest configuration. In this embodiment, the network output of the Spatiotemporal Graph Convolutional Network (ST-GCN) is designed as follows: Instead of directly outputting the optimal total energy budget The reason is that the upper and lower bounds of energy consumption vary greatly (up to several orders of magnitude) for different task flows, and directly regressing to the absolute energy consumption value would make network training difficult; while Normalizing the output to a uniform range is beneficial for network convergence.

[0026] The use of the Spatiotemporal Graph Convolutional Network (ST-GCN) is divided into two stages: The first stage—offline training—uses a heuristic optimal budget strategy (a budget lookup method based on binary search) to generate a large number of training samples. Each sample consists of the spatiotemporal task flow graph (ST-TDAG) and its corresponding optimal total energy budget. The ST-GCN fits this mapping through supervised learning. In the online inference stage, for task flows arriving in real-time, the ST-GCN is preferentially used for fast inference, and heuristic methods are used to validate the inference results against deadlines: if... The completion time of the scheduling result under the budget shall not exceed If the solution is found to be feasible, it is accepted; otherwise, it reverts to the heuristic method to solve the problem again, ensuring a feasible solution is provided in all cases. The second stage is a space-constraint-aware multi-objective greedy scheduling. Under the energy budget constraint output from the first stage, the second stage executes step S103 to assign a responsible processor and an actual start time to each subtask in the task flow. Specifically, in this embodiment, step S103 includes: S301, calculate each subtask separately. priority And according to priority Sort: ; in, For subtasks Average execution time across all processors For subtasks sub-tasks The communication cost between them For subtasks The set of successor subtasks; for the exit subtask (No follow-up task) then priority ,in The priority is preset to a fixed level. Since all subtasks are predecessors or indirect predecessors of the exit subtask, the priority can be assigned to all subtasks at once by recursively calculating from the exit subtask along the reverse topological order of the dependency edges. The scheduling queue is obtained by arranging the subtasks in descending order of priority, ensuring that the predecessor subtask is processed by the scheduler before the successor subtask. S302 pre-allocates the optimal total energy budget to each subtask according to the energy consumption span ratio. The pre-allocation principle states that the independent budget allocated to each subtask should reflect the proportion of its energy consumption span in the total energy consumption span, which can be expressed as: ; in, For subtasks Energy budget, The total energy cost of using the most power-consuming processor to execute all subtasks. The total energy cost when using the least power-consuming processor for all subtasks. Total energy cost of executing subtasks on the processor min and max represent the minimum and maximum values, respectively. In actual scheduling, the remaining budget after a high-priority subtask is consumed can be inherited by a low-priority subtask, ensuring that the budget is fully utilized. S303, Computation Subtask In each processor The total energy cost of execution, including computational energy consumption, motion energy consumption, and communication energy consumption, is used to allocate energy costs to each subtask. Select the processor and start execution time.

[0027] Traditional scheduling methods select processors based solely on processor computing speed and power consumption. This embodiment, however, introduces a complete robot energy consumption perspective. The total energy cost in step S303 includes computing energy consumption, motion energy consumption, and communication energy consumption, thus enabling processor selection under a three-modal energy consumption model encompassing computing, motion, and communication energy consumption. The calculation function expression for the total energy cost in step S303 of this embodiment is as follows: ; in, For subtasks In each processor The total energy cost of execution, For processor The operating current, For subtasks In each processor Execution time on The terrain energy consumption coefficient is related to the terrain type. For robot maintenance quality, It is the acceleration due to gravity. To move the robot from the position of the immediate subtask execution The Euclidean distance of the execution location. For the speed-energy consumption nonlinear coefficient, For the robot's moving speed, For wireless communication transmission power, The amount of data to be transmitted This represents the communication bandwidth. In the above formula, the first term is for calculating energy consumption. For processor The operating current, for The first item is the execution time on this processor. The second item is the motion energy consumption. For robot maintenance quality, It is the acceleration due to gravity. To move the robot from the position of the immediate subtask execution The Euclidean distance of the execution location. For the robot's moving speed, The terrain energy consumption coefficient is related to the terrain type (1.0 for flat ground, 1.5 for grassland, and 3.0 for soft sandy ground). The first term represents the speed-energy consumption nonlinear coefficient (characterizing nonlinear losses such as air resistance at high speeds). The third term represents communication energy consumption. For wireless communication transmission power, The amount of data to be transmitted This refers to communication bandwidth. The sum of these three factors constitutes the complete energy cost of the subtask, and the scheduler selects the processor based on this complete cost, not just energy consumption.

[0028] When selecting a processor and start execution time for a subtask, the following three steps are performed. Step 1: Run the forward earliest start time scheduling strategy to calculate the earliest start execution time for each subtask under energy budget constraints and processor non-preemption constraints. and the corresponding processor The second step is to traverse the subtask queue in reverse order, run the reverse latest time scheduling strategy, and start from the exit subtask (the latest completion time is set to the deadline). Start by reversing the calculation to determine the latest start time for each subtask. Time range Composition of subtasks The third step is to determine the optimal actual start execution time for each subtask within its schedulable space using an integer programming model. The optimization objective is to minimize the variance of the total energy cost over time, i.e., to achieve a temporally balanced distribution of energy consumption—smaller energy fluctuations mean more stable energy consumption, which helps to mitigate deep discharge and capacity decay of the battery, thereby extending the robot's long-term lifespan. The actual start time of critical tasks (such as perception and localization, obstacle avoidance, and other safety-critical sub-tasks) must not be later than their preset latest safe execution time. The integer programming model is solved independently for each sub-task, with the optimization variables being the binary selection variables for each candidate time point within the schedulable space for that sub-task. The model is small in scale and can be efficiently solved using standard solvers such as CPLEX or Gurobi. Specifically, in step S303 of this embodiment, the total energy cost is used to optimize the energy consumption of each sub-task. The selection of the processor and start execution time includes: S401, sequentially traverse the sorted subtask queue, and adopt a forward earliest time scheduling strategy. Under the constraints of optimal total energy budget and non-preemptive processor, calculate the earliest start time for each subtask along the topological order of the dependent edges in the spatiotemporal task flow graph. and the corresponding allocated processor; S402, the sorted subtask queue is traversed in reverse order, and a reverse latest time scheduling strategy is adopted. Starting from the deadline of the exit subtask, the latest start time of each subtask is calculated along the reverse topological order of the dependent edges in the spatiotemporal task flow graph. The earliest start time will be used. With the latest start time The defined time interval serves as the schedulable space for subtasks. ; S403, in each subtask schedulable space In the process, an integer programming algorithm is used to determine the optimal actual start time for each subtask. The optimization objective is to minimize the variance of total energy cost over time. The constraints used in the integer programming algorithm include that the actual start time of the specified critical task must not be later than its preset latest safe execution time.

[0029] To verify the effectiveness of the energy-adaptive task flow scheduling method for robot swarms in this embodiment, different scenarios were used for verification.

[0030] Verification Scenario 1: Warehouse Sorting Robot Cluster Scenario. In Verification Scenario 1, a cluster of 8 heterogeneous sorting robots was deployed in a large intelligent warehouse. The 8 robots were divided into two categories: 4 were light-duty wheeled sorting robots with a total curb weight of... kg, maximum moving speed m / s; 4 units are heavy-duty tracked transport robots, with a curb weight of kg, maximum moving speed m / s. Each robot is equipped with three heterogeneous computing processors: one CPU (operating current...) A) A GPU (operating current) A) and an NPU (operating current) A). The robot is powered by a 48V / 20Ah lithium-ion battery pack and communicates via WiFi 6 protocol (transmission power). mW, bandwidth (kbps). The warehouse floor is a flat epoxy floor with a topographic coefficient of [missing information]. velocity nonlinear coefficient The warehouse management system publishes sorting task flows in real time. Each task flow includes sub-tasks such as product image recognition (CNN model inference), path planning (A* algorithm search), robotic arm grasping control, and material handling. Each sub-task corresponds to different physical location coordinates within the warehouse. The scheduling system operates as follows: Step 1: Construct ST-TDAG: Analyze the sub-task sets and data dependencies of the task flow to form computational dependency edges. Obtain the physical location coordinates of each subtask based on the warehouse floor plan. Calculate the Euclidean distance between each pair of subtasks as the spatial transition edge. The weights are determined. The second step is ST-GCN energy budget estimation: During offline training, a random task flow generator generates a large number of training samples. Each sample consists of an ST-TDAG graph structure and its optimal total energy budget. After training, ST-GCN is deployed online. During online inference, the current ST-TDAG graph is input into the network to quickly output the optimal energy consumption control rate, thereby calculating the energy budget. A heuristic method is used to verify the deadline constraint. The third step is spatial constraint-aware multi-objective greedy scheduling: Subtasks are arranged in descending priority to construct a scheduling queue, starting from the entry subtask and allocating tasks sequentially. When processing a subtask, the distance between its position coordinates and the already allocated predecessor subtask position is calculated. This distance, along with the robot's mass, speed, and terrain coefficient, is substituted into the motion energy consumption formula. The sum of motion energy consumption and computational energy consumption is used as the complete energy cost for processor selection. The schedulable space of subtasks is determined through the forward earliest time scheduling strategy and the reverse latest time scheduling strategy. Within the schedulable space, an integer programming model is used to select the optimal start time for each subtask, achieving temporal balance of energy consumption. By selecting a processor based on trimodal energy consumption modeling and motion energy consumption perception, this method has a significant energy efficiency advantage over traditional methods that only consider computational energy consumption in actual warehousing scenarios. By achieving a temporal balanced distribution of energy consumption, it effectively slows down the capacity decay of lithium-ion batteries and extends the long-term service life of robots. The on-time completion rate of key tasks (path planning and robotic arm grasping control) is reliably guaranteed.

[0031] Verification Scenario 2: Multi-robot Inspection Scenario in an Industrial Park. In Verification Scenario 2, six heterogeneous inspection robots were deployed in a large industrial park, including four wheeled ground inspection robots and two quadcopter drones. The ground robots are equipped with CPUs and NPUs, while the drones are equipped with CPUs and GPUs. All robots are powered by lithium polymer battery packs and communicate via a 5G network. The inspection points in the industrial park include an outdoor transformer area (cement floor), an outdoor pipeline area (gravel floor), and an indoor factory area (epoxy flooring), with a wide spatial distribution. The inspection task flow includes subtasks such as visible light image acquisition, infrared thermal imaging temperature measurement, CNN-based defect detection, inspection report generation, and uploading. Compared to the warehouse scenario in this embodiment, the prominent feature of this scenario is the large spatial distribution of inspection points, the long flight distances of robots (especially drones) between inspection points, and the dominance of motion energy consumption in the total energy consumption. When using this method for scheduling, the spatial constraint perception mechanism plays a crucial role: when the scheduler assigns subtasks to the UAV, it simultaneously considers computation time and power consumption, aerodynamic drag losses due to flight distance and speed, and communication energy consumption for image data transmission. This is due to the nonlinear coefficient of the speed. To mitigate the energy consumption of high-speed motion, the scheduler tends to assign inspection subtasks that are spatially adjacent to each other to the same drone and schedule them for execution in adjacent time slices, avoiding frequent back-and-forth trips between distant inspection points. For computationally intensive CNN defect detection subtasks, if the drone's GPU power consumption is too high, causing the total energy consumption of the three modes to exceed the budget constraint, the scheduler automatically chooses to transmit the detection task back to the ground robot's NPU via the 5G network for execution, utilizing the ground robot's low-power NPU to complete the computation. This method shows particularly significant energy efficiency improvements in scenarios with large spatial distribution, effectively extending the drone's single-charge endurance and increasing the number of inspection points that can be completed on a single charge.

[0032] To verify the performance of the energy-adaptive task flow scheduling method for robot swarms in this embodiment, a comparative experiment was also conducted on a robot swarm simulation platform. The simulation platform was configured with 8 heterogeneous robots (parameters same as in Embodiment 1), and more than 1000 task flow instances were randomly generated (size range 1–150 subtasks, number of processors 3–10, deadline coefficient 1.1–10, processor operating current 0.7A–2.4A). The energy-adaptive task flow scheduling method (REE-TS) for robot swarms in this embodiment was compared with five existing methods (HEFT, CPOP, HBCS, DBCS, MSLBL), with the integer programming method IP as the optimal baseline. The indicators used included task flow execution energy consumption (mAh), current fluctuation (mA²h), and equivalent lifetime (h). The results are shown in Table 1.

[0033] Table 1: Comparison of Experimental Results of Various Scheduling Methods

[0034] As shown in Table 1, the Energy Adaptive Task Flow Scheduling Method (REE-TS) for robot swarms in this embodiment has the lowest energy consumption, 418mAh, which is tied with MSLBL (approximately 32% lower than HEFT). Regarding current fluctuation, REE-TS (3262 mA²h) is closest to the integer programming baseline IP (3251 mA²h), achieving energy consumption timing balance and significantly outperforming all existing heuristic methods. This indicates that the Energy Adaptive Task Flow Scheduling Method (REE-TS) for robot swarms in this embodiment effectively suppresses processor current fluctuations while reducing total energy consumption, making the robot battery discharge process more stable and helping to mitigate capacity decay caused by deep discharge. In a Monte Carlo experiment with 1186 random task flows, the average energy efficiency ratio of the Energy Adaptive Task Flow Scheduling Method (REE-TS) for robot swarms in this embodiment compared to existing methods is 0.69–0.80, representing a reduction in energy consumption of approximately 20%–31%, and an average reduction in current fluctuation of approximately 50%–60%. In long-term simulation of robot swarm operation, the equivalent lifetime under the control of the Energy Adaptive Task Flow Scheduling Method (REE-TS) for robot swarms in this embodiment reaches 1944.07 hours, which is about 7% to 8% longer than existing methods. A comparison of various scheduling methods in terms of task flow execution energy consumption, current fluctuation, and equivalent lifetime is provided. Figure 2 , Figure 3 and Figure 4 As shown. According to Figure 2 , Figure 3 and Figure 4 It can be seen that, compared with the existing HEFT, CPOP, HBCS, DBCS, MSLBL and IP methods, the energy adaptive task flow scheduling method (REE-TS) for robot swarms in this embodiment has better task flow execution energy consumption, current fluctuation and equivalent lifetime.

[0035] In summary, the energy-adaptive task flow scheduling method for robot swarms presented in this embodiment has the following advantages: First, the spatiotemporal graph convolutional network ST-GCN, through its dual-channel design of spatial graph convolution and temporal graph convolution, explicitly captures the interaction between the spatial distribution characteristics and temporal dependency characteristics of tasks, significantly improving the estimation accuracy of energy budgets compared to fully connected network methods. Second, the trimodal energy consumption model incorporates motion energy consumption and communication energy consumption into processor selection criteria, resulting in lower execution energy consumption of the scheduling scheme in the robot's real physical environment compared to traditional methods that only consider computational energy consumption, with the advantage becoming more pronounced in scenarios where motion energy consumption accounts for a higher proportion. Third, because energy consumption is evenly distributed along the time axis, the damage to battery life caused by deep discharge is avoided, effectively increasing the amount of tasks completed per unit of energy, and reliably ensuring the timely completion of critical tasks (such as perception and localization, obstacle avoidance, etc.). Fourth, the hybrid heuristic framework combines the fast inference capability of the spatiotemporal graph convolutional network ST-GCN with the rigorous feasible solution guarantee capability of heuristic methods, achieving a good balance between real-time performance and robustness.

[0036] Furthermore, this embodiment also provides an energy-adaptive task flow scheduling system for robot swarms, including a microprocessor and a memory interconnected, wherein the microprocessor is programmed or configured to execute the energy-adaptive task flow scheduling method for robot swarms. This embodiment also provides a computer-readable storage medium storing a computer program or instructions programmed or configured to execute the energy-adaptive task flow scheduling method for robot swarms via a processor. This embodiment also provides a computer program product, including a computer program or instructions programmed or configured to execute the energy-adaptive task flow scheduling method for robot swarms via a processor.

[0037] Those skilled in the art will understand that the technical solutions provided by this invention may take the form of a method, system, or computer program product. Therefore, this invention may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this invention may take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, produce an implementation of the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0038] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. An energy-adaptive task flow scheduling method for robot swarms, characterized in that, Includes the following steps: S101, construct a spatiotemporal task flow graph consisting of the robot's sub-task nodes and their edges. The attributes of the sub-task nodes include the computation time matrix, spatial position coordinates, and the amount of perception and communication data. The edges include directed dependency edges representing data dependencies between sub-task nodes and undirected spatial transition edges between any pair of sub-task nodes. The weight of the undirected spatial transition edge is the Euclidean distance between the pair of sub-task nodes. S102, use the trained spatiotemporal graph convolutional network to estimate the optimal total energy budget from the spatiotemporal task flow graph. The optimal total energy budget refers to the minimum total energy consumption under the premise that the total completion time of the task flow does not exceed the deadline. S103, under the constraint of the optimal total energy budget, assigns a responsible processor and the actual start time to each subtask in the spatiotemporal task flow graph.

2. The energy-adaptive task flow scheduling method for robot swarms according to claim 1, characterized in that, Step S102 includes: S201 uses a trained spatiotemporal graph convolutional network to estimate the optimal total energy budget from the spatiotemporal task flow graph; S202, a heuristic budget verification method based on binary search is used to verify the deadline of the optimal total energy budget obtained by the spatiotemporal graph convolutional network inference. This includes: using the optimal total energy budget as a scheduling budget constraint, generating a scheduling scheme using a preset scheduling algorithm and obtaining the total completion time of the scheduling scheme; if the total completion time of the scheduling scheme does not exceed the preset deadline, the scheduling scheme is verified and the optimal total energy budget is accepted, and the process proceeds to step S103; otherwise, a binary search is performed between the lower and upper bounds of the energy budget, where the lower bound of the energy budget refers to the total energy cost when all subtasks are executed using the processor with the lowest energy consumption, and the upper bound of the energy budget refers to the total energy cost when all subtasks are executed using the processor with the highest energy consumption; using the searched energy budget as a scheduling budget constraint, generating a scheduling scheme using a preset scheduling algorithm and obtaining the total completion time of the scheduling scheme; finding the smallest energy budget that satisfies the preset deadline constraint to replace the optimal total energy budget, and then proceeding to step S103.

3. The energy-adaptive task flow scheduling method for robot swarms according to claim 1, characterized in that, In step S102, the spatiotemporal graph convolutional network includes a spatial graph convolutional layer, a temporal graph convolutional layer, and a cross-modal fusion layer. The spatial graph convolutional layer is used for message passing on spatial transition edges, the temporal graph convolutional layer is used for message passing on dependency edges, and the cross-modal fusion layer is used to concatenate the spatial embedding output by the spatial graph convolutional layer and the temporal embedding output by the temporal graph convolutional layer. The interaction weights of the two are learned through a multi-head attention mechanism, and the feature embedding vector of the whole graph is obtained through global average pooling. Finally, the optimal energy consumption control rate is output through a fully connected layer and a sigmoid activation function, and the optimal energy consumption control rate is mapped to the optimal total energy budget.

4. The energy-adaptive task flow scheduling method for robot swarms according to claim 3, characterized in that, The process of mapping the optimal energy consumption control rate to the optimal total energy budget refers to converting the optimal energy consumption control rate into the optimal total energy budget based on the conversion relationship between the energy budget and the energy consumption control rate. ; in, For the optimal total energy budget, The total energy cost of using the most power-consuming processor to execute all subtasks. The total energy cost when using the least power-consuming processor for all subtasks. To achieve the optimal energy consumption control rate, , Corresponding to the most energy-efficient configuration, The fastest configuration is available.

5. The energy-adaptive task flow scheduling method for robot swarms according to claim 1, characterized in that, Step S103 includes: S301, calculate each subtask separately. priority And according to priority Sort: ; in, For subtasks Average execution time across all processors For subtasks sub-tasks The communication cost between them For subtasks The set of successor subtasks; S302 pre-allocates the optimal total energy budget to each subtask according to the energy consumption span ratio. : ; in, For subtasks Energy budget, The total energy cost of using the most power-consuming processor to execute all subtasks. The total energy cost when using the least power-consuming processor for all subtasks. Total energy cost of executing subtasks on the processor min and max represent the minimum and maximum values, respectively. S303, Computation Subtask In each processor The total energy cost of execution, including computational energy consumption, motion energy consumption, and communication energy consumption, is used to allocate energy costs to each subtask. Select the processor and start execution time.

6. The energy-adaptive task flow scheduling method for robot swarms according to claim 5, characterized in that, The calculation function expression for the total energy cost in step S303 is as follows: ; in, For subtasks In each processor The total energy cost of execution, For processor The operating current, For subtasks In each processor Execution time on The terrain energy consumption coefficient is related to the terrain type. For robot maintenance quality, It is the acceleration due to gravity. To move the robot from the position of the immediate subtask execution The Euclidean distance of the execution location. For the speed-energy consumption nonlinear coefficient, For the robot's moving speed, For wireless communication transmission power, The amount of data to be transmitted This refers to the communication bandwidth.

7. The energy-adaptive task flow scheduling method for robot swarms according to claim 6, characterized in that, In step S303, the total energy cost is used to determine the costs for each subtask. The selection of the processor and start execution time includes: S401, sequentially traverse the sorted subtask queue, and adopt a forward earliest time scheduling strategy. Under the constraints of optimal total energy budget and non-preemptive processor, calculate the earliest start time for each subtask along the topological order of the dependent edges in the spatiotemporal task flow graph. and the corresponding allocated processor; S402, the sorted subtask queue is traversed in reverse order, and a reverse latest time scheduling strategy is adopted. Starting from the deadline of the exit subtask, the latest start time of each subtask is calculated along the reverse topological order of the dependent edges in the spatiotemporal task flow graph. The earliest start time will be used. With the latest start time The defined time interval serves as the schedulable space for subtasks. ; S403, in each subtask schedulable space In the process, an integer programming algorithm is used to determine the optimal actual start time for each subtask. The optimization objective is to minimize the variance of total energy cost over time. The constraints used in the integer programming algorithm include that the actual start time of the specified critical task must not be later than its preset latest safe execution time.

8. An energy-adaptive task flow scheduling system for robot swarms, comprising interconnected microprocessors and memory, characterized in that, The microprocessor is programmed or configured to execute the energy-adaptive task flow scheduling method for robot swarms as described in any one of claims 1 to 7.

9. A computer-readable storage medium storing a computer program or instructions, characterized in that, The computer program or instructions are programmed or configured to execute the energy-adaptive task flow scheduling method for robot swarms as described in any one of claims 1 to 7 via a processor.

10. A computer program product, comprising a computer program or instructions, characterized in that, The computer program or instructions are programmed or configured to execute the energy-adaptive task flow scheduling method for robot swarms as described in any one of claims 1 to 7 via a processor.