Text tampering detection model online training method and device, equipment and storage medium
By embedding the prediction model in the dual-branch review process system and using manual review results for labeling processing and gradient descent algorithm update parameters, the problem of low accuracy of the text tampering detection model is solved and the accuracy and efficiency of text tampering detection are improved.
Patent Information
- Application Number
- CN202410841634.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-01
AI Technical Summary
Due to insufficient training data, existing text tampering detection models have low model accuracy and cannot effectively detect text tampering, which affects the efficiency and accuracy of text document review in the financial industry.
A dual-branch review process system is adopted to embed the predictive model into the manual text tampering review process. Through labeling processing of manual review results and predictive model review results and a gradient descent algorithm, model parameters are updated in real time to improve model accuracy.
By updating model parameters in real time, the accuracy of the text tampering detection model is improved, which solves the problem of low model accuracy caused by insufficient training data and enhances the accuracy and efficiency of text tampering detection.
Smart Images

Figure CN118734071A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an online training method, device, equipment and storage medium for a text tampering detection model. Background Art
[0002] The financial industry often involves the review of a large number of contracts, reports, statements, and other text documents. The review of these documents is crucial to the operation of insurance companies and financial institutions. Due to the importance of information, the above text files need to be reviewed to prevent malicious tampering and fraud. At present, the review of such texts is usually done by manually checking with the naked eye whether PS tampering occurs or by using trained model software to verify the documents; among them, manual review will take a lot of time, and it is easy to have problems such as long review time, many review steps, and low review efficiency; when using trained model software to verify documents, because the training of model software usually divides a fixed data set, uses the divided training set to train the model, and then tests the model on the divided test set, this training method is easy to cause the model to have low precision and low accuracy due to insufficient training data. Summary of the invention
[0003] The present invention provides a method, device and computer-readable storage medium for online training of a text tampering detection model, the main purpose of which is to improve the accuracy of the text tampering detection model.
[0004] To achieve the above-mentioned purpose, the present invention provides an online training method for a text tampering detection model, comprising:
[0005] Obtaining a prediction model, and embedding the prediction model into a preset manual text tampering review process system to obtain a dual-branch review process system;
[0006] Obtain user review materials, and use the dual-branch review process system to review the user review materials to obtain manual review results and prediction model review results;
[0007] Labeling the manual review results to obtain label data;
[0008] The parameters of the prediction model are updated using the label data and the prediction model audit result to obtain a text tampering detection model.
[0009] Optionally, embedding the prediction model into a preset artificial text tampering review process system to obtain a dual-branch review process system includes:
[0010] Integrating the prediction model into the artificial text tampering review process system to obtain a prediction model plug-in;
[0011] The test model plug-in is loaded into the manual text tampering audit process system to obtain a dual-branch audit process system.
[0012] Optionally, the using the dual-branch review process system to review the user review materials to obtain manual review results and prediction model review results includes:
[0013] Using the manual review branch in the dual-branch review process system to review the user review materials and obtain a manual review result;
[0014] The user audit materials are audited using the tampering detector in the prediction model in the dual-branch audit process system to obtain a prediction model audit result.
[0015] Optionally, the utilizing the manual review branch in the dual-branch review process system to review the user review materials to obtain a manual review result includes:
[0016] Performing metadata analysis on the user review materials to obtain material information;
[0017] Cutting the user review materials to obtain material content;
[0018] Performing pixel analysis on the material content to obtain a material pixel image;
[0019] The manual review result of the tampering judgment on the material pixel image is obtained as the manual review result.
[0020] Optionally, the labeling of the manual review results to obtain label data includes:
[0021] Obtain a preset tag set, and convert the tag set into a data dictionary;
[0022] The audit result and the data dictionary are matched accordingly to obtain label data.
[0023] Optionally, the using the label data and the prediction model audit result to update the parameters of the prediction model to obtain a text tampering detection model includes:
[0024] Performing consistency comparison between the label data and the prediction model audit result to obtain a difference result;
[0025] The parameters of the prediction model are updated using a gradient descent algorithm according to the difference results to obtain a text tampering detection model.
[0026] Optionally, the updating of parameters of the prediction model by using a gradient descent algorithm according to the difference result to obtain a text tampering detection model includes:
[0027] Calculating a loss value according to the difference result and a preset loss function;
[0028] Determine the gradient of the model parameter with respect to the loss function according to the loss value;
[0029] The model update parameter is calculated according to the gradient using a preset calculation formula; wherein the calculation formula is:
[0030]
[0031] Among them, θ ′ represents the updated prediction model parameter, θ represents the prediction model parameter, α is a preset constant, represents the gradient with respect to the parameter vector θ;
[0032] The prediction model is updated according to the model update parameters to obtain a text tampering detection model.
[0033] In order to solve the above problems, the present invention also provides a method and device for online training of a text tampering detection model, the device comprising:
[0034] Dual-branch system module: used to obtain a prediction model, embed the prediction model into a preset manual text tampering review process system, and obtain a dual-branch review process system;
[0035] Material review module: used to obtain user review materials, review the user review materials using the dual-branch review process system, and obtain manual review results and prediction model review results;
[0036] Label processing module: used to label the manual review results to obtain label data;
[0037] Model training module: used to update the parameters of the prediction model using the label data and the prediction model audit results to obtain a text tampering detection model.
[0038] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0039] at least one processor; and,
[0040] a memory communicatively connected to the at least one processor; wherein,
[0041] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned text tampering detection model online training method.
[0042] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned online training method of the text tampering detection model.
[0043] The embodiment of the present invention integrates the prediction model into the artificial text tampering review process system to obtain a prediction model plug-in; loads the test model plug-in in the artificial text tampering review process system to obtain a dual-branch review process system, which can obtain training data in real time while ensuring the normal operation of the system to prevent low model accuracy due to insufficient training data; compares the label data with the prediction model review results for consistency, and uses a gradient descent algorithm to update the prediction model parameters according to the consistency comparison results to obtain a text tampering detection model, which can continuously update and adjust the parameters of the prediction model to improve the accuracy of the prediction model, thereby improving the accuracy of the obtained text tampering detection model. Therefore, the online training method, device, equipment and storage medium of the text tampering detection model proposed in the present invention can improve the accuracy of the text tampering detection model. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of a flow chart of an online training method for a text tampering detection model provided by an embodiment of the present invention;
[0045] Figure 2 A schematic diagram of a manual review process provided by an embodiment of the present invention;
[0046] Figure 3 A schematic diagram of a labeling process according to an embodiment of the present invention;
[0047] Figure 4 A functional module diagram of a text tampering detection model online training method device provided by an embodiment of the present invention;
[0048] Figure 5 A schematic diagram of the structure of an electronic device for implementing the online training method of the text tampering detection model provided by one embodiment of the present invention.
[0049] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0051] The embodiment of the present application provides an online training method for a text tampering detection model. The execution subject of the online training method for the text tampering detection model includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the online training method for the text tampering detection model can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0052] Reference Figure 1 FIG. 1 is a flow chart of an online training method for a text tampering detection model provided by an embodiment of the present invention. In this embodiment, the online training method for a text tampering detection model includes:
[0053] S1. Obtain a prediction model, and embed the prediction model into a preset manual text tampering review process system to obtain a dual-branch review process system.
[0054] In one application scenario of the present invention, by embedding the prediction model into a preset manual text tampering review process system, a dual-branch review process system can be obtained, wherein the dual branches refer to a manual review branch and a prediction model review branch. The manual review results are obtained by utilizing the manual review process in the dual-branch review process system, and the manual review results are converted into training data for the prediction model, thereby solving the problem of low accuracy of the review results of the prediction model due to insufficient training data.
[0055] In the embodiment of the present invention, the prediction model is embedded into a preset artificial text tampering review process system to obtain a dual-branch review process system, including:
[0056] Integrating the prediction model into the artificial text tampering review process system to obtain a prediction model plug-in;
[0057] The test model plug-in is loaded into the manual text tampering audit process system to obtain a dual-branch audit process system.
[0058] In detail, the prediction model refers to a model for detecting whether an image in a user material has been tampered with; in a dual-branch audit process system, the prediction model is used to perform tampering detection, obtain a prediction model audit result, and update the parameters of the prediction model itself according to the prediction model audit result to obtain a text tampering detection model, wherein the prediction model includes three parts: a feature extractor, a tampering detector, and a training algorithm, wherein the feature extractor is responsible for extracting the texture, color, and edge of the image; the tampering detector is responsible for detecting whether the image has been tampered with, and the training algorithm is used to train the parameters of the prediction model according to the consistency of the results obtained by comparing the manual audit results with the results obtained by the tampering detector.
[0059] In detail, the prediction model can be integrated into the artificial text tampering review process system by using a library encapsulation method or a plug-in integration method;
[0060] When the prediction model is integrated into the artificial text tampering review process system using the library encapsulation method, since the library encapsulation method directly packages the model and the method is simple, the efficiency of obtaining the prediction model plug-in is higher; when the prediction model is integrated into the artificial text tampering review process system using the plug-in integration method, since the plug-in integration method uses the prediction model as a plug-in and implements the model's functions through the plug-in mechanism, the function can be expanded while ensuring the integrity of the artificial text tampering review process system, so the reliability of the prediction model plug-in is higher.
[0061] In an embodiment of the present invention, the prediction model is embedded into a preset manual text tampering review process system to obtain a dual-branch review process system, wherein the manual review results of the manual review branch in the dual-branch review process system can be converted into training data for the prediction model, and then the training data for the prediction model can be continuously obtained, thereby solving the problem of low prediction model accuracy caused by insufficient training data and improving the accuracy of the prediction model review results.
[0062] S2. Obtain user review materials, and use the dual-branch review process system to review the user review materials to obtain manual review results and prediction model review results.
[0063] In one application scenario of the present invention, the dual-branch review process system is used to review the user review materials to obtain manual review results and predictive model review results, so as to facilitate the subsequent conversion of the manual review results into training data to obtain training data for the predictive model, and then compare the predictive model review results with the training data for consistency, and train the predictive model according to the comparison results to improve the accuracy of the predictive model.
[0064] In detail, the manual review result and the prediction model review result refer to qualified materials and unqualified materials. If the manual review result is that the materials are qualified, the dual-branch review process system will control to release the loan. If the manual review result is that the materials are unqualified, the dual-branch review process system will return to the user to upload materials step.
[0065] In the embodiment of the present invention, the dual-branch review process system is used to review the user review materials to obtain manual review results and prediction model review results, including:
[0066] Using the manual review branch in the dual-branch review process system to review the user review materials and obtain a manual review result;
[0067] The user audit materials are audited using the tampering detector in the prediction model in the dual-branch audit process system to obtain a prediction model audit result.
[0068] In the example of the present invention, the manual review branch in the dual-branch review process system is used to review the user review materials to obtain the manual review results, including:
[0069] S21, performing metadata analysis on the user review material to obtain material information;
[0070] S22, cutting and processing the user review materials to obtain the material content;
[0071] S23, performing pixel analysis on the material content to obtain a material pixel image;
[0072] S24. Obtain the manual review result of the tampering judgment on the material pixel image as the manual review result.
[0073] In detail, the metadata refers to data recorded in the material and the image itself, such as the shooting time data of the image, the modification time data, the watermark data in the image, or the modification time data of the document.
[0074] Specifically, a metadata viewer or a preset code may be used to perform metadata analysis on the user review material;
[0075] When the metadata viewer is used to perform metadata analysis on the user review material, since the metadata viewer can directly read and display the metadata of the material, and then obtain the basic information of the material, the efficiency of obtaining the material information is higher;
[0076] When the preset code is used to perform metadata analysis on the user review material, since the preset code can also read data such as hidden watermarks in the document, the reliability of the obtained material information will be higher.
[0077] In detail, a texture analysis method or a classifier may be used to perform pixel analysis on the material content;
[0078] When the texture analysis method is used to perform pixel analysis on the material content, the texture analysis method can directly extract the texture in the material, so that in subsequent manual review, it can be determined whether the image in the material has been tampered with based on the texture, so that the reliability of the obtained material pixel image is higher;
[0079] When a classifier is used to perform pixel analysis on the material content, since the classifier can classify the pixels of the images in the material content, subsequent manual review can determine the locations of pixel discontinuities based on the pixel categories, and then determine whether the images in the material have been tampered with, thereby obtaining a more accurate pixel image of the material.
[0080] In an embodiment of the present invention, the dual-branch audit process system is used to audit the user audit materials, and the parameters of the prediction model can be updated according to the manual audit results and the prediction model audit results, thereby continuously optimizing the model to make it more adaptable to actual audit needs and provide more reliable and accurate audit results.
[0081] S3. Label the manual review results to obtain label data.
[0082] In an application scenario of the present invention, by labeling the manual review results, the obtained labeled data can be used as the training data for the prediction model, which simplifies the steps of converting the manual review results into training data, thereby improving the training efficiency of the model.
[0083] In the embodiment of the present invention, the step of labeling the manual review result to obtain label data includes:
[0084] S31, obtaining a preset tag set, and converting the tag set into a data dictionary;
[0085] S32: Match the audit result with the data dictionary to obtain label data.
[0086] Specifically, the label set may be converted into a data dictionary using a library function method or an enumeration method;
[0087] When the library function method is used to convert the label set into a data dictionary, the efficiency of obtaining the data dictionary is higher because the library function method is simple and runs fast;
[0088] When the enumeration method is used to convert the tag set into a data dictionary, since the enumeration method defines the tags in the tag set as enumeration types one by one, the accuracy of the obtained data dictionary is higher.
[0089] In detail, the corresponding matching can be performed using regular expression or preset string matching method;
[0090] When using the regular method for corresponding matching, since the regular method performs corresponding matching based on the set semantic rules, the obtained label data is more efficient;
[0091] When the preset string matching method is used for corresponding matching, since the string matching method can be specifically set according to the specific label, the reliability of the obtained label data is higher.
[0092] In the embodiment of the present invention, the manual review results are labeled to obtain labeled data, which can transform the manual processing into training data, speed up the efficiency of training data conversion, and facilitate subsequent model training.
[0093] S4. Utilize the label data and the prediction model audit result to update the parameters of the prediction model to obtain a text tampering detection model.
[0094] In one of the application scenarios of the embodiments of the present invention, by using the label data and the prediction model audit results to update the parameters of the prediction model, the prediction model can be continuously optimized to obtain a text tampering detection model with higher model accuracy.
[0095] In detail, the gradient descent method or the adaptive learning rate method can be used to update the model parameters;
[0096] When the gradient descent method is used to update the model parameters, the gradient descent method calculates the gradient of the loss function with respect to the parameters and updates the parameters in the opposite direction of the gradient, which has a fast calculation efficiency. Therefore, the model parameters are obtained more efficiently.
[0097] When the adaptive learning rate method is used to update the model parameters, the learning rate is adaptively adjusted according to the gradient information of the current parameters, so the obtained model parameters are more accurate.
[0098] In the example of the present invention, the method of updating the parameters of the prediction model by using the label data and the prediction model audit result to obtain a text tampering detection model includes:
[0099] Performing consistency comparison between the label data and the prediction model audit result to obtain a difference result;
[0100] The parameters of the prediction model are updated using a gradient descent algorithm according to the difference results to obtain a text tampering detection model.
[0101] In the example of the present invention, the prediction model is updated with a gradient descent algorithm according to the difference result to obtain a text tampering detection model, including:
[0102] Calculating a loss value according to the difference result and a preset loss function;
[0103] Determine the gradient of the model parameter with respect to the loss function according to the loss value;
[0104] Calculating the model update parameters according to the gradient using a preset calculation formula;
[0105] The prediction model is updated according to the model update parameters to obtain a text tampering detection model.
[0106] In detail, the calculation formula is:
[0107]
[0108] Among them, θ ′ represents the updated prediction model parameter, θ represents the prediction model parameter, α is a preset constant, represents the gradient with respect to the parameter vector θ.
[0109] In the embodiment of the present invention, the prediction model parameters are updated by using the label data and the prediction model audit results, which can continuously improve the judgment accuracy of the model, and then complete the model training to obtain the text tampering prediction model.
[0110] like Figure 4 , is a functional module diagram of an online training method device for a text tampering detection model provided by an embodiment of the present invention.
[0111] The text tampering detection model online training method device 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the text tampering detection model online training method device 100 can include a dual-branch system module 101, a material review module 102, a label processing module 103 and a model training module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0112] In this embodiment, the functions of each module / unit are as follows:
[0113] The dual-branch system module 101 is used to obtain a prediction model, embed the prediction model into a preset manual text tampering review process system, and obtain a dual-branch review process system;
[0114] The material review module 102 is used to obtain user review materials, review the user review materials using the dual-branch review process system, and obtain manual review results and prediction model review results;
[0115] The label processing module 103 is used to label the manual review results to obtain label data;
[0116] The model training module 104 is used to update the parameters of the prediction model using the label data and the prediction model audit result to obtain a text tampering detection model.
[0117] In detail, each module described in the online training method and device 100 of the text tampering detection model in the embodiment of the present invention is used in the same manner as described above. Figures 1 to 3 The online training method of the text tampering detection model described in the text tampering detection method is the same technical means and can produce the same technical effects, so I will not go into details here.
[0118] like Figure 5 , is a schematic diagram of the structure of an electronic device for implementing an online training method for a text tampering detection model provided by an embodiment of the present invention.
[0119] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a product recommendation program based on user portraits.
[0120] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing a product recommendation program based on user portraits, etc.), and calls the data stored in the memory 11 to execute various functions of the electronic device and process data.
[0121] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of a product recommendation program based on a user portrait, but can also be used to temporarily store data that has been output or is to be output.
[0122] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0123] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0124] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0125] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0126] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0127] The product recommendation program based on user portrait stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0128] Obtaining a prediction model, and embedding the prediction model into a preset manual text tampering review process system to obtain a dual-branch review process system;
[0129] Obtain user review materials, and use the dual-branch review process system to review the user review materials to obtain manual review results and prediction model review results;
[0130] Labeling the manual review results to obtain label data;
[0131] The parameters of the prediction model are updated using the label data and the prediction model audit result to obtain a text tampering detection model.
[0132] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0133] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0134] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0135] Obtaining a prediction model, and embedding the prediction model into a preset manual text tampering review process system to obtain a dual-branch review process system;
[0136] Obtain user review materials, and use the dual-branch review process system to review the user review materials to obtain manual review results and prediction model review results;
[0137] Labeling the manual review results to obtain label data;
[0138] The parameters of the prediction model are updated using the label data and the prediction model audit result to obtain a text tampering detection model.
[0139] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0140] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0141] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0142] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0143] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0144] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for online training of a text tampering detection model, characterized in that: The method comprises: Obtaining a prediction model, and embedding the prediction model into a preset manual text tampering review process system to obtain a dual-branch review process system; Obtain user review materials, and use the dual-branch review process system to review the user review materials to obtain manual review results and prediction model review results; Labeling the manual review results to obtain label data; The parameters of the prediction model are updated using the label data and the prediction model audit result to obtain a text tampering detection model.
2. The online training method for a text tampering detection model according to claim 1, characterized in that: The prediction model is embedded into a preset artificial text tampering review process system to obtain a dual-branch review process system, including: Integrating the prediction model into the artificial text tampering review process system to obtain a prediction model plug-in; The test model plug-in is loaded into the manual text tampering audit process system to obtain a dual-branch audit process system.
3. The online training method for a text tampering detection model according to claim 1, characterized in that: The dual-branch review process system is used to review the user review materials to obtain manual review results and prediction model review results, including: Using the manual review branch in the dual-branch review process system to review the user review materials and obtain a manual review result; The user audit materials are audited using the tampering detector in the prediction model in the dual-branch audit process system to obtain a prediction model audit result.
4. The online training method for a text tampering detection model according to claim 3, characterized in that: The method of reviewing the user review materials by using the manual review branch in the dual-branch review process system to obtain the manual review results includes: Performing metadata analysis on the user review materials to obtain material information; Cutting the user review materials to obtain material content; Performing pixel analysis on the material content to obtain a material pixel image; The manual review result of the tampering judgment on the material pixel image is obtained as the manual review result.
5. The online training method for a text tampering detection model according to claim 1, characterized in that: The labeling process of the manual review result to obtain label data includes: Obtain a preset tag set, and convert the tag set into a data dictionary; The audit result and the data dictionary are matched accordingly to obtain label data.
6. The online training method for a text tampering detection model according to any one of claims 1 to 5, characterized in that: The method of updating the parameters of the prediction model by using the label data and the prediction model audit result to obtain a text tampering detection model includes: Performing consistency comparison between the label data and the prediction model audit result to obtain a difference result; The prediction model is updated with parameters using a gradient descent algorithm according to the difference results to obtain a text tampering detection model.
7. The online training method for a text tampering detection model according to claim 6, characterized in that: The method of updating the parameters of the prediction model by using a gradient descent algorithm according to the difference result to obtain a text tampering detection model includes: Calculating a loss value according to the difference result and a preset loss function; Determine the gradient of the model parameter with respect to the loss function according to the loss value; The model update parameter is calculated according to the gradient using a preset calculation formula; wherein the calculation formula is: Among them, θ ′ represents the updated prediction model parameter, θ represents the prediction model parameter, α is a preset constant, represents the gradient with respect to the parameter vector θ; The prediction model is updated according to the model update parameters to obtain a text tampering detection model.
8. A method and device for online training of a text tampering detection model, characterized in that: The device comprises: Dual-branch system module: used to obtain a prediction model, embed the prediction model into a preset manual text tampering review process system, and obtain a dual-branch review process system; Material review module: used to obtain user review materials, review the user review materials using the dual-branch review process system, and obtain manual review results and prediction model review results; Label processing module: used to label the manual review results to obtain label data; Model training module: used to update the parameters of the prediction model using the label data and the prediction model audit results to obtain a text tampering detection model.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the online training method for the text tampering detection model as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the online training method for a text tampering detection model as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Updating training method, device and device for text classification model
CN109241288A
Image tampering recognition model training method and device and image tampering recognition method and device
CN111368342A
Supply chain financial risk control method and system based on combination of automatic and manual auditing
CN114549014A
Content auditing model training method and device, equipment and storage medium
CN117312562A
