Machine learning based multi-database collaborative registration method, system and storage medium

By using machine learning for dynamic scheduling and blockchain auditing, the problem of static scheduling strategies and loose audit traceability in multi-database collaborative registration transactions is solved, achieving intelligent scheduling, efficient recovery, and reliable auditing, which is suitable for complex multi-database environments.

CN123138336APending Publication Date: 2026-11-20CHINA UNITED NETWORK COMM GRP CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611043524.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-14
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, the scheduling strategies for multi-database collaborative registration transactions are static and the audit traceability is not tight, making it difficult to achieve efficient and reliable cross-heterogeneous database collaborative registration.

Method used

A machine learning-based approach is used to predict the probability of transaction execution failure, dynamically adjust the order of instruction execution and parallel strategies, construct a Merkle tree structure for transaction logs, generate an audit chain and upload it to the blockchain for evidence storage, thereby achieving intelligent scheduling and full-chain traceability.

Benefits of technology

It improves the success rate and efficiency of transaction execution, enhances system transparency and credibility, and improves the reliability and consistency of collaborative work in complex IT environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138336A_ABST
    Figure CN123138336A_ABST
Patent Text Reader

Abstract

This invention relates to a multi-database collaborative registration method, system, and storage medium based on machine learning. The method includes: responding to collaborative registration requests from multiple target databases; generating an instruction sequence containing multiple instructions based on a machine learning prediction model and the state data of each target database, and determining execution priorities and parallel groups; concurrently executing the instruction sequence during transaction execution; collecting all operation records generated during transaction execution and organizing the operation records into a transaction log, using a Merkle tree structure to organize the transaction log to generate an audit chain; and uploading the audit chain to a blockchain network for evidence storage to form an immutable traceability record. This invention solves the technical problems of static scheduling strategies and weak audit traceability in existing database collaborative registration transactions, achieving intelligent scheduling, efficient recovery, and reliable auditing of cross-heterogeneous database collaborative registration transactions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of distributed computing and database technology, specifically to a multi-database collaborative registration method, system, and storage medium based on machine learning. Background Technology

[0002] Multi-database collaborative registration systems are a typical application of distributed transactions across resource managers, widely used in scenarios such as unified user systems on the Internet, integrated identity registration in government affairs, and collaborative writing of master data across multiple enterprise systems. These scenarios require atomic writes to multiple heterogeneous databases within a single transaction, while ensuring data consistency, traceability, high concurrency, and low latency.

[0003] Existing technical solutions are mostly discrete. First, solutions based on distributed transaction coordination (such as two-phase commit) can guarantee atomicity, but they do not adequately consider scheduling efficiency and fault recovery costs. Second, solutions for rollback compensation focus on reverse operation recovery after failure, but they usually use fixed rules (such as reverse rollback), making it difficult to dynamically optimize based on instruction rollback costs and real-time system load. Third, auditing solutions based on blockchain or Merkle trees improve the credible storage of audit data, but they usually focus on putting "results" or "tags" on the chain, failing to tightly couple with the entire lifecycle of transaction execution (including each atomic operation and its preceding and following states, instruction dependencies, and rollback process), resulting in insufficient audit granularity and difficulty in achieving fine-grained transaction chain tracing. Summary of the Invention

[0004] To address the technical problems in existing technologies, such as static scheduling strategies and weak audit traceability in database collaborative registration transactions, this invention provides a multi-database collaborative registration method, system, and storage medium based on machine learning.

[0005] The technical solution of the present invention to solve the above-mentioned technical problems is as follows: Multi-database collaborative registration methods based on machine learning include: In response to collaborative registration requests from multiple target databases, an instruction sequence containing multiple instructions is generated based on a machine learning prediction model and the status data of each target database, and the execution priority and parallel group of each instruction in the instruction sequence are determined. During transaction execution, the instruction sequence is executed concurrently according to the determined priority and parallel group; Collect all operation records generated during the execution of a transaction, organize the operation records into a transaction log, and organize the transaction log into a Merkle tree structure to generate an audit chain; The audit chain is uploaded to a blockchain network for evidence storage, thereby forming an immutable traceability record.

