A data management method and system based on machine learning

Through data management methods based on machine learning, we build knowledge graphs and deploy federated learning mechanisms to optimize data processing and queries. Combined with attribute-based encryption technology, we solve the trade-off problem between data privacy protection and efficiency in traditional systems, achieving efficient and Secure and smart data management.

CN118312626BActive Publication Date: 2024-10-08CLOUD WAREHOUSE (GUANGDONG) DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410467772.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-18
Publication Date
2024-10-08
Estimated Expiration
2044-04-18

AI Technical Summary

Technical Problem

Traditional data management systems face the challenges of data sharing, privacy protection, low query efficiency, and complex data relationship resolution when processing large-scale, distributed and heterogeneous data. It is difficult to provide efficient data access and processing capabilities while ensuring data security. .

Method used

Adopt data management methods based on machine learning, build knowledge graphs through deep learning, reinforcement learning and multi-dimensional data analysis technologies, deploy federated learning mechanisms, use graph neural networks to optimize knowledge graphs, and combine attribute-based encryption technology to achieve data access control and real-time monitoring and adjust system performance.

Benefits of technology

It achieves the efficient management and utilization of distributed and heterogeneous data resources on the premise of protecting data privacy, dynamically optimizes data processing and query, improves the accuracy and efficiency of data query, and ensures data security and access control flexibility. and accuracy, significantly improving the overall performance and security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118312626B_ABST
    Figure CN118312626B_ABST
Patent Text Reader

Abstract

The present invention proposes a data management method and system based on machine learning, the method includes: constructing an initial knowledge graph; deploying a federated learning client on each data node to coordinate each node to perform model training and update according to a unified protocol; using a graph neural network to construct an adaptive relationship graph neural network to optimize the knowledge graph; designing an encrypted access strategy based on user attributes, parsing and executing the encrypted access strategy using the knowledge graph; collecting performance data in real time, building a monitoring framework to analyze the data and determine whether there are abnormalities; designing a user interaction interface based on permission-based secure access; designing a system architecture that supports deployment in a cloud environment, a private data center, or a hybrid environment. The present invention significantly improves the overall performance and security of the data management system, while maintaining the flexibility and scalability of system operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of artificial intelligence, and in particular to a data management method and system based on machine learning. Background Art

[0002] In today's data-intensive social environment, with the rapid development of big data and artificial intelligence technologies, the design and implementation of data management systems (DMS) face unprecedented challenges and opportunities. Traditional data management systems usually rely on centralized database structures, which show obvious deficiencies when dealing with large-scale, distributed, and heterogeneous data sets. For example, centralized systems are inefficient in data sharing, data privacy protection, and processing complex data relationships and queries. In addition, with the implementation of data privacy regulations such as GDPR and CCPA, data privacy protection has become a core requirement for system design, but traditional DMSs find it difficult to provide efficient data access and processing capabilities while ensuring data security.

[0003] In the prior art, although there have been attempts to use encryption technology and access control mechanisms to improve data security and privacy, these methods usually sacrifice the operational efficiency of the system and are difficult to adapt to the rapidly changing data characteristics and access requirements. In addition, effective data management also requires effective analysis and utilization of complex relationships between data. Existing relational database management systems (RDBMS) and their query languages ​​(such as SQL) face many challenges when processing unstructured or semi-structured data, especially in terms of semantic understanding and data association.

[0004] In this context, a data management system that can fully utilize modern computing technologies, such as distributed computing, artificial intelligence, and machine learning, is needed to support efficient, secure, and intelligent data management. Such a system should be able to effectively manage and utilize distributed and heterogeneous data resources while protecting data privacy, while providing dynamic data processing and query optimization mechanisms to adapt to the ever-changing data usage environment and business needs. Summary of the invention

[0005] The purpose of the present invention is to design a data management method and system based on machine learning, which solves the problems existing in the prior art in a targeted manner by integrating deep learning, reinforcement learning and multidimensional data analysis technology.

[0006] In order to achieve the above object, the present invention provides a data management method based on machine learning in a first aspect, the method comprising:

[0007] Step 1: Build the initial knowledge graph, including:

[0008] S1.1. Obtain the original data set D = {d1, d2, ..., d n}, where each d i Represents data items, then extracts and standardizes each data item to obtain a standardized text set T;

[0009] S1.2. Use the deep learning model to extract key entities from the text set T to obtain the entity set E;

