Dynamic slice-based automobile data collection task allocation method and device
By using dynamic slicing and multi-objective optimization scheduling algorithms, the vehicle data acquisition task is divided into lightweight sub-task slices, which solves the problems of resource matching imbalance and weak heterogeneous data adaptation in existing technologies, and realizes efficient and flexible data acquisition and fault-tolerant recovery.
Patent Information
- Application Number
- CN202611391739.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-24
AI Technical Summary
Existing automotive data acquisition task allocation technologies suffer from problems such as static and fixed strategies, unbalanced resource matching, weak adaptability to heterogeneous data, and lack of dynamic fault-tolerant scheduling, making it difficult to meet the massive, real-time, and high-precision data acquisition needs of intelligent vehicles.
A dynamic slicing approach is adopted to dynamically split the original data acquisition task into lightweight subtask slices, and configure slice priority and resource requirement description for each subtask. Combined with a multi-objective optimization scheduling algorithm, real-time resource matching and dynamic reallocation are performed, and a task-terminal resource matching degree evaluation model is constructed to achieve accurate matching between tasks and data types and on-demand dynamic utilization of terminal resources.
It improves the flexibility of task scheduling, enables precise response to differentiated collection accuracy and frequency, avoids resource stagnation and data loss, ensures the continuity and fault-tolerant recovery of collection tasks, and enhances emergency scheduling capabilities.
Smart Images

