Task-driven digital twin information access control method and system

By employing a task-driven digital twin information access control method, which utilizes reinforcement learning and knowledge graphs to generate dynamic access control strategies, and combines attribute-based encryption and zero-trust mechanisms, the problem of low efficiency in dynamic task requirements and cross-domain collaboration in rail transit systems is solved, achieving efficient and secure access management.

CN123198822APending Publication Date: 2026-12-01CHINA STATE RAILWAY GRP CO LTD +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611405688.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-12-01

AI Technical Summary

Technical Problem

In existing technologies, the digital twin management system for rail transit cannot flexibly adapt to dynamic task requirements, has low efficiency in cross-domain collaboration, and suffers from the risk of unauthorized access and the problem that the resolution of permission conflicts depends on post-event auditing.

Method used

A task-driven digital twin information access control method is adopted, which generates an initial access control policy through reinforcement learning algorithm, combines knowledge graph for permission inference and expansion, and uses attribute-based encryption and zero-trust mechanism for security verification to achieve dynamic access control.

Benefits of technology

It achieves fine-grained access control for different digital twins, enabling efficient collaborative access to cross-digital twin data throughout the entire lifecycle of rail transit based on dynamically changing task requirements, reducing the risk of unauthorized access and predicting permission conflicts, thereby improving cross-domain collaboration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123198822A_ABST
    Figure CN123198822A_ABST
Patent Text Reader

Abstract

The application provides a task-driven digital twin information access control method and system, which comprises the following steps: a digital twin data platform receives an access request carrying a task demand from a user, performs semantic analysis and demand mapping based on the access request, generates a task permission demand vector set of the user, and the task permission demand vector in the task permission demand vector set comprises a target digital twin attribute and a task operation type; an initial access control strategy is generated based on the user role and the task permission demand vector set by using a reinforcement learning algorithm, and the initial access control strategy comprises an access permission set, which comprises the attribute of the target digital twin and the corresponding access permission; the association relationship between the target digital twin and other digital twins is determined by using a knowledge graph, the permission of the digital twins is deduced and expanded based on the determined association relationship, and a final access control strategy is generated based on the permission expansion result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of digital twin information processing technology, and in particular to a task-driven digital twin information access control method and system. Background Technology

[0002] In recent years, digital twin technology has been applied in various industries, demonstrating significant value in the design, construction, and operation phases of rail transit. Throughout the entire lifecycle of digital twin management for rail transit, the integration of multimodal data such as Building Information Modeling (BIM), Internet of Things (IoT) sensors, Geographic Information System (GIS), and operation logs, along with support for collaborative operations across devices, systems, and network levels, reveals the immense data value inherent in rail transit twin data at different stages.

[0003] Digital twin data throughout its entire lifecycle is characterized by large volume, diverse data types, and complex data relationships. When accessing data, digital twin management models often employ static strategies based on role-based access control (RBAC) or attribute-based access control (ABAC). These static strategies are ill-suited to dynamically changing task requirements. In situations such as emergencies, different departments may need to collaborate temporarily to access the same twin. However, traditional digital twin management models require predefined role permissions, and permission adjustments rely on manual configuration, which is inefficient and prone to unauthorized access risks. Furthermore, there is a lack of alignment and permission inference mechanisms between device-level, system-level, and network-level twins. Significant differences in attribute naming rules and access interfaces between different twins necessitate multiple manual mappings when requesting access to different twins across domains, resulting in particularly low efficiency in cross-domain collaboration between different twins. Moreover, if cross-domain permission conflict resolution is required, the risks rely on post-event auditing, making it impossible to predict risks during the policy generation phase.

[0004] In summary, traditional digital twin management systems for rail transit suffer from drawbacks such as inflexible access permissions to adapt to dynamic task requirements, difficulties in cross-domain collaboration, and low efficiency. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a task-driven digital twin information access control method and system to eliminate or improve one or more defects existing in the prior art.

[0006] One aspect of the present invention provides a task-driven digital twin information access control method, the method comprising the following steps: The digital twin data platform receives access requests from users carrying task requirements, performs semantic parsing and requirement mapping based on the access requests, and generates a set of task permission requirement vectors for users. The task permission requirement vectors in the set of task permission requirement vectors include target digital twin attributes and task operation types. An initial access control policy is generated based on user roles and the set of task permission requirement vectors using a reinforcement learning algorithm. The initial access control policy includes a set of access permissions, which includes the attributes of the target digital twin and the corresponding access permissions. Knowledge graphs are used to determine the relationships between the target digital twin and other digital twins. Based on the determined relationships, permissions are deduced and extended across digital twins, and the final access control policy is generated based on the permission extension results.

[0007] In some embodiments of the present invention, the method further includes: performing access security verification based on the user's attributes and the final access control policy using an attribute-based encryption mechanism and a zero-trust mechanism, and returning a task execution result based on the verification result.

[0008] In some embodiments of the present invention, the step of performing semantic parsing and requirement mapping based on the access request to generate a set of user task permission requirement vectors includes: inputting the information to be parsed, including task requirements, into a pre-trained BERT natural language model to extract keywords; using the extracted keywords to associate with a knowledge graph, obtaining related digital twin attributes from the knowledge graph as target digital twin attributes, obtaining a set of target digital twin attributes containing each target digital twin attribute, and constructing the set of task permission requirement vectors based on the set of target digital twin attributes and the user role.