[0010] S1.3, the text set T and the entity set E are used to extract semantic relations from entity pairs using an adaptive graph neural network model, and the entity relationship set R = {(e i ,rel,e j )}, which means as follows:

[0011] rel=GNN(e i ,e j ,T,φ)

[0012] Among them, φ represents the parameters of the adaptive graph neural network model, e i and e j They represent entity pairs respectively, and rel represents the extracted relationship type;

[0013] S1.4. Construct a knowledge graph G based on the text set T and the entity relationship set R, where entities are nodes and relationships are edges linking related entities.

[0014] Step 2: Deploy the federated learning client on each data node to coordinate each node to perform model training and updates according to a unified protocol, including:

[0015] S2.1. Assume that each data node i is equipped with local data D i and initial model parameters

[0016] S2.2. Use privacy protection technology to use local data D for each data node i i Perform training to obtain local updated model parameters

[0017] S2.3. Use secure multi-party computing to update model parameters locally Aggregate the model updates of each node to obtain the aggregated global model parameter Θ (t+1) , which is expressed as follows:

[0018]

[0019] Where N represents the total number of nodes involved in the calculation, Θ (t+1) Represents the model parameters after global aggregation;

[0020] S2.4. Use the Advanced Encryption Standard to encrypt the unique key shared by each data node, and then use data compression technology to reduce the global model parameter Θ (t+1) , and then distribute the compressed and encrypted global model parameters Θ (t+1) After reaching each data node, the data node will use the corresponding key to decrypt and decompress the global model parameter Θ (t+1) ;

[0021] S2.5, each data node has a global model parameter Θ after decompression (t+1) Perform verification;

[0022] Step 3: Use graph neural network to build an adaptive relational graph neural network to optimize the knowledge graph, including:

[0023] S3.1. Each entity v and relation r is initialized as a vector and

[0024] S3.2. Build an adaptive graph neural network, and update the embedding of entities and relationships at each layer. It is expressed as follows:

[0025]

[0026] Among them, σ represents the activation function, N r (v) represents the set of neighbor entities connected to entity v through relationship r, and They represent the learning parameters for the relation type r in this layer respectively;

[0027] S3.3, introduce an adaptive weight learning mechanism for the relationship type r, expressed as follows:

[0028]

[0029] Among them, W α and b α They represent learning parameters respectively, and z represents the global context vector, which is used to evaluate the importance of different relations;

[0030] Step 4: Design an encrypted access strategy based on user attributes, and use the knowledge graph to parse and execute the encrypted access strategy, including:

[0031] S4.1. Define user attributes A = {a1, a2, ..., a n}, set access policy P;

[0032] S4.2. Use the attribute-based encryption algorithm to encrypt the original data set D and obtain the encryption result E(d i );

[0033] S4.3. The authority server generates and distributes the corresponding private key SK according to the user attributes. user ;

[0034] Step 5: Collect performance data in real time and build a monitoring framework to analyze the data and determine whether there are any anomalies, including:

[0035] S5.1. Construct a comprehensive performance index, expressed as follows:

[0036]

[0037] Among them, T response represents the query response time, and the larger the reciprocal value, the better the performance; L represents the current active processing time of the system, and its reciprocal represents the higher the system idleness, the better; Θ represents the amount of data processed by the system per unit time, and it is directly taken as a value, indicating that the higher the throughput, the better; E represents the error rate, 1-E represents the success rate, and the higher the value, the better; U represents user satisfaction, and it is directly taken as a value, the higher the better; w1, w2, w3, w4, w5 represent weight coefficients respectively, which are adjusted according to the importance of each indicator in the system performance evaluation;

[0038] S5.2, collect performance data regularly, send it to the data analysis server through a secure channel, and analyze the performance data through stream data processing technology;

[0039] S5.3. Establish a normal operating range based on historical performance data. When an anomaly is detected, the system automatically generates an alarm. At the same time, based on the real-time analysis results, the system automatically adjusts the configuration or resource allocation;

[0040] Step 6: Design a user interaction interface based on permission-based secure access, including:

[0041] S6.1. Generate an access token for each user, where the access token is generated based on the user's credentials and defines the user's access rights;

[0042] S6.2. Provide a SQL-based query interface, allowing users to use standard SQL statements to query data;

[0043] S6.3, verifying the data access request based on the user's access token and the encrypted access policy of step 4;