[0006] The beneficial effects of this invention are as follows: It utilizes machine learning models to predict the risks of transaction execution results and dynamically adjusts the execution order and parallel strategies of instructions accordingly, improving the overall success rate and efficiency of transaction execution and enhancing the level of intelligent scheduling; it constructs a chain-like audit structure deeply integrated with the transaction execution process, realizing immutable end-to-end traceability from atomic operations to global transactions, greatly enhancing the transparency and credibility of the system; providing comprehensive audit traceability capabilities; and it fully considers the differences between multi-source heterogeneous databases, improving the reliability and consistency of collaborative work in complex IT environments through a unified intelligent scheduling framework, thereby enhancing adaptability to heterogeneous environments. This invention solves the technical problems of static scheduling strategies and weak audit traceability in existing database collaborative registration transactions, realizing intelligent scheduling, efficient recovery, and reliable auditing of cross-heterogeneous database collaborative registration transactions.

[0007] Based on the above technical solution, the present invention can be further improved as follows.

[0008] Furthermore, based on the machine learning prediction model and the state data of each target database, an instruction sequence containing multiple instructions is generated, and the execution priority and parallel group of each instruction in the instruction sequence are determined, specifically including: Using the machine learning prediction model, the probability of execution failure for each instruction is predicted based on real-time status data from each target database; wherein, the status data includes the proportion of failed transactions, average response time, number of transaction conflict detections, network jitter index, and resource availability; Based on the predicted execution failure probability and the data dependencies between instructions, an instruction sequence containing multiple instructions is generated, and the execution priority and parallel group of each instruction in the instruction sequence are determined.

[0009] Furthermore, the method also includes fault handling steps during the concurrent execution of the instruction sequence: If any instruction fails to execute or times out during concurrent execution, the instructions that have not yet been executed are immediately aborted. Based on the recommendations of the machine learning prediction model and the rollback cost of each instruction, the rollback order is adjusted so that the rollback operation is triggered according to the adjusted rollback order.

[0010] Furthermore, the operation log includes not only logs of successfully executed instructions, but also complete records of rollback operations.

[0011] Furthermore, the transaction logs are organized using a Merkle tree structure to generate an audit chain, specifically including: For each operation, a corresponding log node is generated; wherein, the log node includes at least the transaction ID, operation type, target database identifier, execution result, data snapshot hash before operation, data result hash after operation, timestamp, digital signature, preceding instruction hash, and subsequent instruction hash; All log nodes of the same transaction are linked according to the execution sequence or logical relationship to form a chain-like transaction node structure, thereby generating the audit chain; Calculate the root hash of the audit chain, which serves as the unique identifier of the audit chain for transaction execution.

[0012] Furthermore, the audit chain is uploaded to the blockchain network for evidence storage, specifically including: verifying the root hash of the audit chain through a smart contract deployed on the blockchain network, and writing the root hash of the audit chain into the blockchain network for permanent, distributed storage.

[0013] Furthermore, the method also includes a continuous learning step: feeding the final result data of each transaction execution as training data into the machine learning prediction model for incremental training and optimization; wherein the final result data includes execution time, resource consumption, and anomaly type.

[0014] Furthermore, it also includes: when all instructions in the transaction execution are successfully executed, generating a globally consistent snapshot, and incorporating the summary information of the globally consistent snapshot as part of the operation record into the audit chain.

[0015] To address the aforementioned technical problems, this invention also provides a multi-database collaborative registration system based on machine learning, the specific technical content of which is as follows: A multi-database collaborative registration system based on machine learning includes: The central control module is configured to respond to collaborative registration requests from multiple target databases, generate an instruction sequence containing multiple instructions based on a machine learning prediction model and the status data of each target database, and determine the execution priority and parallel group of each instruction in the instruction sequence. An atomic execution controller is configured to concurrently execute the sequence of instructions according to a determined priority and parallel group during transaction execution; The blockchain audit subsystem is configured to collect all operation records generated during the execution of transactions, organize the operation records into transaction logs, and use a Merkle tree structure to organize the transaction logs to generate an audit chain; the audit chain is then uploaded to the blockchain network for evidence storage to form an immutable traceability record.

[0016] To address the aforementioned technical problems, the present invention also provides a storage medium, the specific technical content of which is as follows: A storage medium storing a computer program or computer instructions, which, when executed by a computer's processor, implement the steps of the above-described machine learning-based multi-database collaborative registration method. Attached Figure Description

[0017] Figure 1 This is a flowchart of a multi-database collaborative registration method based on machine learning in an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of a multi-database collaborative registration system based on machine learning in an embodiment of the present invention; Figure 3 This is an execution flowchart of the multi-database collaborative registration system based on machine learning in an embodiment of the present invention. Detailed Implementation