[0009] In some embodiments of the present invention, the reinforcement learning algorithm is a Q-learning algorithm based on a deep neural network; the state space of the reinforcement learning algorithm includes: task type and user role, as well as system state and / or security risk value; the action space of the reinforcement learning algorithm includes: a set of allocated permissions; the reward of the reinforcement learning algorithm includes a reward based on permission matching degree, permission redundancy, and the latest security risk value, wherein the permission matching degree is obtained by the similarity between the task permission requirement set and the allocated permission set, the permission redundancy is obtained based on the ratio of the number of redundant permissions to the total number of allocated permissions, and the latest security risk value is obtained by updating the historical security risk value by performing corresponding access operations based on the allocated permission set.

[0010] In some embodiments of the present invention, the access permissions in the access permission set of the initial access control policy include encryption type and permission duration; the action space of the reinforcement learning algorithm also includes encryption type and permission duration; the higher the security risk value, the higher the complexity of the encryption type and the shorter the permission duration; the system state includes CPU load, network latency and / or network full threat; the reward also includes a reward based on computational overhead, which is obtained through the load and the network latency; the higher the load and the network latency, the lower the complexity of the encryption type in the access permissions in the access permission set of the initial access control policy.

[0011] In some embodiments of the present invention, the access security verification based on the user's attributes and the final access control policy using an attribute-based encryption mechanism and a zero-trust mechanism includes: a data encryption module constructing a policy tree based on user attribute combination rules defined by logic gates; encrypting the policy tree and data using a public key to generate ciphertext; generating a user private key based on the user attributes and the policy tree; sending the generated ciphertext and the user private key to the user; calculating a trust value based on the permission matching degree of the final access control policy and the latest security risk value to perform zero-trust dynamic verification; and executing the task and returning the task execution result after successful verification by the digital twin data platform.

[0012] In some embodiments of the present invention, the task operation type includes read operation, write operation or execution operation; the association relationship includes transitivity rules, reverse constraint rules and / or conflict resolution rules.

[0013] Another aspect of the present invention provides a task-driven digital twin information access control system, the system comprising: a computer device, the computer device including a processor and a memory, the memory storing computer instructions, the processor being used to execute the computer instructions stored in the memory, and when the computer instructions are executed by the processor, the system implementing the steps of the aforementioned method.

[0014] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the aforementioned method.

[0015] Another aspect of the present invention provides a computer program product including computer instructions that, when executed by a processor, implement the steps of the aforementioned method.

[0016] The task-driven digital twin information access control method and system of the present invention can effectively solve the technical problems in the prior art, such as the inability of access permissions to flexibly adapt to dynamic task requirements and the difficulty and low efficiency of cross-domain collaboration. It can realize fine-grained access permission management for different digital twins and dynamically and efficiently collaborate to access data and information across digital twins throughout the entire life cycle of different application fields such as rail transit, from design, construction, operation and maintenance, according to dynamically changing task requirements.

[0017] Additional advantages, objects, and features of the invention will be set forth in part in the description which follows, and will also become apparent in part to those skilled in the art upon studying the description, or may be learned by practice of the invention. The objects and other advantages of the invention can be realized and obtained by means of the structures specifically pointed out in the description and drawings.

[0018] Those skilled in the art will understand that the objectives and advantages achievable with the present invention are not limited to those specifically described above, and that the above and other objectives achievable with the present invention will become clearer from the following detailed description. Attached Figure Description

[0019] The accompanying drawings, which are provided to further illustrate the invention and form part of this application, are not intended to limit the scope of the invention.

[0020] Figure 1 This is a flowchart illustrating a task-driven digital twin information access control method according to an embodiment of the present invention. Figure 2 This is a schematic diagram illustrating the principle of a reinforcement learning algorithm in one embodiment of the present invention; Figure 3 This is a schematic diagram of permission extension and permission conflict resolution rules in one embodiment of the present invention.

[0021] Figure 4 This is a schematic flowchart illustrating the dynamic strategy generation and execution in one embodiment of the present invention. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the embodiments and accompanying drawings. Here, the illustrative embodiments and descriptions of this invention are used to explain the invention, but are not intended to limit the invention.

[0023] It should also be noted that, in order to avoid obscuring the invention with unnecessary details, only the structures and / or processing steps closely related to the solution according to the invention are shown in the accompanying drawings, while other details that are not closely related to the invention are omitted.

[0024] It should be emphasized that the term "including / comprises" as used herein refers to the presence of a feature, element, step, or component, but does not exclude the presence or addition of one or more other features, elements, steps, or components.

[0025] In the following description, embodiments of the invention will be illustrated with reference to the accompanying drawings. In the drawings, the same reference numerals represent the same or similar parts, or the same or similar steps.

[0026] Due to the limitations of existing technologies in handling cross-stage scenarios of rail transit twin models, such as insufficient dynamic adaptation of permissions and difficulties in cross-domain collaboration, this invention proposes a task-driven digital twin information access control method and system. By employing a three-layer architecture of "task awareness - dynamic strategy - lightweight verification," fine-grained access control for multi-level digital twins can be achieved. This enables dynamic access control for cross-stage multimodal data fusion and task-driven approaches in rail transit, providing technical support for the entire lifecycle management of railways. The method and system of this invention can dynamically and efficiently coordinate access to data and information across digital twins throughout the entire lifecycle of rail transit, from design, construction, operation, and maintenance, based on dynamically changing task requirements. This effectively meets the diverse task needs of different users and even the same user.