[0044] S6.4. Design a responsive user interface to provide data browsing and query functions;

[0045] Step 7: Design a system architecture that supports deployment in a cloud environment, private data center, or hybrid environment, including:

[0046] S7.1. Configure cloud infrastructure, including cloud service providers and cloud resources;

[0047] S7.2. Containerize services and use Kubernetes for deployment management;

[0048] S7.3. Automate the deployment of monitoring tools and the setting of thresholds and alerts.

[0049] Furthermore, the S1.2 is specifically expressed as:

[0050] E=BERT(T,θ)

[0051] Among them, θ represents the model parameters and E represents the recognized entity set.

[0052] Furthermore, the system configuration of the local data in S2.1 includes a security protocol, a data synchronization frequency, and a selection criterion for nodes participating in the calculation.

[0053] Furthermore, the unique key shared by each data node is encrypted using the Advanced Encryption Standard, as shown below:

[0054] E(Θ (t+1) )=AES-Encrypt(Θ (t+1) ,K i )

[0055] Among them, K i is the key pre-shared with data node i, AES stands for Advanced Encryption Standard, E(Θ (t+1) ) represents the encrypted global model parameters;

[0056] The data node will use the corresponding key to decrypt and decompress the global model parameter Θ (t+1) , which is expressed as follows:

[0057]

[0058] Furthermore, the S4.2 further includes: for each data item d i , calculate the corresponding encryption result E(d i ), which is expressed as follows:

[0059] E(d i )=Encrypt PK (d i ,P i )

[0060] Where P i Represents data item d i Specific access policies.

[0061] Furthermore, the step 4 further includes:

[0062] When a user accesses the encrypted data E(d i ), if the current user attribute satisfies d i The access policy P i , then use its private key SK user The decrypted data is represented as follows:

[0063]

[0064] If the user attribute and P i If the match is successful, the decryption operation succeeds, otherwise it fails;

[0065] Among them, the private key SK user The calculation of is as follows:

[0066] SK user =KeyGen MK (attributes user )

[0067] Among them, MK represents the master private key, attributes user Represents user attributes.

[0068] Furthermore, the stream data processing technology is represented as follows:

[0069] S t =αX t +(1-α)S t-1

[0070] Among them, S t represents the adjusted smoothing index value, X t It represents the original value of the indicator collected in real time, and α (0<α<1) represents the smoothing factor, which is used to adjust the impact of historical data on the current estimate.

[0071] Furthermore, S6.1 is expressed as follows:

[0072] Token i =Encrypt(Credentials i ,Secret)

[0073] Among them, Credentialss i Represents the user's login credentials, and Secret is the encryption key retained by the server;

[0074] Said S6.2 is expressed as follows:

[0075] Q=ConvertToGraphQuery(SQL_Query)

[0076] Among them, SQL_Query represents the SQL statement submitted by the user, and Q represents the converted graph database query language expression;

[0077] Said S6.3 is expressed as follows:

[0078] AccessGranted=Evaluate(Token i ,Attributes,Policy)

[0079] Among them, Attributes represents the user's attribute set, Policy represents the data-specific access policy, and AccessGranted represents a Boolean value indicating whether access is authorized.

[0080] Furthermore, the user identity authentication and authorization are performed based on the OAuth 2.0 protocol.

[0081] In a second aspect of the present invention, a data management system based on machine learning is provided, comprising a computer-readable storage medium and a processor, wherein the computer-readable storage medium is used to store an executable program; the processor is used to read the executable program stored in the computer-readable storage medium and execute the above-mentioned data management method based on machine learning.

[0082] The beneficial technical effects of the present invention are at least as follows:

[0083] (1) The present invention deploys a federated learning mechanism on each participating node, allowing multiple data management nodes to jointly learn and optimize the global knowledge graph structure without directly exchanging raw data. This not only protects data privacy, but also improves the accuracy and efficiency of data queries through collaborative learning, solving the trade-off problem between data privacy and efficiency in traditional systems.

[0084] (2) The present invention uses graph neural networks to enhance the semantic understanding and data association capabilities of knowledge graphs. The system can dynamically optimize the knowledge graph structure to adapt to changes in real-time data streams and user query behaviors. This solves the shortcomings of existing technologies in processing complex data relationships and providing semantic query support.