[0018] The principles and features of the present invention are described below with reference to the accompanying drawings. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.

[0019] Example 1 like Figure 1 As shown, this embodiment provides a multi-database collaborative registration method based on machine learning, including: S1. In response to the collaborative registration request of multiple target databases, based on the machine learning prediction model and the status data of each target database, generate an instruction sequence containing multiple instructions, and determine the execution priority and parallel group of each instruction in the instruction sequence.

[0020] Based on machine learning prediction models and state data from various target databases, an instruction sequence containing multiple instructions is generated, and the execution priority and parallel group of each instruction in the instruction sequence are determined, specifically including: Using the machine learning prediction model, the probability of execution failure for each instruction is predicted based on real-time status data from each target database; wherein, the status data includes the proportion of failed transactions, average response time, number of transaction conflict detections, network jitter index, and resource availability; Based on the predicted execution failure probability and the data dependencies between instructions, an instruction sequence containing multiple instructions is generated, and the execution priority and parallel group of each instruction in the instruction sequence are determined.

[0021] Request Reception and Parsing: The central control module receives collaborative registration requests initiated by clients. These requests typically contain a set of atomic operations that need to be performed in different target databases (e.g., the main user database, the permission management database, the audit log database, third-party system databases, etc.).

[0022] Real-time status acquisition: The system's built-in status collector (or probe) will synchronously acquire the current performance and health status data of each target database in real time. This status data includes at least: the proportion of database failed transactions (reflecting recent database stability), average response time (ART), number of transaction conflict detections (reflecting lock contention), network jitter and latency indicators, and resource availability (such as CPU, memory, and connection pool utilization).

[0023] Machine learning model analysis and prediction: The collected real-time status data, combined with historical transaction success or failure logs, is input into a pre-trained machine learning prediction model (e.g., a hybrid model integrating time series prediction and dependency graph convolutional neural networks). This model will analyze each potential atomic operation corresponding to the current registration request (such as "insert a user table record into database A", "assign a role ID into database B", etc.) and predict its failure probability in the current system environment.

[0024] Dynamic instruction sequence generation and strategy: Based on the model's predicted failure probability of each instruction and combined with the data dependencies between operations analyzed from registration requests, the optimal instruction execution sequence is dynamically generated. Simultaneously, low-risk instruction groups that are independent of each other and do not conflict with resources are grouped into parallel execution groups. Execution priorities are assigned to each instruction or instruction group based on failure probability, expected execution time, and resource requirements.

[0025] The machine learning prediction model employs a hybrid architecture that integrates a temporal feature extractor and a graph neural network. Through supervised learning and online incremental training on historical execution logs of each database node, it achieves multi-dimensional risk assessment of transaction execution results. Model input features include the proportion of recently failed transactions (FPR), average response time (ART), number of transaction conflict detections (TCL), network jitter (NJ), CPU / memory resource availability (RA), table lock wait time (LWT), and transaction type and database schema compatibility features.

[0026] The output includes the estimated failure probability and recommended execution sequence for each instruction, and supports retry strategies or alternative execution paths for high-risk operations.

[0027] Example of dynamic instruction generation (using the supercomputing platform database, third-party database, and adapter database as examples): Instruction A (Supercomputing Base Platform Database): def write_platform_user(user_data): Write user basic information to the user table insert_user_table(user_id, name, ...) Create user account records create_account(account_id, user_id, ...) Add the account to the resource whitelist; the initial status is ACTIVE. add_to_whitelist(account_id, status=ACTIVE) Instruction B (Third-party database): def write_third_party(user_data): Binding users and roles in third-party services bind_role(user_id, role=default_role) Record user source and registration context log_user_origin(user_id, source="platform") Instruction C (Adapter Database): def write_adapter(user_data): Record the mapping relationship between user ID and account ID create_mapping(user_id, account_id, db_type="platform") Generate mapping check codes to ensure data consistency generate_mapping_checksum(user_id, account_id).

[0028] S2. During transaction execution, the instruction sequence is executed concurrently according to the determined priority and parallel group.

[0029] It also includes fault handling steps during the concurrent execution of the instruction sequence: If any instruction fails to execute or times out during concurrent execution, the instructions that have not yet been executed are immediately aborted. Based on the recommendations of the machine learning prediction model and the rollback cost of each instruction, the rollback order is adjusted so that the rollback operation is triggered according to the adjusted rollback order.

