A YOLO_SR system, a target detection method and device for robotic vacuum cleaners.

By introducing the inverse residual unit of online data enhancement and attention mechanism and the dilated convolutional pyramid pooling unit into the YOLO_SR system, the problem of low detection performance of YOLOv4-tiny is solved and the detection of multi-scale objects by the sweeping robot is significantly improved. Accuracy and real-time performance.

CN116012601BActive Publication Date: 2024-09-20SUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310055827.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-16
Publication Date
2024-09-20
Estimated Expiration
2043-01-16

AI Technical Summary

Technical Problem

The existing lightweight target detection network YOLOv4-tiny has low detection performance in sweeping robots and cannot extract deep features, resulting in reduced multi-scale object detection performance, especially small object detection accuracy.

Method used

In the YOLO_SR system, through improvements at the input end and backbone network, online data enhancement, attention mechanism's inverse residual unit (SEIR) and dilated convolutional pyramid pooling unit (ASPP) are introduced to improve feature extraction capabilities and improve Detection performance for multi-scale targets.

Benefits of technology

While maintaining high real-time performance, the detection accuracy is significantly improved, especially the detection performance of small targets, and the obstacle avoidance ability of the sweeping robot for multi-scale objects is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116012601B
    Figure CN116012601B
Patent Text Reader

Abstract

The present invention relates to a YOLO_SR system, a target detection method and device for a sweeping robot, and the method comprises: step S1: acquiring an image captured in real time by the sweeping robot; step S2: inputting the image into a constructed YOLO_SR system, and identifying various target obstacles in the image through the YOLO_SR system, so that the sweeping robot can avoid various target obstacles. The present invention improves the YOLO_SR system, not only improving the feature extraction capability of the sweeping robot, but also improving the detection capability of multi-scale target objects. Experiments have proved that the present invention has a good obstacle avoidance effect and strong versatility when the YOLO_SR system is applied to the sweeping robot.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of target detection technology, and in particular to a YOLO_SR system, a target detection method and a device for a sweeping robot. Background Art

[0002] Object detection is a basic task in the field of computer vision. It not only needs to classify objects in images, but also requires accurate positioning. Object detection has a wide range of applications in many fields such as intelligent security, unmanned driving, home life, and service robots. With the continuous improvement of computer computing performance, object detection algorithms based on deep learning have gradually become mainstream. While the object detection performance has been improved, the shortcomings of deep neural networks themselves, such as large parameter scale and high computational complexity, have become increasingly obvious. In order to promote the deployment of deep learning networks on the embedded side, lightweight networks have been rapidly developed, with the aim of reducing the number of model parameters and ensuring real-time performance and detection accuracy. At present, the research on lightweight networks is mainly divided into two directions: (1) compressing the existing network model. Commonly used methods include parameter pruning, low-rank decomposition, compact filter design, and knowledge distillation. Through the above methods, the number of network parameters and the amount of computation can be reduced while maintaining the network performance. (2) The other is to adopt lightweight ideas in model design to maximize the feature extraction ability of the network within a limited number of layers. Although the number of parameters and the amount of computation are greatly reduced, it is at the expense of a certain degree of detection accuracy. Therefore, for existing lightweight networks, it is necessary to improve accuracy while ensuring high real-time performance.

[0003] At present, the application of target detection in sweeping robots has been recognized by the market. Whether the sweeping robot can effectively avoid obstacles directly affects the cleaning effect. Therefore, the target detection performance of the sweeping robot is crucial. The built-in target detection network of the sweeping robot needs to have high precision and real-time performance under the premise of lightweight network.

[0004] Existing lightweight networks such as YOLOv4-t i ny (You On ly Look Once, YOLO), the following briefly describes the structure and feature extraction process of the lightweight model:

[0005] YOLOv4-t i ny is a typical lightweight network model and a simplified version of YOLOv4, with its parameters reduced to one tenth of YOLOv4. Compared with the 162-layer YOLOv4 network structure, this network is reduced to 38 layers, three residual units are used in the backbone network, the activation function uses LeakyReLU, the merged effective feature layer uses the feature pyramid (FPN) structure, and the prediction output layer (Yo l oHead) is reduced from three to two.