[0085] (3) The present invention combines knowledge graph and attribute-based encryption technology to achieve an accurate and flexible data access control mechanism. Data owners can define detailed access policies, which are directly embedded in data encryption and intelligently parsed and executed by the knowledge graph. This not only ensures the high security of data, but also improves the flexibility and accuracy of access control.

[0086] (4) The present invention significantly improves the overall performance and security of the data management system while maintaining the flexibility and scalability of system operation, providing an efficient, secure and intelligent solution for processing large-scale, distributed and heterogeneous data sets. The combination of these technologies overcomes the core problems existing in the prior art, especially in terms of data privacy protection, data processing efficiency and data relationship management. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] The present invention is further described using the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present invention. A person skilled in the art can obtain other drawings based on the following drawings without creative work.

[0088] Figure 1 This is a flow chart of a data management method based on machine learning in the present invention. DETAILED DESCRIPTION

[0089] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0090] In one or more embodiments, Figure 1 As shown, the present invention discloses a data management method based on machine learning, which includes steps one to seven:

[0091] Step 1: Build the initial knowledge graph, including:

[0092] S1.1. Obtain the original data set D = {d1, d2, ..., d n}, where each d i Represents data items, then extracts and standardizes each data item to obtain a standardized text set T;

[0093] S1.2. Use a deep learning model to extract key entities from the text set T to obtain an entity set E, such as a pre-trained BERT model, to extract key entities from the text, which is specifically expressed as:

[0094] E=BERT(T,θ)

[0095] Among them, θ represents the model parameters, E represents the identified entity set;

[0096] S1.3, the text set T and the entity set E are used to extract semantic relations from entity pairs using an adaptive graph neural network model, and the entity relationship set R = {(e i ,rel,ej )}, which means as follows:

[0097] rel=GNN(e i ,e j ,T,φ)

[0098] Among them, φ represents the parameters of the adaptive graph neural network model, e i and e j They represent entity pairs respectively, and rel represents the extracted relationship type;

[0099] S1.4. Construct a knowledge graph G based on the text set T and the entity relationship set R, where entities are nodes and relationships are edges linking related entities.

[0100] Preferably, graph construction can be achieved through a graph database such as Neo4j.

[0101] Step 2: Deploy the federated learning client on each data node to coordinate each node to perform model training and updates according to a unified protocol, including:

[0102] S2.1. Assume that each data node i is equipped with local data D i and initial model parameters Among them, the system configuration of local data includes security protocols, data synchronization frequency, and node selection criteria for participating in the calculation;

[0103] S2.2. Use privacy protection technology to use local data D for each data node i i Perform training to obtain local updated model parameters The locally updated model parameters are expressed as:

[0104]

[0105] in, is the model parameter at time t, η is the learning rate, L is the loss function, is the gradient of the loss function;

[0106] S2.3. Use secure multi-party computing technology to update model parameters locally Aggregate the model updates of each node to obtain the aggregated global model parameter Θ (t+1) , which is expressed as follows:

[0107]

[0108] Where N represents the total number of nodes involved in the calculation, Θ (t+1) Represents the model parameters after global aggregation;

[0109] S2.4, in the global model parameter Θ(t+1) After the aggregation is completed, end-to-end encryption is first performed. The Advanced Encryption Standard (AES) is used to encrypt the unique key shared with each node, ensuring that only the target node can decrypt the model parameters it receives. The encryption formula can be expressed as follows:

[0110] E(Θ (t+1) )=AES-Encrypt(Θ (t+1) ,K i )

[0111] Among them, K i is the key pre-shared with data node i, AES stands for Advanced Encryption Standard, E(Θ (t+1) ) represents the encrypted global model parameters;

[0112] Then, data compression techniques are used to reduce the global model parameter Θ (t+1) , and then distribute the compressed and encrypted global model parameters Θ (t+1) After reaching each data node, the data node will use the corresponding key to decrypt and decompress the global model parameter Θ (t+1) , the data node will use the corresponding key to decrypt and decompress the global model parameter Θ (t+1) , which is expressed as follows:

[0113]

[0114] Among them, the unique key shared by each data node is encrypted using the Advanced Encryption Standard;

[0115] Preferably, popular compression algorithms such as Brotli or Zstandard can be used, which are particularly suitable for compressing data of the type of machine learning model parameters.

[0116] S2.5, each data node has a global model parameter Θ after decompression (t+1) Perform verification;

