Data classification method, data asset management platform, device, equipment and medium

By combining a natural language data classification model and a set of regular expressions, and using confidence rules to determine data categories, this method solves the problem of poor accuracy in classifying semi-structured and unstructured data in traditional methods, and achieves efficient and accurate data classification.

CN117633230BActive Publication Date: 2026-11-24北京自如信息科技有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311657591.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-05
Publication Date
2026-11-24
Estimated Expiration
2043-12-05

Smart Images

  • Figure CN117633230B_ABST
    Figure CN117633230B_ABST
Patent Text Reader

Abstract

This application relates to the field of data recognition technology, and discloses a data classification method, a data asset management platform, apparatus, equipment, and medium. This application utilizes a natural language data classification model with complex data processing capabilities and high accuracy to classify complex unstructured data, improving the accuracy of classification for complex unstructured data. It uses regular expressions to classify semi-structured or structured data and introduces confidence level calculations to ensure the accuracy of data classification. The natural language data classification model is only used to identify the second data when the confidence level of the identified data category is low, avoiding the use of the natural language data classification model to classify data of all data structures, thus accelerating the efficiency of data classification. Overall, it achieves the goal of efficient and accurate classification of data with different data structures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data identification technology, specifically to data classification methods, data asset management platforms, devices, equipment, and media. Background Technology

[0002] Data asset management refers to a set of business functions for planning, controlling, and delivering data and information assets. This includes developing, implementing, and monitoring plans, policies, programs, projects, processes, methods, and procedures related to data, thereby controlling, protecting, delivering, and enhancing the value of data assets to bring economic benefits to the organization and enterprise. Therefore, identifying and classifying data with different data structures in different types of databases is particularly important when conducting data asset management.

[0003] Traditional data classification methods often suffer from low recognition rates and poor accuracy when dealing with semi-structured and unstructured data, that is, more complex data. In some cases, they are even unable to identify the data for classification.

[0004] Therefore, how to accurately classify data with different data structures has become an urgent problem to be solved. Summary of the Invention

[0005] In view of this, this application provides a data classification method, a data asset management platform, an apparatus, equipment, and a medium to solve the problem of how to accurately classify data with different data structures.

[0006] Firstly, this application provides a data classification method applied to a data asset management platform, the method comprising: Obtain the data structure of the data to be classified; If there is a first piece of data in the data to be classified that is unstructured, the first piece of data is sent to a pre-trained natural language data classification model to obtain the data category of the first piece of data; If there is a second data in the data to be classified that has a structured or semi-structured data structure, then the initial data category of the second data is identified according to the pre-constructed set of regular expressions. Based on the pre-set confidence rules, determine the first confidence level corresponding to the initial data category; If the first confidence level is less than the first threshold, then the second data is classified using a natural language data classification model, and the second confidence level corresponding to the initial data category is determined. Based on the first confidence level and the second confidence level, determine the total confidence level corresponding to the initial data category of the second data; If the total confidence level is greater than the first threshold, then the initial data category is determined as the data category of the second data. The data that has already been classified in the data to be classified is stored in association with its own data category.

[0007] The above technical solution utilizes a natural language data classification model with sophisticated data processing capabilities and high accuracy to classify complex unstructured data, thereby improving the accuracy of classification. Furthermore, when classifying semi-structured or structured data using a set of regular expressions, the calculation of confidence scores corresponding to data categories is introduced. These confidence scores determine the reliability of the data category classification, further improving the accuracy of classification. Moreover, by combining the use of a more efficient set of regular expressions for data classification, the natural language data classification model is only used to identify the second data category when the confidence score of the second data category is low—that is, when the initial confidence score of the first data category is less than a first threshold. This avoids using the natural language data classification model to classify all data structures, accelerating the data classification process and achieving the overall goal of efficient and accurate classification of structured data.

[0008] In some optional embodiments, the data structure for obtaining the data to be classified includes: Select the data query strategy corresponding to the target database based on the preset time period and the database type of the target database; Based on the data query strategy, extract metadata information, data sets, and data structure identification information from the target database; Based on metadata information, extract the original data to be classified from the dataset; The original data to be classified is processed according to the preprocessing operations corresponding to the data structure identification information; The data format of the processed original data to be classified is converted into the target data format to obtain the data to be classified. The data structure of the data to be classified is determined based on the data structure identifier information.

[0009] Specifically, by periodically utilizing data query strategies corresponding to the target database, metadata, datasets, and data structure identifiers are extracted to obtain the raw data to be classified. This raw data is then preprocessed to obtain the final classified data, ensuring timely updates to the database metadata. This consistency between the data to be classified and the actual data in the database guarantees that the data to be classified is correct and valid, thus improving the accuracy of data classification. Storing the acquired data in a metadata storage database provides data support for data asset management and data auditing.

[0010] In some optional embodiments, determining the first confidence level corresponding to the initial data category according to a preset confidence rule includes: The total amount of data in the data table to which the second data belongs, the first amount of sampled data in the data table, the second amount of data in the data table after removing null values, and the third amount of data in the data table after removing null values ​​that are matched by regular expressions in the set of regular expressions; The first confidence level corresponding to the initial data category is determined based on the first ratio between the third data volume and the second data volume, the second ratio between the first data volume and the total data volume, and the third ratio between the second data volume and the first data volume.

[0011] Specifically, the first ratio measures the proportion of the data in the table to which the second data belongs that is actually classified within the effective sampled data in that table. The second ratio measures whether the data sample in the table to which the second data belongs is sufficient to represent the data distribution of the entire table. The third ratio measures whether the data sample in the table to which the second data belongs is effective. The confidence level determined by combining the three can accurately reflect the true situation of the second data in the data table, improve the reliability of the confidence level, and thus improve the accuracy of data classification.

[0012] In some optional embodiments, the data classification method further includes: In response to a user's request to query target metadata, the target metadata is retrieved from the metadata storage database, which stores data and metadata information obtained from connected databases. If the target metadata exists in the metadata storage database, and the storage time of the target metadata in the metadata storage database is less than or equal to the second threshold, then the target metadata is returned. If the storage time is greater than the second threshold, or if the target metadata does not exist in the metadata storage database, then obtain the current metadata information of the database to which the target metadata belongs; Update the metadata storage database based on the current metadata information, so as to find and return the target metadata in the updated metadata storage database.

[0013] Specifically, when a user queries metadata information, the metadata information stored within or equal to the second threshold will be returned to the user; otherwise, the metadata information will be retrieved again to ensure the timeliness and reliability of the metadata information.

[0014] In some optional embodiments, the initial data category of the second data is identified based on a pre-built set of regular expressions, including: The second data is matched against each regular expression in the set of regular expressions; If the first regular expression matches the second data, the label corresponding to the first regular expression is determined as the label of the second data, thus obtaining the initial data category of the second data. The label is used to indicate the data category to which the data belongs. The first regular expression is any regular expression in the set of regular expressions.

[0015] Specifically, by matching data with regular expressions, the initial data category of the second data can be quickly determined, thereby improving the efficiency of data classification.

[0016] In some optional embodiments, after determining the label corresponding to the first regular expression as the label of the second data and obtaining the initial data category of the second data, the method further includes: If the data category indicated by the label of the second data is a preset data category, then the second data is verified according to the verification algorithm corresponding to the preset data category; If the second data fails validation, return to the step of matching the second data using each regular expression in the set of regular expressions, and redetermine the label of the second data.

[0017] Specifically, if the second data validation passes, the label corresponding to the first regular expression is determined as the label of the second data, thus obtaining the initial data category of the second data. For data whose data category is a preset data category, a second validation is performed. If the validation result fails, the data is reclassified using regular expressions, which can greatly correct misclassified data and thus improve the accuracy of data classification.

[0018] In some optional embodiments, the first data is sent to a pre-trained natural language data classification model to obtain the data category of the first data, including: Using a natural language data classification model, feature extraction is performed on the first data based on a preset stop word list and a preset named entity recognition word segmentation list to obtain feature data; Using a natural language data classification model, based on a pre-built list of data categories, the data category to which the feature data belongs is identified, and the label of the first data is obtained. The label is used to indicate the data category to which the data belongs.

[0019] Specifically, a natural language data classification model is used to extract features from complex unstructured data based on a preset stop word library and a preset named entity recognition word segmentation list to identify the data category and achieve accurate classification of complex unstructured data.

[0020] In some optional embodiments, before associating and storing the already classified data in the data to be classified with its own data category, the method further includes: Based on the data category and metadata information of the first data, sub-tags of the first data are determined from a pre-built tag library. The sub-tags are used to indicate the sub-data category of the data under its own data category. Based on the data category and metadata information of the second data, determine the sub-tags of the second data from the tag library.

[0021] Specifically, after data classification, sub-data categories are determined from the tag library based on the data category and metadata information. The data category and sub-data categories are stored together to facilitate subsequent data retrieval from the sub-data category dimension and to facilitate user management of data assets.