[0006] YOLOv4-t i ny has the characteristics of multi-task, end-to-end, attention mechanism and multi-scale. Multi-task can be understood as completing the classification and regression of the target at the same time, realizing parameter sharing and avoiding overfitting; end-to-end means that the network model automatically learns and obtains features after receiving image information, and directly gives classification and regression prediction information; the attention mechanism focuses on the features of the target area to be detected, so as to quickly obtain effective features; multi-scale usually fuses up-sampled and down-sampled data, so as to detect targets of multiple scales. When training the model, methods such as Mosaci data enhancement, label smoothing, and learning rate cosine annealing decay can be used to improve the training speed and detection accuracy of the model.

[0007] The structure diagram of the YOLOv4-t i ny model is as follows Figure 1 As shown, in this case, YOLOv4-t i The feature extraction process of ny is described in detail. When the input image size is 416×416×3, it becomes 208×208×32 after filtering through a convolution filter with a step size of 2 (3×3×3×32, where the first two parameters constitute 3×3, which is the kernel size of the convolution filter, the third parameter 3 is the number of channels, and corresponds to the number of channels of the input image, and the fourth parameter 32 is the number of convolution filters, which corresponds to the number of channels of the output feature). Similarly, it becomes 104×104×64 after filtering through a convolution filter with a step size of 2 (3×3×3×64). In the further processing process, the residual unit is introduced, and the output is 52×52×128 in combination with the pooling layer. After three similar residual units repeatedly extract features, the convolution filter with a step size of 2 is obtained (13×13×512), which is combined with the convolution filter (1×1×256×255) to finally obtain the first output layer of size 13×13×255. In order to improve the detection capability of multi-scale objects, the 13×13×512 layer is convolved to obtain 13×13×256, and then convolved again with upsampling to obtain 26×26×128, and fused with 26×26×256 to obtain an output of 26×26×384, which is obtained through a convolution filter (3×3×384×256) to obtain 26×26×256, and then convolved again (1×1×256×255) to obtain a second predicted output size of 26×26×255. After the above steps, the feature extraction process of the lightweight network is formed.

[0008] YOLOv4-t i ny has a small number of parameters. Although the detection speed is very high, it sacrifices accuracy. First, the lightweight network has fewer layers and cannot extract deep semantic information, which is very important for positioning involved in target detection. Second, when the input size is 416×416, the prediction output layer of the network is 13×13 and 26×26, which reduces a very important prediction output layer of 52×52 compared to YOLOv4, resulting in a decrease in the detection performance of multi-scale objects, especially small objects. Finally, the network lacks the ability to screen important features and cannot efficiently extract features that are highly correlated with the recognition target. Summary of the invention

[0009] To this end, the technical problem to be solved by the present invention is to overcome the problem that the YOLOv4-t i ny model in the prior art has low detection performance and cannot extract deep features, thereby resulting in a decrease in the detection performance of the sweeping robot for multi-scale objects.

[0010] To solve the above technical problems, the present invention provides a YOLO_SR system, comprising an image enhancement module, two first CBL units, a first feature extraction module, a first Concat layer, a second CBL unit and a second feature extraction module connected in sequence, wherein the first feature extraction module and the second feature extraction module are connected; the second feature extraction module is provided with a first output end and a second output end, the first output end is connected to two third CBL units, and the second output end is connected to two fourth CBL units;

[0011] The first feature extraction module includes two CIRB units, a first SEIR unit, a fifth CBL unit and a second SEIR unit connected in sequence, the output of the first SEIR unit is connected to the second feature extraction module, and the output of the fifth CBL unit is connected to the first Concat layer.

[0012] The CIRB unit includes a third SEIR unit, a sixth CBL unit, a fourth SEIR unit, a second Concat layer, a seventh CBL unit, a third Concat layer and a first POOL layer connected in sequence, the output of the third SEIR unit is connected to the third Concat layer, and the output of the sixth CBL unit is connected to the second Concat layer.

