A robot dense detection method and system based on anchor frame score optimization
Through the method based on anchor box score optimization, using CSPDarkNet model and dynamic soft label allocation strategy, the detection accuracy and real-time performance problems in robot dense target detection are solved, and more accurate and efficient fault detection is achieved.
Patent Information
- Application Number
- CN202410977157.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-22
AI Technical Summary
Existing robot-intensive target detection methods have low detection accuracy and low real-time performance. They are prone to missed or misdetected detections and cannot feedback fault information in a timely manner, resulting in production delays and economic losses.
Using a method based on anchor box score optimization, a dense target detection model is built through the CSPDarkNet deep residual network model, and combined with large-core deep convolution and dynamic soft label allocation strategies, the anchor box score calculation and model training are optimized to improve detection accuracy and real-time performance. .
It significantly improves the accuracy and reliability of robot operating status detection, reduces detection errors, and can complete detection tasks quickly and efficiently to meet real-time monitoring and control needs.
Smart Images

Figure CN118521964B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of robot technology, and in particular to a robot intensive detection method and system based on anchor frame score optimization. Background Art
[0002] At present, in today's industrial field, the application scope of intelligent robots is becoming more and more extensive. The large-scale use of robots has significantly improved production efficiency, reduced labor costs, and improved the stability and consistency of product quality. However, since robots may be affected by various factors that are difficult to predict and control during work, such as complex and changeable working environments, long-term high-intensity operation, wear and aging of parts, unstable power supply, etc., these factors may cause robot failures. Once a robot fails, it will not only cause direct economic losses, but may also cause serious safety accidents.
[0003] Therefore, it is particularly important to monitor the working status of the robot in real time. The method of real-time dense target detection of robots can solve the above problems to a large extent, but it also has certain defects. First, the detection accuracy of the detector is low, which makes the target detection model unable to accurately select the robot in real time within the monitoring range, resulting in missed detection. Secondly, the detector category classification error may mistakenly judge a robot that has already failed or is running abnormally as a normal working robot category. The system cannot respond to the faulty robot in time, resulting in production delays. Finally, the real-time performance of the detector is not high, which makes it impossible to feedback the information of the robot failure to the system in a very short time. The system cannot handle and solve the failure in the first time, resulting in more unnecessary economic losses.
[0004] An anchor frame is a frame structure used to preliminarily locate and define the area containing the target object in the target detection task. When detecting the working state of the robot, the anchor frame is used to roughly frame the possible position and shape range of the robot. By presetting a variety of different anchor frames, various possible shapes and position changes of the robot can be covered to a certain extent. How to reasonably set the size, shape and number of anchor frames according to the specific characteristics and working environment of the robot; how to deal with dynamic changes in the operation of the robot, and adjust the parameters of the anchor frame in time to avoid missed detection and false detection. Solving these problems is of great significance to give full play to the role of anchor frames in robot working state detection and ensure the safety and efficiency of industrial production.
[0005] In summary, although real-time dense target detection for robots is a potential solution, this method still needs to be continuously improved to better meet the needs of real-time monitoring of the working status of robots in industrial production and ensure the safe, efficient and stable operation of industrial production. Summary of the invention
[0006] In order to solve the above-mentioned problems, the present invention provides a robot dense detection method and system based on anchor frame score optimization.
[0007] In a first aspect, the present invention provides a robot dense detection method based on anchor frame score optimization, which adopts the following technical solution:
[0008] A robot dense detection method based on anchor box score optimization, comprising:
[0009] S1. Obtain image information of the robot in different operating states as a robot data set, perform frame selection and calibration on the data set and set state category labels, divide the data set into a training set and a test set, and preprocess the data set;
[0010] S2. Constructing a dense target detection model based on a network model, wherein the backbone network of the network model is a CSPDarkNet deep residual network model, and constructing the dense target detection model includes replacing the backbone and neck of the network model with large-core deep convolutions from basic structural convolutions, reducing the number of basic structural blocks of the network model, increasing the model width of the network model, and reducing the network depth of the network model;
[0011] S3. Use the dense object detection model to process the data set to generate the robot's anchor frame, calculate and sort the robot's anchor frame, select the anchor frame with the highest score and use it as the frame selection output for detecting the robot;
[0012] S4. Use the anchor box with the highest score to train the dense object detection model, use the dynamic soft label assignment strategy to optimize the model training, accelerate the model convergence, and obtain the state label of the robot;
[0013] S5. Use the trained dense target detection model to perform real-time detection and selection of the robot to obtain the real-time status information of the robot operation.
[0014] Furthermore, the data set includes a category label data set of different states of the robot during operation and a position coordinate data set when the robot is framed in an image, and the preprocessing of the data set includes proportional division, random flipping, cropping, adding noise and image enhancement of the data set.
[0015] Furthermore, the backbone and neck of the network model are replaced by basic structural convolutions with large-kernel deep convolutions, specifically, deep convolutions of size 5×5 are introduced into the basic building blocks of the backbone network CSPDarkNet and the path aggregation feature pyramid PAFPN.
[0016] Furthermore, the scoring and ranking of the robot's anchor frames includes classification calculation based on the target detection classification confidence and positioning quality. The formula for the scoring calculation is:
[0017] ,in, is the classification confidence, For positioning quality, is a basic linear combination, reflecting the classification confidence and positioning quality The direct product of is the adjustment factor, increasing the nonlinear weight, is the formula for the classification score.
[0018] Furthermore, the scoring and sorting of the robot's anchor frames includes sorting the anchor frame scores using an optimized non-maximum suppression method, and the sorting formula is:
[0019] ,in is an optimized non-maximum suppression method, is the classification score, For positioning quality.
[0020] Furthermore, the optimization of model training using a dynamic soft label allocation strategy includes the following steps:
[0021] A1. Filter out the anchor box with the highest score and obtain the given candidate box and the target candidate box;
[0022] A2. Calculate the positioning quality of the given candidate box and the target candidate box. The formula is:
[0023] ,in, is the candidate box, is the target frame, For positioning quality, Represents the intersection area of the candidate box and the target box, Represents the union area of the candidate box and the target box;
[0024] A3. Calculate candidate boxes With all target boxes The positioning quality is normalized to obtain the target frame set , the candidate box The distribution probability is calculated with the target frame set, and the distribution probability formula is:
[0025] ,in, Candidate box Assign to target box The distribution probability of is the total number of target boxes, For positioning quality, is a discrete random variable representing the candidate box The index of the target box to be assigned, Indicates a specific target frame The index of
[0026] A4. Use the distribution probability to calculate the classification loss and regression loss, and use the classification loss and regression loss to optimize the model.
[0027] Furthermore, the classification loss includes using cross entropy loss , the cross entropy loss for:
[0028] ,in, is the true distribution probability, is the model prediction distribution probability, is a discrete random variable representing the candidate box The index of the target box to be assigned, Indicates a specific target frame The index of .
[0029] Furthermore, the calculation of the classification loss and the regression loss using the distribution probability includes weighted calculation of the regression loss using the probability distribution, and the regression loss The calculation formula is:
[0030] ,in is the regression loss function, is the candidate box, is the target frame, is the true distribution probability, Is a discrete random variable, representing the candidate box The index of the target box to be assigned, Indicates a specific target frame The index of .
[0031] In the second aspect, a robot dense detection system based on anchor frame score optimization includes:
[0032] The data processing and acquisition module is configured to acquire image information of the robot in different operating states as a robot data set, perform frame selection and calibration on the data set and set state category labels, divide the data set into a training set and a test set, and preprocess the data set;
[0033] A model building module is configured to build a dense target detection model using a network model, wherein building the dense target detection model includes replacing the backbone and neck of the network model with large-core deep convolutions from basic structural convolutions, reducing the number of basic structural blocks of the network model, increasing the model width of the network model, and reducing the network depth of the network model;
[0034] The anchor box generation and screening module is configured to use the dense object detection model to process the data set to generate the robot's anchor box, calculate the score of the robot's anchor box and sort it, and screen out the anchor box with the highest score as the box selection output for detecting the robot;
[0035] The model training optimization module is configured to train the dense object detection model using the anchor box with the highest score, optimize the model training using the dynamic soft label assignment strategy, accelerate the model convergence, and obtain the state label of the robot;
[0036] The real-time monitoring module is configured to use the trained dense target detection model to perform real-time detection and selection of the robot to obtain real-time status information of the robot operation.
[0037] In a third aspect, the present invention provides a computer-readable storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device, a robot dense detection method based on anchor frame score optimization.
[0038] In a fourth aspect, the present invention provides a terminal device comprising a processor and a computer-readable storage medium, the processor being used to implement various instructions; the computer-readable storage medium being used to store multiple instructions, the instructions being suitable for being loaded by the processor and executing the robot dense detection method based on anchor frame score optimization.
[0039] In summary, the present invention has the following beneficial technical effects:
[0040] 1. The present invention provides a robot intensive detection method and system based on anchor frame score optimization, designs an effective feature extraction scheme, replaces the basic structural convolution of the backbone and neck of the network model with large-core deep convolution, and adjusts the number of basic building blocks, the width of the model and the depth of the network, while ensuring that the key features of the robot are not missed, greatly improving the operation efficiency of the model. This optimization method not only reduces the amount of calculation and the number of parameters of the model, reduces the time cost of training and reasoning, but also better captures the complex features of the robot, providing a more accurate and effective feature representation for subsequent detection and analysis.
[0041] 2. The present invention proposes a novel anchor frame score calculation method. By calculating specific anchor frame score information for the robot's specialized feature information, the optimal anchor point can be accurately screened out. This method significantly improves the accuracy and reliability of robot operation status detection, effectively avoids the problem of low anchor frame scores and poor screening results caused by the particularity of robot features, and provides strong support for accurate detection of robot status.
[0042] 3. The present invention has achieved a breakthrough in the optimization of the target detection model. By using the above method, the real-time performance of the model is balanced while the detection accuracy is significantly improved. The model can not only accurately detect various states of the robot, but also quickly and efficiently complete the detection task in practical applications, meet the application scenarios with high real-time requirements, and provide a practical technical solution for the real-time monitoring and control of the robot. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 4 is a schematic diagram of a robot dense detection method based on anchor frame score optimization according to Example 1 of the present invention. DETAILED DESCRIPTION
[0044] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0045] Example 1
[0046] Reference Figure 1 , a robot dense detection method based on anchor frame score optimization in this embodiment includes:
[0047] S1. Obtain image information of the robot in different operating states as a robot data set, perform frame selection and calibration on the data set and set state category labels, divide the data set into a training set and a test set, and preprocess the data set.
[0048] When acquiring robot image information, use multi-angle and multi-scene shooting methods to ensure the comprehensiveness of the data. For frame selection calibration, use high-precision annotation tools to ensure the accuracy of calibration. When setting status category labels, distinguish the robot's normal operation, fault warning, different types of action execution and other states in detail. When dividing the training set and test set, allocate them according to a certain ratio, such as 8:2 or 7:3, to ensure the adequacy of the training set and the representativeness of the test set.
[0049] The data set includes a category label data set of different states when the robot is running and a position coordinate data set when the robot is framed in an image. The preprocessing of the data set includes proportional division, random flipping, cropping, adding noise and image enhancement.
[0050] S2. Constructing a dense target detection model based on a network model, wherein the backbone network of the network model is a CSPDarkNet deep residual network model, and constructing the dense target detection model includes replacing the backbone and neck of the network model by basic structural convolutions with large-core deep convolutions, reducing the number of basic structural blocks of the network model, increasing the model width of the network model, and reducing the network depth of the network model.
[0051] Large-core deep convolution is a convolution method that has a larger kernel size than traditional small convolution kernels. Placing deep convolution directly in the building block will increase the model depth, thereby slowing down the inference speed. To solve this problem, it is necessary to further reduce the number of building blocks to reduce the model depth and compensate for the model capacity by increasing the model width to increase the inference speed without sacrificing accuracy.
[0052] The backbone and neck of the network model are replaced by basic structural convolutions with large-core deep convolutions, specifically, deep convolutions of size 5×5 are introduced into the basic building blocks of the backbone network CSPDarkNet and the path aggregation feature pyramid PAFPN to increase the effective receptive field and obtain more comprehensive context information. When introducing the 5×5 deep convolution, its effect at different positions and levels is evaluated and optimized to ensure that the global and local features of the robot can be effectively captured. By replacing the large-core deep convolution, features can be extracted more efficiently. The large-core convolution can capture a wider range of information and has a larger receptive field, thereby obtaining more comprehensive context information, reducing the number of basic building blocks, helping to reduce the complexity of the model, increasing the model width and reducing the network depth, which can improve the representation ability of the model while avoiding problems such as gradient disappearance caused by an overly deep network.
[0053] CSPDarkNet is a deep neural network architecture that is commonly used for object detection and image classification in computer vision tasks. It can extract high-level features of images and input these features into subsequent network layers for further processing and analysis.
[0054] Feature pyramid is a structure used to process multi-scale features. It is widely used in many computer vision tasks, such as target detection, semantic segmentation, behavior recognition, etc. Its main purpose is to solve the problem that targets of different sizes may have a large semantic gap after the same downsampling ratio, especially when the detection accuracy of small targets is low. Feature pyramid has the characteristics of different resolutions at different scales, so that targets of different sizes can have appropriate feature representations at the corresponding scales. By fusing multi-scale information, targets of different sizes can be predicted at different scales, thereby improving the performance of the model.
[0055] S3. Use the dense object detection model to process the dataset to generate the robot's anchor frame, calculate and sort the robot's anchor frame, and select the anchor frame with the highest score as the box selection output for detecting the robot.
[0056] The score calculation comprehensively considers the classification confidence and positioning quality of target detection, and can more accurately evaluate the effectiveness of each anchor box. The sorting and screening process can select the best box selection output from many candidate anchor boxes, providing an accurate positioning basis for subsequent detection and analysis, thereby improving the precision and accuracy of detection.
[0057] The scoring and sorting of the robot's anchor frames includes classification calculation based on the target detection classification confidence and positioning quality. The formula for the scoring calculation is:
[0058] ,in, is the classification confidence, For positioning quality, is a basic linear combination, reflecting the classification confidence and positioning quality The direct product of is the adjustment factor, increasing the nonlinear weight, It is a classification score formula that combines classification confidence and positioning quality, dynamically adjusts the target detection score, and effectively improves the accuracy and robustness of target detection.
[0059] The scoring and sorting of the robot's anchor frames includes sorting the anchor frame scores using an optimized non-maximum suppression method, and the sorting formula is:
[0060] ,in is an optimized non-maximum suppression method, is the classification score, For positioning quality, the comprehensive quality score considers the classification score of each detection box and positioning quality , improving the quality and accuracy of test results.
[0061] S4. Use the anchor box with the highest score to train the dense object detection model, and use the dynamic soft label assignment strategy to optimize the model training, accelerate model convergence, and obtain the state label of the robot.
[0062] During the training process, an adaptive learning rate adjustment strategy is used to automatically adjust the learning rate according to the training progress and performance of the model to improve training efficiency and avoid overfitting. For the dynamic soft label assignment strategy, the probability distribution of label assignment is continuously updated and adjusted to adapt to the distribution of data and the learning situation of the model.
[0063] Using the anchor box with the highest score for model training can improve training efficiency and accuracy. The function of the dynamic soft label assignment strategy is to provide richer and more accurate supervision information for model training. It is no longer a simple hard label assignment, but reflects the relationship between candidate boxes and multiple targets through probability distribution. Accelerating the convergence speed of the model enables the model to achieve better performance faster and accurately predict the state label of the robot.
[0064] The dynamic soft label allocation optimization of S4 uses the optimized dynamic soft label allocation strategy to optimize the training of the model. The optimized dynamic soft label allocation strategy reflects the relationship between each candidate box and multiple targets by assigning a probability distribution to each candidate box, rather than just assigning a hard label.
[0065] The method of optimizing model training by using a dynamic soft label allocation strategy includes the following steps:
[0066] A1. Filter out the anchor box with the highest score and obtain the given candidate box and the target candidate box;
[0067] A2. Calculate the positioning quality of the given candidate box and the target candidate box. The formula is:
[0068] ,in, is the candidate box, is the target frame, For positioning quality, Represents the intersection area of the candidate box and the target box, Represents the union area of the candidate box and the target box;
[0069] A3. Calculate candidate boxes With all target boxes The positioning quality is normalized to obtain the target frame set , the candidate box The distribution probability is calculated with the target frame set, and the distribution probability formula is:
[0070] ,in, Candidate box Assign to target box The distribution probability of is the total number of target boxes, For positioning quality, is a discrete random variable representing the candidate box The index of the target box to be assigned, Indicates a specific target frame The index of
[0071] A4. Use the distribution probability to calculate the classification loss and regression loss, and use the classification loss and regression loss to optimize the model.
[0072] The classification loss includes using the cross entropy loss , the cross entropy loss for:
[0073] ,in, is the true distribution probability, is the model prediction distribution probability, is a discrete random variable representing the candidate box The index of the target box to be assigned, Indicates a specific target frame The index of .
[0074] The method of calculating the classification loss and regression loss by using the distribution probability includes weighting the regression loss by using the probability distribution. The calculation formula is:
[0075] ,in is the regression loss function, is the candidate box, is the target frame, is the true distribution probability, is a discrete random variable representing the candidate box The index of the target box to be assigned, Indicates a specific target frame The index of .
[0076] The dynamic soft label assignment strategy helps to deal with boundary samples and fuzzy samples and improve the robustness and detection accuracy of the model.
[0077] Regression loss function Candidate boxes used to measure predictions With the real target box In this embodiment, the regression loss function uses Smooth L1 loss or IoU loss.
[0078] Smooth L1 loss and IoU loss are two common loss functions for regression tasks:
[0079] Smooth L1 loss uses square loss for smaller errors and linear loss for larger errors, which has the advantage of being insensitive to outliers. IoU loss directly calculates the loss based on the intersection-over-union ratio of the predicted box and the true box, which can directly reflect the degree of overlap between the two boxes.
[0080] Using a dynamic soft label assignment strategy, combined with such a regression loss function, can better handle samples that are at the boundary, that is, samples that are not clearly in a certain category and ambiguous samples whose features are not clear. This enables the model to learn and predict more robustly when facing complex and uncertain situations, thereby improving the robustness of the model and the accuracy of detection. For example, in some scenarios, part of the image of the robot may be occluded or incomplete, resulting in blurred features or unclear boundaries. With this strategy and loss function, the model can more accurately predict the position and state of the robot, reducing misjudgments and missed judgments.
[0081] S5. Use the trained dense target detection model to perform real-time detection and selection of the robot to obtain the real-time status information of the robot operation.
[0082] Based on robot state detection, the real-time state information of the robot during operation is obtained. Based on the trained dense target detection model, the trained weight parameter pth file is used to perform dense target detection on the operation state of multiple robots running in real time. Through real-time box selection and label category assignment of the model, the operation state information of the robot at a certain time and space is finally fed back.
[0083] The present invention designs an effective feature extraction scheme to improve the running speed of the model without losing the robot's features, and proposes a novel anchor frame score calculation method to screen out the best anchor point by calculating specific anchor frame score information, thereby improving the accuracy of robot operation status detection.
[0084] Example 2
[0085] This embodiment provides a system, including:
[0086] In the second aspect, a robot dense detection system based on anchor frame score optimization includes:
[0087] The data processing and acquisition module is configured to acquire image information of the robot in different operating states as a robot data set, perform frame selection and calibration on the data set and set state category labels, divide the data set into a training set and a test set, and preprocess the data set;
[0088] A model building module is configured to build a dense target detection model using a network model, wherein building the dense target detection model includes replacing the backbone and neck of the network model with large-core deep convolutions from basic structural convolutions, reducing the number of basic structural blocks of the network model, increasing the model width of the network model, and reducing the network depth of the network model;
[0089] The anchor box generation and screening module is configured to use the dense object detection model to process the data set to generate the robot's anchor box, calculate the score of the robot's anchor box and sort it, and screen out the anchor box with the highest score as the box selection output for detecting the robot;
[0090] The model training optimization module is configured to train the dense object detection model using the anchor box with the highest score, optimize the model training using the dynamic soft label assignment strategy, accelerate the model convergence, and obtain the state label of the robot;
[0091] The real-time monitoring module is configured to use the trained dense target detection model to perform real-time detection and selection of the robot to obtain real-time status information of the robot operation.
[0092] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded and executed by a processor of a terminal device, a robot intensive detection method based on anchor frame score optimization.
[0093] A terminal device includes a processor and a computer-readable storage medium, wherein the processor is used to implement various instructions; the computer-readable storage medium is used to store multiple instructions, wherein the instructions are suitable for being loaded by the processor and executing the robot intensive detection method based on anchor frame score optimization.
[0094] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A robot intensive detection method based on anchor frame score optimization, characterized in that: include: S1. Obtain image information of the robot in different operating states as a robot data set, perform frame selection and calibration on the data set and set state category labels, divide the data set into a training set and a test set, and preprocess the data set; S2. Constructing a dense target detection model based on the network model, wherein the backbone network of the network model is a CSPDarkNet deep residual network model, and constructing the dense target detection model includes replacing the backbone and neck of the network model with large-core deep convolution from basic structural convolution, reducing the number of basic structural blocks of the network model, increasing the model width of the network model, and reducing the network depth of the network model; S3. Use the dense object detection model to process the data set to generate the robot's anchor frame, calculate and sort the robot's anchor frame, select the anchor frame with the highest score and use it as the frame selection output for detecting the robot; The scoring and sorting of the robot's anchor frames includes classification calculation based on the target detection classification confidence and positioning quality. The formula for the scoring calculation is: ,in, is the classification confidence, For positioning quality, is a basic linear combination, is the adjustment factor, increasing the nonlinear weight, is the formula for the classification score; The scoring and sorting of the robot's anchor frames includes sorting the anchor frame scores using an optimized non-maximum suppression method, and the sorting formula is: ,in is an optimized non-maximum suppression method, is the classification score, For positioning quality; S4. Use the anchor frame with the highest score to train the dense target detection model, use the dynamic soft label allocation strategy to optimize the model training, accelerate the model convergence, and obtain the state label of the robot; The method of optimizing model training by using a dynamic soft label allocation strategy includes the following steps: A1. Filter out the anchor box with the highest score and obtain the given candidate box and the target candidate box; A2. Calculate the positioning quality of the given candidate box and the target candidate box. The formula is: ,in, is the candidate box, is the target frame, For positioning quality, Represents the intersection area of the candidate box and the target box, Represents the union area of the candidate box and the target box; A3. Calculate candidate boxes With all target boxes The positioning quality is normalized to obtain the target frame set , the candidate box The distribution probability is calculated with the target frame set, and the distribution probability formula is: ,in, Candidate box Assign to target box The distribution probability of is the total number of target boxes, For positioning quality, is a discrete random variable representing the candidate box The index of the target box to be assigned, Indicates a specific target frame The index of A4. Use the distribution probability to calculate the classification loss and regression loss, and use the classification loss and regression loss to optimize the model; S5. Use the trained dense target detection model to perform real-time detection and selection of the robot to obtain the real-time status information of the robot operation.
2. The robot dense detection method based on anchor frame score optimization according to claim 1, characterized in that: The backbone and neck of the network model are replaced by basic structural convolutions with large-kernel deep convolutions, specifically, deep convolutions of size 5×5 are introduced into the basic building blocks of the backbone network CSPDarkNet and the path aggregation feature pyramid PAFPN.
3. The robot intensive detection method based on anchor frame score optimization according to claim 1, characterized in that: The classification loss includes using the cross entropy loss , the cross entropy loss for: ,in, is the true distribution probability, is the model prediction distribution probability, is a discrete random variable representing the candidate box The index of the target box to be assigned, Indicates a specific target frame The index of .
4. The robot intensive detection method based on anchor frame score optimization according to claim 1, characterized in that: The method of calculating the classification loss and regression loss by using the distribution probability includes weighting the regression loss by using the probability distribution. The calculation formula is: ,in is the regression loss function, is the candidate box, is the target frame, is the true distribution probability, is a discrete random variable representing the candidate box The index of the target box to be assigned, Indicates a specific target frame The index of .
5. A robot dense detection system based on anchor frame score optimization, characterized in that: include: The model training optimization module is configured to utilize the data processing and acquisition module, which is configured to acquire image information of the robot in different operating states as a robot data set, perform frame selection and calibration on the data set and set state category labels, divide the data set into a training set and a test set, and preprocess the data set; A model building module is configured to build a dense target detection model using a network model, wherein building the dense target detection model includes replacing the backbone and neck of the network model with large-core deep convolutions from basic structural convolutions, reducing the number of basic structural blocks of the network model, increasing the model width of the network model, and reducing the network depth of the network model; The anchor box generation and screening module is configured to use the dense object detection model to process the data set to generate the robot's anchor box, calculate the score of the robot's anchor box and sort it, and screen out the anchor box with the highest score as the box selection output for detecting the robot; The scoring and sorting of the robot's anchor frames includes classification calculation based on the target detection classification confidence and positioning quality. The formula for the scoring calculation is: ,in, is the classification confidence, For positioning quality, is a basic linear combination, is the adjustment factor, increasing the nonlinear weight, is the formula for the classification score; The scoring and sorting of the robot's anchor frames includes sorting the anchor frame scores using an optimized non-maximum suppression method, and the sorting formula is: ,in is an optimized non-maximum suppression method, is the classification score, To locate the quality; The anchor frame with the highest score is used to train the dense target detection model, and the dynamic soft label allocation strategy is used to optimize the model training, accelerate the model convergence, and obtain the state label of the robot; The method of optimizing model training by using a dynamic soft label allocation strategy includes the following steps: A1. Filter out the anchor box with the highest score and obtain the given candidate box and the target candidate box; A2. Calculate the positioning quality of the given candidate box and the target candidate box. The formula is: ,in, is the candidate box, is the target frame, For positioning quality, Represents the intersection area of the candidate box and the target box, Represents the union area of the candidate box and the target box; A3. Calculate candidate boxes With all target boxes The positioning quality is normalized to obtain the target frame set , the candidate box The distribution probability is calculated with the target frame set, and the distribution probability formula is: ,in, Candidate box Assign to target box The distribution probability of is the total number of target boxes, For positioning quality, is a discrete random variable representing the candidate box The index of the target box to be assigned, Indicates a specific target frame The index of A4. Use the distribution probability to calculate the classification loss and regression loss, and use the classification loss and regression loss to optimize the model; The real-time monitoring module is configured to use the trained dense target detection model to perform real-time detection and selection of the robot to obtain real-time status information of the robot operation.
6. A computer-readable storage medium storing a plurality of instructions, characterized in that: The instructions are suitable for being loaded by a processor of a terminal device and executing a robot intensive detection method based on anchor frame score optimization as described in claim 1.
7. A terminal device, comprising a processor and a computer-readable storage medium, wherein the processor is used to implement each instruction; and the computer-readable storage medium is used to store multiple instructions, characterized in that: The instructions are suitable for being loaded by a processor and executing the robot dense detection method based on anchor box score optimization as claimed in claim 1.