[0027] Figure 1 This is a flowchart illustrating a task-driven digital twin information access control method according to an embodiment of the present invention. Figure 1 As shown, the method includes the following steps S110 to S130: Step S110: The digital twin data platform receives an access request from a user carrying task requirements, performs semantic parsing and requirement mapping based on the access request, and generates a set of task permission requirement vectors for the user. The task permission requirement vectors in the set of task permission requirement vectors include target digital twin attributes and task operation types.

[0028] like Figure 4As shown, this step can be completed by the task parsing module of the digital twin data platform. As an example, the digital twin data platform can be a digital twin data platform for rail transit, also known as a digital twin information access control system or digital twin management system, capable of performing full lifecycle management of digital twin data for rail transit. However, this invention is not limited to this and can also be applied to other fields. In the process of implementing full lifecycle management of digital twin data, users at various stages and units (such as design units, construction units, operation and maintenance units, etc.) may request access to multimodal digital twin data across stages (such as historical stages different from their current stage), systems, domains (such as cross-network levels), or twin entities from the digital twin data platform. In this case, step S110 and subsequent steps can be executed to achieve efficient and secure dynamic collaborative access control operations.

[0029] In this step, users can input task requirements and send an access request carrying those requirements to the digital twin data platform. The task requirements input by the user can be natural language or structured instructions. For example, if querying or accessing track settlement data, the relevant description of the task requirement could be, "Please analyze the settlement data of track section A in May 2024." If querying the construction progress of a tunnel or the quality of its cross-section, the input task requirement could be, "Please confirm or analyze the occurrence of cracks in tunnel A at point 1," and so on. Task requirements can include or exclude user roles; for example, a user role could be "Operations Line Engineer." If the access request does not include a user role, the digital twin data platform can determine the user role based on the user identifier information in the access request and the pre-stored mapping between user identifiers and user roles.

[0030] In an optional embodiment of the present invention, in addition to inputting the task requirement statement itself, the user can also input more contextual data. For example, the contextual data may contain some or all of the following information: the time, location (e.g., geographical region, road segment, and / or point), equipment status, current stage (e.g., construction / operation phase), and user role of the requested digital twin information. That is, the access request sent to the digital twin data platform can carry not only the task requirement statement but also contextual data. The BERT natural language model can achieve accurate parsing of the context based on bidirectional attention. The digital twin data platform can obtain user role information from the access request (including task requirements and contextual data). If the access request does not carry the user role, the digital twin data platform can obtain the user role based on the user identifier information in the access request and the pre-stored correspondence between user identifiers and user roles. As an example, the task requirement in the access request could be, for example, "Please analyze the settlement data of track section A in May 2024," and the input context data could be, for example, "Time: May 2024; Location: Track section A; Equipment status: Sensor normal; Stage: Construction / Operation; User role: Operational line engineer." This context data is only an example, and the present invention is not limited thereto.

[0031] Upon receiving the access request, the digital twin data platform first performs task perception based on the request using a task parsing module. Task perception mainly involves semantic parsing and requirement mapping of the task requirements carried in the access request, identifying semantic information such as task content and / or task type, and then matching the corresponding target digital twin attributes and task operation types to output a set of task permission requirement vectors. This set of task permission requirement vectors includes at least the target digital twin attributes and task operation types. In addition, it may include other information such as time constraints. These time constraints can be time constraints on the data the user wants to access, or the validity period of the user's access permission, such as 24 hours (meaning access is allowed within 24 hours), but this invention is not limited to these. As an example, task operation types can include three types: read operations, write operations, and execute operations. By converting the natural language of the task requirements into a structured set of task permission requirement vectors, machine recognition is more easily achieved.

[0032] In some embodiments of the present invention, the task parsing module preferably utilizes knowledge graphs and the BERT natural language model to perform semantic parsing of task requirements, extract task keywords, and generate a set of user task permission requirement vectors. In this case, as an example, generating a set of task permission requirement vectors based on semantic parsing and requirement mapping of user task requirements may include the following steps: Step S1101: Input the information to be parsed, including task requirements, into the pre-trained BERT natural language model to extract keywords.

[0033] The information to be parsed may include task requirements and user roles. For example, the user's task requirement "Please analyze the settlement data of track section A in May 2024" and user role "Operations Line Engineer" can be input into a pre-trained BERT natural language model. Multiple keywords can be extracted using the pre-trained BERT natural language model. The information to be parsed may also include other contextual data.

[0034] Step S1102: Using the extracted keywords to associate with the knowledge graph, obtain the related digital twin attributes from the knowledge graph as target digital twin attributes, obtain the target digital twin attribute set containing each target digital twin attribute, and construct the task permission requirement vector set based on the target digital twin attribute set and user roles.

