A method for capability evolution and shadow running of software and hardware decoupling of unmanned vehicles
By constructing a layered architecture for autonomous vehicle software and a shadow operation method, the problem of tight integration between autonomous vehicle software and hardware was solved, enabling safe verification and reliable upgrades of new functions, reducing version update risks, and improving fault recovery efficiency and software version adaptation efficiency.
Patent Information
- Application Number
- CN202611123311.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-28
- Publication Date
- 2026-11-24
AI Technical Summary
Traditional autonomous vehicles have tightly integrated hardware and software, making it difficult to effectively verify new functions in real-world operating environments. Version updates are risky and fault recovery is slow, making it difficult to meet the needs for precise evolution of software capabilities and large-scale management.
A layered architecture for autonomous vehicle software is constructed, and the capability modules to be verified are connected in shadow mode. The shadow output is compared and analyzed with the architecture output. A gray-scale operation mechanism is introduced for gradual verification and control. A safe sandbox environment and data mirroring channel are used for resource isolation and lightweight fault tolerance to achieve multi-vehicle version matching and push.
It has enabled the safe verification and iteration of new capabilities of autonomous vehicle software, reduced the risk of version updates, improved the efficiency of fault recovery, and ensured the normal operation of vehicles and the accurate adaptation and reuse of software versions for multiple vehicles.
Smart Images