[0117] Specifically, after decryption, each node verifies the decompressed model to ensure that the integrity and consistency of the model have not been tampered with. To this end, a hash-based message authentication code (HMAC) is used to verify the integrity of the model data, where HMAC combines the node's private key and model data to generate a verification tag, and a blockchain-based audit log system is introduced. The detailed information of each model distribution, including timestamp, node identification, model version, and HMAC verification tag, is recorded on a decentralized blockchain. This provides tamper-proof evidence for model distribution and enhances the transparency and security of the entire system.

[0118] Step 3: Use graph neural network to build an adaptive relational graph neural network to optimize the knowledge graph, including:

[0119] S3.1. Each entity v and relation r is initialized as a vector and

[0120] Specifically, these initial embeddings are usually pre-trained based on the attributes of entities and the types of relations. The embeddings of entities and relations are obtained by using pre-trained language models such as BERT, which helps capture the rich semantic information of entities and relations.

[0121] S3.2. Build an adaptive graph neural network, and update the embedding of entities and relationships at each layer. It is expressed as follows:

[0122]

[0123] Among them, σ represents the activation function, N r (v) represents the set of neighbor entities connected to entity v through relationship r, and They represent the learning parameters for the relation type r in this layer respectively;

[0124] S3.3, introduce an adaptive weight learning mechanism for the relationship type r, expressed as follows:

[0125]

[0126] Among them, W α and b α They represent learning parameters respectively, and z represents the global context vector, which is used to evaluate the importance of different relations;

[0127] Step 4: Design an encrypted access strategy based on user attributes, and use the knowledge graph to parse and execute the encrypted access strategy, including:

[0128] S4.1. Define user attributes A = {a1, a2, ..., a n}, set access policy P;

[0129] Specifically, these attributes correspond to the user's role, department, or other relevant authority identifiers.

[0130] The access policy P is in the form of a Boolean expression, in which the variables involved are user attributes. For example, P(a1,a3)=(a1="Finance")$\wedge\left(a_3\geq"\right.$Level$\left.5"\right)$ means that only employees at or above level 5 in the finance department can access it.

[0131] S4.2. Use the attribute-based encryption algorithm to encrypt the original data set D and obtain the encryption result E(d i ), for each data item d i , calculate the corresponding encryption result E(d i ), where the attribute-based encryption algorithm is used to encrypt the data D. The core of encryption is to generate a public master public key PK and a master private key MK known only to the authority server, as shown below:

[0132] E(d i )=Encrypt PK (d i ,P i )

[0133] Where P i Represents data item d i Specific access policies.

[0134] S4.3. The authority server generates and distributes the corresponding private key SK according to the user attributes. user , which is expressed as follows:

[0135] SK user =KeyGen MK (attributes user )

[0136] S4.4. When a user attempts to access encrypted data E(d i ). If the user's attributes satisfy d i The access policy P i , then use its private key SK user Decrypted data:

[0137]

[0138] If the user attribute is the same as P i If the two match, the decryption operation succeeds, otherwise it fails.

[0139] Step 5: Collect performance data in real time and build a monitoring framework to analyze the data and determine whether there are any anomalies, including:

[0140] S5.1. Construct a comprehensive performance index, expressed as follows:

[0141]

[0142] Among them, T responserepresents the query response time, and the larger the reciprocal value, the better the performance; L represents the current active processing time of the system, and its reciprocal represents the higher the system idleness, the better; Θ represents the amount of data processed by the system per unit time, and it is directly taken as a value, indicating that the higher the throughput, the better; E represents the error rate, 1-E represents the success rate, and the higher the value, the better; U represents user satisfaction, and it is directly taken as a value, the higher the better; w1, w2, w3, w4, w5 represent weight coefficients respectively, which are adjusted according to the importance of each indicator in the system performance evaluation;

[0143] Specifically, for example, if the query response time has a greater impact on the user experience, a greater weight may be assigned to w1.

[0144] S5.2, collect performance data regularly and send it to the data analysis server through a secure channel. Analyze the performance data through stream data processing technology, as shown below:

[0145] S t =αX t +(1-α)S t-1

[0146] Among them, S t is the adjusted smoothing index value, X t is the original value of the indicator collected in real time, and α (0<α<1) is a smoothing factor used to adjust the impact of historical data on the current estimate.