[0035] More specifically, in one embodiment of the present invention, after extracting keywords, the task type (such as "settlement analysis") can be identified by parsing the keywords. Furthermore, the association between keywords and target digital twin attributes in the knowledge graph can be utilized to associate the extracted keywords with target digital twin attributes in the knowledge graph, resulting in a target digital twin attribute set containing each target digital twin attribute. For example, the extracted keywords can be associated with the knowledge graph, linking them to target digital twin attributes such as the GIS coordinates of track segment A, the historical settlement records of track segment A, and the sensor IDs of the settlement records. In the knowledge graph, digital twin attributes are hierarchical. For example, a higher-level, coarser-grained digital twin attribute above the digital twin attribute "GIS coordinates of track segment A" is "geometric data of track segment A," and a higher-level, coarser-grained digital twin attribute above the digital twin attribute "sensor IDs of settlement records" is "design threshold document." For example, the obtained target digital twin attribute set is {geometric data of track segment A, historical settlement records of track segment A, and design threshold document}. In this embodiment of the invention, the task parsing module can determine the attribute levels of each target digital twin based on the pre-set correspondence between task type and target digital twin attribute levels, the correspondence between user role and target digital twin attribute levels, or the correspondence between task type, user role, and target digital twin attribute levels, etc., to obtain the target digital twin attribute set. Alternatively, it can be determined through machine learning training.

[0036] The knowledge graph in this invention can pre-store attribute information, monitoring information, and other data of multiple digital twins corresponding to multiple physical entities across various application fields, including rail transit, covering the entire lifecycle from design, construction, operation to maintenance. It also includes the relationships between the attributes of different digital twins. The relevant data and information of digital twins at different lifecycle stages and in different professional fields can be stored in different domains, and the relevant data and information of the same digital twin can be stored hierarchically. For different user roles, the range of accessible digital twin data in the knowledge graph across different lifecycle stages and professional fields can be different and limited. Therefore, subsequent steps also need to consider user roles and set different access permissions based on different user roles. The knowledge graph can be stored hierarchically on a digital twin data platform or other servers, but this invention is not limited to this.

[0037] After obtaining the target digital twin attribute set, a task permission requirement vector set can be generated based on the task type, user role, and target digital twin attribute set. This task permission requirement vector set may include one or more task permission requirement vectors, and each task permission requirement vector may include target digital twin attributes and task operation type. Furthermore, the task permission requirement vector may also include time constraints on the requested data, etc. For example, a task permission requirement vector can be represented as... ,in, For the target digital twin attributes, Task operation type , Due to time constraints, the present invention is not limited thereto.

[0038] In this embodiment of the invention, the task operation type in each task permission requirement vector can be determined based on a pre-established correspondence between task type and operation type requirement (which may include only the correspondence between task type and operation type requirement, or the correspondence between task type, user role and operation type requirement, or the correspondence between task type, target digital twin attribute and operation type requirement, or the correspondence between task type, user role, target digital twin attribute and operation type requirement), or it can be achieved through machine learning training, thereby outputting a set of task permission requirement vectors.

[0039] In this embodiment of the invention, each task permission requirement vector in the task permission requirement vector set can also be regarded as a permission requirement vector of different subtasks corresponding to the task type identified based on the task requirements. For example, the task type "Settlement Analysis of Track A" identified from the task requirement "Please analyze the settlement data of track A section in May 2024" can correspond to three sub-tasks: reading the geometric data of track A section, reading the historical settlement records of track A section, and reading the design threshold document. That is, to perform settlement analysis on track A section, the user needs to access and read the following types of data, such as "geometric data of track A section," "historical settlement records of track A section," and "design threshold document." Based on the task type, three sub-tasks are obtained. The target digital twin attributes corresponding to these three sub-tasks are "geometric data of track A section," "historical settlement records of track A section," and "design threshold document," respectively. The task operation type is "read operation" for all three. The resulting permission requirement vector for each sub-task can be a vector composed of the target digital twin attributes and the task operation type. The final set of task permission requirement vectors is a set of permission requirement vectors, i.e., {("Operation Line Engineer", "Geometric Data of Track A Section", read), ("Operation Line Engineer", "Historical Settlement Records of Track A Section", read). ("Operations Line Engineer", "Design Threshold Document", Read)}. Furthermore, the permission requirement vector can also include user roles, i.e., the permission requirement vector set is {("Operations Line Engineer", "Geometric Data of Track A Section", Read), ("Operations Line Engineer", "Historical Settlement Records of Track A Section", Read), ("Operations Line Engineer", "Design Threshold Document", Read)}.

[0040] When the task requirements include time constraints, such as "May 2024", the generated task permission requirement vector can also include time constraints. In this case, the generated task permission requirement vector set can be, for example, {("Operation Line Engineer", "Geometric Data of Track A Section", Read, 2024-05-31 24:00), ("Operation Line Engineer", "Historical Settlement Records of Track A Section", Read, 2024-05-31 24:00), ("Operation Line Engineer", "Design Threshold Document", Read, 2024-05-31 24:00)}, which means it is necessary to read the geometric data of Track A Section, the historical settlement records of Track A Section, and the design threshold document between May 1 and 31, 2024, at 24:00.

[0041] In other specific implementations, some task types may correspond to only one subtask, meaning that the corresponding task type can be implemented simply by accessing the data of a certain twin attribute.

[0042] Step S120: A reinforcement learning algorithm is used to generate an initial access control policy based on the user role and the set of task permission requirements. The initial access control policy includes a set of access permissions, which includes the attributes of the target digital twin and the corresponding access permissions.