[0022] Secondly, this application provides a data asset management platform applied to the data classification method of any embodiment of the first aspect. The platform includes a database metadata information acquisition module, a data distribution module, a first data classification engine, a second data classification engine, a data classification result verification module, and a data classification result storage module. The database metadata information acquisition module is used to obtain the data structure of the data to be classified; The data distribution module is used to send the first data with an unstructured data structure from the data to be classified to the first data classification engine; and to send the second data with a structured or semi-structured data structure from the data to be classified to the second data classification engine. The first data classification engine is used to send the first data to a pre-trained natural language data classification model to obtain the data category of the first data; and to receive the second data sent by the data distribution module, and use the natural language data classification model to determine the second confidence level corresponding to the initial data category of the second data according to the pre-set confidence rules; and to send the second confidence level to the data classification result verification module. The second data classification engine is used to identify the initial data category of the second data based on a pre-built set of regular expressions; and to determine the first confidence level corresponding to the initial data category based on pre-set confidence rules; and to send the first confidence level to the data classification result verification module. The data classification result verification module is used to receive the first confidence level and the second confidence level sent by the first data classification engine and the second data classification engine respectively, and determine the total confidence level corresponding to the initial data category of the second data; if the total confidence level is greater than the first threshold, the initial data category is determined as the data category of the second data; and if the first confidence level is less than the first threshold, the second data is sent to the first data classification engine through the data distribution module. The data classification result storage module is used to associate and store the classified data in the data to be classified with its own data category.

[0023] In some optional embodiments, the platform also includes a data preprocessing module; The database metadata acquisition module is specifically used to select a data query strategy corresponding to the target database based on a preset time period and the database type of the target database; extract the original metadata information and data structure identification information of the target database according to the data query strategy; extract the original data to be classified from the original metadata information; and send the original data to be classified and the data structure identification information to the data preprocessing module. The data preprocessing module is used to process the original data to be classified according to the preprocessing operations corresponding to the data structure identification information; convert the data format of the processed original data to be classified into the target data format to obtain the data to be classified; and send the data to be classified and the data structure identification information to the data distribution module. The data distribution module is used to determine the data structure of the data to be classified based on the data structure identifier information.

[0024] In some optional embodiments, the platform also includes a tag library module; The first data classification engine is also used to determine the sub-tags of the first data from the pre-built tag library in the tag library module based on the data category of the first data and the metadata information of the first data. The sub-tags are used to indicate the sub-data category of the data under its own data category. The second data classification engine is also used to determine the sub-tags of the second data from the pre-built tag library in the tag library module based on the data category and metadata information of the second data.

[0025] Thirdly, this application provides a data classification device for use in a data asset management platform, the device comprising: The acquisition module is used to acquire the data structure of the data to be classified. The sending module is used to send the first data, which has an unstructured data structure, to a pre-trained natural language data classification model to obtain the data category of the first data if there is a first data in the data to be classified. The identification module is used to identify the initial data category of the second data if there is a second data with a structured or semi-structured data structure in the data to be classified, based on a pre-built set of regular expressions. The first determination module is used to determine the first confidence level corresponding to the initial data category according to the preset confidence rules; The second determining module is used to classify the second data using a natural language data classification model and determine the second confidence level corresponding to the initial data category if the first confidence level is less than the first threshold. The third determining module is used to determine the total confidence level corresponding to the initial data category of the second data based on the first confidence level and the second confidence level. The fourth determination module is used to determine the initial data category as the data category of the second data if the total confidence score is greater than the first threshold. The storage module is used to associate and store the classified data in the data to be classified with its own data category.

[0026] Fourthly, this application provides a computer device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the data classification method of any embodiment of the first aspect described above.

[0027] Fifthly, this application provides a computer-readable storage medium storing computer instructions for causing a computer to perform the data classification method of any of the embodiments of the first aspect described above. Attached Figure Description

[0028] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0029] Figure 1 This is a schematic diagram of the structure of a data asset platform according to an embodiment of this application; Figure 2 This is a schematic diagram of a data classification framework for a data asset platform according to an embodiment of this application; Figure 3 This is a flowchart illustrating a data classification method according to an embodiment of this application; Figure 4 This is a flowchart illustrating the determination of confidence scores in a data classification method within an application scenario. Figure 5 This is a flowchart illustrating another data classification method according to an embodiment of this application; Figure 6 This is a flowchart illustrating the data distribution process in a data classification method within an application scenario. Figure 7 This is a schematic diagram of the model training process according to an embodiment of this application; Figure 8 This is a flowchart illustrating the workflow of data classification based on a natural language classification model in an application scenario. Figure 9 This is a flowchart illustrating another data classification method according to an embodiment of this application; Figure 10 This is a flowchart illustrating the workflow of the data asset management platform providing data query services in this application embodiment; Figure 11 This is a structural block diagram of a data classification device according to an embodiment of this application; Figure 12 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of this application. Detailed Implementation

[0030] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0031] Before introducing the embodiments of this application, let's first introduce the terminology involved in this application, as follows.

[0032] Structured data refers to data that can be represented and stored using relational databases. It exists in a two-dimensional form, with rows as the unit, and each row of data has the same attributes.

[0033] Semi-structured data: Data that falls between structured and unstructured data. Although it has structure, its data model structure differs from that of relational databases. It is not easily modularized, and entities of the same type can have different attributes. Even when combined, the order of these attributes is not important. The most typical example is JSON data. For example, log files, XML documents, JSON documents, and emails are all semi-structured data.

[0034] Unstructured data refers to data that does not have a predefined organizational structure, generally text-based data, but may also contain numerical information. This type of data is typically non-relational in nature; examples include Word documents, PDFs, PowerPoint presentations, and various formats of images and videos. In this application, structured data, semi-structured data, and unstructured data are equivalent to structured data, semi-structured data, and unstructured data, respectively.

[0035] Figure 1 This application embodiment presents a schematic diagram of the structure of a data asset platform. The platform includes a database metadata information acquisition module, a data distribution module, a first data classification engine, a second data classification engine, a data classification result verification module, and a data classification result storage module. This platform can be used for the data classification method in any of the subsequent embodiments.

[0036] The database metadata acquisition module is primarily responsible for retrieving metadata information from various databases. This metadata information includes, but is not limited to, key information such as table names, field names, and field types. This information is crucial for subsequent data identification and classification. Based on the metadata information, the database metadata acquisition module can obtain the data structure of the data to be classified.

[0037] The data distribution module is mainly responsible for distributing structured data, semi-structured data, and unstructured data to the corresponding data recognition and classification engines. Specifically, the data distribution module sends the first data with an unstructured data structure to the first data classification engine; and sends the second data with a structured or semi-structured data structure to the second data classification engine.

[0038] The first data classification engine is used to send the first data to a pre-trained Natural Language Processing (NLP) model to obtain the data category of the first data; and to receive the second data sent by the data distribution module, and use the natural language data classification model to determine the second confidence level corresponding to the initial data category of the second data according to the pre-set confidence rules; and to send the second confidence level to the data classification result verification module.

[0039] The second data classification engine is used to identify the initial data category of the second data based on a pre-built set of regular expressions; and to determine the first confidence level corresponding to the initial data category based on a pre-set confidence rule; and to send the first confidence level to the data classification result verification module.

[0040] The data classification result verification module receives the first and second confidence scores from the first and second data classification engines, respectively, and determines the total confidence score corresponding to the initial data category of the second data. If the total confidence score is greater than a first threshold, the initial data category is determined as the data category of the second data. If the first confidence score is less than the first threshold, the second data is sent to the first data classification engine through the data distribution module. In other words, the data classification result verification module is mainly responsible for receiving the confidence scores from the regular expression module (i.e., the second data classification engine) and the NLP module (i.e., the first data classification engine), fusing the confidence scores, and calculating the final confidence score. Preferably, in the confidence score fusion, the confidence score from the regular expression module can account for 60% of the total confidence score, and the confidence score from the NLP module can account for 40%. Of course, the specific percentages can be designed independently. The calculated final confidence score value will be stored in the database as a reference for the trust level of the data identification and classification results.

[0041] The data classification result storage module is used to associate and store the classified data in the data to be classified with its own data category.

[0042] Optionally, the natural language data classification model may include the NER-BiLSTM model (Named Entity Recognition-Bidirectional Long Short-Term Memory), the jieba word segmentation engine, the NER-CRF model (Named Entity Recognition-Conditional Random Field), and the doc2vec model. The NER-BiLSTM and NER-CRF models are primarily responsible for predicting the data category of the input natural language data classification model. The jieba word segmentation engine is primarily responsible for segmenting the input data into words. The doc2vec model is primarily responsible for converting the input data into vectors, facilitating the prediction of the data category by the NER-BiLSTM and NER-CRF models.

[0043] Optionally, the data asset platform may also include a data preprocessing module. This module is primarily responsible for preprocessing and standardizing the raw data to be classified obtained by the database metadata acquisition module, unifying the data into a consistent format. Specifically, the database metadata acquisition module is used to select a data query strategy corresponding to the target database based on a preset time period and the database type of the target database; extract the raw metadata information and data structure identification information of the target database according to the data query strategy; extract the raw data to be classified from the raw metadata information; and send the raw data to be classified and the data structure identification information to the data preprocessing module. The data preprocessing module is used to process the original data to be classified according to the preprocessing operations corresponding to the data structure identification information; convert the data format of the processed original data to be classified into the target data format to obtain the data to be classified; and send the data to be classified and the data structure identification information to the data distribution module. The data distribution module is used to determine the data structure of the data to be classified based on the data structure identifier information, and then distribute the data to be classified with different data structures to different data classification engines.