[0147] S5.3. Establish a normal operating range based on historical performance data. When an anomaly is detected, the system automatically generates an alarm. At the same time, based on the real-time analysis results, the system automatically adjusts the configuration or resource allocation;

[0148] Step 6: Design a user interaction interface based on permission-based secure access, including:

[0149] S6.1. Generate an access token for each user, where the access token is generated based on the user's credentials and defines the user's access rights;

[0150] Specifically, the OAuth 2.0 protocol is used for user authentication and authorization. An access token is generated for each user. This token is generated based on the user's credentials and defines the user's access rights, as shown below:

[0151] Token i =Encrypt(Credentials i ,Secret)

[0152] Among them, Credentials i The user's login credentials, such as username and password. Secret is the encryption key retained by the server.

[0153] S6.2. Provide a SQL-based query interface, allowing users to use standard SQL statements to query data, as shown below:

[0154] Q=ConvertToGraphQuery(SQL_Query)

[0155] Among them, SQL_Query is the SQL statement submitted by the user, and Q is the converted graph database query language expression.

[0156] S6.3. Verify the data access request based on the user's access token and the encrypted access policy of step 4, as shown below:

[0157] AccessGranted=Evaluate(Token i ,Attributes,Policy)

[0158] Among them, Attributes represents the user's attribute set, Policy is the data-specific access policy, and AccessGranted is a Boolean value indicating whether access is authorized.

[0159] S6.4. Design a responsive user interface to provide data browsing and query functions;

[0160] Specifically, a responsive user interface is designed to provide intuitive data browsing and query functions. The interface integrates a user feedback mechanism to allow users to provide feedback on their experience.

[0161] Feedback_Record=CollectFeedback(User_Actions,Interface_State)

[0162] Among them, User_Actions represents the user's behavior on the interface, Interface_State represents the current state of the interface, and Feedback_Record is the collected user feedback data.

[0163] Step 7: Design a system architecture that supports deployment in a cloud environment, private data center, or hybrid environment, including:

[0164] S7.1. Configure cloud infrastructure, including cloud service providers and cloud resources;

[0165] Specifically, evaluate and select a cloud service provider (such as Amazon Web Services, Google Cloud Platform, or Microsoft Azure) that provides high availability, reliability, and scalability. Select an appropriate data center based on expected geographic coverage and cost-benefit analysis.

[0166] Configure virtual machine instances with corresponding computing capabilities according to system requirements. Select appropriate instance types (such as computing optimization, memory optimization) to meet the performance requirements of different services.

[0167] Set up private subnets and network access control lists (NACLs), and configure load balancers to distribute inbound traffic and ensure high availability of services.

[0168] S7.2. Containerize services and use Kubernetes for deployment management;

[0169] Specifically, each component in the system (such as database, backend service, frontend application, etc.) is containerized, and each component is packaged as a Docker container image, as shown below:

[0170] Docker_Image=Build(Source_Code,Dependencies)

[0171] Among them, Source_Code and Dependencies represent the source code of the service and related dependency files respectively.

[0172] Deploy a Kubernetes cluster on the selected cloud platform, configure nodes and Pods to run containerized services, and manage container deployment, expansion, and updates through Kubernetes deployment configurations (Deployments) and service configurations (Services).

[0173] S7.3. Automate the deployment of monitoring tools and the setting of thresholds and alerts.

[0174] Specifically, use Infrastructure as Code (IaC) tools: Use tools such as Terraform or AWS CloudFormation to write and maintain infrastructure code for one-click deployment and configuration. Deploy monitoring tools: such as Prometheus for collecting system metrics and Grafana for data visualization. Set thresholds and alarms to monitor resource usage (CPU, memory, disk I, etc.) in real time and automatically trigger alarms when performance degrades.

[0175] As an embodiment of the present invention, Horizontal Pod Autoscaler (HPA) of Kubernetes is used to automatically increase or decrease the number of Pods according to the load. The CI / CD pipeline (using Jenkins, GitLab Cl, etc.) is configured to automate the process of code submission to deployment. Unit tests and integration tests are automatically run after the code is updated to ensure the quality of deployment.

[0176] In a second aspect of the present invention, a data management system based on machine learning is provided, comprising a computer-readable storage medium and a processor, wherein the computer-readable storage medium is used to store an executable program; the processor is used to read the executable program stored in the computer-readable storage medium and execute the above-mentioned data management method based on machine learning.

