Self-updating artificial intelligence platform high-quality dataset construction system for physical ai
By employing multimodal data acquisition, edge filtering, and cloud-based redundancy removal methods, the problems of high redundancy and low information density in the construction of physical AI datasets were solved, enabling the generation of high-quality self-updating datasets and improving the adaptability and stability of the models.
Patent Information
- Application Number
- CN202611374044.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-07
- Publication Date
- 2026-11-20
AI Technical Summary
Existing methods for constructing physical AI datasets have shortcomings in cross-modal redundancy removal, pseudo-label filtering, edge cloud collaborative management, and incremental self-updating, resulting in high dataset redundancy, low information density, and gradual performance degradation of models in actual deployment.
A multimodal data acquisition module generates lightweight feature signatures, an edge filtering module performs initial redundancy removal, a cloud-based redundancy removal module establishes a Markov model based on cross-modal physical consistency for secondary redundancy removal, and a self-updating module triggers supplementary acquisition based on distribution differences to generate a high-quality self-updating dataset.
It effectively removes redundant samples, retains high-value marginal samples, improves the information density and annotation quality of the dataset, and enhances the adaptability and training stability of the physical AI model under environmental distribution drift.
Smart Images

Figure CN123138798A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of dataset construction, and in particular relates to a high-quality dataset construction system for a self-updating artificial intelligence platform for physical AI. Background Technology
[0002] Physical AI systems typically incorporate multimodal sensing devices such as visual sensors, LiDAR, inertial measurement units, and force sensors. They collect environmental and interaction data via fixed-frequency or preset event triggers, and then construct a training dataset after redundancy removal using single-modal feature similarity. While this approach achieves basic dataset construction, fixed-trigger acquisition fails to consider task uncertainty and physical state novelty, resulting in a large number of simple, repetitive samples consuming storage and training resources. Edge cases such as abnormal lighting, occlusion, and extreme poses are not captured in a timely manner, leading to low dataset information density. Furthermore, existing redundancy removal processes, based on feature similarity within a single modality, lack cross-modal physical consistency constraints. This can easily lead to the accidental deletion of key samples with similar visual features but different force or motion states. The different sampling frequencies and asynchronous timestamps of different modal sensors also cause errors in multimodal data alignment, affecting the accuracy of redundancy assessment. Furthermore, the automatic labeling process relies on single-modal model prediction, lacking physical residual verification based on kinematics, dynamics, and geometric consistency. This leads to the continuous accumulation of erroneous pseudo-labels, and low-confidence samples cannot be automatically diverted to manual review, resulting in a lack of closed-loop control over labeling quality. On the other hand, edge devices only perform simple hash deduplication, while cloud-based cross-device clustering deduplication requires aggregating the entire dataset. The edge and cloud redundancy removal strategies are inconsistent, lacking a unified lightweight signature generation, incremental synchronization, and metadata management mechanism, causing duplicate data aggregation across multiple devices and making data lineage and version untraceable. Moreover, datasets are typically kept static after construction, without triggering supplementary collection and incremental updates based on physical environment distribution drift. When new and old data conflict, there is a lack of effective sample replay or distillation strategies, leading to a gradual performance degradation of the model in actual deployment. Therefore, existing physical AI dataset construction methods have shortcomings in cross-modal redundancy removal, pseudo-label filtering, edge-cloud collaborative management, and incremental self-updating, making it difficult to balance low redundancy and high fidelity in datasets. Summary of the Invention
[0003] To address the shortcomings of existing technologies, this invention proposes a high-quality dataset construction system for a self-updating artificial intelligence platform for physical AI. The data acquisition module collects multimodal data from physical AI devices and generates lightweight feature signatures. An edge filtering module performs initial redundancy removal on the multimodal data based on the feature signatures, obtaining a candidate sample set. A cloud-based redundancy removal module performs secondary redundancy removal on the candidate sample set, mapping the candidate samples to a physical state space, extracting physical state sequences, establishing a Markov model based on cross-modal physical consistency, calculating the state transition probability of the current sample relative to the previous state, retaining samples with high novelty when the state transition probability is below a preset novelty threshold; otherwise, it calculates the cross-modal mutual information between the current sample and historical samples, discarding samples exceeding a preset redundancy threshold, resulting in a de-redundant sample set. The self-updating module calculates the drift amount based on the distribution difference between the de-redundant sample set and historical samples, triggering supplementary collection when the drift exceeds a preset drift threshold, and fusing it with the replay of the de-redundant sample set to generate an updated dataset. This system balances low redundancy and high fidelity, improving the dataset's information density and self-updating capability.
[0004] To achieve the above objectives, the present invention provides the following technical solution: A high-quality dataset construction system for a self-updating artificial intelligence platform for physics AI, including: The data acquisition module is used to collect multimodal data from physical AI devices and generate lightweight feature signatures with fewer bits than the sum of the bits of the original feature vectors of each modality. The edge filtering module is used to perform initial redundancy removal on the multimodal data based on the feature signature to obtain a candidate sample set; A cloud-based redundancy removal module is used to perform secondary redundancy removal on the candidate sample set, including: mapping candidate samples to a physical state space, extracting the physical state sequence of candidate samples, and establishing a Markov model of the physical state sequence based on cross-modal physical consistency; calculating the state transition probability of the current sample relative to the previous state according to the Markov model; when the state transition probability is lower than a preset novelty threshold, determining the current sample as a high-novelty sample and retaining it; when the state transition probability is not lower than the novelty threshold, calculating the cross-modal mutual information between the current sample and historical samples; when the cross-modal mutual information exceeds a preset redundancy threshold, removing the current sample, otherwise retaining the current sample, to obtain a redundancy-removed sample set; The self-updating module is used to calculate the drift amount based on the distribution difference between the deredundant sample set and the historical samples. When the drift amount exceeds a preset drift threshold, supplementary collection is triggered, and the supplementary collection samples are replayed and fused with the deredundant sample set to generate an updated dataset.
[0005] Specifically, the candidate sample set is obtained, including: Using the timestamp of the preset main mode as a reference, the remaining modal data are interpolated and aligned to obtain the aligned multimodal data segment; Local feature descriptors are extracted from each modality data segment, and after binarization, they are concatenated in a preset order to generate a multimodal joint feature signature. Calculate the Hamming distance between the current data segment and the retained historical data segments, based on the multimodal joint feature signature. When the Hamming distance is less than the preset signature similarity threshold, the physical state parameters of the current data segment and the corresponding historical data segment are obtained, and the physical state difference value between the current data segment and the corresponding historical data segment is calculated. When the physical state difference value is less than the preset state difference threshold, the current data segment is discarded; otherwise, the current data segment is retained. When the Hamming distance is greater than or equal to the preset signature similarity threshold, the current data segment is retained, and all retained data segments are used as the candidate sample set.
[0006] Specifically, the physical state sequence of the candidate samples is extracted, including: Based on the sensor calibration parameters corresponding to each modal data in each candidate sample, the observed physical quantities in the corresponding modal data are transformed to a preset unified physical coordinate system; Based on a set of state variables associated with a preset task, a target state variable is selected from the converted physical quantity observations. The set of state variables includes one or more of position, velocity, attitude, and force. For the same candidate sample, the deviation between the observations of the same target state variable of different modalities is calculated. When any deviation exceeds the preset physical consistency threshold, the observation with the largest deviation from the remaining observations is removed, and the deviation calculation and judgment are re-executed for the remaining observations. The removal and re-judgment steps are repeated until any deviation in the remaining observations does not exceed the preset physical consistency threshold, or the number of remaining observations is less than 2. When the number of remaining observations is less than 2, the target state variable is marked as missing. Based on the retained observations, a filtered estimation is performed to obtain the physical state vector of the corresponding candidate sample; According to the acquisition time sequence of the candidate samples, the physical state vectors of each candidate sample are arranged in order to obtain the physical state sequence.
[0007] Specifically, establishing a Markov model for the physical state sequence includes: Obtain the control input sequence and external disturbance estimate corresponding to each candidate sample, wherein the control input sequence and external disturbance estimate are determined by the multimodal data of the corresponding candidate sample; The state transition time interval is calculated based on the sampling timestamps of adjacent candidate samples, and the state transition probability is time-normalized based on the state transition time interval. Based on the sample density of the physical state sequence, the physical state space is adaptively discretized so that the number of samples in each state division interval is not less than the preset minimum number of samples. Using the control input sequence and external disturbance estimates as conditions, an input-dependent state transition probability model is constructed; Based on physical consistency constraints, the statistical state transition probabilities are weighted and smoothed using the state transition probabilities predicted by the preset physical model to obtain the corrected state transition probabilities, which are then used as the transition probabilities of the Markov model.
[0008] Specifically, adaptive discretization of the physical state space includes: The state variables in the physical state vector are standardized, and the distance weights of each dimension are determined based on the sensitivity of each state variable to state transitions. Based on the distance weights and sample local density estimation, the initial discretization boundary is determined in the standardized physical state space; When the number of samples falling into the newly added sample interval is less than the preset minimum number of samples, only the boundaries of the interval and adjacent intervals are adjusted, and the state transition statistics corresponding to the affected intervals are updated incrementally; otherwise, the original discretization boundaries remain unchanged.
[0009] Specifically, calculating the state transition probability of the current sample relative to the previous state includes: Obtain the estimated covariance matrix of the current sample physical state vector and the estimated covariance matrix of the previous physical state vector; Based on the estimated covariance matrix and the boundaries of the state division intervals, calculate the current membership degree of the current sample physical state vector to each state division interval, and the previous membership degree of the previous state physical state vector to each state division interval. Calculate the current membership vector of the current sample physical state vector to which each state division interval belongs, and the previous membership vector of the previous physical state vector to which each state division interval belongs; based on each component in the current membership vector and the previous membership vector, perform a weighted summation of the transition probabilities between the corresponding state division intervals in the Markov model to obtain the initial state transition probability. The initial state transition probability is smoothed using Bayesian methods to obtain the smoothed state transition probability, and the smoothed state transition probability is used as the state transition probability of the current sample relative to the previous state.
[0010] Specifically, calculating the cross-modal mutual information between the current sample and each historical sample in the relevant historical sample subset includes: Obtain the sample density of the state partition interval to which the current sample belongs, and adjust the preset novelty threshold according to the sample density to obtain an adaptive novelty threshold; When the state transition probability is lower than the adaptive novelty threshold, the current sample is determined to be a high-novelty sample and retained. When the state transition probability is not lower than the adaptive novelty threshold, samples whose physical state vectors are less than a preset distance threshold are selected from the historical samples to form a subset of relevant historical samples.
[0011] Specifically, calculating the cross-modal mutual information between the current sample and each historical sample in the relevant historical sample subset further includes: Extract the feature vectors of the current sample and each historical sample in the relevant historical sample subset for each modality; For each mode, the joint probability density of that mode is estimated using the k-nearest neighbor method based on the feature vector of the current sample and the feature vector of the historical samples. Based on the joint probability density, calculate the mutual information between the current sample and historical samples in this modality; The cross-modal mutual information between the current sample and historical samples is obtained by weighted summation of the mutual information under each modality. If any of the cross-modal mutual information exceeds a preset redundancy threshold, the current sample is removed; otherwise, the current sample is retained.
[0012] Specifically, the updated dataset is generated, including: Feature selection is performed on the deredundant sample set and the historical sample set respectively to obtain the deredundant feature set and the historical feature set; Based on the redundancy-removed feature set and the historical feature set, a local density-weighted distribution difference metric is calculated as the drift amount; Obtain the current sensor calibration parameters and historical sensor calibration parameters, and calculate the difference in calibration parameters; When the difference value of the calibration parameter exceeds the preset calibration drift threshold, calibration drift compensation is performed on the drift amount to obtain the compensated drift amount; otherwise, the drift amount is used as the compensated drift amount.
[0013] Specifically, generating the updated dataset also includes: Obtain the historical drift sequence within a preset time window, and determine the adaptive drift threshold based on the mean and standard deviation of the historical drift sequence; When the compensated drift exceeds the adaptive drift threshold, supplementary data acquisition is triggered. Physical consistency verification is performed on the supplementary samples, and supplementary samples that do not meet the physical consistency requirements are removed to obtain valid supplementary samples; The fusion ratio of the effective supplementary sample and the deduplication sample set is determined based on the ratio of the compensated drift amount to the preset maximum drift amount. According to the fusion ratio, the effective supplementary samples and the deduplicated sample set are replayed and fused to generate an updated dataset.
[0014] Compared with the prior art, the beneficial effects of the present invention are: This invention generates lightweight feature signatures and performs initial redundancy removal through an edge filtering module, eliminating some simple and repetitive samples at the edge, thus reducing the processing burden on the cloud. The cloud-based redundancy removal module maps candidate samples to a physical state space and extracts physical state sequences. Based on cross-modal physical consistency, a Markov model is established, using state transition probability as a novelty criterion. Samples with state transition probabilities below a novelty threshold are identified as high-novelty samples and prioritized for retention, avoiding the accidental deletion of key edge samples with different physical states such as force and velocity due to visual similarity. For samples with state transition probabilities not lower than the threshold, cross-modal mutual information is further used to measure their redundancy with related historical samples. Only truly redundant samples with cross-modal mutual information exceeding the redundancy threshold are removed, thus balancing physical state fidelity and redundancy elimination during the redundancy removal process. The self-updating module calculates the drift amount based on the distribution difference between the redundancy-removed sample set and historical samples. When the drift amount exceeds a threshold, supplementary collection is triggered, and the supplementary samples are replayed and fused, enabling the dataset to be continuously updated according to changes in the physical environment. Therefore, this invention effectively preserves high-value edge samples and key physical state information while maintaining low redundancy in the dataset, thereby improving the information density and annotation quality of the dataset and enhancing the continuous adaptability and training stability of the physical AI model under environmental distribution drift. Attached Figure Description
[0015] Figure 1 This is a system diagram of a high-quality dataset construction for a self-updating artificial intelligence platform for physical AI according to Embodiment 1 of the present invention. Figure 2 This is a flowchart of the candidate sample set acquisition process in Embodiment 1 of the present invention; Detailed Implementation
[0016] Example 1 In this embodiment, a high-quality dataset refers to a multi-source heterogeneous dataset that integrates space-based data, ground-based data, and sensor data.
[0017] Space-based data includes remote sensing observation data acquired by space satellite platforms and flight telemetry data transmitted from rocket platforms. The remote sensing observation data includes multispectral imagery, synthetic aperture radar (SAR) imagery, and thermal infrared (TIIR) imagery. Multispectral imagery includes spectral reflectance values for four bands: red, green, blue, and near-infrared. SAR imagery includes backscattering coefficients and interferometric phase information, and TIR imagery includes surface brightness temperature values. Each image data set includes the acquisition time (accurate to milliseconds) recorded by the satellite platform's positioning system and the geographic latitude and longitude range of the imaging area (defined by the latitude and longitude coordinates of the four corner points of the image). The flight telemetry data includes acceleration, attitude angles, air pressure, and temperature parameters during rocket flight. Each parameter includes the acquisition timestamp (accurate to milliseconds) recorded by the rocket telemetry system, as well as the latitude, longitude, and altitude of the rocket's flight time.
[0018] The ground-based data includes scene data, motion state data, and human-computer interaction data collected in the physical environment by visual sensors, LiDAR, inertial measurement units, and force sensors mounted on the physical AI device. The scene data includes image frames output by the visual sensors, point cloud frames output by the LiDAR, and 3D environmental structure information reconstructed by fusing the image frames and point cloud frames. The motion state data includes device position, velocity, attitude, and force information. The device position is obtained by the GPS receiver outputting latitude, longitude, and altitude at a fixed frequency; the velocity is obtained by fusing the acceleration integral of the inertial measurement unit and visual odometry estimation; the attitude is obtained by fusing the angular velocity integral of the inertial measurement unit and visual attitude estimation; and the force is directly read by the force sensor. The human-computer interaction data includes control input commands and operation feedback signals, recorded by the device control system according to the command cycle and accompanied by a timestamp of the execution time. During operation, the physical AI device continuously records the current time under a unified device clock. The positioning data output by the GPS receiver, the data collected by each sensor, and the data recorded by the control system are all marked with the timestamp of this unified clock as the time reference.
[0019] The sensing data includes data transmitted back by sensors deployed in areas difficult for personnel or equipment to directly access, via wired or wireless signals. The sensing data includes at least one of temperature, humidity, vibration, gas concentration, and electromagnetic field strength. These sensors include miniature temperature and humidity sensors deployed in sealed cavities within the equipment, wireless vibration and gas concentration sensing nodes deployed in the external environment of the equipment, and distributed electromagnetic field strength sensing units that transmit data via industrial bus or wireless communication links. During data acquisition, each sensor's own clock records a timestamp of the acquisition time, and the data is periodically synchronized with the equipment's unified clock via a timing protocol, with a synchronization deviation not exceeding 10 milliseconds. Each sensing data also includes the prior global coordinates (latitude, longitude, and altitude) of the sensor's deployment location, which are measured by a high-precision global positioning system receiver and written into the sensor's configuration parameters during deployment.
[0020] In this embodiment, the data acquisition module, based on the multimodal data collected from physical AI devices, correlates and fuses space-based data, ground-based data, and sensor data to construct the high-quality dataset. The specific correlation and fusion method is as follows: For ground-based data, the timestamp of the unified clock of the equipment is used as the reference. The image frames output by the vision sensor, the point cloud frames output by the lidar, the acceleration and angular velocity output by the inertial measurement unit, the force and torque output by the force sensor, the equipment position output by the GPS receiver, and the control input commands and operation feedback signals recorded by the control system log are matched and aligned by the nearest neighbor according to the timestamp. The aligned modal data is stored in the local cache of the equipment with the timestamp as the key.
[0021] For remote sensing images from space-based data, the polygonal geographic extent of the imaging area is first determined from the latitude and longitude coordinates of the four corner points attached to the image. Then, the device's GPS positioning record (timestamp deviation not exceeding 1 second) closest to the image acquisition time is read from the device's local cache, and the device's latitude and longitude coordinates at that time are extracted. It is determined whether the device's latitude and longitude coordinates fall within the polygonal geographic extent of the imaging area. If they do, a spatial association is established between the remote sensing image and the device's multimodal data at that time. The image is used as a geographic information label for the macroscopic environment in which the device is located, and is stored in the corresponding data record at that time in the form of an image data file path and an imaging area extent description. If the device's latitude and longitude coordinates do not fall within the imaging area, but the shortest distance from the device's latitude and longitude coordinates to the polygonal boundary of the imaging area is less than twice the image's ground resolution, an association is also established, and this distance value is recorded as the association confidence weight, with higher weight for closer distances. In the above determination, the image's ground resolution is determined by the spatial resolution parameter in the metadata attached to the image. If the metadata does not directly provide this, it is calculated by dividing the width of the geographic extent covered by the image by the number of image pixel columns.
[0022] For rocket flight telemetry data in space-based data, the device's GPS positioning record (timestamp deviation not exceeding 1 second) closest to the telemetry data acquisition time is read from the device's local cache, and the device's latitude, longitude, and altitude at that time are extracted. The three-dimensional Euclidean distance between the rocket's recorded latitude, longitude, and altitude and the device's latitude, longitude, and altitude is calculated. The formula for calculating the three-dimensional Euclidean distance is as follows: D= ,in For the rocket's latitude, longitude, and altitude, The latitude, longitude, and altitude of the device are given, and R is the average radius of the Earth, 6,371,000 meters. When D is less than 1,000 meters, the telemetry data is used as a high-altitude background information label for the environment in which the device is located, and is stored in the data record corresponding to that time in the form of telemetry data file path and acquisition time. When D is greater than or equal to 1,000 meters, no association is established.
[0023] For sensor data, the prior global coordinates of its deployment location are first read from the sensor configuration parameters. Read the device's GPS location record (timestamp deviation not exceeding 1 second) from the device's local cache that is closest to the time of the sensor data acquisition, and extract the device's latitude, longitude, and altitude at that time. The prior global coordinates of the sensor deployment location are converted into relative spatial coordinates in a local northeast-sky coordinate system with the current location of the device as the origin. The conversion method is as follows: north is the X-axis, east is the Y-axis, and the sky is the Z-axis. The offset of the sensor relative to the device in the longitude direction is calculated as follows: Calculate the offset in the latitudinal direction according to Calculate the offset in the altitude direction according to Calculate and obtain the relative spatial coordinates. The relative spatial coordinates are used as the spatial attribute label of the sensing data and stored together with the timestamp of the sensing data. Then, based on the timestamp of the sensing data, the device's multimodal data record with the closest timestamp is searched from the device's local cache. The sensing data is associated with the multimodal data record at that moment, with its spatial attribute label as a reference and the timestamp matching result, and stored as a supplementary sensing information label for the local environment in which the device is located.
[0024] In this embodiment, neither the space-based data nor the sensor data undergoes rotation or translation rigid body transformation to the device's coordinate system. Instead, they are stored with time alignment and spatial association, using timestamps and the device's GPS coordinates as common indices, and are linked to the multimodal data in the device's coordinate system. Each resulting data record contains: device-based ground-based multimodal data with a timestamp as the unique primary key; remote sensing images associated with geographic range labels; rocket flight telemetry data associated with upper-altitude background information labels; and on-site sensor data associated with relative spatial coordinate labels. This collection of data records constitutes the high-quality dataset described in this embodiment, where the device-based ground-based multimodal data is the main data, and the space-based and sensor data are environmental background information label data. The main data and label data are linked by timestamps and device location indexes, without cross-coordinate system fusion of physical quantity values.
[0025] This embodiment describes a high-quality dataset construction system for a self-updating artificial intelligence platform for physics-based AI. Please refer to [link to relevant documentation]. Figure 1 ,include: The data acquisition module is used to collect multimodal data from physical AI devices and generate lightweight feature signatures with a bit count less than the sum of the bit counts of the original feature vectors for each modality. Specifically: A101. Obtain the raw data streams collected by each modal sensor in the physical AI device and record the acquisition timestamp of each data frame; In this embodiment, the multimodal sensor includes a vision sensor, a lidar, an inertial measurement unit, and a force sensor. Each sensor outputs data frames at its own sampling frequency. For example, the vision sensor outputs image frames at 30Hz, and the inertial measurement unit outputs acceleration and angular velocity data at 100Hz. Each data frame is timestamped by the device clock during acquisition.
[0026] A102. The original data streams of each modality are denoised and their units are unified to obtain the preprocessed modal data streams. In this embodiment, the visual sensor data is first filtered by a 3×3 window median filter to remove salt-and-pepper noise, and then the image frames are smoothed by a 5×5 Gaussian kernel with a standard deviation of 0.8 to obtain denoised visual data. The inertial measurement unit data is filtered by a second-order Butterworth low-pass filter to remove high-frequency noise, with the cutoff frequency set to 20Hz, while retaining acceleration and angular velocity signals in the kinematic frequency band. The lidar point cloud is filtered by radius filtering to remove outliers, with the neighborhood search radius set to 0.15m. When the number of points in the neighborhood of a point is less than 5, it is determined to be an outlier and removed. At the same time, the physical quantities of different modalities are unified to the International System of Units (SI) to obtain the preprocessed modal data streams.
[0027] A103. The preprocessed data stream for each modality is segmented according to a preset time window, and the perceptual hash value is calculated for the data within each time window to obtain the lightweight feature components of each modality. In this embodiment, the preset time window is set to 1 second, the sliding step size is the same as the window length, and the window contains several data frames of each modality; the visual modality window contains about 30 image frames, the inertial measurement unit and force sensor windows each contain about 100 sampling points, and the lidar window contains about 10 point cloud frames. For each data frame within a window, perceptual hash calculation is performed according to modality: For the visual modality, all image frames within the window are scaled to 64×64 pixels and converted to grayscale. An 8×8 block discrete cosine transform is performed on each frame, resulting in 8×8 coefficients for each block. The 4×4 low-frequency coefficients in the upper left corner of each block are extracted. The 16 coefficients of each block are concatenated into a 64-dimensional low-frequency coefficient vector in row-major order. The low-frequency coefficient vectors of all frames within the window are arranged in time order and the mean of each dimension is calculated to obtain a 64-dimensional mean vector. Each dimension value in the mean vector is compared with the median of all coefficient values in the same dimension for all frames within the window. If the mean of the dimension is greater than the median of the dimension, the corresponding position is set to 1; otherwise, it is set to 0. After comparing each dimension, a 64-bit visual perceptual hash value is obtained. The inertial measurement unit (IMU) mode calculates the mean, variance, and peak frequency of the acceleration and angular velocity data within the window, respectively, to obtain 3D features of acceleration and 3D features of angular velocity, totaling 6-dimensional time-domain statistical features. The ratio of these 6-dimensional feature values to the corresponding preset baseline values is calculated. If the ratio is greater than 1, the corresponding bit is set to 1; otherwise, it is set to 0, resulting in a 6-bit IMU hash value. The preset baseline values are determined by the corresponding feature values obtained statistically from the device under standard static or nominal motion conditions. The lidar mode merges all point cloud frames within the window and projects them onto a horizontal plane. It divides the sensor into 36 sector grids at 10-degree intervals, counting the number of point clouds in each grid. The point cloud counts of the 36 grids are arranged in sector order to form a 36-dimensional occupancy feature vector. For the occupancy value of each grid, the mean of the occupancy values of its two adjacent grids is calculated. If the occupancy value of the grid is greater than the mean of the adjacent grids, it is set to 1; otherwise, it is set to 0. The first and last grids are arranged in a circular adjacent order to obtain a 36-bit lidar sensing hash value. The force sensor modality performs a short-time Fourier transform on the force signal within the window. The short-time Fourier transform uses a 256-point fast Fourier transform, a Hanning window, a window length of 128 points, and an overlap of 64 points to obtain the time spectrum. The frequency axis is divided into four equal frequency bands, and the proportion of energy in each frequency band to the total energy is calculated. The energy proportions of the four frequency bands are compared with a preset proportion threshold of 0.25. If the proportion is greater than 0.25, the corresponding bit is set to 1; otherwise, it is set to 0, resulting in a 4-bit force perception hash value. The above modal perception hash values are concatenated end-to-end in the preset modal order: vision, LiDAR, inertial measurement unit, and force sensor, to obtain a 110-bit binary string, which serves as the lightweight feature component of this time window.
[0028] A104. Lightweight feature components of each modality within the same time window are concatenated according to a preset modal order, and the concatenation result is subjected to local sensitive hash mapping to generate a lightweight feature signature corresponding to that time window. In this embodiment, the preset modal order is vision, LiDAR, inertial measurement unit, and force perception. Based on the modal perception hash values obtained in A103: the vision perception hash value is a 64-bit binary string, the LiDAR perception hash value is a 36-bit binary string, the inertial perception hash value is a 6-bit binary string, and the force perception hash value is a 4-bit binary string, the four perception hash values are concatenated end-to-end according to the preset modal order to obtain a 110-bit binary string. Each bit in the concatenated 110-bit binary string is mapped to a real number, with a value of 1 mapped to 1 and a value of 0 mapped to -1, resulting in a 110-dimensional real number vector.
[0029] A 64×110 dimensional projection matrix is used, which is deterministically generated as follows: the sum of the device serial number and the fixed seed value 0x5A3C9F71 is used as the seed for the random number generator. The Mersenne Twister algorithm is used to generate 7040 random numbers in the interval [0, 1). A sign function is assigned to each random number: +1 is assigned when the sign is greater than or equal to 0.5, and -1 is assigned when the sign is less than 0.5. This results in a projection matrix with 64 rows and 110 columns, where each element independently takes the value of +1 or -1. Once generated, this matrix is stored in the non-volatile storage medium of the device. The same projection matrix is used multiple times when the same device is used to ensure that the same input data generates the same feature signature on the same device. Different devices generate different projection matrices due to different device serial numbers. The signatures are incompatible but do not affect the independent redundancy removal logic of each device.
[0030] The projection matrix is multiplied by the 110-dimensional real vector to obtain a 64-dimensional projection vector. Each element of the 64-dimensional projection vector is evaluated. If the value is greater than 0, the corresponding signature bit is set to 1; if the value is less than or equal to 0, the corresponding signature bit is set to 0. This yields the 64-bit lightweight feature signature corresponding to the time window.
[0031] A105. Associate and store the lightweight feature signature with the multimodal data segment within the corresponding time window, and output it to the edge filtering module; In this embodiment, the lightweight signature is a 64-bit binary string generated in A104. The temporary cache of the edge device uses a chained hash table with a capacity of 1024 buckets, using the lower 10 bits of the 64-bit binary string as the bucket index. This bucket configuration ensures that, on average, each bucket in the 64-bit signature space corresponds to approximately Theoretically, the signature has a collision rate of approximately 0.1%, achieving a balance between storage and retrieval efficiency in the embedded environment of a typical edge device. If the lower 10 bits of a record correspond to a bucket that is already occupied, it is stored sequentially in the linked list of that bucket in insertion order. The 64-bit binary string uses hexadecimal as the key, and the value is a data record structure containing references to multimodal data segments within the corresponding time window, the start and end timestamps of the time window, the number of data frames for each modality, and references to physical state parameters. The multimodal data segments contain pre-processed data frames from the visual sensor, LiDAR, inertial measurement unit, and force sensor within the time window. These data frames are arranged in ascending order of their acquisition timestamps, accurate to milliseconds.
[0032] When the edge filtering module performs initial redundancy removal, it locates the corresponding bucket for the 64-bit lightweight signature of the current data segment using the same hash function, traverses all records in the bucket's linked list, and compares the current signature with the 64-bit key in the record bit by bit. If there is a key that is exactly the same bit by bit, it reads the multimodal data segment and physical state parameters corresponding to the record and compares them with the physical state differences of the current data segment. If there is no key that is exactly the same bit by bit, it directly retains the current data segment and inserts a new record corresponding to the current data segment at the end of the bucket's linked list, recording the start timestamp, end timestamp, and number of data frames for each modality.
[0033] If multiple identical keys exist in the same bucket, the corresponding historical data segments are read sequentially according to the record insertion order and compared with the current data segment for physical state differences. Once the physical state difference value is less than the preset state difference threshold, the comparison is stopped and the current data segment is removed. If the physical state difference value of all historical data segments corresponding to the same keys is not less than the preset state difference threshold, the current data segment is retained and a new record is inserted.
[0034] When the linked list length of any bucket exceeds 20 records, overflow processing is performed on all records in that bucket: the high 10 bits of the 64-bit binary string are used as the secondary hash value, and the records in that bucket are redistributed to the target bucket corresponding to the secondary hash value (target bucket index = high 10 bits value mod 1024). If the target bucket is still the original bucket or the target bucket linked list length also exceeds 20 records, then the target bucket index = (high 10 bits value + low 10 bits value) mod 1024 is used as the final target bucket. After the redistribution is completed, the original bucket is cleared, and each record is stored in its assigned target bucket linked list. Through the above secondary hash mechanism, the time complexity of single-bucket lookup is controlled within O(20).
[0035] The edge filtering module is used to perform initial redundancy removal on the multimodal data based on the feature signature to obtain a candidate sample set; A cloud-based redundancy removal module is used to perform secondary redundancy removal on the candidate sample set, including: mapping candidate samples to a physical state space, extracting the physical state sequence of candidate samples, and establishing a Markov model of the physical state sequence based on cross-modal physical consistency; calculating the state transition probability of the current sample relative to the previous state according to the Markov model; the state transition probability represents the likelihood of transitioning from the previous physical state to the current physical state in the physical state space; when the state transition probability is lower than a preset novelty threshold, the current sample is determined to be a high-novelty sample and retained; when the state transition probability is not lower than the novelty threshold, cross-modal mutual information between the current sample and historical samples is calculated; when the cross-modal mutual information exceeds a preset redundancy threshold, the current sample is removed; otherwise, the current sample is retained, resulting in a redundancy-removed sample set. The self-updating module is used to calculate the drift amount based on the distribution difference between the deredundant sample set and the historical samples. When the drift amount exceeds a preset drift threshold, supplementary collection is triggered, and the supplementary collection samples are replayed and fused with the deredundant sample set to generate an updated dataset.
[0036] Please see Figure 2 It should be further explained that, in this embodiment, the candidate sample set includes: B101. Using the timestamp of the preset main mode as a reference, interpolate and align the remaining modal data to obtain the aligned multimodal data segment; In this embodiment, the primary mode is preset to be a vision sensor, and the acquisition timestamp of the vision sensor data frame is used as the alignment reference. The vision sensor outputs image frames at a sampling frequency of 30Hz, and the nominal time interval between adjacent vision frames is 33.33 milliseconds; the timestamp of each vision frame is stamped by the device's unified clock at the moment of acquisition. For inertial measurement units and force sensors with a sampling frequency of 100Hz, the timestamp sequence of their original sampling points is usually inconsistent with the timestamp sequence of the visual frames. During alignment, the timestamp of a visual frame is taken as the target alignment time point. In the original sampling point sequences of the inertial measurement unit and force sensor, one original sampling point before and after the target alignment time point is found. The timestamp and observation value of the previous sampling point and the timestamp and observation value of the next sampling point are recorded. Based on the ratio of the time difference between the target alignment time point and the previous sampling point to the time difference between the two sampling points, the observation values of the two sampling points are linearly interpolated to obtain the acceleration, angular velocity, and force signal values at the target alignment time point. If the target alignment time point is exactly the same as the timestamp of a certain original sampling point, the observation value of that original sampling point is directly used as the alignment value. If the target alignment time point is earlier than the timestamp of the first original sampling point of the mode, the observation value of the first original sampling point is used as the alignment value. If the target alignment time point is later than the timestamp of the last original sampling point of the mode, the observation value of the last original sampling point is used as the alignment value. For a LiDAR with a sampling frequency of 10Hz, the timestamps of its point cloud frames and visual frames are inconsistent. During alignment, for each visual frame timestamp, the point cloud frame with the smallest absolute value of the timestamp difference is found in the LiDAR point cloud frame timestamp sequence. This point cloud frame is used as the aligned LiDAR point cloud frame, and its original timestamp is recorded. If the LiDAR point cloud frame timestamp sequence is empty or there are no available point cloud frames near the current visual frame timestamp, the aligned LiDAR point cloud frame is set to empty, and the LiDAR modal feature vector is set to an all-zero vector during subsequent local feature extraction. The corresponding bits in the multimodal joint feature signature are all set to 0. The alignment timestamp corresponding to each visual frame is the acquisition timestamp of that visual frame. The timestamps of the other modal data after alignment are uniformly recorded as the visual frame timestamp. The visual frame, aligned inertial data, aligned force data, and aligned LiDAR point cloud frame under the same visual frame timestamp are combined into an aligned multimodal data segment. The number of each modal data frame in each aligned multimodal data segment is: 1 visual frame, 1 sampling point of inertial data, 1 sampling point of force data, and 1 LiDAR point cloud frame, and each modal data has a unified timestamp of the visual frame. When the number of visual frames in a certain time window is less than 1 due to occlusion or frame loss of the visual sensor, the timestamp of the original sampling point of the other modality closest to the center of the window is used as a supplementary alignment reference, and the source modality and timestamp of the supplementary reference are recorded for subsequent alignment processing when the main modality is missing.
[0037] B102. Extract the local feature descriptors of each modality data segment, binarize each local feature descriptor, and then concatenate them in a preset order to generate a multimodal joint feature signature. In this embodiment, for the visual modality, the aligned image frame is scaled to 64×64 pixels and converted to grayscale. The gradient magnitude and gradient direction of each pixel are calculated, and the gradient direction is quantized to 8 directional intervals. The image is divided into 8×8 image blocks, and the cumulative histogram of pixel gradient magnitudes in each directional interval is calculated for each image block to obtain 8-dimensional features for each image block. The 8-dimensional features of all image blocks are stitched together in row-major order to obtain a 512-dimensional local feature descriptor. For the lidar modality, the aligned point cloud is projected onto a horizontal plane, and 8 sector grids are divided around the sensor. At the same time, the height range of the point cloud is equally divided into 8 intervals in the height direction to form 8×8 spatial units. The gradient magnitude and gradient direction of each spatial unit are calculated. The number of point clouds was normalized, and the normalized point cloud counts of 64 spatial units were arranged into 64-dimensional local feature descriptors according to the fan-shaped grid order and height interval order. For the inertial measurement unit mode, the zero-crossing rate, peak-to-peak value, mean, variance, peak frequency, and spectral entropy of the acceleration and angular velocity signals were calculated within the time window to obtain 6-dimensional acceleration features and 6-dimensional angular velocity features, for a total of 12-dimensional local feature descriptors. For the force sensor mode, the force signal within the time window was decomposed into 3-level wavelet packets using db4 wavelets to obtain 8 frequency bands. The proportion of energy in each frequency band to the total energy was calculated to obtain 8-dimensional frequency band energy proportion features. At the same time, the peak value and mean of the force signal were calculated, for a total of 10-dimensional local feature descriptors. The local feature descriptors of each dimension are binarized element by element. Each element value is compared with the mean value of the corresponding element in the historical samples preserved in the corresponding modality. If the value is greater than the mean value, it is set to 1; otherwise, it is set to 0. If there are no historical samples preserved in the corresponding modality, each element value is compared with the preset initial baseline value of the corresponding modality. If the value is greater than the preset initial baseline value, it is set to 1; otherwise, it is set to 0. This yields a binary string of 512 bits for vision, 64 bits for LiDAR, 12 bits for inertial measurement unit, and 10 bits for force sensor. The four binary strings are concatenated end to end in the preset modal order of vision, LiDAR, inertial measurement unit, and force sensor to generate a multimodal joint feature signature with a total length of 598 bits.
[0038] B103. Calculate the Hamming distance between the current data segment and the retained historical data segment for the multimodal joint feature signature; In this embodiment, the multimodal joint feature signature of the current data segment is set to a 598-bit binary string, and the multimodal joint feature signature of the retained historical data segments is also a 598-bit binary string. The two binary strings are compared bit by bit, and the number of bits with different values at corresponding bits is counted. The counted value is the Hamming distance. The edge filtering module calculates the Hamming distance between the current data segment and each retained historical data segment, and records the minimum value among all calculation results.
[0039] B104. When the Hamming distance is less than the preset signature similarity threshold, obtain the physical state parameters of the current data segment and the corresponding historical data segment, and calculate the physical state difference value between the current data segment and the corresponding historical data segment. In this embodiment, the preset signature similarity threshold is set to 62. This threshold is determined based on the total length of the multimodal joint feature signature of 598 bits. It allows the initial deduplication at the edge to trigger physical state comparison within a bit difference range of approximately 10%, thus achieving a balance between missed detections and false detections. When the minimum Hamming distance between the current data segment and a certain retained historical data segment is less than 62, they are considered similar in terms of multimodal joint features, and further physical state comparison is required. The physical state parameters of the current data segment and the corresponding historical data segment are obtained, including position coordinates, velocity vector, and force vector. The position coordinates are estimated by visual odometry or lidar odometry, the velocity vector is obtained by inertial measurement unit acceleration integration or odometry differential, and the force vector is directly read by force sensor. The position coordinates are in meters, the velocity vector is in meters per second, and the force vector is in Newtons. The physical state difference value is obtained by weighted summation of three parts: position difference, velocity difference, and force difference. Position difference is the Euclidean distance between the position coordinates of the current data segment and the corresponding historical data segment; velocity difference is the Euclidean distance between the corresponding velocity vectors; and force difference is the Euclidean distance between the corresponding force vectors. The preset weights are 0.3, 0.4, and 0.3, respectively. These weights are determined based on the sensitivity of each physical quantity to distinguishing physical states and the dimensional normalization results. Velocity difference is the most sensitive to state changes, so it is given a larger weight of 0.4, while position difference and force difference are each given 0.3.
[0040] B105. When the physical state difference value is less than the preset state difference threshold, the current data segment is discarded; otherwise, the current data segment is retained. In this embodiment, the preset state difference threshold is set to 1.0. This threshold is determined based on the weighted calculation method of the physical state difference value and the sensor noise level: the position coordinate estimation noise is about 0.1 meters, the velocity estimation noise is about 0.1 meters per second, and the force sensor noise is about 0.2 Newtons. After weighting by position weight 0.3, velocity weight 0.4, and force weight 0.3, the physical state difference value caused by sensor noise is about 0.3 to 0.5. However, the difference in position, velocity, or force when the actual physical state is different usually exceeds 1.0 after weighting. Therefore, 1.0 is set as the judgment boundary for distinguishing between the same and different physical states. When the calculated physical state difference value is less than 1.0, the current data segment is determined to have the same physical state as the corresponding historical data segment. The current data segment is a redundant data segment and is removed, and is not added to the set of retained historical data segments. When the physical state difference value is greater than or equal to 1.0, the current data segment is determined to have a different physical state from the corresponding historical data segment. The current data segment is retained and added to the set of retained historical data segments. If the Hamming distance between the current data segment and multiple retained historical data segments is less than the preset signature similarity threshold, the historical data segment with the minimum Hamming distance is selected for physical state difference comparison, and the removal or retention is determined solely based on the comparison result with that historical data segment.
[0041] B106. When the Hamming distance is greater than or equal to the preset signature similarity threshold, the current data segment is retained, and all retained data segments are used as the candidate sample set. In this embodiment, when the minimum Hamming distance between the current data segment and all retained historical data segments is greater than or equal to 62, the current data segment is considered dissimilar to the historical data segments in terms of multimodal joint features. The current data segment is then directly retained and added to the set of retained historical data segments. The edge filtering module performs the above processing on all input data segments sequentially. After processing, all the ultimately retained data segments form a candidate sample set, which is then output to the cloud-based redundancy removal module for secondary redundancy removal.
[0042] It should be further explained that, in this embodiment, extracting the physical state sequence of candidate samples includes: C101. Based on the sensor calibration parameters corresponding to each modal data in each candidate sample, convert the observed physical quantities in the corresponding modal data to a preset unified physical coordinate system. In this embodiment, the sensor calibration parameters include the intrinsic parameter matrix of the vision sensor and the lens distortion coefficient, the extrinsic parameter rotation matrix and translation vector from the lidar coordinate system to the device body coordinate system, the extrinsic parameter rotation matrix and translation vector from the inertial measurement unit coordinate system to the device body coordinate system, and the extrinsic parameter rotation matrix and translation vector from the force sensor coordinate system to the device body coordinate system. The intrinsic parameter matrix of the vision sensor includes focal length, principal point coordinates, and pixel size, and the lens distortion coefficient includes radial distortion coefficient and tangential distortion coefficient. The above calibration parameters are obtained from the device's factory calibration or on-site calibration. On-site calibration uses a checkerboard calibration board for the vision sensor. The calibration process involves using a planar reflective target and multi-position acquisition to calibrate the extrinsic parameters of the lidar and the equipment's coordinate system. A six-sided calibration method and a static excitation method are used to calibrate the extrinsic parameters of the inertial measurement unit and the equipment's coordinate system. Standard weight loading and orientation calibration methods are used to calibrate the extrinsic parameters of the force sensor and the equipment's coordinate system. All calibration parameters are stored in the calibration parameter storage area of the cloud-based redundancy removal module as calibration parameter files. Each sensor corresponds to a set of calibration parameter records, which include the sensor identifier, calibration timestamp, extrinsic parameter rotation matrix, translation vector, and the intrinsic parameter matrix and distortion coefficients specific to the vision sensor.
[0043] The preset unified physical coordinate system is the equipment body coordinate system, with the center of the equipment chassis as the origin, the forward direction of the equipment as the positive direction of the longitudinal axis, the left side of the equipment as the positive direction of the transverse axis, and the vertical upward direction as the positive direction of the vertical axis. The coordinate system conforms to the right-hand rule; the coordinate unit is meter, the angle unit is radian, the force unit is Newton, and the torque unit is Newton-meter.
[0044] For the visual modality, the image frame is first distorted using the intrinsic parameter matrix of the visual sensor and the lens distortion coefficients. The distortion distortion process is as follows: for each pixel in the image frame, the distortion offset is calculated based on its original pixel coordinates and radial and tangential distortion coefficients. Then, the distortion offset is subtracted from the original pixel coordinates to obtain the distorted pixel coordinates. Then, feature points are extracted from the distorted image frame using a corner detection algorithm. After detecting a feature point, the distorted pixel coordinates of each feature point are recorded. Finally, the distorted pixel coordinates of each feature point are back-projected into three-dimensional spatial coordinates using depth information. The depth information is obtained as follows: First priority: the aligned LiDAR point cloud frame is projected onto the distorted image plane according to the extrinsic rotation matrix and translation vector from the LiDAR to the visual sensor. For each feature point, a projection point is searched within its 3×3 pixel neighborhood. If a projection point exists in the neighborhood, the distance value of the corresponding LiDAR point is taken as the depth value of the feature point. If no projection point exists in the neighborhood, the feature point is not included in the position observation calculation.
[0045] Second priority: If the LiDAR data is missing, or there are fewer than 8 effective projection points in the neighborhood, then initiate stereo matching of binocular vision, that is, perform epipolar correction on the left and right eye images configured by the current device, calculate the disparity map using a semi-global block matching algorithm, and read the depth value corresponding to each feature point based on the disparity map; if the binocular vision system is not configured or matching fails, then proceed to the third priority.
[0046] Third priority: If both lidar and binocular vision are unavailable, the visual modal 3D position observation of the image frame is marked as missing, and no visual modal position observation is generated for that frame. Physical state estimation is continued by inertial measurement unit integration or other lidar frames. If the number of effective feature points in an image frame is less than 8, no visual modal 3D position observation is generated for that image frame, and the visual observation of that sample is marked as missing. For the lidar mode, the coordinates of each point in the point cloud are multiplied sequentially by the external parameter rotation matrix from the lidar coordinate system to the device body coordinate system, and a translation vector is added to obtain the three-dimensional position observation value under the unified physical coordinate system; if the point cloud frame is empty or the number of points is less than 5, the lidar observation value is marked as missing.
[0047] For inertial measurement unit (IMU) modes, the acceleration vector and angular velocity vector are multiplied sequentially by the external parameter rotation matrix from the IMU coordinate system to the device body coordinate system to obtain the acceleration and angular velocity observations in a unified physical coordinate system. If IMU data is missing, the corresponding acceleration and angular velocity observations are marked as missing.
[0048] For force sensor modes, the force vector and torque vector are multiplied sequentially by the external parameter rotation matrix from the force sensor coordinate system to the device body coordinate system, and a translation vector is added to obtain the force observation value and torque observation value under a unified physical coordinate system; if the force sensor data is missing, the corresponding force observation value and torque observation value are marked as missing.
[0049] Each physical quantity observation value after modal conversion has a corresponding acquisition timestamp. The timestamp is a millisecond-level timestamp under the unified clock of the device, which is used for subsequent cross-modal alignment and physical consistency verification.
[0050] C102. Based on a set of state variables associated with a preset task, select a target state variable from the converted physical quantity observation values. The set of state variables includes one or more of position, velocity, attitude, and force. In this embodiment, the set of state variables associated with a preset task is stored in the configuration file library of the cloud-based redundancy removal module. The configuration file library adopts a key-value pair structure, where the key is the task type identifier and the value is a list of state variables. The task type identifier is a unique code consisting of letters and numbers, and the state variable list is an array of state variable names, where each element is taken from one of position, velocity, attitude, force, angular velocity, and torque. The task scheduling module reports the current task type identifier of the device when it starts up. When switching tasks, it first sends a task switching notification to the cloud-based redundancy removal module, which includes the task type identifier before and after the switch. After receiving the task switching notification, the cloud-based redundancy removal module first marks the current state variable list as disabled using the task type identifier before the switch as the key, and then searches for the corresponding state variable list in the configuration file library using the task type identifier after the switch as the key, and activates the found state variable list as the current state variable list. If the configuration file library does not contain a state variable list corresponding to the task type identifier after the switch, a preset default state variable list is loaded, which includes position, velocity, attitude, and force. Each state variable list in the configuration file library also corresponds to a state variable missing label array. Each element of the missing label array is a boolean value, which indicates whether the corresponding state variable must be estimated in the current task. If it must be estimated but the corresponding modal observations are all missing, the candidate sample is marked as an incomplete physical state sample and will not participate in the subsequent physical state sequence construction.
[0051] The specific method for selecting the target state variable is as follows: based on the current list of state variables, perform the selection operation on each state variable in the list in turn. If the state variable is position, first check if the lidar mode has a 3D position observation value in the candidate sample. If it exists, select the 3D position observation value of the lidar mode as the first observation value of the position target state variable. If it does not exist, check if the visual mode has a 3D position observation value in the candidate sample. If it exists, select the 3D position observation value of the visual mode as the first observation value of the position target state variable. If neither exists, mark the position target state variable as missing. If the state variable is velocity, first check if the visual odometry outputs a position difference result in the candidate sample. If it exists, select the visual odometry position difference result as the first observation value of the velocity target state variable. Then check if the inertial measurement unit (IMU) has an acceleration observation value in the candidate sample. If it exists, use the IMU acceleration integral result as the second observation value of the velocity target state variable. If the visual odometry does not exist but the IMU does, only the IMU acceleration integral result is used as the first observation value of the velocity target state variable. If neither exists, mark the velocity target state variable as missing. If the variable is attitude, first check if the inertial measurement unit (IMU) has angular velocity observations in the candidate sample. If it does, select the IMU's angular velocity integral as the first observation of the attitude target state variable. Then check if the visual attitude estimation module outputs an attitude estimate in the candidate sample. If it does, use the visual attitude estimate as the second observation of the attitude target state variable. If the IMU does not exist but the visual attitude estimate exists, use only the visual attitude estimate as the first observation of the attitude target state variable. If neither exists, mark the attitude target state variable as missing. If the state variable is force, only check if the force sensor mode has force observations in the candidate sample. If it exists, select the force sensor mode's force observation as the first observation of the force target state variable. If it does not exist, mark the force target state variable as missing. If the state variable list also includes angular velocity or torque, the angular velocity target state variable is selected from the IMU's angular velocity observations, and the torque target state variable is selected from the force sensor mode's torque observations, with the selection rules being the same as those for the aforementioned state variables.
[0052] After selection, one or more observations are obtained for each target state variable. The observations are all accompanied by values in a unified physical coordinate system and corresponding acquisition timestamps, which serve as inputs for subsequent physical consistency verification and filtering estimation. State variables not included in the state variable list do not participate in the subsequent physical state vector construction, nor do they enter the filtering estimation process.
[0053] C103. For the same candidate sample, calculate the deviation between the observations of different modalities for the same target state variable. When any deviation exceeds a preset physical consistency threshold, remove the observation with the largest deviation from the remaining observations, and re-calculate and judge the deviation for the remaining observations. Repeat the removal and re-judgment steps until any deviation in the remaining observations does not exceed the preset physical consistency threshold, or the number of remaining observations is less than 2. When the number of remaining observations is less than 2, mark the target state variable as missing. In this embodiment, the same target state variable can be provided with redundant observations from multiple modes, and each observation is selected from C102. Taking the velocity target state variable as an example, the inertial measurement unit obtains the first velocity observation value by integrating the acceleration observation value over time. The integration method is as follows: taking the time interval between the candidate sample and the previous candidate sample as the integration interval, the acceleration observation value under the unified physical coordinate system is integrated with the integration result, and the velocity estimate of the previous candidate sample is added to the integration result to obtain the first velocity observation value of the current candidate sample. The visual odometry obtains the second velocity observation value by differentiating the position observation values of two consecutive frames. The difference method is as follows: taking the difference between the visual modal three-dimensional position observation value of the current candidate sample and the visual modal three-dimensional position observation value of the previous candidate sample, and dividing it by the difference of the timestamps corresponding to the two position observation values, the second velocity observation value is obtained. Taking the attitude target state variable as an example, the inertial measurement unit obtains the first attitude observation value by integrating the angular velocity observation value over time. The integration method is as follows: taking the time interval between the candidate sample and the previous candidate sample as the integration interval, the angular velocity observation value under the unified physical coordinate system is integrated by quaternion. The quaternion increment obtained by integration is multiplied by the attitude quaternion of the previous candidate sample to obtain the first attitude observation value of the current candidate sample. The visual attitude estimation module performs feature point matching on the distortion-free image frame and uses the motion reconstruction structure algorithm to solve the perspective multi-view point localization problem to obtain the attitude estimation value under the visual sensor coordinate system. Then, based on the external parameter rotation matrix and translation vector from the visual sensor to the device body, the attitude estimation value is transformed to the unified physical coordinate system to obtain the second attitude observation value.
[0054] For each target state variable, obtain the observations of that state variable from all modes. Let the total number of observations be N. When N is less than 2, directly use the single observation as the valid observation of that state variable without performing bias calculation and elimination. When N equals 2, calculate the Euclidean distance between two observations as the bias. If the bias exceeds the corresponding preset physical consistency threshold, calculate the Euclidean distance between each of the two observations and the physical model prediction value, eliminate the observation with the larger distance from the physical model prediction value, and keep the other. When N is greater than or equal to 3, calculate the Euclidean distance between any two observations as the bias, and calculate a total of N times N minus 1 divided by 2 bias values. For position state variables, the deviation is the Euclidean distance between two 3D position observations, in meters; for velocity state variables, the deviation is the Euclidean distance between two 3D velocity observations, in meters per second; for attitude state variables, the deviation is the angular distance between two attitude observations, in radians, calculated from the relative rotation angle between the rotation matrices corresponding to the two attitudes; for force state variables, the deviation is the Euclidean distance between two 3D force observations, in Newtons.
[0055] In this embodiment, the preset physical consistency thresholds are set according to the type of state variable: the position deviation threshold is 0.2 meters, which is determined based on the standard deviation of visual position measurement noise of 0.1 meters and the standard deviation of lidar position measurement noise of 0.07 meters. Under normal observation conditions, the deviation between two position observations is highly probable to not exceed 0.2 meters; the velocity deviation threshold is 0.15 meters per second, which is determined based on the standard deviation of the velocity integral error of the inertial measurement unit of 0.05 meters per second and the standard deviation of the velocity error of the visual odometry of 0.1 meters per second; the attitude deviation threshold is 0.1 radians, which is determined based on the standard deviation of the attitude integral error of the inertial measurement unit of 0.03 radians and the standard deviation of the visual attitude estimation error of 0.07 radians; and the force deviation threshold is 0.5 Newtons, which is determined based on the standard deviation of the force sensor measurement noise of 0.2 Newtons.
[0056] In this embodiment, the judgment and elimination process is as follows: For each observation, the deviation between the observation and all other observations is checked one by one, and the number of times the deviation exceeds the corresponding threshold is counted; if the deviation of an observation from all other observations exceeds the corresponding threshold, the observation is determined to be an abnormal observation; if there are no abnormal observations, all observations are retained; if there is only one abnormal observation, it is directly eliminated; if there are two or more abnormal observations, the sum of the deviations of each abnormal observation from all other observations is calculated, and the abnormal observation with the largest sum of deviations is selected for elimination, while the remaining abnormal observations are retained and continue to participate in subsequent processing; if the number of remaining observations after elimination is 0, the target state variable is marked as missing, and the state variable of the candidate sample will not enter the subsequent filtering estimation process. The above judgment and elimination process is executed independently for each target state variable, and the elimination of the observation of one target state variable does not affect the processing of the observations of other target state variables.
[0057] C104. Based on the retained observations, perform filtering estimation to obtain the physical state vector of the corresponding candidate sample; In this embodiment, an extended Kalman filter is used to filter and estimate the retained observations; the state vector consists of target state variables, arranged in the order of position, velocity, attitude, and force, and each state variable is a three-dimensional vector.
[0058] The state transition model is established based on the kinematic model of the physical system. The prediction methods for each state variable are as follows: The position state variable is predicted by adding the velocity to the position at the previous moment and multiplying by the time interval. ,in This is the predicted position value at the current moment. This is the estimated position value from the previous moment. Δt represents the velocity estimate from the previous moment, and Δt is the sampling time interval between adjacent candidate samples, in seconds.
[0059] The velocity state variable is predicted by adding the velocity and acceleration from the previous moment to the time interval. ,in The predicted speed at the current moment. The acceleration observation value at the previous moment (provided by the inertial measurement unit). This represents the sampling time interval.
[0060] The attitude state variables are predicted by adding the angular velocity to the previous moment's attitude, multiplying by the time interval, and then updating using quaternions. ,in This is the predicted value of the attitude quaternion at the current moment. This is the estimated value of the attitude quaternion from the previous time step. This is quaternion multiplication. For the angular velocity at the previous moment The attitude increment quaternion is calculated using the time interval Δt (provided by the inertial measurement unit). The formula for calculating the attitude increment quaternion is as follows: When ||ω|| approaches 0, Δq takes the form of a unit quaternion. This is the modulo symbol.
[0061] The force state variables are updated according to the following prediction equation: .in The predicted force at the current moment is a three-dimensional vector, and the unit is Newtons. The force estimate at the previous moment is a three-dimensional vector, and the unit is Newtons. The force increment is the result of mapping the change in control input from the previous moment to the current moment through the actuator dynamics model, according to the formula... Calculate, where M is the actuator-force mapping matrix, and is... The dimensional matrix (where n is the dimension of the control input vector) is determined by the actuator's factory calibration parameters. For the current control command vector, The control command vector for the previous moment includes one or more of the chassis speed command, gimbal angle command, and robotic arm joint torque command. Let be the change in the estimated external disturbance value from the previous time step to the current time step, according to the formula. calculate, This represents the vector of estimated external disturbances at the current moment. This represents the vector of estimated external disturbance values from the previous time step; all are three-dimensional vectors, with units of Newtons. If the control input is missing at a certain time step, then... Set to zero vector; if the external disturbance estimate is missing at a certain moment, then Set to zero vector; if there is no change in control input at the current time ( There was also no disturbance estimate change ( If the predicted value of the force state variable remains unchanged from the previous moment, then... .
[0062] The measurement equations map the state vector to the observation space, establishing separate measurement equations for observations in different modalities. The visual position measurement equation is: the observed value equals the position state variable plus visual measurement noise; the lidar position measurement equation is: the observed value equals the position state variable plus lidar measurement noise; the velocity measurement equation is: the observed value equals the velocity state variable plus velocity measurement noise; the attitude measurement equation is: the observed value equals the attitude state variable plus attitude measurement noise; and the force measurement equation is: the observed value equals the force state variable plus force measurement noise. The measurement noise in each measurement equation is assumed to be zero-mean Gaussian white noise.
[0063] In this embodiment, the process noise covariance matrix is set according to the nominal noise of each sensor and the speed of the equipment: the standard deviation of the position process noise is 0.05 meters, the standard deviation of the speed process noise is 0.05 meters per second, the standard deviation of the attitude process noise is 0.03 radians, and the standard deviation of the force process noise is 0.1 Newtons. When the speed of the equipment exceeds 1 meter per second, the standard deviations of the position and speed process noise are increased to 0.1 meters and 0.1 meters per second, respectively. The process noise covariance matrix is a diagonal matrix, and the diagonal elements are the squares of the standard deviations of the process noise of each of the above state variables.
[0064] In this embodiment, the measurement noise covariance matrix is set according to the measurement noise variance of the corresponding sensor: the visual position measurement noise variance is 0.01 square meters, the lidar position measurement noise variance is 0.005 square meters, the inertial measurement unit velocity measurement noise variance is 0.0025 square meters per second squared, the visual velocity measurement noise variance is 0.01 square meters per second squared, the attitude measurement noise variance is 0.001 radians squared, and the force measurement noise variance is 0.04 Newtons squared. The measurement noise covariance matrix is a diagonal matrix, and the diagonal elements are, in order, the measurement noise variance of the sensor corresponding to each available observation value at the current time.
[0065] In this embodiment, the specific process of filtering estimation is as follows: First, state prediction is performed based on the physical state vector and state transition model from the previous time step to obtain the predicted physical state vector and the prediction error covariance matrix. The prediction error covariance matrix is calculated as follows: ,in For the prediction error covariance matrix, The error covariance matrix is estimated for the previous time step. The state transition matrix is obtained by taking the partial derivatives of the prediction equations for each state variable with respect to the state vector. The process noise covariance matrix is given; then the Kalman gain is calculated based on the observations retained at the current time. The Kalman gain is calculated as follows: ,in Here is the Kalman gain matrix. The measurement matrix is obtained by taking the partial derivative of the measurement equation with respect to the state vector. To measure the noise covariance matrix; finally, the predicted physical state vector is corrected using Kalman gain to obtain the physical state vector of the current candidate sample. The correction formula is as follows: ,in This is the estimated state value at the current moment. This is the predicted state value at the current moment. This is the vector of observations at the current moment.
[0066] If there is only a single modal observation for a target state variable, then the observation is directly used as the estimated value of the state variable without filtering or correction. The remaining state variables are predicted from the previous time step based on the state transition model and used as the estimated values of the state variables. For target state variables for which no observations have been obtained, the predicted value of the state transition model is directly used as the estimated value of the state variable.
[0067] C105. Arrange the physical state vectors of each candidate sample in sequence according to the acquisition time of the candidate samples to obtain the physical state sequence. In this embodiment, the aligned timestamps of each candidate sample are read from the multimodal data segment of the candidate samples. The aligned timestamps are millisecond-level timestamps under the unified clock of the device. The candidate samples are sorted in ascending order of their aligned timestamps to obtain a sorted candidate sample list. If two candidate samples have the same aligned timestamp, the order in which they enter the cloud redundancy removal module is used as a secondary sorting criterion, with the sample that enters first being ranked first, ensuring that the sorting result is stable and certain. After sorting, the physical state vector of each candidate sample in the sorted candidate sample list is read sequentially, and the physical state vectors are arranged into a sequence according to the reading order. This sequence is the physical state sequence and is output to the subsequent step of establishing a Markov model based on cross-modal physical consistency.
[0068] It should be further explained that, in this embodiment, establishing the Markov model of the physical state sequence includes: D101. Obtain the control input sequence and external disturbance estimate corresponding to each candidate sample, wherein the control input sequence and external disturbance estimate are determined by the multimodal data of the corresponding candidate sample; In this embodiment, the control input sequence is obtained from the actuator control command record of the physical AI device. The actuator control command record includes chassis speed command, gimbal angle command, robotic arm joint torque command, and gripper opening and closing degree command. These commands are marked with millisecond-level timestamps by the device control system according to a unified clock and stored in the device control log. For each candidate sample, the control command record with the closest timestamp is found in the control log according to its aligned timestamp, and the actuator command values in that record are combined to form the control input vector corresponding to the candidate sample. The process of obtaining the external disturbance estimate is as follows: First, based on the control input vector corresponding to the candidate sample and the physical state vector at the previous moment, the nominal acceleration is calculated using the device dynamics model. The device dynamics model includes chassis mass, inertia parameters, actuator transfer function, and dynamic parameters of each joint of the robotic arm. These parameters are provided by the device's factory calibration file. Then, the acceleration observation value of the inertial measurement unit within the time window of the candidate sample is read. After converting the acceleration observation value to a unified physical coordinate system, it is subtracted from the nominal acceleration axis by axis to obtain the three-dimensional disturbance acceleration estimate. If the device is equipped with an external... For the force sensor, the force observation value within the corresponding time window is further read. The consistency of the three-dimensional disturbance acceleration estimate and the external contact force detected by the force sensor is compared. The part with a correlation coefficient greater than 0.8 and an amplitude difference of less than 0.5 Newtons in the time series is taken as the external disturbance estimate. If the device is not equipped with an external force sensor, the three-dimensional disturbance acceleration estimate is directly used as the external disturbance estimate. If the magnitude of the three-dimensional disturbance acceleration estimate is less than 0.05 m / s², the external disturbance is determined to be negligible, and the external disturbance estimate is set to a zero vector.
[0069] D102. Calculate the state transition time interval based on the sampling timestamps of adjacent candidate samples, and perform time normalization on the state transition probability based on the state transition time interval. In this embodiment, the aligned timestamps in the multimodal data segments of adjacent candidate samples are read. The aligned timestamps are millisecond-level timestamps under the unified clock of the device. The difference between the aligned timestamps of adjacent candidate samples is calculated as the state transition time interval. When the state transition time interval is less than 10 milliseconds, it is determined that the adjacent candidate samples are repeatedly collected at the same time. The two candidate samples are merged into one candidate sample. The merging method is as follows: the physical state vector is taken as the average of the physical state vectors of the two candidate samples, the aligned timestamp is taken as the earlier timestamp, and the control input and external disturbance estimates are taken as the values of the later candidate sample. After merging, the state transition time interval with the next candidate sample is recalculated. When the state transition time interval is greater than 1000 milliseconds, it is determined that there is a data gap between the adjacent candidate samples. The corresponding state transition is marked as an invalid transition and does not participate in the subsequent state transition probability statistics, nor is it included in the transition probability calculation of the Markov model. Time normalization uses 1 second as the standard time interval. For each pair of valid adjacent candidate samples, the state transition frequency is scaled according to its state transition time interval: First, the original transition frequency corresponding to the state transition is counted, the original transition frequency is divided by the state transition time interval and multiplied by 1 second to obtain the time-normalized transition frequency; then, the normalized transition frequencies of all target state partitions starting from the same state partition are summed, and the sum is used as the denominator to normalize the normalized transition frequency of each target state partition to obtain the time-normalized state transition probability corresponding to the state partition; if the sum of the transition frequencies starting from a certain state partition is 0, the state transition probability of that state partition is evenly distributed to all reachable state partitions to ensure that the sum of probabilities is 1.
[0070] D103. Based on the sample density of the physical state sequence, the physical state space is adaptively discretized so that the number of samples in each state division interval is not less than the preset minimum number of samples. In this embodiment, the minimum number of samples is preset to 5, meaning that each state partition interval after physical state space discretization should contain at least 5 candidate samples. One-dimensional adaptive discretization is performed on each state variable in the physical state vector. Specifically, each state variable is first divided into 100 initial subdivision intervals according to its value range, and the number of candidate samples in each initial subdivision interval is counted. Starting from the first initial subdivision interval, adjacent initial subdivision intervals are merged sequentially until the number of candidate samples in the merged interval reaches or exceeds 5. At this point, the merged interval is considered a state partition interval. When merging to the 100th initial subdivision interval, if the number of remaining candidate samples is less than 5, all remaining initial subdivision intervals are merged into the last state partition interval. After one-dimensional adaptive discretization of each state variable, the state partition intervals of each state variable are combined using a Cartesian product to generate multi-dimensional state partition intervals. For multi-dimensional state partition intervals with fewer than 5 candidate samples, the Euclidean distance between this multi-dimensional state partition interval and its adjacent multi-dimensional state partition intervals is calculated. The adjacent multi-dimensional state partition interval with the closest Euclidean distance and more than 5 candidate samples is selected for merging. If multiple adjacent intervals satisfy the conditions, the one with the closest centroid distance to the current interval is selected for merging. The above merging process is repeated until the number of candidate samples in all multi-dimensional state partition intervals is no less than 5. After discretization, a unique state number is assigned to each state partition interval, forming a set of state numbers, which serves as the state space for subsequent state transition probability statistics and Markov model calculations. At the same time, the boundary values and centroid coordinates of each state partition interval are recorded for subsequent membership degree calculations and matching of the target interval predicted by the physical model.
[0071] D104. Construct an input-dependent state transition probability model based on the control input sequence and the estimated external disturbance. In this embodiment, the control input vector and external disturbance estimate in the control input sequence are discretized. The control input vector is discretized by dividing each dimension of the control input into 10 equal control input intervals according to its value range. The external disturbance estimate is discretized by dividing the three-dimensional disturbance acceleration estimate into 5 equal disturbance intervals according to the value range of each dimension. The three-dimensional disturbance intervals are combined to form 125 external disturbance partition intervals. For each state partition interval, each control input interval, and each combination of external disturbance partition intervals, the cumulative number of transitions from the current state partition interval to each target state partition interval under the conditions of the current control input interval and the current external disturbance partition interval is counted. The ratio of the cumulative number of transitions to the total number of transitions in all target state partition intervals under the current condition is used as the conditional state transition probability. When the cumulative number of transitions under a certain condition is less than 3, the statistically obtained conditional state transition probability is not used. Instead, the state transition probability under that condition is marked as a sparse state, which is subsequently filled by the predicted value from the physical model. When the cumulative number of transitions is greater than or equal to 3, the statistically obtained conditional state transition probability is used, and the conditional state transition probability under that condition is Laplace smoothed. Specifically, 1 is added to the numerator of each conditional state transition probability, and the number of all reachable target state partitions under that condition is added to the denominator to avoid the zero probability problem. Thus, an input-dependent state transition probability model is constructed, with the control input interval and external disturbance partition interval as conditions, and the state partition interval as the state space.
[0072] D105. Based on physical consistency constraints, the statistical state transition probabilities are weighted and smoothed using the state transition probabilities predicted by the preset physical model to obtain the corrected state transition probabilities, which are used as the transition probabilities of the Markov model. In this embodiment, the preset physical model is a state transition prediction model constructed based on the device's kinematic and dynamic models. Given the current state vector, control input, and estimated external disturbances, it outputs the predicted value of the state vector at the next moment. The predicted value is then used to calculate the Euclidean distance between the center point coordinates of each state division interval. The state division interval with the smallest Euclidean distance is selected as the target state division interval predicted by the physical model, and the transition probability corresponding to this interval is the state transition probability predicted by the physical model. The statistical state transition probability is the conditional state transition probability obtained from D104. In this embodiment, the weights for weighted smoothing are determined based on the number of statistical samples under the corresponding conditions: when the number of statistical samples under a certain condition is greater than or equal to 20, the weight of the statistical state transition probability is 0.8, and the weight of the state transition probability predicted by the physical model is 0.2; when the number of statistical samples is less than 20 but greater than or equal to 10, the statistical weight is 0.5, and the physical model weight is 0.5; when the number of statistical samples is less than 10 but greater than or equal to 5, the statistical weight is 0.3, and the physical model weight is 0.7; when the number of statistical samples is less than 5, the statistical weight is 0.1, and the physical model weight is 0.9. The above weight settings are based on the following: the more statistical samples, the more reliable the statistical estimate, and the higher the statistical weight; the fewer statistical samples, the larger the variance of the statistical estimate, and the relatively higher the reliability of the physical model prediction. After the statistical state transition probability and the state transition probability predicted by the physical model are weighted and summed according to the above weights, the weighted result of all target state division intervals starting from the current state division interval is normalized so that the sum of the transition probabilities of each target state division interval is 1. The normalized result is used as the transition probability of the Markov model and is used for subsequent state transition probability calculation and novelty judgment.
[0073] It should be further explained that, in this embodiment, adaptive discretization of the physical state space includes: E101. Standardize each state variable in the physical state vector and determine the distance weight of each dimension based on the sensitivity of each state variable to state transition. In this embodiment, the physical state vector consists of four types of state variables: position, velocity, attitude, and force. Each type of state variable is standardized. Standardization uses a minimum-maximum normalization method. First, all candidate samples in the current physical state sequence are traversed, and the minimum and maximum values of each state variable are calculated. The original value of each state variable is subtracted from the minimum value, and then divided by the difference between the maximum and minimum values, ensuring that the standardized values all fall within the range of 0 to 1. When the value of a state variable in a subsequent new sample is less than the original minimum or greater than the original maximum, the minimum and maximum values of that state variable are updated. The updated minimum and maximum values are then used to re-normalize all standardized values of that state variable in the current physical state sequence, maintaining a consistent standardization scale across all samples. Sensitivity is determined as follows: for each state variable, the absolute value of the difference between adjacent candidate samples in the physical state sequence is calculated, and the standard deviation of all adjacent differences is calculated. A larger standard deviation indicates a greater change in the state variable during state transitions, and thus higher sensitivity to state transitions. The standard deviations of each state variable are normalized by dividing the standard deviation of each state variable by the sum of the standard deviations of all state variables to obtain the distance weight corresponding to that state variable. The sum of the distance weights of each dimension is 1. If the standard deviation of a certain state variable is 0, the distance weight corresponding to that state variable is assigned a value of 0.05, and the distance weights of the other state variables are redistributed according to the standard deviation ratio to ensure that the sum of the distance weights is still 1.
[0074] E102. Based on the distance weight and sample local density estimation, determine the initial discretization boundary in the standardized physical state space; In this embodiment, a sample density curve is calculated for each standardized state variable. First, the bandwidth of the kernel density estimation is determined based on the sample standard deviation of the state variable and the total number of samples. The bandwidth is set to the product of the sample standard deviation of the state variable and the negative fifth power of the total number of samples. This bandwidth selection method ensures that the smoothness of the density estimation is adapted to the sample size. Then, using a Gaussian kernel function, 256 evaluation points are sampled at equal intervals within the standardized range of the state variable, and the kernel density estimate is calculated point by point to obtain the sample density curve. The method for determining local minima on the sample density curve is as follows: Starting from the 2nd evaluation point to the 255th evaluation point, if the density value of the current evaluation point is less than that of the previous evaluation point and less than that of the next evaluation point, then the position corresponding to that evaluation point is taken as a candidate initial boundary. All candidate initial boundaries are arranged in ascending order of position. Starting from the leftmost candidate boundary, the number of samples between two adjacent candidate boundaries is checked sequentially. If the number of samples in the interval is less than the preset minimum number of samples (5), the candidate boundary to the right is discarded, and the interval is merged with the adjacent interval to the right. The number of samples in the merged interval is checked again until the number of samples in each interval is not less than 5. If there are still intervals with a number of samples less than 5 after the above merging, the interval is merged with the adjacent interval with the closest weighted distance. The weighted distance is the Euclidean distance between the center points of adjacent intervals multiplied by the distance weight of the corresponding state variable. Finally, the one-dimensional initial discretization boundary of the state variable is obtained. The one-dimensional initial discretization boundaries of each state variable are combined by Cartesian product to generate the initial boundary of the multi-dimensional state division interval.
[0075] E103. When the number of samples falling into the partitioned interval of the newly added sample is less than the preset minimum number of samples, only the boundaries of the partitioned interval and the adjacent partitioned intervals are adjusted, and the state transition statistics corresponding to the affected partitioned intervals are updated incrementally; otherwise, the original discretization boundaries remain unchanged.
[0076] In this embodiment, after the physical state vector of a new sample is extracted, it is mapped to the currently discretized multidimensional state partitioning interval based on the standardized value of the physical state vector. First, the sample count of the multidimensional state partitioning interval containing the new sample is updated. Then, it is checked whether the sample count of the multidimensional state partitioning interval and all its adjacent multidimensional state partitioning intervals is less than a preset minimum sample count of 5. If any multidimensional state partitioning interval has a sample count less than 5, the boundary of that interval is adjusted: starting from the multidimensional state partitioning interval with a sample count less than 5, the interval with the largest sample count among all its adjacent state partitioning intervals is selected and merged. If the sample count of the new interval after merging is still less than 5, the process continues from the new interval, again selecting the interval with the largest sample count among its adjacent state partitioning intervals for merging, repeating this process until the sample count of the new interval after merging is not less than 5. During the merging process, only the boundaries related to the interval containing the new sample and its adjacent intervals are adjusted; the boundaries of the other state partitioning intervals remain unchanged. After boundary adjustment, the frequency of state transitions originating from the changed state division intervals is recounted. The number of transitions and conditional state transition probabilities under the corresponding control input interval and external disturbance division interval are also recounted according to the calculation method for conditional state transition probabilities. Time normalization and weighted smoothing are then performed to update the state transition statistics for the affected intervals. For state division intervals without boundary adjustment, the previously counted state transition frequencies, conditional state transition probabilities, and Markov model transition probabilities remain unchanged. If the number of samples in the interval containing the new sample and its adjacent intervals is not less than 5, the original discretization boundary remains unchanged. Only the sample count in the interval containing the new sample is updated, and the state transition frequency is accumulated according to the normal process, without triggering incremental updates to boundary adjustment and state transition statistics. If the physical state vector value of the new sample exceeds the coverage of all current state division intervals, the outermost state division interval is expanded to cover the new sample before boundary adjustment, and then the above sample count check and boundary adjustment process is performed.
[0077] It should be further explained that, in this embodiment, calculating the state transition probability of the current sample relative to the previous state includes: F101. Obtain the estimated covariance matrix of the current sample physical state vector and the estimated covariance matrix of the previous physical state vector. In this embodiment, the estimated covariance matrix of the current sample's physical state vector is determined by the estimated error covariance matrix output by the extended Kalman filter in C104. After each state correction, C104 synchronously outputs the estimated error covariance matrix. This matrix is a symmetric matrix with the same dimension as the physical state vector. Its diagonal elements correspond to the estimated variances of position, velocity, attitude, and force state variables, respectively, while the off-diagonal elements correspond to the covariances between the estimated values of each state variable. The estimated error covariance matrix is stored along with the physical state vector of the corresponding candidate sample in the sample state cache of the cloud-based redundancy removal module. Each candidate sample is indexed by its sample identifier and associated with its physical state vector, estimated error covariance matrix, alignment timestamp, control input interval number, and external disturbance partition interval number. In this step, based on the candidate sample identifiers corresponding to the current sample and the previous state, two estimation error covariance matrices are read from the sample state cache respectively, serving as the estimated covariance matrix of the physical state vector of the current sample and the estimated covariance matrix of the physical state vector of the previous state. If the physical state vector of a candidate sample is directly determined by a single mode observation without being corrected by an extended Kalman filter, its estimated covariance matrix uses the measurement noise variance of the sensor corresponding to that single mode as the diagonal element, and the off-diagonal elements are set to zero. If the physical state vector of a candidate sample is only predicted by the state transition model without being updated by any observations, its estimated covariance matrix uses the sum of the estimated covariance matrix of the previous time step and the process noise covariance matrix. The value of the process noise covariance matrix is consistent with the process noise standard deviation defined in C104.
[0078] F102. Based on the estimated covariance matrix and the boundaries of the state division intervals, calculate the current membership degree of the current sample physical state vector to each state division interval, and the previous membership degree of the previous state physical state vector to each state division interval. In this embodiment, the boundaries of the state partitioning intervals are the standardized state space boundary values recorded after adaptive discretization in E102 and E103. Each state partitioning interval is defined by the corresponding boundary values in each state variable dimension. The process of calculating the current membership degree is as follows: the current sample physical state vector is regarded as a multidimensional Gaussian distribution, the mean vector of which is the current sample physical state vector, and the covariance matrix is the estimated covariance matrix of the current sample obtained in F101; for each standardized state partitioning interval, the boundary values of the interval in each state variable dimension are used as the upper and lower limits of integration, and the multidimensional Gaussian distribution is numerically integrated within the multidimensional interval. The obtained integral value is the current membership degree of the current sample physical state vector belonging to the state partitioning interval. The numerical integration is implemented using equidistant grid sampling and the trapezoidal rule. Each state variable is divided into 16 sub-intervals within the corresponding interval boundary to generate a multidimensional sampling grid. The probability density value of the multidimensional Gaussian distribution at each sampling point is calculated, and the integral approximation value is obtained by accumulating the values according to the trapezoidal rule. When the dimension of the physical state vector is greater than 4, the computational cost of numerical integration becomes too high. Therefore, a random sampling method is used: 1000 sample points are sampled from the multidimensional Gaussian distribution, and the ratio of the number of sample points falling into each state division interval to the total number of sample points (1000) is used as the current membership degree of that state division interval. The calculation method for the previous membership degree is the same as the current membership degree, except that the previous state physical state vector and its estimated covariance matrix are used to calculate the membership degree of the previous state physical state vector belonging to each state division interval. After the calculation, all current membership degrees corresponding to the current sample and all previous membership degrees corresponding to the previous state are normalized so that the sum of the membership degrees of each sample to each state division interval is 1. If the sum of the membership degrees of a sample in all state division intervals before normalization is 0, then the membership degree of that sample is evenly distributed to all state division intervals to ensure the effectiveness of the subsequent weighted summation.
[0079] F103. Calculate the current membership vector of the current sample physical state vector to which each state division interval belongs, and the previous membership vector of the previous physical state vector to which each state division interval belongs; based on each component in the current membership vector and the previous membership vector, perform a weighted summation of the transition probabilities between the corresponding state division intervals in the Markov model to obtain the initial state transition probability. In this embodiment, the transition probability in the Markov model is the conditional state transition probability in D105 after weighted smoothing and normalization by physical consistency constraints. For each current state partition to which the current sample belongs and each previous state partition to which the previous state belongs, the transition probability from the previous state partition to the current state partition is read from the Markov model. This transition probability is multiplied by the current membership degree of the current sample to that current state partition and the previous membership degree of the previous state to that previous state partition to obtain the weighted transition contribution value corresponding to that pair of state partitions. The weighted transition contribution value is calculated for all combinations of current state partitions and all previous state partitions, and all weighted transition contribution values are summed. The summation result is the initial state transition probability. If the membership vector of the current sample or the previous state contains multiple non-zero memberships, the initial state transition probability reflects the weighted average of the transitions between multiple possible state partitions under state estimation uncertainty. If the membership of the current sample and the previous state is 1 for a single partition and 0 for the remaining partitions, the initial state transition probability degenerates into the transition probabilities between corresponding partitions in the Markov model. If there is no transition probability record between a pair of state partitions read from the Markov model, the transition probability of that pair of partitions is set to 0, and the weighted transition contribution of that pair of partitions is 0 and does not participate in the summation. If the sum of the weighted transition contributions of all combinations is 0, the initial state transition probability is set to 0, and the prior probability is used as the main output in subsequent Bayesian smoothing.
[0080] F104. Perform Bayesian smoothing on the initial state transition probability to obtain the smoothed state transition probability, and use the smoothed state transition probability as the state transition probability of the current sample relative to the previous state. In this embodiment, the prior distribution of Bayesian smoothing is uniform, meaning the prior probability of each possible target state partition is 1 divided by the total number of reachable target state partitions in the Markov model. The smoothing intensity parameter is determined based on the cumulative number of transitions of the current sample's state partition in historical data. Specifically, the cumulative number of transitions corresponding to the control input partition and external disturbance partition of the current sample is read from the conditional state transition probability statistics in D104. If the cumulative number of transitions is less than 5, the smoothing intensity parameter is 5; if the cumulative number of transitions is greater than or equal to 5 and less than 20, the smoothing intensity parameter is 3; and if the cumulative number of transitions is greater than or equal to 20, the smoothing intensity parameter is 1. The specific process of Bayesian smoothing is as follows: Using the initial state transition probability as the likelihood term and the prior probability as the smoothing target, the initial state transition probability is multiplied by the smoothing strength parameter, then added to the prior probability multiplied by the smoothing strength parameter, and finally divided by twice the smoothing strength parameter to obtain the smoothed intermediate value. Next, the transition probabilities of the current sample relative to the intervals of all possible target states are normalized so that the sum of the probabilities is 1. The normalized result is used as the smoothed state transition probability. If the initial state transition probability is 0 and the smoothing strength parameter is 5, the smoothed state transition probability is close to the prior probability, avoiding the zero probability problem. If the cumulative number of transitions is sufficient and the smoothing strength parameter is 1, the smoothed state transition probability is even closer to the initial state transition probability, preserving the information of the statistical estimate. Finally, the smoothed state transition probability is output as the state transition probability of the current sample relative to the previous state to the novelty judgment step, used for comparison with a preset novelty threshold or an adaptive novelty threshold.
[0081] It should be further explained that, in this embodiment, calculating the cross-modal mutual information between the current sample and each historical sample in the relevant historical sample subset includes: G101. Obtain the sample density of the state division interval to which the current sample belongs, and adjust the preset novelty threshold according to the sample density to obtain the adaptive novelty threshold. In this embodiment, the current state partition to which the current sample belongs is determined by the current membership degree of the current sample to each state partition calculated in F102. The state partition with the largest current membership degree is selected as the current sample's belonging partition. If multiple state partitions have the same current membership degree, and all are the maximum value, the Euclidean distance between the current sample's physical state vector and the centroid coordinates of these state partitions is calculated, and the state partition with the smallest Euclidean distance is selected as the belonging partition. The sample density is the ratio of the number of samples in the current state partition to the total number of samples in all state partitions. The number of samples is read from the state partition sample count table maintained by the cloud redundancy removal module, and the total number of samples is the cumulative value of the number of samples in all state partitions. The global average density is 1 divided by the total number of state partitions, which is the number of state partitions obtained after D103 or E103 adaptive discretization. The density ratio is the ratio of the sample density of the current sample's state partition to the global average density. The method for adjusting the preset novelty threshold based on the density ratio is as follows: The preset novelty threshold is set to 0.1, which is determined based on the overall distribution of transition probabilities in the Markov model, indicating that approximately 10% of transitions are judged as high novelty under uniform distribution conditions. When the density ratio is less than 0.5, the preset novelty threshold is multiplied by 0.8 to obtain the adaptive novelty threshold. When the density ratio is greater than 2, the preset novelty threshold is multiplied by 1.2 to obtain the adaptive novelty threshold. When the density ratio is between 0.5 and 2, the preset novelty threshold remains unchanged and is directly used as the adaptive novelty threshold. The adaptive novelty threshold is set with a lower limit of 0.01 and an upper limit of 0.5. If the adjusted threshold is lower than the lower limit, it is set to 0.01; if it is higher than the upper limit, it is set to 0.5. This ensures that sparse regions do not misjudge a large number of normal transitions as high novelty due to excessively low thresholds, and dense regions do not miss truly high-novelty samples due to excessively high thresholds.
[0082] G102. When the state transition probability is lower than the adaptive novelty threshold, the current sample is determined to be a high-novelty sample and retained. In this embodiment, the state transition probability is the state transition probability after Bayesian smoothing in F104. The state transition probability is compared with the adaptive novelty threshold obtained in G101. If the state transition probability is less than the adaptive novelty threshold, it indicates that the transition of the current sample relative to the previous state is a low-probability transition under the current physical state space conditions. The physical state corresponding to the current sample rarely appears in historical data, so the current sample is determined to be a high-novelty sample. The high-novelty sample does not enter the subsequent cross-modal mutual information redundancy removal process, but is directly retained and output to the redundancy removal sample set. At the same time, the physical state vector of the sample, each modal data segment, estimated covariance matrix, state division interval number, control input interval number, external disturbance division interval number, and sampling timestamp are written into the redundancy removal sample cache of the cloud redundancy removal module, and the novelty mark of the sample is set to high novelty.
[0083] G103. When the state transition probability is not lower than the adaptive novelty threshold, samples whose physical state vectors are less than the distance between the physical state vector of the current sample and the physical state vector of the historical sample are selected from the historical samples to form a subset of relevant historical samples. In this embodiment, when the state transition probability is greater than or equal to the adaptive novelty threshold, it indicates that the physical state of the current sample is a relatively common state in historical data, and further cross-modal mutual information is needed to determine its information redundancy with historical samples. Historical samples are stored in the historical sample library of the cloud redundancy removal module. Each sample in the historical sample library is associated with and stored with its physical state vector, modal feature vectors, and sample identifier. The Euclidean distance between the physical state vector of the current sample and the physical state vector of each historical sample is calculated. The physical state vectors are all standardized physical state vectors, and the values of each state variable are between 0 and 1. In this embodiment, the preset distance threshold is 0.2. This threshold is determined according to the scale of the standardized physical state space. 0.2 corresponds to about 20% of the physical state space range, achieving a balance between physical state similarity and the number of candidate samples. All historical samples with an Euclidean distance less than 0.2 are extracted to form a relevant historical sample subset; if the relevant historical sample subset is empty, the current sample is directly retained, the subsequent mutual information calculation is skipped, and the current sample is output to the redundancy removal sample set. If the number of samples in the relevant historical sample subset exceeds 500, they are sorted by Euclidean distance from smallest to largest, and only the top 500 samples with the smallest distance are selected to form the relevant historical sample subset, so as to control the computational workload of subsequent mutual information calculations to not exceed the preset range.
[0084] G104. Extract the feature vectors of the current sample and each historical sample in the relevant historical sample subset for each modality. In this embodiment, the feature vectors of each modality are extracted in the same way as the local feature descriptors in B102. For the current sample and each historical sample, extract the feature vectors of each modality from the multimodal data segment of the sample in the same way as in B102, and store them as a modality feature vector group. If the data of the current sample or historical sample in a certain modality is missing, the feature vector of that modality is set to a vector of all zeros, and the modality weight does not participate in the weighting in the subsequent mutual information weighting calculation. The weights are distributed proportionally to the other modalities.
[0085] G105. For each mode, the joint probability density of that mode is estimated using the k-nearest neighbor method based on the feature vector of the current sample and the feature vector of the historical samples. In this embodiment, k is set to 10 in the k-nearest neighbor method. Taking the visual modality as an example, the 512-dimensional visual feature vector of the current sample is used as the query point. A k-nearest neighbor search is performed on the dataset composed of the 512-dimensional visual feature vectors of each historical sample in the relevant historical sample subset. The search uses Euclidean distance as a metric. The 10 historical samples closest to the query point are selected, and the Euclidean distance from the query point to the 10th nearest neighbor is recorded and denoted as r.
[0086] The joint probability density estimate is calculated using the following formula:
[0087] in: To determine the number of nearest neighbors, k=10 in this embodiment; This represents the total number of samples in the relevant historical sample subset; d represents the dimension of the current modal feature vector. For visual modality, d=512; for lidar modality, d=64; for inertial measurement unit modality, d=12; and for force sensor modality, d=10. The volume of a d-dimensional hypersphere is calculated using the following formula: ; Where π is the mathematical constant pi, r is the Euclidean distance from the query point to its k-th nearest neighbor, and Γ is the Gamma function. The value of the Gamma function is determined according to the following rule: when d is even, When d is odd, , (d+1)!! represents the double factorial of (d+1), that is, multiplying every two numbers starting from (d+1) until 1.
[0088] Substituting the above parameters into the joint probability density estimation formula, the smaller the distance r, the larger the hypersphere volume. The smaller the value, the higher the joint probability density estimate. The larger the value, the more concentrated the feature distribution of the current sample and the historical sample are in this modality, and the higher the joint probability density.
[0089] The joint probability density of the current sample and each historical sample in the same mode is estimated using the same k-nearest neighbor method for the lidar mode, inertial measurement unit mode, and force sensor mode. The feature vector dimensions of each mode are 64, 12, and 10, respectively, k is 10, and the distance metric is Euclidean distance. The joint probability density estimate of each mode is calculated according to the above formula.
[0090] G106. Calculate the mutual information between the current sample and historical samples in this modality based on the joint probability density. In this embodiment, for each mode, mutual information is calculated using the joint probability density estimated by G105, the marginal probability density of the current sample's feature vector for that mode, and the marginal probability density of the historical sample's feature vector for that mode. The marginal probability density is estimated using the same k-nearest neighbor method as G105, with k set to 10. The marginal probability density of the current sample's feature vector is estimated as follows: using the current sample's feature vector as the query point, a k-nearest neighbor search is performed on the dataset composed of the feature vectors of that mode in the relevant historical sample subset. The hypersphere volume is calculated with the distance from the query point to the 10th nearest neighbor as the radius. The estimated marginal probability density is obtained by dividing 10 by the total number of samples and multiplying by the hypersphere volume. The marginal probability density of the historical sample's feature vector is estimated in the same way as the current sample. The mutual information is calculated as follows: using the joint probability density as the numerator, the product of the marginal probability density of the current sample's feature vector and the marginal probability density of the historical sample's feature vector as the denominator, and taking the natural logarithm of the ratio, the estimated mutual information for that sample pair in that mode is obtained. If any of the joint probability density, the marginal probability density of the current sample feature vector, or the marginal probability density of the historical sample feature vector is 0, then the mutual information in this mode is set to 0. The larger the mutual information value, the more information the current sample and historical samples share in this mode, and the higher the degree of redundancy.
[0091] G107. Weighted summation of mutual information under each modality to obtain cross-modal mutual information between the current sample and historical samples; In this embodiment, the preset weights for the weighted summation of mutual information across modalities are: visual modality weight 0.4, lidar modality weight 0.25, inertial measurement unit modality weight 0.2, and force sensor modality weight 0.15, with a sum of 1. These weights are determined based on the feature vector dimension, information content, and physical state representation capability of each modality. The visual modality has the highest feature dimension and contains rich appearance information, hence its largest weight; the lidar modality reflects spatial structure, hence its second largest weight; the inertial measurement unit and force sensor directly reflect motion and force, but have lower feature dimensions, hence their smaller weights. The estimated mutual information values of each modality in G106 are multiplied by their corresponding modal weights and then summed to obtain the cross-modal mutual information between the current sample and the historical sample. If data for a certain modality is missing, that modality weight does not participate in the weighting. The weight of the missing modality is proportionally allocated to the remaining modalities with available data, ensuring that the sum of the weights participating in the weighting is 1.
[0092] G108. When any of the cross-modal mutual information exceeds a preset redundancy threshold, the current sample is removed; otherwise, the current sample is retained.
[0093] In this embodiment, a preset redundancy threshold of 0.5 is set. This threshold is determined based on the range of cross-modal mutual information and the empirical distribution of mutual information among a large number of sample pairs. When the cross-modal mutual information exceeds 0.5, it indicates that the current sample is highly similar to the corresponding historical sample at the multimodal feature level, and the physical state information carried by the current sample has been covered by the historical sample, thus being judged as a redundant sample. For each historical sample in the relevant historical sample subset constituted in G103, cross-modal mutual information is calculated according to G104 to G107 respectively. If any calculation result exceeds 0.5, the current sample is immediately judged as a redundant sample and removed, and no further calculation is performed on the remaining historical samples; if the cross-modal mutual information of all historical samples does not exceed 0.5, the current sample is retained. The removed current sample does not enter the deredundancy sample set, and the retained current sample is output to the deredundancy sample set, and its redundancy judgment pass flag is recorded when it is written to the deredundancy sample cache.
[0094] It should be further explained that, in this embodiment, generating the updated dataset includes: H101. Perform feature selection on the deredundant sample set and the historical sample set respectively to obtain the deredundant feature set and the historical feature set; In this embodiment, the deredundancy sample set is the current sample set retained in G108, and the historical sample set is the set of all samples stored in the historical sample library of the cloud-based deredundancy module before the current time. Feature selection employs both variance filtering and mutual information filtering. First, multimodal feature vectors are extracted for each sample in both the deredundancy sample set and the historical sample set. The dimensions of the multimodal feature vectors are consistent with the total dimensions after concatenating the feature vectors of each modality in G104. The concatenation order is 512 dimensions for vision, 64 dimensions for LiDAR, 12 dimensions for inertial measurement unit, and 10 dimensions for force sensor, for a total of 598 dimensions. The variance of each feature dimension on the union of the deredundancy sample set and the historical sample set is calculated, and feature dimensions with a variance less than 0.01 are deleted. The variance threshold is 0.01, based on the fact that the standardized feature values are in the range of 0 to 1. A variance less than 0.01 indicates that the dimension has almost no change among samples and contributes very little to the measurement of distribution differences; deleting it reduces the subsequent computational load. For each remaining feature dimension, the mutual information between that dimension and the physical state vector is calculated. The physical state vector is the physical state vector estimated by filtering in C104 for each sample. The mutual information is calculated using the k-nearest neighbor method, where k is set to 10, and Euclidean distance is used as the distance metric. The mutual information values are sorted from largest to smallest, and the top 200 feature dimensions with the highest mutual information are retained, while the remaining feature dimensions are deleted. The reason for retaining 200 dimensions is to control the computational complexity of calculating the maximum mean difference within an acceptable range while retaining sufficient information to distinguish physical states. The above feature selection results are applied to the deredundant sample set and the historical sample set, respectively, to obtain the deredundant feature set and the historical feature set. Both feature sets contain only the 200 retained feature dimensions, and the order of the feature dimensions in the two feature sets is consistent.
[0095] H102. Based on the redundancy-removing feature set and the historical feature set, calculate the local density-weighted distribution difference metric as the drift amount; In this embodiment, the distribution difference metric is calculated using the maximum mean difference weighted by local density. First, a local density weight is calculated for each sample in the redundancy-removed feature set and the historical feature set. The local density weight is the reciprocal of the Euclidean distance from that sample to its fifth nearest neighbor sample, which is selected from the union of the redundancy-removed feature set and the historical feature set. The smaller the fifth nearest neighbor distance, the denser the sample area, and the larger the local density weight. The local density weight of each sample is divided by the sum of the local density weights of all samples to obtain the normalized local density weight. A weighted feature mean vector is then calculated on both the redundancy-removed feature set and the historical feature set. The weighted feature mean vector is the sum of the products of the value of that dimension for all samples in each feature dimension and the corresponding normalized local density weight. Using a Gaussian kernel function as the kernel function, the Gaussian kernel bandwidth is taken as the median of the pairwise Euclidean distances between samples in the union of the redundant feature set and the historical feature set. When the total number of samples in the union is greater than 500, 500 samples are randomly sampled without replacement from the union, and the pairwise Euclidean distances between these 500 samples are calculated and the median is taken as the bandwidth estimate. The number of pairwise distances between the 500 samples is 124,750 pairs, and the computational load is controllable. When the total number of samples in the union is less than or equal to 500, the pairwise Euclidean distances between all samples are calculated and the median is taken. This median bandwidth is adaptive to the data scale, avoiding the failure of the maximum mean difference estimation due to excessively large or small bandwidth. Calculate the weighted average of samples within the redundancy-removed feature set with respect to the kernel function value, the weighted average of samples within the historical feature set with respect to the kernel function value, and the weighted average of samples between the redundancy-removed feature set and the historical feature set with respect to the kernel function value. The weights used for the weighted averages are all normalized local density weights of the corresponding samples. Subtract twice the cross-set weighted average from the sum of the weighted average within the redundancy-removed feature set and the weighted average within the historical feature set. The resulting value is the local density-weighted distribution difference measure, which is used as the drift. The larger this measure is, the greater the difference in feature distribution between the redundancy-removed sample set and the historical sample set.
[0096] H103. Obtain the current sensor calibration parameters and historical sensor calibration parameters, and calculate the difference value of the calibration parameters; In this embodiment, the current sensor calibration parameters are the calibration parameters written to the cloud redundancy removal module calibration parameter file by the physical AI device after the most recent calibration operation, while the historical sensor calibration parameters are the calibration parameters used during the previous dataset construction. The sensor calibration parameters include the extrinsic rotation matrix and translation vector from each modal sensor to the device's body coordinate system. The calibration parameter difference is calculated as follows: for each sensor, multiply its current extrinsic rotation matrix by the transpose of its historical extrinsic rotation matrix to obtain a relative rotation matrix. The rotation angle of this relative rotation matrix is taken as the rotation difference of the sensor, with the unit being radians. The current translation vector is subtracted from the historical translation vector, and the Euclidean distance is taken as the translation difference of the sensor, with the unit being meters. The rotation and translation differences of each sensor are multiplied by their corresponding modal weights and then summed to obtain the calibration parameter difference value. The modal weights are consistent with the cross-modal mutual information weighting weights in G107, i.e., 0.4 for vision, 0.25 for LiDAR, 0.2 for the inertial measurement unit, and 0.15 for the force sensor. If a sensor's current or historical calibration parameters are missing, then the sensor's rotational and translational differences are both set to 0, and the sensor does not participate in the calculation of calibration parameter difference values. The weights of the remaining sensors are redistributed proportionally to ensure that the sum of the weights involved in the calculation is 1.
[0097] H104. When the difference value of the calibration parameter exceeds the preset calibration drift threshold, calibration drift compensation is performed on the drift amount to obtain the compensated drift amount; otherwise, the drift amount is used as the compensated drift amount. In this embodiment, the preset calibration drift threshold is set to 0.15. This threshold is determined based on the allowable range of sensor calibration error and the statistical results of multiple calibration experiments. 0.15 corresponds to a rotational difference of approximately 0.1 radians and a translational difference of approximately 0.05 meters. At this point, the impact of calibration changes on the drift begins to appear. When the calibration parameter difference exceeds 0.15, it is determined that the drift includes a portion caused by changes in sensor calibration, and calibration drift compensation is required. The compensation method is as follows: subtract the product of the calibration parameter difference and the preset compensation coefficient from the drift. The preset compensation coefficient is set to 0.4, which is obtained by regression analysis of the linear influence coefficient of calibration parameter changes on the maximum mean difference. If the subtraction result is less than 0, the compensated drift is set to 0; if the subtraction result is greater than or equal to 0, the subtraction result is used as the compensated drift. When the calibration parameter difference does not exceed 0.15, it is determined that the impact of sensor calibration changes on the drift is negligible, and no compensation is performed. The original drift is directly used as the compensated drift.
[0098] H105. Obtain the historical drift sequence within a preset time window, and determine the adaptive drift threshold based on the mean and standard deviation of the historical drift sequence. In this embodiment, a preset time window is used to capture the historical drift data recorded during the construction of the most recent 30 datasets. This historical drift data is stored in a drift history table in the cloud-based redundancy removal module. After each drift calculation, the compensated drift data is appended to this table. If the table contains more than 30 records, the oldest record is deleted, maintaining a maximum of 30 records. The mean and standard deviation are calculated for the 30 historical drift data within the preset time window. The adaptive drift threshold is set to the mean plus twice the standard deviation. This coefficient 2 is based on the statistical characteristic that approximately 95% of drift data fall within the range of the mean plus or minus twice the standard deviation under the assumption of a normal distribution. A drift exceeding this threshold is considered significantly abnormal. If there are fewer than 30 historical drift data records, the mean and standard deviation are calculated using existing records. If there are fewer than 5 existing records, the adaptive drift threshold uses a preset initial drift threshold of 0.5, which is determined based on the physical state spatial scale and empirical data. The adaptive drift threshold has an upper limit of 1.2 and a lower limit of 0.3. If the calculated result exceeds the upper limit or falls below the lower limit, the upper limit or lower limit value will be used respectively to prevent the threshold from being too large, which may lead to missed supplementary acquisition, or too small, which may lead to frequent supplementary acquisition.
[0099] H106. When the compensated drift exceeds the adaptive drift threshold, supplementary acquisition is triggered. In this embodiment, the compensated drift amount obtained from H104 is compared with the adaptive drift threshold obtained from H105. When the compensated drift amount is greater than the adaptive drift threshold, it is determined that there is a significant distribution difference between the current deredundancy sample set and the historical sample set, triggering supplementary collection. When supplementary collection is triggered, the cloud deredundancy module sends a supplementary collection instruction to the data collection module of the edge device. The instruction carries the target area identifier, target physical state interval number, and supplementary collection quantity. The target physical state interval number is the state division interval number to which the top 20% of samples with the largest drift contribution in the current deredundancy sample set belong. The drift contribution is the absolute value of the cross-set term contribution of each sample in the calculation of the local density-weighted maximum mean difference. The supplementary collection quantity is determined according to the drift amount and the sample density of the state division interval. At least 5 samples are supplemented for each target state division interval. If the drift amount exceeds twice the adaptive threshold, the supplementary collection quantity for each target interval is increased to 10. After receiving the instruction, the data acquisition module of the edge device will prioritize sampling the physical state corresponding to the target state division interval in the next available acquisition cycle, and send the acquired multimodal data samples back to the cloud redundancy removal module.
[0100] H107. Perform physical consistency verification on the supplementary collected samples, remove supplementary collected samples that do not meet the physical consistency requirements, and obtain valid supplementary samples. In this embodiment, the supplementary collection samples are multimodal data samples collected by the edge device in response to the supplementary collection command and transmitted back to the cloud redundancy removal module. Each supplementary collection sample contains a multimodal data segment and a corresponding sampling timestamp. The physical consistency verification process is the same as the physical consistency verification of candidate samples in C103: For each supplementary collection sample, its physical state vector is extracted. For the same target state variable, if there are observations provided by multiple modalities, the Euclidean distance between any two observations is calculated as the deviation. If the deviation of any observation from all other observations exceeds the preset physical consistency threshold of the corresponding state variable, the observation is determined to be an abnormal observation. The sum of the deviations of the abnormal observation from all other observations is calculated, and the abnormal observation with the largest sum of deviations is removed. If the number of remaining observations after removing abnormal observations is less than 1, the supplementary collection sample is determined not to meet physical consistency and is removed. If all observations meet physical consistency, or if there is still at least one valid observation after removing abnormal observations, the supplementary collection sample is determined to meet physical consistency and is retained as a valid supplementary sample. After performing the above verification on all supplementary samples, the remaining valid supplementary samples will form a valid supplementary sample set; if the valid supplementary sample set is empty, the supplementary collection will be considered invalid, the subsequent fusion process will not be executed, and the process will wait for the next trigger condition.
[0101] H108. Determine the fusion ratio of the effective supplementary sample and the deduplication sample set based on the ratio of the compensated drift amount to the preset maximum drift amount. In this embodiment, a maximum drift amount is preset. The value is set to 2.0, determined based on the maximum value of the historical drift sequence and the physical state spatial scale, representing the maximum observable distribution difference. The compensated drift obtained from H104 is then used. Divide by the preset maximum drift amount The drift ratio r is obtained, and the calculation formula is as follows: The drift ratio is set to 1 when it is greater than 1 and 0 when it is less than 0. The formula for calculating the fusion ratio α is as follows: That is, the proportion of effective supplementary samples in the fused dataset is equal to the drift ratio multiplied by a preset upper limit of 0.5, and the proportion of the deredundant sample set in the fused dataset is... The larger the drift ratio, the higher the proportion of effective supplementary samples, with a maximum of 0.5. When the drift ratio is 0, the proportion of effective supplementary samples is 0, and the fused dataset only contains the deduplicated sample set. The purpose of setting the upper limit of 0.5 is to ensure that at least half of the original deduplicated samples are always retained in the fused dataset, so as to avoid excessive supplementary samples diluting the original high-quality samples.
[0102] Once the fusion ratio α is determined, the total number of samples N in the fused dataset is... totalDetermine using the following formula: ,in The original number of samples in the redundant sample set. To effectively supplement the actual number of samples in the sample set, the number of samples N_supplement_sampled effectively supplemented after fusion is calculated using the following formula: That is, take N total The smaller of the number of samples N after multiplying by α and rounding down, and the actual number of samples in the effective supplementary sample set. original_sampled Calculate using the following formula: ,in This is the floor symbol.
[0103] If the required number of effective supplementary samples is calculated based on the fusion ratio The actual number of samples N in the effective supplementary sample set is greater than the actual number of samples N. supplement_effective ,Right now Then, the actual number of samples in the effective supplementary sample set is used as the sampling number of the effective supplementary samples after fusion, and the sampling number of redundant samples is increased accordingly, that is... To maintain the total number of samples N after fusion total This means that the sum of the original number of samples in the redundant sample set and the actual number of samples in the effective supplementary sample set remains unchanged; conversely, if the effective supplementary samples are sufficient, i.e. Then the number of samples for each set is determined strictly according to the fusion ratio, that is... .
[0104] The effective supplementary sample size N obtained from the above calculations is... supplement_sampled The number of redundant samples N after fusion original_sampled For the redundant sample set and the effective supplementary sample set, stratified random sampling is performed according to the intervals of their respective states: For each dataset, the sampling quota of the dataset is first allocated according to the proportion of the number of samples in each state interval, and then the corresponding number of samples are randomly selected without replacement in each state interval. The sampling results of the two parts are merged to obtain the fused sample set, which is written into the historical sample database as the updated dataset.
[0105] H109. According to the fusion ratio, the effective supplementary samples and the deduplicated sample set are replayed and fused to generate an updated dataset. In this embodiment, the playback fusion adopts a stratified sampling method: the redundant sample set and the effective supplementary sample set are divided into intervals according to the state to which their respective samples belong, and then stratified. Within each layer, weighted random sampling is performed according to the proportion of samples in that layer in the respective dataset. The number of samples is determined based on the fusion ratio determined by H108 and the total number of samples. The total number of samples is the sum of the number of samples in the redundant sample set and the number of samples in the effective supplementary sample set. Specifically, the sampling method is as follows: the number of effective supplementary samples and the number of redundant samples that should be included in the fused dataset are calculated according to the fusion ratio; for the effective supplementary sample set, sampling quotas are allocated according to the proportion of the number of samples in each state interval, and a corresponding number of samples are randomly selected in each state interval; the sampling quotas for the redundant sample set are allocated in the same way, and a corresponding number of samples are randomly selected in each state interval; random sampling uses sampling without replacement. If the number of samples in a certain state interval is insufficient to meet the allocation quota, the insufficient quota in that interval is evenly distributed to other intervals with sufficient sample numbers. The sampling results of the two parts are merged to obtain the fused sample set. For the fused sample set, update the source identifier, sampling timestamp, state division interval number, and control input interval number of each sample. The source identifier is used to distinguish whether the sample comes from the original deduplicated sample set or from this supplementary collection. The fused sample set is written as the updated dataset into the historical sample library, replacing the original historical sample set. At the same time, the drift amount, the compensated drift amount, the adaptive drift threshold, the fusion ratio, and the timestamp are recorded to form a dataset version record. The dataset version record is stored in the version management table of the historical sample library. Each version record includes the version number, update time, trigger reason, and sample count statistics.
[0106] This embodiment uses a data acquisition module to denoise, unify units, and divide time windows for the raw data streams of each modality. It then generates a 64-bit lightweight feature signature using perceptual hashing and locality-sensitive hashing mapping. This allows for rapid indexing and initial duplicate detection at the edge without uploading the complete raw data, significantly reducing communication bandwidth and cloud storage pressure. The edge filtering module interpolates and aligns the data of each modality based on the master modality timestamp, extracts the multimodal joint feature signature, and calculates the Hamming distance. It further compares physical state differences only when signatures are similar, thus eliminating simple duplicate samples at the edge while retaining key samples with similar visual features but different physical states. This avoids the problem of erroneously deleting high-value edge samples due to ignoring physical state differences in traditional single-modality redundancy removal. The cloud redundancy removal module transforms the observed physical quantities of each modality to a unified physical coordinate system using sensor calibration parameters. It removes abnormal observations based on cross-modal physical consistency and then uses extended Kalman filtering to estimate the physical state vector. This ensures that the subsequent establishment of the physical state sequence does not depend on single-modal noise, improving the accuracy of state estimation. Based on this, by controlling the input... An input-dependent state transition probability model is constructed based on input and external disturbances. The statistical estimate is then weighted and smoothed using the state transition probabilities predicted by a pre-defined physical model, overcoming the instability of statistical transition probabilities under sparse conditions and the influence of controlled input disturbances on the physical system. Based on the estimated covariance matrix, the membership degree of the current sample and the previous state to each state partition interval is calculated. This membership degree is then weighted and summed with the transition probabilities of the Markov model, followed by Bayesian smoothing. This integrates the uncertainty of state estimation into the state transition probability calculation, avoiding the influence of small noise on samples near the state partition boundaries. The fluctuation of state transition probability improves the stability of distinguishing between high-novelty samples and redundant samples. In the redundancy removal stage, the preset novelty threshold is adaptively adjusted according to the sample density of the interval to which the current sample belongs, so that both sparse and dense intervals can obtain reasonable novelty judgment boundaries. Samples with state transition probabilities lower than the adaptive threshold are directly retained as high-novelty samples. For samples with probabilities not lower than the threshold, the k-nearest neighbor method is used to estimate the joint probability density of each mode and calculate the cross-modal mutual information. Samples are only removed when the cross-modal mutual information exceeds the preset redundancy threshold, which takes into account both physical state fidelity and redundancy removal.The self-updating module calculates the drift between the deredundant sample set and the historical sample set by calculating the maximum mean difference using local density weighting. It then eliminates interference from sensor calibration changes on distribution differences through calibration drift compensation. Combined with the historical drift sequence, it determines an adaptive drift threshold. When the drift is significantly abnormal, supplementary acquisition is triggered. After performing physical consistency checks on the supplementary samples, a fusion ratio is determined based on the drift ratio for hierarchical playback fusion. This allows the dataset to adaptively update with changes in the physical environment distribution, while avoiding excessive dilution of the original high-quality samples by supplementary samples. Ultimately, this achieves low redundancy, high fidelity, and self-updating capabilities for the physical AI dataset across the entire chain of acquisition, edge screening, cloud-based fine screening, novelty determination, drift detection, and incremental updates.
[0107] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments under the guidance of the present invention without departing from the spirit and scope of the claims. All of these variations are within the protection scope of the present invention.
Claims
1. A high-quality dataset construction system for a self-updating artificial intelligence platform for physics-based AI, characterized in that: include: The data acquisition module is used to collect multimodal data from physical AI devices and generate lightweight feature signatures with fewer bits than the sum of the bits of the original feature vectors of each modality. The edge filtering module is used to perform initial redundancy removal on the multimodal data based on the feature signature to obtain a candidate sample set; A cloud-based redundancy removal module is used to perform secondary redundancy removal on the candidate sample set, including: mapping candidate samples to a physical state space, extracting the physical state sequence of candidate samples, and establishing a Markov model of the physical state sequence based on cross-modal physical consistency; calculating the state transition probability of the current sample relative to the previous state according to the Markov model; when the state transition probability is lower than a preset novelty threshold, determining the current sample as a high-novelty sample and retaining it; when the state transition probability is not lower than the novelty threshold, calculating the cross-modal mutual information between the current sample and historical samples; when the cross-modal mutual information exceeds a preset redundancy threshold, removing the current sample, otherwise retaining the current sample, to obtain a redundancy-removed sample set; The self-updating module is used to calculate the drift amount based on the distribution difference between the deredundant sample set and the historical samples. When the drift amount exceeds a preset drift threshold, supplementary collection is triggered, and the supplementary collection samples are replayed and fused with the deredundant sample set to generate an updated dataset.
2. The high-quality dataset construction system for a self-updating artificial intelligence platform for physics AI as described in claim 1, characterized in that, The obtained candidate sample set includes: Using the timestamp of the preset main mode as a reference, the remaining modal data are interpolated and aligned to obtain the aligned multimodal data segment; Local feature descriptors are extracted from each modality data segment, and after binarization, they are concatenated in a preset order to generate a multimodal joint feature signature. Calculate the Hamming distance between the current data segment and the retained historical data segments, based on the multimodal joint feature signature. When the Hamming distance is less than the preset signature similarity threshold, the physical state parameters of the current data segment and the corresponding historical data segment are obtained, and the physical state difference value between the current data segment and the corresponding historical data segment is calculated. When the physical state difference value is less than the preset state difference threshold, the current data segment is discarded; otherwise, the current data segment is retained. When the Hamming distance is greater than or equal to the preset signature similarity threshold, the current data segment is retained, and all retained data segments are used as the candidate sample set.
3. The high-quality dataset construction system for a self-updating artificial intelligence platform for physics AI as described in claim 2, characterized in that, The extraction of the physical state sequence of candidate samples includes: Based on the sensor calibration parameters corresponding to each modal data in each candidate sample, the observed physical quantities in the corresponding modal data are transformed to a preset unified physical coordinate system; Based on a set of state variables associated with a preset task, a target state variable is selected from the converted physical quantity observations. The set of state variables includes one or more of position, velocity, attitude, and force. For the same candidate sample, the deviation between the observations of the same target state variable of different modalities is calculated. When any deviation exceeds the preset physical consistency threshold, the observation with the largest deviation from the remaining observations is removed, and the deviation calculation and judgment are re-executed for the remaining observations. The removal and re-judgment steps are repeated until any deviation in the remaining observations does not exceed the preset physical consistency threshold, or the number of remaining observations is less than 2. When the number of remaining observations is less than 2, the target state variable is marked as missing. Based on the retained observations, a filtered estimation is performed to obtain the physical state vector of the corresponding candidate sample; According to the acquisition time sequence of the candidate samples, the physical state vectors of each candidate sample are arranged in order to obtain the physical state sequence.
4. The high-quality dataset construction system for a self-updating artificial intelligence platform for physics AI as described in claim 3, characterized in that, The establishment of the Markov model for the physical state sequence includes: Obtain the control input sequence and external disturbance estimate corresponding to each candidate sample, wherein the control input sequence and external disturbance estimate are determined by the multimodal data of the corresponding candidate sample; The state transition time interval is calculated based on the sampling timestamps of adjacent candidate samples, and the state transition probability is time-normalized based on the state transition time interval. Based on the sample density of the physical state sequence, the physical state space is adaptively discretized so that the number of samples in each state division interval is not less than the preset minimum number of samples. Using the control input sequence and external disturbance estimates as conditions, an input-dependent state transition probability model is constructed; Based on physical consistency constraints, the statistical state transition probabilities are weighted and smoothed using the state transition probabilities predicted by the preset physical model to obtain the corrected state transition probabilities, which are then used as the transition probabilities of the Markov model.
5. The high-quality dataset construction system for a self-updating artificial intelligence platform for physics AI as described in claim 4, characterized in that, The adaptive discretization of the physical state space includes: The state variables in the physical state vector are standardized, and the distance weights of each dimension are determined based on the sensitivity of each state variable to state transitions. Based on the distance weights and sample local density estimation, the initial discretization boundary is determined in the standardized physical state space; When the number of samples falling into the newly added sample interval is less than the preset minimum number of samples, only the boundaries of the interval and adjacent intervals are adjusted, and the state transition statistics corresponding to the affected intervals are updated incrementally; otherwise, the original discretization boundaries remain unchanged.
6. The high-quality dataset construction system for a self-updating artificial intelligence platform for physics AI as described in claim 5, characterized in that, The calculation of the state transition probability of the current sample relative to the previous state includes: Obtain the estimated covariance matrix of the current sample physical state vector and the estimated covariance matrix of the previous physical state vector; Based on the estimated covariance matrix and the boundaries of the state division intervals, calculate the current membership degree of the current sample physical state vector to each state division interval, and the previous membership degree of the previous state physical state vector to each state division interval. Calculate the current membership vector of the current sample physical state vector to which each state division interval belongs, and the previous membership vector of the previous physical state vector to which each state division interval belongs; based on each component in the current membership vector and the previous membership vector, perform a weighted summation of the transition probabilities between the corresponding state division intervals in the Markov model to obtain the initial state transition probability. The initial state transition probability is smoothed using Bayesian methods to obtain the smoothed state transition probability, and the smoothed state transition probability is used as the state transition probability of the current sample relative to the previous state.
7. The high-quality dataset construction system for a self-updating artificial intelligence platform for physics AI as described in claim 6, characterized in that, The calculation of cross-modal mutual information between the current sample and each historical sample in the relevant historical sample subset includes: Obtain the sample density of the state partition interval to which the current sample belongs, and adjust the preset novelty threshold according to the sample density to obtain an adaptive novelty threshold; When the state transition probability is lower than the adaptive novelty threshold, the current sample is determined to be a high-novelty sample and retained. When the state transition probability is not lower than the adaptive novelty threshold, samples whose physical state vectors are less than a preset distance threshold are selected from the historical samples to form a subset of relevant historical samples.
8. The high-quality dataset construction system for a self-updating artificial intelligence platform for physics AI as described in claim 7, characterized in that, The calculation of cross-modal mutual information between the current sample and each historical sample in the relevant historical sample subset further includes: Extract the feature vectors of the current sample and each historical sample in the relevant historical sample subset for each modality; For each mode, the joint probability density of that mode is estimated using the k-nearest neighbor method based on the feature vector of the current sample and the feature vector of the historical samples. Based on the joint probability density, calculate the mutual information between the current sample and historical samples in this modality; The cross-modal mutual information between the current sample and historical samples is obtained by weighted summation of the mutual information under each modality. If any of the cross-modal mutual information exceeds a preset redundancy threshold, the current sample is removed; otherwise, the current sample is retained.
9. The high-quality dataset construction system for a self-updating artificial intelligence platform for physics AI as described in claim 8, characterized in that, The generation of the updated dataset includes: Feature selection is performed on the deredundant sample set and the historical sample set respectively to obtain the deredundant feature set and the historical feature set; Based on the redundancy-removed feature set and the historical feature set, a local density-weighted distribution difference metric is calculated as the drift amount; Obtain the current sensor calibration parameters and historical sensor calibration parameters, and calculate the difference in calibration parameters; When the difference value of the calibration parameter exceeds the preset calibration drift threshold, calibration drift compensation is performed on the drift amount to obtain the compensated drift amount; otherwise, the drift amount is used as the compensated drift amount.
10. The high-quality dataset construction system for a self-updating artificial intelligence platform for physics AI as described in claim 9, characterized in that, The generation of the updated dataset also includes: Obtain the historical drift sequence within a preset time window, and determine the adaptive drift threshold based on the mean and standard deviation of the historical drift sequence; When the compensated drift exceeds the adaptive drift threshold, supplementary data acquisition is triggered. Physical consistency verification is performed on the supplementary samples, and supplementary samples that do not meet the physical consistency requirements are removed to obtain valid supplementary samples; The fusion ratio of the effective supplementary sample and the deduplication sample set is determined based on the ratio of the compensated drift amount to the preset maximum drift amount. According to the fusion ratio, the effective supplementary samples and the deduplicated sample set are replayed and fused to generate an updated dataset.
