Data processing method, device, storage medium and computer equipment
Through the data category recognition model based on the Chinese text classification deep learning algorithm, it solves the problems of low accuracy and small coverage of massive data recognition in the existing technology, achieves efficient recognition of complex data types and fine-grained security control, and ensures data Safe to use and share.
Patent Information
- Application Number
- CN202210212791.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-02-28
AI Technical Summary
When faced with massive data scenarios, existing technology is difficult to effectively identify complex and diverse business operation data, user behavior data, financial statement data and other relatively complex data types, resulting in low accuracy, small coverage, and expansion of sensitive data identification. Weak.
Using a data category recognition model based on Chinese text classification deep learning algorithm, the Chinese remark information of the data field name is obtained for word segmentation and standardization processing, feature vectors are extracted, the data category is determined, and the data sensitivity level is determined according to the category, so as to carry out corresponding security measures. Control processing.
It realizes high-dimensional feature analysis and mining of massive data, with high recognition accuracy and high data recognition coverage. It can accurately identify the categories of all data, provide fine-grained security control, and support the safe use and sharing of data.
Smart Images

Figure CN114595689B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data processing method, device, computer-readable storage medium and computer equipment. Background Art
[0002] With the development of big data technology, enterprises have gathered various types of data to form a unified data resource pool. While data is open to different users of the company and the society as an asset, it increases the risk of sensitive data leakage and illegal use. Therefore, in the use of data sharing, it is particularly important to ensure the security of sensitive data and prevent data leakage. Nowadays, enterprises have a huge amount of data. The traditional unified data management method is difficult to perform fine-grained security management of hundreds of millions of data fields in the enterprise, and cannot meet the existing data security and compliance needs.
[0003] In the prior art, data keyword matching and identification are performed by defining data field names, or regular rules are constructed for matching and identification of some regular data values. For example, when identifying data such as ID card number, name, mobile phone number, address, etc. in sensitive data, when the monitoring data meets the agreed matching conditions, it is judged as sensitive data. However, the above method can work well when there are fewer data categories or single data values, but in the face of massive data scenarios, complex and diverse business operation data, user behavior data, financial statement data and other more complex data types, there are often problems such as difficulty in rule construction in sensitive identification, low accuracy, small data identification coverage, and weak scalability. Summary of the invention
[0004] In order to solve at least one of the above-mentioned technical defects, the present invention provides a data processing method and corresponding device, computer-readable storage medium and computer equipment according to the following technical solution.
[0005] According to one aspect, an embodiment of the present invention provides a data processing method, comprising the following steps:
[0006] Get the Chinese remark information corresponding to the field name of the data to be processed;
[0007] Performing word segmentation and standardization processing on the Chinese remark information to obtain a feature vector of the Chinese remark information;
[0008] Input the feature vector into a data category recognition model to determine the data category of the data to be processed; wherein the data category recognition model is pre-trained and generated based on a Chinese text classification deep learning algorithm; the data category is a lowest-level subcategory under a pre-constructed at least two-level category directory;
[0009] According to the data category, a data sensitivity level of the data to be processed is determined.
[0010] Preferably, the data category recognition model is pre-trained and generated by the following steps:
[0011] Obtaining sample data and data category labels corresponding to the lowest level subcategories under the at least two levels of category directories;
[0012] Performing word segmentation and standardization on the Chinese remark information corresponding to the field name of the sample data to obtain a training feature vector;
[0013] According to the training feature vector and the corresponding data category label, the initial model is trained based on the Chinese text classification deep learning algorithm to obtain the data category recognition model.
[0014] Preferably, the data category recognition model is a FastText model generated by pre-training based on the FastText algorithm.
[0015] Preferably, the at least two-level category catalog is pre-constructed by the following steps:
[0016] Obtain a data set and perform word segmentation and word frequency analysis on the field names in the data set to obtain word frequency analysis results;
[0017] Determine a primary category according to the word frequency analysis result;
[0018] Based on the k-means clustering algorithm, cluster analysis is performed on the data under the first-level category to generate at least two-level category directories.
[0019] Preferably, the k-means clustering algorithm is used to perform cluster analysis on the data under the first-level category to generate at least two-level category directories, including:
[0020] Performing cluster analysis on the data under the primary category based on the k-means clustering algorithm to determine the secondary subcategories corresponding to the primary category;
[0021] Based on the k-means clustering algorithm, cluster analysis is performed on the categories whose data types in the secondary subcategories reach a preset number, the tertiary subcategories corresponding to the primary categories are determined, and a tertiary category directory is generated.
[0022] Preferably, after determining the data sensitivity level of the data to be processed according to the data category, the method further includes:
[0023] According to the data sensitivity level, security control processing matching the data sensitivity level is performed on the data to be processed.
[0024] Preferably, the data sensitivity levels include a first level, a second level, a third level and a fourth level with sensitivity ranging from low to high;
[0025] The step of performing security control processing on the data to be processed that matches the data sensitivity level according to the data sensitivity level includes:
[0026] If the data sensitivity level is the first level, the data to be processed is configured to be open to the outside and stored on a medium for external use;
[0027] If the data sensitivity level is the second level, the data to be processed is configured to be open only to internal users and stored in an internal system;
[0028] If the data sensitivity level is level 3, the data to be processed is configured to be open only to relevant internal personnel, encrypted and stored in the internal system, and encrypted for transmission and restricted for output;
[0029] If the data sensitivity level is the fourth level, the data to be processed will be configured to be open only to specific internal personnel, encrypted and stored in the internal system, and encrypted and transmitted and limited to use in specific business scenarios.
[0030] In addition, according to another aspect, an embodiment of the present invention provides a data processing device, including:
[0031] The information acquisition module is used to obtain the Chinese remark information corresponding to the field name of the data to be processed;
[0032] A word segmentation module, used for performing word segmentation and standardization processing on the Chinese remark information to obtain a feature vector of the Chinese remark information;
[0033] A category recognition module, used for inputting the feature vector into a data category recognition model to determine the data category of the data to be processed; wherein the data category recognition model is pre-trained and generated based on a Chinese text classification deep learning algorithm; the data category is a lowest-level subcategory under a pre-constructed at least two-level category directory;
[0034] The sensitivity level determination module is used to determine the data sensitivity level of the data to be processed according to the data category.
[0035] According to another aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned data processing method is implemented.
[0036] According to another aspect, an embodiment of the present invention provides a computer device, wherein the computer includes one or more processors; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more computer programs are configured to: execute the above-mentioned data processing method.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] The data processing method, device, computer-readable storage medium and computer equipment provided by the present invention can be applied to application scenarios of data classification and grading, and sensitive data management. The data category recognition model constructed based on the Chinese text classification deep learning algorithm can realize accurate recognition of data categories, and then determine the data sensitivity level according to the data category. Compared with the recognition method that relies on field names to construct keyword matching rules and data value regularization judgment in traditional methods, it can avoid the problems of difficult rule construction, low accuracy, and small data recognition coverage in sensitive identification. By using the data category recognition model to extract features of Chinese remark information, high-dimensional feature analysis and mining of data are realized, and the recognition accuracy is high. The data category recognition model based on Chinese remark information has a high generalization ability, can accurately identify the data category of the entire data, and has a high data recognition coverage rate, providing strong technical support for secure management and control of data and realizing safe use and sharing of data.
[0039] Additional aspects and advantages of the present invention will be given in part in the following description, which will become obvious from the following description, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0041] Figure 1 A method flow chart of a data processing method provided by an embodiment of the present invention;
[0042] Figure 2 A flow chart of a method for constructing at least two-level category directories provided by an embodiment of the present invention;
[0043] Figure 3 A flow chart of a method for training a data category recognition model provided by an embodiment of the present invention;
[0044] Figure 4 A schematic diagram of the structure of a data processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.
[0046] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0047] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.
[0048] The embodiment of the present invention provides a data processing method that can be applied to application scenarios of data classification and grading, and sensitive data management. Specifically, the data processing method that implements data classification and grading is an efficient data classification and grading management for massive data in a big data system, and is a service provision method based on a big data system that combines data permission management, data desensitization, and security auditing. By combining the classification and grading of the full amount of data, data desensitization, and permission management services, an effective technical support is provided for the realization of data security services, and good results have been achieved in actual production applications.
[0049] like Figure 1 As shown, the data processing method provided by the embodiment of the present invention includes the following steps:
[0050] Step S110: Obtain Chinese remark information corresponding to the field name of the data to be processed.
[0051] For this embodiment, the data to be processed is data to be classified and graded, wherein data classification and grading refers to first classifying the data into the data category to which it belongs, and further determining the data sensitivity level of the data according to the data category to which it belongs.
[0052] When the data in the platform or system has data classification and grading and / or sensitive data management requirements, the Chinese remark information corresponding to the field name of the data to be processed is obtained. Among them, the data to be processed is stored in the database with tables as organizational units, and each column in the table is a field. The field name refers to the identifier of each column in the table with a relational model as the data structure. The field name can be customized by the database builder, usually composed of English letters, or natural numbers and underscores. In an embodiment of the present invention, in order to make the meaning of the field name clearer and more accurate, each field name is pre-set with Chinese remark information for explaining its meaning.
[0053] For example, the Chinese annotation information corresponding to the field name mobile_telephone is the mobile phone number.
[0054] Step S120: performing word segmentation and standardization processing on the Chinese remark information to obtain a feature vector of the Chinese remark information.
[0055] In this embodiment, Chinese word segmentation technology is used to segment the Chinese remark information obtained in step S110, and stop words are removed to avoid interference of stop words on subsequent model classification results, and the Chinese remark information is segmented into one or more words.
[0056] Then, the one or more words obtained by segmentation are standardized to obtain a feature vector of the Chinese remark information, and the feature vector of the Chinese remark information is used as input data of a data category recognition model.
[0057] In other embodiments, after the Chinese remark information is segmented, high-frequency special nouns associated with the business can be added based on the segmented words according to the specific business scenario to avoid missing special keywords related to the business when the Chinese remark information is segmented. Then, the one or more words obtained by segmentation and the added high-frequency special nouns are standardized to obtain a feature vector of the Chinese remark information. By adding high-frequency special nouns to generate a feature vector of the Chinese remark information, the feature vector is used as input data of the data category recognition model, which can provide strong technical support for improving recognition accuracy.
[0058] Step S130: Input the feature vector into a data category recognition model to determine the data category of the data to be processed; wherein the data category recognition model is pre-trained and generated based on a Chinese text classification deep learning algorithm; the data category is a lowest-level subcategory under a pre-constructed at least two-level category directory.
[0059] For this embodiment, the data category recognition model is generated by pre-training a deep learning algorithm for Chinese text classification.
[0060] Among them, the Chinese text classification deep learning algorithm includes FastText (an open source word vector calculation and text classification tool), TextCNN (text convolutional neural network), TextRNN (text recurrent neural network), RCNN (regional convolutional neural network), HAN (Hierarchical Attention Network), BERT (Bidirectional Encoder Representations from Transformers), etc., which is not limited to the embodiment of the present invention.
[0061] By inputting the feature vector of the Chinese remark information into the data category recognition model, the features are extracted and mapped to obtain the corresponding data category labels through the input layer, middle layer and output layer of the data category recognition model, thereby determining the data category of the data to be processed.
[0062] Chinese remark information has higher category distinction than field names. By using the data category recognition model to extract features from Chinese remark information, high-dimensional feature analysis and mining of data can be achieved with high recognition accuracy.
[0063] In addition, the data category recognition model based on Chinese annotation information has a high generalization ability, can accurately identify the data categories of the entire data, and has a high data recognition coverage rate.
[0064] For this embodiment, the at least two-level category directory can be a two-level category directory, a three-level category directory, a four-level category directory, a five-level category directory or even a ten-level category directory. The number of levels of the directory tree of the at least two-level category directory can be customized according to the business scenario of the enterprise and the national classification and grading standards. The embodiment of the present invention does not limit the specific value of the number of levels of the directory tree of the at least two-level category directory. By pre-constructing at least two-level category directories according to the business scenarios of the enterprise and the national classification and grading standards, and dividing the data category directory with sufficiently fine granularity, it can effectively cope with the application scenarios that require the classification and grading of massive data of various types.
[0065] For this embodiment, the data category of the data to be processed is the lowest level subcategory under the pre-built at least two-level category directory. The lowest level category refers to a level category that has no branches and is the lowest level under the current category directory tree branch.
[0066] For example, a two-layer category directory is pre-constructed, and the two-layer category directory includes a primary category and a secondary subcategory under the primary category with branches, and the data category of the data to be processed is determined to be a primary category without branches or a secondary subcategory under the primary category with branches.
[0067] In other embodiments, after the data category of the to-be-processed data is determined based on the data category recognition model, manual verification may be performed to verify the accuracy of the data category recognition of the data category recognition model.
[0068] Step S140: Determine the data sensitivity level of the data to be processed according to the data category.
[0069] For this embodiment, based on a comprehensive analysis of the importance, utilization value, and scope of influence of data assets within the business scope of the platform or system, the data can be divided into several data sensitivity levels in advance according to the degree of data sensitivity. The data sensitivity levels may be two, three, five, eight, or the like. The embodiment of the present invention does not limit the specific number of divided data sensitivity levels.
[0070] For this embodiment, the corresponding data sensitivity level is pre-set for the lowest level sub-category under the at least two-level category directory. Specifically, in actual application scenarios, the data sensitivity level can be set for the lowest level sub-category based on the at least two-level category directory, combined with the scope of the data category and the business scenarios involved, and divided into several levels according to the sensitivity.
[0071] In this embodiment, after the data category of the data to be processed is determined based on the data category recognition model, the data sensitivity level of the data to be processed is determined based on a correspondence between the preset data category and the data sensitivity level.
[0072] The data processing method provided by the present invention can be applied to application scenarios of data classification and grading, and sensitive data management. It realizes accurate identification of data categories through a data category recognition model constructed based on a Chinese text classification deep learning algorithm, and then determines the data sensitivity level according to the data category. Compared with the traditional method that relies on field names to construct keyword matching rules and data value regularization judgment, it can avoid the problems of difficult rule construction, low accuracy, and small data recognition coverage in sensitive identification. By using the data category recognition model to extract features of Chinese remark information, high-dimensional feature analysis and mining of data are realized, and the recognition accuracy is high. The data category recognition model based on Chinese remark information has a high generalization ability, can accurately identify the data categories of all data, and has a high data recognition coverage rate, which provides strong technical support for secure management and control of data and the safe use and sharing of data.
[0073] In some embodiments, Figure 2 As shown, the at least two-level category catalog is pre-built through the following steps:
[0074] Step S210: Acquire a data set and perform word segmentation and word frequency analysis on the field names in the data set to obtain word frequency analysis results.
[0075] For this embodiment, when constructing at least two levels of category directories related to the platform business, first randomly extract field information from the full amount of data stored in the platform or system, including table names, library names, field names, field notes, etc., randomly sample and obtain part of the data set, and segment the field names in the data set into multiple words by performing word segmentation, and perform word frequency analysis, and count the word frequency data of each word to obtain the word frequency analysis result.
[0076] Step S220: Determine the primary category according to the word frequency analysis result.
[0077] For this embodiment, based on the word frequency analysis results that can reflect the frequency of each word, important words with high word frequency are analyzed, the important words are divided into the data categories to which they belong, and the first-level categories are determined based on the business scenarios of the enterprise and the national classification and grading standards to form a first-level category directory.
[0078] For example, the first-level categories determined are user basic information category, device information category, account information category, enterprise financial category, etc.
[0079] Step S230: performing cluster analysis on the data under the first-level category based on the k-means clustering algorithm to generate at least two-level category directories.
[0080] For this embodiment, according to the formed first-level category directory, the data under each category in the first-level category is divided into finer granularity. Specifically, firstly, the data field name under each category in the obtained first-level category is vectorized, and the vectorized data is clustered using the unsupervised learning k-means clustering algorithm to subdivide multiple sub-category clusters, and the data under each sub-category cluster is labeled to obtain the second-level sub-category, and generate a two-level category directory.
[0081] In addition, clusters with more data types under subcategories can be subjected to one or more clustering analysis processes based on the k-means clustering algorithm to further divide clusters with more data types under subcategories and generate a multi-level category directory.
[0082] For this embodiment, the at least two-level category directory can be a two-level category directory, a three-level category directory, a four-level category directory, a five-level category directory or even a ten-level category directory. The number of directory tree levels of the at least two-level category directory can be customized according to the business scenarios of the enterprise and the national classification and grading standards. The embodiment of the present invention does not limit the specific numerical value of the number of directory tree levels of the at least two-level category directory.
[0083] In this embodiment, in the scenario of facing the full amount of data, the data categories are subdivided through word frequency analysis of field names and k-means clustering algorithm, and at least two levels of category directories are constructed according to the business scenarios of the enterprise and national classification and grading standards. This can divide the data category directory with sufficiently fine granularity and can effectively cope with application scenarios that require classification and grading of massive data of many types.
[0084] In addition, by cleaning the data of the lowest level subcategories under the at least two levels of category directories, removing noise data, eliminating interfering data, and labeling the data with data categories, a complete sample data set corresponding to at least two levels of category directories and the lowest level subcategories that can serve as a data asset category directory is finally formed.
[0085] In some embodiments, three levels are used as the preferred number of directory levels, and the at least two levels of category directories are specifically three levels of category directories.
[0086] For the present embodiment, for the three-level category directory, the step S230 performs cluster analysis on the data under the first-level category based on the k-means clustering algorithm to generate at least two-level category directories, specifically: performs cluster analysis on the data under the first-level category based on the k-means clustering algorithm to determine the second-level subcategories corresponding to the first-level category; performs cluster analysis on the categories in the second-level subcategories whose data types reach a preset number based on the k-means clustering algorithm to determine the third-level subcategories corresponding to the first-level category, and generates a three-level category directory.
[0087] For this embodiment, first, the data field names under each category in the obtained first-level category are vectorized, and the vectorized data are clustered using the unsupervised learning k-means clustering algorithm to subdivide multiple subclass clusters, and the data under each subclass cluster is labeled to obtain second-level subcategories, and a two-level category directory is generated; then, based on the k-means clustering algorithm, the categories whose data types under the second-level subcategories reach a preset number are clustered and analyzed again, and the categories whose data types under the second-level subcategories reach a preset number are further divided to obtain third-level subcategories, and a three-level category directory is generated.
[0088] The preset number can be set to any value greater than 1 according to actual application requirements, and the specific value of the preset number is not limited in this embodiment. For example, the category with two data types under the secondary subcategory can be clustered again.
[0089] For example, under the three-level category directory, the user basic information as the first-level category includes second-level sub-categories of contact information such as contact information, gender, age, name, and residential address, and the contact information as the second-level sub-category includes third-level sub-categories such as mobile phone number, landline number, and email address.
[0090] In some embodiments, Figure 3 As shown, the data category recognition model is pre-trained and generated through the following steps:
[0091] Step S310: Obtain sample data and data category labels corresponding to the lowest level subcategory under the at least two levels of category directories.
[0092] For this embodiment, a sample data set corresponding to the lowest level subcategory of the at least two-level category directory is formed when constructing the at least two-level category directory. This step constructs a data category recognition model based on the sample data and data category labels in the sample data set corresponding to the lowest level subcategory under the at least two-level category directory.
[0093] Step S320: performing word segmentation and standardization processing on the Chinese remark information corresponding to the field name of the sample data to obtain a training feature vector.
[0094] For this embodiment, after obtaining the sample data corresponding to the lowest level subcategory, the Chinese word segmentation technology is used to segment the Chinese remark information of the field name of the sample data, and the stop words therein are removed to avoid the stop words from interfering with the model training results, and the Chinese remark information is segmented into one or more words.
[0095] Then, one or more words obtained by segmentation are standardized to obtain a training feature vector, and the training feature vector is used as training data for the data category recognition model.
[0096] In other embodiments, after the Chinese remark information of the field name of the sample data is segmented, high-frequency special nouns associated with the business can be added based on the segmented words according to the specific business scenario to avoid missing special keywords related to the business when the Chinese remark information of the field name of the sample data is segmented. Then, the one or more words obtained by segmentation and the added high-frequency special nouns are standardized to obtain the training feature vector. By generating a training feature vector after adding high-frequency special nouns, the training feature vector is used as training data for a data category recognition model, which can provide strong technical support for training a data category recognition model with high recognition accuracy.
[0097] Step S330: According to the training feature vector and the corresponding data category label, the initial model is trained based on the Chinese text classification deep learning algorithm to obtain the data category recognition model.
[0098] The initial model of the corresponding Chinese text classification deep learning algorithm is trained according to the training feature vector and the corresponding data category label, the optimal model parameters are solved, and the data category recognition model is obtained.
[0099] Among them, the Chinese text classification deep learning algorithm includes FastText (an open source word vector calculation and text classification tool), TextCNN (text convolutional neural network), TextRNN (text recurrent neural network), RCNN (regional convolutional neural network), HAN (Hierarchical Attention Network), BERT (Bidirectional Encoder Representations from Transformers), etc., which is not limited to the embodiment of the present invention.
[0100] Among them, the Chinese text classification deep learning algorithm includes FastText (an open source word vector calculation and text classification tool), TextCNN (text convolutional neural network), TextRNN (text recurrent neural network), RCNN (regional convolutional neural network), HAN (Hierarchical Attention Network), BERT (Bidirectional Encoder Representations from Transformers), etc., which is not limited to the embodiment of the present invention.
[0101] In some embodiments, by adding a data set of newly added data categories to the sample data set and retraining the above data category recognition model according to the above steps S310 to S320, the application requirements of iterative updating of category data are met, thereby significantly enhancing the scalability of data category recognition.
[0102] For this embodiment, in actual application, the platform or system needs to implement iterative identification of the newly added category data due to business expansion or category refinement. By retraining the model for the newly added data, the newly added category data identification function can be realized. By updating at least two levels of category directories as data asset directories, and then obtaining sample data from the newly added category data set, integrating it into the above sample data set, and retraining the data category identification model, a new data category identification model is obtained.
[0103] In some embodiments, the Chinese text classification deep learning algorithm is specifically the FastText algorithm, and the data category recognition model is a FastText model pre-trained and generated based on the FastText algorithm. The FastText model has a simple structure, is suitable for large data, and has an efficient training speed, and can effectively cope with application scenarios that require classification and grading of massive data of various types.
[0104] In some embodiments, in step S130, the feature vector is input into a data category recognition model to determine the data category of the data to be processed, specifically, the feature vector is input into a FastText model to determine the data category of the data to be processed.
[0105] For this embodiment, the FastText model includes an input layer, a hidden layer and a SoftMax layer, wherein the input layer obtains the feature vectors of words and phrases in the Chinese remark information, and maps them to the hidden layer units through linear transformation, and finally maps the results to data category labels through the SoftMax layer to achieve data category identification of the data to be processed. By using the FastText model to extract features from the Chinese remark information and determine data category identification, the speed is fast and the accuracy is high, which can effectively cope with application scenarios where a large amount of data with a wide variety of data types needs to be classified and graded.
[0106] In some embodiments, after determining the data sensitivity level of the data to be processed according to the data category, step S140 further includes: performing security control processing on the data to be processed that matches the data sensitivity level according to the data sensitivity level.
[0107] For this embodiment, according to the application requirements of the platform or system for data security management and control, corresponding security management and control processing is set in advance for several data sensitivity levels, and the platform or system can adopt different security management and control processing measures for data with different data sensitivity levels.
[0108] Among them, the control items for data security management and processing include but are not limited to: public permissions, storage location, whether encrypted storage, whether encrypted transmission, and application permissions.
[0109] For this embodiment, after determining the data sensitivity level of the data to be processed, the security control processing measures suitable for the current data to be processed can be determined based on the correspondence between the pre-set data sensitivity level and the security control processing measures, and the data to be processed can be subjected to security control processing that matches the data sensitivity level.
[0110] In this embodiment, it can be applied to application scenarios of data classification and grading, and sensitive data management. The data category can be accurately identified through a data category recognition model constructed based on a Chinese text classification deep learning algorithm, and then the data sensitivity level is determined according to the data category, and the data is subjected to security management and control processing that matches its data sensitivity level. This method extracts features from Chinese remark information through the use of a data category recognition model to achieve high-dimensional feature analysis and mining of the data, with high recognition accuracy. The data category recognition model based on Chinese remark information has high generalization ability, can accurately identify the data category of the entire data, and has a high data recognition coverage rate, thereby achieving fine-grained security management of massive data and realizing safe use and sharing of data.
[0111] In some embodiments, the data sensitivity levels include a first level, a second level, a third level, and a fourth level with sensitivity ranging from low to high.
[0112] For this embodiment, based on a comprehensive analysis of the importance, utilization value, scope of influence, etc. of data assets within the business scope of the platform or system, it is preferably divided into four data sensitivity levels according to the degree of data sensitivity, namely the first level, the second level, the third level and the fourth level from low to high sensitivity.
[0113] The following is an example of the relationship between data sensitivity levels and security control measures:
[0114] For the data to be processed with a data sensitivity level of the first level, which is publicly available data with no utilization value and a general level of importance, it is configured to be open to the outside and stored on media that can be used externally.
[0115] For the data to be processed with the second level of data sensitivity, in order to limit the data, the value of utilization is low, and it is more sensitive data, which should be used only within the enterprise. Therefore, it is configured to be open only internally and stored in the internal system of the enterprise business system.
[0116] For the data to be processed with a third level of data sensitivity, which is commercial secret data, it has medium value and can be used indirectly. It is relatively important data and should be limited to relevant internal personnel of the enterprise. It is configured to be open only to relevant internal personnel, encrypted and stored in the internal system, and encrypted and transmitted with restricted output.
[0117] For the data to be processed with a fourth-level data sensitivity, which is core confidential data, high-value and can be used directly, it is extremely critical data and should be limited to specific personnel in important departments of the enterprise. It is configured to be open only to specific internal personnel, encrypted and stored in the internal system, encrypted and transmitted, and limited to use in specific business scenarios.
[0118] In addition, an embodiment of the present invention provides a data processing device, such as Figure 4 As shown, the device comprises:
[0119] The information acquisition module 41 is used to acquire the Chinese remark information corresponding to the field name of the data to be processed;
[0120] A word segmentation module 42, used for performing word segmentation and standardization processing on the Chinese remark information to obtain a feature vector of the Chinese remark information;
[0121] A category identification module 43 is used to input the feature vector into a data category identification model to determine the data category of the data to be processed; wherein the data category identification model is pre-trained and generated based on a Chinese text classification deep learning algorithm; the data category is a lowest level subcategory under a pre-constructed at least two-level category directory;
[0122] The sensitivity level determination module 44 is used to determine the data sensitivity level of the data to be processed according to the data category.
[0123] In some embodiments, the data category recognition model is pre-trained and generated by the following steps:
[0124] Obtaining sample data and data category labels corresponding to the lowest level subcategories under the at least two levels of category directories;
[0125] Performing word segmentation and standardization on the Chinese remark information corresponding to the field name of the sample data to obtain a training feature vector;
[0126] According to the training feature vector and the corresponding data category label, the initial model is trained based on the Chinese text classification deep learning algorithm to obtain the data category recognition model.
[0127] In some embodiments, the data category identification model is a FastText model generated by pre-training based on the FastText algorithm.
[0128] In some embodiments, the at least two levels of category directories are pre-built by the following steps:
[0129] Obtain a data set and perform word segmentation and word frequency analysis on the field names in the data set to obtain word frequency analysis results;
[0130] Determine a primary category according to the word frequency analysis result;
[0131] Based on the k-means clustering algorithm, cluster analysis is performed on the data under the first-level category to generate at least two-level category directories.
[0132] In some embodiments, the clustering analysis process is performed on the data under the first-level category based on the k-means clustering algorithm to generate at least two-level category directories, including:
[0133] Performing cluster analysis on the data under the primary category based on the k-means clustering algorithm to determine the secondary subcategories corresponding to the primary category;
[0134] Based on the k-means clustering algorithm, cluster analysis is performed on the categories whose data types in the secondary subcategories reach a preset number, the tertiary subcategories corresponding to the primary categories are determined, and a tertiary category directory is generated.
[0135] In some embodiments, the data processing device further includes a security control module, and the security control module is used to:
[0136] After determining the data sensitivity level of the data to be processed according to the data category, the data to be processed is subjected to security control processing that matches the data sensitivity level according to the data sensitivity level.
[0137] In some embodiments, the data sensitivity levels include the first level, the second level, the third level and the fourth level from low to high sensitivity; the security management model is specifically used for:
[0138] If the data sensitivity level is the first level, the data to be processed is configured to be open to the outside and stored on a medium for external use;
[0139] If the data sensitivity level is the second level, the data to be processed is configured to be open only to internal users and stored in an internal system;
[0140] If the data sensitivity level is level 3, the data to be processed is configured to be open only to relevant internal personnel, encrypted and stored in the internal system, and encrypted for transmission and restricted for output;
[0141] If the data sensitivity level is the fourth level, the data to be processed will be configured to be open only to specific internal personnel, encrypted and stored in the internal system, and encrypted and transmitted and limited to use in specific business scenarios.
[0142] The contents of the method embodiments of the present invention are all applicable to the device embodiments. The functions specifically implemented by the device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method. Please refer to the description in the method embodiments for details, which will not be repeated here.
[0143] In addition, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the data processing method described in any of the above embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage device includes any medium that stores or transmits information in a readable form by a device (for example, a computer, a mobile phone), which can be a read-only memory, a disk or an optical disk, etc.
[0144] The contents of the method embodiments of the present invention are all applicable to the storage medium embodiments. The functions specifically implemented by the storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method. Please refer to the description in the method embodiments for details, which will not be repeated here.
[0145] In addition, an embodiment of the present invention further provides a computer device, which may be a server, a personal computer, a network device, etc. The computer device includes: one or more processors, a memory, and one or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more computer programs are configured to execute the data processing method described in any of the above embodiments.
[0146] The contents of the method embodiments of the present invention are all applicable to the computer device embodiments. The functions specifically implemented by the computer device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method. Please refer to the description in the method embodiments for details, which will not be repeated here.
[0147] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0148] The above descriptions are only some embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A data processing method, characterized in that: The steps include: Get the Chinese remark information corresponding to the field name of the data to be processed; Performing word segmentation and standardization processing on the Chinese remark information to obtain a feature vector of the Chinese remark information; Input the feature vector into a data category recognition model to determine the data category of the data to be processed; wherein the data category recognition model is pre-trained and generated based on a Chinese text classification deep learning algorithm; the data category is a lowest-level subcategory under a pre-constructed at least two-level category directory; Determining the data sensitivity level of the data to be processed according to the data category; The at least two-level category catalog is pre-built by the following steps: Obtain a data set and perform word segmentation and word frequency analysis on the field names in the data set to obtain word frequency analysis results; Determine a primary category according to the word frequency analysis result; Performing cluster analysis on the data under the first-level category based on the k-means clustering algorithm to generate at least two-level category directories; The k-means clustering algorithm is used to perform cluster analysis on the data under the first-level category to generate at least two-level category directories, including: Performing cluster analysis on the data under the primary category based on the k-means clustering algorithm to determine the secondary subcategories corresponding to the primary category; Based on the k-means clustering algorithm, cluster analysis is performed on the categories whose data types in the secondary subcategories reach a preset number, the tertiary subcategories corresponding to the primary categories are determined, and a tertiary category directory is generated.
2. The data processing method according to claim 1, characterized in that: The data category recognition model is pre-trained and generated by the following steps: Obtaining sample data and data category labels corresponding to the lowest level subcategories under the at least two levels of category directories; Performing word segmentation and standardization on the Chinese remark information corresponding to the field name of the sample data to obtain a training feature vector; According to the training feature vector and the corresponding data category label, the initial model is trained based on the Chinese text classification deep learning algorithm to obtain the data category recognition model.
3. The data processing method according to claim 1, characterized in that: The data category recognition model is a FastText model generated by pre-training based on the FastText algorithm.
4. The data processing method according to claim 1, characterized in that: After determining the data sensitivity level of the data to be processed according to the data category, the method further includes: According to the data sensitivity level, security control processing matching the data sensitivity level is performed on the data to be processed.
5. The data processing method according to claim 4, characterized in that: The data sensitivity levels include the first level, the second level, the third level and the fourth level from low to high sensitivity; The step of performing security control processing on the data to be processed that matches the data sensitivity level according to the data sensitivity level includes: If the data sensitivity level is the first level, the data to be processed is configured to be open to the outside and stored on a medium for external use; If the data sensitivity level is the second level, the data to be processed is configured to be open only to internal users and stored in an internal system; If the data sensitivity level is level 3, the data to be processed is configured to be open only to relevant internal personnel, encrypted and stored in the internal system, and encrypted for transmission and restricted for output; If the data sensitivity level is the fourth level, the data to be processed will be configured to be open only to specific internal personnel, encrypted and stored in the internal system, and encrypted and transmitted and limited to use in specific business scenarios.
6. A data processing device, characterized in that: include: The information acquisition module is used to obtain the Chinese remark information corresponding to the field name of the data to be processed; A word segmentation module, used for performing word segmentation and standardization processing on the Chinese remark information to obtain a feature vector of the Chinese remark information; A category recognition module, used for inputting the feature vector into a data category recognition model to determine the data category of the data to be processed; wherein the data category recognition model is pre-trained and generated based on a Chinese text classification deep learning algorithm; the data category is a lowest-level subcategory under a pre-constructed at least two-level category directory; A sensitivity level determination module, used to determine the data sensitivity level of the data to be processed according to the data category; The at least two-level category catalog is pre-built by the following steps: Obtain a data set and perform word segmentation and word frequency analysis on the field names in the data set to obtain word frequency analysis results; Determine a primary category according to the word frequency analysis result; Performing cluster analysis on the data under the first-level category based on the k-means clustering algorithm to generate at least two-level category directories; The k-means clustering algorithm is used to perform cluster analysis on the data under the first-level category to generate at least two-level category directories, including: Performing cluster analysis on the data under the primary category based on the k-means clustering algorithm to determine the secondary subcategories corresponding to the primary category; Based on the k-means clustering algorithm, cluster analysis is performed on the categories whose data types in the secondary subcategories reach a preset number, the tertiary subcategories corresponding to the primary categories are determined, and a tertiary category directory is generated.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data processing method according to any one of claims 1 to 5 is implemented.
8. A computer device, characterized in that: It includes: one or more processors; Memory; One or more computer programs, wherein the one or more computer programs are stored in the memory and configured to be executed by the one or more processors, and the one or more computer programs are configured to: execute the data processing method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Text classification method and terminal device based on machine learning
CN109284385A
Data sensitive behavior identification method
CN109977222A