[0177] In summary, the present invention provides the basic data structure of the system by constructing an initial knowledge graph. This step uses natural language processing and machine learning technology to automatically identify and sort out the key entities and relationships in the data, providing semantic support and structural basis for subsequent data operations. Subsequently, a federated learning framework is deployed to establish a collaborative mechanism to protect data privacy between the various nodes of the system, so that these nodes can jointly optimize and update the global knowledge graph without sharing the original data. Next, a graph neural network is introduced to optimize the knowledge graph. This step enables the knowledge graph to dynamically adjust its structure according to the data access mode and query history, further improving the query efficiency and flexibility of data management. In addition, the implementation of the attribute-based encryption strategy enhances the security of the data. By combining with the knowledge graph, the data access control is more accurate and flexible, ensuring the data security and user access rights management in the system. The real-time monitoring and feedback mechanism of the system ensures the effectiveness of all operations and the continuous optimization of system performance. This mechanism automatically adjusts the federated learning parameters and the graph update strategy by collecting system operation data to ensure the adaptability and stability of the system. The data access and user interface provides an intuitive operating environment, allowing end users to easily perform complex queries and data management, while enhancing the user experience through a visual knowledge graph. Finally, the flexibility of system deployment and expansion ensures that the solution can be widely used in different hardware and network environments, including cloud platforms, private data centers, or hybrid environments, ensuring the scalability of the system and its ability to adapt to different scale requirements. The integration of these steps not only solves the problem that a single technology cannot cover, but also improves the overall performance and user experience of the entire system through the integration of multiple technologies. In this way, each step contributes a key link to the overall functionality and performance of the system, and together promotes the realization of a secure, efficient, and intelligent data management system.

[0178] The above disclosures are only some preferred embodiments of the present invention, which certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of the above embodiments and equivalent changes made according to the claims of the present invention are still within the scope of the invention.

Claims

1. Data management methods based on machine learning, It is characterized in that The method comprises: Step 1: Build the initial knowledge graph, including: S1.

1. Obtaining the original dataset , where each Represents data items, and then extracts and standardizes each data item to obtain a standardized text set T; S1.2, extract key entities from the text set T using a deep learning model to obtain an entity set E; S1.

3. Use the adaptive graph neural network model to extract semantic relations from entity pairs in the text set T and entity set E to obtain the entity relationship set , which is expressed as follows: ; in, represents the parameters of the adaptive graph neural network model, and They represent entity pairs respectively, and rel represents the extracted relationship type; S1.

4. Construct a knowledge graph G based on the text set T and the entity relationship set R, where entities are nodes and relationships are edges linking related entities. Step 2: Deploy the federated learning client on each data node to coordinate each node to perform model training and updates according to a unified protocol, including: S2.

1. Assume that each data node i is equipped with local data and initial model parameters ; S2.

2. Use privacy protection technology to use local data for each data node i Perform training to obtain local updated model parameters ; S2.

3. Use secure multi-party computing technology to update model parameters locally Aggregate the model updates of each node to obtain the aggregated global model parameters , which is expressed as follows: ; Where N represents the total number of nodes involved in the calculation. Represents the model parameters after global aggregation; S2.

4. Use the Advanced Encryption Standard to encrypt the unique key shared by each data node, and then use data compression technology to reduce the global model parameters. , and redistribute the compressed and encrypted global model parameters After reaching each data node, the data node will use the corresponding key to decrypt and decompress the global model parameters ; S2.

5. Global model parameters after decompression for each data node Perform verification; Step 3: Use graph neural network to build an adaptive relational graph neural network to optimize the knowledge graph, including: S3.

1. Each entity v and relation r is initialized as a vector and ; S3.2, build an adaptive graph neural network, each layer Update entity and relationship embeddings , which is expressed as follows: ; in, represents the activation function, represents the set of neighbor entities connected to entity v through relationship r, and They represent the learning parameters for the relation type r in this layer respectively; S3.3, introduce an adaptive weight learning mechanism for the relationship type r, expressed as follows: ; in, and They represent learning parameters respectively, and z represents the global context vector, which is used to evaluate the importance of different relations; Step 4: Design an encrypted access strategy based on user attributes, and use the knowledge graph to parse and execute the encrypted access strategy, including: S4.

1. Define user attributes , set access policy P; S4.

2. Use the attribute-based encryption algorithm to encrypt the original data set D and obtain the encrypted result ; S4.