[0044] Optionally, to improve the accuracy of data classification, in addition to the data preprocessing module preprocessing data of different data structures in the original data to be classified according to the data architecture identifier, the data asset management platform also integrates data preprocessing functions into the first and second data classification engines. This allows the first and second data classification engines to perform further preprocessing operations on the input data to obtain cleaner data that better conforms to the behavior of the data classification engines, thereby improving the accuracy of data classification. The preprocessing operations of the first data classification engine may include, but are not limited to, removing irrelevant information (e.g., removing punctuation marks and special characters), standardizing text (e.g., converting all text to lowercase or removing numbers), word segmentation, splitting text into words or phrases, removing stop words, and removing words that appear too frequently and have no practical meaning for the task. The preprocessing operations of the second data classification engine may include, but are not limited to, cleaning data (e.g., removing useless or erroneous data) and standardizing text.

[0045] Optionally, in addition to classifying unstructured first data and second data whose confidence scores calculated by the second data classification engine are less than the first threshold, the natural language data classification model in the first data classification engine can also directly classify the semi-structured data. In this case, it is not necessary to calculate the confidence score corresponding to the data category to which the semi-structured data belongs. At the same time, using the first data classification engine and the second data classification engine to classify the semi-structured data can further accelerate the efficiency of data classification.

[0046] Optionally, the data asset platform may also include a tag library module. This module communicates with the first and second data classification engines. The tag library module maintains a series of customizable tag libraries for matching keywords, as well as keywords associated with various types of custom tags. The tag library is a core resource that allows the system to identify and classify data using keywords. The first and second data classification engines can determine the detailed categories of the data they identify based on the tag library in the tag library module, facilitating more detailed filtering or sorting by users based on the categories indicated by the tags, and providing more accurate search results. Specifically, the first data classification engine is also used to determine sub-tags for the first data from the pre-built tag library in the tag library module based on the data category and metadata information of the first data. These sub-tags indicate sub-data categories under their respective data categories. Similarly, the second data classification engine is used to determine sub-tags for the second data from the pre-built tag library in the tag library module based on the data category and metadata information of the second data.

[0047] To automate the classification of data from multiple data sources (i.e., multiple data structures) and standardize the storage and output of classification results for easier subsequent data management, this data asset management platform can also... Figure 2 The data classification framework shown executes the data classification method applied to any of the subsequent embodiments. This data classification framework's natural language data classification model consists of an NER-BiLSTM model, a jieba word segmentation engine, an NER-CRF model, and a doc2vec model. In this data classification framework, the data object preprocessing and tagging module is the data asset data preprocessing module, the data distribution task scheduling module is the data distribution module, the database connection module is the database metadata information acquisition module, the NLP class-based data recognition and classification engine is the first data classification engine, and the regular expression-based data recognition and classification engine is also the first data classification engine.

[0048] The first data classification engine uses a combination of NER-BiLSTM, jieba word segmentation, NER-CRF, and doc2vec models to cluster the input data and obtain the classification results, i.e., the data categories. The first data classification engine can perform secondary classification on data whose confidence level is less than a first threshold after classification by the second data classification engine. It can also classify semi-structured data. Generally, because the second data classification engine uses regular expressions for data classification, it is more efficient, and most semi-structured data will be classified through the second data classification engine.

[0049] The data classification result storage module performs the data classification result storage operation. The first data classification engine, the second data classification engine, and the data classification result verification module all participate in the recognition result processing operation. The tag library query operation is used to determine the sub-data categories of the data that have been classified by the first and second data classification engines based on the tag library pre-built in the tag library module. It can also determine the sub-data categories of the data to be queried by querying the tag library in the tag library module when a database metadata query request is received, thereby enabling management operations such as data filtering and sorting.

[0050] Optionally, this data asset management platform can also be used to control and monitor the entire data lifecycle, including data collection, processing, storage, and analysis. This platform will allow users to define and manage data objects, schedule data processing tasks, monitor data processing progress, manually review data classification results, and obtain processing results.

[0051] Optionally, the data asset management platform can be deployed on a server and provide a front-end interface for users to manage their data assets. The server can be a server cluster consisting of multiple physical servers or a distributed system. It can also be a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platform technologies and computing services. To further improve the efficiency of data classification, the natural language data classification model can also be deployed in a distributed manner using distributed container deployment technology.

[0052] In this embodiment, the data asset platform, based on the aforementioned modules, can process and identify data with various data structures. Furthermore, it can re-identify second data with low confidence levels after regular expression-based identification using an NLP model, and integrate the confidence levels of both methods for data classification. This achieves effective fusion of the identification and classification results, improving the accuracy and reliability of data classification. Simultaneously, by associating classified data with its respective data category and persistently storing the confidence levels, the platform enables continuous tracking and verification of data classification results, achieving high-quality data management.

[0053] According to an embodiment of this application, a data classification method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0054] This embodiment provides a data classification method that can be used for... Figure 1 The data asset management platform shown Figure 3 This is a flowchart of a data classification method according to an embodiment of this application, such as... Figure 3 As shown, the process includes the following steps: Step 301: Obtain the data structure of the data to be classified.

[0055] The data asset management platform includes a database metadata information acquisition module, a data distribution module, a first data classification engine, a second data classification engine, a data classification result verification module, and a data classification result storage module. The database metadata information acquisition module can connect to different types of databases and use an ORM (Object Relational Mapping) framework to query pre-written SQL query statements (Structured Query Language) corresponding to different types of databases. Based on the SQL query statements, it reads data with different data structures from different types of databases, thus obtaining the data structure of the data to be classified. Generally, structured data is read from relational databases (e.g., MySQL and Oracle), while unstructured or semi-structured data is read from non-relational (NoSQL) databases (e.g., MongoDB).

[0056] Step 302: If there is a first data in the data to be classified that is unstructured, send the first data to the pre-trained natural language data classification model to obtain the data category of the first data.

[0057] The data distribution module distributes the first data points with unstructured data structure from the data to be classified to the first data classification engine. The first data classification engine inputs each piece of unstructured data from the data to be classified into a pre-trained natural language data classification model, enabling the natural language data classification model to classify the unstructured data and obtain the data category of the first data output by the model. Of course, the natural language data classification model can also classify semi-structured data; however, to improve the efficiency of data classification, this embodiment chooses to use regular expressions to classify semi-structured data.

[0058] Step 303: If there is a second data in the data to be classified that has a structured or semi-structured data structure, then the initial data category of the second data is identified according to the pre-built set of regular expressions.

[0059] The data distribution module distributes structured or semi-structured second data entries from the data to be classified to the second data classification engine. For each structured or semi-structured second data entry in the data to be classified, the second data classification engine uses regular expressions from a pre-built set of regular expressions to match the second data entries that conform to a specific format. If a match is successful, the data type corresponding to that regular expression is determined as the initial data category of the second data entry.

[0060] Step 304: Determine the first confidence level corresponding to the initial data category according to the preset confidence rules.

[0061] The pre-set confidence rule can be a rule that calculates the probability value or score corresponding to the data category. This embodiment uses the probability value as an example. The second data classification engine calculates the proportion of sensitive data in the data table to which the second data belongs, the proportion of sampled data relative to the total data volume of the table, and the proportion of null-free sampled data relative to the total data sample volume. The product of these three proportions is determined as the first confidence level corresponding to the initial data category. Sensitive data refers to the truly valid data in the data table that needs to be classified. The proportion of sensitive data can also be described as the proportion of the number of null-free sampled data entries that actually match the rules relative to the number of sampled data entries after removing null values.

[0062] The ratio of the sampled data to the total data in the table measures whether the sample is sufficiently representative of the table's data distribution. If the sampled data represents only a small portion of the entire table, the sensitive information within the sampled data may not accurately reflect the true state of the table. A higher ratio indicates that the sampled data is more representative of the entire table, and therefore, a higher confidence level in the data classification results.

[0063] The ratio of the null-removed sample size to the total sample size measures the effectiveness of the data sampling. If there are too many null values ​​in the sampled data, then the effective sample data is insufficient to represent the true situation of the entire table. The higher the ratio, the more effective the sampled data, and the higher the confidence level of the data classification results.

[0064] The ratio of the number of true matches in the null-free sampled data to the number of data entries after removing null values ​​measures the proportion of sensitive information in the valid sampled data. A higher ratio indicates that the sensitive information is more common, and therefore the confidence level of the data classification result is higher. Sensitive information refers to the information carried by the sensitive data. Applying these three ratios to the determination of confidence can reflect the reliability of the data classification result from different perspectives, thereby improving the reliability of the confidence level.

[0065] Step 305: If the first confidence level is less than the first threshold, then the second data is classified using a natural language data classification model and the second confidence level corresponding to the initial data category is determined.

[0066] The first threshold can be set by the user. In this embodiment, 0.5 (i.e. 50%) is used as an example. The second data classification engine will send the determined first confidence level to the data classification result verification module. If the data classification result verification module determines that the first confidence level is less than the first threshold, it will notify the data distribution module to send the second data to the first data classification engine so that the second data can be classified again using the natural language data classification model, and the second confidence level corresponding to the initial data category in the classification result will be output.

[0067] Step 306: Determine the total confidence level corresponding to the initial data category of the second data based on the first confidence level and the second confidence level.