[0043] This step can be implemented by the dynamic policy engine module in the digital twin data platform. This dynamic policy engine utilizes reinforcement learning algorithms to generate dynamic initial access control policies based on task requirements and real-time status, supporting cross-twin and cross-stage permission derivation. An example of the reinforcement learning algorithm used in this invention is the Deep Q-Network (DQN) algorithm, a Q-learning algorithm based on deep neural networks. It uses experience replay and fixed Q-target techniques to acquire sampled data (experience replay pool) through environmental interaction. This sampled data is used to train the deep neural network, which introduces the idea of ​​a target network. It uses a delayed-updating target network to calculate the target Q-value, approximating the optimal action value function (Q-function) by fixing the Q-target. DQN can obtain a quadruple (...) during each interaction with the environment. s t , a t , r t , s t+1 A DQN consists of (current state, action taken, reward received, and next state). The state describes the environment and includes all factors influencing decisions. An action is the operation an agent can perform in a specific state. In reinforcement learning, the agent selects actions based on the current state, thus influencing the transition of the environment. The reward is the numerical value the agent receives from the environment after performing an action, used to evaluate the quality of that action. DQN takes the state of the environment as input and outputs the reward for each action, converging to the optimal action value function. The agent observes the current state, selects appropriate actions, and adjusts its policy based on the rewards received after performing those actions. This process continues, and the agent learns an optimal policy through interaction with the environment to maximize cumulative rewards.

[0044] In this embodiment of the invention, the following reinforcement learning strategy can be used to generate the initial access control policy: DQN's state space may include task type and user role, as well as system status and security risk values. System status may include CPU load, network latency, and / or network threat level, while security risk values ​​are risk levels quantified based on historical data.

[0045] The DQN action space includes the set of assigned permissions, encryption type (such as AES-128 / ABE), and permission expiration time. The initial set of assigned permissions in the action space can be obtained based on the aforementioned task permission requirement vector set. For example, the aforementioned task permission requirement vector set can be directly used as the initial set of assigned permissions in the action space, or the initial set of assigned permissions in the action space can simply include the attributes of the target digital twin and the task operation type in the aforementioned task permission requirement vector set. As an example, the initial set of assigned permissions can be represented as {"Permissions": ["Track A Section: Geometric Data: Read", "Track A Section: Historical Settlement Records: Read", "Design Threshold Documents: Read"]}.

[0046] The encryption type can include the encryption level of the digital twin information to be accessed (and / or encryption methods with different encryption levels, etc.). The encryption level can include encryption complexity, and the encryption method can be such as ABE (Attribute-Based Encryption), AES-256, or AES-128. The permission validity period indicates the duration for which a user's permission to access the digital twin information is valid. This encryption type is an optional action, selected based on requirements. When the action space contains an encryption type, lightweight permission verification can be performed subsequently based on the encryption type. The validity period is only selected when this time constraint exists.

[0047] like Figure 2 As shown, in each iteration of reinforcement learning, the agent makes a decision or action a based on the environment state s, and the environment provides a corresponding reward r. This decision or action causes a change in the environment state. During the interaction between the environment and the agent, the agent continuously seeks to maximize the reward, which means pursuing higher permission matching, lower permission redundancy, and lower security risk. Specifically, it maximizes permission matching while minimizing permission redundancy and security risk, ultimately outputting the decision or action with the highest reward. Figure 2 In this context, S represents the state set. For neural network parameters, This represents the generated decision. In this embodiment, the initial security risk value of DQN is obtained by quantifying the risk level based on relevant data of the historical access operations allowed by the user on the digital twin data platform. Specifically, in the historical access operations allowed by the platform for the user, if the number of accesses based on access permissions is greater than the number of accesses exceeding access permissions, it indicates that the security risk value of the current access operation is low; conversely, it indicates that the security risk value of the current access operation is high. Access exceeding access permissions could be, for example, an access permission of read, but in which data is modified during the actual access. The higher the initial security risk value, the higher the complexity of the encryption type and the shorter the permission duration of each element in the access permission set of the final output initial access control policy. By using a more complex encryption type that is not easily cracked to encrypt the accessed data and setting a shorter access permission duration, the security risks existing in the digital twin data platform are addressed to prevent data leakage and improve the security of access to digital twin information. Each time a user accesses the data based on access permissions, the security risk value corresponding to that user is updated. That is, the latest security risk value is obtained by updating the historical security risk value after executing the corresponding access operation based on the allocated permission set.

[0048] In one specific implementation of this embodiment, the reward function can be expressed by the following formula: in, , and These are all weighting coefficients, used as an example. , and The possible values ​​are 0.6, 0.3, and 0.1, that is, These values ​​are merely examples, and the invention is not limited thereto.

[0049] Permission matching degree can be a set of task permission requirement vectors. and the set of permissions assigned Jaccard similarity is a metric for measuring the similarity between two sets. It quantifies the degree of similarity by calculating the ratio of the intersection to the union of the sets. Jaccard similarity can be expressed as: .

[0050] Permission redundancy is the ratio of the number of redundant permissions to the total number of allocated permissions. The total number of permissions assigned is .

[0051] Based on the reinforcement learning strategy described above, the optimal action is selected through the DQN (Deep Q-Network) to generate a dynamic initial access control policy. The DQN network operates essentially as a black box, and the final initial access control policy can be represented as follows: {"Access Permission Set":["Track Segment A: Geometric Data: Read","Track Segment A: Historical Settlement Records: Read","Design Threshold Document: Read"],"Encryption":"ABE (Attribute-Based Encryption)","Validity Period":"24 Hours"} The DQN algorithm above is only an example. The reinforcement learning algorithm of the present invention is not limited to this, and other possible reinforcement learning algorithms can also be used.