[0013] The first SE IR unit, the second SE IR unit, the third SEIR unit and the fourth SE IR unit each include a seventh CBL unit, a Dwi se layer, a first SE layer, a first convolutional layer, a first BN layer, a Li near layer, a second SE layer and an addition layer connected in sequence, and the input of the seventh CBL unit and the output of the Li near layer are connected.

[0014] The second feature extraction module includes a fourth Concat layer, a second POOL layer, an eighth CBL unit, a first ASPP unit and two ninth CBL units connected in sequence, the input of the fourth Concat layer is connected to the second ASPP unit and the tenth CBL unit in sequence, the output of the second ninth CBL unit is connected to the eleventh CBL unit and the first upsampling layer in sequence, and the outputs of the first upsampling layer and the tenth CBL unit are respectively connected to the fifth Concat layer.

[0015] The first ASPP unit and the second ASPP unit include a first atrous convolution layer, a second atrous convolution layer, a third atrous convolution layer, a fourth atrous convolution layer and a third POOL layer arranged in parallel, the third POOL layer is connected to the second upsampling layer, and the first atrous convolution layer, the second atrous convolution layer, the third atrous convolution layer, the fourth atrous convolution layer and the second upsampling layer are respectively connected to the sixth Concat layer.

[0016] The first to eleventh CBL units each include a second convolutional layer, a second BN layer, and an activation function layer which are connected in sequence.

[0017] In order to solve the above technical problems, the present invention provides a target detection method for a sweeping robot, comprising:

[0018] Step S1: Acquire the image captured by the sweeping robot in real time;

[0019] Step S2: inputting the image into the YOLO_SR system as described above, and identifying various target obstacles in the image through the YOLO_SR system, so that the sweeping robot can avoid various target obstacles.

[0020] In order to solve the above technical problems, the present invention provides a target detection device for a sweeping robot, comprising:

[0021] Acquisition module: used to acquire images captured by the sweeping robot in real time;

[0022] Recognition module: used to input the image into the YOLO_SR system, and identify various target obstacles in the image through the YOLO_SR system, so that the sweeping robot can avoid various target obstacles.

[0023] To solve the above technical problems, the present invention provides a sweeping robot, 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 above target detection method for the sweeping robot when executing the computer program.

[0024] In order to solve the above technical problem, the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above target detection method for a sweeping robot are implemented.

[0025] The above technical solution of the present invention has the following advantages compared with the prior art:

[0026] The present invention improves the input end, backbone network and neck of the YOLO_SR system (lightweight model) respectively, and improves the generalization ability of the model through online data enhancement; the present invention uses the inverse residual unit (SEI R) with attention mechanism to improve the feature extraction ability of the backbone network, and integrates the semantic information of different receptive fields of the ASPP unit combination, effectively improving the detection performance of the model for multi-scale targets, especially small targets, and obtaining high detection accuracy while maintaining high real-time performance;

[0027] The YOLO_SR system of the present invention is applied to a sweeping robot to achieve a better obstacle avoidance effect, making it convenient for the sweeping robot to perform all-round cleaning. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments of the present invention in conjunction with the accompanying drawings.

[0029] Figure 1 It is a structural diagram of the YOLOv4-t i ny model in the background technology;

[0030] Figure 2 is a flow chart of a method in an embodiment of the present invention;

[0031] Figure 3 is a structural diagram of a YOLO_SR system in an embodiment of the present invention;

[0032] Figure 4 is a flow chart of target detection based on the YOLO_SR system in an embodiment of the present invention;

[0033] Figure 5 This is a visualization diagram of the target detection results of the sweeping robot based on the YOLO_SR system in an embodiment of the present invention. DETAILED DESCRIPTION

[0034] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0035] Embodiment 1

[0036] Based on YOLOv4-t i ny, this paper proposes a new lightweight network system and names it YOLO_SR (YOLO for Service Robot) system. The specific network model is shown in Table 1.

[0037] Table 1 YOLO_SR system network architecture

[0038]

[0039]