[0068] The data classification result verification module will combine the first confidence level and the second confidence level to calculate the total confidence level corresponding to the initial data category.

[0069] Step 307: If the total confidence level is greater than the first threshold, then the initial data category is determined as the data category of the second data.

[0070] If the data classification result verification module determines that the total confidence score is greater than the first threshold, it will determine the initial data category as the data category of the second data, notify the data classification result storage module to persistently store the total confidence score, and associate the total confidence score with the second data to facilitate continuous tracking and verification of the data classification results.

[0071] If the total confidence level is still less than or equal to the first threshold, the second data will be identified as classified data to be corrected, so that the data category of the second data can be manually corrected in the future.

[0072] Step 308: Associate and store the already classified data in the data to be classified with its own data category.

[0073] The data classification result storage module will associate all classified data with their respective data classes and store them in a specific database.

[0074] In one application scenario, such as Figure 4 As shown, the data distribution service is provided by the data distribution module to distribute data to be classified with different data structures to different data classification engines. The regular expression is that the identification classification engine is the second data classification engine, the NLP data identification classification engine is the first data classification engine, the confidence calculation module is the data classification result verification module, and the data classification result storage module provides data identification classification result storage services.

[0075] If the initial confidence level corresponding to the data's initial data type is below 50%, it indicates that the second data classification engine lacks confidence in the data's identification and classification results, requiring further processing by the first data classification engine. The first data classification engine will identify and classify this portion of the data and calculate the second confidence level. The data classification result verification module then merges the confidence levels, combining the confidence levels from the second and first data classification engines into a final total confidence level. The confidence level from the second data classification engine accounts for 60% of the total confidence level, and the confidence level from the first data classification engine accounts for 40%.

[0076] The data classification result storage module stores the data classification results, while the confidence result is stored separately and associated with the data to be classified. This value serves as a reference for the confidence level of the data classification results and is used for subsequent result verification, querying, and analysis.

[0077] In this embodiment, a natural language data classification model with complex data processing capabilities and high accuracy is used to classify complex unstructured data, improving the accuracy of classification. Furthermore, when classifying semi-structured or structured data using a set of regular expressions, the calculation of confidence scores corresponding to data categories is introduced. The confidence scores determine the reliability of the data category classification, further improving the accuracy of classification. Moreover, by combining the use of a more efficient set of regular expressions for data classification, the natural language data classification model is only used to identify the second data category when the confidence score of the second data category is low (i.e., when the initial confidence score of the first data category is less than a first threshold). This avoids using the natural language data classification model to classify all data structures, accelerating the data classification process and achieving the overall goal of efficient and accurate classification of structured data.

[0078] This embodiment provides yet another data classification method, which can be used for... Figure 1 The data asset management platform shown Figure 5 This is a flowchart of another data classification method according to an embodiment of this application, such as... Figure 5 As shown, the process includes the following steps: Step 501: Obtain the data structure of the data to be classified.

[0079] For details on step 501, please refer to [link / reference]. Figure 3 Step 301 in the illustrated embodiment.

[0080] Optionally, to ensure consistency between the data to be classified and the data in the actual database, regular data update and synchronization rules can be set. Specifically, a default scheduled task can be set to periodically perform data acquisition and data storage update operations, providing data support for data asset management and data auditing. Step 501 may include the following steps 5011 to 5016: Step 5011: Select a data query strategy corresponding to the target database based on the preset time period and the database type of the target database.

[0081] The preset time period can be set by the user, such as one day, one week, or one month. The data query strategy includes SQL query statements and data storage strategies; the SQL query statements specify the data content to be retrieved. The database metadata information acquisition module can connect to the target database and obtain its database type. Based on the ORM framework, it queries the target database for the corresponding data query strategy according to its database type.

[0082] Furthermore, for relational databases, the data retrieved in the data query strategy includes metadata information from the database's schema tables, object tables, and attribute tables. For non-relational databases, such as MongoDB, the data retrieved in the data query strategy includes retrieving the database list, collection list, and collection structure. Taking MySQL and Oracle as relational databases and MongoDB as non-relational databases as examples, the specific SQL query statements implemented to retrieve the above data content are shown below.

[0083] For Oracle: Schema table: SELECT FROM DBA_USERS; Object table: SELECT FROM DBA_OBJECTS; Attribute table: SELECT FROM DBA_TAB_COLUMNS WHERE table_name = 'TABLENAME'; For MySQL: Schema table: SELECT FROM information_schema.schemata; Object table: SELECT FROM information_schema.tables; Attribute table: SELECT FROM information_schema.columns WHERE table_name = 'tablename'; For MongoDB: Database list: db.adminCommand({ listDatabases: 1}); Collection list: db.getCollectionNames(); Collection structure: db.CollectionName.findOne(); The database metadata information acquisition module can obtain the target database's metadata information, data collection, and data structure identifier information based on the above query statement.

[0084] The data storage strategy in the data query strategy mainly involves formatting the retrieved data and saving it to a database for persistent storage, allowing other modules to read and access it. The data storage strategy includes the following: tables and columns belong to relational databases, while collections and field data belong to non-relational databases. a. Insert the obtained database information into the metadata_databases table (store database information such as database name, type, creation time, etc.). b. Insert the obtained schema information into the metadata_schemas table (which stores schema information for relational databases, such as schema name, database to which it belongs, creation time, etc.). c. Insert the obtained table (or collection) information into the metadata_tables table (which stores information about tables or collections in a non-relational database, such as table name, schema or database, creation time, last update time, number of rows, comments, etc.). d. Insert the obtained column (or field) information into the metadata_columns table (which stores column or field information for non-relational databases, such as column name, table, data type, constraints, comments, etc.). e. Insert the obtained primary and foreign key relationship information into the metadata_relationships table (which stores relationships between tables in a relational database, such as primary and foreign key relationships). The database metadata information acquisition module can store the acquired data in the metadata storage database based on the data storage strategy.

[0085] Optionally, the database metadata information acquisition module can also automatically construct SQL query statements based on the database type of the target data using the ORM framework.

[0086] Step 5012: Extract the metadata information, data set, and data structure identifier information of the target database according to the data query strategy.

[0087] Among them, the data set refers to the business data stored in the database, that is, the table data. The database metadata information acquisition module can store the acquired data into a specific table based on the data query strategy, thereby obtaining the metadata information, data set and data structure identification information of the target database.

[0088] Step 5013: Extract the original data to be classified from the dataset based on the metadata information.

[0089] Metadata information includes database table names, field names, data types, constraints, index information, etc. Based on the database metadata information acquisition module, a data profile description can be obtained at the database table level. This data profile description can be used for automatic classification and labeling of important database table dimensions to clarify the overall characteristics and structure of data in a specific table within the target database, and to define the business scenario of the table data. The data distribution module can extract the original data to be classified from the dataset based on the business scenario.

[0090] Optionally, the data distribution module can also extract the original data to be classified corresponding to the data classification task from the metadata storage database based on the data classification task issued by the data asset management platform.

[0091] Step 5014: Process the original data to be classified according to the preprocessing operation corresponding to the data structure identification information.

[0092] The data asset management platform also includes a data preprocessing module. Data structure identification information is used to indicate the data structure. Data from different databases with different data structures should undergo different preprocessing operations so that when the data distribution module distributes the data to the first data classification engine and the second data classification engine, the processed raw data to be classified can be matched by regular expressions or recognized by natural language data classification models.

[0093] The data preprocessing module has the capability to process raw data to be classified from multiple sources. Specifically, for structured raw data to be classified, the data preprocessing module needs to perform operations such as data cleaning, handling missing values, and type conversion. It is understood that structured raw data to be classified includes, but is not limited to, metadata from standard databases (i.e., relational databases) and structured data.

[0094] For semi-structured raw data to be classified originating from non-relational databases (such as MongoDB or Elasticsearch), a data preprocessing module is required to parse and structure the raw data. Specifically, the data preprocessing module parses the data, extracts key information, and converts the data into a format suitable for further processing. It is understood that semi-structured raw data to be classified includes, but is not limited to, JSON formatted data, log files, and network traffic.

[0095] For unstructured raw data to be classified originating from non-relational databases, a data preprocessing module is required to perform text analysis and feature extraction. Specifically, the data preprocessing module performs text analysis, keyword extraction, and feature set generation. It is understood that unstructured raw data to be classified includes, but is not limited to, text, documents, web page content, and image text information recognized through OCR (Optical Character Recognition).

[0096] In one application scenario, the data distribution process in a data classification method can be as follows: Figure 6 As shown, the data preprocessing module preprocesses the structured, semi-structured, and unstructured data in the original data to be classified to obtain the data to be classified. Then, the data distribution module distributes the data to be classified with different data structures to the corresponding data classification engines in the data recognition engine. The first data classification engine classifies the input data based on regular expressions, custom keywords, and a tag library, while the second data classification engine classifies the input data based on an NLP model and a tag library.

[0097] Step 5015: Convert the processed original data to be classified into the target data format to obtain the data to be classified.