[0030] The operation log includes not only logs of successfully executed instructions, but also complete records of rollback operations.

[0031] Concurrent Scheduling and Execution: The atomic execution controller receives the instruction sequence generated in step S1, which includes priority and parallel group labels. Based on a preset concurrency control strategy, the instructions are distributed to the corresponding database agent executors for concurrent execution. The system monitors the execution status of each instruction throughout the process (e.g., "Executing", "Success", "Failure", "Timeout").

[0032] Fault detection and interruption: If any instruction fails to execute or times out, the atomic execution controller will immediately send an abort command to other instructions in the same transaction that are still executing or have not yet started executing.

[0033] Model-driven optimized rollback: For successfully executed instructions, the system initiates a rollback process. Unlike traditional reverse rollback, the system dynamically adjusts and generates an optimized rollback order based on the current state of each database, recommendations from the machine learning model, and the rollback cost of each successful instruction (such as rollback time, potential resource contention, and difficulty in restoring data consistency). Then, reverse compensation operations are triggered according to this optimized order to restore the data state with minimal overhead and data impact. Simultaneously, complete logs of all rollback operations are recorded.

[0034] S3. Collect all operation records generated during the execution of the transaction, organize the operation records into a transaction log, and organize the transaction log into a Merkle tree structure to generate an audit chain.

[0035] The transaction logs are organized using a Merkle tree structure to generate an audit chain, specifically including: For each operation, a corresponding log node is generated; wherein, the log node includes at least the transaction ID, operation type, target database identifier, execution result, data snapshot hash before operation, data result hash after operation, timestamp, digital signature, preceding instruction hash, and subsequent instruction hash; All log nodes of the same transaction are linked according to the execution sequence or logical relationship to form a chain-like transaction node structure, thereby generating the audit chain; Calculate the root hash of the audit chain, which serves as the unique identifier of the audit chain for transaction execution.

[0036] Operation log collection: During the execution and rollback of step S2, the system collects all operation logs. These logs include not only successfully executed commands but also any rollback operations performed in step S2 due to fault handling, ensuring log integrity.

[0037] The transaction log is structured as a Merkle tree: for each atomic operation, the system generates a structured log node. The core content of the log node includes: Identification information: Transaction ID, instruction unique identifier, target database identifier.

[0038] Operations and Status: Operation type (INSERT / UPDATE / DELETE / COMPENSATE, etc.), execution result (success / failure / rollback completed), timestamp.

[0039] Data integrity credentials: snapshot hash of relevant data before operation execution, and hash of the final data state after operation execution.

[0040] Linked pointers: To enhance traceability, nodes should also contain the hash value of the previous operation log node (similar to pointing to a previous block), forming a link relationship. A digital signature is calculated on the node content to ensure the authenticity of the source.

[0041] Generate the audit chain and root hash: Link all log nodes generated by the same transaction according to their actual execution order (including execution or rollback) to form a logical chain structure, i.e., the audit chain. Using the Merkle tree algorithm, recursively hash all log nodes in this chain to generate a unique and irreversible root hash. This root hash is the "digital fingerprint" of all operations throughout the entire transaction's lifecycle, serving as the transaction's "identity card."

[0042] Suppose the system receives a user registration request: {user_id:"U123", name:"Test", default_role:"user"}, and its execution strategy is shown in Table 1.

[0043] Table 1 User Registration Request Execution Strategy During execution, the atomic execution controller monitors the status of each instruction in real time. If all instructions are successful, user registration takes effect immediately, and the successful transaction status is recorded in the audit chain. If a third-party database write fails (e.g., due to a non-existent role or permission conflict), the system immediately terminates subsequent instructions and triggers a rollback operation according to a dynamic rollback sequence (e.g., from the adapter to the supercomputing platform). All rollback operations are recorded in the audit chain to ensure eventual data consistency and auditable operations.

[0044] To ensure high scalability and adaptability, the system can flexibly integrate with more types of databases (such as NewSQL, time-series databases, file databases, etc.) and business rules according to actual business needs. For example, adding a log database or risk control database only requires extending the instruction generation logic in the central control module, introducing the state features of the new database into the machine learning model, and the audit chain automatically adapts and records the new instruction set and its execution status.

