A fast proofreading method and system for error-sensitive word detection
By predicting proofreading consumption time and real-time monitoring of resource quality index, combined with AC automata and deep learning models, the error-sensitive word detection is optimized, solving the problem of low efficiency and accuracy of error-sensitive word detection, and realizing efficient error-sensitive word detection and Resource utilization.
Patent Information
- Application Number
- CN202411121545.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-15
AI Technical Summary
The performance and parallel processing resource efficiency of the error-sensitive word detection model in the existing technology affect the system response speed and accuracy, and the lack of refined monitoring and tuning strategies makes it difficult to improve detection efficiency and accuracy.
Provide a fast proofreading method that calculates the number of concurrent proofreadings by predicting proofreading consumption time, combines AC automata and deep learning models to detect error-sensitive words, monitor speed loss rate and resource quality index in real time, generate analysis instructions or early warnings, and automatically take measures to optimize models and resource allocation.
It significantly improves the efficiency of missensitive word detection, promptly discovers and solves potential problems, reduces manual intervention, and improves the automation of the system.
Smart Images

Figure CN118626281B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of error-sensitive word detection, and more specifically, to a fast proofreading method and system for error-sensitive word detection. Background Art
[0002] In the field of text processing, sensitive word detection is an important part of ensuring content compliance and security. Traditional methods rely on manual review, which is inefficient and error-prone. With the development of big data and artificial intelligence technology, automated sensitive word detection has gradually become mainstream. However, in practical applications, the performance of the detection model and the efficiency of parallel processing resources directly affect the response speed and accuracy of the entire system.
[0003] In the existing technology, log analysis, performance monitoring tools and other means can be used to preliminarily identify the reasons for the decline in system performance, including but not limited to performance problems of the incorrect word detection model itself (such as decreased efficiency of the AC automaton algorithm, increased judgment errors of the deep learning model) and performance bottlenecks of parallel computing resources (such as memory leaks, CPU overload, network delay, etc.). To address these issues, a more refined monitoring and tuning strategy is needed to improve the efficiency and accuracy of incorrect word detection. Summary of the invention
[0004] In order to overcome the above-mentioned defects of the prior art, the present invention provides a fast proofreading method and system for error-sensitive word detection to solve the problems raised in the above-mentioned background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: a fast proofreading method for error-sensitive word detection, comprising the following steps:
[0006] Step 1: Scan and obtain the electronic text of the target detection object, and output the electronic text to be proofread;
[0007] Step 2: preprocessing the electronic text to be proofread, including word segmentation and noise removal, and outputting the preprocessed electronic text;
[0008] Step 3: Obtain the text size and feature parameters of the target detection object, and obtain the predicted proofreading time YT through the proofreading time prediction model;
[0009] Step 4: Based on the predicted proofreading time YT and the target proofreading time, calculate the number of concurrent proofreading, divide the preprocessed electronic text into several intervals based on the number of concurrent proofreading, input them into the trained error-sensitive word detection model respectively, monitor the parallel processing process, output the location information of the error-sensitive words in the electronic file; and record the actual proofreading time; record the proofreading time of the i-th interval as Jst_i;
[0010] Step 5: Summarize the detection results to obtain the error-sensitive word information of the target detection object; obtain the actual proofreading time and predicted proofreading time of each interval, calculate the speed loss rate of each interval, and take countermeasures based on the speed loss rate; including:
[0011] When the average speed loss rate exceeds the preset value, an abnormal analysis instruction for the error-sensitive word detection model is generated; the parallel processing speed loss stability index is represented by the mean square error between the speed loss rate in each interval and the average speed loss rate, and measures are taken based on the parallel processing speed loss stability index. When the parallel processing speed loss stability index is lower than the preset value, it indicates that the parallel processing is abnormal, and a parallel processing resource abnormal analysis instruction is generated.
[0012] Preferably, the incorrect-sensitive word detection model first uses an AC automaton for rapid initial screening, and then uses a deep learning model to make a fine judgment on suspected sensitive words; the incorrect-sensitive word detection model includes an incorrect-sensitive word rough screening unit and an incorrect-sensitive word discrimination unit, the incorrect-sensitive word rough screening unit refers to using an AC automaton for rapid initial screening; the incorrect-sensitive word discrimination unit refers to using a deep learning model to make a fine judgment on suspected sensitive words; the incorrect-sensitive word rough screening unit includes: constructing a dictionary tree containing all incorrect-sensitive words, and adding a failure pointer to form an AC automaton, by traversing the electronic text to be proofread, using the AC automaton to quickly screen out incorrect-sensitive word candidates.
[0013] Preferably, the construction method of the incorrect word discrimination unit is:
[0014] Step S11, collect text data, annotate the text data, and clarify the location of sensitive words; pre-process the annotated data, including word segmentation, noise removal, and data cleaning steps, to ensure that the data input into the model is clean and standardized;
[0015] Step S12, selecting long short-term memory network initialization to obtain a long short-term memory network initial model;
[0016] Step S13, adding a fully connected layer to the initial model of the long short-term memory network, and realizing the binary classification task of error-sensitive words and non-error-sensitive words through the fully connected layer; setting training parameters: including learning rate, batch size, and number of iterations; using the labeled data set to train the model, calculating the prediction results through forward propagation, and updating the model parameters through the back propagation algorithm to minimize the error between the prediction results and the true labels, and outputting the trained deep learning model;
[0017] Step S14: Use an independent test set to evaluate the trained deep learning model, calculate the accuracy, recall rate, and F1 score indicators; optimize the deep learning model according to the evaluation results, including adjusting the model structure, modifying training parameters, and adding regularization terms;
[0018] Step S15: deploy the trained deep learning model to the incorrect sensitive word detection model, and work together with the incorrect sensitive word rough screening unit; when the AC automaton screens out suspected sensitive words, the suspected sensitive words are input into the deep learning model for detailed judgment.
[0019] Preferably, the method for obtaining the proofreading time prediction model includes the following steps:
[0020] Step S21, data preparation: collecting historical data of error-sensitive word detection, including actual proofreading time, content and characteristic parameters of electronic texts;
[0021] Step S22, feature extraction and selection: using NLP technology to extract basic features and advanced features of the text, the basic features include size, information entropy, language type, complexity; the advanced features include text theme, sentiment tendency; using statistical methods or machine learning algorithms to screen features that have a significant impact on prediction; using statistical methods or machine learning algorithms to perform feature selection, retaining features that have a significant impact on the prediction target;
[0022] Step S23, model building and optimization: build a recurrent neural network, optimize hyperparameters by adjusting attention mechanism parameters and model architecture, and combining cross-validation and grid search;
[0023] Step S24: Use the training set to perform cross-validation, evaluate the model performance through the loss function, and use the test set to verify the generalization ability of the model;
[0024] Step S25: deploy the trained proofreading time prediction model to actual application scenarios, such as an error-sensitive word detection system, to predict the proofreading time.
[0025] Preferably, the execution process of the error-sensitive word detection model abnormality analysis instruction includes an AC automaton performance abnormality analysis unit and a deep learning model abnormality analysis unit. The AC automaton performance abnormality analysis unit is used to obtain the AC automaton quality index and take measures based on the AC automaton quality index; the deep learning model abnormality analysis unit is used to obtain the deep learning model quality index and take measures based on the deep learning model quality index; according to the AC automaton quality index and the deep learning model quality index, the AC automaton and the deep learning model are optimized accordingly; for example, updating the error-sensitive word library, adjusting the deep learning model parameters, and retraining the deep learning model.
[0026] Preferably, the AC automaton quality index is obtained in the following manner:
[0027] When it is detected that the average value of the speed loss rate exceeds the preset value, all relevant log data and model outputs in this time period are collected;
[0028] Analyze the efficiency bottleneck of the AC automaton in the matching process. The efficiency bottleneck refers to the situation where the AC automaton matching process slows down significantly. Obtain the number of times the efficiency bottleneck occurs.
[0029] Obtain the matching accuracy, recall rate and average loss value of the AC automaton on the test set, denoted as Ac, Re and Ls respectively;
[0030] After linear normalization of the number of efficiency bottlenecks, matching accuracy, recall rate, and average loss value on the test set, the formula Calculate the AC automaton quality index AQI.
[0031] Preferably, the deep learning model quality index MQI is obtained in the following manner:
[0032] Assume that the deep learning model performs m classifications of incorrect word categories, and use j to represent the sequence number;
[0033] Get the number of categories of the deep learning model, the j-th discriminant true label, and the j-th discriminant prediction probability, which are denoted as C, and ;
[0034] By formula Calculate the deep learning model quality index, where wj represents the class weight.
[0035] Preferably, the execution process of the parallel processing resource abnormality analysis instruction includes a parallel processing computing performance abnormality analysis module, and the parallel processing computing performance abnormality analysis module is used to obtain a parallel processing resource quality index BQI; when the parallel processing resource quality index exceeds a preset value, take measures; for example, increase the number of CPU cores, expand memory capacity, optimize network configuration, etc.; when the resource status approaches or exceeds the preset value, issue a warning signal in advance so that preventive measures can be taken in time; the acquisition process of the parallel processing resource quality index BQI includes:
[0036] The resource utilization rate is obtained by obtaining the ratio of the resources actually used by the computer system in unit time to the total system resources. The resource utilization rate includes CPU utilization, memory utilization, disk utilization, and network utilization. The resource utilization index U is obtained by weighted summing up the CPU, memory, disk, and network utilization rates. The throughput is obtained by obtaining the number of tasks completed in unit time. The response time is obtained by obtaining the time from task submission to completion. The parallel efficiency is obtained by obtaining the ratio of the performance of the parallel processing system to the hardware resource input. Through linear normalization processing, the value range of the resource utilization index U, throughput, response time, and parallel efficiency is made to be between 0 and 1. After matching the weight coefficients for the resource utilization index U, throughput, response time, and parallel efficiency, the parallel processing resource quality index BQI is obtained by weighted summing.
[0037] Preferably, the AC automaton quality index, the deep learning model quality index MQI and the parallel processing resource quality index BQI are monitored in real time, and the AC automaton quality index, the deep learning model quality index MQI and the parallel processing resource quality index BQI are jointly analyzed to obtain the error-sensitive word proofreading speed abnormality coefficient; when the error-sensitive word proofreading speed abnormality coefficient exceeds the preset value, an alert is given to the user, indicating that the error-sensitive word proofreading system is abnormal.
[0038] It is necessary to further explain in the embodiment of the present invention that the calculation formula of the error-sensitive word proofreading speed abnormality coefficient CJv is: , where α, β, and γ represent the impact indexes of deep learning model, parallel processing computing resources, and AC automaton, respectively.
[0039] To achieve the above object, the present invention provides the following technical solution: a fast proofreading system for error-sensitive word detection, comprising:
[0040] A proofreading time prediction module is used to obtain the predicted proofreading time YT of the target detection object;
[0041] A region division module is used to divide the target detection object into several intervals, and input them into the trained sensitive word detection model respectively; the sensitive word detection model includes a rough screening unit for sensitive words and a discriminating unit for sensitive words, wherein the rough screening unit for sensitive words refers to a rapid initial screening using an AC automaton; the discriminating unit for sensitive words refers to a fine judgment of suspected sensitive words using a deep learning model;
[0042] The proofreading time consumption analysis module obtains the error-sensitive word information of the target detection object; obtains the actual proofreading time consumption and predicted proofreading time of each interval, and calculates the speed loss rate of each interval; the speed loss rate of each interval and the mean square error of the speed loss rate average are used to represent the parallel processing speed loss stability index;
[0043] The error-sensitive word detection state discrimination module generates an error-sensitive word detection model abnormality analysis instruction when the average speed loss rate exceeds the preset value; when the parallel processing speed loss stability index is lower than the preset value, it indicates that the parallel processing is abnormal, and generates a parallel processing resource abnormality analysis instruction;
[0044] The error-sensitive word detection model abnormality analysis module is used to obtain the AC automaton quality index and take measures based on the AC automaton quality index; it is used to obtain the deep learning model quality index and take measures based on the deep learning model quality index; the error-sensitive word detection model abnormality analysis module includes an AC automaton performance abnormality analysis unit and a deep learning model abnormality analysis unit;
[0045] A parallel processing resource anomaly analysis module is used to obtain a parallel processing resource quality index BQI;
[0046] The error-sensitive word proofreading speed abnormality assessment module monitors the AC automaton quality index, deep learning model quality index MQI and parallel processing resource quality index BQI in real time, and jointly analyzes the AC automaton quality index, deep learning model quality index MQI and parallel processing resource quality index BQI to obtain the error-sensitive word proofreading speed abnormality coefficient. When the error-sensitive word proofreading speed abnormality coefficient exceeds the preset value, an alert is issued to the user, indicating that the error-sensitive word proofreading system is abnormal.
[0047] Technical effects and advantages of the present invention:
[0048] (1) The fast proofreading method for error-sensitive word detection provided by the present invention predicts the proofreading time and calculates the number of concurrent proofreading based on it. The number of concurrent proofreading is calculated according to the target proofreading time (i.e., the completion time expected by the user or set by the system). The number of concurrent proofreading refers to the number of processing units (such as threads, processes or computing nodes) that participate in the proofreading work at the same time. By adjusting the number of concurrent proofreading, the system can maximize the use of existing resources while ensuring the completion time, thereby significantly improving the efficiency of error-sensitive word detection. This solves the problem in the prior art that it is difficult to accurately estimate the demand when manually allocating processing resources, which may lead to insufficient or wasted resources.
[0049] (2) The fast proofreading method for error-sensitive word detection provided by the present invention can detect potential problems in a timely manner and generate corresponding analysis instructions or warnings through real-time monitoring and calculation of speed loss rate, parallel processing speed loss stability index, AC automaton quality index, deep learning model quality index and parallel processing resource quality index, which helps to quickly respond to and solve problems; according to different indexes and coefficients, the system can automatically take corresponding measures, such as adjusting model parameters, optimizing resource allocation or prompting users to check; this intelligent processing method reduces the need for manual intervention and improves the degree of automation of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 The figure is a flow chart of the fast proofreading method for detecting error-sensitive words of the present invention.
[0051] Figure 2 The structural block diagram of the fast proofreading system for error-sensitive word detection of the present invention is DETAILED DESCRIPTION
[0052] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0053] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0054] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0055] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0056] Example 1
[0057] See also Figure 1 A flow chart of a fast proofreading method for detecting error-sensitive words, the present invention provides the following Figure 1 A fast proofreading method for detecting error-sensitive words is shown, comprising:
[0058] Step 1: Scan and obtain the electronic text of the target detection object, and output the electronic text to be proofread;
[0059] Step 2: preprocessing the electronic text to be proofread, including word segmentation and noise removal, and outputting the preprocessed electronic text;
[0060] Step 3: Obtain the text size and feature parameters of the target detection object, and obtain the predicted proofreading time YT through the proofreading time prediction model;
[0061] Step 4: Based on the predicted proofreading time YT and the target proofreading time, calculate the number of concurrent proofreading, divide the preprocessed electronic text into several intervals based on the number of concurrent proofreading, input them into the trained error-sensitive word detection model respectively, monitor the parallel processing process, output the location information of the error-sensitive words in the electronic file; and record the actual proofreading time; record the proofreading time of the i-th interval as Jst_i;
[0062] Step 5: Summarize the detection results to obtain the error-sensitive word information of the target detection object; obtain the actual proofreading time and predicted proofreading time of each interval, calculate the speed loss rate of each interval, and take countermeasures based on the speed loss rate; including:
[0063] When the average speed loss rate exceeds the preset value, an abnormal analysis instruction for the error-sensitive word detection model is generated; the parallel processing speed loss stability index is represented by the mean square error between the speed loss rate in each interval and the average speed loss rate, and measures are taken based on the parallel processing speed loss stability index. When the parallel processing speed loss stability index is lower than the preset value, it indicates that the parallel processing is abnormal, and a parallel processing resource abnormal analysis instruction is generated.
[0064] What needs to be further explained in the embodiments of the present invention is that the incorrect-sensitive word detection model first uses an AC automaton for rapid initial screening, and then uses a deep learning model to make a fine judgment on suspected sensitive words; the incorrect-sensitive word detection model includes an incorrect-sensitive word rough screening unit and an incorrect-sensitive word discrimination unit, the incorrect-sensitive word rough screening unit refers to using an AC automaton for rapid initial screening; the incorrect-sensitive word discrimination unit refers to using a deep learning model to make a fine judgment on suspected sensitive words; the incorrect-sensitive word rough screening unit includes: constructing a dictionary tree containing all incorrect-sensitive words, and adding a failure pointer to form an AC automaton, by traversing the electronic text to be proofread, using the AC automaton to quickly screen out incorrect-sensitive word candidates.
[0065] What needs to be further explained in the embodiment of the present invention is that the construction method of the incorrect word discrimination unit is:
[0066] Step S11, collect text data, annotate the text data, and clarify the location of sensitive words; pre-process the annotated data, including word segmentation, noise removal (such as special symbols, HTML tags, etc.), and data cleaning steps to ensure that the data input into the model is clean and standardized;
[0067] Step S12, selecting long short-term memory network initialization to obtain a long short-term memory network initial model;
[0068] Step S13, adding a fully connected layer to the initial model of the long short-term memory network, and realizing the binary classification task of error-sensitive words and non-error-sensitive words through the fully connected layer; setting training parameters: including learning rate, batch size, and number of iterations; using the labeled data set to train the model, calculating the prediction results through forward propagation, and updating the model parameters through the back propagation algorithm to minimize the error between the prediction results and the true labels, and outputting the trained deep learning model;
[0069] Step S14: Use an independent test set to evaluate the trained deep learning model, calculate the accuracy, recall rate, and F1 score indicators; optimize the deep learning model according to the evaluation results, including adjusting the model structure, modifying training parameters, and adding regularization terms;
[0070] Step S15: deploy the trained deep learning model to the incorrect sensitive word detection model, and work together with the incorrect sensitive word rough screening unit; when the AC automaton screens out suspected sensitive words, the suspected sensitive words are input into the deep learning model for detailed judgment.
[0071] In the further design, for the detected sensitive words, corresponding correction suggestions are generated based on the output of context-aware operations and the predictions of the language model; by analyzing the target users' historical proofreading records and feedback, the writing habits and preferences of the target users are learned; and personalized proofreading suggestions are generated based on the user's preferences and terminology requirements in specific fields.
[0072] It needs to be further explained in the embodiment of the present invention that the method for obtaining the proofreading consumption time prediction model includes the following steps:
[0073] Step S21, data preparation: collecting historical data of error-sensitive word detection, including actual proofreading time, content and characteristic parameters of electronic texts;
[0074] Step S22, feature extraction and selection: using NLP technology to extract basic features and advanced features of the text, the basic features include size, information entropy, language type, complexity (such as average sentence length, vocabulary diversity); the advanced features include text theme, sentiment tendency; using statistical methods or machine learning algorithms to screen features that have a significant impact on prediction; using statistical methods (such as chi-square test, mutual information) or machine learning algorithms (such as random forest, gradient boosting tree) to perform feature selection, retaining features that have a significant impact on the prediction target;
[0075] Step S23, model construction and optimization: construct a recurrent neural network, and optimize the hyperparameters by adjusting the attention mechanism parameters and the model architecture (such as adding a fully connected layer or a convolutional layer), combined with cross-validation and grid search; the recurrent neural network includes an input layer, a hidden layer and an output layer, and an attention mechanism is introduced in the hidden layer so that the model can focus more on the important parts of the text; the parameters of the attention mechanism are optimized by adjusting the attention weight and the attention window size; the input layer: receives the processed text data and its feature vector; the hidden layer is used to introduce multiple RNN units (such as LSTM units) to capture the sequence information in the electronic text, and the attention mechanism is introduced in the hidden layer so that the model can dynamically focus on the important parts of the electronic text; according to the actual situation, additional fully connected layers or convolutional layers are added to further extract and combine features; the output layer is used to output the predicted proofreading consumption time YT;
[0076] Step S24: Use the training set to perform cross-validation, evaluate the model performance through the loss function, and use the test set to verify the generalization ability of the model;
[0077] Step S25: deploy the trained proofreading time prediction model to actual application scenarios, such as an error-sensitive word detection system, to predict the proofreading time.
[0078] What needs to be further explained in the embodiments of the present invention is that the execution process of the error-sensitive word detection model abnormality analysis instruction includes an AC automaton performance abnormality analysis unit and a deep learning model abnormality analysis unit. The AC automaton performance abnormality analysis unit is used to obtain the AC automaton quality index and take measures based on the AC automaton quality index; the deep learning model abnormality analysis unit is used to obtain the deep learning model quality index and take measures based on the deep learning model quality index; according to the AC automaton quality index and the deep learning model quality index, the AC automaton and the deep learning model are optimized accordingly; for example, updating the error-sensitive word library, adjusting the deep learning model parameters, and retraining the deep learning model.
[0079] It needs to be further explained in the embodiment of the present invention that the AC automaton quality index is obtained in the following manner:
[0080] When it is detected that the average value of the speed loss rate exceeds the preset value, all relevant log data and model outputs in this time period are collected;
[0081] Analyze the efficiency bottleneck of the AC automaton in the matching process. The efficiency bottleneck refers to the situation where the AC automaton matching process slows down significantly. Obtain the number of times the efficiency bottleneck occurs.
[0082] Obtain the matching accuracy, recall rate and average loss value of the AC automaton on the test set, denoted as Ac, Re and Ls respectively;
[0083] After linear normalization of the number of efficiency bottlenecks, matching accuracy, recall rate, and average loss value on the test set, the formula Calculate the AC automaton quality index AQI, where Represents the correction constant.
[0084] It needs to be further explained in the embodiment of the present invention that the deep learning model quality index MQI is obtained in the following manner:
[0085] Assume that the deep learning model performs m classifications of incorrect word categories, and use j to represent the sequence number;
[0086] Get the number of categories of the deep learning model, the j-th discriminant true label, and the j-th discriminant prediction probability, which are denoted as C, and ;
[0087] By formula Calculate the deep learning model quality index MQI, where wj represents the class weight.
[0088] What needs to be further explained in the embodiment of the present invention is that the execution process of the parallel processing resource abnormality analysis instruction includes a parallel processing computing performance abnormality analysis module, and the parallel processing computing performance abnormality analysis module is used to obtain a parallel processing resource quality index BQI; when the parallel processing resource quality index exceeds a preset value, take measures; for example, increase the number of CPU cores, expand memory capacity, optimize network configuration, etc.; when the resource status approaches or exceeds the preset value, issue a warning signal in advance so that preventive measures can be taken in time; the acquisition process of the parallel processing resource quality index BQI includes:
[0089] The resource utilization rate is obtained by obtaining the ratio of the resources actually used by the computer system in unit time to the total system resources. The resource utilization rate includes CPU utilization, memory utilization, disk utilization, and network utilization. The resource utilization index U is obtained by weighted summing up the CPU, memory, disk, and network utilization rates. The throughput is obtained by obtaining the number of tasks completed in unit time. The response time is obtained by obtaining the time from task submission to completion. The parallel efficiency is obtained by obtaining the ratio of the performance of the parallel processing system to the hardware resource input. Through linear normalization processing, the value range of the resource utilization index U, throughput, response time, and parallel efficiency is made to be between 0 and 1. After matching the weight coefficients for the resource utilization index U, throughput, response time, and parallel efficiency, the parallel processing resource quality index BQI is obtained by weighted summing.
[0090] What needs to be further explained in the embodiments of the present invention is that a sensitive word library is established: according to laws and ethical standards, a database containing sensitive words is established, and in the process of detecting incorrect sensitive words, the electronic file is compared with the sensitive word library to identify and mark possible sensitive words; for the content marked as sensitive words, it is reviewed and judged by professionals to confirm whether it is indeed a sensitive word.
[0091] Example 2
[0092] The difference between the embodiment of the present invention and embodiment 1 is that the AC automaton quality index, the deep learning model quality index MQI and the parallel processing resource quality index BQI are monitored in real time, and the AC automaton quality index, the deep learning model quality index MQI and the parallel processing resource quality index BQI are jointly analyzed to obtain the error-sensitive word proofreading speed abnormality coefficient. When the error-sensitive word proofreading speed abnormality coefficient exceeds the preset value, an alert is given to the user, indicating that the error-sensitive word proofreading system is abnormal.
[0093] It is necessary to further explain in the embodiment of the present invention that the calculation formula of the error-sensitive word proofreading speed abnormality coefficient CJv is: , where α, β, and γ represent the impact indexes of deep learning model, parallel processing computing resources, and AC automaton, respectively.
[0094] Example 3
[0095] See also Figure 2 The fast proofreading system for detecting error-sensitive words is a structural block diagram of the invention. The embodiment of the invention provides a fast proofreading system for detecting error-sensitive words, including:
[0096] A proofreading time prediction module is used to obtain the predicted proofreading time YT of the target detection object;
[0097] A region division module is used to divide the target detection object into several intervals, and input them into the trained sensitive word detection model respectively; the sensitive word detection model includes a rough screening unit for sensitive words and a discriminating unit for sensitive words, wherein the rough screening unit for sensitive words refers to a rapid initial screening using an AC automaton; the discriminating unit for sensitive words refers to a fine judgment of suspected sensitive words using a deep learning model;
[0098] The proofreading time consumption analysis module obtains the error-sensitive word information of the target detection object; obtains the actual proofreading time consumption and predicted proofreading time of each interval, and calculates the speed loss rate of each interval; the speed loss rate of each interval and the mean square error of the speed loss rate average are used to represent the parallel processing speed loss stability index;
[0099] The error-sensitive word detection state discrimination module generates an error-sensitive word detection model abnormality analysis instruction when the average speed loss rate exceeds the preset value; when the parallel processing speed loss stability index is lower than the preset value, it indicates that the parallel processing is abnormal, and generates a parallel processing resource abnormality analysis instruction;
[0100] The error-sensitive word detection model abnormality analysis module is used to execute the error-sensitive word detection model abnormality analysis instruction to obtain the AC automaton quality index and the deep learning model quality index. The error-sensitive word detection model abnormality analysis module includes an AC automaton performance abnormality analysis unit and a deep learning model abnormality analysis unit;
[0101] A parallel processing resource anomaly analysis module is used to execute a parallel processing resource anomaly analysis instruction and obtain a parallel processing resource quality index BQI;
[0102] The error-sensitive word proofreading speed abnormality assessment module monitors the AC automaton quality index, deep learning model quality index MQI and parallel processing resource quality index BQI in real time, and jointly analyzes the AC automaton quality index, deep learning model quality index MQI and parallel processing resource quality index BQI to obtain the error-sensitive word proofreading speed abnormality coefficient. When the error-sensitive word proofreading speed abnormality coefficient exceeds the preset value, an alert is issued to the user, indicating that the error-sensitive word proofreading system is abnormal.
[0103] 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 fast proofreading method for error-sensitive word detection, characterized in that: The following steps are involved: Step 1: Scan and obtain the electronic text of the target detection object, and output the electronic text to be proofread; Step 2: preprocessing the electronic text to be proofread, including word segmentation and noise removal, and outputting the preprocessed electronic text; Step 3: Obtain the text size and feature parameters of the target detection object, and obtain the predicted proofreading time YT through the proofreading time prediction model; Step 4: Based on the predicted proofreading time YT and the target proofreading time, the number of concurrent proofreading is calculated. Based on the number of concurrent proofreading, the preprocessed electronic text is divided into several intervals, which are respectively input into the trained error-sensitive word detection model, the parallel processing process is monitored, the location information of the error-sensitive words in the electronic file is output, and the actual proofreading time is recorded; Step 5: Summarize the detection results to obtain the error-sensitive word information of the target detection object; The actual proofreading time and predicted proofreading time of each interval are obtained, and the speed loss rate of each interval is calculated. Countermeasures are taken based on the speed loss rate, including: When the average speed loss rate exceeds the preset value, an abnormal analysis instruction of the error-sensitive word detection model is generated; The execution process of the error-sensitive word detection model abnormality analysis instruction includes an AC automaton performance abnormality analysis unit and a deep learning model abnormality analysis unit. The AC automaton performance abnormality analysis unit is used to obtain an AC automaton quality index and take measures based on the AC automaton quality index; the deep learning model abnormality analysis unit is used to obtain a deep learning model quality index and take measures based on the deep learning model quality index; The AC automaton quality index is obtained as follows: When it is detected that the average speed loss rate exceeds the preset value, all relevant log data and model outputs in the corresponding time period are collected; the efficiency bottleneck of the AC automaton in the matching process is analyzed. The efficiency bottleneck refers to the situation where the matching process of the AC automaton is significantly slowed down, and the number of times the efficiency bottleneck occurs is obtained; the matching accuracy, recall rate and average loss value of the AC automaton on the test set are obtained, which are recorded as Ac, Re and Ls respectively; after linear normalization of the number of times the efficiency bottleneck occurs and the matching accuracy, recall rate and average loss value on the test set, the formula is used Calculate the AC automaton quality index AQI, where ε represents the correction constant; The deep learning model quality index MQI is obtained as follows: Assume that the deep learning model performs m classifications of incorrect word categories, and j is used to represent the sequence number; obtain the number of categories of the deep learning model, the jth discriminant true label, and the jth discriminant prediction probability, which are recorded as C, and ; Through the formula Calculate the deep learning model quality index, where w j represents the category weight; The speed loss rate of each interval and the mean square error of the speed loss rate are used to represent the parallel processing speed loss stability index. When the parallel processing speed loss stability index is lower than the preset value, it indicates that the parallel processing is abnormal. A parallel processing resource abnormality analysis instruction is generated to obtain the parallel processing resource quality index BQI. The AC automaton quality index, the deep learning model quality index MQI and the parallel processing resource quality index BQI are jointly analyzed to obtain the error-sensitive word proofreading speed abnormality coefficient. When the error-sensitive word proofreading speed abnormality coefficient exceeds the preset value, an alert is given to the user, indicating that the error-sensitive word proofreading system is abnormal.
2. A fast proofreading method for error-sensitive word detection according to claim 1, characterized in that: The incorrect sensitive word detection model first uses an AC automaton for rapid initial screening, and then uses a deep learning model to make a fine judgment on suspected sensitive words; the incorrect sensitive word detection model includes an incorrect sensitive word rough screening unit and an incorrect sensitive word discrimination unit, and the incorrect sensitive word rough screening unit refers to using an AC automaton for rapid initial screening; The incorrect sensitive word identification unit refers to using a deep learning model to make a detailed judgment on suspected sensitive words; The error-sensitive word rough screening unit comprises: constructing a dictionary tree containing all error-sensitive words, adding failure pointers to form an AC automaton, and traversing the electronic text to be proofread to quickly screen out error-sensitive word candidates using the AC automaton.
3. A fast proofreading method for error-sensitive word detection according to claim 2, characterized in that: The construction method of the error-sensitive word discrimination unit is as follows: Step S11, collect text data, and mark the text data to clarify the location of the error-sensitive words; Step S12, selecting long short-term memory network initialization to obtain a long short-term memory network initial model; Step S13, adding a fully connected layer to the initial model of the long short-term memory network, and realizing the binary classification task of error-sensitive words and non-error-sensitive words through the fully connected layer; Set training parameters, use the labeled data set to train the model, calculate the prediction results through forward propagation, update the model parameters through the back propagation algorithm to minimize the error between the prediction results and the true label, and output the trained deep learning model; Step S14: Use an independent test set to evaluate the trained deep learning model, calculate the accuracy, recall rate, and F1 score indicators; optimize the deep learning model according to the evaluation results, including adjusting the model structure, modifying training parameters, and adding regularization terms; Step S15: deploy the trained deep learning model to the incorrect word detection model, and work in conjunction with the incorrect word coarse screening unit; After the AC automaton screens out suspected sensitive words, the suspected sensitive words are input into the deep learning model for detailed judgment.
4. A fast proofreading method for error-sensitive word detection according to claim 1, characterized in that: The method for obtaining the proofreading time prediction model includes the following steps: Step S21, data preparation: collecting historical data of error-sensitive word detection, including actual proofreading time, content and characteristic parameters of electronic texts; Step S22, feature extraction and selection: using NLP technology to extract basic features and advanced features of the text, and using statistical methods or machine learning algorithms to screen features that have a significant impact on prediction; Step S23, model building and optimization: build a recurrent neural network, optimize hyperparameters by adjusting attention mechanism parameters and model architecture, and combining cross-validation and grid search; Step S24: Use the training set to perform cross-validation, evaluate the model performance through the loss function, and use the test set to verify the generalization ability of the model; Step S25: deploy the trained proofreading time prediction model to the actual application scenario to predict the proofreading time.
5. A fast proofreading method for error-sensitive word detection according to claim 1, characterized in that: The execution process of the parallel processing resource abnormality analysis instruction includes a parallel processing computing performance abnormality analysis module, and the parallel processing computing performance abnormality analysis module is used to obtain a parallel processing resource quality index BQI; the acquisition process of the parallel processing resource quality index BQI includes: The resource utilization rate is obtained by obtaining the ratio of the resources actually used by the computer system in unit time to the total system resources. The resource utilization rate includes CPU utilization, memory utilization, disk utilization, and network utilization. The resource utilization index U is obtained by weighted summing up the CPU, memory, disk, and network utilization rates. The throughput is obtained by obtaining the number of tasks completed in unit time. The response time is obtained by obtaining the time from task submission to completion. The parallel efficiency is obtained by obtaining the ratio of the performance of the parallel processing system to the hardware resource input. Through linear normalization processing, the value range of the resource utilization index U, throughput, response time, and parallel efficiency is made to be between 0 and 1. After matching the weight coefficients for the resource utilization index U, throughput, response time, and parallel efficiency, the parallel processing resource quality index BQI is obtained by weighted summing.
6. A fast proofreading method for error-sensitive word detection according to claim 1, characterized in that:Real-time monitoring is used to obtain the AC automaton quality index, deep learning model quality index MQI and parallel processing resource quality index BQI.
7. A fast proofreading system for error-sensitive word detection, characterized in that: include: A proofreading time prediction module is used to obtain the predicted proofreading time YT of the target detection object; A region division module is used to divide the target detection object into several intervals, and input them into the trained sensitive word detection model respectively; the sensitive word detection model includes a rough screening unit for sensitive words and a discriminating unit for sensitive words, wherein the rough screening unit for sensitive words refers to a rapid initial screening using an AC automaton; the discriminating unit for sensitive words refers to a fine judgment of suspected sensitive words using a deep learning model; The proofreading time consumption analysis module obtains the error-sensitive word information of the target detection object; obtains the actual proofreading time consumption and predicted proofreading time of each interval, and calculates the speed loss rate of each interval; the speed loss rate of each interval and the mean square error of the speed loss rate average are used to represent the parallel processing speed loss stability index; The error-sensitive word detection state discrimination module generates an error-sensitive word detection model abnormality analysis instruction when the average speed loss rate exceeds the preset value; when the parallel processing speed loss stability index is lower than the preset value, it indicates that the parallel processing is abnormal, and generates a parallel processing resource abnormality analysis instruction; The error-sensitive word detection model abnormality analysis module is used to execute the error-sensitive word detection model abnormality analysis instruction to obtain the AC automaton quality index and the deep learning model quality index. The error-sensitive word detection model abnormality analysis module includes an AC automaton performance abnormality analysis unit and a deep learning model abnormality analysis unit; The AC automaton quality index is obtained as follows: When it is detected that the average speed loss rate exceeds the preset value, all relevant log data and model outputs in the corresponding time period are collected; the efficiency bottleneck of the AC automaton in the matching process is analyzed. The efficiency bottleneck refers to the situation where the matching process of the AC automaton is significantly slowed down, and the number of times the efficiency bottleneck occurs is obtained; the matching accuracy, recall rate and average loss value of the AC automaton on the test set are obtained, which are recorded as Ac, Re and Ls respectively; after linear normalization of the number of times the efficiency bottleneck occurs and the matching accuracy, recall rate and average loss value on the test set, the formula is used Calculate the AC automaton quality index AQI, where ε represents the correction constant; The deep learning model quality index MQI is obtained as follows: Assume that the deep learning model performs m classifications of incorrect word categories, and j is used to represent the sequence number; obtain the number of categories of the deep learning model, the jth discriminant true label, and the jth discriminant prediction probability, which are recorded as C, and ; Through the formula Calculate the deep learning model quality index, where w j represents the category weight; A parallel processing resource anomaly analysis module is used to execute a parallel processing resource anomaly analysis instruction and obtain a parallel processing resource quality index BQI; The error-sensitive word proofreading speed abnormality assessment module monitors the AC automaton quality index, deep learning model quality index MQI and parallel processing resource quality index BQI in real time, and jointly analyzes the AC automaton quality index, deep learning model quality index MQI and parallel processing resource quality index BQI to obtain the error-sensitive word proofreading speed abnormality coefficient. When the error-sensitive word proofreading speed abnormality coefficient exceeds the preset value, an alert is issued to the user, indicating that the error-sensitive word proofreading system is abnormal.