[0052] Step S130: Use knowledge graph to determine the relationship between the target digital twin and other digital twins, perform cross-digital twin permission inference and extension based on the determined relationship, and generate the final access control policy based on the permission extension result.

[0053] Because the knowledge graph pre-establishes relationships between digital twins, by utilizing these relationships, all digital twins associated with the user's task requirements can be obtained, and corresponding access permissions can be derived and extended to a permission set. Then, based on the extended permission set, a final access control policy is generated so that the user can access all digital twin information related to the task requirements in the digital twin data platform based on the extended permission set.

[0054] If at least one target digital twin attribute in the access permission set of the initial access control policy is associated with at least one digital twin attribute pre-stored in the knowledge graph, other than all target digital twin attributes in the access permission set, then the associated at least one digital twin attribute is also taken as a target digital twin attribute, and the access permission of the at least one digital twin attribute is determined (derived) based on the predetermined permission association rules, and the final access control policy is generated based on the permission extension result.

[0055] As an example, the association rules may include, but are not limited to, transitive rules, reverse constraint rules, and conflict resolution rules, and may include more or fewer rules. A transitive rule may state that if write permission is granted to a first twin attribute, read permission is automatically granted to the second twin attribute it depends on. A reverse constraint rule may state that if the first twin attribute, which the second twin attribute depends on, is in a maintenance (or abnormal) state, then the permission of the second twin attribute is prohibited from being associated with a write operation. Conflict resolution rules may include conflict monitoring and resolution based on blacklist filtering and consistency checks. For example, by setting an access blacklist for devices and / or models under maintenance, access to data of devices and / or models under maintenance can be prohibited. If a conflict arises in the permissions corresponding to twin attributes due to the association relationship between different twin attributes, conflict detection can be performed on the permissions, and conflict resolution can be performed based on priority and other strategies. After permission extension based on permission association rules, a final access control policy is generated. If conflict resolution exists, a conflict report can also be generated simultaneously with the final access control policy to record the denied permissions and the reasons for denial.

[0056] like Figure 3 As shown, the relationships in step S130 include dependency relationships, monitoring relationships, and control relationships. If the second twin attribute is obtained by monitoring the first twin attribute, the relationship between the second twin attribute and the first twin attribute can be considered a monitoring relationship; if the first twin attribute controls the second twin attribute, the relationship between the second twin attribute and the first twin attribute can be considered a control relationship. Monitoring relationships and control relationships can also be considered dependency relationships. As an example, for the access permission set {"permission": ["Track A segment: Geometric data: read", "Track A segment: Historical settlement record: read", "Design threshold document: read"]} in the initial access control policy, to read the target digital twin attribute - design threshold document, it is necessary to first obtain the relevant data of the digital twin attribute - BIM design platform Z that the design threshold document depends on stored in the digital twin database. Therefore, this digital twin attribute is also used as the target digital twin attribute, and the operation permission is set to read operation to achieve automatic expansion of permissions and obtain the final access control policy. The access permission set in the final access control policy is, for example: {"Permissions": ["Track Section A: Geometric Data: Read","Track Section A: Historical Settlement Records: Read","Design Threshold Documents: Read","BIM Design Platform Z: Version Number: Read"]}.

[0057] For example, based on a knowledge graph, the devices associated with track segment A include laser settlement sensor X and stress sensor Y. This means that to read the geometric data and historical settlement records of the target digital twin attribute – track segment A – it is necessary to first obtain the relevant data of the digital twin attributes – laser settlement sensor X and stress sensor Y – stored in the database for monitoring and collecting geometric and settlement data. Therefore, based on the knowledge graph, the data of this digital twin attribute – laser settlement sensor X and stress sensor Y – are used as the target digital twin attributes. That is, the relationship between the target digital twin attributes – laser settlement sensor X and stress sensor Y – and the target digital twin attribute – track segment A – geometric data and historical settlement records is a monitoring relationship. It can also be considered that the target digital twin attribute – track segment A – geometric data and historical settlement records depend on the target digital twin attribute – laser settlement sensor X and stress sensor Y. Furthermore, based on predetermined permission association rules, permission derivation and expansion are performed, thereby generating the final access control policy based on the permission expansion results. However, if laser settling sensor X is found to be in calibration (maintenance) mode, reading its real-time data is prohibited, and operations on track segment A are prohibited from being associated with write operations. For example, ... Figure 3 As shown, some processes are influenced (controlled by) certain geographic and geological data, and it can also be considered that the digital twin information of the process depends on the digital twin information of the geographic and geological data.

[0058] The initial access control policy obtained above is a dynamic initial access control policy obtained through deep reinforcement learning. The final access control policy after permission expansion is also a dynamic access control policy, derived from the dynamic initial access control policy. It can be generated in real time based on task requirements, thus adapting to dynamically changing task needs, and the collaboration efficiency between the digital twins is high. After obtaining the final dynamic access control policy through the above steps, access control for the requested digital twin information can be directly performed based on the obtained final access control policy.

[0059] Furthermore, the access control policy in this embodiment of the invention can anticipate the risk of resolving permission conflicts without relying on post-event auditing.