3. The authority server generates and distributes the corresponding private key based on the user attributes. ; Step 5: Collect performance data in real time and build a monitoring framework to analyze the data and determine whether there are any anomalies, including: S5.

1. Construct a comprehensive performance index, expressed as follows: ; in, It represents the query response time. The larger the reciprocal value is, the better the performance is. L represents the current active processing time of the system. The higher the reciprocal value is, the better the system idleness is. It indicates the amount of data processed by the system per unit time. It is a direct value, indicating that the higher the throughput, the better. E indicates the error rate. It represents the success rate, the higher the value, the better; U represents the user satisfaction, which is directly taken, the higher the better; They represent weight coefficients respectively, which are adjusted according to the importance of each indicator in the system performance evaluation; S5.2, regularly collect performance data, and send it to the data analysis server through a secure channel, and analyze the performance data through stream data processing technology; S5.

3. Establish a normal operating range based on historical performance data. When an anomaly is detected, the system automatically generates an alarm. At the same time, based on the real-time analysis results, the system automatically adjusts the configuration or resource allocation; Step 6: Design a user interaction interface based on permission-based secure access, including: S6.

1. Generate an access token for each user, where the access token is generated based on the user's credentials and defines the user's access rights; S6.

2. Provide a SQL-based query interface, allowing users to use standard SQL statements to query data; S6.3, verifying the data access request based on the user's access token and the encrypted access policy of step 4; S6.

4. Design a responsive user interface to provide data browsing and query functions; Step 7: Design a system architecture that supports deployment in a cloud environment, private data center, or hybrid environment, including: S7.

1. Configure cloud infrastructure, including cloud service providers and cloud resources; S7.

2. Containerize services and use Kubernetes for deployment management; S7.

3. Automate the deployment of monitoring tools and the setting of thresholds and alerts.

2. The data management method based on machine learning according to claim 1, It is characterized in that The S1.2 is specifically expressed as: ; in, represents the model parameters, and E represents the recognized entity set.

3. The data management method based on machine learning according to claim 1, It is characterized in that The system configuration of the local data in S2.1 includes a security protocol, a data synchronization frequency, and a selection standard for nodes participating in the calculation.

4. The data management method based on machine learning according to claim 1, It is characterized in that The unique key shared by each data node is encrypted using the Advanced Encryption Standard, as shown below: ; in, is the key pre-shared with data node i, AES stands for Advanced Encryption Standard, Represents the encrypted global model parameters; The data node will use the corresponding key to decrypt and decompress the global model parameters , which is expressed as follows: 。 5. The data management method based on machine learning according to claim 1, It is characterized in that S4.2 further includes: for each data item , calculate the corresponding encryption result , which is expressed as follows: ; in Represents a data item Specific access policies.

6. The data management method based on machine learning according to claim 1, It is characterized in that The step 4 further includes: When users access encrypted data , if the current user attributes meet Access policy , then use its private key The decrypted data is represented as follows: ; If the user attribute is If the match is successful, the decryption operation succeeds, otherwise it fails; Among them, the private key The calculation of is as follows: ; Among them, MK represents the master private key, Represents user attributes.

7. The data management method based on machine learning according to claim 1, It is characterized in that The stream data processing technology is represented as follows: ; in, represents the adjusted smoothing indicator value, Indicates the original value of the indicator collected in real time. represents the smoothing factor, and , used to adjust the impact of historical data on current estimates.

8. The data management method based on machine learning according to claim 1, It is characterized in that Said S6.1 is expressed as follows: ; in, Represents the user's login credentials, and Secret is the encryption key retained by the server; Said S6.2 is expressed as follows: ; Among them, SQL_Query represents the SQL statement submitted by the user, and Q represents the converted graph database query language expression; Said S6.3 is expressed as follows: ; Among them, Attributes represents the user's attribute set, Policy represents the data-specific access policy, and AccessGranted represents a Boolean value indicating whether access is authorized.

9. The data management method based on machine learning according to claim 1, It is characterized in that The user identity authentication and authorization are performed based on the OAuth2.0 protocol.

10. A data management system based on machine learning, comprising a computer-readable storage medium and a processor, It is characterized in that The computer-readable storage medium is used to store an executable program; the processor is used to read the executable program stored in the computer-readable storage medium and execute the machine learning-based data management method described in any one of claims 1-9.