Figure CN123157380A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automotive data acquisition technology, and in particular to a method and apparatus for allocating automotive data acquisition tasks based on dynamic slicing. Background Technology
[0002] With the development of intelligent connected and software-defined vehicle technologies, the number of onboard sensors and terminal devices continues to increase. Vehicle operation generates massive amounts of multi-source, dynamic, and heterogeneous collected data, and the data collection needs vary significantly under different operating conditions and scenarios. Currently, most mainstream automotive data collection task allocation is based on a static preset mode, relying on manual pre-configuration of fixed collection tasks, frequencies, and terminal allocation rules. This strategy is rigid, updates are lagging, and it cannot adapt to the dynamic operating status of vehicles and iterative business needs.
[0003] Vehicles have varying data collection priorities and accuracy requirements under different driving conditions. Static allocation strategies cannot be dynamically adjusted in real time, easily leading to missing key condition data and redundant collection of invalid data. Furthermore, when adding new vehicle models or intelligent driving functions, fixed configuration strategies require manual parameter modifications and OTA upgrades for iteration, resulting in low update efficiency. In scenarios with tens of thousands of concurrent tasks, fixed template scheduling methods are prone to task conflicts and scheduling delays, exhibiting poor overall task adaptability and scheduling flexibility.
[0004] Existing task allocation methods mostly employ a coarse-grained scheduling logic of average distribution and fixed terminal binding, failing to dynamically match the real-time computing power, network bandwidth, storage capacity, and operational load of the vehicle terminals. The resource status of vehicle terminals fluctuates in real time with vehicle operation, which is a key factor affecting the quality of data collection, transmission, and storage. Traditional allocation methods completely ignore the dynamic resource differences of terminals.
[0005] This allocation model is highly prone to resource imbalance: high-load terminals bear too many tasks, which can easily lead to problems such as data packet loss, transmission timeouts, and data collection lag, resulting in a low effective data collection rate; low-load terminals are idle for a long time, causing waste of computing power, bandwidth, and storage resources. In multi-vehicle and multi-terminal collaborative data collection scenarios, there are also problems such as duplicate task collection and resource quota conflicts, resulting in low overall data utilization, which not only limits the data collection throughput but also increases vehicle energy consumption and vehicle-to-cloud transmission costs.
[0006] Intelligent vehicle data includes structured vehicle condition data and heterogeneous data such as unstructured images and radar point clouds. The granularity of data collection, transmission requirements, and priorities vary significantly among these data types. Existing technologies employ unified scheduling rules but fail to perform fine-grained task decomposition and adaptive allocation based on the characteristics of heterogeneous data, thus failing to achieve precise matching between tasks and data types.
[0007] Traditional solutions lack a dynamic task slicing mechanism, resulting in rigid task granularity that cannot be broken down into lightweight sub-tasks based on business needs, making it difficult to adapt to differentiated data collection accuracy and frequency requirements. Furthermore, they cannot prioritize data collection tasks, failing to collect high-value fault and extreme condition data first, leading to redundant data consuming significant resources. Moreover, data collected from multiple terminals is difficult to integrate collaboratively, resulting in data silos and insufficient accuracy and completeness of the collected data, failing to meet the high-precision business requirements of intelligent driving training and fault tracing.
[0008] The existing data acquisition and scheduling system uses a fixed linear scheduling logic, lacking dynamic scheduling, fault tolerance and correction mechanisms, and emergency data acquisition mechanisms. When problems such as terminal failures, network fluctuations, or task anomalies occur, the system cannot detect and reallocate tasks in real time, easily leading to data acquisition interruptions and data loss. For temporary and sudden tasks such as vehicle fault data acquisition and special working condition data acquisition, the static architecture cannot quickly respond to inserted tasks, resulting in weak emergency scheduling capabilities.
[0009] Traditional fixed scheduling engines are prone to problems such as task blocking and resource lock conflicts in high-concurrency scenarios, resulting in poor system stability and scalability, and high operation and maintenance and iteration costs. In summary, existing automotive data acquisition task allocation technologies generally suffer from defects such as static and fixed strategies, unbalanced resource matching, weak adaptability to heterogeneous data, and lack of dynamic fault-tolerant scheduling. They are difficult to adapt to the massive, real-time, and high-precision data acquisition needs of intelligent vehicles. There is an urgent need to propose a refined task allocation scheme based on dynamic slicing to solve the above-mentioned technical pain points. Summary of the Invention
[0010] The purpose of this invention is to overcome the shortcomings of the prior art and provide a method and apparatus for allocating vehicle data acquisition tasks based on dynamic slicing, which effectively solves the deficiencies of the prior art.
[0011] To achieve the above objectives, this invention provides a method for allocating vehicle data acquisition tasks based on dynamic slicing, comprising the following steps:
[0012] S1: Obtain the raw data acquisition task to be assigned, perform task parsing on the raw data acquisition task, and extract the task type identifier, data acquisition range, acquisition accuracy requirements and acquisition frequency parameters;
[0013] S2: Based on the task type identifier, acquisition accuracy requirements and acquisition frequency parameters, the original data acquisition task is dynamically divided into several lightweight subtask slices with independent execution semantics, and each subtask slice is configured with a slice priority label and a slice resource requirement description.
[0014] S3: Real-time collection of dynamic resource status information for each vehicle terminal in the vehicle terminal set, wherein the dynamic resource status information includes at least the current available computing power, current available network bandwidth, current available storage capacity, and current operating load rate;
[0015] S4: Based on the slice resource requirement description and the dynamic resource status information, construct a task-terminal resource matching degree evaluation model, and calculate the resource matching degree score between each sub-task slice and each vehicle terminal.
[0016] S5: Based on the slice priority label and the resource matching score, a multi-objective optimization scheduling algorithm is used to allocate target vehicle terminals to each subtask slice, and an initial task allocation scheme is generated.
[0017] S6: The initial task allocation scheme is sent to each target vehicle terminal, and each target vehicle terminal is controlled to perform data acquisition operations according to the corresponding sub-task slices, and the task execution status of each target vehicle terminal is monitored in real time.
[0018] S7: During task execution, continuously acquire dynamic resource status change information and task execution feedback information of each vehicle terminal. When the triggering condition for task reallocation is detected, perform dynamic reallocation of incomplete or abnormal subtask slices.
[0019] S8: Receive the collected data reported by each target vehicle terminal, classify and merge the collected data according to the slice identifier of the subtask slice, and generate a complete collection dataset corresponding to the original data collection task.
[0020] Preferably, in step S2, the original data acquisition task is dynamically divided into several sub-task slices, and the several sub-task slices include:
[0021] The spatial granularity of data acquisition is determined according to the acquisition accuracy requirements, and the temporal granularity of data acquisition is determined according to the acquisition frequency parameter. Based on the spatial granularity and temporal granularity, the original data acquisition task is divided into several spatiotemporal subtask slices.
[0022] For acquisition tasks that include heterogeneous data containing both structured and unstructured data, structured data and unstructured images and radar point cloud data are separated into independent sub-task slices according to their data types, and corresponding data transmission protocols and storage formats are configured for each sub-task slice.
[0023] Preferably, in any of the above schemes, the resource matching score in step S4 is calculated in the following way:
[0024] Calculate the first degree of matching between the computing power requirement of the subtask slice and the available computing power of the vehicle terminal, the second degree of matching between the bandwidth requirement of the subtask slice and the available network bandwidth of the vehicle terminal, and the third degree of matching between the storage requirement of the subtask slice and the available storage capacity of the vehicle terminal.
[0025] The resource matching score is obtained by weighted summation of the first matching degree, the second matching degree, and the third matching degree, wherein the weight coefficient of each matching degree is adaptively adjusted according to the data type of the subtask slice.
[0026] Preferred from any of the above schemes, the multi-objective optimization scheduling algorithm in step S5 aims to maximize the overall resource matching degree, minimize the load balancing deviation of the vehicle terminal, and maximize the priority allocation rate of high-priority subtask slices, and uses a heuristic search algorithm to solve for the optimal task allocation scheme.
[0027] Preferably, in any of the above schemes, the conditions for triggering task reassignment in step S7 include at least one of the following:
[0028] The current operating load rate of any target vehicle terminal exceeds the preset load threshold;
[0029] The current available network bandwidth of any target vehicle terminal is lower than the minimum bandwidth requirement of the subtask slice;
[0030] Any target vehicle terminal reports an error in task execution;
[0031] A new burst of data collection task has been detected and needs to be inserted into the current scheduling queue.
[0032] Preferably, in any of the above schemes, when a task reassignment condition is detected, the corresponding unfinished subtask slice is added back to the assignment queue, steps S4 to S6 are repeated for dynamic reassignment, and the reassigned subtask slice is migrated to a new target vehicle terminal for continued execution.
[0033] A vehicle data acquisition task allocation device based on dynamic slicing, used to implement the above method, includes:
[0034] The task acquisition module is used to acquire raw data acquisition tasks to be assigned.
[0035] The task parsing module is used to parse the original data acquisition task and extract the task type identifier, data acquisition range, acquisition accuracy requirements and acquisition frequency parameters.
[0036] The dynamic slicing module is used to dynamically split the original data acquisition task into several lightweight subtask slices with independent execution semantics according to the task type identifier, acquisition accuracy requirements and acquisition frequency parameters, and to configure slice priority labels and slice resource requirement descriptions for each subtask slice.
[0037] The terminal resource perception module is used to collect dynamic resource status information of each vehicle terminal in the vehicle terminal set in real time. The dynamic resource status information includes at least the current available computing power, current available network bandwidth, current available storage space and current operating load rate.
[0038] The matching degree evaluation module is used to construct a task-terminal resource matching degree evaluation model based on the slice resource requirement description and the dynamic resource status information, and calculate the resource matching degree score between each sub-task slice and each vehicle terminal.
[0039] The scheduling decision module is used to allocate target vehicle terminals to each subtask slice based on the slice priority label and the resource matching degree score, and generate an initial task allocation scheme by using a multi-objective optimization scheduling algorithm.
[0040] The task assignment and execution monitoring module is used to assign the initial task allocation scheme to each target vehicle terminal, control each target vehicle terminal to perform data acquisition operations according to the corresponding sub-task slices, and monitor the task execution status of each target vehicle terminal in real time.
[0041] The dynamic reallocation module is used to continuously acquire dynamic resource status change information and task execution feedback information of each vehicle terminal during task execution. When the triggering condition for task reallocation is detected, dynamic reallocation is performed on the incomplete or abnormal sub-task slices.
[0042] The data merging module is used to receive the collected data reported by each target vehicle terminal, classify and merge the collected data according to the slice identifier of the subtask slice, and generate a complete collection dataset corresponding to the original data collection task.
[0043] Preferably, as described in any of the above schemes, the dynamic slicing module includes:
[0044] The granularity determination unit is used to determine the spatial granularity of data acquisition based on the acquisition accuracy requirements and to determine the temporal granularity of data acquisition based on the acquisition frequency parameters.
[0045] The spatiotemporal splitting unit is used to split the original data acquisition task into several spatiotemporal dimension subtask slices based on the spatial granularity and temporal granularity.
[0046] The heterogeneous splitting unit is used to split structured data and unstructured image and radar point cloud data into independent sub-task slices according to the data type for acquisition tasks containing heterogeneous data containing structured and unstructured data.
[0047] The slice configuration unit is used to configure the slice priority label, slice resource requirement description, data transmission protocol and storage format for each subtask slice.
[0048] Preferably, according to any of the above schemes, the scheduling decision module includes:
[0049] The multi-objective optimization unit is used to construct a multi-objective optimization function with the optimization objectives of maximizing the overall resource matching degree, minimizing the load balancing deviation of the vehicle terminal, and maximizing the priority allocation rate of high-priority subtask slices.
[0050] A heuristic search unit is used to solve the multi-objective optimization function using a heuristic search algorithm and output the optimal task allocation scheme.
[0051] The conflict detection unit is used to detect whether there is a resource quota conflict after each subtask slice is assigned to the target vehicle terminal. If a conflict exists, the heuristic search unit is triggered to solve the problem again.
[0052] Preferably, any of the above schemes further includes: a sudden task insertion module, used to receive newly added sudden data acquisition tasks, submit the sudden data acquisition tasks to the task parsing module and the dynamic slicing module for slicing processing, and insert the generated sudden subtask slices into the current queue to be allocated according to the slice priority label.
[0053] The present invention has the following advantages:
[0054] 1. A method and apparatus for allocating automotive data acquisition tasks based on dynamic slicing. This method extracts task type identifiers, acquisition accuracy requirements, and acquisition frequency parameters through task parsing. Based on these parameters, the original data acquisition task is dynamically divided into several lightweight sub-task slices with independent execution semantics. Simultaneously, each sub-task slice is configured with a slice priority label and a slice resource requirement description. This decomposes the originally rigid, single acquisition task into fine-grained units that can be independently scheduled and executed. Each sub-task slice can be precisely matched and scheduled according to its resource requirement description during subsequent allocation, thus avoiding the problem of fixed acquisition resource occupation caused by overly coarse task granularity in static preset mode. This effectively improves the flexibility of task scheduling, allowing differentiated acquisition accuracy and frequency requirements to be accurately responded to at the sub-task level.
[0055] 2. A method and apparatus for allocating vehicle data acquisition tasks based on dynamic slicing. This method collects the current available computing power, current available network bandwidth, current available storage capacity, and current operating load rate of each vehicle terminal in the vehicle terminal set in real time. Based on the slice resource requirement description and dynamic resource status information, a task-terminal resource matching degree evaluation model is constructed. The resource matching degree score between each sub-task slice and each vehicle terminal is calculated, enabling the task allocation decision to be quantitatively evaluated in real time according to the dynamic fluctuations of vehicle terminal resources. The real-time status of the terminal's current computing power, bandwidth, storage, and load is directly used as the allocation basis, thereby avoiding the imbalance problem of high-load terminals overloaded and losing packets and low-load terminals idle resources under the traditional average allocation or fixed binding method. This achieves on-demand dynamic matching and balanced utilization of terminal resources.
[0056] 3. A method and apparatus for allocating automotive data acquisition tasks based on dynamic slicing: For acquisition tasks containing heterogeneous data including structured and unstructured data, the method splits structured data and unstructured image and radar point cloud data into independent sub-task slices according to their data types. Each sub-task slice is then configured with a corresponding data transmission protocol and storage format. This allows different types of data to be independently encapsulated into individually schedulable slice units according to their respective acquisition granularity, transmission requirements, and priorities. During subsequent allocation, each sub-task slice is matched to a target terminal with corresponding transmission protocol support and storage format adaptation capabilities based on its data type. This solves the technical problem of weak heterogeneous data adaptation capabilities under unified scheduling rules and achieves precise matching between tasks and data types.
[0057] 4. A method and apparatus for allocating vehicle data acquisition tasks based on dynamic slicing. This method optimizes the allocation of tasks by maximizing overall resource matching, minimizing load balancing deviation of vehicle terminals, and maximizing the priority allocation rate of high-priority subtask slices. A heuristic search algorithm is used to solve for the optimal task allocation scheme, enabling global optimization of task allocation decisions under multi-objective constraints. Subtask slices corresponding to high-value fault conditions or extreme conditions gain higher allocation priority in the optimization function based on their priority labels. This ensures priority in the acquisition and execution of critical data under limited resource conditions. Simultaneously, the load deviation of each terminal is minimized under the constraints of the optimization objectives, solving the problems of missing critical condition data and excessive resource consumption by redundant data under static allocation strategies.
[0058] 5. A method and apparatus for allocating vehicle data acquisition tasks based on dynamic slicing. By continuously acquiring dynamic resource status change information and task execution feedback information of each vehicle terminal during task execution, when it is detected that the current operating load rate of the target vehicle terminal exceeds a preset load threshold, the current available network bandwidth is lower than the minimum bandwidth requirement of the subtask slice, the terminal reports task execution abnormal information, or a new sudden data acquisition task needs to be inserted into the current scheduling queue, the corresponding unfinished subtask slice is added back to the allocation queue and dynamic reallocation is performed. The reallocated subtask slice is then migrated to a new target vehicle terminal to continue execution. This enables the system to perceive and trigger the reallocation process in real time under dynamic scenarios such as terminal resource fluctuations, network status changes, task abnormalities, and sudden task insertions. This avoids the data acquisition interruption and data loss problems caused by terminal failures or network fluctuations under static linear scheduling logic, and achieves continuity assurance and fault-tolerant recovery of acquisition tasks.
[0059] 6. A method and apparatus for allocating vehicle data acquisition tasks based on dynamic slicing. This method receives newly added sudden data acquisition tasks through a sudden task insertion module, submits these tasks to a task parsing module and a dynamic slicing module for slicing processing, and inserts the generated sudden subtask slices into the current allocation queue according to their priority tags. This allows temporary sudden tasks such as vehicle fault acquisition or special working condition acquisition to be quickly parsed, sliced, and allocated in real-time according to their priority tags upon arrival at the system. Sudden subtask slices and existing incomplete subtask slices are allocated under the same multi-objective optimization scheduling framework, eliminating the need to wait for the entire current batch of tasks to complete before execution. This solves the technical problem of sudden task insertion not responding quickly under a static architecture, and achieves a systematic enhancement of emergency scheduling capabilities. Attached Figure Description
[0060] Figure 1 This is a schematic diagram of the method flow of the present invention;
[0061] Figure 2 This is a schematic diagram of the system architecture of the present invention. Detailed Implementation
[0062] The present invention will be further described below with reference to the accompanying drawings, but the scope of protection of the present invention is not limited to the following description.
[0063] Example 1: As Figure 1 As shown, a method for allocating vehicle data acquisition tasks based on dynamic slicing.
[0064] This embodiment uses an in-vehicle gateway or a cloud-based dispatch server as the execution entity and describes in detail each step of the task allocation method.
[0065] Step S1: Obtain the raw data acquisition task to be assigned, perform task parsing on the raw data acquisition task, and extract the task type identifier, data acquisition range, acquisition accuracy requirements and acquisition frequency parameters.
[0066] In practical applications, raw data acquisition tasks can be submitted to the scheduling system by the data requester via API interface or message queue. The task parsing module first performs format validation on the received task data, parsing the task description file in JSON or XML format. The task type identifier is used to distinguish whether the task is routine operating condition acquisition, fault-specific acquisition, or scenario-specific acquisition; the data acquisition scope specifies the list of data sources to be collected, such as engine ECU data, vehicle stability system data, camera images, millimeter-wave radar point clouds, etc.; the acquisition accuracy requirements include parameters such as sampling bit width, sampling frequency, or spatial resolution; the acquisition frequency parameter defines the time interval for data reporting or the triggering event conditions.
[0067] Specifically, if the parsed acquisition accuracy requirement is "image resolution no less than 1920×1080" and the acquisition frequency is "acquiring once every 100ms", then the subsequent slicing steps will determine the spatiotemporal granularity based on these parameters. After the task parsing is completed, the extracted structured parameters will be stored as a task description object for subsequent steps to call.
[0068] Step S2: Based on the task type identifier, acquisition accuracy requirements, and acquisition frequency parameters, the original data acquisition task is dynamically divided into several lightweight subtask slices with independent execution semantics, and a slice priority label and slice resource requirement description are configured for each subtask slice.
[0069] This step is the core of implementing dynamic slicing. Based on the parameters parsed in step S1, the dynamic slicing module performs the following sub-operations:
[0070] First, determine the spatial granularity of data acquisition based on the required acquisition accuracy. For example, if the acquisition accuracy requirement is "high-precision positioning data," the spatial granularity is set to each GPS coordinate point; if it is "regional statistical data," the spatial granularity can be set to a grid area. Then, determine the temporal granularity of data acquisition based on the acquisition frequency parameter. For example, a frequency of "10Hz" corresponds to a time granularity of 100ms, meaning each slice corresponds to data within a time window.
[0071] Then, based on spatial and temporal granularity, the original task is broken down into several spatiotemporal subtask slices. For example, a data collection task covering "Zhengzhou city area, lasting 10 minutes, at a frequency of 10Hz" can be broken down into multiple independent slices that are spatially divided by latitude and longitude grids and temporally divided by seconds or hundreds of milliseconds. Each slice contains an identifier of "location area + timestamp".
[0072] Secondly, for acquisition tasks involving heterogeneous data that includes both structured and unstructured data, the data is further segmented according to data type. Structured data, such as scalar signals like vehicle speed, engine speed, and throttle opening, is encapsulated into one slice category, unstructured image data is encapsulated into another slice category, and radar point cloud data is encapsulated separately. Each slice category is configured with a corresponding data transmission protocol and storage format.
[0073] Finally, configure a slice priority label for each subtask slice. The priority label is determined based on the task type identifier; for example, the slice priority for "fault diagnosis task" is set to the highest level, "extreme condition acquisition" is set to the second highest level (P1), and normal endurance acquisition is set to the normal level (P2). A slice resource requirement description is also configured, including the estimated computing power required, the required network bandwidth, and the required storage space. The information for each slice is stored in the task queue in list form.
[0074] Step S3: Collect dynamic resource status information of each vehicle terminal in the vehicle terminal set in real time. The dynamic resource status information includes at least the current available computing power, current available network bandwidth, current available storage capacity, and current operating load rate.
[0075] The terminal resource awareness module periodically reports resource status through the agent program on the vehicle terminal. The reported information includes: current CPU idle rate, GPU utilization, available memory size, uplink / downlink real-time bandwidth, remaining storage space, and process load. The agent program can obtain this data through the operating system interface and encapsulate it into status messages to send to the scheduling end. The scheduling end maintains a terminal resource status table and updates the latest status of each terminal in real time.
[0076] For example, a terminal reports: available computing power is 2.4GHz dual-core CPU idle, GPU 30% idle, available network bandwidth is 3.2Mbps upstream / 15Mbps downstream, available storage is 4.2GB, and the current operating load rate is 65%, i.e., the overall CPU utilization rate. These values are stored in vector form for calculation in step S4.
[0077] Step S4: Based on the slice resource requirement description and the dynamic resource status information, construct a task-terminal resource matching degree evaluation model, and calculate the resource matching degree score between each sub-task slice and each vehicle terminal.
[0078] The matching evaluation module first extracts slices from each subtask. Resource requirements: Computing power requirements Bandwidth requirements Storage requirements ; and each terminal Available resources: available computing power Available bandwidth Available storage For each pair (slice) ,terminal ), calculate the matching degree in three dimensions:
[0079] (1) Computing power matching degree:
[0080]
[0081] (2) Bandwidth matching degree:
[0082]
[0083] (3) Storage matching degree:
[0084]
[0085] Then, the weight coefficients are adaptively adjusted based on the data type of slice i. Let the weight vector corresponding to the data type of slice i be... ,satisfy The final resource matching score is:
[0086]
[0087] The weight coefficients are obtained through a pre-configured mapping table, such as image slice weights. Calculate the weights of dense slices The score ranges from [0,1], with a higher value indicating that the terminal is more suitable for executing the slice.
[0088] Step S5: Based on the slice priority label and the resource matching score, a multi-objective optimization scheduling algorithm is used to allocate target vehicle terminals to each subtask slice, generating an initial task allocation scheme.
[0089] The scheduling decision module constructs a multi-objective optimization function, assuming a total of A slice and Each terminal, decision variables Slice Is it assigned to the terminal? And each slice can only be assigned to one terminal, that is:
[0090] Optimization objectives include:
[0091] Objective 1: Maximize overall resource matching:
[0092] Objective 2: Minimize load balancing skew. Define the terminal. The load rate is: Then the load deviation is:
[0093] In actual optimization, it is transformed into minimization .
[0094] Objective 3: Maximize the allocation rate of high-priority slices. Let the set of high-priority slices be... The corresponding matching degree weight enhancement factor is ,but:
[0095] The multi-objective method is used to transform the multi-objective into a single objective:
[0096]
[0097] in The weight coefficients are positive and satisfy the following conditions: .
[0098] Heuristic search algorithms (such as genetic algorithms) are then used to solve the optimization problem. Taking the genetic algorithm as an example: integer encoding is used, with each gene representing a slice and the gene value being the terminal number; the population size is set to 100, the crossover probability is 0.8, the mutation probability is 0.05, and the maximum number of iterations is 500. The algorithm iteratively solves to obtain the optimal allocation scheme, satisfying the resource requirements of all slices without exceeding the terminal capacity. A conflict detection unit checks whether the scheme has resource over-allocation; if so, it triggers a re-solution until there are no conflicts.
[0099] Step S6: Distribute the initial task allocation scheme to each target vehicle terminal, control each target vehicle terminal to perform data acquisition operations according to the corresponding sub-task slices, and monitor the task execution status of each target vehicle terminal in real time.
[0100] The task distribution and execution monitoring module distributes the allocation plan to each target vehicle terminal via the vehicle-to-cloud communication link. The distributed content includes slice identifiers, collection instructions, and time schedules. Upon receiving the instructions, the terminal agent initiates the corresponding collection process and periodically (e.g., every 500ms) reports the execution status, including current collection progress, amount of data collected, and any anomalies. The monitoring module maintains a local task status table, recording the status of each slice (pending execution, in progress, completed, or anomaly).
[0101] Step S7: During task execution, continuously acquire dynamic resource status change information and task execution feedback information of each vehicle terminal. When the triggering condition for task reallocation is detected, perform dynamic reallocation of incomplete or abnormal subtask slices.
[0102] The dynamic reallocation module continuously monitors terminal state changes and task feedback. Reallocation is triggered by at least one of the following conditions:
[0103] The current operating load rate of any target vehicle terminal exceeds a preset threshold (e.g., greater than 90%).
[0104] The current available network bandwidth of any target vehicle terminal is lower than the minimum bandwidth requirement of the subtask slice (e.g., less than 1 Mbps).
[0105] Any target vehicle terminal reports a task execution error (such as data acquisition process crash or sensor unresponsiveness).
[0106] A new burst data acquisition task has been detected and needs to be inserted into the current scheduling queue (triggered by the burst task insertion module).
[0107] When any condition is met, the reallocation module marks the corresponding incomplete or abnormal subtask slices as "pending reallocation" and adds them back to the allocation queue. Steps S4 to S6 are then repeated: the matching degree of these slices with other available terminals is recalculated, the optimized scheduling algorithm is rerun, and finally, the slices are migrated to the new target terminal for continued execution. During the migration process, some collected data can be retained through a breakpoint resume mechanism to avoid duplicate collection.
[0108] Step S8: Receive the collected data reported by each target vehicle terminal, classify and merge the collected data according to the slice identifier of the subtask slice, and generate a complete collection dataset corresponding to the original data collection task.
[0109] The data merging module receives data packets reported from various terminals in the cloud or at the gateway. Each data packet carries a slice identifier and a sequence number. The merging module categorizes the data based on the slice identifier; for example, all data belonging to "image slices" is stored in an image folder, and all data belonging to "structured slices" is stored in a database table. Then, it stitches the data according to the spatiotemporal dimensions: for temporally consecutive slices, they are connected by timestamp; for spatially adjacent slices, they are stitched together by coordinates to form a complete region coverage. Finally, a complete dataset consistent with the original task requirements is generated, and the task submitter is notified that the data is ready.
[0110] Example 2: Vehicle Data Acquisition Task Allocation Device Based on Dynamic Slicing
[0111] like Figure 2 As shown, this embodiment provides a vehicle data acquisition task allocation device based on dynamic slicing, which can be deployed on vehicle-side edge computing nodes or cloud servers. The device includes a task acquisition module, a task parsing module, a dynamic slicing module, a terminal resource perception module, a matching degree evaluation module, a scheduling decision module, a task issuance and execution monitoring module, a dynamic reallocation module, a data merging module, and optionally, a sudden task insertion module. The specific implementation and collaborative relationships of each module are described below.
[0112] The task acquisition module is used to acquire raw data collection tasks to be assigned. This module provides a RESTful API or message queue consumer interface, allowing external systems to submit task description files via HTTP POST or Kafka topics. The task acquisition module performs preliminary validation on the task data, ensuring that necessary fields are complete, and then converts it into an internal task object, which is then passed to the task parsing module.
[0113] The task parsing module is used to parse the raw data acquisition task, extracting the task type identifier, data acquisition range, acquisition accuracy requirements, and acquisition frequency parameters. This module has a built-in parsing engine that supports JSONSchema and XMLSchema validation. The parsing results are stored in key-value pairs for use by subsequent modules. For example, parsing results might yield "Task Type = Fault Diagnosis", "Acquisition Range = Engine + Chassis", "Accuracy = 0.1s / 1m", and "Frequency = 50Hz".
[0114] The dynamic slicing module is used to dynamically split the original data acquisition task into several lightweight sub-task slices with independent execution semantics based on the task type identifier, acquisition accuracy requirements, and acquisition frequency parameters, and to configure a slice priority label and slice resource requirement description for each sub-task slice. This module specifically includes the following sub-units:
[0115] Granularity determination unit: Determines spatial and temporal granularity based on acquisition accuracy requirements, and generates spatiotemporal granularity parameters;
[0116] Spatiotemporal segmentation unit: Based on spatial and temporal granularity, the spatiotemporal range covered by the original task is divided into multiple cells, each cell corresponding to a slice. The slice identifier includes the grid ID and the start stamp of the time window.
[0117] Heterogeneous splitting unit: For mixed data type tasks, this unit identifies structured fields (such as CAN signals) and unstructured fields (such as video streams and point cloud streams) in the data stream, establishes independent slice queues for each, and labels each queue with a data type label;
[0118] Slice Configuration Unit: Assigns a priority label to each slice. The priority is determined by the task type and user-defined policies. It also calculates the resource requirements of the slice, including the required computing power, bandwidth, and storage based on the data type and precision. After configuration, the slice list is output to the scheduling decision module.
[0119] The terminal resource awareness module is used to collect dynamic resource status information of each vehicle terminal in the vehicle terminal set in real time. This module maintains a long-term connection with each terminal agent through vehicle-to-cloud connectivity, periodically pulling status data or having the terminals actively push status updates. Status information includes CPU utilization, memory utilization, network throughput, remaining disk space, and the number of current processes. This module formats the status data into a unified data model and stores it in a memory cache for quick querying by the matching degree evaluation module.
[0120] The matching degree evaluation module is used to construct a task-terminal resource matching degree evaluation model based on the slice resource requirement description and the dynamic resource status information, and calculate the resource matching degree score between each subtask slice and each vehicle terminal. This module reads the slice requirement list and the terminal status list, and calculates the score matrix using the aforementioned weighted summation algorithm. This module supports dynamically adjusting the weight coefficients, adaptively selecting different weight combinations according to the slice data type. The calculated score matrix is passed to the scheduling decision module in the form of a two-dimensional array.
[0121] The scheduling decision module is used to allocate target vehicle terminals to each subtask slice based on the slice priority label and the resource matching score, using a multi-objective optimization scheduling algorithm, and to generate an initial task allocation scheme. This module internally includes:
[0122] Multi-objective optimization unit: Constructs the fitness function, comprehensively considers three optimization objectives, and sets weights for each objective, such as an overall matching degree weight of 0.5, a load balancing weight of 0.3, and a high-priority priority weight of 0.2. This unit is also responsible for encoding chromosomes and designing crossover and mutation operators;
[0123] Heuristic search unit: Performs genetic algorithm iteration, the initial population is randomly generated, and after selection, crossover and mutation operations, it converges to a better solution within a finite number of generations and outputs the allocation scheme;
[0124] Conflict detection unit: Checks whether there is an over-allocation of the same terminal resources in the allocation scheme. If a conflict exists, it marks the conflict slice and triggers the heuristic search unit to regenerate the scheme until there is no conflict.
[0125] The task assignment and execution monitoring module is used to assign the initial task allocation scheme to each target vehicle terminal, control each target vehicle terminal to perform data acquisition operations according to the corresponding sub-task slices, and monitor the task execution status of each target vehicle terminal in real time. This module sends acquisition commands through the downlink channel and starts a status listening thread to receive execution receipts and periodic status reports from each terminal. Execution status includes "Started," "Acquiring," "Paused," "Completed," and "Error," and records timestamps. Monitoring information is used for subsequent reallocation decisions.
[0126] The dynamic reallocation module continuously acquires dynamic resource status changes and task execution feedback information from each vehicle terminal during task execution. When a trigger condition for task reallocation is detected, dynamic reallocation is performed on incomplete or abnormal subtask slices. This module has a built-in condition judgment engine that compares thresholds in real time. Once the trigger condition is met, such as load exceeding 90%, bandwidth falling below minimum requirements, exception code reporting, or sudden task arrival, the scheduling decision module is invoked to recalculate the allocation scheme and send the new scheme to the relevant terminals, while simultaneously notifying the original terminals to release resources.
[0127] The data merging module receives the collected data reported by each target vehicle terminal, classifies and merges the collected data according to the slice identifier of the subtask slice, and generates a complete collection dataset corresponding to the original data collection task. This module has a data receiving buffer, sorts out-of-order data packets, and writes the data to the corresponding storage area according to the slice identifier. After merging, a data list and verification file are generated for downstream use.
[0128] The sudden task insertion module receives newly added sudden data acquisition tasks, submits these tasks to the task parsing module and the dynamic slicing module for slicing processing, and inserts the generated sudden subtask slices into the current allocation queue according to their slice priority tags. This module provides an independent interface to allow high-priority tasks to be inserted. When a sudden task is received, this module immediately wakes up the scheduling decision module and re-executes the allocation process to ensure that sudden tasks are processed with priority.
[0129] The modules communicate with each other via an internal message bus or function calls and can be deployed on the same server or in a distributed cluster. The entire device achieves dynamic allocation across the entire chain from task acquisition to data merging, and has the capabilities of real-time perception, flexible slicing, multi-objective optimization, dynamic reallocation, and burst response.
[0130] In summary, the present invention provides a method and apparatus for allocating automotive data acquisition tasks based on dynamic slicing. By parsing the task, it extracts the task type identifier, acquisition accuracy requirements, and acquisition frequency parameters. Based on these parameters, the original data acquisition task is dynamically divided into several lightweight sub-task slices with independent execution semantics. Simultaneously, each sub-task slice is configured with a slice priority label and a slice resource requirement description. This decomposes the originally rigid, single acquisition task into fine-grained units that can be independently scheduled and executed. Each sub-task slice can be precisely matched and scheduled according to its resource requirement description during subsequent allocation, thus avoiding the problem of fixed acquisition resource occupation caused by overly coarse task granularity in static preset modes. This effectively improves the flexibility of task scheduling, allowing differentiated acquisition accuracy and frequency requirements to be accurately responded to at the sub-task level. The method and apparatus for allocating automotive data acquisition tasks based on dynamic slicing also collects the current available computing power, current available network bandwidth, current available storage space, and current operating load rate of each vehicle terminal in the vehicle terminal set in real time. Furthermore, it constructs a task-terminal resource matching degree evaluation model based on the slice resource requirement description and dynamic resource status information. This method calculates the resource matching score between each subtask slice and each vehicle terminal, enabling task allocation decisions to be quantitatively evaluated in real time based on the dynamic fluctuations of vehicle terminal resources. The real-time status of the terminal's current computing power, bandwidth, storage, and load is directly used as the allocation basis, thus avoiding the imbalance problem of high-load terminals experiencing overload and packet loss, and low-load terminals having idle resources under traditional average allocation or fixed binding methods. It achieves on-demand dynamic matching and balanced utilization of terminal resources. For acquisition tasks containing heterogeneous data including structured and unstructured data, structured data and unstructured image and radar point cloud data are separated into independent subtask slices according to data type, and each subtask slice is configured with a corresponding data transmission protocol and storage format. This allows different types of data to be independently encapsulated into individually schedulable slice units according to their respective acquisition granularity, transmission requirements, and priorities. In the subsequent allocation process, each subtask slice is matched to a target terminal with corresponding transmission protocol support and storage format adaptation capabilities based on its data type, thus solving the technical problem of weak heterogeneous data adaptation capability under unified scheduling rules and achieving accurate matching between tasks and data types.
[0131] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A method for assigning a vehicle data collection task based on dynamic slicing, characterized in that: The method comprises the following steps: S1: obtaining a to-be-assigned original data collection task, performing task analysis on the original data collection task, and extracting a task type identifier, a data collection range, a collection accuracy requirement, and a collection frequency parameter; S2: according to the task type identifier, the collection accuracy requirement, and the collection frequency parameter, dynamically splitting the original data collection task into a plurality of lightweight subtask slices with independent execution semantics, and respectively configuring a slice priority label and a slice resource requirement description for each subtask slice; S3: collecting dynamic resource state information of each vehicle terminal in a vehicle terminal set in real time, wherein the dynamic resource state information at least includes current available computing power, current available network bandwidth, current available storage capacity, and current running load rate; S4: according to the slice resource requirement description and the dynamic resource state information, constructing a task-terminal resource matching degree evaluation model, and calculating a resource matching degree score between each subtask slice and each vehicle terminal; S5: based on the slice priority label and the resource matching degree score, using a multi-objective optimization scheduling algorithm to assign a target vehicle terminal for each subtask slice, and generating an initial task allocation scheme; S6: issuing the initial task allocation scheme to each target vehicle terminal, controlling each target vehicle terminal to perform a data collection operation according to the corresponding subtask slice, and monitoring the task execution state of each target vehicle terminal in real time; S7: in the task execution process, continuously acquiring dynamic resource state change information and task execution feedback information of each vehicle terminal, and when a task reallocation condition is detected, performing dynamic reallocation for the subtask slices that are not completed or abnormal; S8: receiving the collection data reported by each target vehicle terminal, classifying and merging each collection data according to the slice identifier of the subtask slice, and generating a complete collection data set corresponding to the original data collection task.
2. The dynamic slice-based automotive data collection task allocation method of claim 1, wherein: In the step S2, the original data collection task is dynamically split into a plurality of subtask slices, and the plurality of subtask slices comprise: According to the collection accuracy requirement, determining the spatial granularity of data collection, according to the collection frequency parameter, determining the time granularity of data collection, and based on the spatial granularity and the time granularity, splitting the original data collection task into a plurality of subtask slices in time and space dimensions; For a collection task containing structured and unstructured heterogeneous data, the structured data and the unstructured image and radar point cloud data are respectively split into independent subtask slices according to the data type, and the corresponding data transmission protocol and storage format are respectively configured for each subtask slice.
3. The dynamic slice-based automotive data collection task assignment method of claim 1, wherein: In the step S4, the resource matching degree score is calculated by the following method: The first matching degree of the computing power requirement of the subtask slice and the available computing power of the vehicle terminal, the second matching degree of the bandwidth requirement of the subtask slice and the available network bandwidth of the vehicle terminal, and the third matching degree of the storage requirement of the subtask slice and the available storage capacity of the vehicle terminal are calculated respectively; The first matching degree, the second matching degree, and the third matching degree are weighted and summed to obtain the resource matching degree score, wherein the weight coefficients of each matching degree are adaptively adjusted according to the data type of the subtask slice.
4. The dynamic slice-based automotive data collection task assignment method of claim 1, wherein: The multi-objective optimization scheduling algorithm in the step S5 takes maximizing overall resource matching degree, minimizing vehicle terminal load balancing deviation, and maximizing high-priority sub-task slice priority allocation rate as optimization objectives, and adopts a heuristic search algorithm to solve an optimal task allocation scheme.
5. The dynamic slice-based automotive data collection task allocation method of claim 4, wherein: The task reallocation condition triggering in the step S7 includes at least one of the following: The current running load rate of any target vehicle terminal exceeds a preset load threshold; The current available network bandwidth of any target vehicle terminal is lower than the minimum bandwidth requirement of a sub-task slice; Any target vehicle terminal reports task execution exception information; A newly added burst data collection task is detected to be inserted into a current scheduling queue.
6. The dynamic slice-based automotive data collection task allocation method of claim 5, wherein: When the task reallocation condition triggering is detected, the corresponding unfinished sub-task slice is re-joined into a to-be-allocated queue, the steps S4 to S6 are repeatedly executed for dynamic reallocation, and the reallocated sub-task slice is migrated to a new target vehicle terminal for continuous execution.
7. A dynamic slice based automotive data collection task allocation apparatus for implementing the method of any one of claims 1 to 6, characterized in that, Comprise: a task acquisition module, configured to acquire an original data collection task to be allocated; a task analysis module, configured to analyze the original data collection task, and extract a task type identifier, a data collection range, a collection accuracy requirement, and a collection frequency parameter; a dynamic slicing module, configured to dynamically split the original data collection task into a plurality of lightweight sub-task slices with independent execution semantics according to the task type identifier, the collection accuracy requirement, and the collection frequency parameter, and configure a slice priority label and a slice resource requirement description for each sub-task slice; a terminal resource sensing module, configured to collect dynamic resource state information of each vehicle terminal in a vehicle terminal set in real time, wherein the dynamic resource state information at least includes current available computing power, current available network bandwidth, current available storage capacity, and current running load rate; a matching degree evaluation module, configured to construct a task-terminal resource matching degree evaluation model according to the slice resource requirement description and the dynamic resource state information, and calculate a resource matching degree score between each sub-task slice and each vehicle terminal; a scheduling decision module, configured to allocate a target vehicle terminal for each sub-task slice based on the slice priority label and the resource matching degree score, and generate an initial task allocation scheme by using a multi-objective optimization scheduling algorithm; a task issuing and execution monitoring module, configured to issue the initial task allocation scheme to each target vehicle terminal, control each target vehicle terminal to perform a data collection operation according to the corresponding sub-task slice, and monitor a task execution state of each target vehicle terminal in real time; a dynamic reallocation module, configured to continuously acquire dynamic resource state change information and task execution feedback information of each vehicle terminal during task execution, and perform dynamic reallocation on an unfinished or abnormal sub-task slice when a task reallocation condition triggering is detected; a data merging module, configured to receive collection data reported by each target vehicle terminal, classify and merge each collection data according to a slice identifier of a sub-task slice, and generate a complete collection data set corresponding to the original data collection task.
8. The dynamic slice based automotive data collection task allocation apparatus of claim 7, wherein, The dynamic slicing module comprises: The granularity determination unit is used to determine the spatial granularity of data acquisition based on the acquisition accuracy requirements and to determine the temporal granularity of data acquisition based on the acquisition frequency parameters. The spatiotemporal splitting unit is used to split the original data acquisition task into several spatiotemporal dimension subtask slices based on the spatial granularity and temporal granularity. The heterogeneous splitting unit is used to split structured data and unstructured image and radar point cloud data into independent sub-task slices according to the data type for acquisition tasks containing heterogeneous data containing structured and unstructured data. The slice configuration unit is used to configure the slice priority label, slice resource requirement description, data transmission protocol and storage format for each subtask slice.
9. The dynamic slice based automotive data collection task allocation apparatus of claim 7, wherein, The scheduling decision module includes: The multi-objective optimization unit is used to construct a multi-objective optimization function with the optimization objectives of maximizing the overall resource matching degree, minimizing the load balancing deviation of the vehicle terminal, and maximizing the priority allocation rate of high-priority subtask slices. A heuristic search unit is used to solve the multi-objective optimization function using a heuristic search algorithm and output the optimal task allocation scheme. The conflict detection unit is used to detect whether there is a resource quota conflict after each subtask slice is assigned to the target vehicle terminal. If a conflict exists, the heuristic search unit is triggered to solve the problem again.
10. The dynamic slice based automotive data collection task allocation apparatus of claim 7, wherein, Also includes: The sudden task insertion module is used to receive newly added sudden data acquisition tasks, submit the sudden data acquisition tasks to the task parsing module and the dynamic slicing module for slicing processing, and insert the generated sudden subtask slices into the current queue to be assigned according to the slice priority label.