[0040] As can be seen from Table 1, the YOLO_SR system has increased from 38 layers to 42 layers, which is only 4 layers more than YOLOv4-t i ny. The improvements are shown in bold in the table, including online data enhancement that integrates Mosaic and traditional data enhancement (color-based) at the input, 6 SEIR units with attention mechanism in the backbone network, 2 Atrous Convolution Pyramid Pooling units (ASPP units) and two convolutional layers.

[0041] The following is a detailed description of the improvement process of the YOLO_SR system:

[0042] First, based on the random concept, a method combining traditional data enhancement (mainly based on color) with Mosaic data enhancement is proposed, and an online enhancement method is introduced according to the characteristics of the data set. The method of online data enhancement can not only avoid the explosive increase of data, but also make full use of the support of the Pytorch framework for online data enhancement and accelerate it through the GPU. In order to maximize the richness of the data set, the present embodiment sets an image enhancement module: introduce a random method for fusion, as follows: first set a fixed threshold of 0.5, and generate a random number between 0 and 1. When the random number is less than 0.5, the Mosaic enhancement method is adopted (such as synthesizing 4 pictures into one picture). When the random number is greater than 0.5, a color-based data enhancement method is adopted (such as enhancing each of the 4 pictures), including randomly adding Gaussian noise, Gaussian blur, contrast or brightness. From the perspective of the entire training set, some pictures use the Mosaic data enhancement method, and some pictures choose color-based enhancement methods, such as adding Gaussian noise, Gaussian blur and changing contrast. It should be noted that when the random number is equal to 0.5, the picture remains unchanged. When all training sets complete one epoch, the data for the next round will change, and the model will not be easily overfitted after multiple rounds of training.

[0043] Secondly, the 3rd convolutional layer (CBL) in the original network (i.e. YOLOv4-tiny) is replaced with an inverse residual unit (SEIR) with an attention mechanism. Considering that the next 5th layer is the output of the 3rd layer (the 4th layer is the Route layer), in order to ensure that more features are obtained at different depths, the 6th convolutional layer is replaced with an inverse residual unit (SEIR) with an attention mechanism, and is fused with the 5th layer through a small residual (few skip layers, such as Route56 in the table). Finally, the above features are convolved through the 8th layer and fused with the replaced 3rd layer (large residual, more skip layers, such as Route38 in the table). Through the above two replacements with the inverse residual unit (SEIR) with an attention mechanism and the repeated fusion of features combined with large and small residuals, the backbone network can obtain more feature information in a limited number of layers and pay more attention to effective feature information. Since the latter two parts have similar structures, this embodiment adopts the same strategy to replace the 11th, 14th, 19th and 22nd layers with SEIR with attention mechanism. Although the replacement methods are similar, they are respectively located in the shallow, middle and deep layers of the backbone network, effectively improving the feature extraction capability of the network in a limited number of layers.

[0044] Finally, in this embodiment, the ASPP unit is added after the backbone network, specifically 24+1 and 27+1 in the table. The specific ASPP unit consists of four hole convolutions (the convolution kernels are all 3*3, and the expansion rates are 1, 6, 12, and 18 respectively) and an adaptive pooling structure. After the input features pass through the ASPP unit, they are processed by each branch and fused to generate a new feature map, and the output channel is 5 times the input channel. In order to ensure that the input channel and output channel of the network are consistent, point-by-point convolution is added after the ASPP unit to restore the original channel dimension, specifically 24+2 and 27+2 in Table 1. Since the input image has been convolved and pooled many times in the backbone network, the backbone network outputs abstract semantic information. On the one hand, adding the ASPP unit can increase the range of the receptive field and improve the detection performance of multi-scale objects. On the other hand, the scale of the feature map can be not reduced, so that the detailed information of the image boundary can be extracted, and the ability of the network to obtain multi-scale context can be enhanced. This embodiment effectively combines the semantic information of different receptive fields by integrating the ASPP unit, thereby improving the detection performance of multi-scale objects, especially small objects.

[0045] For ease of understanding, this embodiment converts the YOLO_SR system in Table 1 into Figure 3 The visual model structure diagram is as follows:

[0046] The YOLO_SR system includes an image enhancement module, two first CBL units, a first feature extraction module, a first Concat layer, a second CBL unit, and a second feature extraction module connected in sequence, wherein the first feature extraction module and the second feature extraction module are connected; the second feature extraction module is provided with a first output end and a second output end, wherein the first output end is connected to two third CBL units, and the second output end is connected to two fourth CBL units;

[0047] The image enhancement module is used to enhance the image; the first feature extraction module is used to enhance the feature extraction capability of the backbone network in the YOLO_SR system; the second feature extraction module is used to improve the detection capability of multi-scale target objects; the first CBL unit, the second CBL unit, the third CBL unit and the fourth CBL unit are all used to extract features, normalize and nonlinearize; the first Concat layer is used to fuse the number of feature channels.

[0048] It is worth mentioning that the improvements of the YOLO_SR system in this embodiment are mainly reflected in the first feature extraction module and the second feature extraction module, that is, the convolutional layers of different depths in the first feature extraction module are replaced with SEIR units to improve the feature extraction and optimization capabilities of the backbone network; at the same time, two ASPP units are introduced in the second feature extraction module to improve the detection capability of multi-scale target objects.

[0049] Furthermore, the first feature extraction module of the present embodiment includes two CIRB units, a first SEIR unit, a fifth CBL unit and a second SEIR unit connected in sequence, the output of the first SEIR unit is connected to the second feature extraction module, and the output of the fifth CBL unit is connected to the first Concat layer; wherein the CIRB unit is used to extract more features by expanding the YOLO_SR system width, the first SEIR unit and the second SEIR unit are used to extract shallow features, middle features and deep features by expanding the channel width and filter out the most important features; the fifth CBL unit is used for feature extraction, normalization and nonlinearization.

[0050] Furthermore, the CIRB unit of this embodiment includes a third SE IR unit, a sixth CBL unit, a fourth SE IR unit, a second Concat layer, a seventh CBL unit, a third Concat layer and a first POOL layer connected in sequence, the output of the third SEIR unit is connected to the third Concat layer, and the output of the sixth CBL unit is connected to the second Concat layer; wherein the third SEIR unit and the fourth SE IR unit are used to extract shallow features, middle features and deep features by expanding the channel width and filter out the most important features, the sixth CBL unit and the seventh CBL unit are used for feature extraction, normalization and nonlinearization, the second Concat layer and the third Concat layer are used to fuse the number of feature channels, and the first POOL layer is used for dimensionality reduction.

[0051] Furthermore, the first SEIR unit, the second SEIR unit, the third SEIR unit and the fourth SEIR unit of this embodiment all include a seventh CBL unit, a Dwise layer, a first SE layer, a first convolutional layer, a first BN layer, a Li near layer, a second SE layer and an addition layer connected in sequence, and the input of the seventh CBL unit and the output of the Li near layer are connected; wherein the seventh CBL unit is used for feature extraction, normalization and nonlinearization, the Dwise layer (depthwise separable convolutional layer) is used to reduce the amount of calculation, the first SE layer (attention layer) and the second SE layer (attention layer) are used to screen out the most important features, that is, to focus on more important and more effective features; the first BN layer (normalization layer) is used to avoid overfitting, and the Li near layer is used for dimensionality reduction to ensure that the number of input channels and output channels is consistent.

[0052] Further, the second feature extraction module of the present embodiment includes a fourth Concat layer, a second POOL layer, an eighth CBL unit, a first ASPP unit and two ninth CBL units connected in sequence, the input of the fourth Concat layer is connected in sequence to the second ASPP unit and the tenth CBL unit, the output of the second ninth CBL unit is connected in sequence to the eleventh CBL unit and the first upsampling layer, and the outputs of the first upsampling layer and the tenth CBL unit are respectively connected to the fifth Concat layer; wherein the fourth Concat layer and the fifth Concat layer are used to fuse the number of feature channels, the eighth to eleventh CBL units are used for feature extraction, normalization and nonlinearization, and the first ASPP unit and the second ASPP unit are used to increase the receptive field and improve the detection capability of multi-scale target objects.