[0060] In some embodiments of the present invention, in order to further predict risks during the policy generation stage without relying on post-audit, the digital twin information access control method of the present invention may further include the following steps: Step S140: Lightweight security verification is performed using attribute-based encryption and a zero-trust mechanism according to the final access control policy.

[0061] This step can be implemented through a lightweight verification layer (or lightweight verification module) in the digital twin data platform, or in conjunction with a third-party security verification system (such as a smart contract-based verification node). The lightweight verification layer can achieve low-latency authentication through attribute-based encryption (ABE) and a zero-trust mechanism, ensuring secure execution at the edge. The lightweight verification layer can be located in a third-party trusted institution or a smart contract participating node, etc. The lightweight verification layer may include a data encryption module and a verification module. The data encryption module is used to generate a policy tree and encrypt data, while the verification module is used for user attribute verification and data decryption. After successful security verification, the user can access the digital twin information associated with the task requirements in the digital twin data platform based on the final access control policy. The user attributes may include the user role and / or user historical behavior, but the present invention is not limited to these.

[0062] Attribute-based encryption is an encryption technology that controls data access based on user attributes (such as user roles and permissions). Unlike traditional key-based encryption methods, attribute encryption not only relies on encryption and decryption keys but also binds access permissions to user attributes, thereby achieving fine-grained access control for twin data. Specifically, a user's private key can be generated based on user attributes, data can be encrypted according to the access policy, and the user can use the private key to decrypt data that conforms to the access policy, proving that their attributes satisfy the policy. Zero-trust mechanism is a security model that continuously verifies and dynamically authorizes all users based on as many trust elements as possible, such as the access subject's identity, network environment, and terminal status. Its core concept is "never trust, always verify," and it addresses the risks associated with the traditional "one-time verification + static authorization" approach through continuous verification, least privilege, and dynamic risk assessment.

[0063] The lightweight security verification method based on attribute-based encryption and zero-trust mechanism supports multi-department and multi-business process collaboration with complex logic. It does not require maintaining a user-permission mapping table. Each user's private key contains a unique random number to prevent multi-user joint cracking.

[0064] As an example, this step S140 includes more specifically: Step S1401: The data encryption module constructs a policy tree (access policy) based on the user attribute combination rules defined by logic gates (AND / OR), encrypts the policy tree and the data, and generates ciphertext CT.

[0065] Where CT = Encrypt(data, policy tree); and Encrypt() represents the encryption operation. An example of a policy tree could be: Policy Tree: (Role == "Line Engineer" AND Task Type == "Settlement Analysis"), which defines which attribute combinations of users are entitled to access data of which task type. This example is not intended to limit the invention.

[0066] Step S1402: Generate a user private key based on user attributes and policy tree, and send the generated ciphertext and user private key to the user.

[0067] As an example, user attributes and policy trees can be bound together to generate a user private key. The formula for calculating the user private key can be... Where SK represents the user's private key. r Represents a random number. Represents user attributes, Indicates the first User attributes hash value, The generator is represented by the formula, which is merely an example and is not limited to this invention. The private key can be used to decrypt the ciphertext and, upon successful decryption, is requesting further verification from the verification module.

[0068] Based on the above steps S1401 and S1402, as an example, after a user issues an access request, an asymmetric key pair can be generated, and the public key in the key pair, along with the user's identity and / or role, can be sent to the digital twin data platform. The digital twin data platform can generate a challenge message based on the ABE strategy and send it to the user. The user can use their private key to decrypt the challenge message, and the signature returns the private key in the key pair. The digital twin data platform can use the received private key to verify the signature and confirm the legitimacy or authorization of the user's identity.

[0069] Since the attribute-based encryption method is an existing encryption method, it will not be described in detail here.

[0070] Step S1403: Calculate the trust value based on the permission matching degree of the final access control policy and the latest security risk value to perform zero-trust dynamic verification. After successful verification, the digital twin data platform executes the task and returns the task execution result.

[0071] The formula for calculating trust value can be: ,in, and All are weighting coefficients, and The permission matching degree in the formula can be the permission matching degree calculated above, and the security risk value can also be the security risk value calculated above. Access to the user can be authorized based on the calculated trust value. When the trust value is greater than a preset threshold, the user is allowed to access the digital twin data platform according to the final access control policy, and an access token (containing a decryption key) is output.

[0072] Specifically, the verification module of the lightweight verification layer can generate an access token based on the policy tree, trust value, user private key, and the permission validity period in the final access control policy. The digital twin data platform can then verify the validity of the token and its matching with the access permissions in the final access control policy based on the decryption key, and dynamically associate it with multimodal data such as the twin model and sensor data. Finally, the service response returns the control command execution status and service results (data / operation feedback). That is, if the token validity matches the access permissions in the final access control policy, the platform returns the decrypted digital twin information related to the task requirements to the user based on the final access control policy.

[0073] As an example, the digital twin data platform returns the following digital twin information to a user with the role of an operations line engineer: {"Geometric data of track A": {"Current settlement value":"2.3mm","Design threshold":"5.0mm"},"Historical settlement record of track A": ["2024-05-01: 1.8mm","2024-05-15: 2.1mm"],"BIM version":"V3.2.1"}. Through these steps, this method improves the security of user access to the digital twin data platform. Each user's private key contains a unique random number, effectively preventing multi-user collusion and enhancing the security and reliability of the entire access process.