[0045] Furthermore, the audit chain can be configured to interface with external blockchain systems (such as Hyperledger Fabric and Ethereum Enterprise Edition), enabling on-chain storage of audit evidence through cross-chain protocols and smart contracts, thereby further enhancing data credibility and audit integrity. The system also supports multi-active deployment and off-site disaster recovery, achieving cross-datacenter transaction synchronization and fault recovery through the audit chain's distributed consensus mechanism.

[0046] This invention utilizes a transaction scheduling strategy optimized by machine learning and a blockchain-based auditing mechanism to ensure consistency of collaborative writes across multiple databases, while significantly reducing rollback overhead, improving system throughput, resource utilization, and robustness. It also provides complete transaction traceability and auditing capabilities, making it suitable for distributed registration scenarios with strict requirements for reliability, auditability, and system performance, such as financial account opening, government online services, and cross-cloud resource scheduling.

[0047] S4. Upload the audit chain to the blockchain network for evidence storage to form an immutable traceability record.

[0048] Uploading the audit chain to the blockchain network for evidence preservation specifically includes: verifying the root hash of the audit chain through a smart contract deployed on the blockchain network, and writing the root hash of the audit chain into the blockchain network for permanent, distributed storage.

[0049] The method further includes a continuous learning step: feeding the final result data of each transaction execution as training data into the machine learning prediction model for incremental training and optimization; wherein the final result data includes execution time, resource consumption, and exception type.

[0050] It also includes: when all instructions in the transaction execution are executed successfully, generating a globally consistent snapshot, and incorporating the summary information of the globally consistent snapshot as part of the operation record into the audit chain.

[0051] Blockchain-based evidence preservation: By invoking a smart contract deployed on the blockchain network, the audit chain root hash calculated in step S3 is verified and submitted to the chain. The smart contract packages the root hash along with key information from this registration request (such as user identifier and application type) and writes them together into a new block, thereby achieving permanent, distributed, and tamper-proof data storage and completing the evidence preservation.

[0052] Exception Success Handling: As an enhancement, when all instructions for a registered transaction are executed successfully, the system can generate a global data snapshot or summary. This snapshot's summary information is also encapsulated as an operation record and included in the final audit chain.

[0053] Model Feedback and Continuous Learning: The entire method incorporates a closed-loop feedback mechanism. After each transaction is completed, whether successfully or after a rollback is triggered, the execution result is used as new training data. The data includes: Execution results: total execution time, system resource consumption (CPU, I / O, network).

[0054] Model validation: Whether the actual execution results are consistent with the prediction, and the types of anomalies encountered (such as network interruption, deadlock, timeout). This data is fed back to the machine learning prediction model in step S1 for online incremental training and optimization, enabling it to continuously adapt to changing database environments and load patterns, and improve the accuracy of the next scheduling decision.

[0055] By combining machine learning intelligent scheduling in step S1, adaptive optimization rollback in step S2, full-link chain auditing in step S3, and blockchain notarization and self-evolution in step S4, the method described in this embodiment significantly improves the overall success rate of complex multi-database registration transactions, reduces the cost of fault recovery, and constructs a highly reliable and accurately traceable post-audit system.

[0056] Compared with the prior art, the present invention has the following advantages: By introducing an optimized rollback order recommended by machine learning (dynamically adjusted considering the rollback cost of each instruction) instead of a simple reverse rollback, the aim is to reduce fault recovery time and improve system throughput and resource utilization; thereby significantly reducing the system rollback overhead during the multi-database collaborative registration process.

[0057] By dynamically generating atomic operation instructions based on machine learning prediction models and assigning them appropriate execution priorities and parallel groups, the aim is to achieve real-time optimization of transaction execution order and parallel strategies, thereby improving the overall success rate and efficiency of transaction execution; and further enhancing the intelligence and adaptability of transaction scheduling.

[0058] By constructing an audit chain based on an improved Merkle tree structure, the entire lifecycle of a transaction is fully recorded on the chain, aiming to achieve transparency, traceability, and tamper-proof operation, providing the system with powerful audit and supervision capabilities; and providing complete, tamper-proof, and efficiently verifiable transaction audit and traceability capabilities.

[0059] By comprehensively analyzing the schema differences, transaction conflict probabilities, and data correlations of various target databases during the design process, the aim is to ensure consistency and reliability when working collaboratively across databases of multiple types and sources, thereby enhancing the system's collaborative processing capabilities and reliability in multi-source heterogeneous database environments.

