Detection validity prediction method and device of target detection model, terminal and medium
By constructing a mapping relationship between the detection output results of the target detection model and feature annotation information, the problem of uninterpretable model prediction results is solved, the detection effectiveness prediction under influencing factors is realized, and the model's performance in different scenarios is improved. identification capabilities and security.
Patent Information
- Application Number
- CN202310246257.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-06
- Publication Date
- 2024-09-06
AI Technical Summary
In the existing technology, the prediction results of the target detection model are not interpretable, and it is impossible to predict the effectiveness of the model detection results under different influencing factors.
By obtaining the target image to be detected and the target feature annotation information, input the image to the target detection model, obtain the detection output result, and build a mapping relationship between the evaluation results and the feature annotation information based on the feature annotation information, and then perform effectiveness prediction.
The interpretability of model detection results is achieved, and the detection risk of the model in image recognition of specific characteristic objects can be understood, and the effectiveness of the detection results under different influencing factors can be predicted.
Smart Images

Figure CN118608903A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of machine vision technology, and in particular, relates to a method, device, terminal and medium for predicting detection effectiveness of a target detection model. Background Art
[0002] With the advancement of technology and intelligence, artificial intelligence models for target recognition have gradually been applied to various fields, such as autonomous driving, robot navigation, etc.
[0003] In order to ensure the application security and intelligent reliability of artificial intelligence models, we must test the validity of the models to identify and assess the risks of the entire model system and its components.
[0004] However, due to the complexity of the structure of the artificial intelligence model itself, it is often difficult to quantify the influence of various factors that affect the model detection effect during the performance testing of the model. This also leads to the model's detection output results being unexplainable and unable to predict the effectiveness of the model detection results under different influencing factors. Summary of the invention
[0005] The embodiments of the present application provide a method, device, terminal and medium for predicting the detection effectiveness of a target detection model to solve the problem in the prior art that the prediction results of the model are not interpretable and the effectiveness of the model detection results under different influencing factors cannot be predicted.
[0006] A first aspect of an embodiment of the present application provides a method for predicting detection effectiveness of a target detection model, comprising:
[0007] Acquire a first sample data set, wherein the first sample data set includes a target image to be detected and target feature annotation information, wherein the target image to be detected includes multiple categories of target items to be detected, and each category of the target items to be detected corresponds to a set of the target feature annotation information;
[0008] Inputting the target image to be detected into a target detection model, and obtaining detection output results of the target detection model for different categories of the target items to be detected;
[0009] Based on the target feature annotation information, the effectiveness of the detection output results of the target items to be detected of different categories are evaluated, and a mapping relationship between the evaluation results and each target feature annotation information is constructed;
[0010] Based on the mapping relationship, the effectiveness of the detection output result of the target detection model is predicted.
[0011] A second aspect of an embodiment of the present application provides a detection effectiveness prediction device of a target detection model, comprising:
[0012] A first acquisition module is used to acquire a first sample data set, wherein the first sample data set includes a target image to be detected and target feature annotation information, wherein the target image to be detected includes multiple categories of target items to be detected, and each category of the target items to be detected corresponds to a group of the target feature annotation information;
[0013] A second acquisition module is used to input the target image to be detected into a target detection model to obtain the detection output results of the target detection model for different categories of the target items to be detected;
[0014] A relationship building module, used to evaluate the effectiveness of the detection output results of the target items to be detected of different categories based on the target feature annotation information, and to build a mapping relationship between the evaluation results and each of the target feature annotation information;
[0015] A prediction module is used to predict the effectiveness of the detection output result of the target detection model based on the mapping relationship.
[0016] A third aspect of an embodiment of the present application provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.
[0017] A fourth aspect of an embodiment of the present application 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, the steps of the method described in the first aspect are implemented.
[0018] As can be seen from the above, in the embodiment of the present application, the detection output results of the target detection model for different categories of target items to be detected are obtained, the detection output results of different categories of target items to be detected are evaluated for effectiveness based on the target feature annotation information, and a mapping relationship between the evaluation results and each target feature annotation information is constructed, and then the effectiveness of the detection output results of the target detection model is predicted based on the mapping relationship. This process finds out the image feature factors that affect the model detection results by constructing a mapping relationship between the detection output results of different models and the feature annotation information, so that the prediction results of the model are interpretable, and it is possible to know what kind of detection risk the model will have when identifying an image of an object with specific characteristics, and to achieve a reliable prediction of the effectiveness of the model detection results under different influencing factors. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 This is a process of a method for predicting detection effectiveness of a target detection model provided in an embodiment of the present application. Figure 1 ;
[0021] Figure 2 This is a process of a method for predicting detection effectiveness of a target detection model provided in an embodiment of the present application. Figure 2 ;
[0022] Figure 3 It is a structural diagram of a detection effectiveness prediction device of a target detection model provided in an embodiment of the present application;
[0023] Figure 4 It is a structural diagram of a terminal provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0025] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0026] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0027] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0028] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0029] It should be understood that the size of the serial numbers of the steps in this embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0030] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.
[0031] See also Figure 1 , Figure 1 This is a process of a method for predicting detection effectiveness of a target detection model provided in an embodiment of the present application. Figure 1 .like Figure 1 As shown, a detection effectiveness prediction method of a target detection model includes the following steps:
[0032] Step 101: Obtain a first sample data set.
[0033] The first sample data set includes a target image to be detected and target feature annotation information, wherein the target image to be detected includes multiple categories of target items to be detected, and each category of the target items to be detected corresponds to a group of the target feature annotation information.
[0034] The target feature annotation information is formed as reference information for subsequent effectiveness evaluation of the detection output results of the target detection model. The target feature annotation information is specifically the annotation information of different categories of target to be detected items in the target to be detected image.
[0035] Among them, a set of target feature annotation information is the feature standard value or reference value corresponding to the target to be detected item of the current category.
[0036] In one example, a set of target feature annotation information includes, for example, feature values such as the size of the annotation box, the category, coordinates, whether it is truncated, whether it is blocked, etc. corresponding to the target to be detected item of the current category in the target to be detected image.
[0037] Among them, the category of the target detection item can be the category formed by image contents such as people, cars, roads, etc.
[0038] The target items to be detected under these categories are, for example, vehicles such as motor vehicles and non-motor vehicles in the image, pedestrians in the image, and road signs such as zebra crossings and driving lanes in the image.
[0039] Step 102: input the target image to be detected into a target detection model to obtain detection output results of the target detection model for different categories of the target items to be detected.
[0040] The target detection model is, for example, a YOLO (You Only Look Once) model, a CenterNET model, a Convolutional Neural Network (CNN) model, etc.
[0041] In one implementation, the target detection model needs to be trained first.
[0042] Correspondingly, before the target image to be detected is input into the target detection model, it also includes:
[0043] Acquire a second sample data set, wherein the second sample data set includes a plurality of preset images to be detected and preset feature annotation information, each of the preset images to be detected includes a plurality of categories of preset items to be detected, and each category of the preset items to be detected corresponds to a set of the preset feature annotation information;
[0044] The target detection model is trained based on the second sample data set.
[0045] That is, the second sample data set includes multiple preset images to be detected and multiple groups of preset feature annotation information for each preset image to be detected, and each group of preset feature annotation information corresponds to a category of items to be detected included in the preset image to be detected.
[0046] In the above implementation, when the target detection model monitors and outputs different categories of target items to be detected, the target detection model is a pre-trained model, which implements the effectiveness evaluation of the model detection output result based on the trained target detection model.
[0047] Step 103: Based on the target feature annotation information, the effectiveness of the detection output results of the target items to be detected of different categories is evaluated, and a mapping relationship between the evaluation results and each target feature annotation information is constructed.
[0048] Among them, the effectiveness evaluation can be to evaluate whether the target item to be detected is correctly located, classified, and other information.
[0049] The evaluation results obtained by the effectiveness evaluation may mainly include: correctly detected items, incorrectly detected items and / or missed detected items of the target items to be detected in the detection output results.
[0050] Specifically, the first sample data set is used as an evaluation set, wherein the target feature annotation information is image data that has been annotated in advance for the target image to be detected.
[0051] When evaluating the effectiveness of the detection output results of the target detection model based on the target feature annotation information, Good Case (correct detection), Miss Case (missed detection) and False Case (false detection) can be distinguished from the detection output results.
[0052] The feature annotation information is compared and evaluated with the detection output result, thereby obtaining an evaluation result including correctly detected items, incorrectly detected items and / or missed detection items.
[0053] Correspondingly, in a specific implementation, based on the target feature annotation information, the effectiveness of the detection output results of different categories of target items to be detected is evaluated, specifically including:
[0054] Based on the target feature annotation information, the correctly detected items, the incorrectly detected items and / or the missed detected items in the detection output results of the target items to be detected of different categories are evaluated to obtain the evaluation results including the correctly detected items, the incorrectly detected items and / or the missed detected items.
[0055] Among them, the correctly detected items are the detection items whose features in the detection output results are consistent with any group of the target feature annotation information, the incorrectly detected items are the detection items whose features in the detection output results are inconsistent with any group of the target feature annotation information, and the missed detection items are the target items to be detected of all categories that are not included in the detection output results.
[0056] According to the above evaluation results, a mapping relationship between the evaluation results and different target feature annotation information can be established to further predict the effectiveness of the target detection model based on this mapping relationship.
[0057] Specifically, when constructing the mapping relationship between the evaluation results and each target feature annotation information, first determine a target item to be detected corresponding to each of the correctly detected items, the incorrectly detected items and / or the missed items in the detection output results of the target detection model, and then determine a group of target feature annotation information corresponding to the target item to be detected based on the corresponding relationship between the target item to be detected and the target feature annotation information. Then, establish a mapping relationship between the evaluation results and each target feature annotation information.
[0058] In an optional embodiment, constructing a mapping relationship between the evaluation result and each target feature annotation information specifically includes:
[0059] Based on the evaluation results and the different target feature labeling information, a mapping relationship between the evaluation results and each target feature labeling information is established through a decision tree model.
[0060] Among them, the evaluation results in the decision tree model are leaf nodes, and each group of target feature annotation information is an intermediate node; the decision tree model is used to predict the effectiveness of the detection output results of the target detection model based on the mapping relationship.
[0061] In this process, a tree structure model is used to establish a mapping relationship between the evaluation results and the annotation information of each target feature.
[0062] The decision tree model is used to predict the effectiveness of the detection output results of the target detection model. It can predict whether the targets corresponding to different categories of target items to be detected are correctly detected based on single or multiple target feature annotation information.
[0063] By constructing a mapping relationship, we can establish the feature annotation information corresponding to the model detection output results in different situations of correct detection, false detection or missed detection, find out the image feature factors that have a strong impact on the model detection results, and then know what kind of detection risks will appear when the model identifies images of objects with certain features, thereby improving the interpretability of the model's detection output results under different influencing factors.
[0064] For example, if the detection output result of the target detection model is judged to contain missed items, that is, the items to be detected that are not detected by the target detection model, then the mapping relationship is constructed to form an interpretable model, and based on the mapping relationship, it is analyzed what characteristic factors caused the target detection model to miss the item to be detected.
[0065] For example, in the scene of the autonomous driving process, the target image to be detected contains a vehicle with truncated features (i.e., only half of the vehicle is captured at the edge of the image), or contains a pedestrian that is partially blocked. If the target detection model does not detect these detection items, it can be determined based on the constructed mapping relationship and the pre-set target feature annotation information corresponding to these contents that the factors causing the missed detection are image feature factors such as image truncation and image blocking. This is only an exemplary description and is not limited to this.
[0066] In addition, these characteristic factors can also be scored. The higher the score, the greater the influence, which proves that the characteristic factor is more important. Then the model can be optimized based on these influential factors.
[0067] At the same time, the above processing method can also enable model developers and model users to better understand the advantages and disadvantages of the current model and bring a safer experience.
[0068] Furthermore, in a specific implementation, each set of target feature annotation information includes multiple feature annotation information items. When constructing the mapping relationship, a mapping relationship is established between the evaluation result and each feature annotation information item in each target feature annotation information.
[0069] Furthermore, when each set of target feature annotation information includes multiple feature annotation information items, after constructing the mapping relationship between the evaluation result and each of the target feature annotation information, the method further includes:
[0070] Step 201, based on the dependency relationship between each of the feature annotation information items, determine the information dependent items and the information dependent items in each group of the target feature annotation information;
[0071] Step 202, selecting at least one target information item from the information dependent items or the information dependent items;
[0072] Step 203, according to the set rules, the target information item is removed from the intermediate node of the decision tree model, and the accuracy change value of the effectiveness prediction of the detection output result of the target detection model by the decision tree model after the information item is removed is obtained;
[0073] Step 204: Update the decision tree model based on the accuracy change value.
[0074] Among them, for the division of information dependent items and information dependent items, for example, a target to be detected is a truncated vehicle, and the corresponding set of target feature annotation information includes feature annotation information items including vehicle truncation identification information, the size of the vehicle detection box BBOX is 2*2 (the normal vehicle detection box size is 4*2), vehicle position coordinates, vehicle contour information, etc. In this set of target feature annotation information, there is a dependency relationship between the size of the vehicle detection box and the vehicle contour information, wherein the vehicle contour information is the information dependent item, and the size of the vehicle detection box is the information dependent item.
[0075] At least one target information item can be selected from the information dependent items or the information dependent items to try to remove information from the decision tree model to determine whether the removal of the target information item will affect the accuracy of the validity prediction of the inspection output result of the model detection model.
[0076] Specifically, the accuracy change value of the validity prediction of the detection output result of the target detection model by the decision tree model after the information item is removed is obtained. The accuracy can be determined by comparing the validity prediction result with the actual validity of the detection output result of the target detection model to obtain the accuracy value and the accuracy change value before and after the target information item is deleted.
[0077] When the validity prediction accuracy before and after the deletion of the target information item is consistent or the deviation is within the set reasonable accuracy range, the decision tree model is updated, and the decision tree model after the target information item is removed is used as the updated decision tree model. On the contrary, if the deviation is not within the set reasonable accuracy range, it will not be updated. It can eliminate unnecessary influencing factors, ensure the simplicity of the model, improve the accuracy of the interpretability of the model output results, and improve data processing efficiency.
[0078] Step 104: Based on the mapping relationship, the effectiveness of the detection output result of the target detection model is predicted.
[0079] In the above process, in one example, based on a trained target detection model, the target images to be detected in the first sample data set are input into the model, and the detection output results of the model for different categories of target items to be detected can be obtained.
[0080] Specifically, for example, an image includes a main lane extending along the middle of the image and sidewalks on both sides of the main lane. In the image, the sidewalk includes two pedestrians A and B walking side by side, pedestrian A is blocked by pedestrian B, and there is a billboard on the outside of the sidewalk, which includes a person; the middle main lane includes multiple vehicles, vehicle A, vehicle B, and vehicle C, vehicle B is blocked by vehicle A in front of it, and the blocking ratio is 10% of vehicle B. Vehicle C is located at the edge of the image, and only the rear part of vehicle C is in the image, and the image of vehicle C is truncated.
[0081] At this time, the target detection items under the vehicle category include vehicle A, vehicle B and vehicle C, and the target detection items under the person category include pedestrian A, pedestrian B, and the person in the billboard (the person in the billboard is an interference detection item in the target detection item). The set of target feature annotation information corresponding to vehicle A in the target to be detected is located on the main lane and the vehicle's external contour is complete; the set of target feature annotation information corresponding to vehicle B is located on the main lane, the vehicle is blocked, and the occlusion ratio is 10%; the set of target feature annotation information corresponding to vehicle C is located on the main lane, the vehicle is truncated, and the truncation ratio exceeds 70%; the set of target feature annotation information corresponding to pedestrian A is located on the sidewalk, pedestrian A is blocked, the occlusion ratio exceeds 70%, and there is a partial overlap with the person in the billboard; the set of target feature annotation information corresponding to pedestrian B is located on the sidewalk, the image contour is complete, and the edge partially overlaps with the person in the billboard; the set of target feature annotation information corresponding to the person in the billboard is located on the sidewalk and partially overlaps with the pedestrian on the sidewalk.
[0082] Input the image into the target detection model to obtain the model's detection output results for the target items to be detected under the car and person categories. For example, the output results after the model processes the image include:
[0083] Correctly detected items: Vehicle A and Vehicle B under the vehicle category, and Pedestrian B under the person category;
[0084] False positives: People in billboards.
[0085] Based on the above correctly detected items and incorrectly detected items, missed detection items can also be determined: the detected item vehicle C under the vehicle category and the pedestrian A under the person category.
[0086] The effectiveness of the detected items can be evaluated based on the target feature annotation information, and specifically, the detection items can be evaluated for effectiveness probability. The evaluation can be performed based on factors such as the integrity of the images annotated in a set of target feature annotation information corresponding to different detection items, whether they are interfered by external objects, etc.
[0087] Afterwards, a mapping relationship between the evaluation results and the annotation information of each target feature is constructed.
[0088] Specifically, a mapping relationship is established between each content item included in the correctly detected item, the incorrectly detected item, or the missed item and a corresponding set of target feature annotation information.
[0089] For example, a mapping relationship is established between the person on the billboard in the false detection item and the set of target feature annotation information that is located on the sidewalk and partially overlaps with the pedestrians on the sidewalk. It can be seen that under the influence of various feature factors in the set of target feature annotation information, when the model is used to perform content detection on the image containing the person on the billboard, false detection may occur.
[0090] By constructing a mapping relationship between the detection output results of different models and the feature annotation information, we can find out the image feature factors that affect the model detection results. Then, based on this mapping relationship, when there are subsequent images that need to be detected by the target detection model, we can predict the effectiveness of the output results of the target detection model for the image.
[0091] In the embodiment of the present application, the detection output results of the target detection model for different categories of target items to be detected are obtained, the detection output results of different categories of target items to be detected are evaluated for effectiveness based on the target feature annotation information, and a mapping relationship between the evaluation results and each target feature annotation information is constructed, and then the effectiveness of the detection output results of the target detection model is predicted based on the mapping relationship. This process finds out the image feature factors that affect the model detection results by constructing a mapping relationship between the detection output results of different models and the feature annotation information, so that the prediction results of the model are interpretable, and it is possible to know what kind of detection risk the model will have when identifying an image of an object with specific features, and to predict the effectiveness of the model detection results under different influencing factors.
[0092] See also Figure 3 , Figure 3 This is a structural diagram of a detection effectiveness prediction device for a target detection model provided in an embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0093] The detection validity prediction device 300 of the target detection model includes:
[0094] The first acquisition module 301 is used to acquire a first sample data set, wherein the first sample data set includes a target image to be detected and target feature annotation information, wherein the target image to be detected includes multiple categories of target items to be detected, and each category of the target items to be detected corresponds to a set of the target feature annotation information;
[0095] The second acquisition module 302 is used to input the target to be detected image into the target detection model, and obtain the detection output results of the target detection model for different categories of the target to be detected items;
[0096] A relationship building module 303 is used to evaluate the effectiveness of the detection output results of the target items to be detected of different categories based on the target feature annotation information, and to build a mapping relationship between the evaluation results and each of the target feature annotation information;
[0097] The prediction module 304 is used to predict the effectiveness of the detection output result of the target detection model based on the mapping relationship.
[0098] The relationship building module 303 is specifically used for:
[0099] Based on the target feature annotation information, evaluating the correctly detected items, incorrectly detected items and / or missed detected items in the detection output results of the target items to be detected of different categories;
[0100] Among them, the correctly detected items are the detected items whose features in the detection output results are consistent with any group of the target feature annotation information, the incorrectly detected items are the detected items whose features in the detection output results are inconsistent with any group of the target feature annotation information, and the missed detection items are the target items to be detected of all categories that are not included in the detection output results;
[0101] The evaluation result including the correctly detected items, the incorrectly detected items and / or the missed detected items is obtained.
[0102] The device also includes:
[0103] Model training module, used to:
[0104] Acquire a second sample data set, wherein the second sample data set includes a plurality of preset images to be detected and preset feature annotation information, each of the preset images to be detected includes a plurality of categories of preset items to be detected, and each category of the preset items to be detected corresponds to a set of the preset feature annotation information;
[0105] The target detection model is trained based on the second sample data set.
[0106] The relationship building module 303 is specifically used for:
[0107] Based on the evaluation results and the different target feature labeling information, a mapping relationship between the evaluation results and each target feature labeling information is established through a decision tree model;
[0108] Among them, the evaluation results in the decision tree model are leaf nodes, and each group of target feature annotation information is an intermediate node; the decision tree model is used to predict the effectiveness of the detection output results of the target detection model based on the mapping relationship.
[0109] Wherein, each group of the target feature annotation information includes multiple feature annotation information items; the device also includes:
[0110] Model updating module, used to:
[0111] Based on the dependency relationship between each of the feature annotation information items, determining the information dependent items and the information dependent items in each group of the target feature annotation information;
[0112] Selecting at least one target information item from the information dependent items or the information dependent items;
[0113] According to the set rules, the target information item is removed from the intermediate node of the decision tree model, and the accuracy change value of the effectiveness prediction of the detection output result of the target detection model by the decision tree model after the information item is removed is obtained;
[0114] Based on the accuracy change value, the decision tree model is updated.
[0115] Wherein, the model updating module is specifically used for:
[0116] If the accuracy change value is within the set accuracy change range, the decision tree model after the target information item is removed is used as the updated decision tree model.
[0117] The detection effectiveness prediction device of the target detection model provided in the embodiment of the present application can implement the various processes of the embodiment of the detection effectiveness prediction method of the above-mentioned target detection model, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0118] Figure 4 4 is a structural diagram of a terminal provided in an embodiment of the present application. As shown in the figure, the terminal 4 of this embodiment includes: at least one processor 40 ( Figure 4 Only one is shown in the figure), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, wherein the processor 40 implements the steps of any of the above-mentioned method embodiments when executing the computer program 42.
[0119] The terminal 4 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal 4 may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of terminal 4 and does not constitute a limitation on terminal 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.
[0120] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0121] The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal 4. The memory 41 is used to store the computer program and other programs and data required by the terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.
[0122] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0123] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0124] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0125] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0126] The units described as separate components may or may not be physically separated, and the components shown as units 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0127] In addition, each functional unit in each embodiment of the present application 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 software functional units.
[0128] If the integrated module / unit 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. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0129] The present application implements all or part of the processes in the above-mentioned embodiment method, and may also be implemented through a computer program product. When the computer program product runs on a terminal, the terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0130] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for predicting detection effectiveness of a target detection model, characterized in that: include: Acquire a first sample data set, wherein the first sample data set includes a target image to be detected and target feature annotation information, wherein the target image to be detected includes multiple categories of target items to be detected, and each category of the target items to be detected corresponds to a set of the target feature annotation information; Inputting the target image to be detected into a target detection model, and obtaining detection output results of the target detection model for different categories of the target items to be detected; Based on the target feature annotation information, the effectiveness of the detection output results of the target items to be detected of different categories are evaluated, and a mapping relationship between the evaluation results and each target feature annotation information is constructed; Based on the mapping relationship, the effectiveness of the detection output result of the target detection model is predicted.
2. The method according to claim 1, characterized in that The effectiveness evaluation of the detection output results of the target items to be detected of different categories based on the target feature annotation information includes: Based on the target feature annotation information, evaluating the correctly detected items, incorrectly detected items and / or missed detected items in the detection output results of the target items to be detected of different categories; Among them, the correctly detected items are the detected items whose features in the detection output results are consistent with any group of the target feature annotation information, the incorrectly detected items are the detected items whose features in the detection output results are inconsistent with any group of the target feature annotation information, and the missed detection items are the target items to be detected of all categories that are not included in the detection output results; The evaluation result including the correctly detected items, the incorrectly detected items and / or the missed detected items is obtained.
3. The method according to claim 1, characterized in that Before inputting the target image to be detected into the target detection model, the method further includes: Acquire a second sample data set, wherein the second sample data set includes a plurality of preset images to be detected and preset feature annotation information, each of the preset images to be detected includes a plurality of categories of preset items to be detected, and each category of the preset items to be detected corresponds to a set of the preset feature annotation information; The target detection model is trained based on the second sample data set.
4. The method according to claim 1, characterized in that: The mapping relationship between the evaluation result and each target feature annotation information is constructed, including: Based on the evaluation results and the different target feature labeling information, a mapping relationship between the evaluation results and each target feature labeling information is established through a decision tree model; Among them, the evaluation results in the decision tree model are leaf nodes, and each group of target feature annotation information is an intermediate node; the decision tree model is used to predict the effectiveness of the detection output results of the target detection model based on the mapping relationship.
5. The method according to claim 4, characterized in that Each group of target feature annotation information includes multiple feature annotation information items; After constructing the mapping relationship between the evaluation results and each target feature annotation information, the method further includes: Based on the dependency relationship between each of the feature annotation information items, determining the information dependent items and the information dependent items in each group of the target feature annotation information; Selecting at least one target information item from the information dependent items or the information dependent items; According to the set rules, the target information item is removed from the intermediate node of the decision tree model, and the accuracy change value of the effectiveness prediction of the detection output result of the target detection model by the decision tree model after the information item is removed is obtained; Based on the accuracy change value, the decision tree model is updated.
6. The method according to claim 5, characterized in that The updating of the decision tree model based on the accuracy change value includes: If the accuracy change value is within the set accuracy change range, the decision tree model after the target information item is removed is used as the updated decision tree model.
7. A detection effectiveness prediction device for a target detection model, characterized in that: include: A first acquisition module is used to acquire a first sample data set, wherein the first sample data set includes a target image to be detected and target feature annotation information, wherein the target image to be detected includes multiple categories of target items to be detected, and each category of the target items to be detected corresponds to a set of the target feature annotation information; A second acquisition module is used to input the target image to be detected into a target detection model to obtain the detection output results of the target detection model for different categories of the target items to be detected; A relationship building module, used to evaluate the effectiveness of the detection output results of the target items to be detected of different categories based on the target feature annotation information, and to build a mapping relationship between the evaluation results and each of the target feature annotation information; A prediction module is used to predict the effectiveness of the detection output result of the target detection model based on the mapping relationship.
8. The device according to claim 7, characterized in that The relationship building module is specifically used for: Based on the target feature annotation information, evaluating the correctly detected items, incorrectly detected items and / or missed detected items in the detection output results of the target items to be detected of different categories; Among them, the correctly detected items are the detected items whose features in the detection output results are consistent with any group of the target feature annotation information, the incorrectly detected items are the detected items whose features in the detection output results are inconsistent with any group of the target feature annotation information, and the missed detection items are the target items to be detected of all categories that are not included in the detection output results; The evaluation result including the correctly detected items, the incorrectly detected items and / or the missed detected items is obtained.
9. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer-readable storage medium storing a computer program, 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 6 are implemented.