[0074] Furthermore, after outputting the access token, the verification module can also output authentication logs (time, user, trust score, and operation result, etc.).

[0075] The lightweight authentication of this invention enables fine-grained dynamic control, and the user key does not need to change with policy updates. Only the access token is dynamically refreshed, and the token can be bound to the user device context (such as trust value, user private key, permission validity period, etc.), thus effectively resisting collusion attacks.

[0076] Corresponding to the above method, the present invention also provides a task-driven digital twin information access control system. The system includes a computer device, which includes a processor and a memory. The memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the system implements the steps of the aforementioned method.

[0077] This invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the aforementioned method. The computer-readable storage medium may be a tangible storage medium, such as random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, floppy disk, hard disk, removable storage disk, CD-ROM, or any other form of storage medium known in the art.

[0078] This invention also provides a computer program product, including computer instructions that, when executed by a processor, implement the steps of the aforementioned method.

[0079] Those skilled in the art will understand that the exemplary components, systems, and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software, or a combination of both. Whether implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention. When implemented in hardware, it can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this invention are programs or code segments used to perform the desired tasks. The programs or code segments can be stored in a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried in a carrier wave.

[0080] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.

[0081] In this invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with or in place of features of other embodiments.

[0082] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, various modifications and variations of the embodiments of the present invention are possible. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A task-driven digital twin information access control method, characterized in that, The method includes: The digital twin data platform receives access requests from users carrying task requirements, performs semantic parsing and requirement mapping based on the access requests, and generates a set of task permission requirement vectors for users. The task permission requirement vectors in the set of task permission requirement vectors include target digital twin attributes and task operation types. An initial access control policy is generated based on user roles and the set of task permission requirement vectors using a reinforcement learning algorithm. The initial access control policy includes a set of access permissions, which includes the attributes of the target digital twin and the corresponding access permissions. Knowledge graphs are used to determine the relationships between the target digital twin and other digital twins. Based on the determined relationships, permissions are deduced and extended across digital twins, and the final access control policy is generated based on the permission extension results.

2. The method according to claim 1, characterized in that, The method further includes: Access security is verified based on the user's attributes and the final access control policy using attribute-based encryption and zero-trust mechanisms, and the task execution result is returned based on the verification result.

3. The method according to claim 1, characterized in that, The step of performing semantic parsing and requirement mapping based on the access request to generate a set of user task permission requirement vectors includes: The information to be parsed, including task requirements, is input into the pre-trained BERT natural language model for keyword extraction. By using the extracted keywords to associate with the knowledge graph, related digital twin attributes are obtained from the knowledge graph as target digital twin attributes, resulting in a target digital twin attribute set containing each target digital twin attribute. Based on the target digital twin attribute set and user roles, the task permission requirement vector set is constructed.

4. The method according to claim 1, characterized in that, The reinforcement learning algorithm used is the Q-learning algorithm based on deep neural networks; The state space of the reinforcement learning algorithm includes: task type and user role, as well as system state and / or security risk value; The action space of the reinforcement learning algorithm includes: a set of allocation permissions; The reward of the reinforcement learning algorithm includes a reward based on permission matching degree, permission redundancy degree, and the latest security risk value. The permission matching degree is obtained by the similarity between the task permission requirement set and the allocated permission set. The permission redundancy degree is obtained by the ratio of the number of redundant permissions to the total number of allocated permissions. The latest security risk value is obtained by updating the historical security risk value by performing corresponding access operations based on the allocated permission set.

5. The method according to claim 4, characterized in that, The access permissions in the access permission set of the initial access control policy include encryption type and permission validity period; the action space of the reinforcement learning algorithm also includes encryption type and permission validity period; the higher the security risk value, the higher the complexity of the encryption type and the shorter the permission validity period. The system status includes CPU load, network latency, and / or network threats. The rewards also include rewards based on computational overhead, which is obtained from the load and the network latency; the higher the load and the network latency, the lower the complexity of the encryption type in the access permissions in the access permission set of the initial access control policy.

6. The method according to claim 2, characterized in that, The access security verification based on the user's attributes and the final access control policy using attribute-based encryption and zero-trust mechanisms includes: The data encryption module constructs a policy tree based on the user attribute combination rules defined by the logic gates, and uses the public key to encrypt the policy tree and the data to generate ciphertext; Generate a user private key based on user attributes and policy tree, and send the generated ciphertext and user private key to the user; Zero-trust dynamic verification is performed by calculating the trust value based on the permission matching degree of the final access control policy and the latest security risk value. After successful verification, the digital twin data platform executes the task and returns the task execution result.

7. The method according to claim 1, characterized in that, The task operation types include read operations, write operations, or execution operations; the association relationships include transitivity rules, reverse constraint rules, and / or conflict resolution rules.

8. A task-driven digital twin information access control system, comprising a processor, a memory, and computer instructions stored in the memory, characterized in that, The processor is configured to execute the computer instructions, and when the computer instructions are executed, the system implements the steps of the method as described in any one of claims 1 to 7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the method as described in any one of claims 1 to 7.

10. A computer program product comprising computer instructions, characterized in that, When executed by a processor, the computer instructions implement the steps of the method according to any one of claims 1 to 7.