[0098] The target data format can be set by the user. For raw data to be classified after processing with different data structures, the data preprocessing module will adopt different data formats to obtain standardized data. For structured and semi-structured data, the data preprocessing module will unify the data into a consistent format. For data from standard databases (i.e., relational databases), the database metadata acquisition module can directly connect to the database and read and identify the data into the target data format based on the corresponding data query strategy. Structured data from other sources needs to be converted by the data preprocessing module to obtain the data to be classified in the target data format. For unstructured data, the data preprocessing module will encode the processed raw data to be classified into vectors to facilitate processing by the natural language data classification model.

[0099] Step 5016: Determine the data structure of the data to be classified based on the data structure identifier information.

[0100] After the data preprocessing module processes the raw data to be classified and obtains the data to be classified, the data distribution module will determine the data structure of the data to be classified based on the data structure identifier information. This will allow the data to be classified with different data structures to be distributed to the corresponding data classification engines according to specific routes, so as to classify the data to be classified with different data structures using different classification strategies.

[0101] Optionally, when the amount of data to be classified is large, in order to alleviate network transmission pressure, the data distribution module can segment the data to be classified before distributing it. Simultaneously, to reduce network latency, a data buffer can be set up, from which the data distribution module can extract the data to be classified and distribute it.

[0102] Optionally, to further improve the efficiency of data classification, the data distribution module can also determine the data classification engine that can classify the table data based on the business scenario indicated by the classification tags corresponding to the table data in the target database obtained by the database metadata information acquisition module, and send the data to be classified in the table data to the corresponding data classification engine. By combining the identification and distribution process of data to be classified with different data structures, the specific data classification engine corresponding to the data to be classified can be quickly determined from different perspectives, thereby accelerating the efficiency of data classification.

[0103] Periodically utilizing data query strategies corresponding to the target database, metadata, datasets, and data structure identifiers are extracted to obtain raw data to be classified. This raw data is then preprocessed to obtain the final classified data, ensuring timely updates to the database metadata. This consistency between the data to be classified and the actual data in the database guarantees that the data to be classified is correct and valid, thus improving the accuracy of data classification. Storing the acquired data in a metadata storage database provides data support for data asset management and data auditing.

[0104] Step 502: If there is a first data in the data to be classified that is unstructured, send the first data to the pre-trained natural language data classification model to obtain the data category of the first data.

[0105] For details on step 502, please refer to [link / reference]. Figure 3 Step 302 in the illustrated embodiment will not be described in detail here.

[0106] Optionally, step 502 may include: using a natural language data classification model to perform feature extraction on the first data based on a preset stop word library and a preset named entity recognition word segmentation list to obtain feature data; using a natural language data classification model to identify the data category to which the feature data belongs based on a pre-built data category list to obtain a label for the first data, the label being used to indicate the data category to which the data belongs.

[0107] The preset stop word library includes at least one stop word, and both the preset named entity recognition token list and the preset stop word library can be customized. While performing feature extraction on the first data based on the preset stop word library and the preset named entity recognition token list, it can also help the natural language data classification model better identify entities in the first data. The pre-built data category list can also help the natural language data classification model better classify the feature data, thereby improving the accuracy of data classification.

[0108] Optionally, before sending the first data to the pre-trained natural language data classification model to obtain the data category of the first data, it is also necessary to iteratively train the pre-built named entity recognition model until the training stop condition is met, and take the trained named entity recognition model as the natural language data classification model. The named entity recognition model is a model that can process natural language.

[0109] The specific training process of the named entity recognition model based on natural language processing in the embodiment of the present application can be as Figure 7 shown. First, obtain the corpus and stop word library data. Before training the model, it is necessary to obtain a large amount of text data, which will be used as the corpus for training the Named Entity Recognition (NER) model. At the same time, it is necessary to collect a stop word library, which contains common words that can be ignored during the tokenization process but have no actual meaning, such as "de" (of), "shi" (is), etc. The source of the text data can be open source projects or existing data sets, for example, data types that have been manually confirmed can be used as corpus samples.

[0110] Next, preprocess the text data of the corpus. The goal of preprocessing is to convert the text data of the corpus into a data format suitable for NER model training. Preprocessing can include removing irrelevant information (such as punctuation marks and special characters, etc.), standardizing the text (for example, converting all text to lowercase, or removing numbers), using the jieba library for tokenization, splitting the text into words or phrases, removing stop words, and eliminating words that appear too frequently and have no actual meaning for the task. And load the preset NER token list, which contains the entity types that the NER model is expected to be able to identify, such as person names, addresses, etc. These preset entries can help the model better identify these specific entities.

[0111] The NER model can be iteratively trained based on the preprocessed corpus, but model training parameters need to be set before training to speed up the model training process. The model training parameters include the learning rate (which determines the speed of model learning), the batch size (the amount of data input to the model at one time), and the number of iterations (the number of times the entire data set is trained), etc. These model training parameters can be appropriately set according to actual task requirements and hardware conditions.

[0112] Then, based on the preprocessed corpus and model training parameters, the NER model can be trained, which means training the model on the preprocessed data. The training process is actually an optimization process. The NER model will continuously learn the features in the data and try to adjust its own parameters to reduce the gap between the predicted results and the actual results.

[0113] After each training iteration, the accuracy, precision, and recall of the NER model need to be calculated to evaluate its performance and obtain the evaluation results. The model's performance can be observed by calculating accuracy (the proportion of all correctly predicted values ​​out of the total), precision (the proportion of correctly predicted values ​​that are actually positive out of all correctly predicted values), and recall (the proportion of correctly predicted values ​​that are actually positive out of all correctly predicted values). Based on these metrics, the strengths and weaknesses of the model can be identified, providing a reference for subsequent model optimization.

[0114] Next, adjust the model training parameters based on the NER model evaluation results. If the model's performance does not meet the requirements, the training parameters need to be adjusted based on the evaluation results, and retraining is required. For example, if the model's recall is found to be low, it may mean that the model's ability to identify positive examples is weak, requiring an increase in model complexity or adjustment of other related parameters. After adjusting the parameters, corpus preprocessing and model training need to be performed again. This process may need to be repeated multiple times until a model with satisfactory performance is obtained. The training stopping condition is when the model performance meets the requirements, that is, the model's accuracy, precision, and recall meet the required values; the specific values ​​can be set independently.

[0115] Optionally, the data asset management platform can also provide an external model debugging interface to make it easier for developers to test and debug the named entity recognition module.

[0116] To ensure the stable operation of natural language data classification models in production environments, the data asset management platform also provides stable deployment support for backend services. This deployment support includes web services, load balancing services, and distributed container deployment services. Web services encapsulate the natural language data classification model into a web service, making it accessible to other systems or services. Load balancing services balance network traffic, preventing single server overload and improving system availability and response speed. Distributed container deployment services deploy the natural language data classification model across multiple servers, ensuring that even if one server fails, other servers can continue to provide services, while also meeting the needs of model debugging, training, and usage.

[0117] Optionally, in addition to sending the classification result of the first data, i.e. the data category of the first data, to the data classification result storage module, the first data classification engine can also send the record of the processing when classifying the first data to the data classification result storage module, so that users can query or trigger other data processing tasks.

[0118] Optionally, the data classification result storage module can store the data classification results in a dedicated database for subsequent querying and analysis. The process of each data classification operation is recorded in another database, including the operation time, personnel involved, and results, to facilitate subsequent problem tracking and auditing by users.

[0119] In one application scenario, such as Figure 8 The diagram illustrates a workflow for data classification based on a natural language classification model in a data classification method. The first data classification engine in the data asset management platform provides NLP data recognition and classification services, stores the classification results in an NLP data recognition and classification result storage database, stores the operations during the data classification process in an NLP data recognition and classification service job process record database, and returns the classification results to the data asset management platform. The data distribution module provides data object identification services, data distribution services, and data preprocessing operations.

[0120] Step 503: If there is a second data in the data to be classified that has a structured or semi-structured data structure, then the initial data category of the second data is identified according to the pre-built set of regular expressions.

[0121] For details on step 503, please refer to [link / reference]. Figure 3 Step 303 in the illustrated embodiment will not be described in detail here.

[0122] Optionally, step 503 may include the following steps A1 to A2: Step A1: Match the second data according to each regular expression in the set of regular expressions.

[0123] The regular expression set contains one or more regular expressions defined for different data categories. For example, for data category "phone number", a regular expression can be defined as ^1[3-9]\d{9}$; for data category "email address", a regular expression can be defined as ^\w+([-+.]\w+) @\w+([-.]\w+) \.\w+([-.]\w+) The second data classification engine will match each regular expression in the regular expression set with the second data to determine whether the data pattern of the second data matches the data pattern required by the regular expressions in the regular expression set. This process continues until the first regular expression matches the second data, at which point it is considered a successful match, and the data pattern required by the first regular expression matches the data pattern of the second data.

[0124] Understandably, a set of regular expressions needs to be created before step A1. In one example, a table named `sensitive_re_rule` can be created, containing the following fields: rule ID (auto-incrementing primary key), rule name, regular expression, and matching mode (e.g., global, multiline, ignore case, etc.). One or more tags can be defined for each regular expression.

[0125] Step A2: If the first regular expression matches the second data successfully, then the label corresponding to the first regular expression is determined as the label of the second data, thus obtaining the initial data category of the second data.

[0126] Tags are used to indicate the data category to which the data belongs. The first regular expression is any regular expression in the set of regular expressions. For example, if the first regular expression is for a phone number, and its corresponding tag is "phone", then "phone" can be identified as the tag for the first data. By matching regular expressions with the data, the initial data category of the second data can be quickly determined, thereby improving the efficiency of data classification.

