Neural network model optimization system and method
Through the neural network model optimization system, the detection results of the deep learning model are analyzed using detection frame prediction categories and IoU values to provide improvement directions, which solves the problem of unclear improvement directions in the existing technology and improves model performance and detection effects.
Patent Information
- Application Number
- CN202011081375.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-10-09
AI Technical Summary
The existing technology lacks detailed analysis and clear improvement direction when improving the deep learning target detection model, resulting in insufficient rationality in improving the detection effect. Especially in the field of garbage detection, increasing the number of residual structure blocks fails to fully consider the network architecture and target characteristics. .
Provides a neural network model optimization system, including a first analysis module, a second analysis module and a feedback module. It calculates the AP value of each target category through the comparison results of the detection frame prediction category and the real category and the IoU value division detection results. Provides a visual operation interface to help users quickly understand the test results and analyze the reasons for improvement.
Users can quickly recognize the detection capabilities of network models, and through in-depth exploration of IoU values, they can derive well-founded improvement strategies to improve model performance, avoid blindly adding structural blocks, and improve detection results.
Smart Images

Figure CN112215355B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of deep learning target detection technology, and in particular to a neural network model optimization system and method. Background Art
[0002] With the rapid development of deep learning technology, object detection methods based on deep learning have been widely used in many fields, and the advantages of deep learning are even more prominent in the field of garbage detection. Many researchers have proposed many classic algorithms and network architectures, or made effective improvement measures based on the foundation of predecessors, such as the classic Faster R-CNN network proposed by Shaoqin Ren et al. in 2015.
[0003] Chinese patent application CN108985328A discloses a method and system for constructing a deep learning model for identifying corneal ulcers, which processes corneal test images, uses AlexNet and VGGNet to obtain different deep learning models, and then obtains a new deep learning model by continuously adjusting various parameters of the deep learning model. After each adjustment, the deep learning model with a higher recognition rate is used as the basis for comparison with the next adjustment, so that each parameter of the deep learning model can be optimized separately. This patent application obtains the optimal network by continuously learning model parameters during the training process, thereby achieving a good classification effect.
[0004] Similar to the above patent application, the prior art often modifies the parameters of the model's detection results. If the detection results of the modified model are improved, the task is completed. If the modified detection effect is not good, the model network structure or parameters are modified again, and detailed analysis and modification directions cannot be carried out. Taking garbage detection as an example, most researchers only use emerging technologies to improve the detection results of network models. Although the detection effect is improved in most cases, this is not the best improvement solution. For example, knowing that the residual network can improve the final detection results of the network model, they only increase the number of residual structure blocks without fully considering the network architecture and the characteristics of the target to be detected, and there is no reasonable improvement idea and direction. Summary of the invention
[0005] The purpose of the present invention is to provide a neural network model optimization system and method to provide a reference for the improvement ideas and directions of the network model.
[0006] To achieve the above-mentioned purpose, the present invention provides a neural network model optimization system, comprising a first analysis module, a second analysis module and a feedback module. The first analysis module is used to divide the detection results of the image according to the comparison results of the detection box prediction category output by the neural network model and the actual target category and the IoU number. The second analysis module is used to calculate the intersection over union (IoU) value of each detection box and the corresponding annotation box, judge the positive and negative examples according to the size of the IoU value and the corresponding IoU threshold, and calculate the AP value of each target category. The feedback module provides a visual operation interface for accepting input, and outputs the corresponding detection image based on the input information.
[0007] Compared with the prior art, the neural network model optimization system of the present invention divides the detection results of the network model through the first analysis module, so that the user can quickly understand the quality of the image detection results of each category of targets, and can have a basic understanding of the detection ability of the network model in the fastest time; through the second analysis module, the network model is more deeply mined based on the IoU value, so that the user can refer to the feedback results to analyze the possible reasons for the good or bad detection results of the network model, so as to realize a well-founded and directional model improvement strategy.
[0008] Specifically, the detection results include successful detection, failed detection, repeated detection and false detection; if the predicted category is the same as the target category, the detection result is a successful detection; if the target in the image cannot be detected, the detection result is a failed detection; if the IoU number is too large and causes repeated detection of the target, the detection result is a repeated detection; if the predicted category is different from the target category, the detection result is a false detection.
[0009] Specifically, the neural network model optimization system also includes an output acquisition module, which is used to obtain the detection box coordinates, predicted categories, and confidence corresponding to the predicted categories output by the neural network model. The neural network model uses non-maximum suppression processing to select several categories with larger confidence as the predicted categories of the detection box.
[0010] Preferably, the second analysis module obtains the detection frame coordinates of the neural network model, converts the detection frame coordinates into width and height, and sets the corresponding IoU threshold according to the width and height of the detection frame.
[0011] Preferably, the second analysis module performs weighted calculation on the AP value of each target category to obtain a score of the neural network model, and outputs the score.
[0012] Specifically, the input information includes at least one of the detection result, the target category, and the IoU threshold.
[0013] Preferably, the second analysis module includes a first IoU retrieval module, and the first IoU retrieval module is used to output a corresponding detection image and an IoU value corresponding to the target category in the detection image according to the target category received by the feedback module and the IoU threshold.
[0014] Preferably, the second analysis module further includes a second IoU retrieval module, and the second IoU retrieval module is used to output the corresponding detection image and all IoU values in the detection image according to the IoU threshold received by the feedback module.
[0015] To achieve the above object, the present invention also provides a neural network model optimization method, comprising:
[0016] A neural network model optimization system is provided, which includes a first analysis module, a second analysis module and a feedback module.
[0017] The first analysis module divides the detection results of the image according to the comparison results of the detection box prediction category output by the neural network model and the actual target category and the IoU number.
[0018] The second analysis module calculates the intersection over union (IoU) value of each detection box and the corresponding annotation box, determines the positive and negative examples according to the IoU value and the corresponding IoU threshold, and calculates the AP value of each target category.
[0019] The feedback module provides a visual operation interface for receiving input, and outputs a corresponding detection image according to the input information.
[0020] Compared with the prior art, the present invention divides the detection results of the network model through the first analysis module, so that the user can quickly understand the quality of the image detection results of each category of targets, and can have a basic understanding of the detection ability of the network model in the fastest time; through the second analysis module, the network model is more deeply mined based on the IoU value, so that the user can refer to the feedback results to analyze the possible reasons for the quality of the network model detection results, so as to realize a well-founded and directional model improvement strategy.
[0021] Specifically, the detection results include successful detection, failed detection, repeated detection and false detection; if the predicted category is the same as the target category, the detection result is a successful detection; if the target in the image cannot be detected, the detection result is a failed detection; if the IoU number is too large and causes repeated detection of the target, the detection result is a repeated detection; if the predicted category is different from the target category, the detection result is a false detection.
[0022] Specifically, the neural network model optimization system also includes an output acquisition module, through which the detection frame coordinates, predicted categories, and confidences corresponding to the predicted categories output by the neural network model are acquired. The neural network model uses non-maximum suppression processing to select several categories with larger confidences as the predicted categories of the detection frame.
[0023] Preferably, the detection frame coordinates of the neural network model are obtained through the second analysis module, the detection frame coordinates are converted into width and height, and the corresponding IoU threshold is set according to the width and height of the detection frame.
[0024] Preferably, the second analysis module performs weighted calculation on the AP value of each target category to obtain a score of the neural network model, and outputs the score.
[0025] Specifically, the input information includes at least one of the detection result, the target category, and the IoU threshold.
[0026] Preferably, the second analysis module includes a first IoU retrieval module, through which the first IoU retrieval module outputs a corresponding detection image and an IoU value corresponding to the target category in the detection image according to the target category received by the feedback module and the IoU threshold.
[0027] Preferably, the second analysis module further comprises a second IoU retrieval module, through which the second IoU retrieval module outputs the corresponding detection image and all IoU values in the detection image according to the IoU threshold received by the feedback module. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a block diagram of the composition of the neural network model optimization system of the present invention.
[0029] Figure 2 A schematic diagram of a visual operation interface provided by the feedback module of the present invention. DETAILED DESCRIPTION
[0030] In order to explain the technical content and structural features of the present invention in detail, further description is given below in combination with specific implementation methods and accompanying drawings.
[0031] The present invention relates to a neural network model optimization system and method, which provides feedback on the deficiencies of the network model based on the detection result data of the network model, and the user can refer to the feedback data to obtain the improvement ideas and directions of the network model, thereby helping to obtain a neural network model with better performance. Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.
[0032] Figure 1FIG. 1 shows a structural block diagram of a neural network model optimization system 100 according to an embodiment of the present invention. Figure 1 As shown, the neural network model optimization system 100 includes a first analysis module 10, a second analysis module 20 and a feedback module 30. Among them, the first analysis module 10 is used to divide the detection results of the image according to the comparison results of the detection box prediction category output by the neural network model and the actual target category and the IoU number. The second analysis module 20 is used to calculate the intersection over union (IoU) value (Intersection Over Union) of each detection box and the corresponding annotation box, judge the positive and negative examples according to the size of the IoU value and the corresponding IoU threshold, and calculate the AP value of each target category. At the same time, the second analysis module 20 saves information such as IoU value, AP value, target positive and negative examples. The feedback module 30 provides a visual operation interface 31 for accepting input, and outputs the corresponding detection image (such as Figure 2 shown).
[0033] Among them, the detection results of the image include successful detection (MATCH), failed detection (NO MATCH FOUND), repeated detection (REPEATED MATCH) and false detection (INSUFFICIENT OVERLAP). Specifically, if the predicted category is the same as the target category, the detection result is a successful detection. If the target in the image cannot be detected, the detection result is a failed detection, which may be caused by a camera failure that does not capture the image normally or the network model fails to distinguish between the foreground and background parts of the detected image. If the IoU number threshold preset in the algorithm is too large, resulting in too many IoUs for the target to be detected (the neural network model outputs more detection boxes), resulting in repeated detection and waste of computing resources, the detection result is a repeated detection. If the predicted category is different from the target category, the detection result is a false detection. Among them, the target category can be manually input, or the training set data of the neural network model can contain the target category information.
[0034] In this embodiment, the neural network model optimization system 100 further includes an output acquisition module 40 and a visualization module 50 (eg, Figure 2As shown). Among them, the output acquisition module 40 is used to obtain the detection frame coordinates, predicted categories and confidence corresponding to the predicted categories output by the neural network model. Specifically, the neural network model combines the feature extraction network of the YOLOv4 algorithm and the image to be detected to output the detection frame of the target. After non-maximum suppression (NMS), for each detection frame, several categories with larger confidence are selected as the predicted categories of the detection frame, and the predicted categories of each detection frame, the confidence values corresponding to the predicted categories and the detection frame coordinates are packaged and output into a JSON file. In some embodiments, the neural network model also returns values less than the confidence threshold to 0 based on the predicted category and the corresponding confidence to exclude detection frames with poor prediction results, and then non-maximum suppression is applied to the confidence values by category to re-determine the maximum probability category of the target, so as to further ensure the reliability of the detection results.
[0035] Incidentally, in a specific implementation, the neural network model can be trained through the following steps to obtain the optimal neural network model, and then the performance of the optimal neural network model is analyzed through the network model optimization system 100 of the present invention to provide a reference for users to improve the neural network model. Step (1) Obtain a target image data set of the target to be classified, the target image data set includes a depth image of the target to be classified and a multispectral image of the target to be classified; Step (2) Perform image registration processing on the depth image of the target to be classified and the multispectral image of the target to be classified; Step (3) Perform classification and annotation processing on the registered target depth image and the registered target multispectral image; Step (4) Load the annotated target depth image and the annotated target multispectral image into the YOLOv4 neural network based on the Pytorch framework for model training, and record the loss function value and accuracy of the training, and generate the optimal neural network model.
[0036] The JSON file output by the output acquisition module 40 will be loaded into the visualization module 50, and the information of the detection box (prediction category, confidence value, detection box coordinates, etc.) will be visualized by the visualization module 50 for easy viewing by algorithm technicians. In addition, the visualization module 50 packages the coordinates of the detection box and the prediction category into an XML format for storage in preparation for the second analysis module 20 to call.
[0037] In one embodiment, the second analysis module 20 combines the JSON file and the XML file to convert the coordinates of the detection box into width and height, and sets the corresponding IoU threshold according to the width and height size of the detection box. Different from the commonly used fixed IoU threshold and the fixed IoU threshold for the target category, the second analysis module 20 uses different IoU thresholds for the detection targets of different sizes predicted in the detection box, which can reduce the impact of the two common methods of fixed IoU threshold and fixed IoU threshold for the target category on the detection accuracy of the network model, and can improve the learning ability of the model.
[0038] Specifically, in this embodiment, the IoU threshold corresponding to each detection box is determined according to Table 1.
[0039] IoU threshold m is the shorter side of the labeled rectangle (the smaller value of width and height) IoUt=0.2 m<0 IoUt=m / 200 40≦m<120 IoUt=m / 1500+0.52 120≦m<420 IoUt=0.8 m≧420
[0040] Table 1
[0041] That is, when m is less than 0, the IoU threshold is 0.2. When m is in the interval [40,120), the IoU threshold is m / 200. When m is in the interval [120,420), the IoU threshold is m / 1500+0.52. When m is greater than 420, the IoU threshold is 0.8.
[0042] The second analysis module 20 determines the positive example (T) and the negative example (F) by comparing the IoU value with the IoU threshold. When the IoU value exceeds the corresponding IoU threshold, it is considered that the match is successful and it is judged as a positive example; if the IoU value is lower than the corresponding IoU threshold, it is judged as a negative example. Then, combined with the target category, you can get TP (positive samples predicted correctly by the network model), TF (negative samples predicted correctly by the network model), FP (positive samples predicted incorrectly by the network model), and FN (negative samples predicted incorrectly by the network model). Then, the Recall and Precision of the network model are calculated based on TP, TF, FP, and FN. Then, a PR curve is made based on Recall and Precision, where the horizontal axis is the recall rate and the vertical axis is the precision rate. The area surrounded by the PR curve and the coordinate axis is the average precision AP (Average Precision) (prior art).
[0043] In this embodiment, the second analysis module 20 performs weighted calculation on the AP values of each target category to obtain the score of the neural network model, and outputs the score for the user to evaluate the performance of the network model. The score is calculated in combination with the tolerance of the enterprise to different target categories, rather than using the general summing and averaging method. The specific calculation method is as follows:
[0044]
[0045] Among them, score is the network model score, i is the target category subscript, c is the number of target categories, ki is the weight of the i-th target category, and APi is the AP value of the i-th target category.
[0046] The input information includes at least one of the detection result, the target category, and the IoU threshold. For example, the user can enter the category name of the target to be found in the visual operation interface 31, and at the same time enter the IoU threshold range of the target to be found. Finally, the second analysis module 20 can output the visual detection image within the IoU threshold range through the feedback module 30, so that the user can observe the influence of the IoU threshold on the network model detection result. For another example, the user can enter a certain detection result (successful detection, failed detection, repeated detection, and false detection) in the visual operation interface 31, and finally the first analysis module 10 can output the corresponding visual detection image through the feedback module 30. For another example, the user can enter a certain category information and detection result in the visual operation interface 31, and finally the neural network model optimization system 100 can output the corresponding target image, and the user can analyze the detection ability of the network model for the target category accordingly. Among them, the target category can be, for example, a stick (wood), textiles (textiles), foam (foam), plastic (plastic), concrete (Concrete), glass (glass), metal (metal), etc.
[0047] When searching for target images of the same category within the IoU threshold range, the feedback module 30 sorts the IoU thresholds of each category of targets from high to low, and also screens the target images within the IoU threshold range. The feedback module 30 can realize the user's rapid retrieval and rapid visualization of a certain category of targets through the sorting algorithm.
[0048] like Figure 1 As shown, the second analysis module 20 includes a first IoU retrieval module 21 and a second IoU retrieval module 22. The first IoU retrieval module 21 is used to output the corresponding detection image and the IoU value corresponding to the target category in the detection image according to the target category and the IoU threshold received by the feedback module 30, so that the user can conduct targeted analysis on the IOU of a certain category of targets. The second IoU retrieval module 22 is used to output the corresponding detection image and all IoU values in the detection image according to the IoU threshold received by the feedback module 30, so that all category target information in the detection image can be browsed more conveniently, and then the image can be comprehensively analyzed.
[0049] In some embodiments, the first analysis module 10 also records and outputs the test loss function value, so that the user can plan the improvement direction for loss calculation in combination with the loss function value. In addition, the first analysis module 10 also visualizes the predicted frame coordinates and the real target coordinates through the visualization module 50, so that algorithm technicians can compare the difference between the two, thereby facilitating a preliminary understanding of the detection capability of the network model.
[0050] In summary, the neural network model optimization system 100 of the present invention divides the detection results of the network model through the first analysis module 10, so that the user can quickly understand the quality of the image detection results of each category of targets, and can have a basic understanding of the detection ability of the network model in the fastest time; through the second analysis module 20, the network model is further mined based on the IoU value, so that the user can refer to the feedback results (IOU value, AP, model score, LOSS, etc.) to analyze the possible reasons for the quality of the network model detection results (for example, too few samples of a certain category of targets in the data set, network model parameter initialization problems, Loss function optimization problems, network model architecture selection problems, etc.), so as to achieve a well-founded and directional model improvement strategy. For example, the detection ability of the network model for this category of targets can be evaluated based on the detection and recognition accuracy of this category of targets within each IoU threshold range of each category of targets, so as to formulate a corresponding model improvement plan.
[0051] The present invention also provides a neural network model optimization method, which specifically includes:
[0052] A neural network model optimization system 100 is provided, wherein the neural network model optimization system 100 includes a first analysis module 10, a second analysis module 20, and a feedback module 30 (eg, Figure 1 shown).
[0053] The first analysis module 10 divides the detection results of the image according to the comparison results of the detection box prediction category output by the neural network model and the real target category and the IoU number. Among them, the detection results of the image include successful detection (MATCH), failed detection (NO MATCH FOUND), repeated detection (REPEATED MATCH) and false detection (INSUFFICIENT OVERLAP). Specifically, if the predicted category is the same as the target category, the detection result is a successful detection. If the target in the image cannot be detected, the detection result is a failed detection, which may be caused by the camera having a camera failure and not capturing the image normally or the network model failing to distinguish the foreground and background parts in the detection image. If the IoU number threshold preset in the algorithm is too large, resulting in too many IoUs for the target to be detected (the neural network model outputs more detection boxes), resulting in repeated detection and waste of computing resources, the detection result is repeated detection. If the predicted category is different from the target category, the detection result is a false detection. Among them, the target category can be manually input, or the training set data of the neural network model can carry the target category information.
[0054] The second analysis module 20 calculates the intersection over union (IoU) value of each detection box and the corresponding annotation box, determines the positive and negative examples according to the IoU value and the corresponding IoU threshold, and calculates the AP value of each target category. At the same time, the IoU value, AP value, target positive and negative examples and other information are saved.
[0055] The feedback module 30 provides a visual operation interface 31 for receiving input, and outputs a corresponding detection image according to the input information. The input information includes at least one of the detection result, target category, and IoU threshold (such as Figure 2 shown).
[0056] In this embodiment, the neural network model optimization system 100 further includes an output acquisition module 40 and a visualization module 50 (eg, Figure 1 As shown). The output acquisition module 40 obtains the coordinates of the detection box, the predicted category, and the confidence corresponding to the predicted category output by the neural network model. The visualization module 50 visualizes the information of the detection box (prediction category, confidence value, coordinates of the detection box, etc.) for easy viewing by algorithm technicians. In addition, the visualization module 50 also packages the coordinates of the detection box and the predicted category into an XML format for storage, so as to be called by the second analysis module 20.
[0057] In one embodiment, the coordinates of the detection frame are converted into width and height by the second analysis module 20, and the corresponding IoU threshold is set according to the width and height size of the detection frame. Different from the commonly used fixed IoU threshold and the fixed IoU threshold for the target category, the second analysis module 20 uses different IoU thresholds for the detection targets of different sizes predicted in the detection frame, which can reduce the impact of the two common methods of fixed IoU threshold and fixed IoU threshold for the target category on the detection accuracy of the network model, and can improve the learning ability of the model.
[0058] In this embodiment, the second analysis module 20 also performs weighted calculation on the AP values of each target category to obtain a score of the neural network model, and outputs the score for the user to evaluate the performance of the network model.
[0059] When searching for target images of the same category within the IoU threshold range, the feedback module 30 sorts the IoU thresholds of each category of targets from high to low, and also screens the target images within the IoU threshold range. The feedback module 30 can realize the user's rapid retrieval and rapid visualization of a certain category of targets through the sorting algorithm.
[0060] In this embodiment, the second analysis module 20 includes a first IoU retrieval module 21 and a second IoU retrieval module 22 (eg Figure 1 As shown in the figure, the first IoU retrieval module 21 outputs the detection image corresponding to the target category and the IoU threshold value received by the feedback module 30, and the IoU value corresponding to the target category in the detection image, so that the user can conduct targeted analysis on the IOU of a certain category of targets. The second IoU retrieval module 22 receives the detection image corresponding to the IoU threshold value output and all the IoU values in the detection image according to the feedback module 30, so that all category target information in the detection image can be browsed more conveniently, and then the image can be comprehensively analyzed.
[0061] In some embodiments, the test loss function value is also recorded and output by the first analysis module 10, so that the user can plan the improvement direction for loss calculation in combination with the loss function value. In addition, the prediction frame coordinates and the real target coordinates are also visualized by the first analysis module 10, so that the user can compare the difference between the two, thereby facilitating a preliminary understanding of the detection capability of the network model.
[0062] In summary, the present invention divides the detection results of the network model through the first analysis module 10, so that the user can quickly understand the quality of the image detection results of each category of targets, and can have a basic understanding of the detection ability of the network model in the fastest time; through the second analysis module 20, the network model is further mined based on the IoU value, so that the user can refer to the feedback results (IOU value, AP, model score, LOSS, etc.) to analyze the possible reasons for the quality of the network model detection results (for example, too few samples of a certain category of targets in the data set, network model parameter initialization problems, Loss function optimization problems, network model architecture selection problems, etc.), so as to achieve a well-founded and directional model improvement strategy. For example, the detection ability of the network model for this category of targets can be evaluated based on the detection and recognition accuracy of this category of targets within each IoU threshold range of each category of targets, so as to formulate a corresponding model improvement plan.
[0063] The present invention has been described above in conjunction with the best embodiments, but the present invention is not limited to the embodiments disclosed above, but should cover various modifications and equivalent combinations based on the essence of the present invention.
Claims
1. A neural network model optimization system, characterized in that: include: The first analysis module is used to divide the detection results of the image according to the comparison results of the detection box prediction category output by the neural network model and the actual target category and the IoU number; The second analysis module is used to calculate the intersection over union (IoU) value of each detection box and the corresponding annotation box, determine the positive and negative examples according to the size of the IoU value and the corresponding IoU threshold, and calculate the AP value of each target category; as well as The feedback module provides a visual operation interface for receiving input and outputs a corresponding detection image according to the input information; The input information includes at least one of the detection result, the target category, and the IoU threshold; The second analysis module includes a first IoU retrieval module, and the first IoU retrieval module is used to output a corresponding detection image and an IoU value corresponding to the target category in the detection image according to the target category received by the feedback module and the IoU threshold; The second analysis module also includes a second IoU retrieval module, which is used to output a corresponding detection image and all IoU values in the detection image according to the IoU threshold received by the feedback module.
2. The neural network model optimization system according to claim 1, characterized in that: The detection results include successful detection, failed detection, repeated detection and false detection; if the predicted category is the same as the target category, the detection result is a successful detection; if the target in the image cannot be detected, the detection result is a failed detection; if the IoU number is too large and causes repeated detection of the target, the detection result is a repeated detection; if the predicted category is different from the target category, the detection result is a false detection.
3. The neural network model optimization system according to claim 1, characterized in that: It also includes an output acquisition module, which is used to obtain the detection box coordinates, predicted categories and confidence levels corresponding to the predicted categories output by the neural network model; the neural network model uses non-maximum suppression processing to select several categories with larger confidence levels as the predicted categories of the detection box.
4. The neural network model optimization system according to claim 1, characterized in that: The second analysis module obtains the detection frame coordinates of the neural network model, converts the detection frame coordinates into width and height, and sets the corresponding IoU threshold according to the width and height of the detection frame.
5. The neural network model optimization system according to claim 1, characterized in that: The second analysis module performs weighted calculation on the AP value of each target category to obtain a score of the neural network model, and outputs the score.
6. A neural network model optimization method, characterized in that: include: A neural network model optimization system is provided, wherein the neural network model optimization system comprises a first analysis module, a second analysis module and a feedback module; The first analysis module divides the detection result of the image according to the comparison result of the detection box prediction category output by the neural network model and the actual target category and the IoU number; The second analysis module calculates the intersection over union (IoU) value of each detection box and the corresponding annotation box, determines the positive and negative examples according to the IoU value and the corresponding IoU threshold, and calculates the AP value of each target category; Providing a visual operation interface for receiving input through the feedback module, and outputting a corresponding detection image according to the input information; The input information includes at least one of the detection result, the target category, and the IoU threshold; The second analysis module includes a first IoU retrieval module, and the first IoU retrieval module is used to output a corresponding detection image and an IoU value corresponding to the target category in the detection image according to the target category received by the feedback module and the IoU threshold; The second analysis module also includes a second IoU retrieval module, which is used to output a corresponding detection image and all IoU values in the detection image according to the IoU threshold received by the feedback module.
7. The neural network model optimization method according to claim 6, characterized in that: The second analysis module obtains the detection frame coordinates of the neural network model, converts the detection frame coordinates into width and height, and sets the corresponding IoU threshold according to the width and height of the detection frame.
