Data identification method and device, electronic equipment and storage medium
Through pre-trained unstructured data recognition models and feature sets, combined with neural networks and deep learning models, it solves the problem of insufficient recognition capabilities of unstructured data in existing technologies, achieves efficient recognition of unstructured data, and improves the recognition accuracy.
Patent Information
- Application Number
- CN202311218825.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-20
- Publication Date
- 2024-10-18
AI Technical Summary
Existing data recognition technology has weak recognition capabilities for unstructured data and cannot meet the needs of enterprises in changing business environments and data forms.
Using pre-trained unstructured data recognition models and feature sets, combined with neural networks and deep learning models, data recognition is performed through bidirectional LSTM and multi-layer dilated convolutional networks to improve the recognition accuracy of unstructured data.
It improves the recognition ability of unstructured data, meets the needs of unstructured data recognition, and improves the recognition accuracy and efficiency.
Smart Images

Figure CN118797044A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data security technology, and in particular to a data identification method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of information technology, the value of data has become increasingly prominent. Driven by the interests of data value, data security incidents such as data leakage, trafficking, and abuse are emerging in an endless stream, which not only poses a great threat to personal personal, property, and life safety, but also causes damage to enterprises and may even affect national security.
[0003] As a prerequisite for data security work, whether sensitive data and important data can be accurately identified from the massive unstructured data of the enterprise and classified and graded has a huge impact on data security work.
[0004] The most common data identification method in the industry is to use keywords, regular expressions, dictionaries and other technical means to identify data, or to construct feature engineering, and then feed the features into a shallow machine learning model to finally obtain classification results. Existing data identification technologies are mainly aimed at structured data, big data components, etc., and have weak recognition capabilities for unstructured data. However, with the continuous development of corporate business, traditional data identification technologies are limited by application scenarios, data formats, data volumes, etc., and can no longer meet the needs of unstructured data identification in a changing business environment and data form. Summary of the invention
[0005] The embodiments of the present application provide a data identification method, device, electronic device and storage medium to address the defects that the existing data identification technology mainly targets structured data, big data components, etc., has weak identification capabilities for unstructured data and cannot meet the needs for unstructured data identification.
[0006] In a first aspect, an embodiment of the present application provides a data identification method, including:
[0007] Obtaining data to be identified;
[0008] If the data to be identified is unstructured data, the data to be identified is identified based on a pre-trained unstructured data identification model and a pre-determined unstructured data feature set to obtain a data identification result.
[0009] In one embodiment, the training step of the unstructured data recognition model includes:
[0010] Obtain unstructured sample data to obtain training sample data;
[0011] Training a preset neural network model based on the training sample data to obtain a first data recognition model;
[0012] Training a preset deep learning model based on the feature data of the training sample data to obtain a second data recognition model;
[0013] Combining the first data recognition model and the second data recognition model to obtain the unstructured data recognition model;
[0014] Among them, the first data recognition model is used to identify the data to be recognized and determine the data category to which the data to be recognized belongs, and the second data recognition model is used to determine the data category to which the feature data of the data to be recognized belongs based on the feature data of the training sample data, so as to verify the recognition result of the first data recognition model.
[0015] In one embodiment, the first data recognition model includes an input layer, a bidirectional long short-term memory LSTM layer, a concatenation layer, a fully connected layer, and an output layer;
[0016] The input layer is used to embed the input training sample data into the bidirectional LSTM layer;
[0017] The bidirectional LSTM layer is used to perform forward encoding and reverse encoding on the embedded training sample data to obtain forward encoded data and reverse encoded data;
[0018] The splicing layer is used to splice the forward coded data and the reverse coded data at the same time to obtain spliced data;
[0019] The fully connected layer is used to perform dimensionality reduction processing on the spliced data to obtain data of preset dimensions;
[0020] The output layer is used to determine the data category to which the data to be identified belongs based on the preset dimension data.
[0021] In one embodiment, the second data recognition model includes a pre-trained model, a deep learning model, and a classification model;
[0022] The pre-training model is used to determine the word vector, text vector and position vector corresponding to the training sample data according to the feature data of the training sample data;
[0023] The deep learning model is used to perform convolution processing on the word vector, the text vector and the position vector to obtain a target convolution vector;
[0024] The classification model is used to decode the target convolution vector based on a preset encoding and decoding rule to determine the data category to which the feature data of the data to be identified belongs.
[0025] In one embodiment, the deep learning model includes a multi-layer dilated convolutional network, and the convolution processing of the word vector, the text vector and the position vector to obtain a target convolution vector includes:
[0026] Determine the size of the hole in any area of each of the atrous convolutional networks based on an attention mechanism;
[0027] Based on each of the dilated convolutional networks, convolution processing is performed on the word vector, the text vector and the position vector to obtain a convolution vector corresponding to the dilated convolutional network;
[0028] Each of the convolution vectors is fused to obtain the target convolution vector.
[0029] In one embodiment, the step of constructing the unstructured data feature set includes:
[0030] Get preset unstructured data;
[0031] Inputting the unstructured data into the unstructured data recognition model, and obtaining an unstructured data recognition result output by the unstructured data recognition model;
[0032] The unstructured data feature set is constructed according to the unstructured data recognition result.
[0033] In one embodiment, it further includes:
[0034] According to the data recognition result, the data to be recognized is surveyed and analyzed to obtain a survey and analysis result.
[0035] In a second aspect, the embodiment of the present application further provides a data identification device, including:
[0036] An acquisition module, used for acquiring data to be identified;
[0037] The recognition module is used to recognize the data to be recognized based on a pre-trained unstructured data recognition model and a predetermined unstructured data feature set to obtain a data recognition result if the data to be recognized is unstructured data.
[0038] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, it implements any of the data identification methods described above.
[0039] In a fourth aspect, an embodiment of the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the data identification methods described above.
[0040] The data identification method, device, electronic device and storage medium provided in the embodiments of the present application obtain data to be identified; if the data to be identified is unstructured data, the data to be identified is identified based on a pre-trained unstructured data identification model and a pre-determined unstructured data feature set to obtain a data identification result. The embodiments of the present application recognize unstructured data through an unstructured data identification model and an unstructured data feature set, thereby improving the recognition capability of unstructured data and meeting the needs of unstructured data identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0042] Figure 1 This is one of the flow charts of the data identification method provided in the embodiment of the present application;
[0043] Figure 2 This is the second flow chart of the data identification method provided in the embodiment of the present application;
[0044] Figure 3 It is a schematic diagram of the training process of the unstructured data recognition model provided in the embodiment of the present application;
[0045] Figure 4 is a structural diagram of a first data recognition model provided in an embodiment of the present application;
[0046] Figure 5 is a structural diagram of a second data recognition model provided in an embodiment of the present application;
[0047] Figure 6 is a schematic diagram of a process for constructing the unstructured data feature set provided in an embodiment of the present application;
[0048] Figure 7 is a principle block diagram of a data identification device provided in an embodiment of the present application;
[0049] Figure 8 It is a structural diagram of a data identification device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0051] Figure 1 is one of the flow charts of the data identification method provided in the embodiment of the present application, such as Figure 1 As shown, the embodiment of the present application provides a data identification method, including:
[0052] S110, obtaining data to be identified;
[0053] S120: If the data to be identified is unstructured data, the data to be identified is identified based on a pre-trained unstructured data identification model and a pre-determined unstructured data feature set to obtain a data identification result.
[0054] Figure 2 This is a second flow chart of the data identification method provided in the embodiment of the present application, such as Figure 2 As shown, optionally, after obtaining the data to be identified, the data type of the data to be identified is determined. If the data to be identified is structured data, data identification is performed on the data to be identified based on a preset structured data identification logic to obtain a data identification result.
[0055] If the data to be identified is unstructured data, the file format of the data to be identified can be determined. If the data to be identified is an image file, the identification mode is selected based on the preset task or rule configuration data, and the data to be identified is identified based on the image classification algorithm or OCR (Optical Character Recognition) extraction and text processing algorithm to obtain data identification results. Among them, the OCR extraction and text processing algorithm identifies the data to be identified, including two different identification methods based on identification rule matching and entity extraction algorithm matching.
[0056] If the data to be identified is a non-image file, a recognition mode is selected based on the preset task or rule configuration data, and the data to be identified is identified based on the file classification algorithm or text processing algorithm provided in the embodiment of the present application to obtain a data recognition result. Among them, the text processing algorithm identifies the data to be identified by two different recognition methods: matching based on recognition rules and matching based on entity extraction algorithms.
[0057] Optionally, in step S120, the embodiment of the present application performs recognition analysis on the collected sample data to be identified, and combines the unstructured data feature set to identify and classify and grade the data to be identified, including directly classifying and / or extracting file data content based on the overall characteristics of the file through a model, and performing recognition and matching based on file data content characteristics.
[0058] It can be understood that the embodiments of the present application realize the recognition of unstructured data through an unstructured data recognition model and an unstructured data feature set, improve the recognition capability of unstructured data, and meet the needs of unstructured data recognition.
[0059] Figure 3 is a schematic diagram of the training process of the unstructured data recognition model provided in the embodiment of the present application, such as Figure 3 As shown, in one embodiment, the training step of the unstructured data recognition model includes:
[0060] S310, acquiring unstructured sample data to obtain training sample data;
[0061] S320, training a preset neural network model based on the training sample data to obtain a first data recognition model;
[0062] S330, training a preset deep learning model based on the feature data of the training sample data to obtain a second data recognition model;
[0063] S340, combining the first data recognition model and the second data recognition model to obtain the unstructured data recognition model;
[0064] Among them, the first data recognition model is used to identify the data to be recognized and determine the data category to which the data to be recognized belongs, and the second data recognition model is used to determine the data category to which the feature data of the data to be recognized belongs based on the feature data of the training sample data, so as to verify the recognition result of the first data recognition model.
[0065] In step S310, unstructured sample data can be obtained by collecting important enterprise data samples based on manual research, and the unstructured sample data can be managed and maintained, such as updated or deleted.
[0066] Obtaining unstructured sample data and obtaining training sample data includes splitting the unstructured sample data into training sample data and test sample data according to a preset ratio. The training sample data is used for model training, and the test sample data is used for model testing. Before splitting the unstructured sample data, the unstructured sample data can also be cleaned to filter out abnormal sample data to improve the accuracy of model training.
[0067] Optionally, the embodiments of the present application perform model training in a computing power network to meet the computing power requirements during the model training process, thereby solving the defects of traditional technical solutions that have weak processing capabilities for large amounts of data and require a large amount of time due to the lack of computing power.
[0068] Optionally, the order of step S320 and step S330 can be adjusted according to demand. In the computing power network, the high-performance computing power of the computing power network can be used to simultaneously train the first data recognition model and the second data recognition model to improve the training speed in order to obtain more accurate training results.
[0069] It can be understood that the embodiment of the present application obtains an unstructured data recognition model by combining a neural network model and a deep learning model, thereby improving the accuracy of unstructured data recognition.
[0070] Figure 4 is a schematic diagram of the structure of the first data recognition model provided in the embodiment of the present application, such as Figure 4 As shown, in one embodiment, the first data recognition model includes an input layer, a bidirectional long short-term memory LSTM layer, a concatenation layer, a fully connected layer and an output layer;
[0071] The input layer is used to embed the input training sample data into the bidirectional LSTM layer; specifically, the input layer is used to perform word vector analysis on the text through text representation, and the text representation is to convert Chinese words into a format that can be understood by the computer. In this embodiment, a distributed representation of the text is adopted, that is, a word vector (word embedding). The word vector maps different words to corresponding vectors. For example, for the sentence "Zhejiang Mobile Company", the result obtained by word embedding: the vector corresponding to "Zhejiang" is [0.1, 0.2, 0.3], the vector corresponding to "Mobile" is [0.2, 0.9, 0.7], and the vector corresponding to "Company" is [0.4, 0.5, 0.2].
[0072] Optionally, embedding the input training sample data into the bidirectional LSTM layer includes converting the words included in the training sample data into word vectors, and embedding the word vectors into the input end of the bidirectional LSTM layer. The embedding rule can be randomly initialized or a pre-trained embedding rule. Using a pre-trained embedding rule can accelerate the convergence of the model.
[0073] The bidirectional LSTM layer is used to forward encode and reverse encode the embedded training sample data to obtain forward encoded data and reverse encoded data; the bidirectional LSTM layer of the embodiment of the present application includes a forward LSTM layer and a backward LSTM layer, that is, not only the forward encoded information but also the reverse encoded information is considered. The output dimension of each LSTM is set to a 128-dimensional vector. The forward layer is forwardly calculated from time 1 to time t to obtain and save the output of the forward hidden layer at each time. The backward layer is reversely calculated from time t to time 1 to obtain and save the output of the backward hidden layer at each time.
[0074] The splicing layer is used to splice the forward coded data and the reverse coded data at the same moment to obtain spliced data; the splicing layer is used to combine the results of the output of the forward layer and the backward layer at the corresponding moment at each moment to obtain the final output, and the dimension of the output spliced data is 256 dimensions.
[0075] The fully connected layer is used to perform dimensionality reduction processing on the spliced data to obtain data of preset dimensions; the fully connected layer converts high dimensions into low dimensions and retains important information.
[0076] The output layer is used to determine the data category to which the data to be identified belongs based on the preset dimension data. The output layer includes a classification function, which uses the softmax function to obtain the probability value of the data to be identified belonging to each category, and compares the category corresponding to the largest probability value with the label value (that is, whether the obtained category is the category to which the document should belong), and calculates the loss value. Then, the calculation is repeated and the parameters of the model are updated until the final loss value is minimized or basically does not change.
[0077] It is understandable that the deep learning model can automatically extract features and automatically classify based on the extracted features. The text classification task of the embodiment of the present application uses a variant of the recursive neural network (RNN), namely LSTM. The advantage of LSTM is that it can remember important information in the sequence and forget unimportant information.
[0078] Figure 5 is a schematic diagram of the structure of the second data recognition model provided in the embodiment of the present application, such as Figure 5 As shown, in one embodiment, the second data recognition model includes a pre-training model, a deep learning model and a classification model;
[0079] The pre-training model is used to determine the word vector, text vector and position vector corresponding to the training sample data according to the feature data of the training sample data;
[0080] The deep learning model is used to perform convolution processing on the word vector, the text vector and the position vector to obtain a target convolution vector;
[0081] The classification model is used to decode the target convolution vector based on a preset encoding and decoding rule to determine the data category to which the feature data of the data to be identified belongs.
[0082] Specifically, the pre-training model is a BERT (Bidirectional Encoder Representation from Transformers) model, the deep learning model is an IDCNN (Iterated Dilated CNN) model, and the classification model is a CRF (Conditional Random Fields) model, that is, the second data recognition model is a BERT-IDCNN-CRF model.
[0083] Optionally, the present application uses the feature representation of the BERT model as the embedded feature of the data to be recognized input recognition model. The BERT model takes the sum of the word vector, text vector and position vector as the model input, and then inputs the word vector, text vector and position vector into the IDCNN-CRF model for training. During the training process, the BERT parameters are kept unchanged, and only the IDCNN-CRF part is trained, thereby reducing the training parameters while maintaining ambiguity.
[0084] Optionally, the features output by the BERT model can be fine-tuned to suit specific tasks, such as sensitive content recognition (such as name, address, etc.), machine translation, etc.
[0085] The word vector can be obtained by converting the feature data of the training sample data, and can also include a randomly initialized word vector or a word vector pre-trained by the word2ver algorithm.
[0086] Text vector refers to the vector data that is automatically learned during the model training process and is used to characterize the global semantic information of the data to be identified.
[0087] The position vector refers to the vector corresponding to each preset position, and the parameters of each position vector are updated during the model training process to learn the information corresponding to the preset position.
[0088] exist Figure 5 In the above example, B-ORG indicates that the character belongs to the first position of the organization name, I-ORG indicates that the character belongs to the middle position of the organization name, B-TITLE indicates that the character belongs to the first position of the job title, I-TITLE indicates that the character belongs to the middle position of the job title, and O indicates that the character is not a target element.
[0089] The specific implementation steps of BERT-IDCNN-CRF in data recognition engineering are as follows:
[0090] 1) Data annotation: Data annotation is performed using BIO;
[0091] 2) Use BERT to perform position encoding and convert it into a vector that can be recognized by computers;
[0092] 3) Input the vector into the IDCNN filtering feature of the three-filter convolution, and then input the calculated vector into the CRF for classification;
[0093] 4) Use the preset encoding rules to decode and obtain the category of the input character.
[0094] It can be understood that the embodiment of the present application provides a second data recognition model based on BERT-IDCNN-CRF, LSTM is used to classify files, and BERT-IDCNN-CRF users extract sensitive elements from the classified files. When identifying sensitive elements in unstructured texts, a deep learning algorithm based on the BERT-IDCNN-CRF model is adopted, which does not require a lot of training data, can better perform transfer learning, and has high recognition accuracy.
[0095] In one embodiment, the deep learning model includes a multi-layer dilated convolutional network, and the convolution processing of the word vector, the text vector and the position vector to obtain a target convolution vector includes:
[0096] The size of the hole in any area of each of the atrous convolutional networks is determined based on the attention mechanism; specifically, the attention mechanism is introduced to dynamically adjust the size of the hole so as to capture information of different scales in different areas. The attention mechanism is a deep learning technique. In deep learning, the attention mechanism allows the model to focus on specific parts of the input data in order to perform tasks more efficiently.
[0097] Based on each of the dilated convolutional networks, convolution processing is performed on the word vector, the text vector and the position vector to obtain a convolution vector corresponding to the dilated convolutional network;
[0098] Each of the convolution vectors is fused to obtain the target convolution vector.
[0099] Optionally, the embodiment of the present application selects holes of different sizes based on the selection of adaptive hole size. Then, for each hole size, a corresponding hole convolution layer is constructed. Finally, the output of each hole convolution layer is feature fused to integrate multi-scale feature information.
[0100] It can be understood that, after BERT encoding, the embodiment of the present application uses IDCNN to filter a part of the vector features using the hole convolution network, so that the features passed into the CRF become a fraction of the original, thereby reducing the model parameters to a fraction of the original. The convolution feature only refines the feature and does not reduce the feature, so the accuracy will not be lost too much, providing a sensitive data recognition model with high accuracy and high speed.
[0101] Figure 6 is a schematic diagram of a process for constructing the unstructured data feature set provided in an embodiment of the present application, such as Figure 6 As shown, in one embodiment, the step of constructing the unstructured data feature set includes:
[0102] S610, obtaining preset unstructured data;
[0103] S620, inputting the unstructured data into the unstructured data recognition model, and obtaining an unstructured data recognition result output by the unstructured data recognition model;
[0104] S630: construct the unstructured data feature set according to the unstructured data recognition result.
[0105] Optionally, all unstructured data recognition results may be aggregated to form an unstructured data feature set.
[0106] In one embodiment, it further includes:
[0107] According to the data recognition result, the data to be recognized is surveyed and analyzed to obtain the surveying and mapping analysis result. Specifically, based on the data assets, collected data, recognition and marking results, data asset surveying and analysis is performed to generate surveying and mapping views and reports.
[0108] The embodiment of the present application proposes a data recognition method based on a computing power engine. First, through data investigation and sample collection, the computing power network is called to perform model training and data feature extraction on multiple models, and then the recognition results of each model are compared and verified to obtain the final data recognition result, and an important sensitive data feature library is formed according to the data recognition result. Then, the data to be recognized is collected, the format of the collected data is analyzed, and different processing methods are adopted for data in different file formats, such as OCR, text extraction, text segmentation, etc. Finally, combined with the important sensitive data feature library, the data to be recognized is identified and matched, including direct classification and / or extraction of file data content based on the overall characteristics of the file, identification and matching based on data content characteristics, and finally outputting the identification and matching results of the file data. From the whole process of data collection, processing, and recognition, technical means such as entity extraction, machine learning, and rule matching are integrated to form a complete unstructured data recognition capability. By analyzing and classifying the data to be recognized and intelligently adopting different processing methods and recognition matching logic for different types of data, the unstructured data processing capability and recognition accuracy are effectively improved.
[0109] The embodiment of the present application also obtains the contextual representation of the word through the BERT pre-training model, and then inputs the word vector sequence into the IDCNN-CRF model for training. During the training process, the BERT parameters are kept unchanged, and only the IDCNN-CRF part is trained, thereby reducing the training parameters while maintaining ambiguity. The F1 value of the model on the MSRA corpus can reach 94.41%. The model is applied to the classification and grading of unstructured data and the identification of important data, with faster speed, more timely response, and higher overall accuracy.
[0110] The data identification device provided in the present application is described below. The data identification device described below and the data identification method described above can be referenced to each other.
[0111] Figure 7 is a principle block diagram of the data identification device provided by this application, such as Figure 7 As shown, the embodiment of the present application also provides a data identification device, including:
[0112] An acquisition module 710 is used to acquire data to be identified;
[0113] The identification module 720 is used to identify the data to be identified based on a pre-trained unstructured data identification model and a pre-determined unstructured data feature set to obtain a data identification result if the data to be identified is unstructured data.
[0114] In one embodiment, it further includes:
[0115] A training module is used to acquire unstructured sample data to obtain training sample data; train a preset neural network model based on the training sample data to obtain a first data recognition model; train a preset deep learning model based on the feature data of the training sample data to obtain a second data recognition model; combine the first data recognition model and the second data recognition model to obtain the unstructured data recognition model; wherein the first data recognition model is used to identify the data to be identified and determine the data category to which the data to be identified belongs, and the second data recognition model is used to determine the data category to which the feature data of the data to be identified belongs based on the feature data of the training sample data, so as to verify the recognition result of the first data recognition model.
[0116] In one embodiment, the first data recognition model includes an input layer, a bidirectional long short-term memory LSTM layer, a concatenation layer, a fully connected layer, and an output layer;
[0117] The input layer is used to embed the input training sample data into the bidirectional LSTM layer;
[0118] The bidirectional LSTM layer is used to perform forward encoding and reverse encoding on the embedded training sample data to obtain forward encoded data and reverse encoded data;
[0119] The splicing layer is used to splice the forward coded data and the reverse coded data at the same time to obtain spliced data;
[0120] The fully connected layer is used to perform dimensionality reduction processing on the spliced data to obtain data of preset dimensions;
[0121] The output layer is used to determine the data category to which the data to be identified belongs based on the preset dimension data.
[0122] In one embodiment, the second data recognition model includes a pre-trained model, a deep learning model, and a classification model;
[0123] The pre-training model is used to determine the word vector, text vector and position vector corresponding to the training sample data according to the feature data of the training sample data;
[0124] The deep learning model is used to perform convolution processing on the word vector, the text vector and the position vector to obtain a target convolution vector;
[0125] The classification model is used to decode the target convolution vector based on a preset encoding and decoding rule to determine the data category to which the feature data of the data to be identified belongs.
[0126] In one embodiment, the deep learning model includes a multi-layer dilated convolutional network, and the convolution processing of the word vector, the text vector and the position vector to obtain a target convolution vector includes:
[0127] Determine the size of the hole in any area of each of the atrous convolutional networks based on an attention mechanism;
[0128] Based on each of the dilated convolutional networks, convolution processing is performed on the word vector, the text vector and the position vector to obtain a convolution vector corresponding to the dilated convolutional network;
[0129] Each of the convolution vectors is fused to obtain the target convolution vector.
[0130] In one embodiment, it further includes:
[0131] A construction module is used to obtain preset unstructured data; input the unstructured data into the unstructured data recognition model to obtain the unstructured data recognition result output by the unstructured data recognition model; and construct the unstructured data feature set according to the unstructured data recognition result.
[0132] In one embodiment, it further includes:
[0133] The analysis module is used to perform surveying and mapping analysis on the data to be identified according to the data identification result to obtain the surveying and mapping analysis result.
[0134] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the data identification method, which includes:
[0135] Obtaining data to be identified;
[0136] If the data to be identified is unstructured data, the data to be identified is identified based on a pre-trained unstructured data identification model and a pre-determined unstructured data feature set to obtain a data identification result.
[0137] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0138] On the other hand, the present application further provides a computer program product, the computer program product comprising a computer program, the computer program may be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the data identification method provided by the above methods, the method comprising:
[0139] Obtaining data to be identified;
[0140] If the data to be identified is unstructured data, the data to be identified is identified based on a pre-trained unstructured data identification model and a pre-determined unstructured data feature set to obtain a data identification result.
[0141] In another aspect, the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the data identification method provided by the above methods is implemented, and the method includes:
[0142] Obtaining data to be identified;
[0143] If the data to be identified is unstructured data, the data to be identified is identified based on a pre-trained unstructured data identification model and a pre-determined unstructured data feature set to obtain a data identification result.
[0144] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0145] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A data identification method, characterized in that: include: Obtaining data to be identified; If the data to be identified is unstructured data, the data to be identified is identified based on a pre-trained unstructured data identification model and a pre-determined unstructured data feature set to obtain a data identification result.
2. The data identification method according to claim 1, characterized in that: The training steps of the unstructured data recognition model include: Obtain unstructured sample data to obtain training sample data; Training a preset neural network model based on the training sample data to obtain a first data recognition model; Training a preset deep learning model based on the feature data of the training sample data to obtain a second data recognition model; Combining the first data recognition model and the second data recognition model to obtain the unstructured data recognition model; Among them, the first data recognition model is used to identify the data to be recognized and determine the data category to which the data to be recognized belongs, and the second data recognition model is used to determine the data category to which the feature data of the data to be recognized belongs based on the feature data of the training sample data, so as to verify the recognition result of the first data recognition model.
3. The data identification method according to claim 2, characterized in that: The first data recognition model includes an input layer, a bidirectional long short-term memory LSTM layer, a concatenation layer, a fully connected layer and an output layer; The input layer is used to embed the input training sample data into the bidirectional LSTM layer; The bidirectional LSTM layer is used to perform forward encoding and reverse encoding on the embedded training sample data to obtain forward encoded data and reverse encoded data; The splicing layer is used to splice the forward coded data and the reverse coded data at the same time to obtain spliced data; The fully connected layer is used to perform dimensionality reduction processing on the spliced data to obtain data of preset dimensions; The output layer is used to determine the data category to which the data to be identified belongs based on the preset dimension data.
4. The data identification method according to claim 2, characterized in that: The second data recognition model includes a pre-training model, a deep learning model and a classification model; The pre-training model is used to determine the word vector, text vector and position vector corresponding to the training sample data according to the feature data of the training sample data; The deep learning model is used to perform convolution processing on the word vector, the text vector and the position vector to obtain a target convolution vector; The classification model is used to decode the target convolution vector based on a preset encoding and decoding rule to determine the data category to which the feature data of the data to be identified belongs.
5. The data identification method according to claim 4, characterized in that: The deep learning model includes a multi-layer dilated convolutional network, and the convolution processing is performed on the word vector, the text vector and the position vector to obtain a target convolution vector, including: Determine the size of the hole in any area of each of the atrous convolutional networks based on an attention mechanism; Based on each of the dilated convolutional networks, convolution processing is performed on the word vector, the text vector and the position vector to obtain a convolution vector corresponding to the dilated convolutional network; Each of the convolution vectors is fused to obtain the target convolution vector.
6. The data identification method according to claim 1, characterized in that: The steps of constructing the unstructured data feature set include: Get preset unstructured data; Inputting the unstructured data into the unstructured data recognition model, and obtaining an unstructured data recognition result output by the unstructured data recognition model; The unstructured data feature set is constructed according to the unstructured data recognition result.
7. The data identification method according to claim 1, characterized in that: Also includes: According to the data recognition result, the data to be recognized is surveyed and analyzed to obtain a survey and analysis result.
8. A data identification device, characterized in that: include: An acquisition module, used for acquiring data to be identified; The recognition module is used to recognize the data to be recognized based on a pre-trained unstructured data recognition model and a predetermined unstructured data feature set to obtain a data recognition result if the data to be recognized is unstructured data.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the data identification method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data identification method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Entity-identification cooperative learning algorithm based on document type
CN104978587A
Image content identification method and device
CN105446997A
Named entity identification method and device and readable storage medium
CN112434520A
Unstructured sensitive data identification method and system
CN114564586A
Contract text recognition method and device
CN114818718A