[0127] To improve the accuracy of data classification, data in special categories can also be validated. Steps A3 to A4 can be included after step A2: Step A3: If the data category indicated by the label of the second data is a preset data category, then the second data is verified according to the verification algorithm corresponding to the preset data category.

[0128] Preset data categories can be set by the user, such as resident ID card numbers, financial document numbers, or bank card numbers. A verification algorithm corresponding to the preset data category can be selected from publicly available data verification algorithms. For example, a country's ID card number can use the corresponding resident ID card number verification algorithm, and a bank card number can use the Luhn algorithm. The preset data categories and their corresponding verification algorithms are stored together. The second data classification engine can then find the verification algorithm corresponding to the preset data category and verify the second data.

[0129] It should be noted that the sensitive personal data collected in this invention, such as resident ID card numbers, financial invoice numbers, and bank card numbers, have all been legally authorized by the data subjects in advance and are only used for compliant business scenarios of data classification and data asset identification. They will not be used or leaked beyond the scope of authorization and comply with relevant laws and regulations.

[0130] Step A4: If the second data validation fails, return to the step of matching the second data using each regular expression in the regular expression set, and redetermine the label of the second data.

[0131] If the second data fails validation, the second data classification engine will re-match the second data using every regular expression in the regular expression set to redetermine the label of the second data.

[0132] Optionally, if the number of times the second data fails verification is greater than or equal to the third threshold, the second data will be identified as classified data to be corrected, so that the data category of the second data can be manually corrected later.

[0133] If the second data validation passes, the label corresponding to the first regular expression is determined as the label of the second data, thus obtaining the initial data category of the second data. For data whose data category is a preset data category, a second validation is performed. If the validation result fails, the data is reclassified using regular expressions, which can greatly correct misclassified data and thus improve the accuracy of data classification.

[0134] Step 504: Determine the first confidence level corresponding to the initial data category according to the preset confidence rules.

[0135] For details of step 504, please refer to [link / reference]. Figure 3 Step 304 in the illustrated embodiment will not be described in detail here.

[0136] Furthermore, step 504 may include the following steps 5041 to 5042: Step 5041: Obtain the total amount of data in the data table to which the second data belongs, the first amount of sampled data in the data table, the second amount of data in the data table after removing null values, and the third amount of data in the data table that is matched by regular expressions in the set of regular expressions.

[0137] The third data quantity in the data table that is matched by the regular expression in the set of regular expressions refers to all data in the data table to which the second data belongs that has been classified by the regular expression and whose initial data category has a first confidence level greater than the first threshold at the current moment.

[0138] The second data classification engine can obtain the total amount of data in the data table to which the second data belongs, the first amount of sampled data in the data table, the second amount of data in the data table after removing null values, and the third amount of data in the data table that is matched by regular expressions in the set of regular expressions, based on a preset function from the metadata storage database.

[0139] Step 5042: Determine the first confidence level corresponding to the initial data category based on the first ratio between the third data volume and the second data volume, the second ratio between the first data volume and the total data volume, and the third ratio between the second data volume and the first data volume.

[0140] The second data classification engine determines the first confidence level corresponding to the initial data category by multiplying the first ratio between the third data volume and the second data volume, the second ratio between the first data volume and the total data volume, and the third ratio between the second data volume and the first data volume based on a preset function.

[0141] The preset function in this application embodiment is def calculate_confidence(data_info): total_rows = max(data_info['Total number of rows in the table'], data_info['Number of sampled rows']) sampled_rows = data_info['Number of data samples'] sample_rows_no_null = data_info['Number of rows after removing null values'] hit_rows = data_info['Number of rows that actually matched the rules'] sensitive_ratio = hit_rows / sample_rows_no_null # Calculate the proportion of sensitive data sampling_ratio = sampled_rows / total_rows # Calculates the ratio of sampled data to the total number of rows in the table. no_null_ratio = sample_rows_no_null / sampled_rows # Calculate the ratio of the number of null-removed sampled rows to the total number of sampled rows. confidence_score = round(sampling_ratio no_null_ratio sensitive_ratio# Calculates the confidence level by considering the proportion of data sampling, the proportion of null sampled data, and the proportion of sensitive data.

[0142] In this preset function, the total number of rows in the table represents the total number of rows in the table to which the second data belongs; the number of sampled rows represents the first number of rows in the table; the number of rows after removing null values ​​represents the second number of rows in the table after removing null values; and the number of rows that actually match the rules represents the third number of rows in the table that are matched by the regular expressions in the regular expression set. The proportion of sensitive data represents the first ratio; the proportion of sampled data to the total number of rows in the table represents the second ratio; and the proportion of null-removed sampled data to the total number of samples represents the third ratio. Each ratio is between 0 and 1, therefore the confidence score will also be between 0 and 1. When all ratios are close to 1, the confidence score will also be close to 1, indicating that the second data classification engine is very confident in its judgment of the data category to which the second data belongs. Conversely, if any ratio is close to 0, the confidence score will also be close to 0, indicating that the second data classification engine is uncertain about its judgment of the data category to which the second data belongs.

[0143] The first ratio measures the proportion of the data in the table to which the second data belongs that is truly classified within the effective sampled data of that table. The second ratio measures whether the data sample in the table to which the second data belongs is sufficient to represent the data distribution of the entire table. The third ratio measures whether the data sample in the table to which the second data belongs is effective. The confidence level determined by combining the three can accurately reflect the true situation of the second data in the table, improve the reliability of the confidence level, and thus improve the accuracy of data classification.

[0144] Step 505: If the first confidence level is less than the first threshold, then the second data is classified using a natural language data classification model and the second confidence level corresponding to the initial data category is determined.

[0145] For details of steps 505 to 508, please refer to [link / reference]. Figure 3 Steps 305 to 308 in the illustrated embodiment will not be described in detail here.

[0146] Optionally, the first data classification engine can also calculate the second confidence level corresponding to the initial data category based on a preset function. However, the value of hit_rows is no longer the third data volume of data in the data table that is matched by the regular expression in the set of regular expressions, but the data volume in the data table that has been classified by the natural language classification model.

[0147] Step 506: Determine the total confidence level corresponding to the initial data category of the second data based on the first confidence level and the second confidence level.

[0148] Step 507: If the total confidence level is greater than the first threshold, then the initial data category is determined as the data category of the second data.

[0149] Step 508: Associate and store the already classified data in the data to be classified with its own data category.

[0150] When the data classification result storage module associates and stores the classified data with its own data category, it can also annotate the classification results of the classified data and associate the classification results of the classified data with the database metadata information of its database, so as to quickly locate the storage location of data of the same data category in the database.

[0151] Optionally, the data classification result storage module can also persistently store the confidence level of the data category to which the classified data belongs, facilitating judgment by tools and human assistance.

[0152] In this embodiment, a data query strategy corresponding to the target database is periodically used to obtain data to be classified that is consistent with the actual data in the database. This avoids classifying old data and ensures that the data to be classified is correct and valid, thus improving the accuracy of data classification. During data classification, a natural language data classification model with complex data processing capabilities and high accuracy is used to classify complex unstructured data, improving the accuracy of classifying complex unstructured data. Regular expressions are used to quickly classify semi-structured or structured data, and data in preset categories is validated to a large extent to correct misclassified data, thereby improving the accuracy of data classification. Furthermore, based on a first ratio that measures the proportion of the truly classified data in the data table to which the second data belongs within the valid sample data of that table, a second ratio that measures whether the data sample in the data table to which the second data belongs is sufficient to represent the data distribution of the entire table, and a third ratio that measures the validity of the data sample in the data table to which the second data belongs, the confidence level accurately reflects the true situation of the second data in the data table, improving the reliability of the confidence level and thus improving the accuracy of data classification.

[0153] This embodiment provides another data classification method, which can be used for... Figure 1 The data asset management platform shown Figure 9 This is a flowchart of another data classification method according to an embodiment of this application, such as... Figure 9 As shown, the process includes the following steps: Step 901: Obtain the data structure of the data to be classified.

[0154] Step 902: If there is a first data in the data to be classified that is unstructured, send the first data to the pre-trained natural language data classification model to obtain the data category of the first data.

[0155] Step 903: If there is a second data in the data to be classified that has a structured or semi-structured data structure, then the initial data category of the second data is identified according to the pre-built set of regular expressions.

[0156] Step 904: Determine the first confidence level corresponding to the initial data category according to the preset confidence rules.

[0157] Step 905: If the first confidence level is less than the first threshold, then the second data is classified using a natural language data classification model and the second confidence level corresponding to the initial data category is determined.

[0158] Step 906: Determine the total confidence level corresponding to the initial data category of the second data based on the first confidence level and the second confidence level.

[0159] Step 907: If the total confidence level is greater than the first threshold, then the initial data category is determined as the data category of the second data.

[0160] For details on steps 901 to 907, please refer to [link / reference]. Figure 5 Steps 501 to 507 in the illustrated embodiment will not be described in detail here.

[0161] Step 908: Determine the sub-tags of the first data from the pre-built tag library based on the data category and metadata information of the first data.