[0060] Example 2 like Figure 2As shown, in some other embodiments, a multi-database collaborative registration system based on machine learning is also provided, including: The central control module is configured to respond to collaborative registration requests from multiple target databases, generate an instruction sequence containing multiple instructions based on a machine learning prediction model and the status data of each target database, and determine the execution priority and parallel group of each instruction in the instruction sequence. An atomic execution controller is configured to concurrently execute the sequence of instructions according to a determined priority and parallel group during transaction execution; The blockchain audit subsystem is configured to collect all operation records generated during transaction execution, organize these records into a transaction log, and use a Merkle tree structure to generate an audit chain. The audit chain is then uploaded to the blockchain network for evidence storage, forming an immutable traceability record. The central control module, atomic execution controller, and blockchain audit subsystem can all be configured as computer program modules or systems, or as electronic devices.

[0061] like Figure 3 As shown, the system of the present invention executes the following process during operation: S101. The user initiates a registration request, and the central control module receives and parses the request.

[0062] S102. The status acquisition unit in the central control module acquires the operating indicators of each target database (such as the supercomputing platform library, third-party service library, and adapter mapping library) in real time.

[0063] S103. A machine learning prediction model (e.g., a GNN model that incorporates temporal features) predicts the probability of failure for each atomic operation instruction generated for the request (such as writing to the user table in database A, writing to the role table in database B, etc.) based on these real-time metrics and historical logs.

[0064] S104. Based on the prediction results and the data dependencies between instructions, the central control module dynamically generates an optimized instruction execution sequence and assigns execution priorities and parallel groups to each instruction.

[0065] S105. The atomic execution controller, based on the above strategy, concurrently distributes instructions to each target database for execution through a highly available thread pool, and monitors the status of each instruction in real time through heartbeat and timeout mechanisms.

[0066] S106. If all instructions are executed successfully, the atomic execution controller notifies the client of success and packages all operation records of this transaction (including the execution result hash, timestamp, etc. of each step) and sends them to the audit and traceability subsystem.

[0067] S107. If any instruction fails to execute, the atomic execution controller immediately stops subsequent instructions and calls the optimized rollback unit. This unit triggers a reverse compensation operation based on an "optimized rollback sequence" recommended by a machine learning model, which comprehensively considers the complexity, time consumption, and current database load of each instruction to be rolled back. All rollback operations are also recorded in detail.

[0068] S108. After receiving the record packet indicating transaction completion (success or rollback), the audit traceability subsystem organizes it according to an improved Merkle tree structure, forming new audit chain nodes. Each node contains rich process information and is linked to preceding and following nodes via hash pointers, ensuring data integrity and tamper-proofness. Finally, the root hash of the audit chain can be written to an external blockchain to enhance credibility.

[0069] S109. The system feeds the execution results, monitoring metrics, and final scheduling / rollback decision effects of this transaction into the machine learning model as new training data to achieve closed-loop optimization.

[0070] Through the above process, this invention achieves closed-loop management of the entire process of multi-database collaborative registration transactions, from intelligent decision-making, efficient execution, reliable recovery to trusted auditing.

[0071] Example 3 This embodiment provides a storage medium storing a computer program or computer instructions. When the computer program or computer instructions are executed by the processor of a computer, the steps of the above-described multi-database collaborative registration method based on machine learning are implemented.

[0072] The storage medium can be an internal storage unit of any data processing device described in any of the foregoing embodiments, such as a hard disk or memory. The storage medium can also be an external storage device of any data processing device, such as a plug-in hard disk, smart memory card, SD card, flash memory card, etc., mounted on the device. Furthermore, the storage medium can include both internal storage units and external storage devices of any data processing device. The computer-readable storage medium is used to store the computer program and other programs and data required by the data processing device, and can also be used to temporarily store data that has been output or will be output.

[0073] Example 4 This embodiment provides a computer, including a memory and one or more processors. The memory stores executable code, and when the one or more processors execute the executable code, they implement the steps of the above-described multi-database collaborative registration method based on machine learning.

[0074] The memory can be an internal storage unit of any data processing device described in any of the foregoing embodiments, such as a hard disk or RAM. The memory can also be an external storage device of any data processing device, such as a plug-in hard disk, smart memory card, SD card, flash memory card, etc., mounted on the device. Furthermore, the memory can include both internal storage units and external storage devices of any data processing device. The memory is used to store the computer program and other programs and data required by the data processing device, and can also be used to temporarily store data that has been output or will be output.

