A document data detection method based on cloud computing
By using the error detection and discrimination model and the detection accuracy value analysis model to process target keywords and user query parameters in a cloud computing environment, the problems of spelling errors and semantic expansion in traditional retrieval solutions are solved, and the retrieval accuracy and query results of encrypted document data are improved. accuracy.
Patent Information
- Application Number
- CN202410881045.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Traditional plaintext-based keyword retrieval solutions cannot effectively handle spelling errors and semantic expansion issues in cloud computing environments, resulting in reduced retrieval accuracy for encrypted document data.
By obtaining the first matching parameter of the target keyword and the second query parameter of the user query, the first error detection discrimination model and the second detection accuracy value analysis model are respectively imported to calculate the error detection value and detection accuracy value to ensure that the user can Match the correct encrypted document data.
It improves the retrieval accuracy of encrypted document data, optimizes the accuracy and relevance of query results, and reduces the risk of data leakage caused by matching errors.
Smart Images

Figure CN118427308B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of document error detection, and more specifically, to a document data detection method based on cloud computing. Background Art
[0002] Traditional document data encryption uses transparent encryption methods, which enforce encryption on different forms of data, usually during data flow. In other processes, encryption is usually not used to reduce system resource consumption, resulting in the document data not being protected.
[0003] Cloud computing combines the concepts of grid computing, distributed computing, and efficient computing, and brings together a large number of computing resources, storage resources, and software resources to form a huge shared virtual resource pool. The emergence of cloud computing has brought convenience and cost savings to users, so more and more users are willing to outsource their data to cloud servers. However, since attackers may try to access sensitive data, curious or malicious administrators may also capture and leak data. In order to protect users' sensitive data, data should be encrypted before outsourcing, but this makes traditional plaintext-based keyword retrieval schemes obsolete. At present, researchers have proposed a searchable encryption scheme. The client stores encrypted data on the cloud server and can perform keyword retrieval on the ciphertext. When the user needs to retrieve files on the cloud server, the encrypted keywords are sent to the cloud server. The cloud server matches each file based on the received encrypted keywords. If the match is successful, it means that the file contains the retrieval keyword and can meet the user's needs. The cloud server returns the successfully matched file to the user, and the user decrypts it after receiving the file. However, most current solutions only support exact matching of keywords, while ignoring spelling errors and semantic extension of keywords. Since the encrypted data no longer retains the natural connection and contextual relationship between words, the search results cannot fully reflect the actual meaning of the original text, and thus cannot match the correct keywords in the encrypted document, reducing the search accuracy.
[0004] In order to solve the above problems, a technical solution is now provided. Summary of the invention
[0005] In order to overcome the above-mentioned defects of the prior art, the present invention provides a document data detection method based on cloud computing, by obtaining a first matching parameter and a second query parameter, importing the first matching parameter into a first error detection discrimination model, calculating a first error detection value, and discriminating the first error detection value, by importing the first error detection value and the second query parameter into a second detection accuracy value analysis model, calculating the second detection accuracy value, ensuring that the correct encrypted document data can be matched when the user queries, improving the retrieval accuracy of the encrypted document data, so as to solve the problems raised in the above-mentioned background technology.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A document data detection method based on cloud computing includes the following steps:
[0008] S1. Obtain the first matching parameter of the target keyword;
[0009] S2, obtaining a second query parameter when the user queries the target keyword;
[0010] S3, importing the first matching parameter into the first error detection and discrimination model, calculating the first error detection value, and discriminating the first error detection value;
[0011] S4, importing the first error detection value and the second query parameter into a second detection accuracy value analysis model to calculate the second detection accuracy value;
[0012] S5. Extract the historical first matching parameter, the historical second query parameter, and the historical second detection accuracy value, and construct a neural network model with the historical first matching parameter and the historical second query parameter as input and the historical second detection accuracy value as output.
[0013] As a further solution of the present invention, in S1, the first matching parameter includes a synonym matching rate, a near-synonymous matching rate, an extended keyword coverage rate, and a subject word coverage rate of the target keyword.
[0014] As a further solution of the present invention, in S2, the second query parameter includes the click-through rate, bounce rate, query modification frequency and average query times per retrieval of the user's query target keyword.
[0015] As a further solution of the present invention, in S3, the first matching parameter is imported into the first error detection discrimination model, the first error detection value is calculated, and the first error detection value is discriminated. The specific steps are:
[0016] S31, extracting the synonym matching rate, near-synonym matching rate, extended keyword coverage rate and subject word coverage rate of the target keyword in the first matching parameter;
[0017] S32: Import the synonym matching rate, near-synonym matching rate, extended keyword coverage rate and subject word coverage rate of the target keyword in the first matching parameter into the first error detection discrimination model to calculate the first error detection value. The formula of the first error detection discrimination model is:
[0018] ;
[0019] Where: is the first error detection value, Target keywords The synonym matching rate of Target keywords The synonym matching rate of Target keywords Extended keyword coverage, Target keywords The coverage of the subject words, is the number of target keywords;
[0020] S33, extracting the first error detection value, comparing the first error detection value with a preset first error detection threshold, if the first error detection value is greater than or equal to the preset first error detection threshold, the first error detection value is unqualified; if the first error detection value is less than the preset first error detection threshold, the first error detection value is qualified.
[0021] As a further solution of the present invention, in S4, the first error detection value and the click-through rate, bounce rate, query modification frequency and average query number of each retrieval of the user query target keyword in the second query parameter are imported into the second detection accuracy value analysis model to calculate the second detection accuracy value, and the specific steps are as follows:
[0022] S41, extracting the first error detection value and the click-through rate, bounce rate, query modification frequency, and average query times per retrieval of the user query target keyword in the second query parameter;
[0023] S42, importing the first error detection value and the click rate, bounce rate, query modification frequency and average query times per retrieval of the user query target keyword in the second query parameter into a second detection accuracy value analysis model to calculate the second detection accuracy value. The formula of the second detection accuracy value analysis model is:
[0024] ;
[0025] Where: is the second detection accuracy value, is the first error detection value, Search target keywords for users Click-through rate, Search target keywords for users Bounce rate, Search target keywords for users The query modification frequency, Search target keywords for users The average number of queries per search at is the number of target keywords.
[0026] The technical effects and advantages of a document data detection method based on cloud computing of the present invention are as follows: the present invention obtains a first matching parameter and a second query parameter, imports the first matching parameter into a first error detection discrimination model, calculates a first error detection value, and discriminates the first error detection value. The calculation and discrimination of the first error detection value can detect and prevent the risk of data leakage caused by matching errors; by importing the first error detection value and the second query parameter into a second detection accuracy value analysis model, the second detection accuracy value is calculated to ensure that the correct encrypted document data can be matched when the user queries, thereby improving the retrieval accuracy of the encrypted document data and optimizing the accuracy and relevance of the query results. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flowchart of a document data detection method based on cloud computing provided in Example 1 of the present invention. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the present invention to clearly and completely describe the technical solution in the present invention. Obviously, the described technical solution is only a part of the present invention, not all of it. Based on the technical solution in the present invention, all other technical solutions obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0029] Example 1
[0030] Figure 1 FIG. 1 is a flow chart of a document data detection method based on cloud computing provided in Embodiment 1 of the present invention. Figure 1 As shown, a document data detection method based on cloud computing in this embodiment includes the following steps:
[0031] S1. Obtain the first matching parameter of the target keyword;
[0032] S2, obtaining a second query parameter when the user queries the target keyword;
[0033] S3, importing the first matching parameter into the first error detection and discrimination model, calculating the first error detection value, and discriminating the first error detection value;
[0034] S4, importing the first error detection value and the second query parameter into a second detection accuracy value analysis model to calculate the second detection accuracy value;
[0035] S5. Extract the historical first matching parameter, the historical second query parameter, and the historical second detection accuracy value, and construct a neural network model with the historical first matching parameter and the historical second query parameter as input and the historical second detection accuracy value as output.
[0036] In S1, the first matching parameter includes a synonym matching rate, a near-synonymous matching rate, an extended keyword coverage rate, and a subject word coverage rate of the target keyword.
[0037] By obtaining the first matching parameter and the second query parameter, importing the first matching parameter into the first error detection discrimination model, calculating the first error detection value, and discriminating the first error detection value, by importing the first error detection value and the second query parameter into the second detection accuracy value analysis model, calculating the second detection accuracy value, ensuring that the correct encrypted document data can be matched when the user queries, thereby improving the retrieval accuracy of the encrypted document data.
[0038] The synonym matching rate of the target keyword uses an existing synonym dictionary or a self-built domain-specific synonym database to perform pre-processing operations such as word segmentation and stop word removal on the text to be analyzed and the reference text, and compares the occurrence of the target keyword and its synonyms in the reference text one by one. The number of matched synonyms is counted and the matching rate is calculated. The synonym matching rate is obtained by the matching ratio of the target keyword in the text and its synonyms in the reference text;
[0039] The synonym matching rate of the target keyword is determined by using a synonym dictionary or by calculating the word vector similarity (such as a word embedding model). The text to be analyzed and the reference text are preprocessed by word segmentation and stop word removal. The occurrence of the keyword and its synonyms in the reference text are compared one by one. The number of matched synonyms is counted and the matching rate is calculated. The synonym matching rate of the target keyword is calculated by obtaining the matching ratio of the keyword in the text and its synonyms in the reference text.
[0040] The extended keyword coverage of the target keyword uses a keyword research tool to generate extended keywords related to the target keyword, performs preprocessing operations such as word segmentation and stop word removal on the text to be analyzed and the reference text, checks whether the reference text contains the target keyword and its extended keywords, and counts the number of matched keywords, the total number of all extended keywords and the number of matched extended keywords, and calculates the extended keyword coverage by the ratio of the target keyword and its extended keywords appearing in the reference text.
[0041] The subject word coverage of the target keyword uses a subject extraction algorithm or manually determines the subject words in the text, performs preprocessing operations such as word segmentation and stop word removal on the text to be analyzed and the reference text, counts the occurrence of the subject words in the reference text, counts the number of matched subject words and calculates the coverage. The proportion of the subject words in the text that appear in the reference text is the extended subject word coverage.
[0042] In S2, the second query parameter includes the click-through rate, bounce rate, query modification frequency, and average query times per retrieval of the user's query target keyword.
[0043] In S3, the synonym matching rate, near synonym matching rate, extended keyword coverage rate and subject word coverage rate of the keywords in the first matching parameter are imported into the first error detection discrimination model, the first error detection value is calculated, and the first error detection value is discriminated. The specific steps are:
[0044] S31, extracting the synonym matching rate, near-synonym matching rate, extended keyword coverage rate and subject word coverage rate of the target keyword in the first matching parameter;
[0045] S32: Import the synonym matching rate, near-synonym matching rate, extended keyword coverage rate and subject word coverage rate of the target keyword in the first matching parameter into the first error detection discrimination model to calculate the first error detection value. The formula of the first error detection discrimination model is:
[0046] ;
[0047] Where: is the first error detection value, Target keywords The synonym matching rate of Target keywords The synonym matching rate of Target keywords Extended keyword coverage, Target keywords The coverage of the subject words, is the number of target keywords;
[0048] S33, extracting the first error detection value, comparing the first error detection value with a preset first error detection threshold, if the first error detection value is greater than or equal to the preset first error detection threshold, the first error detection value is unqualified; if the first error detection value is less than the preset first error detection threshold, the first error detection value is qualified.
[0049] By extracting the synonym matching rate, near-synonym matching rate, extended keyword coverage rate and subject word coverage rate, the matching situation of the target keyword can be comprehensively evaluated, and the effect of keyword matching can be more accurately reflected; using a specific discriminant model formula to calculate the first error detection value can refine and quantify the influence of the matching parameters, and the logarithmic and square operations in the formula can adjust the weights of the matching rate and coverage rate, further improving the accuracy of detection; by setting a preset first error detection threshold, the error detection process is standardized, which not only unifies the evaluation criteria, but also facilitates the use of the detection results for subsequent analysis and improvement; by continuously detecting and adjusting the matching parameters, the quality of keyword matching is gradually improved, and a qualified error detection value means that the matching parameters have been optimized, thereby improving the overall keyword matching effect; timely extraction and comparison of the first error detection value can provide real-time feedback for the matching process, which can quickly discover and correct problems in the matching process, and improve the response speed and matching efficiency of the system.
[0050] The synonym matching rate of the target keyword refers to the proportion of synonyms of the keyword that are matched in the document data. A high synonym matching rate means that the retrieval system can recognize and process the same concept in different expressions, reducing the error rate of missing relevant information. The higher the synonym matching rate, the lower the error rate, because the system can capture more relevant content and reduce missed detection.
[0051] The synonym matching rate of the target keyword refers to the proportion of synonyms of the keyword that are matched in the document. A high synonym matching rate means that the system can handle words with similar meanings but different expressions, which enhances the robustness of the retrieval. The higher the synonym matching rate, the lower the error rate, because the system can identify and include more relevant information, reducing the probability of missed detection and false detection.
[0052] The extended keyword coverage of the target keyword refers to the proportion of the expanded keywords (including synonyms and near synonyms) that are matched in the document data. A high extended keyword coverage indicates that the system can effectively identify and match multiple expressions of keywords, improving the comprehensiveness of the retrieval. The higher the extended keyword coverage, the lower the error rate, because more relevant documents are matched, reducing the omission of important information.
[0053] The subject word coverage of the target keyword refers to the proportion of the keyword matched in the document topic model. A high subject word coverage indicates that the system can understand the importance and relevance of the keyword in different topics and improve the semantic accuracy of the retrieval. The higher the subject word coverage, the lower the error rate, because the system can better understand the semantic content of the document and reduce false detections and missed detections.
[0054] In S4, the first error detection value and the click-through rate, bounce rate, query modification frequency, and average query times per retrieval of the user's query target keyword in the second query parameter are imported into the second detection accuracy value analysis model to calculate the second detection accuracy value. The specific steps are as follows:
[0055] S41, extracting the first error detection value and the click-through rate, bounce rate, query modification frequency, and average query times per retrieval of the user query target keyword in the second query parameter;
[0056] S42, importing the first error detection value and the click rate, bounce rate, query modification frequency and average query times per retrieval of the user query target keyword in the second query parameter into a second detection accuracy value analysis model to calculate the second detection accuracy value. The formula of the second detection accuracy value analysis model is:
[0057] ;
[0058] Where: is the second detection accuracy value, is the first error detection value, Search target keywords for users Click-through rate, Search target keywords for users Bounce rate, Search target keywords for users The query modification frequency, Search target keywords for users The average number of queries per search at is the number of target keywords.
[0059] Including the user click-through rate, bounce rate, query modification frequency and the average number of queries per retrieval into the calculation of the detection accuracy value can fully reflect the user's real feedback on the keyword matching results, which helps to more accurately evaluate the matching effect; by combining the first error detection value and user behavior data, the accuracy of keyword matching can be evaluated from multiple angles, which can not only find the problems of matching parameters, but also understand the shortcomings of user experience; using a specific analysis model formula to calculate the second detection accuracy value can quantify and comprehensively evaluate the impact of each parameter, and the logarithmic operation in the formula can smooth the differences between different parameters, making the detection results more accurate and reliable; by regularly calculating and analyzing the second detection accuracy value, it can provide real-time feedback and optimization suggestions for the keyword matching process, which helps to adjust and improve the matching strategy in time, improve the system's response speed and matching effect; by analyzing the user's click-through rate, bounce rate and query modification frequency and other behavioral data, the user's search habits and behavior patterns can be identified, which helps to better understand user needs and further optimize the keyword matching strategy; accurate detection accuracy analysis can help identify and correct problems in the matching process, thereby improving the user's search experience. The optimized matching results are more in line with user needs, reduce user bounce rate and query modification frequency, and improve user satisfaction.
[0060] The click-through rate of a user's query target keyword is the ratio of the number of times a user clicks on the target keyword result on the search page to the number of times the target keyword is displayed. A high click-through rate usually indicates that the searched encrypted document data is highly relevant to the user's query, which means that the system has a high accuracy. A low click-through rate means that the searched encrypted document data is less relevant to the user's query, which reduces the accuracy of the encrypted document data search.
[0061] The bounce rate of the user's query target keyword refers to the proportion of users who browse only one page of encrypted document data and then leave. A high bounce rate usually indicates that the user has not found the encrypted document data they need, which means that the encrypted document data being searched does not match the query intent, reducing the accuracy of the encrypted document data search;
[0062] The query modification frequency of the user's query target keyword refers to the number of times the user modifies the target keyword after searching the encrypted document data once. A high query modification frequency usually indicates that the user is not satisfied with the result of the initial encrypted document data search, reflecting the low accuracy of the encrypted document data search;
[0063] The average number of queries per search for a user's target keyword refers to the average number of queries performed by the user in a search session. A high average number of queries means that the user has tried multiple times to find relevant encrypted document data, reflecting the low accuracy of encrypted document data searches.
[0064] In S5, the specific steps of extracting the historical first matching parameter, the historical second query parameter and the historical second detection accuracy value, and constructing a neural network model with the historical first matching parameter and the historical second query parameter as input and the historical second detection accuracy value as output are:
[0065] S51, extracting the historical first matching parameter, the historical second query parameter, and the historical second detection accuracy value, and constructing a neural network model with the historical first matching parameter and the historical second query parameter as input and the historical second detection accuracy value as output;
[0066] S52, setting the extracted historical first matching parameter, historical second query parameter, and historical second detection accuracy value into a test parameter set and a training parameter set in a ratio of 2:8;
[0067] S53. Input 80% of the training parameter set into the deep learning neural network model for training to obtain a primary deep learning neural network model. Then test the primary deep learning neural network model using a 20% test parameter set, and output an optimal primary deep learning neural network model that meets the historical second detection accuracy value corresponding to the preset conditions. The optimal primary deep learning neural network model is used as the deep learning neural network model.
[0068] By extracting the historical first matching parameters, the historical second query parameters and the historical second detection accuracy values, we can make full use of existing data for model training and more accurately capture matching rules and user behavior patterns. By taking the historical first matching parameters and the historical second query parameters as input and the historical second detection accuracy values as output, we can analyze data from multiple dimensions and comprehensively evaluate the effect of keyword matching and user experience. The neural network model has strong nonlinear fitting capabilities and can more accurately predict the second detection accuracy value. Through deep learning methods, the model can automatically capture complex relationships and patterns and improve the prediction accuracy of matching effects. By training the model with 80% of the training parameter set, we can make full use of data to improve model performance. By verifying with 20% of the test parameter set, we can evaluate the actual effect of the model. This combination of training and verification helps to find the optimal primary deep learning neural network model.
[0069] The embodiment of the present invention obtains the first matching parameter and the second query parameter, imports the first matching parameter into the first error detection and discrimination model, calculates the first error detection value, and discriminates the first error detection value. The calculation and discrimination of the first error detection value can detect and prevent the risk of data leakage caused by matching errors; by importing the first error detection value and the second query parameter into the second detection accuracy value analysis model, the second detection accuracy value is calculated, so as to ensure that the correct encrypted document data can be matched when the user queries, improve the retrieval accuracy of the encrypted document data, and optimize the accuracy and relevance of the query results. The constructed neural network model uses the first matching parameter and the second query parameter in the historical data as input and the historical second detection accuracy value as output. It can improve the intelligence and adaptability of the encryption method through deep learning, and can not only optimize the current encryption processing according to the past matching and query experience, but also predict and adapt to possible data needs and changes in the future, and further improve data security and encryption efficiency.
[0070] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0071] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A document data detection method based on cloud computing, characterized in that: The steps include: S1. Obtain the first matching parameter of the target keyword; S2, obtaining a second query parameter when the user queries the target keyword; S3, importing the first matching parameter into the first error detection and discrimination model, calculating the first error detection value, and discriminating the first error detection value; S4, importing the first error detection value and the second query parameter into a second detection accuracy value analysis model to calculate the second detection accuracy value; S5, extracting the historical first matching parameter, the historical second query parameter, and the historical second detection accuracy value, and constructing a neural network model with the historical first matching parameter and the historical second query parameter as input and the historical second detection accuracy value as output; In S3, the first matching parameter is imported into the first error detection discrimination model, the first error detection value is calculated, and the first error detection value is discriminated. The specific steps are: S31, extracting the synonym matching rate, near-synonym matching rate, extended keyword coverage rate and subject word coverage rate of the target keyword in the first matching parameter; S32: Import the synonym matching rate, near-synonym matching rate, extended keyword coverage rate and subject word coverage rate of the target keyword in the first matching parameter into the first error detection discrimination model to calculate the first error detection value. The formula of the first error detection discrimination model is: Where: r wa is the first error detection value, p ta is the synonym matching rate of target keyword a, p ja is the synonym matching rate of target keyword a, p ka is the extended keyword coverage of target keyword a, p za is the subject word coverage of target keyword a, and n is the number of target keywords; S33, extracting a first error detection value, and comparing the first error detection value with a preset first error detection threshold, if the first error detection value is greater than or equal to the preset first error detection threshold, the first error detection value is unqualified; If the first error detection value is less than a preset first error detection threshold, the first error detection value is qualified; In S4, the first error detection value and the click-through rate, bounce rate, query modification frequency, and average query times per retrieval of the user's query target keyword in the second query parameter are imported into the second detection accuracy value analysis model to calculate the second detection accuracy value. The specific steps are as follows: S41, extracting the first error detection value and the click-through rate, bounce rate, query modification frequency, and average query times per retrieval of the user's query target keyword in the second query parameter; S42, importing the first error detection value and the click rate, bounce rate, query modification frequency and average query times per retrieval of the user query target keyword in the second query parameter into a second detection accuracy value analysis model to calculate the second detection accuracy value. The formula of the second detection accuracy value analysis model is: Where: c db is the second detection accuracy value, r wa is the first error detection value, d a The click-through rate of the target keyword a for the user query, d ta The bounce rate of the user query target keyword a, f a The query modification frequency of the user's query target keyword a, c ja is the average number of queries per search when a user searches for target keyword a, and n is the number of target keywords.