[0053] Furthermore, the first ASPP unit and the second ASPP unit of the present embodiment include a first atrous convolution layer (expansion rate Rate=1), a second atrous convolution layer (expansion rate Rate=6), a third atrous convolution layer (expansion rate Rate=12), a fourth atrous convolution layer (expansion rate Rate=18) and a third POOL layer arranged in parallel, the third POOL layer is connected to the second upsampling layer, the first atrous convolution layer, the second atrous convolution layer, the third atrous convolution layer, the fourth atrous convolution layer and the second upsampling layer are respectively connected to the sixth Concat layer; wherein the third POOL layer is used for dimensionality reduction, and the sixth Concat layer is used for fusing the number of feature channels.

[0054] Furthermore, the first CBL unit to the eleventh CBL unit of this embodiment include a second convolutional layer, a second BN layer and an activation function layer (Leakyre lu layer) connected in sequence, wherein the second BN layer is used to avoid overfitting, and the activation function layer is used to introduce nonlinear features into the YOLO_SR system.

[0055] Embodiment 2

[0056] Reference Figure 2 As shown, the target detection method for a sweeping robot of the present invention includes:

[0057] Step S1: Acquire the image captured by the sweeping robot in real time;

[0058] Step S2: inputting the image into the YOLO_SR system as described in the first embodiment, and identifying various target obstacles in the image through the YOLO_SR system, so that the sweeping robot can avoid various target obstacles.

[0059] The following is a detailed analysis of this embodiment in combination with experiments:

[0060] The main parameters of this embodiment in the experiment are set as follows: the pre-training weight is set to empty (the new network architecture cannot load the pre-training weight), and the training is performed for 400 epochs, the block size is set to 16 (a block means that 16 pictures are input each time, and then data enhancement is performed), the input image size is 416×416×3, the momentum is set to 0.9, the weight decay regularization coefficient is set to 0.0005, and the initial learning rate is set to 0.001. The data set used in the experiment is a self-collected benchmark data set for sweeping robots, totaling 8100 images, of which the training set accounts for 80%, totaling 6480 images, and the test set accounts for 20%, totaling 1620 images.

[0061] Specifically, the implementation steps are as follows:

[0062] 1. Using an online data augmentation method based on a random model at the input of the YOLO_SR system improves the accuracy from 68.03% to 71.66%, while keeping the model size unchanged and the speed reaching 432FPS, see Table 2.

[0063] 2. Based on the first step, we continue to add SEIR units, the accuracy is improved from 71.66% to 73.25%, the model size is increased by 2.6M, and the speed reaches 306FPS, see Table 2.

[0064] 3. Based on the first step, the ASPP unit is added, the accuracy is improved from 71.66% to 77.34%, the model size is increased by 2.3M, and the speed reaches 326FPS, see Table 2.

[0065] 4. By integrating data enhancement, SEIR unit and ASPP unit, the accuracy is improved from the initial 68.03% to 81.18%, the model is increased by 4.3M, and the speed reaches 243FPS, as shown in Table 2.

[0066] Table 2 Ablation experiment results

[0067]

[0068] In order to further verify the effectiveness of this embodiment, the present invention adjusts the coefficient in the SEIR unit, wherein the system in the SE layer is set to 0.125, and the expansion coefficient is gradually increased from the initial 1 until the mAP no longer increases or decreases. The experimental results are shown in Table 3.

[0069] Table 3 Index values ​​of different expansion coefficients

[0070] factor Model size mAP / % FPS 1 28.2M 81.18 243 2 29.1M 80.78 237 3 30.0M 81.90 230 4 31.0M 82.66 185 5 31.9M 78.92 175

[0071] As the expansion coefficient increases, the model also becomes larger. Specific implementation steps:

[0072] 1. When the coefficient is set to 1, the model size is 28.2M, the mAP is 81.18%, and the speed reaches 243FPS;

[0073] 2. When the increase factor is 2, the model size is 29.1M, the mAP is 80.78%, and the speed reaches 237FPS;

[0074] 3. When the increase factor is 3, the model size is 30.0M, the mAP is 81.90%, and the speed reaches 230FPS;

