An intelligent compliance detection method based on industry multimodal feature data
By building an industry corpus and cross-modal feature fusion analysis methods, we solve the compliance detection problem under unknown semantic information, improve the efficiency and accuracy of multi-modal data detection, and achieve more efficient compliance detection.
Patent Information
- Application Number
- CN202410977934.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-22
AI Technical Summary
Existing technology is difficult to perform compliance detection without unknown semantic information. Especially when facing multi-modal data, detection efficiency is low and difficult.
Adopt an intelligent compliance detection method based on industry multi-modal feature data, build a corpus by collecting industry privacy policies, extract comprehensive semantic words of text data, and use the analysis process of cross-modal interaction and feature fusion, combined with the attention mechanism. Compliance testing.
It improves the accuracy and efficiency of compliance detection, reduces manual workload, can more effectively aggregate modal features and interactive features, provides a more accurate data basis, and enhances the detection capabilities of multi-modal data.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of data processing technology, and specifically relates to an intelligent compliance detection method based on industry multimodal feature data. Background Art
[0002] With the continuous improvement of social systems and laws and regulations, enterprises are facing more and more laws and regulations to comply with in the process of operation and management, especially for multinational and cross-border enterprises. The data flow operation and management has put forward higher compliance requirements. However, most of the commodity software used in enterprise information systems are developed in the same way, while the information processing process of specific enterprise organizations will have personalized differences and requirements; at the same time, due to the influence of internal and external environments, the speed of change of information systems cannot keep up with the speed of change of business processes of enterprises, and the needs of different stakeholders in enterprise organizations conflict, resulting in frequent mismatches between information systems and business systems, and compliance testing is often required. Compliance testing is to ensure that information systems, business processes and enterprise organizations comply with legal rules. By analyzing the actual process and diagnosing the differences, inspiration can be obtained from it to improve the support of information systems for business processes.
[0003] At present, the research on whether the functional attributes in the compliance detection requirements are met is based on the semantic information of the model and the observed behavior, in order to compare the commonalities and differences between the two, but there is a lack of research on compliance detection when the semantic information is unknown. However, due to policies or information protection, compliance detection faces the situation of unknown semantic information. How to conduct compliance detection in the case of unknown semantic information is an urgent problem to be solved in the current compliance research; at the same time, data with multimodal unknown semantic information also adds a certain degree of difficulty to compliance detection. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the intelligent compliance detection method based on industry multimodal feature data provided by the present invention solves the problem that the existing compliance detection methods for multimodal data are difficult and inefficient.
[0005] In order to achieve the above-mentioned invention object, the technical solution adopted by the present invention is: an intelligent compliance detection method based on industry multimodal feature data, comprising the following steps:
[0006] S1. Collect industry privacy policies and build an industry corpus;
[0007] The data in the industry corpus includes privacy concept words at different structural levels;
[0008] S2, extracting and aggregating feature information under each mode of the multimodal data to be detected, and obtaining text data describing the information contained in the multimodal data to be detected;
[0009] S3, extracting comprehensive semantic words from text data based on the constructed industry corpus;
[0010] S4. Perform compliance check on the text data based on the extracted comprehensive semantic words to obtain compliance check results of the multimodal data to be tested.
[0011] Furthermore, the step S1 is specifically as follows:
[0012] S11. Visit the website and search for web page elements to determine whether keywords representing privacy policy are found;
[0013] If yes, then enter the corresponding privacy policy page and proceed to step S14;
[0014] If not, proceed to step S12;
[0015] S12, identifying the privacy policy webpage through the user registration page, and determining whether the corresponding keyword is found;
[0016] If so, then according to the found keywords, enter the user registration page to determine whether the keywords representing the privacy policy are found. If so, proceed to step S14; if not, proceed to step S13;
[0017] S13, manually identify and enter the link representing the privacy policy page, and proceed to step S14;
[0018] S14. Save the identified privacy policy pages and form an industry corpus of privacy policy concepts with a structural hierarchy.
[0019] Furthermore, in step S14, the industry corpus has a three-level structure; wherein the first level is the first-level concept words related to the privacy protection regulations in the privacy policy, the second level is the second-level concept words under each first-level concept word that provide a detailed description of each first-level concept word, and the third level is the third-level concept words that identify the specific details of the first-level concept words.
[0020] Furthermore, the step S2 is specifically as follows:
[0021] S21, encoding each single modal information in the multimodal data to be detected as an embedding and mapping it into a shared space, and enhancing the feature information through inter-modal and intra-modal supervised contrast losses;
[0022] S22, aggregate the enhanced specific features of each modality across modalities, and learn cross-modal interactive features;
[0023] S23. Through an attention mechanism based on the difference in distribution of features of different modalities, specific features and interaction features of different modalities are aggregated to obtain text data describing the information contained in the multimodal data to be detected.
[0024] Furthermore, in step S23, the text data describing the information contained in the multimodal data to be detected is It is expressed as:
[0025] ;
[0026] In the formula, and Represent the specific features of text modality and image modality respectively, represents the cross-modal interaction feature, represents the multimodal consistency weight, Represents a splicing operation, Indicates The text data corresponding to the modal samples, L represents the total number of modal samples, Represents the modal sample index.
[0027] Furthermore, the step S3 is specifically as follows:
[0028] S31. Introduce the privacy concept words in the industry corpus into the word segmenter LTP, segment the text data, and input them into the pre-trained language model of the industry to perform feature extraction to obtain the corresponding word embedding;
[0029] S32. For each word in the text data, query the corresponding concept embedding in the industry corpus, and add it to the corresponding word embedding bit by bit to obtain the final word embedding;
[0030] S33. The contextual semantics of each word in the text data is captured through the BiLSTM model. At the same time, the industry corpus is queried to generate a masked attention vector, and the attention weight that matches the privacy concept of the privacy concept word in the industry corpus is calculated to obtain the comprehensive semantic word of the word.
[0031] Furthermore, the step S33 is specifically as follows:
[0032] S33-1. Capture the contextual semantics of each word in the text data through the BiLSTM model to obtain the feature representation of each word;
[0033] S33-2. Query the industry corpus, match the privacy concept of each word in the text, generate a masked attention vector, and calculate the attention weight of each word based on the masked attention vector ;
[0034] ;
[0035] In the formula, express Relative to The attention weight, and They represent the output of the BiLSTM model. and The word embedding representation is Indicates The word embedding is the embedding representation after nonlinear transformation. Indicates The word is in the privacy concept k The word is embedded after nonlinear transformation. For the The number of words in the privacy concept where the word is located, subscript k Represents the index of the embedding representation of the word in the privacy concept where the BiLSTM model output word is located, and exp() represents the exponential function;
[0036] S33-3. Based on the attention weight of each word, calculate the corresponding embedding representation , and then merged to form semantic features;
[0037] ;
[0038] In the formula, represents the embedding representation, represents the model's learnable parameters, tanh() represents the hyperbolic tangent function, Indicates a connection operation; represents the intermediate parameter, and , express Relative to The attention weight of Indicates the privacy concept words, For the The number of words in the privacy concept where the word is located;
[0039] S33-4. Input the semantic features into the global pointer network and calculate its semantic score , and then get the comprehensive semantic words;
[0040] ;
[0041] In the formula, represents the semantic score corresponding to the semantic feature, Indicates The rotational position encoding of words, Indicates The rotational position encoding of words, Indicates The starting position of the category comprehensive semantic word is expressed, Indicates The terminal position of the category comprehensive semantic word is expressed, Indicates the first Words to The relative rotation position encoding of words, superscript T Represents a matrix transpose operation.
[0042] Furthermore, the step S4 is specifically as follows:
[0043] S41, generating a corresponding privacy text standard template based on the extracted comprehensive semantic words;
[0044] S42. Use the BERT model to encode the text data and the privacy text specification template into corresponding embedding matrices respectively;
[0045] S43, use the Transformer encoder to extract the features of the two embedding matrices respectively, and perform mutual attention interaction calculation based on the self-attention mechanism to obtain the corresponding semantic representation;
[0046] S44, performing multi-level splicing and fusion of the semantic representations corresponding to the text data and the privacy text specification template, and then calculating their similarity;
[0047] S45, determining whether the similarity is greater than a set threshold;
[0048] If yes, the text data passes the compliance test;
[0049] If not, the text data fails the compliance check.
[0050] Furthermore, the step S41 is specifically as follows:
[0051] Determine the privacy concept words to which the comprehensive semantic words belong, and generate the corresponding privacy text standard template based on the privacy concept words according to the hierarchical relationship between the privacy concept words.
[0052] The beneficial effects of the present invention are:
[0053] (1) The present invention uses a privacy policy collection framework to build an industry corpus, which helps reduce the manual workload in the early data collection process and can help personnel automatically collect privacy policy analysis.
[0054] (2) The present invention mines more useful modal information through a multimodal data analysis process based on cross-modal interaction and feature fusion. It also introduces an attention mechanism based on consistency evaluation and learns multimodal consistency circles, effectively aggregating modal specific features and cross-modal interaction features, providing a more accurate data basis for subsequent text data compliance detection.
[0055] (3) The present invention uses the pre-trained language model RoBERTa-wwm-ext-large as a feature extractor. RoBERTa-wwm-ext-large adopts the full-word masking strategy for MLM training, which retains the integrity of the entire word group or phrase, and helps to solve the problem of information loss in Chinese text. At the same time, a large amount of privacy policy text is used to fine-tune the RoBERTa-wwm-ext-large model to make it more suitable for the privacy concept recognition task, so that the model can better understand the contextual information of the text.
[0056] (4) The present invention matches privacy concepts through the industry corpus and designs a local masked attention mechanism, so that the model pays more attention to words related to privacy concepts in the text, effectively reducing the noise of concept entity recognition and improving the recognition accuracy.
[0057] (5) The present invention uses the improved new mutual attention focus as the full-text matching model of the interaction formula to perform compliance detection of text data, combines compliance detection with artificial intelligence, and improves the efficiency and accuracy of data compliance detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A flow chart of an intelligent compliance detection method based on industry multimodal feature data provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0059] The specific implementation modes of the present invention are described below so that those skilled in the art can understand the present invention. However, it should be clear that the present invention is not limited to the scope of the specific implementation modes. For those of ordinary skill in the art, as long as various changes are within the spirit and scope of the present invention as defined and determined by the attached claims, these changes are obvious, and all inventions and creations utilizing the concept of the present invention are protected.
[0060] The embodiment of the present invention provides an intelligent compliance detection method based on industry multimodal feature data, such as Figure 1 As shown, the following steps are included:
[0061] S1. Collect industry privacy policies and build an industry corpus;
[0062] The data in the industry corpus includes privacy concept words at different structural levels;
[0063] S2, extracting and aggregating feature information under each mode of the multimodal data to be detected, and obtaining text data describing the information contained in the multimodal data to be detected;
[0064] S3, extracting comprehensive semantic words from text data based on the constructed industry corpus;
[0065] S4. Perform compliance check on the text data based on the extracted comprehensive semantic words to obtain compliance check results of the multimodal data to be tested.
[0066] Step S1 of the embodiment of the present invention is specifically as follows:
[0067] S11. Visit the website and search for web page elements to determine whether keywords representing privacy policy are found;
[0068] If yes, then enter the corresponding privacy policy page and proceed to step S14;
[0069] If not, proceed to step S12;
[0070] S12, identifying the privacy policy webpage through the user registration page, and determining whether the corresponding keyword is found;
[0071] If so, then according to the found keywords, enter the user registration page to determine whether the keywords representing the privacy policy are found. If so, proceed to step S14; if not, proceed to step S13;
[0072] S13, manually identify and enter the link representing the privacy policy page, and proceed to step S14;
[0073] S14. Save the identified privacy policy pages and form an industry corpus of privacy policy concepts with a structural hierarchy.
[0074] In step S1 of this embodiment, the top ranking websites provided by the Alexa official website are used to collect privacy policy samples to ensure that the content in the industry corpus is more comprehensive and professional, and a privacy policy framework is developed to build the industry corpus. The purpose of the privacy policy framework in this embodiment is to support automatic identification of privacy policy web pages from a predefined URL list, extract privacy policy related content, and convert the corresponding hypertext markup language elements into a hierarchical structure that follows the defined extensible markup language model.
[0075] In step S14 of this embodiment, the industry corpus is a three-level structure; the first level is the first-level concept words related to the privacy protection regulations in the privacy policy, the second level is the second-level concept words under each first-level concept word that refines the description of each first-level concept word, and the third level is the third-level concept words that identify the specific details of the first-level concept words. Among them, the first-level concept words are the top-level requirements of the privacy protection regulations on the content of the privacy policy, involving various aspects that need to be mentioned in the privacy policy; the second-level concept words are branches under the first-level concept words, which further refine each first-level concept word; the third-level concept words are used to identify the specific details of each privacy policy concept.
[0076] Step S2 of the embodiment of the present invention is specifically as follows:
[0077] S21, encoding each single modal information in the multimodal data to be detected as an embedding and mapping it into a shared space, and enhancing the feature information through inter-modal and intra-modal supervised contrast losses;
[0078] S22, aggregate the enhanced specific features of each modality across modalities, and learn cross-modal interactive features;
[0079] S23. Through an attention mechanism based on the difference in distribution of features of different modalities, specific features and interaction features of different modalities are aggregated to obtain text data describing the information contained in the multimodal data to be detected.
[0080] In step S21 of this embodiment, taking the image mode and the text mode as an example, Image features of modality samples Defined as anchor, intra-modality supervised contrastive loss for image modality for:
[0081] ;
[0082] In the formula, I represents the index set of modal samples, represents the index set of positive images, Represents an index set The size of represents the index of the positive image, represents the index set of the compared images, represents the index of the image to be compared, Indicates The image features of the modality samples, Indicates p The image features of the positive image, Indicates The image features of the contrast images, represents the inner product, represents the temperature coefficient. Among them, the image mode is expressed as , Represents the total number of modal samples.
[0083] By analogy, the text mode is represented as , we get the intra-modality supervision contrast loss of the text modality as .
[0084] Combined, the total supervised contrast loss within the modality is .
[0085] For the inter-modality supervised contrast loss, the inter-modality supervised contrast loss for the image modality is:
[0086] ;
[0087] Similarly, the inter-modal supervision contrast loss of the text modality is obtained as .
[0088] Combined, the total supervised contrast loss between modalities is .
[0089] In step S22 of this embodiment, the cross-modal interaction feature is expressed as:
[0090] ;
[0091] In the formula, represents the Hadamard product, represents the outer product, represents the association weight of the image modality, Represents the association weight of the text modality.
[0092] In step S23 of this embodiment, the text data describing the information contained in the multimodal data to be detected is It is expressed as:
[0093] ;
[0094] In the formula, and Represent the specific features of text modality and image modality respectively, represents the cross-modal interaction feature, represents the multimodal consistency weight, Represents a splicing operation, Indicates The text data corresponding to the modal samples, L represents the total number of modal samples, Represents the modal sample index.
[0095] In the above way, cross-modal correlation information and modality-specific information can be well aggregated.
[0096] Step S3 of the embodiment of the present invention is specifically:
[0097] S31. Introduce the privacy concept words in the industry corpus into the word segmenter LTP, segment the text data, and input them into the pre-trained language model of the industry to perform feature extraction to obtain the corresponding word embedding;
[0098] S32. For each word in the text data, query the corresponding concept embedding in the industry corpus, and add it to the corresponding word embedding bit by bit to obtain the final word embedding;
[0099] S33. The contextual semantics of each word in the text data is captured through the BiLSTM model. At the same time, the industry corpus is queried to generate a masked attention vector, and the attention weight that matches the privacy concept of the privacy concept word in the industry corpus is calculated to obtain the comprehensive semantic word of the word.
[0100] In step S31 of this embodiment, the pre-trained language model is the RoBERTa-wwm-ext-large model, which, as a feature extraction model, adopts the full-word masking strategy for MLM training to retain the integrity of the entire word group or phrase, which helps to solve the problem of information loss in the Chinese privacy policy text and enables the model to better understand the contextual information of the text. Since the pre-trained language model RoBERTA-wwm-ext-large is trained on general data corpora such as Wikipedia, Book-Corpus, CC-NEWS, OPENWEBTEXT, STORIES, etc., it is not suitable for specific domain data such as Chinese privacy policy text. Therefore, in this embodiment, before applying RoBERTa-wwm-ext-large for feature extraction, a large amount of Chinese privacy policy text data is collected to fine-tune the RoBERTa-wwm-ext-large model.
[0101] In step S32 of this embodiment, the concept embedding is the average of all word embeddings in the same privacy policy concept to which each word in the text data belongs.
[0102] Step S33 of this embodiment is specifically as follows:
[0103] S31. Capture the contextual semantics of each word in the text data through the BiLSTM model to obtain the feature representation of each word;
[0104] Specifically, the word embedding representation is input into the BiLSTM model for sequence encoding, and the text data is selectively forgotten or transferred through the BiLSTM model gating mechanism to capture the contextual semantics of the text and form the feature representation of each word in the text;
[0105] S32. Query the industry corpus, match the privacy concept of each word in the text, generate a masked attention vector, and calculate the attention weight of each word based on the masked attention vector ;
[0106] ;
[0107] In the formula, express Relative to The attention weight, and They represent the output of the BiLSTM model. and The word embedding representation is Indicates The word embedding is the embedding representation after nonlinear transformation. Indicates The word is in the privacy concept k The word is embedded after nonlinear transformation. n For the The number of words in the privacy concept where the word is located, subscript k represents the index of the embedding representation of the word in the privacy concept where the BiLSTM model output word is located, and exp() represents the exponential function; where, for the mask operation , which means that the words corresponding to "1" in the masked attention vector participate in the attention weight calculation, and the words corresponding to "0" are masked out, and finally we get ;
[0108] Specifically, in the generated masked attention vector, the mask of the position where the word appears in the industry corpus is located is 1, and the mask of the position where the other words are located is 0. The masked attention vector in this embodiment can help the model pay more attention to the words related to the privacy concept in the text, effectively reducing the noise of text recognition.
[0109] S33. Based on the attention weight of each word, calculate the corresponding embedding representation , and then merged to form semantic features;
[0110] ;
[0111] In the formula, represents the embedding representation, represents the model's learnable parameters, tanh() represents the hyperbolic tangent function, Indicates a connection operation; represents the intermediate parameter, and , express Relative to The attention weight of Indicates the privacy concept words, For the The number of words in the privacy concept where the word is located;
[0112] S34. Input the semantic features into the global pointer network and calculate its semantic score , and then get the comprehensive semantic words;
[0113] ;
[0114] In the formula, represents the semantic score corresponding to the semantic feature, Indicates The rotational position encoding of words, Indicates The rotational position encoding of words, Indicates The starting position of the category comprehensive semantic word is expressed, Indicates The terminal position of the category comprehensive semantic word is expressed, Indicates the first Words to The relative rotation position encoding of words, superscript T Represents a matrix transpose operation.
[0115] Specifically, for each embedding representation in the semantic feature Transform according to the following formula to obtain The starting position of the named entity and end position representation , and then represent it according to the starting position and end position representation , calculated from arrive One type of continuous segment is The score of the named entity ; The starting position indicates and end position representation Respectively expressed as:
[0116] ;
[0117] ;
[0118] In the formula, and represents the learnable parameters in model training, and Represents the bias term of the model.
[0119] Step S4 of the embodiment of the present invention is specifically as follows:
[0120] S41, generating a corresponding privacy text standard template based on the extracted comprehensive semantic words;
[0121] S42. Use the BERT model to encode the text data and the privacy text specification template into corresponding embedding matrices respectively;
[0122] S43, use the Transformer encoder to extract the features of the two embedding matrices respectively, and perform mutual attention interaction calculation based on the self-attention mechanism to obtain the corresponding semantic representation;
[0123] S44, performing multi-level splicing and fusion of the semantic representations corresponding to the text data and the privacy text specification template, and then calculating their similarity;
[0124] S45, determining whether the similarity is greater than a set threshold;
[0125] If yes, the text data passes the compliance test;
[0126] If not, the text data fails the compliance check.
[0127] Step S41 of this embodiment is specifically as follows:
[0128] Determine the privacy concept words to which the comprehensive semantic words belong, and generate the corresponding privacy text standard template based on the privacy concept words according to the hierarchical relationship between the privacy concept words.
[0129] In step S43 of this embodiment, the formula for calculating mutual attention interaction based on the self-attention mechanism is:
[0130] ;
[0131] ;
[0132] ;
[0133] ;
[0134] ;
[0135] In the formula, and B represents the embedding matrix of two inputs, represents the weight matrix, Indicates m The attention matrix, m =1,2,…,8, represents the query matrix, represents the key matrix, V represents the value matrix, represents the weight of the input embedding matrix, represents the weight of the query matrix, represents the weight of the bond matrix, represents the weight of the value matrix, Indicates m A query matrix, Indicatesm A key matrix, Indicates m A matrix of values, represents the distance between the embedding matrices of the two inputs, Z represents the semantic representation finally obtained by the mutual attention interaction calculation, represents the 1st, 2nd, ..., 8th attention matrix, Concat () indicates a concatenation operation.
[0136] Specifically, in this embodiment, after the above operation, the interactive attention matrix is multiplied by the matrix A , and get the matrix after interaction A An interaction is completed, and each time the input text is encoded, an interaction can be performed. Multi-level interactions can be performed in the encoder, which not only strengthens the correlation between the semantic features of the texts, but also obtains deeper encoding information, provides variables for the calculation of the lower layer, and obtains accurate compliance detection results.
[0137] In step S44 of this embodiment, after the aforementioned mutual attention interaction calculation, rich semantic features and interaction information are obtained, wherein the interaction information is obtained on the basis of the semantic features, and the matrix obtained after the interaction is related to the input data. The two types of information describe the characteristics of the text from different angles, and discarding any one of them will lead to incomplete semantics. The traditional splicing method is to simply splice the two inputs together. This simple splicing method actually ignores the similarities and differences between the texts. These two aspects of information are also important information, so in this embodiment, they are added together in the splicing formula. Assuming that the inputs of the two texts are and , the splicing formula is:
[0138] ;
[0139] in, Represents the concatenated text. represents the concatenation function, Indicates the subtraction of corresponding elements, for the differences between matrices, Represents bitwise multiplication, targeting the similarities between matrices.
[0140] After the above splicing formula, the splicing vector is input into the full neural network. After the Simoid function, the predicted value of the similarity between the input texts can be calculated, and then the compliance of the text data can be judged based on it.
[0141] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
[0142] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. An intelligent compliance detection method based on industry multimodal feature data, characterized in that: The following steps are involved: S1. Collect industry privacy policies and build an industry corpus; The data in the industry corpus includes privacy concept words at different structural levels; S2, extracting and aggregating feature information under each mode of the multimodal data to be detected, and obtaining text data describing the information contained in the multimodal data to be detected; S3, extracting comprehensive semantic words from text data based on the constructed industry corpus; S4. Perform compliance detection on the text data according to the extracted comprehensive semantic words to obtain compliance detection results of the multimodal data to be detected; The step S2 is specifically as follows: S21, encoding each single modal information in the multimodal data to be detected as an embedding and mapping it into a shared space, and enhancing the feature information through inter-modal and intra-modal supervised contrast losses; S22, aggregate the enhanced specific features of each modality across modalities, and learn cross-modal interactive features; S23, aggregating specific features and interactive features of different modalities through an attention mechanism based on the difference in distribution of features of different modalities, and obtaining text data describing the information contained in the multimodal data to be detected; In step S23, the text data describing the information contained in the multimodal data to be detected It is expressed as: In the formula, and Represent the specific features of text modality and image modality respectively, represents the cross-modal interaction feature, represents the multimodal consistency weight, Represents a splicing operation, Indicates The text data corresponding to the modal samples, L represents the total number of modal samples, Represents the modal sample index; The step S3 is specifically as follows: S31. Introduce the privacy concept words in the industry corpus into the word segmenter LTP, segment the text data, and input them into the pre-trained language model of the industry to perform feature extraction to obtain the corresponding word embedding; S32. For each word in the text data, query the corresponding concept embedding in the industry corpus, and add it to the corresponding word embedding bit by bit to obtain the final word embedding; S33, capturing the contextual semantics of each word in the text data through the BiLSTM model, and querying the industry corpus to generate a masked attention vector, calculating the attention weight that matches the privacy concept of the privacy concept word in the industry corpus, and then obtaining the comprehensive semantic word of the word; The step S33 is specifically as follows: S33-1. Capture the contextual semantics of each word in the text data through the BiLSTM model to obtain the feature representation of each word; S33-2. Query the industry corpus, match the privacy concept of each word in the text, generate a masked attention vector, and calculate the attention weight of each word based on the masked attention vector ; In the formula, express Relative to The attention weight, and They represent the output of the BiLSTM model. and The word embedding representation is Indicates The word embedding is the embedding representation after nonlinear transformation. Indicates The word is in the privacy concept k The word is embedded after nonlinear transformation. For the The number of words in the privacy concept where the word is located, subscript k Represents the index of the embedding representation of the word in the privacy concept where the BiLSTM model output word is located, and exp() represents the exponential function; S33-3. Based on the attention weight of each word, calculate the corresponding embedding representation , and then merged to form semantic features; In the formula, represents the embedding representation, represents the model's learnable parameters, tanh() represents the hyperbolic tangent function, Indicates a connection operation; represents the intermediate parameter, and , express Relative to The attention weight of Indicates the concept of privacy words, For the The number of words in the privacy concept where the word is located; S33-4. Input the semantic features into the global pointer network and calculate its semantic score , and then get the comprehensive semantic words; In the formula, represents the semantic score corresponding to the semantic feature, Indicates The rotational position encoding of words, Indicates The rotational position encoding of words, Indicates The starting position of the category comprehensive semantic word is expressed, Indicates The terminal position of the category comprehensive semantic word is expressed, Indicates the first Words to The relative rotation position encoding of words, superscript T Represents a matrix transpose operation; The step S4 is specifically as follows: S41, generating a corresponding privacy text standard template based on the extracted comprehensive semantic words; S42. Use the BERT model to encode the text data and the privacy text specification template into corresponding embedding matrices respectively; S43, use the Transformer encoder to extract the features of the two embedding matrices respectively, and perform mutual attention interaction calculation based on the self-attention mechanism to obtain the corresponding semantic representation; S44, performing multi-level splicing and fusion of the semantic representations corresponding to the text data and the privacy text specification template, and then calculating their similarity; S45, determining whether the similarity is greater than a set threshold; If yes, the text data passes the compliance test; If not, the text data fails the compliance check.
2. The intelligent compliance detection method based on industry multimodal feature data according to claim 1 is characterized in that: The step S1 is specifically as follows: S11. Visit the website and search for web page elements to determine whether keywords representing privacy policy are found; If yes, then enter the corresponding privacy policy page and proceed to step S14; If not, proceed to step S12; S12, identifying the privacy policy webpage through the user registration page, and determining whether the corresponding keyword is found; If so, then according to the found keywords, enter the user registration page to determine whether the keywords representing the privacy policy are found. If so, proceed to step S14; If not, proceed to step S13; S13, manually identify and enter the link representing the privacy policy page, and proceed to step S14; S14. Save the identified privacy policy pages and form an industry corpus of privacy policy concepts with a structural hierarchy.
3. The intelligent compliance detection method based on industry multimodal feature data according to claim 2 is characterized in that: In step S14, the industry corpus has a three-level structure; the first level is the first-level concept words related to the privacy protection regulations in the privacy policy, the second level is the second-level concept words under each first-level concept word that provide a detailed description of each first-level concept word, and the third level is the third-level concept words that identify the specific details of the first-level concept words.
4. The intelligent compliance detection method based on industry multimodal feature data according to claim 1 is characterized in that: The step S41 is specifically as follows: Determine the privacy concept words to which the comprehensive semantic words belong, and generate the corresponding privacy text standard template based on the privacy concept words according to the hierarchical relationship between the privacy concept words.
Citation Information
Cited By
Data compliance dynamic detection method and system based on deep learning
CN122088483A