[0162] Sub-tags are used to indicate sub-data categories within a given data category. The data asset management platform may also include a tag library module, which stores a pre-built tag library. A tag library is a set of predefined tags used to describe the attributes and characteristics of a thing, article, image, etc. The tag library includes tag sets and mappings. Each tag set includes a tag identifier, tag name, tag category, associated keywords, set creation time, and last update time. The mapping includes a list corresponding to each keyword, storing all tags containing that keyword.

[0163] The first data classification engine retrieves the metadata information of the first data from the mapping and returns a list corresponding to that metadata information. Each tag in this list is an object containing a tag name and a tag category. The first data classification engine then searches the retrieved list for tag categories that match the data category of the first data and identifies the tag name corresponding to the found tag category as a sub-tag of the first data.

[0164] Optionally, a tag library needs to be built before step 908. This can be done by configuring a MongoDB database and creating a collection of "tags," i.e., a tag set. Each tag set represents a data category tag. A tag set can include the following: _id: A unique ID automatically generated by MongoDB to uniquely label each tag; this ID is the tag identifier.

[0165] tag: Tag name.

[0166] Category: Tag category, used to describe the major category or relationship type of tags.

[0167] keywords: An array containing keywords associated with this tag.

[0168] created_at: The time the collection was created.

[0169] updated_at: The time when the collection was last updated.

[0170] Optionally, the mapping is maintained using an inverted index. When maintaining the mapping, the key is the keyword, and the value is all tags containing that keyword. The data asset management platform provides maintenance services for the tag library in the tag library module, mainly including initializing or adding new tags and deleting or modifying existing tags or keywords. When initializing or adding a new tag, the new tag or keyword needs to be inserted into MongoDB to initialize or add a new tag set. The inverted index also needs to be updated synchronously to ensure that the search algorithm on the data asset platform reflects the latest tag information. When updating the inverted index, a mapping needs to be established for each keyword associated with the new tag. In this mapping, each keyword corresponds to a list storing the tag names and tag categories from all tag sets containing that keyword. Thus, when a new tag is added or initialized to the list corresponding to a keyword in the mapping, the category information of that tag is also added simultaneously. More detailed filtering or sorting based on tag categories can be performed subsequently to provide more accurate search results.

[0171] When deleting or modifying existing tags or keywords, you need to delete or modify the specified tags or keywords in MongoDB to update the tag collection. You also need to update the inverted index accordingly to update the mapping. If you delete or modify a tag, you need to delete that tag and its category in every keyword's mapping. If you delete or modify a keyword, you need to delete the mapping for that keyword or modify the keyword in that keyword's mapping.

[0172] Understandably, to ensure the efficiency of the tag library, it is also necessary to regularly clean up invalid tags and keywords, as well as optimize search algorithms and database configurations.

[0173] Step 909: Determine the sub-tags of the second data from the tag library based on the data category and metadata information of the second data.

[0174] Step 909 is similar to step 908, except that the second data classification engine searches the mapping to determine the sub-labels of the second data.

[0175] Step 910: Associate and store the already classified data in the data to be classified with its own data category.

[0176] For details on step 910, please refer to [link / reference]. Figure 5 Step 508 in the illustrated embodiment will not be described in detail here.

[0177] Optionally, the data asset management platform can also provide users with data query services, the specific service process of which is as follows: Figure 10 As shown. To ensure the reliability of the queried data, the data classification method executed by the data asset management platform may further include: responding to a user's request to query target metadata, querying the target metadata from the metadata storage database; if the target metadata exists in the metadata storage database, and the storage time of the target metadata in the metadata storage database is less than or equal to a second threshold, then returning the target metadata; if the storage time is greater than the second threshold, or the target metadata does not exist in the metadata storage database, then obtaining the current metadata information of the database to which the target metadata belongs; updating the metadata storage database based on the current metadata information, so as to search for and return the target metadata in the updated metadata storage database.

[0178] The metadata storage database stores data and metadata information retrieved from connected databases. The second threshold can be defined by the user. In response to a user's request to query target metadata, the data asset management platform queries the metadata storage database to determine if the target metadata exists in the database. If it exists, it checks if the storage time of the target metadata in the metadata storage database is less than or equal to the user-defined time, i.e., the second threshold. If it is less than the second threshold, the platform reads the target metadata from the metadata storage database and returns it. Figure 10 The query results are returned.

[0179] If the target metadata does not exist in the metadata storage database, or if the target metadata has been stored in the metadata storage database for more than the second threshold, the data asset management platform will notify the database metadata information acquisition module (i.e., Figure 10The database connection module (based on the ORM framework) queries the corresponding data based on the database type of the target metadata's database, and can also automatically construct query statements based on the ORM framework. The database metadata information acquisition module executes the SQL query statement in the data query strategy to obtain the query results, i.e., the current metadata information of the database to which the target metadata belongs, and formats the current metadata information according to the data storage strategy in the data query strategy, storing it in the metadata storage database. It then queries the metadata storage database again and returns the target metadata. This ensures that when a user queries metadata information, metadata information within the storage time or equal to a second threshold is returned to the user; otherwise, the metadata information is retrieved again, guaranteeing the timeliness and reliability of the metadata information.

[0180] In this embodiment, a natural language data classification model with sophisticated data processing capabilities and high accuracy is used to classify complex unstructured data, improving the accuracy of such classification. Furthermore, when classifying semi-structured or structured data using a set of regular expressions, a confidence score corresponding to each data category is calculated. This confidence score determines the reliability of the data category classification, further improving the accuracy of semi-structured or structured data classification. Moreover, after data classification, sub-data categories are determined from a tag library based on the data category and metadata information. These sub-data categories are stored together, facilitating subsequent data retrieval based on sub-data categories and enabling users to manage their data assets more conveniently.

[0181] This embodiment also provides a data classification device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0182] This embodiment provides a data classification device, such as... Figure 11 As shown, it includes: The acquisition module 1110 is used to acquire the data structure of the data to be classified; The sending module 1120 is used to send the first data, which has an unstructured data structure, to a pre-trained natural language data classification model to obtain the data category of the first data if there is a first data in the data to be classified. The identification module 1130 is used to identify the initial data category of the second data if there is a second data with a structured or semi-structured data structure in the data to be classified, based on a pre-built set of regular expressions. The first determining module 1140 is used to determine the first confidence level corresponding to the initial data category according to the preset confidence rules; The second determining module 1150 is used to classify the second data using a natural language data classification model and determine the second confidence level corresponding to the initial data category if the first confidence level is less than the first threshold. The third determining module 1160 is used to determine the total confidence level corresponding to the initial data category of the second data based on the first confidence level and the second confidence level; The fourth determination module 1170 is used to determine the initial data category as the data category of the second data if the total confidence level is greater than the first threshold. Storage module 1180 is used to associate and store the classified data in the data to be classified with its own data category.

[0183] In some optional embodiments, the acquisition module includes: The selection unit is used to select a data query strategy corresponding to the target database based on the preset time period and the database type of the target database. The first extraction unit is used to extract metadata information, data sets, and data structure identification information of the target database according to the data query strategy. The second extraction unit is used to extract the original data to be classified from the dataset based on metadata information; The processing unit is used to process the raw data to be classified according to the preprocessing operations corresponding to the data structure identification information; The conversion unit is used to convert the processed original data to be classified into the target data format to obtain the data to be classified. The determination unit is used to determine the data structure of the data to be classified based on the data structure identification information.

[0184] In some optional embodiments, the first determining module includes: The acquisition unit is used to acquire the total amount of data in the data table to which the second data belongs, the first amount of sampled data in the data table, the second amount of data in the data table after removing null values, and the third amount of data in the data table after removing null values ​​that is matched by regular expressions in the set of regular expressions. The first determining unit is used to determine the first confidence level corresponding to the initial data category based on the first ratio between the third data volume and the second data volume, the second ratio between the first data volume and the total data volume, and the third ratio between the second data volume and the first data volume.

[0185] In some optional embodiments, the data classification device further includes: The query module is used to respond to a user's request to query target metadata by retrieving the target metadata from the metadata storage database. The metadata storage database is used to store data and metadata information obtained from connected databases. The return module is used to return the target metadata if the target metadata exists in the metadata storage database and the storage time of the target metadata in the metadata storage database is less than or equal to the second threshold. The acquisition module is also used to acquire the current metadata information of the database to which the target metadata belongs if the storage time is greater than the second threshold or if the target metadata does not exist in the metadata storage database. The query module is also used to update the metadata storage database based on the current metadata information, so as to find and return the target metadata in the updated metadata storage database.

[0186] In some optional embodiments, the identification module includes: The matching unit is used to match the second data against each regular expression in the set of regular expressions; The second determining unit is used to determine the label corresponding to the first regular expression as the label of the second data if the first regular expression matches the second data successfully, thereby obtaining the initial data category of the second data. The label is used to indicate the data category to which the data belongs. The first regular expression is any regular expression in the set of regular expressions.

[0187] In some optional embodiments, the data classification device further includes: The verification module is used to verify the second data according to the verification algorithm corresponding to the preset data category if the data category indicated by the label of the second data is a preset data category. The recognition module is also used to return to the step of matching the second data with each regular expression in the set of regular expressions if the second data fails to pass the validation, and to redetermine the label of the second data.