[0075] 4. When the increase factor is 4, the model size is 31.0M, the mAP is 82.66%, and the speed reaches 185FPS;

[0076] 5. When the increase factor is 5, the model size is 31.9M, the mAP is 78.92%, and the speed reaches 175FPS.

[0077] It can be seen that the YOLO_SR system of this embodiment can be adjusted according to actual needs. When the sweeping robot pays more attention to the real-time detection, a setting with fast speed and higher accuracy can be adopted; when the sweeping robot pays more attention to the detection accuracy, a setting with high accuracy and slightly lower speed can be adopted, thereby achieving the best balance between speed and accuracy.

[0078] See also Figure 4 , This embodiment is mainly used for obstacle avoidance of sweeping robots in indoor home environments. The process is mainly divided into four parts: The first part is mainly to collect data sets in the actual indoor environment, totaling 6000 pictures and 16409 instances, which include 14 types of objects, namely beds, sofas, cabinets, stools, tables, toilets, trash cans, slippers, wires, socks, carpets, books, feces and curtains. Secondly, the pictures are calibrated, and the data sets are divided into training sets and test sets, with proportions of 84% and 16% respectively. Before the system loads the training set, online data enhancement (i.e., data set enhancement) based on the random model is performed. The second part is mainly to use the improved system (i.e., YOLO_SR system) for training. The main training process includes anchor frame setting, parameter setting, network initialization, and training until the loss function converges. The third part is to test the YOLO_SR system. By loading the test picture and inputting the picture into the loaded YOLO_SR system, the model is used to detect the picture and output the result through non-maximum suppression. On the one hand, mAP and AP of each category can be obtained, and at the same time, the detection result of each picture can be visualized. The fourth part is to apply target recognition to path planning, guide the sweeping robot to avoid obstacles autonomously, and improve the efficiency and safety of path planning. Figure 5 .

[0079] Embodiment 3

[0080] This embodiment provides a target detection device for a sweeping robot, comprising:

[0081] Acquisition module: used to acquire images captured by the sweeping robot in real time;

[0082] Recognition module: used to input the image into the YOLO_SR system, and identify various target obstacles in the image through the YOLO_SR system, so that the sweeping robot can avoid various target obstacles.

[0083] Embodiment 4

[0084] This embodiment provides a sweeping robot, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the target detection method for the sweeping robot described in Embodiment 2 are implemented.

[0085] Embodiment 5

[0086] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the target detection method for a sweeping robot described in the second embodiment are implemented.

[0087] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiment, complete software embodiment, or the embodiment in combination with software and hardware. Moreover, the present application can adopt the form of the computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiment of the present application can adopt various computer languages ​​to realize, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0088] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0089] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0091] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0092] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.

Claims

1. A target detection method for a sweeping robot, Features: include: Step S1: Acquire the image captured by the sweeping robot in real time; Step S2: inputting the image into a YOLO_SR system, and identifying various target obstacles in the image through the YOLO_SR system, so that the sweeping robot can avoid various target obstacles; The YOLO_SR system includes an image enhancement module, two first CBL units, a first feature extraction module, a first Concat layer, a second CBL unit, and a second feature extraction module connected in sequence, wherein the first feature extraction module and the second feature extraction module are connected; the second feature extraction module is provided with a first output end and a second output end, wherein the first output end is connected to two third CBL units, and the second output end is connected to two fourth CBL units; The first feature extraction module includes two CIRB units, a first SEIR unit, a fifth CBL unit and a second SEIR unit connected in sequence, the output of the first SEIR unit is connected to the second feature extraction module, and the output of the fifth CBL unit is connected to the first Concat layer; The CIRB unit includes a third SEIR unit, a sixth CBL unit, a fourth SEIR unit, a second Concat layer, a seventh CBL unit, a third Concat layer and a first POOL layer connected in sequence, the output of the third SEIR unit is connected to the third Concat layer, and the output of the sixth CBL unit is connected to the second Concat layer; The first SEIR unit, the second SEIR unit, the third SEIR unit and the fourth SEIR unit all include a seventh CBL unit, a Dwise layer, a first SE layer, a first convolutional layer, a first BN layer, a Linear layer, a second SE layer and an addition layer connected in sequence, and the input of the seventh CBL unit is connected to the output of the Linear layer; The second feature extraction module includes a fourth Concat layer, a second POOL layer, an eighth CBL unit, a first ASPP unit and two ninth CBL units connected in sequence, the input of the fourth Concat layer is connected to the second ASPP unit and the tenth CBL unit in sequence, the output of the second ninth CBL unit is connected to the eleventh CBL unit and the first upsampling layer in sequence, and the outputs of the first upsampling layer and the tenth CBL unit are respectively connected to the fifth Concat layer; The first ASPP unit and the second ASPP unit include a first atrous convolution layer, a second atrous convolution layer, a third atrous convolution layer, a fourth atrous convolution layer and a third POOL layer arranged in parallel, the third POOL layer is connected to the second upsampling layer, and the first atrous convolution layer, the second atrous convolution layer, the third atrous convolution layer, the fourth atrous convolution layer and the second upsampling layer are respectively connected to the sixth Concat layer; The first to eleventh CBL units each include a second convolutional layer, a second BN layer, and an activation function layer which are connected in sequence.