Figure CN123157253A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of autonomous vehicle technology, and in particular to an evolution of the ability to decouple the software and hardware of autonomous vehicles and a method for shadow operation. Background Technology
[0002] With the large-scale deployment of autonomous vehicles, software capability iteration and upgrades have become commonplace. The operational status of the software directly impacts driving safety, business operations, and the stability of onboard equipment. Therefore, the secure verification and version evolution of new capability modules are crucial. Currently, autonomous vehicles primarily employ upgrade methods involving complete package replacement and offline simulation testing. These solutions function correctly in simple scenarios with low-frequency updates. However, due to the deep coupling between autonomous vehicle hardware and software and the dynamic and ever-changing nature of real-world driving environments, traditional upgrade methods have significant limitations. They cannot accurately verify the actual effectiveness of the capability modules to be deployed without interfering with the main system's operation; the evaluation data is biased and distorted; and they also suffer from high upgrade risks and low efficiency in fault rollback, making it difficult to meet the actual needs of precise evolution and large-scale management of autonomous vehicle software capabilities. Summary of the Invention
[0003] This application solves the technical problems of traditional unmanned vehicles, such as tight integration of hardware and software, inability to effectively verify new functions in real operating environments, high risk of version updates, and slow fault recovery.
[0004] To address the aforementioned technical issues, this application proposes a method for capability evolution and shadow operation of unmanned vehicles with decoupled software and hardware. The method includes: constructing a hierarchical software capability architecture for the unmanned vehicle; connecting the capability module to be verified to the hierarchical software capability architecture in shadow mode, and generating shadow outputs through the hierarchical software capability architecture; comparing and analyzing the shadow outputs with the architecture outputs of the hierarchical software capability architecture to generate an evaluation report; introducing a gray-scale operation mechanism to analyze the evaluation report and generate a gray-scale control strategy, and controlling the operation of the unmanned vehicle based on the gray-scale control strategy.
[0005] This application proposes one or more technical solutions, which have at least the following technical effects:
[0006] This application establishes a layered architecture for autonomous vehicle software, integrates the modules to be verified in shadow mode, and manages their resources. Through multi-dimensional comparative calculations, operational difference data is obtained. Based on the evaluation results, a tiered operational strategy is formulated, and control permissions are gradually switched. Simultaneously, layered version rollbacks are executed for anomalies. Multi-vehicle version matching and push are completed based on hardware profiles. This ensures the reliable verification and iteration of new capabilities for autonomous vehicle software, making the software upgrade process safer and the overall operation and maintenance management more efficient. It achieves the technical effect of completing new function testing and gradual updates while ensuring normal vehicle operation, enabling rapid fault handling, and achieving precise adaptation of multiple vehicle software versions and reuse of experience. Attached Figure Description
[0007] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0008] Figure 1 This is a flowchart illustrating the capability evolution and shadow operation method for decoupling software and hardware in unmanned vehicles, as provided in an embodiment of this application.
[0009] Figure 2 This is a flowchart illustrating the process of constructing a layered software capability architecture for an autonomous vehicle in a method for decoupling software and hardware and shadow operation of an autonomous vehicle, as provided in an embodiment of this application. Detailed Implementation
[0010] This application provides a method for the evolution of capabilities and shadow operation of decoupling software and hardware in unmanned vehicles, which solves the technical problems of traditional unmanned vehicles where software and hardware are tightly integrated, new functions cannot be effectively verified in real operating environments, version updates are risky, and fault recovery is slow.
[0011] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0012] It should be noted that any variation of the terms "comprising" and "having" is intended to cover non-exclusive inclusion, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or modules that are not explicitly listed or that are inherent to such processes, methods, products, or devices.
[0013] like Figure 1 As shown, an evolution of the capability of decoupling software and hardware in autonomous vehicles and a method for shadow operation are described, wherein the method includes:
[0014] Construct a layered architecture for the software capabilities of autonomous vehicles.
[0015] In this embodiment, "unmanned vehicle" refers to a driverless vehicle, such as a park shuttle bus, delivery robot, or mining transport vehicle. The layered software capability architecture manages the unmanned vehicle software by functional layer, with each layer developed and upgraded independently.
[0016] Specifically, the autonomous vehicle software is divided into a basic operation layer, a perception capability layer, a decision-making strategy layer, and a scenario application layer. Each layer has an independent version identifier and interface definition. After configuring the corresponding functional modules, they are combined to build a complete layered software capability architecture. The specific implementation process of this step will be described in detail later.
[0017] The capability module to be verified is connected to the software capability layering architecture in shadow mode, and shadow output is generated through the software capability layering architecture.
[0018] In this embodiment, the capability module to be verified is a specific functional component added or optimized in the autonomous driving system, such as lane keeping, automatic lane changing, or traffic light recognition. It needs to undergo multi-stage verification, including simulation testing, shadow running, and gray-scale verification, before being formally deployed after confirming that its performance meets the standards. Shadow mode is a testing method where the autonomous driving system runs the algorithm to be verified in parallel in real-world road scenarios. The new algorithm shares sensor inputs with the current production version but does not participate in vehicle control; it only records decision differences for evaluation and optimization, acquiring real-world scenario data without compromising safety.
[0019] Optionally, a secure sandbox environment is constructed to encapsulate the capability module to be verified. The software data stream is copied through a data mirroring channel and input into the sandbox environment. The computational logic of the module to be verified is executed in the sandbox to generate a shadow output. The specific implementation process of this step will also be described in detail later.
[0020] The shadow output is compared and analyzed with the architecture output of the software capability layering architecture to generate an evaluation report.
[0021] In one embodiment of this application, the bounding box sequence and acceleration curve corresponding to the shadow output and the architecture output are extracted, and two types of difference metrics are calculated respectively. Then, the difference metrics are aggregated and statistically analyzed in combination with the current running scenario label and the road topology type identifier, and finally an evaluation report is generated. The specific implementation process of this step will be described in detail later.
[0022] A grayscale operation mechanism is introduced to analyze the evaluation report and generate a grayscale control strategy, and the unmanned vehicle is operated and controlled based on the grayscale control strategy.
[0023] In this embodiment, the gray-scale operation mechanism is a gradual deployment strategy adopted when releasing autonomous driving software versions. It first pushes the version to be verified to a small number of vehicles, and gradually expands the coverage after no anomalies are found. By verifying in batches, the risk of full release is reduced and the system is guaranteed to upgrade stably.
[0024] Specifically, two observation windows are set up. First, the evaluation index parameters are monitored in the first observation window. If the parameters continuously meet the predetermined threshold range, the first gray-scale strategy is generated, and the control authority of the capability module to be verified is limited to the first test road segment. Then, the actual operation index of the road segment is monitored in the second observation window. After all the indicators meet the stability conditions, the second gray-scale strategy is generated, and the control authority is switched to the global target mode. The specific implementation process of this step will also be described in detail later.
[0025] Furthermore, such as Figure 2 As shown, the method provided in this application embodiment includes:
[0026] The layered software capability architecture comprises a basic operation layer, a perception capability layer, a decision strategy layer, and a scenario application layer. Each layer in the layered software capability architecture has an independent version identifier and interface definition. Constructing the layered software capability architecture for the autonomous vehicle includes: configuring the basic operation layer, which includes computing platform management, communication bus control, chassis interface driving, and positioning clock synchronization modules; configuring the perception capability layer, which includes target detection processing, semantic segmentation calculation, obstacle tracking and matching, and environmental feature extraction; configuring the decision strategy layer, which includes behavioral logic decision-making, local path planning, vehicle meeting strategy generation, and speed curve control; and configuring the scenario application layer, which includes task sequence orchestration, scenario state machine switching, and business instruction parsing. Based on the basic operation layer, the perception capability layer, the decision strategy layer, and the scenario application layer, the layered software capability architecture is constructed.
[0027] Specifically, when configuring the basic operating layer, for example, the cgroups mechanism built into the Linux kernel is used to manage the computing platform. First, the CPU and memory hardware resources of the onboard computing platform are initialized, allocating independent resource quotas for subsequent software layers to avoid resource contention between different modules. The DDS data distribution service is used to control the communication bus, pre-defining communication topics and data formats between modules and configuring publish-subscribe communication links to ensure real-time and reliable data transmission. The SocketCAN protocol stack is used to implement the chassis interface driver, loading a CAN bus driver matching the autonomous vehicle chassis model to establish a command transmission channel between the vehicle and the chassis. The IEEE 1588v2 precise time protocol is used for positioning clock synchronization, and the PTP service is started to perform clock calibration with the BeiDou positioning module to ensure a unified time base for the entire system.
[0028] When configuring the perception layer, the lightweight YOLOv5s model is preferred for object detection. A pre-trained object detection model is loaded and converted to TensorRT accelerated format for real-time inference of images captured by the vehicle camera, outputting the category and location information of various obstacles. The SegNet model is used for semantic segmentation, performing pixel-level segmentation of road, drivable, and obstacle regions in the image. Kalman filtering combined with the Hungarian algorithm is used for obstacle tracking and matching. A Kalman filter is initialized for each detected target, and the Hungarian algorithm is used to associate target data between adjacent frames, enabling continuous obstacle tracking. The feature point extraction algorithm from ORB-SLAM2 is used for environmental feature extraction, extracting corner and line features from the image for subsequent environmental localization and mapping.
[0029] When configuring the decision-making strategy layer, a finite state machine method is used to implement behavioral logic decisions. Basic behavioral states such as normal driving, meeting oncoming traffic, obstacle avoidance, and stopping are predefined, along with the triggering conditions for switching between different states. The corresponding behavioral state is switched based on environmental information output from the perception layer. Local path planning is achieved using Dijkstra's algorithm combined with a dynamic window method. First, a global reference path is generated using Dijkstra's algorithm based on high-precision map data. Then, a locally feasible path is generated using the dynamic window method, combined with the current vehicle state and obstacle information. Meeting oncoming traffic strategies are generated using a right-of-way rule-based approach. Based on the distance, speed, and road width of oncoming vehicles, corresponding strategies for decelerating to yield or accelerating to pass are generated. Speed curve control is implemented using a PID control algorithm. Based on the target path and target speed, a smooth acceleration curve and steering control commands are calculated and generated.
[0030] When configuring the scenario application layer, task sequence orchestration is achieved using XML-based task description files. Pre-written XML task files containing task execution order, execution conditions, and timeout rules are used, and the files are parsed to generate executable task sequences. A hierarchical state machine is employed to manage the state transitions of different business scenarios, such as idle, task execution, and exception handling, automatically switching scenario states based on task progress and system status. A JSON parser is used to parse business instructions, receiving JSON-formatted instructions from the cloud, converting them into a system-recognizable instruction format, and triggering the corresponding task execution process.
[0031] After configuring the functional modules of each layer, independent version identifiers are assigned to the basic operation layer, perception capability layer, decision strategy layer, and scenario application layer. These version identifiers use a semantic version number format (xyz), where the major version number indicates incompatible architectural changes, the minor version number indicates backward-compatible feature additions, and the revision number indicates backward-compatible bug fixes. Standardized interfaces between layers are defined using a RESTful style, with requests and responses transmitted in JSON format. Each layer interacts with the upper layer only through these standardized interfaces. The basic operation layer provides raw sensor data, positioning coordinate sequences, and global clock synchronization signals to the upper layer. The perception capability layer outputs target detection results, semantic segmentation maps, and environmental feature vectors to the decision strategy layer. The decision strategy layer issues chassis control commands to the basic operation layer, and the scenario application layer issues task objectives and scenario rules to the decision strategy layer. Modifications and version updates within a layer do not affect the normal operation of other layers. Based on the configured four layers, a complete layered architecture for autonomous vehicle software capabilities is constructed according to the dependencies from the bottom layer to the top.
[0032] By dividing the autonomous vehicle software system into four independent functional levels and configuring independent version identifiers and standardized interfaces, the decoupling and isolation of different functional modules are achieved, effectively reducing the impact of local capability updates on the entire system.
[0033] Furthermore, the method provided in this application embodiment includes:
[0034] A secure sandbox environment is constructed, and the capability module to be verified is encapsulated within the secure sandbox environment; the software data stream of the software capability layered architecture is copied through a data mirroring channel to obtain a copied data stream, and the copied data stream is input into the secure sandbox environment; based on the secure sandbox environment, the computational logic of the capability module to be verified is executed in conjunction with the copied data stream to generate the shadow output.
[0035] Optionally, firstly, a lightweight secure sandbox environment is built using Docker containerization technology. A Docker daemon is started in the basic runtime layer of the in-vehicle computing platform, creating an independent container namespace and file system. An independent network port and process ID space are allocated to the sandbox to prevent processes within the sandbox from accessing the core resources of the main system. Based on the Ubuntu 20.04 in-vehicle customized version base image, a Docker image of the capability module to be verified is built. The image contains the dependency libraries, configuration files, and execution scripts required for the module to run. The image is then loaded into the sandbox environment, and the container process is started, completing the encapsulation of the capability module to be verified.
[0036] Next, a data mirroring channel is constructed using the multi-subscriber mechanism of the FastDDS open-source DDS data distribution service. Mirror subscribers are registered at the standardized RESTful interfaces of each layer of the main system. When the publisher of the main system sends data to the primary subscriber, it automatically sends an identical copy of the data to the mirror subscriber. Sensor data streams, positioning coordinate sequences, and intermediate state variables from the software capability layered architecture are copied sequentially. The sensor data streams include raw data collected by vehicle cameras, LiDAR, and millimeter-wave radar; the positioning coordinate sequences include latitude, longitude, and attitude information output by the BeiDou positioning module; and the intermediate state variables include the target list output by the perception layer and the behavioral state output by the decision layer. The copied data streams are aligned according to timestamps to generate a synchronized copied data stream. This copied data stream is then input into a secure sandbox environment via a local socket. A data reception timeout threshold of 100 milliseconds is set. When a process within the sandbox experiences a data reception timeout exceeding 100 milliseconds, expired data packets are automatically discarded to prevent process blocking within the sandbox.
[0037] The execution process of the capability module to be verified is started in a secure sandbox environment. The process reads the input copied data stream in timestamp order and performs data parsing, feature extraction, and inference calculations sequentially according to the module's internal computational logic. During execution, the Linux kernel's cgroups mechanism is used to monitor and limit the resources of the sandbox process, collecting the CPU utilization and RRAM usage of the sandbox process in real time. For example, the first threshold is set to CPU utilization not exceeding 30%, and the second threshold is RRAM usage not exceeding 2GB. When either indicator is detected to exceed the corresponding threshold, a resource throttling instruction is triggered, reducing the priority of the sandbox process's computation thread and discarding redundant data packets exceeding the transmission rate to ensure priority resource allocation for the main system. After the capability module to be verified completes the calculation, it generates a corresponding shadow output. The format of the shadow output is completely consistent with the output format of the corresponding level of the main system, including the target bounding box sequence, path planning results, or speed control instructions.
[0038] By encapsulating the capability modules to be verified in a containerized security sandbox, combining it with a data mirroring channel to achieve input of data from the same source, and with the support of resource isolation, rate limiting and lightweight fault tolerance mechanisms, the parallel operation and shadow output generation of the capability modules to be verified in a real business environment can be completed without interfering with the normal operation of the main system.
[0039] Furthermore, the method provided in this application embodiment includes:
[0040] The software data stream includes sensor data stream, positioning coordinate sequence, and intermediate state variables.
[0041] Specifically, sensor data streams refer to the raw environmental perception data collected by the onboard sensors of the autonomous vehicle, including RGB image data from onboard cameras, point cloud data from LiDAR, target distance and velocity data from millimeter-wave radar, and near-range obstacle distance data from ultrasonic radar. Sensor data streams are acquired through the FastDDS communication bus of the basic operating layer. When the main system starts, independent DDS publishing topics are pre-created for each type of sensor. Shadow subscribers corresponding to the modules to be verified subscribe to these topics and obtain raw sensor data identical to that of the main system in real time. In shadow operation, the sensor data stream serves as the core input to the perception layer modules to be verified, used to perform computational logic such as target detection processing, semantic segmentation calculation, obstacle tracking and matching, and environmental feature extraction.
[0042] The positioning coordinate sequence refers to the time-series data reflecting the real-time spatial position and motion state of an unmanned vehicle (UAV), including its latitude and longitude coordinates, heading angle, speed, acceleration, and attitude angles. The positioning coordinate sequence is acquired through the BeiDou / GPS / IMU integrated navigation system of the basic operating layer. Combined with the IEEE 1588v2 positioning clock synchronization module of the basic operating layer, a unified timestamp is added to each set of positioning data, forming a time-aligned continuous coordinate sequence. In shadow operation, the positioning coordinate sequence provides a spatiotemporal reference for the decision-making strategy layer's verification modules, used in calculations such as local path planning, vehicle meeting strategy generation, and speed curve control.
[0043] Intermediate state variables refer to the intermediate computation results generated by each layer of the main system during operation. These include the target category list, target tracking ID, semantic segmentation mask, and environmental feature vector output by the perception capability layer, as well as the current behavior state, local path point sequence, and speed control command sequence output by the decision strategy layer. Intermediate state variables are obtained through mirroring via standardized RESTful interfaces between the layers of the main system. A dedicated mirror subscription endpoint is registered at the main system interface, and when the main system generates intermediate state data, an identical copy of the data is automatically sent to the mirror endpoint. In shadow operation, intermediate state variables provide complete contextual information to the module to be verified, ensuring that the module can reproduce the main system's operating state and complete subsequent computational logic that depends on upstream intermediate results.
[0044] Furthermore, the method provided in this application embodiment includes:
[0045] A resource isolation mechanism is introduced to monitor and limit resources in the process of generating the shadow output, including: real-time monitoring to obtain the shadow resource consumption value; determining whether the shadow resource consumption value is within the resource quota threshold set in the resource isolation mechanism; if not, triggering a resource limiting instruction, and reducing the priority of the computing thread generating the shadow output according to the resource limiting instruction, and discarding redundant data packets that exceed the threshold.
[0046] Specifically, while starting the module to be verified in the secure sandbox environment, a resource monitoring module is initialized based on the cgroups v1 resource management framework already deployed in the Linux kernel. The cpuacct and memory subsystems are enabled to monitor the CPU utilization and random access memory usage of the sandbox container, respectively. The resource sampling frequency is set to once every 100 milliseconds. Each sample reads the cumulative CPU usage and current memory usage of all processes within the sandbox container, and calculates the shadow resource consumption value at the current moment. The sampled resource consumption value is only cached in local memory and is not persistently stored to avoid additional consumption of system resources.
[0047] Resource quota thresholds are pre-set via cgroups configuration files. The first threshold is the CPU utilization limit, set to no more than 30% of the total computing power of the onboard computing platform. The second threshold is the random access memory (RAM) usage limit, set to no more than 2GB. The shadow resource consumption value obtained from each sampling is compared with the corresponding threshold in real time to determine whether the CPU utilization is less than or equal to the first threshold, and simultaneously whether the RAM usage is less than or equal to the second threshold. When either resource consumption value exceeds its corresponding threshold, a resource throttling command is immediately generated and sent to the sandbox process scheduling module.
[0048] Upon receiving a resource throttling command, the sandbox process scheduling module first adjusts the scheduling parameters of the shadow computing thread via the `sched_setscheduler` system call. The shadow thread, which defaults to the `SCHED_OTHER` time-sharing scheduling strategy, has its priority increased from 0 to 10, making it lower than all core business threads in the main system. Simultaneously, a packet dropping mechanism is activated. When the queue length of unprocessed packets in the data mirroring channel exceeds 100 frames, redundant packets are dropped in ascending order of timestamp, prioritizing the retention of valid data with the latest timestamp, until the shadow resource consumption value falls back to the resource quota threshold. When the resource consumption value is within the threshold range for five consecutive samples, the default priority of the shadow computing thread is automatically restored, and packet dropping operations cease.
[0049] By implementing a version resource management framework, real-time monitoring and threshold control of shadow process resources are achieved. Combined with thread priority adjustment and queued ordered data packet discarding mechanism, the hardware resources of the main system are effectively prevented from being preempted by the capability modules to be verified, thus ensuring the real-time performance and operational stability of the autonomous vehicle's main driving system.
[0050] Furthermore, the method provided in this application embodiment includes:
[0051] The resource quota threshold includes a first threshold and a second threshold; when the first consumption value in the shadow resource consumption value is not at the first threshold, or the second consumption value is not at the second threshold, the resource flow limiting instruction is triggered; wherein, the first threshold refers to the CPU utilization limit, and the second threshold refers to the random access memory usage limit.
[0052] Specifically, the first and second thresholds are configured through the standard interface of the Linux cgroups v1 resource management framework. Dedicated CPU resource control groups and memory resource control groups are created for the sandbox container. The CPU scheduling cycle is set to 100,000 microseconds, and the CPU availability time is set to 30,000 microseconds. The first threshold corresponds to a CPU utilization rate not exceeding 30%. The maximum memory usage is set to 2,147,483,648 bytes, corresponding to a random access memory (RAM) usage not exceeding 2GB. After configuration, the sandbox container's processes are added to the two resource control groups for unified management. The values of the first and second thresholds can be flexibly adjusted according to the actual computing power and business needs of the in-vehicle computing platform, and are not limited to the 30% and 2GB values in the example.
[0053] During resource monitoring, the first and second consumption values are extracted from the shadow resource consumption values. The first consumption value is the CPU utilization rate, calculated by dividing the difference in cumulative CPU usage time between two consecutive samples by the sampling interval. The second consumption value is the random access memory usage, obtained by reading the current value through the standard interface of the resource management framework. The first consumption value is compared with a first threshold, and the second consumption value is compared with a second threshold. A double sampling confirmation mechanism is used to avoid misjudgments caused by instantaneous resource fluctuations. When the first consumption value is greater than the first threshold twice consecutively, or the second consumption value is greater than the second threshold twice consecutively, a resource throttling command is immediately generated and sent to the sandbox process scheduling module.
[0054] After receiving a resource throttling command, the sandbox process scheduling module performs corresponding thread priority adjustments and redundant data packet discarding operations. When the consumption values of both types of resources fall back to the corresponding threshold range after five consecutive samplings, the throttling state is automatically lifted. This content achieves fine-grained control over shadow process resource consumption by clearly defining independent quota thresholds for two core resources—the CPU and memory—and employing an OR logic-triggered throttling mechanism. This avoids the problem that a single threshold cannot fully cover the risk of resource occupancy.
[0055] Furthermore, the method provided in this application embodiment includes:
[0056] Extract the first bounding box sequence and the first acceleration curve from the shadow output, and the second bounding box sequence and the second acceleration curve from the architecture output; calculate the spatial overlap rate and positional offset distance between the first bounding box sequence and the second bounding box sequence to obtain a first difference metric; calculate the temporal difference and extreme value deviation between the first acceleration curve and the second acceleration curve to obtain a second difference metric; obtain the current running scene label and the road topology type identifier, and aggregate and statistically analyze the first difference metric and the second difference metric according to the current running scene label and the road topology type identifier to generate the evaluation report.
[0057] In one embodiment, after the shadow output and architecture output are generated, the two types of output data are synchronized and aligned according to the same timestamp. The first bounding box sequence of the shadow output and the second bounding box sequence of the architecture output are extracted from the output results corresponding to the perception layer. Each bounding box contains target category, tracking ID, center point coordinates, width, and height information. The first acceleration curve of the shadow output and the second acceleration curve of the architecture output are extracted from the output results corresponding to the decision control layer. Each acceleration curve consists of longitudinal acceleration values arranged in chronological order, with the sampling interval consistent with the system control cycle.
[0058] Next, a one-to-one matching method based on target tracking IDs is used to match targets in two bounding box sequences. For two bounding boxes with the same tracking ID at the same time, the intersection-union algorithm is used to calculate the spatial overlap rate between them. The ratio of the area of the intersection region to the area of the union region is calculated to obtain the spatial overlap rate at that time. The Euclidean distance algorithm is used to calculate the straight-line distance between the center points of the two bounding boxes to obtain the positional offset distance at that time. Tracking IDs that appear only in one sequence are marked separately as missed or false detection samples and included in the subsequent statistical scope. The arithmetic mean of the spatial overlap rate and positional offset distance of all successfully matched samples throughout the entire evaluation period is calculated. The two means are then weighted and summed to obtain the first difference metric, where the weight of the spatial overlap rate is set to 0.6 and the weight of the positional offset distance is set to 0.4.
[0059] Subsequently, the point-by-point difference method was used to calculate the temporal difference between the first and second acceleration curves. For two acceleration values at the same moment, the absolute value of their difference was calculated to obtain the temporal difference value at that moment. The maximum and minimum acceleration values of the two acceleration curves within the evaluation period were extracted respectively, and the difference between the corresponding extreme values was calculated to obtain the extreme value deviation. The arithmetic mean of the temporal difference values at all moments throughout the entire evaluation period was calculated, and then weighted and summed with the extreme value deviation to obtain the second difference metric, where the weight of the temporal difference mean was set to 0.7, and the weight of the extreme value deviation was set to 0.3.
[0060] Finally, the current operating scenario label and road topology type identifier are obtained from the high-precision map service module. Operating scenario labels include types such as urban roads, highways, and park roads, while road topology type identifiers include types such as straight roads, curves, intersections, and T-junctions. The preset qualification threshold can be configured differently according to the safety requirements of different scenarios, with the highest threshold setting for highway scenarios, followed by urban road scenarios, and a more relaxed threshold for park road scenarios. All first and second difference metrics generated within the evaluation period are grouped according to their corresponding operating scenario labels and road topology type identifiers. The average, maximum, and compliance rate of the difference metrics within each group are calculated. The compliance rate is defined as the proportion of samples with difference metrics lower than the preset qualification threshold for the corresponding scenario to the total number of samples. All statistical results are compiled into a structured document and output as an evaluation report in JSON format. The report includes core fields such as scenario identifier, road type, difference metric statistical results, and missed / false detection statistics, facilitating automatic parsing by the subsequent grayscale control module.
[0061] By calculating the differences in the perception layer through precise target matching based on tracking ID, and combining the scenario-differentiation threshold with the structured JSON output format, a comprehensive quantitative assessment of the output differences of the capability modules to be verified is achieved, providing accurate and reliable data support for subsequent canary release decisions.
[0062] Furthermore, the method provided in this application embodiment includes:
[0063] A first observation window and a second observation window are set; within the first observation window, predetermined evaluation indicators in the evaluation report are monitored to obtain evaluation indicator parameters; when the evaluation indicator parameters are continuously within a predetermined threshold range within the first observation window, a first grayscale strategy is generated, and the control permissions of the capability module to be verified are limited to a first test road segment according to the first grayscale strategy; within the second observation window, the actual operating indicators of the capability module to be verified under the first test road segment are monitored; when all the actual operating indicators meet the stability conditions within the second observation window, a second grayscale strategy is generated, and the control permissions of the capability module to be verified are switched to the global target mode according to the second grayscale strategy.
[0064] Optionally, a sliding window method is used to set a first observation window and a second observation window. The first observation window is set to a continuous 24-hour or 100-kilometer driving distance, and the second observation window is set to a continuous 72-hour or 500-kilometer driving distance. The sliding step size for both observation windows is set to 1 hour or 10 kilometers. The windows employ a dual trigger mechanism of time and mileage; once either condition is met, the statistical data for one observation period is completed, ensuring sufficient validation data can be obtained under different driving conditions.
[0065] Within the first observation window, the system continuously monitors the predetermined evaluation indicators in the evaluation report. These indicators include a first difference metric, a second difference metric, a target false negative rate, a target false positive rate, and an acceleration deviation rate. The system periodically extracts the statistical average of these indicators from the JSON-formatted evaluation report, according to the time granularity of the sliding window, and compares the average of each indicator with its corresponding predetermined threshold range. The predetermined threshold ranges are set differently based on the security requirements of different scenarios. For highway scenarios, the first difference metric threshold is less than 0.12, and the target false negative rate threshold is less than 0.5%. For urban road scenarios, the first difference metric threshold is less than 0.15, and the target false negative rate threshold is less than 1%. The shadow operation phase is considered successful when all predetermined evaluation indicators are continuously within the predetermined threshold range within the first observation window. Specifically, the statistical average of all indicators is within the corresponding threshold range for 10 consecutive sliding windows.
[0066] Subsequently, a first grayscale strategy is generated, and the control permissions of the capability module to be verified are limited to the first test road segment according to the first grayscale strategy. The system selects the first test road segment that meets the conditions from the high-precision map service, prioritizing closed park roads or urban branch roads with traffic flow of less than 50 vehicles per hour, and sends the geofence information of these road segments to the vehicle control system. When the vehicle enters the geofence area of the first test road segment, the capability module to be verified is automatically set as the backup control source, while the main system maintains real-time monitoring. The control command of the module to be verified is only executed when the difference between the output of the module to be verified and the output of the main system is less than a preset safety threshold. When the vehicle leaves the first test road segment, it immediately and automatically switches back to the main system's independent control mode. If, during the operation of the first test road segment, any actual operating indicator exceeds the stability condition for three consecutive sliding windows, the rollback mechanism is immediately triggered, automatically reverting to the shadow operation mode. The module to be verified no longer participates in vehicle control, but only continues to perform shadow output and difference evaluation.
[0067] Within the second observation window, the actual operational indicators of the capability module to be verified under the first test section are continuously monitored. These indicators include vehicle lateral offset, longitudinal acceleration fluctuation, number of emergency braking triggers, following distance maintenance rate, and lane keeping success rate. Vehicle lateral offset is calculated through matching the integrated navigation system with a high-precision map; longitudinal acceleration fluctuation is collected by chassis acceleration sensors; and following distance maintenance rate is calculated using distance measurement data from millimeter-wave radar. Corresponding stability conditions are set for each operational indicator, such as a vehicle lateral offset less than 0.3 meters, a longitudinal acceleration fluctuation less than 0.5 meters per second squared, no emergency braking triggers within the observation period, and a following distance maintenance rate of 100%.
[0068] When all actual operating indicators continuously meet the stability conditions within the second observation window, a second gray-scale strategy is generated. Based on this strategy, the control permissions of the capability module to be verified are switched to the global target mode. The system sets the capability module to be verified as the highest priority control source, and the main system switches to hot backup monitoring mode. During normal operation, the main system fully executes the control commands of the capability module to be verified, only comparing the output differences between the module to be verified and its own in real time. When the difference exceeds a preset safety threshold, the main system immediately takes over vehicle control and triggers an anomaly reporting mechanism, recording the scene data and operation logs at the time of the anomaly. If, during operation in the global target mode, any actual operating indicator exceeds the stability conditions for five consecutive sliding windows, a rollback mechanism is immediately triggered, automatically reverting to the first test segment control mode, and the control permissions of the module to be verified are redefined within the first test segment.
[0069] By setting up a two-stage progressive observation window, the shadow output difference verification and actual driving effect verification are completed respectively, gradually expanding the control range of the capability module to be verified. At the same time, a complete hierarchical rollback mechanism and clear primary / backup switching priority logic are provided to ensure smooth online and stable evolution of new capability modules while maximizing driving safety.
[0070] Furthermore, the method provided in this application embodiment includes:
[0071] Record the model parameter hash value, rule configuration version number, and hardware running status snapshot for each shadow run, grayscale switch, and version update to obtain an operation traceability record; locate the abnormal capability level corresponding to the abnormal timestamp in the operation traceability record; retrieve the stable version identifier of the abnormal capability level from the cloud repository or local cache; overwrite the program file and configuration parameters corresponding to the stable version identifier into the current running environment, while keeping the version identifier of the non-abnormal capability level unchanged.
[0072] Optionally, the system automatically generates corresponding operation traceability records each time shadow operation is started, gray-scale strategy switching is performed, or capability module version updates are completed. The SHA-256 hash algorithm is used to calculate the hash value of the model parameters of the capability module to be verified, and the currently effective rule configuration version number is recorded. Simultaneously, hardware operation status snapshots are collected, including the CPU utilization rate, random access memory usage, sensor connection status, and communication bus load rate of the onboard computing platform. Operation traceability records are stored simultaneously in local flash memory and a cloud database. The local cache retains the most recent 10 operation records for quick retrieval, while the cloud storage stores the entire historical record for subsequent fault analysis and traceability.
[0073] When any of the predetermined evaluation indicators exceeds the predetermined threshold range, the system immediately triggers temporary safety measures, automatically switching vehicle control authority to the main system's full control mode. The modules awaiting verification cease participating in vehicle control, retaining only shadow operation mode for output calculation. Subsequently, an exception handling process is initiated, extracting the precise timestamp of the exception occurrence. Based on the exception timestamp, the system retrieves operation traceability records from the local cache to obtain complete information on the last version change or configuration adjustment before the exception. By comparing the version changes and operation logs of each capability level before and after the exception, the system analyzes the capability level to which the computational logic corresponding to the exception output belongs, determining whether the exception capability level is the perception layer, decision layer, or application layer. Simultaneously, the scenario information and output data at the time of the exception are recorded.
[0074] First, the system queries the local cache for a list of stable versions for the abnormal capability level. A stable version is defined as one that has undergone a complete two-phase gray-scale verification and has run continuously for more than 72 hours without any anomalies. If a stable version is available in the local cache, the corresponding stable version identifier is retrieved directly. If no stable version is available in the local cache, the system retrieves the latest stable version identifier for that abnormal capability level from the cloud version repository via the vehicle-to-everything (V2X) communication module, and then resumes interrupted downloads of the corresponding program files and configuration parameters to the local temporary directory.
[0075] An atomic file write mechanism is used to complete the version rollback operation. First, the program files and configuration parameters corresponding to the stable version identifier are written to a local temporary directory. After writing, a renaming operation replaces the original files at the abnormal capability level in one go. If the renaming operation fails, all files in the temporary directory are immediately deleted to maintain the integrity of the original version files and prevent system startup failure due to file corruption. The write operation only applies to the identified abnormal capability level; program files and configuration parameters for other non-abnormal capability levels remain completely unchanged. After writing, the processes at the abnormal capability level are automatically restarted to verify the startup status and running parameters of the new version. After a successful process restart, the system's core evaluation metrics are continuously monitored. When the core evaluation metrics recover to the predetermined threshold range for three consecutive sliding windows, the version rollback operation is confirmed as successful, and the system resumes normal operation.
[0076] Driving safety is ensured by a primary system takeover mechanism when an anomaly is triggered. Accurate hierarchical location of anomalies is achieved by combining full lifecycle operation traceability records. An atomic write fault tolerance mechanism and a rollback verification standard are provided. Stable version management and single-level overwrite writing are adopted by dual local and cloud storage. While quickly restoring normal system operation, the impact of version rollback on other normal functional modules is minimized.
[0077] Furthermore, the method provided in this application embodiment includes:
[0078] Extract any unmanned vehicle in the multi-vehicle collaborative evolution; receive the first evaluation report and the first operation traceability record uploaded by the unmanned vehicle; extract the first computing platform model, the first sensor calibration matrix and the first chassis response delay parameter of the unmanned vehicle to construct a first hardware profile; match the first performance compliance record in the first evaluation report with the first hardware profile to select the first candidate capability version that performs stably under the first target hardware profile; push the first candidate capability version to other unmanned vehicle terminals that match the first target hardware profile.
[0079] Optionally, the cloud-based evolution management platform continuously connects to all registered autonomous vehicle terminals, establishing an encrypted long-term communication channel between the vehicles and the platform. The platform employs a multi-trigger data reporting mechanism: after each driving mission, a full data report is automatically triggered, or every 24 hours. Simultaneously, real-time incremental data reporting is immediately triggered when a vehicle completes a version update, gray-scale strategy switch, or abnormal version rollback operation. The platform receives the first evaluation report and first operation traceability record uploaded by any autonomous vehicle. Both types of data are in JSON format, consistent with the format generated by the vehicle, facilitating unified parsing and processing by the platform. The platform categorizes and stores data according to the vehicle's unique identifier, establishing a correlation index between vehicle operation data, version history, and hardware information for rapid subsequent retrieval and analysis.
[0080] The platform extracts the first computing platform model, the first sensor calibration matrix, and the first chassis response delay parameters from the basic configuration information reported by the vehicle to construct a standardized first hardware profile. The first computing platform model includes the central processing unit model, graphics processor model, and memory and storage capacity information; the first sensor calibration matrix includes the intrinsic parameter matrices of each camera, the extrinsic parameter calibration matrices of the LiDAR and cameras, and the installation offset parameters of the millimeter-wave radar; the first chassis response delay parameters include the braking system response delay, steering system response delay, and powertrain system response delay. The platform generates a unique hardware identifier for each hardware profile, groups vehicles with identical hardware configurations into the same hardware group, and establishes a mapping relationship between vehicles and hardware groups.
[0081] The platform extracts the first performance compliance record from the first evaluation report. This record is defined as a module undergoing complete two-stage gray-scale verification, where all evaluation and actual operational metrics meet predetermined threshold requirements during 72 consecutive hours of operation. The first performance compliance record is then associated with the corresponding first hardware profile. The platform groups each capability version by hardware identifier and calculates its operational compliance rate under the corresponding hardware configuration. The operational compliance rate is the percentage of compliance times for that version across all vehicles in the corresponding hardware group out of the total number of runs. When the operational compliance rate of a capability version in the same hardware group exceeds 95%, that version is marked as the first candidate capability version for that hardware group. The platform establishes a dynamic mapping table between hardware profiles and candidate capability versions, updating the latest stable candidate version for each hardware group in real time.
[0082] The platform retrieves hardware profile information for all connected vehicles and filters out other autonomous vehicle terminals that perfectly match the initial target hardware profile. A phased, gray-scale rollout strategy is adopted, initially pushing the first candidate capability version to 5% of vehicles in the hardware group for small-scale verification. After 24 hours of continuous operation without anomalies, the rollout ratio is gradually increased to 30%, then 70%, ultimately covering all vehicles in the hardware group. A failure retry mechanism is implemented during the rollout process, automatically retrying after a single failed push, with a maximum of 3 retries at 1-hour intervals. If the maximum number of retries is exceeded and the rollout still fails, an error log is recorded and manual intervention is triggered. The pushed content includes the candidate capability version's program files, configuration parameters, and version documentation. The vehicle terminal automatically downloads and installs the version when parked and with a remaining battery level above 30%. After installation, preset functional test cases are automatically run, sequentially executing the perception layer target detection test, the decision layer path planning test, and the control layer command execution test. Once all test cases pass, the version is confirmed to be successfully installed and put into normal use.
[0083] By unifying the collection of multi-vehicle operation data and hardware configuration information through a cloud platform, a standardized hardware profile is constructed and stable capability versions across vehicles are matched and screened. A phased gray-scale push strategy combined with failure retry and automatic verification mechanisms is adopted to achieve multi-vehicle collaborative evolution, which greatly improves the verification efficiency and online speed of new capability versions, while ensuring the consistency and stability of operation of vehicles with different hardware configurations.
[0084] In summary, the autonomous vehicle hardware and software decoupling capability evolution and shadow operation method provided in this application embodiment has the following technical effects:
[0085] This application constructs a layered architecture for autonomous vehicle software capabilities, integrates the capability modules to be verified in shadow mode and generates shadow outputs, compares and analyzes these shadow outputs with the architecture outputs to generate an evaluation report, introduces a gray-scale operation mechanism to analyze the evaluation report and generate a gray-scale control strategy, and controls the operation of the autonomous vehicle based on this strategy. This allows for the safe verification of new capabilities in real business scenarios and the smooth evolution of the autonomous vehicle's software and hardware decoupled capabilities, making the evolution more stable and reliable. It achieves the technical effect of completing new function testing and gradual updates while ensuring the normal operation of the vehicle, enabling rapid fault handling, and achieving precise adaptation of multiple vehicle software versions and reuse of experience.
[0086] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
[0087] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of this application and its equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for the evolution of unmanned vehicle software and hardware decoupling capabilities and shadow operation, characterized in that, include: Constructing a layered architecture for the software capabilities of autonomous vehicles; The capability module to be verified is connected to the software capability layering architecture in shadow mode, and shadow output is generated through the software capability layering architecture. The shadow output is compared and analyzed with the architecture output of the software capability layering architecture to generate an evaluation report; A grayscale operation mechanism is introduced to analyze the evaluation report and generate a grayscale control strategy, and the unmanned vehicle is operated and controlled based on the grayscale control strategy.
2. The method for the evolution of unmanned vehicle hardware and software decoupling capabilities and shadow operation as described in claim 1, characterized in that, The layered software capability architecture includes a basic operation layer, a perception capability layer, a decision-making strategy layer, and a scenario application layer. Each layer in the layered software capability architecture has an independent version identifier and interface definition. The construction of the layered software capability architecture for the autonomous vehicle includes: Configure the basic operating layer, wherein the basic operating layer includes computing platform management, communication bus control, chassis interface driver and positioning clock synchronization module; Configure the perception capability layer, wherein the perception capability layer includes target detection processing, semantic segmentation calculation, obstacle tracking and matching, and environmental feature extraction; Configure the decision strategy layer, wherein the decision strategy layer includes behavioral logic decision-making, local path planning, vehicle meeting strategy generation, and speed curve control; Configure the scenario application layer, wherein the scenario application layer includes task sequence orchestration, scenario state machine switching, and business instruction parsing; Based on the basic operation layer, the perception capability layer, the decision strategy layer, and the scenario application layer, the software capability layered architecture is constructed.
3. The method for the evolution of unmanned vehicle hardware and software decoupling capabilities and shadow operation as described in claim 1, characterized in that, The capability module to be verified is connected to the software capability layering architecture in shadow mode, and shadow output is generated through the software capability layering architecture, including: Construct a secure sandbox environment and encapsulate the capability module to be verified within the secure sandbox environment; The software data stream of the software capability layered architecture is copied through the data mirroring channel to obtain a copied data stream, and the copied data stream is input into the security sandbox environment; Based on the secure sandbox environment, the computational logic of the capability module to be verified is executed in conjunction with the replicated data stream to generate the shadow output.
4. The method for the evolution of unmanned vehicle software and hardware decoupling capabilities and shadow operation as described in claim 3, characterized in that, The software data stream includes sensor data stream, positioning coordinate sequence, and intermediate state variables.
5. The method for the evolution of unmanned vehicle software and hardware decoupling capabilities and shadow operation as described in claim 3, characterized in that, Based on the aforementioned secure sandbox environment, and in conjunction with the execution of the computational logic of the capability module to be verified using the replicated data stream, the shadow output is generated. This also includes: introducing a resource isolation mechanism to monitor and restrict resources during the generation of the shadow output, including: Real-time monitoring yields the value of shadow resource consumption; Determine whether the shadow resource consumption value is within the resource quota threshold set in the resource isolation mechanism; If not, a resource throttling instruction is triggered, and the priority of the computation thread generating the shadow output is reduced according to the resource throttling instruction, and redundant data packets exceeding the threshold are discarded.
6. The method for the evolution of unmanned vehicle hardware and software decoupling capabilities and shadow operation as described in claim 5, characterized in that, The resource quota threshold includes a first threshold and a second threshold; When the first consumption value in the shadow resource consumption value is not at the first threshold, or the second consumption value is not at the second threshold, the resource flow limiting instruction is triggered. The first threshold refers to the CPU utilization limit, and the second threshold refers to the random access memory usage limit.
7. The method for the evolution of unmanned vehicle software and hardware decoupling capabilities and shadow operation as described in claim 2, characterized in that, The shadow output is compared and analyzed with the architecture output of the software capability layering architecture to generate an evaluation report, including: Extract the first bounding box sequence and the first acceleration curve from the shadow output, and the second bounding box sequence and the second acceleration curve from the architecture output; Calculate the spatial overlap rate and positional offset distance between the first bounding box sequence and the second bounding box sequence to obtain a first difference metric value; Calculate the temporal difference and extreme value deviation between the first acceleration curve and the second acceleration curve to obtain the second difference metric. Obtain the current operating scenario label and road topology type identifier, aggregate and statistically analyze the first difference metric value and the second difference metric value according to the current operating scenario label and the road topology type identifier, and generate the evaluation report.
8. The method for the evolution of unmanned vehicle software and hardware decoupling capabilities and shadow operation as described in claim 7, characterized in that, A gray-scale operation mechanism is introduced to analyze the evaluation report and generate a gray-scale control strategy. Based on this gray-scale control strategy, the unmanned vehicle is controlled for operation, including: Set up a first observation window and a second observation window; Within the first observation window, monitor the predetermined evaluation indicators in the evaluation report to obtain the evaluation indicator parameters; When the evaluation index parameter is continuously within a predetermined threshold range within the first observation window, a first grayscale strategy is generated, and the control authority of the capability module to be verified is limited to the first test road segment according to the first grayscale strategy. Monitor the actual operating indicators of the capability module to be verified under the first test section within the second observation window; When all the actual operating indicators meet the stability conditions within the second observation window, a second grayscale strategy is generated, and the control permissions of the capability module to be verified are switched to the global target mode according to the second grayscale strategy.
9. The method for the evolution of unmanned vehicle software and hardware decoupling capabilities and shadow operation as described in claim 8, characterized in that, When any of the predetermined evaluation indicators is detected to exceed the predetermined threshold range, version rollback and fast rollback operations are performed, including: Record the model parameter hash value, rule configuration version number, and hardware running status snapshot for each shadow run, grayscale switch, and version update to obtain the operation traceability record; Locate the abnormal capability level in the operation traceability record corresponding to the abnormal timestamp; Retrieve the stable version identifier of the aforementioned anomalous capability level from the cloud repository or local cache; The program file and configuration parameters corresponding to the stable version identifier are overwritten into the current runtime environment, while keeping the version identifier of the non-abnormal capability level unchanged.
10. The method for the evolution of unmanned vehicle hardware and software decoupling capabilities and shadow operation as described in claim 9, characterized in that, Also includes: Multi-vehicle collaborative evolution is achieved through a cloud-based evolution management platform, including: Extract any unmanned vehicle in the multi-vehicle collaborative evolution; Receive the first evaluation report and the first operation traceability record uploaded by any of the unmanned vehicles; Extract the first computing platform model, the first sensor calibration matrix, and the first chassis response delay parameters of the arbitrary unmanned vehicle to construct a first hardware profile; The first performance achievement record in the first evaluation report is matched with the first hardware profile to select the first candidate capability version that performs stably under the first target hardware profile. The first candidate capability version is pushed to other unmanned vehicle terminals that match the first target hardware profile.
