Robot multi-modal data off-network reliable continuous acquisition and conflict isolation method and system
By introducing offline lease version and inventory summary verification into the robot multimodal data acquisition system, the problems of data duplication and content drift caused by network anomalies were solved, enabling reliable data continuation and conflict isolation, and ensuring data integrity and accuracy.
Patent Information
- Application Number
- CN202611677669.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-24
AI Technical Summary
Existing robot multimodal data acquisition systems suffer from problems such as data duplication, content drift, file ownership issues, inability to verify upload permissions, and lack of conflict isolation mechanisms under abnormal scenarios such as network jitter, short-term network outages, acquisition terminal restarts, changes in task leases, or duplicate uploads.
A reliable method for resuming data collection and conflict isolation in robot multimodal data loss is adopted. By generating a collection lease version and inventory summary in the offline state, and performing double verification after the network is restored, the integrity and consistency of data are ensured, and isolation and manual handling are performed in case of failure.
It ensures the integrity and continuity of data collection under network anomalies, prevents the erroneous release of old lease data, improves the accuracy and traceability of data return, avoids unauthorized files from entering the official dataset, and reduces the difficulty of recovering conflicting data.
Smart Images

Figure CN123163933A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of robot data acquisition technology, and in particular to a method and system for reliable continuation of robot multimodal data acquisition and conflict isolation after network outage. Background Technology
[0002] Existing robot teaching, teleoperation, and multimodal data acquisition platforms typically use a data transmission method where data is directly uploaded after online login. Typical upload paths and potential anomalies in existing technologies are as follows: Figure 1 As shown, the typical data transfer path is as follows: data acquisition devices such as robot controllers, cameras, force / pose / gripper sensors write data to the local file directory of the acquisition terminal. The acquisition terminal then uploads the data file to object storage via a network upload interface. Finally, the dataset database and task index complete the registration and association. This method can complete data backhaul under ideal conditions where the platform service is available, the network is stable, and the task lease remains unchanged. However, it has significant shortcomings in abnormal scenarios such as network jitter, short-term network outages, acquisition terminal restarts, changes in task leases, or duplicate uploads.
[0003] Specifically, the existing technology has the following problems: First, collected data can usually only be retransmitted in batches. When the network is restored after an interruption, the acquisition end often lacks the ability to resume interrupted transmissions and make idempotent judgments. Retrying the upload may generate duplicate episodes or duplicate files, resulting in redundant samples in the dataset and affecting the accuracy of subsequent model training and data statistics.
[0004] Second, after a device re-logins or a task is transferred, data in the old upload queue may be incorrectly written to a new task or a new device. Existing solutions typically rely solely on a single task number or current session information for uploading, lacking separate verification of the lease version at the time of data collection and the lease version at the time of upload. This makes it difficult to prove under what task, device, and lease conditions the data was generated, and also makes it impossible to confirm whether the current reconnected session still has upload permissions.
[0005] Third, shared metadata files such as episodes.json and tasks.json may continue to change during the queuing period, leading to inconsistencies between the file content and the content at the time of registration. Existing solutions lack the persistence and verification of metadata snapshots, pattern fingerprints, and configuration snapshots. Changes in shared metadata during the queuing period can easily cause data drift, resulting in a mismatch between the dataset metadata and the actual files.
[0006] Fourth, when a file has been written to object storage but a database transaction fails, it can easily leave behind unclaimed objects. Existing solutions typically lack a closed-loop process of "registering first, then writing to a temporary object, performing secondary verification after transmission, and then officially publishing," and do not perform compensatory cleanup for the official and temporary objects in the event of a failure, resulting in isolated data in object storage that cannot be correctly referenced by the dataset index.
[0007] Fifth, when lease expiration occurs during transmission, the transmitted data cannot be securely deleted, nor can it be directly published to the official dataset. Existing solutions lack conflict isolation mechanisms, making it impossible to transfer unverifiable or inconsistent data to an isolated area for manual processing, which can easily lead to unauthorized files being mixed into the official dataset.
[0008] Ordinary token authentication, single task ID, or single file digest can only solve some of the above problems and cannot form a closed loop for offline data collection identity, upload authorization, and content consistency. Therefore, a mechanism for resuming data collection after network interruption is needed for robot multimodal data collection. This mechanism should allow the offline phase to be independent of online credentials, and after the network is restored, it should be able to strictly verify the data collection identity, task device lease, and uploaded content through a new online session, while isolating unverifiable data instead of mixing it into the official dataset.
[0009] In view of this, we propose a method and system for reliable continuation of robot multimodal data acquisition and conflict isolation after network outage to solve the existing problems. Summary of the Invention
[0010] The purpose of this invention is to provide a method and system for reliable continuation of robot multimodal data acquisition and conflict isolation after network outage, so as to solve the problems mentioned in the background art.
[0011] To achieve the above objectives, the present invention provides the following technical solution: a method for reliable continuation of robot multimodal data acquisition and conflict isolation after network outage, comprising: Step 1: The data acquisition end establishes an online session with the platform server and negotiates capabilities. The platform server returns a token, session identifier, session version, upload protocol version, manifest version, supported offline modes, and server time. The data acquisition end establishes a session that can be used for offline data acquisition only if the platform server's capabilities at least support the target upload protocol, manifest version, and cache lease mode. Step 2: The acquisition end requests the task device lease from the platform server. The platform server checks the task status, the task-dataset binding relationship, the current acquisition operator, the device identifier, and the active lease. Only one active device lease is allowed for a task at a time. After the lease is successfully obtained, an acquisition lease version is generated and the offline allowed deadline is calculated. The acquisition end writes the task snapshot, dataset identifier, device identifier, offline set universal unique identifier, acquisition lease version, offline deadline, server time, and local monotonic clock baseline atomic to the local status file, without saving online session credentials. Step 3: The acquisition terminal collects multimodal rounds of the robot in offline mode. Before the round starts, it writes the in-transit acquisition log. After the acquisition is completed, it writes the data file and metadata snapshot. The round is written to the versioned local upload queue only after the data file and metadata snapshot are written. Each round has a batch universal unique identifier, a round universal unique identifier, a local round index, acquisition time, acquisition lease version, mode fingerprint and a 256-bit digest of the configuration snapshot secure hash algorithm. Step 4: Generate a normalized list secure hash algorithm 256-bit digest for each round to be uploaded, and record the number of files and the total number of bytes; Step 5: After the network is restored, the acquisition terminal logs in again using a new online session, without reusing the local token, and calls the upload registration interface with the acquisition lease version and the current upload lease version. The platform server sequentially verifies the authentication token, device, session identifier, session version, task and dataset binding, activity lease, upload lease version, cache lease mode, round identity, and list fields. Step Six: After registration is successful, the uploaded file is written to a temporary object prefix with a random identifier. After the transmission is complete, the current session, active lease, uploaded lease version, and batch status are verified again. If the verification fails, the database write is rolled back, the temporary object is copied to the conflict isolation prefix, and the batch status is set to conflict. If the verification passes, the metadata snapshot is read, the target dataset metadata is locked, schema compatibility is checked, round metadata is merged and canonical round indexes are assigned, dataset entries are created, and the batch status is set to success. Step 7: Isolate unverifiable or conflicting data and retain them for manual processing; return the standard round index for successful batches and complete idempotency confirmation.
[0012] Furthermore, in step one, the data acquisition end sends the username, password, device identifier, and client version to the platform server; the platform server only establishes sessions with accounts that have data acquisition permissions; when the same data acquisition user or the same device logs in again, the platform server increments the session version to prevent late heartbeats and upload requests from the old session from re-occupying the current session; when the remote dictionary service session authority is unavailable, the platform server adopts a failure closure strategy and does not allow uploads when the session status cannot be confirmed.
[0013] Furthermore, in step two, when entering offline mode, the acquisition end checks the cache device identifier, consistent active lease status, trusted time baseline, and unresolved conflicts; the offline allowable deadline is only used to prevent new offline acquisitions and is not used as an upload credential for the platform server; the platform server implements the task lease through database row locks, distributed locks, or conditional updates with versioning, and simultaneously retains the version at the time of acquisition and the version at the time of upload.
[0014] Furthermore, in step three, after the data acquisition is completed, the columnar storage file, camera video, and metadata snapshot are written to the local robot learning data directory, and snapshots of the metadata file, task file, and round file are saved to the snapshot directory of that round. When the program crashes in a window where data has been saved but not yet entered into the queue, the recovery logic is started to identify and add the data to the round based on the in-transit acquisition log. The queue status includes pending upload, uploading, failed, conflict, and uploaded. The queue status is saved independently from the batch status on the platform server. Successful cache lease batches retain the queue and snapshot for auditing and idempotency judgment.
[0015] Further, in step four, generating a normalized list secure hash algorithm 256-bit digest includes: unifying all logical paths to forward slashes, rejecting absolute paths, drive letter paths, backslashes, parent directory symbols, and duplicate paths, and requiring paths to be located within the dataset root directory; sorting by the UTF-8 byte order of the logical paths; writing logical path bytes plus newline characters plus original file bytes plus newline characters in sequence, calculating the secure hash algorithm 256-bit digest for the entire byte stream, and obtaining the list secure hash algorithm 256-bit digest; submitting the number of files and the total number of bytes as independent fields simultaneously; using pattern fingerprints to describe the robot's learning data format, camera features, state, and action shapes; and configuring snapshot secure hash algorithm 256-bit digests to describe the acquisition configuration snapshots.
[0016] Furthermore, in step five, if the platform server determines that the same batch universally unique identifier or round universally unique identifier has been successfully registered, and the task, device, offline set, collection lease version, and manifest digest are all the same, it will directly return idempotent success; if the identities are the same but the manifest digests are different, or the same round belongs to different batches, it will be registered as a content conflict; the platform server requires that the declared number of files, total number of bytes, and 256-bit digest of the manifest secure hash algorithm be consistent with the actual fragmented uploaded files, and complete the registration before the first write to object storage.
[0017] Further, in step six, after registration is successful, the seven uploaded files are first written with a temporary object prefix containing a random identifier; after transmission is complete, the current session, active lease, uploaded lease version, and batch status are checked again; if the verification fails, the database is officially written back and rolled back, the temporary object is copied to the offline conflict isolation prefix, and the batch status is changed to conflict; if the verification passes, the metadata snapshot is read and the target dataset metadata is locked, schema compatibility is checked, round metadata is merged and an official sequence number is assigned, a dataset entry is created, the batch status is changed to success, and the canonical round index is returned; if there is no lease or the database fails, the official object and the temporary object are cleaned up; the conflict object is reserved for manual processing.
[0018] Furthermore, it also includes forced release and manual conflict handling: When an administrator forcibly releases a lease, the platform server locks the active lease, marks the unfinished batches under that lease as conflicted, and writes the release reason and operation audit; when manually handling conflicts, one can choose to append to the original dataset, import to a different target dataset, or reject; during the append or transfer process, the isolated object is copied first, and then the robot learning data metadata merging and dataset entry creation are re-executed. If it fails, the copied object is deleted and the original conflict record is maintained.
[0019] The Robot Multimodal Data Offline Reliable Resumption Acquisition and Conflict Isolation System is used to implement the robot multimodal data offline reliable resumption acquisition and conflict isolation method. It includes an offline status module for the acquisition end, an online session and capability negotiation module, a task equipment lease module, a local crash recovery log module, a local upload queue module, a content list summary module, a server-side upload registration module, a temporary object storage module, a dataset metadata merging module, a conflict isolation and manual processing module, and an operation audit module. The offline status module of the acquisition end is used to save task snapshots, dataset identifiers, device identifiers, universally unique identifiers for offline sets, acquisition lease versions, offline deadlines, server time and local monotonic clock baselines, but does not save directly reusable online session credentials; The online session and capability negotiation module is used to establish an online session with the platform server and negotiate the upload protocol, manifest version, and offline mode capabilities. The task equipment lease module is used to acquire, verify, and release task equipment leases, and to generate acquisition lease versions and upload lease versions. The local crash recovery log module is used to write in-transit collection logs and recover unlisted rounds after a crash; The local upload queue module is used to maintain a versioned upload queue and its status as pending upload, uploading, failed, conflicted, and uploaded. The Contents Inventory Summary module is used to generate a 256-bit digest of the inventory secure hash algorithm, the number of files, the total number of bytes, the pattern fingerprint, and a 256-bit digest of the configuration snapshot secure hash algorithm. The server-side upload registration module is used to verify and register the upload batch before the first write to object storage; The temporary object storage module is used to write uploaded files to a temporary object prefix and transfer them to a conflict isolation prefix in case of failure; The dataset metadata merging module is used to verify schema compatibility, merge round metadata, allocate canonical round indexes, and create dataset entries. The conflict isolation and manual handling module is used to retain conflict data and supports appending the original dataset, importing different target datasets, or rejecting them. The operation audit module is used to record lease release, conflict transfer, idempotency determination, and manual processing operations; The offline status module, online session and capability negotiation module, task device lease module, local crash recovery log module, local upload queue module, and content list summary module are deployed on the acquisition end. The upload registration module, temporary object storage module, dataset metadata merging module, conflict isolation and manual handling module, and operation audit module are deployed on the platform server. The platform server and the acquisition end are connected via a network, and the object storage and database are connected to the platform server respectively.
[0020] Furthermore, the offline status module of the acquisition end saves task snapshots, dataset identifiers, device identifiers, offline set universally unique identifiers, acquisition lease versions, offline deadlines, server time, and local monotonic clock baselines, but does not save passwords, tokens, or directly reusable online session credentials; each offline acquisition set generates an offline set universally unique identifier, and each round generates a batch universally unique identifier and a round universally unique identifier, and records the local round index, acquisition time, acquisition lease version, pattern fingerprint, and a 256-bit digest of the configuration snapshot secure hash algorithm; after reconnection, the platform server generates a new session identifier, session version, and uploaded lease version; the local round index is only used as the acquisition end sequence number, and the platform server returns the canonical round index after successful merging.
[0021] Compared with the prior art, the beneficial effects of the present invention are: 1. This invention ensures that completed rounds are not lost during short-term network interruptions without altering the robot's file format. The acquisition end uses a local versioned upload queue and in-transit acquisition logs. After the acquisition end restarts or the program crashes, it can identify and replenish missing rounds based on the in-transit acquisition logs, avoiding duplicate generation or unclaimed data and significantly improving the integrity and continuity of data acquisition in network outage scenarios.
[0022] 2. This invention effectively prevents old lease data from being incorrectly published after task transfer, device replacement, or session replacement by separately verifying the collected lease version and the uploaded lease version. During collection, the lease version proves the task, device, and lease conditions under which the data was generated; the uploaded lease version proves that the current reconnected session still has upload permissions. Together, these two constitute a two-stage verification, solving the problem in existing technologies where old queue data may be incorrectly written to new tasks or new devices.
[0023] 3. This invention achieves idempotency for duplicate requests through batch-wide unique identifiers, round-wide unique identifiers, and normalized manifest digests. When the same identity and the same task, device, offline set, acquisition lease version, and manifest digest are all identical, the server directly returns idempotency success; when the identities are the same but the manifest digests are different, or the same round belongs to different batches, it is registered as a content conflict. This avoids network retries leading to duplicate rounds, or the same identity corresponding to different content, improving the accuracy and traceability of data return.
[0024] 4. This invention prevents unauthorized files from entering the official dataset through a process of "registration → temporary object → secondary verification → formal release or isolation". Upload registration is completed before the first write to object storage. After transmission, the current session, active lease, uploaded lease version, and batch status are verified again. If verification fails, the formal database write is rolled back, and the temporary object is copied to the conflict isolation prefix, retaining conflict data for auditing and manual recovery. This solves the problem of leaving unowned objects when a file has been written to object storage but the database transaction fails.
[0025] 5. This invention avoids content drift caused by changes in shared metadata during queuing by using metadata snapshots, pattern fingerprints, and configuration snapshots. After collection, snapshots of metadata files, task files, and round files are saved to the snapshot directory of that round. The pattern fingerprint and configuration snapshot summary are used together for pre- and post-upload verification to ensure that the file content is consistent with that at the time of registration, while also improving the ability to locate problems.
[0026] 6. When an administrator forcibly releases a lease, the server locks the active lease, marks any unfinished batches under that lease as conflicting, and writes the release reason and operation audit. Furthermore, it does not cancel the online sessions of other tasks performed by the data collector. This solves the problem that when a lease expires during transmission, it cannot be safely deleted or directly published to the official dataset, achieving task-level isolation and session security.
[0027] 7. When manually handling conflicts, this invention allows users to choose to append to the original dataset, import to a different target dataset, or reject the conflict. During the appending or transferring process, the isolated object is first copied, and then the robot learning data metadata merging and dataset entry creation are re-executed. If the process fails, the copied object is deleted while the original conflict record is preserved, thus improving the recoverability of conflict data and the flexibility of manual intervention.
[0028] 8. The system of the present invention adopts a modular deployment of the acquisition end and the platform server. The acquisition end is responsible for offline state caching, crash recovery, local upload queue and list summary generation, while the platform server is responsible for upload registration, temporary object storage, metadata merging, conflict isolation and operation auditing. The responsibilities are clear and can be implemented on existing robot teaching, teleoperation and multimodal data acquisition platforms. The transformation cost is low and it is easy to promote. Attached Figure Description
[0029] Figure 1 This diagram illustrates a typical upload path and its associated risks in existing technologies. Figure 2 This is a module architecture diagram of the reliable data acquisition system after network outage according to the present invention; Figure 3 This is a flowchart of the reliable data acquisition and idempotent backhaul process of the present invention. Figure 4 This is a diagram showing the relationship between local batch status and conflict isolation in this invention. Figure 5 This is a schematic diagram of an alternative solution for reliable data acquisition during network outages according to the present invention. Detailed Implementation
[0030] The technical solution of the present invention will be further described below with reference to the accompanying drawings and specific embodiments. Example
[0031] This embodiment provides a robot multimodal data reliable continuation acquisition and conflict isolation system after network outage, including an acquisition terminal offline status module, an online session and capability negotiation module, a task equipment lease module, a local crash recovery log module, a local upload queue module, and a content list summary module deployed at the acquisition terminal, and a server-side upload registration module, a temporary object storage module, a dataset metadata merging module, a conflict isolation and manual handling module, and an operation audit module deployed at the platform server.
[0032] like Figure 2 As shown, the module architecture of the network outage trusted continuation acquisition system is divided into three parts according to function: robot and sensor, acquisition end (local trusted buffer) and platform end (service and storage).
[0033] The robot and sensor components include a robot controller, camera, force / pose / gripper sensors, a real-time acquisition process, local multimodal files, and device and task identities. The robot controller connects to the acquisition computer to output robot status and motion data; the camera connects to the acquisition computer to output RGB images, depth images, or video data; the force / pose / gripper sensors connect to the acquisition computer to output force signals, pose signals, and gripper opening / closing signals. The real-time acquisition process runs on the acquisition computer, writing the aforementioned multimodal data to local multimodal files. File formats include columnar storage files, video files, and JSON data. Device and task identities are used to identify the current acquisition device, task, and dataset affiliation.
[0034] The tasks of the data acquisition end include data acquisition state machine, session and capability negotiation, device task lease, in-transit logs and crash recovery, local upload queue and inventory summary.
[0035] The data acquisition state machine manages three states: online, offline, and recovered. In the online state, the acquisition end maintains a session with the platform; in the offline state, the acquisition end enters local caching and local acquisition mode; in the recovered state, the acquisition end re-establishes the session and performs upload registration and data return.
[0036] Session and capability negotiation is used to negotiate the session version, upload protocol version, manifest version, and offline mode capabilities with the platform, and to record the session version in a local state file.
[0037] Device task leases are used to acquire and verify acquisition lease versions. Only one active device lease is allowed for a task at a time. After a lease is successfully acquired, the acquisition end atomically writes the task snapshot, dataset information, device identifier, acquisition lease version, offline expiration time, and offline set universally unique identifier to the local status file.
[0038] The in-transit log and crash recovery are used to write to the in-transit log before the start of a round, recording the round's universally unique identifier and the batch's universally unique identifier; when the program crashes in a window where data has been saved but not yet entered into the queue, the recovery logic is started to identify and fill in the round based on the in-transit log, avoiding duplicate generation or unclaimed data.
[0039] The local upload queue and manifest digest are used to maintain the versioned upload queue, generate a 256-bit digest using a secure hash algorithm, and manage the queue status. Queue status includes at least four states: pending upload, uploading, failed, conflicted, and uploaded. The manifest digest is generated based on path normalization, UTF-8 sorting, and a normalized stream consisting of "path bytes plus newline characters plus original file bytes plus newline characters".
[0040] The platform includes upload registration and identity verification, temporary object prefixing, list / pattern / snapshot verification, metadata merging and idempotency determination, object storage, and dataset database / remote dictionary services.
[0041] Upload registration and identity verification are used to verify tokens, sessions, leases, and device identities, and complete the upload batch registration before the first write to object storage.
[0042] The temporary object prefix is used to receive uploaded files and write temporary object prefixes with random identifiers as an intermediate state for uploading.
[0043] The manifest / pattern / snapshot verification is used to verify the number of files, total bytes, manifest secure hash algorithm 256-bit digest, pattern fingerprint, and configuration snapshot digest.
[0044] Metadata merging and idempotency determination are used to read metadata snapshots, lock target dataset metadata, check schema compatibility, merge round metadata, and allocate canonical round indexes after secondary validation passes.
[0045] Object storage is used to store formal objects and conflict-isolated objects; the dataset database / remote dictionary service is used to store dataset metadata, task indexes, and session state.
[0046] The robot and sensor components send the collected data to the acquisition terminal. The acquisition terminal locally performs caching, in-transit log recording, upload queue management, and manifest summary generation. When the network is unavailable, the acquisition terminal enters the local queue and continues collecting data; once the network is restored, the acquisition terminal initiates an upload request to the platform. The platform first performs upload registration and identity verification, then writes a temporary object prefix, followed by manifest, schema, and snapshot verification; after successful verification, it performs metadata merging and idempotency determination, and finally writes the data to object storage and the dataset database / remote dictionary service.
[0047] The offline status module of the acquisition end is used to save the task snapshot, dataset identifier, device identifier, offline set universal unique identifier, acquisition lease version, offline deadline, server time and local monotonic clock baseline required for offline acquisition, but does not save passwords, tokens or directly reusable online session credentials.
[0048] Specifically, after successfully acquiring the task device lease, the acquisition terminal atomically writes the task snapshot, dataset identifier, device identifier, offline set universally unique identifier, acquisition lease version, offline expiration time, server time, and local monotonic clock baseline to the local status file. The local status file can be implemented using secure operating system storage, an encrypted database, or a controlled file directory. Atomic writing means writing all the above fields as a whole, avoiding inconsistencies in the offline status caused by some fields being written successfully while others fail.
[0049] The local monotonic clock baseline is used to estimate the elapsed local time when the network is unavailable, but it is not used as a credential for uploading to the platform server. The offline deadline is only used to prevent new offline collections; that is, when the estimated local time exceeds the offline deadline, the collection end will not start a new offline collection, but rounds that have already been collected and entered the local upload queue can still attempt to upload after the network is restored.
[0050] like Figure 3 As shown, the reliable data acquisition and idempotent data transmission process in this embodiment includes the following steps: S1, the acquisition end and the platform server log in online and negotiate capabilities; S2, the acquisition end obtains the task device lease and records the version; S3, the acquisition end performs a data acquisition round and writes the in-transit acquisition log first; S4, the acquisition end completes file writing to disk and generates a list summary; S5, when the network is unavailable, the acquisition end enters the local queue and continues data acquisition; S6, after the network is restored, the acquisition end creates a new session and registers the upload batch; S7, the platform server verifies the identity, session, lease, task, and list; if the identity or summary is inconsistent, a conflict record is generated and written to the offline conflict area without overwriting the formal object; if the identity and summary are consistent, proceed to S8; S8, when the identity and summary are the same, return idempotent success; S9, enter temporary prefix upload, verify the lease again, and then promote; S10, merge metadata and return the standard round index; S11, mark success and delete from the local queue; if there is an error, isolate it.
[0051] In step S1, the online session and capability negotiation module is used to establish an online session between the data acquisition end and the platform server and to negotiate capabilities.
[0052] Specifically, the data acquisition device sends its username, password, device identifier, and client version to the platform server. The platform server only establishes sessions with accounts that have data acquisition permissions and returns a token, session identifier, session version, upload protocol version, manifest version, supported offline modes, and server time.
[0053] The data acquisition client is only allowed to establish a session suitable for offline data acquisition if the platform server supports at least the target upload protocol, manifest version, and cache lease mode. If the platform server does not support cache lease mode, the data acquisition client will not enter offline acquisition mode, or will only acquire and upload data online.
[0054] When the same data collector or device logs in again, the platform server increments the session version, preventing late heartbeats and upload requests from the old session from reclaiming the current session. When the Redis session authority is unavailable, the platform server adopts a failure-close strategy, not allowing uploads when the session status cannot be confirmed.
[0055] In step S2, the task device lease module is used by the acquisition end to obtain the task device lease from the platform server.
[0056] Specifically, the platform server checks the task status, the binding relationship between the task and the dataset, the current data collector, the device identifier, and the active device lease. Only one active device lease is allowed for a task at a time. If an active device lease already exists for a task, the new lease request will be rejected, or the administrator must first forcibly release the original lease.
[0057] After a lease is successfully acquired, a collection lease version is generated, and the allowed offline deadline is calculated. The collection terminal atomically writes the task snapshot, dataset information, device identifier, collection lease version, offline deadline, and universally unique identifier of the offline set into the local status file.
[0058] When entering offline mode, the data acquisition device checks the cache device identifier, consistent active lease status, trusted time baseline, and unresolved conflicts. The offline allowable deadline is only used to prevent new offline data acquisition and is not used as a credential for uploading to the platform server.
[0059] The platform server implements task leases through database row locks, distributed locks, or versioned conditional updates, while simultaneously retaining both the version at the time of data collection and the version at the time of upload. The version at the time of data collection is used to prove under which lease the data was generated, while the version at the time of upload is used to prove that the current reconnected session still has upload permissions.
[0060] In step S3, the local crash recovery log module is used to write the in-transit acquisition log before the start of the round.
[0061] Specifically, before starting a round, an in-transit collection log is written, recording the batch universally unique identifier, the round universally unique identifier, the local round index, the collection lease version, and the collection time. The in-transit collection log can be implemented using a local file, an embedded database, or a log service, and the atomicity of the write is guaranteed.
[0062] After data acquisition, the columnar storage file, camera video, and metadata snapshot are written to the local robot learning data directory, and snapshots of the metadata file, task file, and episode file are saved to the snapshot directory of that episode. The metadata file, task file, and episode file correspond to meta / info.json, meta / tasks.json, and meta / episodes.json in the robot learning data directory, respectively.
[0063] Entries are only written to the versioned upload queue after the data files and metadata snapshots have been written. When a window where data has been saved but not yet queued crashes, the program initiates recovery logic to identify and add the data to the queue based on the in-transit acquisition logs, thus avoiding duplicate generation or unclaimed data.
[0064] The local upload queue module is used to maintain the versioned upload queue and its status.
[0065] Queue status includes at least four states: pending upload, uploading, failed, conflicted, and uploaded. Queue status is stored independently from the platform server's batch status. Successful cache lease batches retain queue and snapshot data for auditing and idempotency assessment.
[0066] When the network is unavailable, the acquisition device enters the local queue and continues acquisition, see step S5. The acquisition device can continuously acquire data for multiple rounds while offline, and after each round of acquisition is completed, the data is sequentially entered into the local upload queue. The local upload queue can be organized according to the offline set universal unique identifier, the batch universal unique identifier, and the local round index.
[0067] like Figure 4 As shown, the local batch state machine in this embodiment includes five states: "Not started", "Writing in progress", "Queued for return", "Temporary object being uploaded", and "Successful official object".
[0068] Under normal circumstances, a batch progresses from "Not Started" to "Writing in Transit". Before starting a collection round, the acquisition end writes to the in-transit log, recording the batch's universally unique identifier, the round's universally unique identifier, the local round index, the collection lease version, and the collection time. After collection is complete and data files and metadata snapshots are written, the batch enters the "Queued for Return" phase, and entries are written to the versioned upload queue.
[0069] When the program crashes during the "writing in transit" or "queuing for return" stage, a restart recovery branch is initiated: read the in-transit log, re-verify the file and manifest summary, and add the round to the local upload queue to avoid duplicate generation or ownerless data.
[0070] After network recovery, the batch enters the "Temporary Object Uploading" state. The uploaded file is first prefixed with a randomly assigned identifier. After transmission, the current session, active lease, upload lease version, and batch status are verified again. If the same identity and digest are present, an idempotent return is made, and the process directly enters the "Successful Official Object" state. If different digests or identities are present, the process enters the conflict isolation branch, without overwriting the official object.
[0071] After the secondary verification passes, the metadata snapshot is read, the target dataset metadata is locked, schema compatibility is checked, round metadata is merged and a canonical round index is assigned, a dataset entry is created, and the batch status is changed to "Successful Formal Object". Successful batches are marked and then deleted from the local queue; abnormal batches are either cleaned up or retained for manual handling.
[0072] Figure 4The document also shows that batch identifiers include offline set universally unique identifiers, batch universally unique identifiers, and round universally unique identifiers; versions include collection lease versions, upload lease versions, and session versions. The manifest digest uses a normalized relative path plus file byte content to generate a secure 256-bit hash digest; only when digests match are breakpoint resumed or idempotent returns allowed. By combining the state machine, identity identifiers, and manifest digests, duplicates, mismatches, and unfinished products are prevented from entering the final dataset.
[0073] In step S4, the content list summary module is used to generate a normalized list summary.
[0074] Specifically, all logical paths are standardized to forward slashes, absolute paths, drive letter paths, backslashes, parent directory symbols, and duplicate paths are rejected, and paths must be located within the dataset's root directory. Logical paths are sorted by their UTF-8 byte order. The logical path bytes are written sequentially as "logical path bytes plus newline character plus original file bytes plus newline character," and a 256-bit secure hash digest is calculated on the entire byte stream to obtain the manifest secure hash digest. The number of files and the total number of bytes are submitted as separate fields.
[0075] Pattern fingerprints describe the structure of robot learning data formats, camera features, states, and action shapes; a 256-bit digest of the configuration snapshot secure hash algorithm describes the acquisition configuration snapshot. Both pattern fingerprints and configuration snapshot digests are used for pre- and post-upload verification to prevent data drift caused by changes in shared metadata during queuing.
[0076] In this embodiment, the content consistency digest can employ a 256-bit secure hash algorithm, a 512-bit secure hash algorithm, a file-by-file digest tree, or other collision-resistant digest structures. A file-by-file digest tree involves calculating a digest for each file, then sorting the file digests by path before calculating the overall digest.
[0077] In steps S6 and S7, the server-side upload registration module is used to register and verify the uploaded batches after the network is restored.
[0078] Specifically, after the network is restored, the data acquisition terminal logs in again and obtains a new online session, without reusing the local token. The data acquisition terminal uses the cached data acquisition lease version and the current upload lease version to call the upload registration interface. The platform server sequentially verifies the authentication token, device, session identifier, session version, task and dataset binding, activity lease, upload lease version, cached lease mode, round identity, and list fields.
[0079] If the same batch-specific or round-specific identifier has been successfully registered, and the task, device, offline collection, acquisition lease version, and manifest summary are all the same, then idempotency success is returned directly, see step S8. If the identities are the same but the manifest summaries are different, or the same round belongs to different batches, then it is registered as a content conflict, and the conflict record is written to the offline conflict area, without overwriting the formal object.
[0080] The platform server requires that the declared number of files, total number of bytes, and 256-bit digest of the list secure hash algorithm be consistent with the actual uploaded fragments, and that the registration be completed before the first write to object storage.
[0081] In step S9, the temporary object storage module is used to write the uploaded file into a temporary object prefix with a random identifier.
[0082] Specifically, after registration is approved, the seven uploaded files are first written with a temporary object prefix containing a random identifier. These seven uploaded files can include robot status files, motion files, camera video files, force sensor files, pose sensor files, gripper sensor files, and metadata files. After transmission is complete, the current session, active lease, uploaded lease version, and batch status are checked again.
[0083] If the verification fails, the database write is rolled back, the temporary object is copied to the offline conflict isolation prefix, and the batch status is changed to conflict. If the verification passes, the process proceeds to the dataset metadata merging module.
[0084] Temporary objects can be written to a local controlled directory, uploaded via a temporary prefix of object storage, or in MinIO chunks, with no restrictions on the transmission method.
[0085] In step S10, the dataset metadata merging module is used to merge the metadata and officially release it after the secondary verification is passed.
[0086] Specifically, after successful verification, the metadata snapshot is read and the target dataset metadata is locked. Schema compatibility is checked, round metadata is merged and a formal sequence number is assigned. Dataset entries are created, the batch status is changed to success, and the canonical round index is returned.
[0087] The local round index serves only as the collection end sequence number; the platform server returns the standardized round index after successful merging. This establishes the identity mapping relationship between the offline set universally unique identifier, the batch universally unique identifier, the round universally unique identifier, the local round index, and the standardized round index.
[0088] In the event of a non-lease or database failure, formal and temporary objects undergo compensatory cleanup; conflicting objects are retained until manual handling.
[0089] In step S11, the conflict isolation and manual processing module is used to isolate data that cannot be verified or is conflicting and retain it for manual processing.
[0090] When an administrator forcibly releases a lease, the platform server locks the active lease, marks any unfinished batches under that lease as conflicting, and records the release reason and operation audit. Forcibly releasing a lease does not cancel the online sessions of other tasks performed by the data collector.
[0091] When manually handling conflicts, users can choose to append to the original dataset, import to a different target dataset, or reject the conflict. During the appending or transferring process, the isolated object is copied first, and then the robot learning data metadata merging and dataset entry creation are re-executed. If the process fails, the copied object is deleted while the original conflict record is preserved.
[0092] Conflicting data can be kept in an isolated bucket, isolated directory, or independent dataset. Manual handling actions can include appending to the original dataset, transferring to a new dataset, retrying, or rejecting.
[0093] The operation audit module is used to record lease releases, conflict transfers, idempotency determinations, and manual processing operations. Audit records may include operation time, operator, operation type, batch universally unique identifier, round universally unique identifier, offline set universally unique identifier, lease version collected, lease version uploaded, reason for release, and processing result.
[0094] The operations audit module can connect to a relational database or a separate audit store for subsequent problem localization, accountability, and data compliance checks.
[0095] Offline state files can be stored securely in the operating system, in an encrypted database, or in a controlled file directory; the specific persistent medium is not limited. Content consistency digests can use 256-bit secure hash algorithms, 512-bit secure hash algorithms, file-by-file digest trees, or other collision-resistant digest structures. Temporary objects can be written to a local controlled directory, stored as temporary prefixes, or uploaded in MinIO chunks; the transmission method is not limited. Task leases can be implemented using database row locks, distributed locks, or versioned conditional updates, but both the version at the time of acquisition and the version at the time of upload must be retained. Conflicting data can be stored in an isolated bucket, isolated directory, or independent dataset; manual handling actions can include appending to the original dataset, transferring to a new dataset, retrying, or rejecting. Offline collections can be created at the task, dataset, device, or user binding granularity; round identities can use a universally unique identifier, a combination of device serial number and locally incrementing sequence number, or other immutable identifiers.
[0096] Alternative upload implementations can include local queue-based verification before upload, object storage fragmented upload, content summary tree hierarchical verification, and manual republishing in isolated buckets. Different implementation paths can be replaced with the original storage or verification methods, but they all retain batch identity, lease version, and idempotency determination.
[0097] like Figure 5 As shown, different implementation paths can replace the original storage or verification methods, but they all retain batch identity, lease version, and idempotency determination.
[0098] Specifically, the alternative upload implementation includes four interoperable implementation examples: A. Local queue, encrypted before upload. The acquisition end first encrypts the acquired files in the local queue before performing upload registration and writing temporary objects.
[0099] B. Object storage, chunked upload. Temporary objects are written with a temporary object prefix containing a random identifier through the object storage chunked upload interface, and a second verification is performed after transmission.
[0100] C. Content Summary Tree, Hierarchical Verification. A file-by-file summary tree or other collision-resistant summary structure is used to perform hierarchical verification of logical paths, file bytes, and metadata snapshots.
[0101] D. Isolation buckets, manually redistributed. Conflicting data is retained in isolation buckets, isolation directories, or independent datasets, and users can manually choose to append it to the original dataset, transfer it to a new dataset, retry, or reject it.
[0102] The common constraints of A through D above are: batch identity, device and task attribution, lease version, and idempotency determination. That is, regardless of the alternative implementation, the universally unique identifiers for offline sets, batches, and rounds must be retained; the lease versions for collection and upload must be verified; and the determination rules for idempotent return for the same identity and digest, and isolation of different digests or identity conflicts must be implemented.
[0103] The system sets a unified exception exit point: cached or temporary objects complete verification before uploading; successful verification results in official release, while failed verification leads to isolation and manual handling. Examples A through D are interoperable implementations that do not alter the identity determination and exception response boundaries for the same batch. The above alternatives can be used individually or in combination.
[0104] The above specific embodiments are merely several preferred embodiments of the present invention. Based on the technical solutions of the present invention and the relevant teachings of the above embodiments, those skilled in the art can make various alternative improvements and combinations to the above specific embodiments.
Claims
1. A method for reliable continuation of multimodal data acquisition and conflict isolation in robots after network outage, characterized in that: include: Step 1: The data acquisition end establishes an online session with the platform server and negotiates capabilities. The platform server returns a token, session identifier, session version, upload protocol version, manifest version, supported offline modes, and server time. The data acquisition end establishes a session that can be used for offline data acquisition only if the platform server's capabilities at least support the target upload protocol, manifest version, and cache lease mode. Step 2: The acquisition end requests the task device lease from the platform server. The platform server checks the task status, the task-dataset binding relationship, the current acquisition operator, the device identifier, and the active lease. Only one active device lease is allowed for a task at a time. After the lease is successfully obtained, an acquisition lease version is generated and the offline allowed deadline is calculated. The acquisition end writes the task snapshot, dataset identifier, device identifier, offline set universal unique identifier, acquisition lease version, offline deadline, server time, and local monotonic clock baseline atomic to the local status file, without saving online session credentials. Step 3: The acquisition terminal collects multimodal rounds of the robot in offline mode. Before the round starts, it writes the in-transit acquisition log. After the acquisition is completed, it writes the data file and metadata snapshot. The round is written to the versioned local upload queue only after the data file and metadata snapshot are written. Each round has a batch universal unique identifier, a round universal unique identifier, a local round index, acquisition time, acquisition lease version, mode fingerprint and a 256-bit digest of the configuration snapshot secure hash algorithm. Step 4: Generate a normalized list secure hash algorithm 256-bit digest for each round to be uploaded, and record the number of files and the total number of bytes; Step 5: After the network is restored, the acquisition terminal logs in again using a new online session, without reusing the local token, and calls the upload registration interface with the acquisition lease version and the current upload lease version. The platform server sequentially verifies the authentication token, device, session identifier, session version, task and dataset binding, activity lease, upload lease version, cache lease mode, round identity, and list fields. Step Six: After registration is approved, the uploaded file will be written to a temporary object prefix with a random identifier. After the transmission is completed, the current session, active lease, uploaded lease version and batch status will be verified again. If the verification fails, the database write is rolled back, the temporary object is copied to the conflict isolation prefix, and the batch status is set to conflict. If the verification passes, read the metadata snapshot, lock the target dataset metadata, check schema compatibility, merge round metadata and assign canonical round indexes, create dataset entries, and set the batch status to success. Step 7: Isolate unverifiable or conflicting data and retain them for manual processing; return the standard round index for successful batches and complete idempotency confirmation.
2. The method for reliable continuation of robot multimodal data acquisition and conflict isolation after network disconnection as described in claim 1, characterized in that: In step one, the data acquisition end sends the username, password, device identifier, and client version to the platform server. The platform server only establishes sessions with accounts that have data acquisition permissions. When the same data acquisition user or the same device logs in again, the platform server increments the session version to prevent late heartbeats and upload requests from the old session from reusing the current session. When the remote dictionary service session authority is unavailable, the platform server adopts a failure closure strategy and does not allow uploads when the session status cannot be confirmed.
3. The method for reliable continuation of robot multimodal data acquisition and conflict isolation after network disconnection as described in claim 1, characterized in that: In step two, when entering offline mode, the acquisition end checks the cache device identifier, consistent active lease status, trusted time baseline, and unresolved conflicts; the offline allowable deadline is only used to prevent new offline acquisition and is not used as a certificate for the platform server to upload data. The platform server implements task leases through database row locks, distributed locks, or conditional updates with versioning, while simultaneously retaining the version at the time of collection and the version at the time of upload.
4. The method for reliable continuation of robot multimodal data acquisition and conflict isolation after network disconnection as described in claim 1, characterized in that: In step three, after the data collection is completed, the columnar storage file, camera video, and metadata snapshot are written to the local robot learning data directory, and snapshots of the metadata file, task file, and round file are saved to the snapshot directory of that round. When the program crashes in a window where data has been saved but not yet entered into the queue, the recovery logic is started to identify and add the data to the round based on the data collection log in progress. The queue status includes pending upload, uploading, failed, conflict, and uploaded. The queue status is saved independently from the batch status on the platform server. Successful cache lease batches retain the queue and snapshot for auditing and idempotency judgment.
5. The method for reliable continuation of robot multimodal data acquisition and conflict isolation after network disconnection according to claim 1, characterized in that, Step four, generating a normalized list secure hash algorithm 256-bit digest, includes: unifying all logical paths to forward slashes, rejecting absolute paths, drive letter paths, backslashes, parent directory symbols, and duplicate paths, and requiring paths to be located within the dataset root directory; sorting logical paths by UTF-8 byte order; writing logical path bytes plus newline characters plus original file bytes plus newline characters in sequence, calculating the secure hash algorithm 256-bit digest for the entire byte stream, and obtaining the list secure hash algorithm 256-bit digest; submitting the number of files and the total number of bytes as independent fields; using pattern fingerprints to describe the robot's learning data format, camera features, state, and action shapes; and configuring snapshot secure hash algorithm 256-bit digests to describe the acquisition configuration snapshots.
6. The method for reliable continuation of robot multimodal data acquisition and conflict isolation after network disconnection according to claim 1, characterized in that: In step five, if the platform server determines that the same batch universally unique identifier or round universally unique identifier has been successfully registered, and the task, device, offline collection, collection lease version, and manifest digest are all the same, it will directly return idempotent success; if the identities are the same but the manifest digests are different, or the same round belongs to different batches, it will be registered as a content conflict; the platform server requires that the declared number of files, total number of bytes, and 256-bit digest of the manifest secure hash algorithm be consistent with the actual fragmented uploaded files, and complete the registration before the first write to object storage.
7. The method for reliable continuation of robot multimodal data acquisition and conflict isolation after network disconnection according to claim 1, characterized in that: In step six, after registration is approved, the seven uploaded files are first written with a temporary object prefix containing a random identifier; after the transmission is completed, the current session, active lease, uploaded lease version, and batch status are checked again. If the verification fails, the database write is rolled back, the temporary object is copied to the offline conflict isolation prefix, and the batch status is changed to conflict. If the verification passes, read the metadata snapshot and lock the target dataset metadata, check schema compatibility, merge round metadata and assign official sequence numbers, create dataset entries, change the batch status to success, and return the canonical round index; if there is no lease or database failure, official objects and temporary objects are cleaned up; conflicting objects are reserved for manual handling.
8. The method for reliable continuation of robot multimodal data acquisition and conflict isolation after network disconnection according to claim 1, characterized in that, It also includes forced release and manual conflict handling: When an administrator forcibly releases a lease, the platform server locks the active lease, marks the unfinished batches under that lease as conflicted, and writes the release reason and operation audit; When manually handling conflicts, you can choose to append to the original dataset, import a different target dataset, or reject the conflict. During the appending or transferring process, first copy the isolated object, then re-execute the robot learning data metadata merging and dataset entry creation. If the process fails, delete the copied object and keep the original conflict record.
9. A robot multimodal data reliable continuation acquisition and conflict isolation system after network disconnection, used to execute the robot multimodal data reliable continuation acquisition and conflict isolation method according to any one of claims 1-8, characterized in that: It includes a data acquisition terminal offline status module, an online session and capability negotiation module, a task device lease module, a local crash recovery log module, a local upload queue module, a content list summary module, a server-side upload registration module, a temporary object storage module, a dataset metadata merging module, a conflict isolation and manual handling module, and an operation audit module; The offline status module of the acquisition end is used to save task snapshots, dataset identifiers, device identifiers, universally unique identifiers for offline sets, acquisition lease versions, offline deadlines, server time and local monotonic clock baselines, but does not save directly reusable online session credentials; The online session and capability negotiation module is used to establish an online session with the platform server and negotiate the upload protocol, manifest version, and offline mode capabilities. The task equipment lease module is used to acquire, verify, and release task equipment leases, and to generate acquisition lease versions and upload lease versions. The local crash recovery log module is used to write in-transit collection logs and recover unlisted rounds after a crash; The local upload queue module is used to maintain a versioned upload queue and its status as pending upload, uploading, failed, conflicted, and uploaded. The Contents Inventory Summary module is used to generate a 256-bit digest of the inventory secure hash algorithm, the number of files, the total number of bytes, the pattern fingerprint, and a 256-bit digest of the configuration snapshot secure hash algorithm. The server-side upload registration module is used to verify and register the upload batch before the first write to object storage; The temporary object storage module is used to write uploaded files to a temporary object prefix and transfer them to a conflict isolation prefix in case of failure; The dataset metadata merging module is used to verify schema compatibility, merge round metadata, allocate canonical round indexes, and create dataset entries. The conflict isolation and manual handling module is used to retain conflict data and supports appending the original dataset, importing different target datasets, or rejecting them. The operation audit module is used to record lease release, conflict transfer, idempotency determination, and manual processing operations; The offline status module, online session and capability negotiation module, task device lease module, local crash recovery log module, local upload queue module, and content list summary module are deployed on the acquisition end. The upload registration module, temporary object storage module, dataset metadata merging module, conflict isolation and manual handling module, and operation audit module are deployed on the platform server. The platform server and the acquisition end are connected via a network, and the object storage and database are connected to the platform server respectively.
10. The robot multimodal data reliable continuation acquisition and conflict isolation system after network disconnection according to claim 9, characterized in that: The offline status module of the acquisition end saves task snapshots, dataset identifiers, device identifiers, offline set universally unique identifiers, acquisition lease versions, offline deadlines, server time, and local monotonic clock baselines, but does not save passwords, tokens, or directly reusable online session credentials. Each offline acquisition set generates an offline set universally unique identifier, and each round generates a batch universally unique identifier and a round universally unique identifier, and records the local round index, acquisition time, acquisition lease version, pattern fingerprint, and a 256-bit digest of the configuration snapshot secure hash algorithm. After reconnection, the platform server generates a new session identifier, session version, and uploaded lease version. The local round index is only used as the acquisition end sequence number, and the platform server returns the canonical round index after successful merging.
