A method and apparatus for detecting a violation, an electronic device, and a storage medium
Through the method of multi-atom engine collection and weight information calculation, the problem of missed reports caused by the single existing detection method is solved, and higher detection accuracy and violation information detection in complex scenarios are achieved.
Patent Information
- Application Number
- CN202211266565.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-17
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2042-10-17
AI Technical Summary
The existing detection methods have a single detection type, resulting in significant underreporting and poor detection accuracy.
A set of multiple atomic engines is used to detect the object to be detected, obtain different types of violation scores, and calculate the final violation score and violation label through weight information, and determine the target score in combination with the max-heap sorting algorithm.
The accuracy of detecting violation information is improved, and effective violation detection can be performed in complex scenarios.
Smart Images

Figure CN115641021B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a violation detection method, device, electronic device and storage medium. Background Art
[0002] In existing technologies, when detecting violations, a detection model unique to a specific business is typically used to input the original target object into the detection model to obtain the detection result for the current business. For example, a verbal abuse detection model tests the original target and ultimately determines whether verbal abuse is involved.
[0003] The existing detection methods have relatively simple detection types and the underreporting situation is quite obvious. Summary of the Invention
[0004] The object of the present invention is to provide a violation detection method, device, electronic device and storage medium, which can improve detection accuracy.
[0005] In order to achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows:
[0006] In a first aspect, an embodiment of the present application provides a violation detection method, the method comprising:
[0007] Get the object to be detected;
[0008] Acquire different types of atomic engine sets, where each of the different types of atomic engine sets contains at least one atomic engine;
[0009] Based on each atomic engine in each type of atomic engine set, the object to be detected is detected to obtain at least one violation score of the object to be detected, wherein the violation score corresponds to the violation type, the violation label, and the violation location;
[0010] Obtaining a maximum violation score from each violation score as a first detection score of each atomic engine for detecting the object to be detected;
[0011] Obtaining a maximum first detection score from each of the first detection scores as a second detection score for detecting the object to be detected by sets of atomic engines of different types;
[0012] Obtaining the maximum second detection score from each second detection score as the target score of the object to be detected;
[0013] The violation type, violation label, and violation location corresponding to the target score are used as the violation information of the object to be detected.
[0014] In an optional embodiment, the step of detecting the object to be detected based on each atomic engine in each type of atomic engine set to obtain at least one violation score of the object to be detected includes:
[0015] Based on each atomic engine in each type of atomic engine set, detecting the object to be detected, and obtaining at least one set of detection information of the object to be detected;
[0016] Determining first weight information of the atomic engine;
[0017] Based on each group of detection information and the first weight information of the atomic engine, a violation score corresponding to each group of detection information is determined as the violation score of the object to be detected.
[0018] In an optional embodiment, the step of determining, based on each group of detection information and the weight of the atomic engine, a violation score corresponding to each group of detection information as the violation score of the object to be detected includes:
[0019] Determining second weight information of the violation label in each set of detection information, wherein the detection information includes the violation label, the violation location, and the first violation score;
[0020] For each set of detection information, a violation score corresponding to the set of detection information is determined based on the first weight information, the second weight information, and the first violation score, as the violation score of the object to be detected.
[0021] In an optional embodiment, the step of determining, for each set of detection information, based on the first weight information, the second weight information, and the first violation score, a violation score corresponding to the set of detection information as the violation score of the object to be detected includes:
[0022] For each set of detection information, a product of the first weight information, the second weight information, and the first violation score is calculated as the violation score of the object to be detected.
[0023] In an optional embodiment, the step of obtaining the maximum second detection score from the second detection scores as the target score of the object to be detected includes:
[0024] When the maximum second detection scores include at least two, determining the priority of the atomic engine set corresponding to each maximum second detection score;
[0025] The maximum second detection score corresponding to the highest priority is obtained as the target score of the object to be detected.
[0026] In an optional embodiment, the method further comprises:
[0027] Determining the service of the object to be detected;
[0028] The step of obtaining a set of atomic engines of different types includes:
[0029] A set of atomic engines of different types corresponding to the business is determined.
[0030] In a second aspect, an embodiment of the present application provides a violation detection device, the device comprising: an acquisition module, a detection module, and a determination module;
[0031] The acquisition module is used to acquire the object to be detected;
[0032] Acquire different types of atomic engine sets, where each of the different types of atomic engine sets contains at least one atomic engine;
[0033] The detection module is configured to detect the object to be detected based on each atomic engine in each type of atomic engine set, and obtain at least one violation score of the object to be detected, wherein the violation score corresponds to the violation type, the violation label, and the violation location;
[0034] The determining module is configured to obtain a maximum violation score from the violation scores as a first detection score of each atomic engine for detecting the object to be detected;
[0035] Obtaining a maximum first detection score from each of the first detection scores as a second detection score for detecting the object to be detected by sets of atomic engines of different types;
[0036] Obtaining the maximum second detection score from each second detection score as the target score of the object to be detected;
[0037] The violation type, violation label, and violation location corresponding to the target score are used as the violation information of the object to be detected.
[0038] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the violation detection method when executing the computer program.
[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the violation detection method when executed by a processor.
[0040] This application has the following beneficial effects:
[0041] This application obtains the object to be detected, obtains different types of atomic engine sets, and detects the object to be detected based on each atomic engine in the different types of atomic engine sets. It can detect the violation information of the object to be detected in different dimensions and obtain at least one violation score of the object to be detected. Each atomic engine will detect the violation scene to be detected under this type, obtain the violation scores of different scenes under this type, and obtain the maximum violation score from each violation score of different scenes as the first detection score of the atomic engine detecting the object to be detected. Since different types of atomic engine sets contain multiple atomic engines, it is necessary to determine the score obtained by the final detection under this type, that is, from each first detection score, obtain the maximum first detection score as the second detection score of the different types of atomic engine sets detecting the object to be detected. From each second detection score, obtain the maximum second detection score as the target score of the object to be detected, and use the violation label and violation position corresponding to the target score as the violation information of the object to be detected. Based on this application, it is possible to detect violations in complex scenes and improve the accuracy of detecting violation information. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying any creative work.
[0043] Figure 1 A block diagram of an electronic device provided by an embodiment of the present invention;
[0044] Figure 2 One of the step flow charts of a violation detection method provided by an embodiment of the present invention;
[0045] Figure 3 This is a second flow chart of a violation detection method provided by an embodiment of the present invention;
[0046] Figure 4 This is a flowchart of a violation detection method according to an embodiment of the present invention;
[0047] Figure 5 This is a structural block diagram of a violation detection device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0049] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention as claimed, but rather merely represents selected embodiments of the present invention. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present invention without creative effort shall fall within the scope of protection of the present invention.
[0050] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.
[0051] In the description of the present invention, it should be noted that if the terms "upper", "lower", "inside", "outside", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the accompanying drawings, or is the orientation or position relationship in which the product of the invention is usually placed when in use. It is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be understood as a limitation on the present invention.
[0052] In addition, the terms "first", "second", etc., if used, are merely used to distinguish and describe, and should not be understood as indicating or implying relative importance.
[0053] It should also be noted that, in the description of this application, unless otherwise expressly specified or limited, the terms "disposed," "installed," "connected," and "connected" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium; and they can refer to internal connections between two components. Those skilled in the art will understand the specific meanings of the above terms in this application based on the specific circumstances.
[0054] After extensive research, the inventors discovered that in existing technologies, when detecting whether a target violates a rule, the original target object is typically input into a detection model unique to a specific business to obtain the detection result for the current business. For example, a verbal abuse detection model tests the original target and ultimately determines whether verbal abuse is involved.
[0055] The existing detection methods have relatively simple detection types, obvious underreporting, and poor detection accuracy.
[0056] In view of the discovery of the above problems, the present embodiment provides a violation detection method, device, electronic device and storage medium, which can detect violation information of the object to be detected in different dimensions and obtain at least one violation score of the object to be detected. Each atomic engine will detect the violation scene to be detected under this type and obtain the violation scores of different scenes under this type. From the violation scores of different scenes, the maximum violation score is obtained as the first detection score of the atomic engine detecting the object to be detected. Since the different types of atomic engine sets contain multiple atomic engines, it is necessary to determine the score obtained by the final detection under this type, that is, from each first detection score, the maximum first detection score is obtained as the second detection score of the different types of atomic engine sets detecting the object to be detected. From each second detection score, the maximum second detection score is obtained as the target score of the object to be detected, and the violation label and violation position corresponding to the target score are used as the violation information of the object to be detected. Based on the fact that this application can detect violations in complex scenes and improve the accuracy of detecting violation information, the scheme provided by this embodiment is elaborated in detail below.
[0057] This embodiment provides an electronic device capable of detecting violations. In one possible implementation, the electronic device may be a user terminal, such as, but not limited to, a server, a smartphone, a personal computer (PC), a tablet computer, a personal digital assistant (PDA), a mobile internet device (MID), etc.
[0058] Please refer to Figure 1 , Figure 1 The electronic device 100 provided in the embodiment of the present application is shown in FIG. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0059] The electronic device 100 includes a violation detection device 110 , a memory 120 , and a processor 130 .
[0060] The memory 120 and the processor 130 are electrically connected to each other directly or indirectly to enable data transmission or interaction. For example, these components can be electrically connected to each other via one or more communication buses or signal lines. The violation detection device 110 includes at least one software function module that can be stored in the memory 120 in the form of software or firmware or embedded in the operating system (OS) of the electronic device 100. The processor 130 is used to execute the executable modules stored in the memory 120, such as the software function modules and computer programs included in the violation detection device 110.
[0061] The memory 120 may be, but is not limited to, a random access memory (RAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc. The memory 120 is used to store a program, and the processor 130 executes the program after receiving an execution instruction.
[0062] Please refer to Figure 2 , Figure 2 For application Figure 1 The flowchart of a violation detection method of the electronic device 100 is shown in FIG. , and the method including each step is described in detail below.
[0063] Step 201: Acquire an object to be detected.
[0064] Step 202: Acquire a set of atomic engines of different types.
[0065] Among them, the different types of atomic engine sets include at least one atomic engine.
[0066] Step 203: Based on each atomic engine in each type of atomic engine set, the object to be detected is detected to obtain at least one violation score of the object to be detected.
[0067] Among them, the violation score corresponds to the violation type, violation label and violation location.
[0068] Step 204: Obtain the maximum violation score from the violation scores as the first detection score for each atomic engine to detect the object to be detected.
[0069] Step 205: Obtain the maximum first detection score from the first detection scores as the second detection score for detecting the object to be detected by the different types of atomic engine sets.
[0070] Step 206: Obtain the maximum second detection score from each second detection score as the target score of the object to be detected.
[0071] Step 207: The violation type, violation label, and violation location corresponding to the target score are used as the violation information of the object to be detected.
[0072] It should be noted that there are many types of objects to be detected. In one example, the object to be detected may be text information. In another example, the object to be detected may be image information. In another example, the object to be detected may be a combination of image and text, or the object to be detected may be audio information, video information, etc. The embodiments of the present application do not impose specific restrictions on this.
[0073] Different types of atomic engine sets may include atomic engine sets corresponding to political types, atomic engine sets corresponding to abusive types, atomic engine sets corresponding to indecent types, and the like.
[0074] In one example, different objects to be detected correspond to different businesses. For example, the objects to be detected may correspond to advertising business, novel business, and image and video business. The different types of atomic engine sets corresponding to the advertising business may include an atomic engine set of indecent type and an atomic engine set of political type. The different types of atomic engine sets corresponding to the novel business may include an atomic engine set of insulting type and an atomic engine set of political type. The image and video business may correspond to an atomic engine set of indecent type, an atomic engine set of political type, and an atomic engine set of advertising type. Based on the business of the object to be detected, the corresponding different types of atomic engine sets are determined.
[0075] Each set of different atomic engines includes at least one atomic engine. Atomic engines are the most granular analysis engines, capable of providing reliable detection opinions on a specific aspect. For example, a political atomic engine is used to locate the position of a target in an image, distinguish whether the detected object is politically related, determine the type of political violation, and assign a maximum violation score for that type of violation.
[0076] In one example, the different types of atomic engine sets include a type A atomic engine set and a type B atomic engine set, where the type A atomic engine set includes a first atomic engine and the type B atomic engine set includes a second atomic engine.
[0077] The first atomic engine detects the object to be detected and obtains a first violation score and a second violation score. The second atomic engine detects the object to be detected and obtains a third violation score and a fourth violation score. The first violation score and the second violation score correspond to a first violation label and a second violation label, respectively, and the first violation label and the second violation label belong to type A. For example, when type A is indecent, the first violation label can be characterized as a first indecent scene, and the second violation label can be characterized as a second indecent scene.
[0078] From the first violation score and the second violation score, determine the maximum violation score, and use the maximum violation score as the final detection result of the first atomic engine for detecting the object to be detected, that is, the first atomic engine outputs the first detection score. From the third violation score and the fourth violation score, obtain the maximum violation score as the final detection result of the second atomic engine for detecting the object to be detected, that is, the second atomic engine outputs the first detection score.
[0079] When the type A atomic engine set includes multiple first atomic engines, the maximum first detection score is obtained from the first detection scores output by the multiple first atomic engines and used as the second detection score of the atomic engine of type A. When both the type A atomic engine set and the type B atomic engine set include one atomic engine, the first detection score output by the atomic engine of that type is used as the second detection score of the atomic engine set of that type for detecting the object to be detected.
[0080] Finally, the maximum first detection score is obtained from the first detection scores output by the second atomic engine as the target score of the object to be detected, and the violation type, violation label and violation position corresponding to the target score are used as the violation information of the object to be detected.
[0081] It should be noted that the highest score returned by each atomic engine is taken as the first detection score. The highest score in each category is taken as the target score. Each first detection score is placed in a big heap, and the first data is taken from the top heap, which is the largest first detection score, i.e., the second detection score. Each second detection score is placed in a big heap, and the first data is taken from the top heap, which is the largest second detection score, i.e., the target score. The big heap sorting algorithm formula can be: arr[i]>=arr[2i+1]; arr[i]>=2i+2.
[0082] This application obtains the object to be detected, obtains different types of atomic engine sets, and detects the object to be detected based on each atomic engine in the different types of atomic engine sets. It can detect the violation information of the object to be detected in different dimensions and obtain at least one violation score of the object to be detected. Each atomic engine will detect the violation scene to be detected under this type, obtain the violation scores of different scenes under this type, and obtain the maximum violation score from each violation score of different scenes as the first detection score of the atomic engine detecting the object to be detected. Since different types of atomic engine sets contain multiple atomic engines, it is necessary to determine the score obtained by the final detection under this type, that is, from each first detection score, obtain the maximum first detection score as the second detection score of the different types of atomic engine sets detecting the object to be detected. From each second detection score, obtain the maximum second detection score as the target score of the object to be detected, and use the violation label and violation position corresponding to the target score as the violation information of the object to be detected. Based on this application, it is possible to detect violations in complex scenes and improve the accuracy of detecting violation information.
[0083] There are many ways to detect each atomic engine and obtain at least one violation score of the object to be detected. In one example, Figure 3 As shown, a flowchart of a violation detection method is provided, which specifically includes the following steps:
[0084] Step 203 - 1 : Based on each atomic engine in each type of atomic engine set, detect the object to be detected to obtain at least one set of detection information of the object to be detected.
[0085] Step 203 - 2 : Determine the first weight information of the atomic engine.
[0086] Step 203 - 3 : Based on each set of detection information and the first weight information of the atomic engine, determine the violation score corresponding to each set of detection information as the violation score of the object to be detected.
[0087] Determine second weight information for the violation labels in each set of detection information. For each set of detection information, determine a violation score corresponding to the set of detection information based on the first weight information, the second weight information, and the first violation score, as the violation score for the object to be detected. For each set of detection information, calculate the product of the first weight information, the second weight information, and the first violation score as the violation score for the object to be detected.
[0088] It should be noted that the detection information includes the violation label, violation location, and first violation score.
[0089] For example, when the first atomic engine in the A-type atomic engine set detects the object to be detected, a first set of detection information can be obtained, including violation label 1, violation in the middle position of the object to be detected, and a first violation score of 90 points; and a second set of detection information can be obtained, including violation label 2, violation in the upper left position of the object to be detected, and a first violation score of 70 points.
[0090] The first weight information of the first atomic engine represents the training intensity of the atomic engine. When the training intensity of the atomic engine is greater, the first weight information of the first atomic engine is greater. When the training intensity of the atomic engine is smaller, the first weight information of the first atomic engine is smaller. The first weight information of the atomic engine is pre-set information and is set based on the training intensity of the atomic engine.
[0091] Second weight information for violation label 1 and violation label 2 is determined separately. The second weight information for the violation label is pre-set. When sensitive detection of violation label 1 is required, the second weight information for violation label 1 is set to be larger. When sensitive detection of violation label 1 is not required, the second weight information for violation label 1 is set to be smaller.
[0092] For example, the first weight information of the first atomic engine is 0.9, the second weight information of the violation label 1 in the first group of detection information is 0.9, and the first violation score is 90 points, and the second weight information of the violation label 2 in the second group of detection information is 0.5, and the first violation score is 70 points.
[0093] The violation score corresponding to the first set of detection information is: 0.9*0.9*90=72.9. The violation score corresponding to the second set of detection information is: 0.5*0.9*70=31.5.
[0094] When the maximum second detection score contains at least two, how to determine the target score of the object to be detected, such as Figure 4 As shown, a flowchart of a violation detection method is provided, which specifically includes the following steps:
[0095] Step 206 - 1 : When there are at least two maximum second detection scores, determine the priority of the atomic engine set corresponding to each maximum second detection score.
[0096] Step 206 - 2 : Obtain the maximum second detection score corresponding to the highest priority as the target score of the object to be detected.
[0097] Exemplarily, when the second detection scores output by the atomic engine set of type A and the atomic engine set of type B for the object to be detected are 90 points and 90 points respectively, and the 90 points output by the atomic engine set of type A corresponds to type A violation, violation label 3 and the first violation position, and the 90 points output by the atomic engine set of type B corresponds to type B violation, violation label 4 and the second violation position, the priority of the atomic engine set of type A and the atomic engine set of type B is determined. When the priority of the atomic engine set of type A is higher than the priority of the atomic engine set of type B, the 90 points output by the atomic engine set of type A is determined as the target score of the object to be detected, and the type A violation, violation label 3 and the first violation position corresponding to the target score are obtained as the violation information of the object to be detected.
[0098] Please refer to Figure 5 The present application also provides an embodiment of a method for Figure 1 The violation detection device 110 of the electronic device 100 includes:
[0099] Acquisition module 111, detection module 112 and determination module 113;
[0100] The acquisition module 111 is used to acquire the object to be detected;
[0101] Acquire different types of atomic engine sets, where each of the different types of atomic engine sets contains at least one atomic engine;
[0102] The detection module 112 is configured to detect the object to be detected based on each atomic engine in each type of atomic engine set, and obtain at least one violation score of the object to be detected, wherein the violation score corresponds to the violation type, the violation label, and the violation location;
[0103] The determining module 113 is configured to obtain a maximum violation score from the violation scores as a first detection score of each atomic engine for detecting the object to be detected;
[0104] Obtaining a maximum first detection score from each of the first detection scores as a second detection score for detecting the object to be detected by sets of atomic engines of different types;
[0105] Obtaining the maximum second detection score from each second detection score as the target score of the object to be detected;
[0106] The violation type, violation label, and violation location corresponding to the target score are used as the violation information of the object to be detected.
[0107] Preferably, the detection module 112 is further configured to:
[0108] Based on each atomic engine in each type of atomic engine set, detecting the object to be detected, and obtaining at least one set of detection information of the object to be detected;
[0109] Determining first weight information of the atomic engine;
[0110] Based on the detection information of each group and the weight information of the atomic engine, a violation score corresponding to each group of detection information is determined as the violation score of the object to be detected.
[0111] The present application further provides an electronic device 100, which includes a processor 130 and a memory 120. The memory 120 stores computer-executable instructions, which, when executed by the processor 130, implement the violation detection method.
[0112] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by the processor 130, the violation detection method is implemented.
[0113] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.
[0114] In addition, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part. If the function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0115] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0116] The above descriptions are merely examples of various embodiments of the present application, but the scope of protection of the present application is not limited thereto. Any modifications or substitutions that can be readily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included within the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A violation detection method, characterized in that: The method comprises: Get the object to be detected; Acquire different types of atomic engine sets, where each of the different types of atomic engine sets contains at least one atomic engine; Based on each atomic engine in each type of atomic engine set, the object to be detected is detected to obtain at least one violation score of the object to be detected, wherein the violation score corresponds to the violation type, the violation label, and the violation location; Obtaining a maximum violation score from each violation score as a first detection score of each atomic engine for detecting the object to be detected; Obtaining a maximum first detection score from each of the first detection scores as a second detection score for detecting the object to be detected by sets of atomic engines of different types; Obtaining the maximum second detection score from each second detection score as the target score of the object to be detected; The step of using the violation type, violation label, and violation location corresponding to the target score as the violation information of the object to be detected; and detecting the object to be detected based on each atomic engine in the set of atomic engines of each type to obtain at least one violation score of the object to be detected includes: Based on each atomic engine in each type of atomic engine set, detecting the object to be detected, and obtaining at least one set of detection information of the object to be detected; Determining first weight information of the atomic engine; Determining, based on each group of detection information and first weight information of the atomic engine, a violation score corresponding to each group of detection information as the violation score of the object to be detected; the step of determining, based on each group of detection information and the weight of the atomic engine, a violation score corresponding to each group of detection information as the violation score of the object to be detected, includes: Determining second weight information of the violation label in each set of detection information, wherein the detection information includes the violation label, the violation location, and the first violation score; For each set of detection information, a violation score corresponding to the set of detection information is determined based on the first weight information, the second weight information, and the first violation score, as the violation score of the object to be detected.
2. The method according to claim 1, characterized in that The step of determining, for each set of detection information, a violation score corresponding to the set of detection information based on the first weight information, the second weight information, and the first violation score, as the violation score of the object to be detected, includes: For each set of detection information, a product of the first weight information, the second weight information, and the first violation score is calculated as the violation score of the object to be detected.
3. The method according to claim 1, characterized in that The step of obtaining the maximum second detection score from the second detection scores as the target score of the object to be detected includes: When the maximum second detection scores include at least two, determining the priority of the atomic engine set corresponding to each maximum second detection score; The maximum second detection score corresponding to the highest priority is obtained as the target score of the object to be detected.
4. The method according to claim 1, wherein The method further comprises: Determining the service of the object to be detected; The step of obtaining a set of atomic engines of different types includes: A set of atomic engines of different types corresponding to the business is determined.
5. A violation detection device, characterized in that: The device includes: an acquisition module, a detection module and a determination module; The acquisition module is used to acquire the object to be detected; Acquire different types of atomic engine sets, where each of the different types of atomic engine sets contains at least one atomic engine; The detection module is configured to detect the object to be detected based on each atomic engine in each type of atomic engine set, and obtain at least one violation score of the object to be detected, wherein the violation score corresponds to the violation type, the violation label, and the violation location; The determining module is configured to obtain a maximum violation score from the violation scores as a first detection score of each atomic engine for detecting the object to be detected; Obtaining a maximum first detection score from each of the first detection scores as a second detection score for detecting the object to be detected by sets of atomic engines of different types; Obtaining the maximum second detection score from each second detection score as the target score of the object to be detected; The violation type, violation label, and violation location corresponding to the target score are used as the violation information of the object to be detected; the detection module is further configured to: Based on each atomic engine in each type of atomic engine set, detecting the object to be detected, and obtaining at least one set of detection information of the object to be detected; Determining first weight information of the atomic engine; Determine, based on each group of detection information and the weight information of the atomic engine, a violation score corresponding to each group of detection information as the violation score of the object to be detected; The detection module is also used for: Determining second weight information of the violation label in each set of detection information, wherein the detection information includes the violation label, the violation location, and the first violation score; For each set of detection information, a violation score corresponding to the set of detection information is determined based on the first weight information, the second weight information, and the first violation score, as the violation score of the object to be detected.
6. An electronic device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method according to any one of claims 1 to 4 when executing the computer program.
7. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Method and device for judging junk items of to-be-detected information
CN111324472A
Illegal word detection method, device and equipment and computer readable storage medium
CN113032658A