2. A target detection device for a sweeping robot, Features: include: Acquisition module: used to acquire images captured by the sweeping robot in real time; Recognition module: used for inputting the image into the YOLO_SR system, and identifying various target obstacles in the image through the YOLO_SR system, so that the sweeping robot can avoid various target obstacles; The YOLO_SR system includes an image enhancement module, two first CBL units, a first feature extraction module, a first Concat layer, a second CBL unit, and a second feature extraction module connected in sequence, wherein the first feature extraction module and the second feature extraction module are connected; the second feature extraction module is provided with a first output end and a second output end, wherein the first output end is connected to two third CBL units, and the second output end is connected to two fourth CBL units; The first feature extraction module includes two CIRB units, a first SEIR unit, a fifth CBL unit and a second SEIR unit connected in sequence, the output of the first SEIR unit is connected to the second feature extraction module, and the output of the fifth CBL unit is connected to the first Concat layer; The CIRB unit includes a third SEIR unit, a sixth CBL unit, a fourth SEIR unit, a second Concat layer, a seventh CBL unit, a third Concat layer and a first POOL layer connected in sequence, the output of the third SEIR unit is connected to the third Concat layer, and the output of the sixth CBL unit is connected to the second Concat layer; The first SEIR unit, the second SEIR unit, the third SEIR unit and the fourth SEIR unit all include a seventh CBL unit, a Dwise layer, a first SE layer, a first convolutional layer, a first BN layer, a Linear layer, a second SE layer and an addition layer connected in sequence, and the input of the seventh CBL unit is connected to the output of the Linear layer; The second feature extraction module includes a fourth Concat layer, a second POOL layer, an eighth CBL unit, a first ASPP unit and two ninth CBL units connected in sequence, the input of the fourth Concat layer is connected to the second ASPP unit and the tenth CBL unit in sequence, the output of the second ninth CBL unit is connected to the eleventh CBL unit and the first upsampling layer in sequence, and the outputs of the first upsampling layer and the tenth CBL unit are respectively connected to the fifth Concat layer; The first ASPP unit and the second ASPP unit include a first atrous convolution layer, a second atrous convolution layer, a third atrous convolution layer, a fourth atrous convolution layer and a third POOL layer arranged in parallel, the third POOL layer is connected to the second upsampling layer, and the first atrous convolution layer, the second atrous convolution layer, the third atrous convolution layer, the fourth atrous convolution layer and the second upsampling layer are respectively connected to the sixth Concat layer; The first to eleventh CBL units each include a second convolutional layer, a second BN layer, and an activation function layer which are connected in sequence.

3. A sweeping robot, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, Features: When the processor executes the computer program, the steps of the target detection method for a sweeping robot as claimed in claim 1 are implemented.

4. A computer-readable storage medium having a computer program stored thereon, Features: When the computer program is executed by a processor, the steps of the target detection method for a sweeping robot as claimed in claim 1 are implemented.