[0075] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the concept and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A multi-database collaborative registration method based on machine learning, characterized in that, include: In response to collaborative registration requests from multiple target databases, an instruction sequence containing multiple instructions is generated based on a machine learning prediction model and the status data of each target database, and the execution priority and parallel group of each instruction in the instruction sequence are determined. During transaction execution, the instruction sequence is executed concurrently according to the determined priority and parallel group; Collect all operation records generated during the execution of a transaction, organize the operation records into a transaction log, and organize the transaction log into a Merkle tree structure to generate an audit chain; The audit chain is uploaded to a blockchain network for evidence storage, thereby creating an immutable traceability record.

2. The multi-database collaborative registration method based on machine learning according to claim 1, characterized in that, Based on machine learning prediction models and state data from various target databases, an instruction sequence containing multiple instructions is generated, and the execution priority and parallel group of each instruction in the instruction sequence are determined, specifically including: Using the machine learning prediction model, the probability of execution failure for each instruction is predicted based on real-time status data from each target database; wherein, the status data includes the proportion of failed transactions, average response time, number of transaction conflict detections, network jitter index, and resource availability; Based on the predicted execution failure probability and the data dependencies between instructions, an instruction sequence containing multiple instructions is generated, and the execution priority and parallel group of each instruction in the instruction sequence are determined.

3. The multi-database collaborative registration method based on machine learning according to claim 1, characterized in that, The method further includes fault handling steps during the concurrent execution of the instruction sequence: If any instruction fails to execute or times out during concurrent execution, the instructions that have not yet been executed are immediately aborted. Based on the recommendations of the machine learning prediction model and the rollback cost of each instruction, the rollback order is adjusted so that the rollback operation is triggered according to the adjusted rollback order.

4. The multi-database collaborative registration method based on machine learning according to claim 3, characterized in that, The operation log includes not only logs of successfully executed instructions, but also complete records of rollback operations.

5. The multi-database collaborative registration method based on machine learning according to claim 1, characterized in that, The transaction logs are organized using a Merkle tree structure to generate an audit chain, specifically including: For each operation, a corresponding log node is generated; wherein, the log node includes at least the transaction ID, operation type, target database identifier, execution result, data snapshot hash before operation, data result hash after operation, timestamp, digital signature, preceding instruction hash, and subsequent instruction hash; All log nodes of the same transaction are linked according to the execution sequence or logical relationship to form a chain-like transaction node structure, thereby generating the audit chain; Calculate the root hash of the audit chain, which serves as the unique identifier of the audit chain for transaction execution.

6. The multi-database collaborative registration method based on machine learning according to claim 5, characterized in that, Uploading the audit chain to the blockchain network for evidence preservation specifically includes: verifying the root hash of the audit chain through a smart contract deployed on the blockchain network, and writing the root hash of the audit chain into the blockchain network for permanent, distributed storage.

7. The multi-database collaborative registration method based on machine learning according to claim 1, characterized in that, The method further includes a continuous learning step: feeding the final result data of each transaction execution as training data into the machine learning prediction model for incremental training and optimization; wherein the final result data includes execution time, resource consumption, and exception type.

8. The multi-database collaborative registration method based on machine learning according to claim 1, characterized in that, Also includes: When all instructions in the transaction execution are executed successfully, a globally consistent snapshot is generated, and the summary information of the globally consistent snapshot is included in the audit chain as part of the operation record.

9. A multi-database collaborative registration system based on machine learning, characterized in that, include: The central control module is configured to respond to collaborative registration requests from multiple target databases, generate an instruction sequence containing multiple instructions based on machine learning prediction models and the status data of each target database, and determine the execution priority and parallel group of each instruction in the instruction sequence. An atomic execution controller is configured to concurrently execute the sequence of instructions according to a determined priority and parallel group during transaction execution; The blockchain audit subsystem is configured to collect all operation records generated during the execution of transactions, organize the operation records into transaction logs, and use a Merkle tree structure to organize the transaction logs to generate an audit chain; the audit chain is then uploaded to the blockchain network for evidence storage to form an immutable traceability record.

10. A storage medium, characterized in that, The storage medium stores a computer program or computer instructions, which, when executed by the computer's processor, implement the steps of the machine learning-based multi-database collaborative registration method as described in any one of claims 1 to 8.