[0188] In some optional embodiments, the sending module includes: The third extraction unit is used to perform feature extraction on the first data using a natural language data classification model based on a preset stop word library and a preset named entity recognition word segmentation list, to obtain feature data. The identification unit is used to identify the data category to which the feature data belongs based on a pre-built list of data categories using a natural language data classification model, and to obtain the label of the first data. The label is used to indicate the data category to which the data belongs.

[0189] In some optional embodiments, the second determining module is further configured to determine sub-tags of the first data from a pre-built tag library based on the data category of the first data and the metadata information of the first data. The sub-tags are used to indicate the sub-data category of the data under its own data category. The identification module is used to determine the sub-tags of the second data from the tag library based on the data category and metadata information of the second data.

[0190] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0191] In this embodiment, the data classification device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0192] This application also provides a computer device having the above-described features. Figure 11 The data classification device shown.

[0193] Please see Figure 12 , Figure 12 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of this application, such as... Figure 12 As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 12 Take a processor 10 as an example.

[0194] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0195] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.

[0196] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0197] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0198] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.

[0199] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the methods shown in the above embodiments are implemented.

[0200] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.

Claims

1. A data classification method, characterized in that, Applied to a data asset management platform, the method includes: Obtain the data structure of the data to be classified; If there is a first data in the data to be classified that has an unstructured data structure, the first data is sent to a pre-trained natural language data classification model to obtain the data category of the first data; If there is a second data in the data to be classified that has a structured or semi-structured data structure, then the initial data category of the second data is identified according to a pre-constructed set of regular expressions; the data categories of the first data and the initial data categories of the second data include at least resident ID card number, financial invoice number or bank card number; and the first confidence level corresponding to the initial data category is determined according to a pre-set confidence rule. If the first confidence level is less than the first threshold, the second data is classified using the natural language data classification model, and the second confidence level corresponding to the initial data category is determined. Based on the first confidence level and the second confidence level, determine the total confidence level corresponding to the initial data category of the second data; If the total confidence level is greater than the first threshold, then the initial data category is determined as the data category of the second data; The classified data in the data to be classified are associated and stored with their respective data categories.

2. The method according to claim 1, characterized in that, The data structure for obtaining the data to be classified includes: Based on the preset time period and the database type of the target database, select the data query strategy corresponding to the target database; Based on the data query strategy, extract the metadata information, data sets, and data structure identification information of the target database; Based on the metadata information, the original data to be classified is extracted from the data set; The original data to be classified is processed according to the preprocessing operation corresponding to the data structure identification information; The data format of the processed original data to be classified is converted into the target data format to obtain the data to be classified; The data structure of the data to be classified is determined based on the data structure identifier information.

3. The method according to claim 1, characterized in that, Based on preset confidence rules, the first confidence level corresponding to the initial data category is determined, including: The total amount of data in the data table to which the second data belongs, the first amount of sampled data in the data table, the second amount of data in the data table after removing null values, and the third amount of data in the data table after removing null values ​​that are matched by the regular expressions in the set of regular expressions; The first confidence level corresponding to the initial data category is determined based on the first ratio between the third data volume and the second data volume, the second ratio between the first data volume and the total data volume, and the third ratio between the second data volume and the first data volume.

4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: In response to a user's request to query target metadata, the target metadata is queried from a metadata storage database, which stores data and metadata information obtained from connected databases. If the target metadata exists in the metadata storage database, and the storage time of the target metadata in the metadata storage database is less than or equal to the second threshold, then the target metadata is returned. If the storage time is greater than the second threshold, or if the target metadata does not exist in the metadata storage database, then obtain the current metadata information of the database to which the target metadata belongs; Based on the current metadata information, update the metadata storage database to find and return the target metadata in the updated metadata storage database.

5. The method according to claim 1, characterized in that, The step of identifying the initial data category of the second data based on a pre-constructed set of regular expressions includes: The second data is matched according to each regular expression in the set of regular expressions; If the first regular expression matches the second data, the label corresponding to the first regular expression is determined as the label of the second data, and the initial data category of the second data is obtained. The label is used to indicate the data category to which the data belongs. The first regular expression is any regular expression in the set of regular expressions.

6. The method according to claim 5, characterized in that, After determining the label corresponding to the first regular expression as the label of the second data and obtaining the initial data category of the second data, the method further includes: If the data category indicated by the label of the second data is a preset data category, then the second data is verified according to the verification algorithm corresponding to the preset data category; If the second data fails validation, the process returns to the step of matching the second data using each regular expression in the set of regular expressions, and the label of the second data is determined again.

7. The method according to claim 1, characterized in that, The step of sending the first data to a pre-trained natural language data classification model to obtain the data category of the first data includes: The natural language data classification model is used to perform feature extraction on the first data based on a preset stop word library and a preset named entity recognition word segmentation list to obtain feature data. The natural language data classification model is used to identify the data category to which the feature data belongs based on a pre-built list of data categories, thereby obtaining the label of the first data. The label is used to indicate the data category to which the data belongs.

8. The method according to any one of claims 1 to 3 and 5 to 7, characterized in that, Before associating and storing the already classified data in the data to be classified with its own data category, the method further includes: Based on the data category of the first data and the metadata information of the first data, sub-tags of the first data are determined from a pre-built tag library. The sub-tags are used to indicate the sub-data category of the data under its own data category. Based on the data category and metadata information of the second data, sub-tags of the second data are determined from the tag library.

9. A data asset management platform, characterized in that, The platform, applied to the data classification method as described in any one of claims 1 to 8, comprises a database metadata information acquisition module, a data distribution module, a first data classification engine, a second data classification engine, a data classification result verification module, and a data classification result storage module; The database metadata information acquisition module is used to acquire the data structure of the data to be classified. The data distribution module is used to send the first data with an unstructured data structure in the data to be classified to the first data classification engine; The second data in the data to be classified, which has a structured or semi-structured data structure, is sent to the second data classification engine; The first data classification engine is used to send the first data to a pre-trained natural language data classification model to obtain the data category of the first data; and to receive the second data sent by the data distribution module, and use the natural language data classification model to determine the second confidence level corresponding to the initial data category of the second data according to the preset confidence rules; and to send the second confidence level to the data classification result verification module. The second data classification engine is used to identify the initial data category of the second data based on a pre-built set of regular expressions; Furthermore, based on preset confidence rules, a first confidence level corresponding to the initial data category is determined; the first confidence level is then sent to the data classification result verification module. The data classification result verification module is used to receive the first confidence level and the second confidence level sent by the first data classification engine and the second data classification engine respectively, and determine the total confidence level corresponding to the initial data category of the second data; if the total confidence level is greater than the first threshold, the initial data category is determined as the data category of the second data. Furthermore, if the first confidence level is less than the first threshold, the second data is sent to the first data classification engine through the data distribution module; The data classification result storage module is used to associate and store the classified data in the data to be classified with its own data category.

10. The platform according to claim 9, characterized in that, The platform also includes a data preprocessing module; The database metadata acquisition module is specifically used to select a data query strategy corresponding to the target database based on a preset time period and the database type of the target database. According to the data query strategy, the original metadata information and data structure identification information of the target database are extracted; the original data to be classified is extracted from the original metadata information; and the original data to be classified and the data structure identification information are sent to the data preprocessing module. The data preprocessing module is used to process the original data to be classified according to the preprocessing operation corresponding to the data structure identification information; The processed original data to be classified is converted into the target data format to obtain the data to be classified; the data to be classified and the data structure identification information are sent to the data distribution module. The data distribution module is used to determine the data structure of the data to be classified based on the data structure identifier information.

11. The platform according to claim 9 or 10, characterized in that, The platform also includes a tag library module; The first data classification engine is also used to determine the sub-tags of the first data from the pre-built tag library in the tag library module according to the data category of the first data and the metadata information of the first data. The sub-tags are used to indicate the sub-data category of the data under its data category. The second data classification engine is also used to determine the sub-tags of the second data from the pre-built tag library in the tag library module based on the data category of the second data and the metadata information of the second data.

12. A data classification device, characterized in that, The device, used in a data asset management platform, includes: The acquisition module is used to acquire the data structure of the data to be classified. The sending module is used to send the first data, which has an unstructured data structure, to a pre-trained natural language data classification model to obtain the data category of the first data if there is a first data in the data to be classified. The identification module is used to identify the initial data category of the second data if there is a second data with a structured or semi-structured data structure in the data to be classified, based on a pre-constructed set of regular expressions; the data category of the first data and the initial data category of the second data include at least a resident ID card number, a financial invoice number, or a bank card number; The first determining module is used to determine the first confidence level corresponding to the initial data category according to the preset confidence rules; The second determining module is used to classify the second data using the natural language data classification model and determine the second confidence level corresponding to the initial data category if the first confidence level is less than the first threshold. The third determining module is used to determine the total confidence level corresponding to the initial data category of the second data based on the first confidence level and the second confidence level; The fourth determining module is used to determine the initial data category as the data category of the second data if the total confidence level is greater than the first threshold. The storage module is used to associate and store the classified data in the data to be classified with its own data category.

13. A computer device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the data classification method of any one of claims 1 to 8 by executing the computer instructions.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the data classification method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Natural language processing method and device and storage medium

    CN113590831A

  • Apparatus and method for processing natural language using structured and unstructured data

    KR102342055B1