Intelligent sorting, detecting and recognizing method for construction waste

Through the improved SRGAN and YOLOv8 models, combined with the receptive field attention and multi-dimensional collaborative attention modules, the problems of low recycling purity and low manual operation efficiency in the traditional construction waste sorting method are solved, and the construction waste sorting in the dust environment is realized. Intelligent detection and identification.

CN118658108AInactive Publication Date: 2024-09-17BEIJING UNIV OF CIVIL ENG & ARCHITECTURE
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410952123.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional construction waste sorting methods have problems such as low recycling purity and low manual operation efficiency. Especially in dusty and noisy environments, they are seriously harmful to health. Moreover, the image features of construction waste are blurred and difficult to detect and identify under the vibration and occlusion of the conveyor belt. .

Method used

The improved SRGAN algorithm and YOLOv8 target detection model are used, the receptive field attention convolution and multi-dimensional collaborative attention module are introduced, a lightweight module and an optimized loss function are designed, and the optimal weight is obtained through training for intelligent sorting, detection and identification of construction waste.

Benefits of technology

It improves the accuracy and efficiency of construction waste detection, solves the identification problems caused by the loss and blurring of image features, and achieves accurate intelligent detection in dust environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658108A
    Figure CN118658108A
Patent Text Reader

Abstract

The invention relates to the technical field of construction waste, and discloses an intelligent sorting, detecting and identifying method for construction waste, which comprises the following steps: collecting construction waste images in a construction waste sorting field as an original image sample set, improving an SRGAN algorithm, preprocessing the construction waste data set images by adopting the improved SRGAN algorithm, and identifying the construction waste data set images by adopting the improved SRGAN algorithm; making labels for the preprocessed data set, and dividing the data set into a training set, a verification set and a test set according to 8: 1: 1; an improved YOLOv8 detection and recognition model is adopted, and receptive field attention convolution and a multi-dimensional cooperative attention module are introduced into a trunk layer feature extraction part of the model. According to the intelligent sorting, detecting and recognizing method for the construction waste, manual operation is replaced with the intelligent sorting, detecting and recognizing method for the construction waste, and the problem that image features of the construction waste are lost due to vibration of a conveying belt and mutual shielding of the construction waste in the intelligent sorting process is solved; and meanwhile, the problem of difficulty in detection and identification caused by fuzzy image features of some construction wastes in a dust environment is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of construction waste, and in particular to a method for intelligent sorting, detection and identification of construction waste. Background Art

[0002] With the growth of global population and the acceleration of urbanization, the rapid increase in building construction has generated a large amount of construction waste. Due to the lack of appropriate recycling programs and effective disposal technologies, untreated construction waste will be transported to suburban landfills. However, some materials have potential value in construction and are easily reused and recycled, including stones, plastics, red bricks, wood, etc. These sustainable materials should be sorted and turned into recyclable aggregates, which can be used in new construction projects after crushing and separation, thereby reducing the need for mining and processing of virgin materials. Computer vision technology is increasingly used in the intelligent sorting, detection and identification process of construction waste. However, there are many factors that affect the accuracy and efficiency of intelligent sorting, detection and identification of construction waste. Therefore, the reuse and recycling of construction waste has become an important and indispensable issue.

[0003] At present, the traditional method of sorting construction waste is to mix, crush and screen through mechanical operation, and then screen, remove and divert through manual operation. However, there are problems such as low recycling purity and low manual operation efficiency, especially in dusty and noisy environments, which poses serious health hazards. Therefore, it is urgent to study an intelligent sorting, detection and identification method for construction waste to replace manual operation.

[0004] In the actual working environment, construction waste is piled up on the conveyor belt. The vibration of the conveyor belt and the mutual occlusion of construction waste will cause the loss of construction waste image features. At the same time, in the dusty environment, some construction waste image features are blurred, making it difficult to detect and identify.

[0005] Therefore, it is necessary to design corresponding technical solutions. Summary of the invention

[0006] 1. Technical issues to be resolved

[0007] In view of the shortcomings of the prior art, the present invention provides an intelligent sorting, detection and identification method for construction waste, which solves the problem that the traditional construction waste sorting method is to mix, crush and screen by mechanical operation, and then screen, remove and divert by manual operation, but there are problems of low recycling purity and low manual operation efficiency, especially in dusty and noisy environments, which poses a serious health hazard. Construction waste is piled up on the conveyor belt, and the vibration of the conveyor belt and the mutual occlusion of construction waste will cause the loss of construction waste image features. At the same time, there is a technical problem that some construction waste image features are blurred in a dusty environment, making it difficult to detect and identify.

[0008] (II) Technical solution

[0009] To achieve the above objectives, the present invention is implemented through the following technical solutions: a method for intelligent sorting, detection and identification of construction waste, the method steps include the following:

[0010] S1. Collect construction waste images at the construction waste sorting site as the original image sample set, improve the SRGAN algorithm, use the improved SRGAN algorithm to preprocess the construction waste dataset images, and label the preprocessed dataset and divide it into training set, validation set and test set according to 8:1:1;

[0011] S2. Adopt the improved YOLOv8 detection and recognition model, introduce the receptive field attention convolution (RFCBAM) and multidimensional collaborative attention module (MCA) in the backbone layer feature extraction part of the model, design a lightweight module in the neck feature fusion part, and the lightweight module structure consists of lightweight convolution and lightweight bottleneck layer. Improve the YOLOv8 model, build an improved YOLOv8 target detection model, and use the trained improved YOLOv8 target detection model to perform intelligent sorting detection and recognition of construction waste;

[0012] In the neck feature fusion part, after upsampling, the output feature P3 is concat-connected with the output feature P2 to form the output feature P4. After the output feature P4 passes through the lightweight module, the output feature P5 is output, and then upsampled. After that, it is concat-connected with the output feature P1 to form the output feature P6. After the output feature P6 passes through the lightweight module, it enters the small target detection layer of the detection module. At the same time, after convolution, the output feature P6 is concat-connected with the output feature P5 to form the output feature P7. After the output feature P7 passes through the lightweight module, it enters the medium target detection layer of the detection module. At the same time, after convolution, the output feature P7 is concat-connected with the output feature P3 to form the output feature P8. After the output feature P8 passes through the lightweight module, it enters the large target detection layer of the detection module.

[0013] S3, sending the images of the construction waste dataset to the improved YOLOv8 construction waste intelligent detection and recognition model for training and verification, and using label smoothing during the training process to obtain the optimal weight;

[0014] After the dataset is processed by the improved SRGAN algorithm, a construction waste image database is constructed and divided into training set, validation set, and test set according to 8:1:1, which are used for training, validation, and testing of the improved YOLOv8 construction waste intelligent detection and recognition model respectively;

[0015] During the training process, the number of training rounds is set to 300 and the batch size is set to 16;

[0016] S4. After obtaining the optimal weights, perform a test, load the optimal weights, and send the images of the test set of the construction waste dataset into the improved YOLOv8 construction waste intelligent detection model for testing.

[0017] Preferably, the improved SRGAN algorithm is mainly composed of two modules: a generator and a discriminator;

[0018] The discriminator has a total of 34 layers. The first layer is a convolutional layer, the second layer is a LeakyReLU activation function layer, the third to sixth layers are convolutional layers, batch normalization layers, LeakyReLU activation function layers, and EMA efficient multi-scale attention layers, respectively. The seventh to twenty-eighth layers repeat the modules of the third to sixth layers, the twenty-ninth layer is a densely connected layer, the thirty-th layer is a LeakyReLU activation function layer, the thirty-first layer is a densely connected layer, and the last layer is a Sigmod activation function layer.

[0019] Preferably, the EMA efficient multi-scale attention layer uses a grouping structure without dimensionality reduction, learns across space, and designs a multi-scale parallel sub-network to process image features.

[0020] Preferably, the backbone layer feature extraction part has a total of 15 layers, the 1st layer is the input image layer, the 2nd layer is the convolution layer, the 3rd layer is the receptive field attention convolution layer, the 4th layer is the C2f module, the 5th layer is the multi-dimensional collaborative attention module, the 6th layer is the receptive field attention convolution layer, the 7th layer is the C2f module, the 8th layer is the multi-dimensional collaborative attention module, the output feature of the 8th layer is P1, the 9th layer is the receptive field attention convolution layer, the 10th layer is the C2f module, the 11th layer is the multi-dimensional collaborative attention module, the output feature of the 11th layer is P2, the 12th layer is the receptive field attention convolution layer, the 13th layer is the C2f module, the 14th layer is the multi-dimensional collaborative attention module, the 15th layer is the spatial pyramid pooling layer, and the output feature of the 15th layer is P3.

[0021] Preferably, the receptive field attention convolution module is composed of three branches. The first branch sends the input feature to the global flat pooling layer, then to the linear layer and ReLU activation function, and finally enters the linear layer + Sigmoid activation function layer to output feature Feature1;

[0022] The second branch sends the input features to the group convolution layer, then to the normalization layer and ReLU activation function, and finally to the shape adjustment layer to output feature Feature2;

[0023] The third branch sends the output feature Feature2 to the average pooling and maximum pooling layers, and finally enters the convolution and Sigmoid activation function to output feature Feature3;

[0024] Finally, Feature1, Feature2, and Feature3 are re-weighted and sent to the convolutional layer.

[0025] Preferably, the multi-dimensional collaborative attention module is composed of three branches. The first branch sends the input feature to the dimension transformation layer to output feature C1, then sends it to the average pooling and standard deviation pooling layer, then to the dimension transformation layer, convolution layer, dimension transformation layer, and then performs Sigmoid activation function to calculate C2, then C1 and C2 are multiplied to output feature C3, and finally sent to the dimension transformation layer to output feature C4;

[0026] The second branch sends the input feature to the dimension transformation layer to output feature C5, then to the average pooling and standard deviation pooling layer, and then to the dimension transformation layer, convolution layer, and dimension transformation layer. The Sigmoid activation function is then performed to calculate C6, and then C5 and C6 are multiplied to output feature C7, and finally sent to the dimension transformation layer to output feature C8;

[0027] The third branch sends the input features to the average pooling and standard deviation pooling layers, and then to the dimension transformation layer, convolution layer, and dimension transformation layer, and then performs the Sigmoid activation function to calculate C9, and then multiplies the input features with C9 to output feature C10;

[0028] Finally, the output features C4, C8, and C10 are averaged and output.

[0029] Preferably, in the improved YOLOv8 construction waste intelligent sorting detection and recognition model, convolution 1, convolution 2 and convolution 3 of the trunk layer feature extraction part and the neck feature fusion part are all composed of ordinary convolution (Conv2d), BN batch normalization layer and SiLU activation function.

[0030] Preferably, a lightweight module is designed in the neck feature fusion part of the model, and the lightweight module includes 4 branches. The first branch is composed of a convolution module, which is the same as convolution 1, convolution 2, and convolution 3. The second branch is composed of a convolution module and a slice segmentation module. The third branch is composed of a convolution module, a slice segmentation module and a lightweight bottleneck layer. The fourth branch is composed of a convolution module, a slice segmentation module and two identical lightweight bottleneck layers. The four branches are Concat connected and finally processed by the convolution module.

[0031] Preferably, the EMA efficient multi-scale attention module consists of three branches. The first branch divides the input features into feature groups and sends them to the X average pooling layer to output feature A1. The second branch divides the input features into feature groups and sends them to the Y average pooling layer to output feature A2. The output feature A1 and the output feature A2 are concat-connected + convolved to output feature A3, and then continue to enter the first branch and the second branch for processing. In the first branch, the output feature A3 enters the Sigmoid function to output feature A4.

[0032] In the second branch, output feature A3 enters the Sigmoid function to output feature A5, and then the feature group, output feature A4, and output feature A5 are re-weighted to output feature A6. Output feature A6 enters the group normalization output feature A7, and then output feature A7 is sent to the average pooling layer and the Softmax normalization function to output feature A8.

[0033] The third branch divides the input features into feature groups and sends them to the convolution output feature A9. The output feature A9 passes through two branches. One branch is sent to the first branch and combined with the output feature A8 to enter the Matnul function output feature A10. The other branch is output feature A11 after passing through the average pooling layer and the Softmax normalization function. The output feature A11 and the output feature A7 are sent to the Matnul function for processing and then output feature A12.

[0034] After the output feature A12 is combined with the output feature A10, it enters the Sigmoid function output feature A13, and finally the output feature A13 is re-weighted with the feature group as the final output.

[0035] Preferably, the loss function of the YOLOv8 original model is optimized, and the bounding box similarity comparison metric MPDIoU loss function based on the minimum point distance is adopted. The optimizer in the YOLOv8 original model adopts the Sophia optimizer.

[0036] (III) Beneficial effects

[0037] Compared with the prior art, the present invention has the following beneficial effects: firstly, the images of the construction waste dataset are preprocessed by the improved SRGAN algorithm to improve the super-resolution of the samples of the image dataset, and solve the problem that some construction waste images are difficult to detect and identify due to blurred features in dusty environments; then, the receptive field attention convolution and the multi-dimensional collaborative attention module are introduced into the backbone layer feature extraction part of the model, a lightweight module is designed in the neck feature fusion part, the MPDIoU effective and accurate bounding box regression loss function is adopted, and the Sophia optimizer is adopted to improve the YOLOv8 target detection model, enhance the feature extraction ability of the backbone layer feature extraction part, improve the fusion ability of the neck feature fusion part, and improve the loss function and optimizer of the model, thereby improving the detection accuracy, speed and generalization ability of the model; finally, the images of the construction waste dataset are sent to the improved YOLOv8 construction waste intelligent detection and recognition model for training, verification and testing, and label smoothing is used in the training process to obtain the optimal weight.

[0038] Then, a test is conducted, the optimal weights are loaded, and the images of the test set of construction waste data set are sent to the improved YOLOv8 construction waste intelligent detection model for testing and detection. This can effectively solve the problem of loss of construction waste image features caused by the vibration of the conveyor belt and the mutual occlusion of construction waste, as well as the problem that some construction waste image features are blurred in dusty environments, making them difficult to detect and identify, thereby achieving accurate intelligent detection and identification of construction waste.

[0039] The technical solution proposed in the present invention improves the accuracy while ensuring a high detection speed, and can provide an effective method for intelligent detection and identification of construction waste. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of the overall method steps of the present invention;

[0041] Figure 2 A schematic diagram of the steps of constructing the generator module of the present invention;

[0042] Figure 3 A schematic diagram of the steps of constructing the discriminator module of the present invention;

[0043] Figure 4 Schematic diagram of the EMA efficient multi-scale attention structure of the present invention;

[0044] Figure 5 Schematic diagram of the receptive field attention convolution module of the present invention;

[0045] Figure 6 It is a schematic diagram of the multi-dimensional collaborative attention module of the present invention;

[0046] Figure 7It is a schematic diagram of the lightweight convolution composition of the present invention;

[0047] Figure 8 It is a schematic diagram of the composition of the lightweight bottleneck layer of the present invention;

[0048] Fig. 9 It is a schematic diagram of a lightweight module of the present invention;

[0049] Fig.10 It is a schematic diagram of the structure of the improved YOLOv8 target detection model of the present invention. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] See also Figure 1-Figure 10 The embodiment of the present invention provides a technical solution: a method for intelligent sorting, detection and identification of construction waste, the method steps include the following:

[0052] S1. Collect construction waste images at the construction waste sorting site as the original image sample set, improve the SRGAN algorithm, and use the improved SRGAN algorithm to preprocess the construction waste dataset images to improve the super-resolution of the image dataset samples, solve the problem that some construction waste images are difficult to detect and identify due to blurred features in dusty environments, and label the preprocessed dataset and divide it into training set, validation set and test set according to 8:1:1.

[0053] Example 1: Four samples of red bricks, stones, wood and plastic were selected as targets, and a total of 3336 images of the construction waste dataset were used as the original image sample set;

[0054] The improved SRGAN algorithm is used to preprocess the images of the construction waste dataset to improve the super-resolution of the image dataset samples;

[0055] Then, the preprocessed dataset sample set was labeled using Labelimg, with 3196 red brick labels, 2451 stone labels, 2351 wood labels, and 4424 plastic labels. A dataset in VOC format was made and divided into training set, validation set, and test set in a ratio of 8:1:1.

[0056] The improved SRGAN algorithm is mainly composed of two modules: generator and discriminator; Figure 2As shown in the figure, the discriminator has a total of 34 layers. The first layer is a convolutional layer, the second layer is a LeakyReLU activation function layer, the third to sixth layers are convolutional layers, batch normalization layers, LeakyReLU activation function layers, and EMA efficient multi-scale attention layers, respectively. The seventh to twenty-eighth layers repeat the modules of the third to sixth layers, the twenty-ninth layer is a densely connected layer, the thirty-th layer is a LeakyReLU activation function layer, the thirty-first layer is a densely connected layer, and the last layer is a Sigmod activation function layer.

[0057] EMA's efficient multi-scale attention layer uses a grouping structure that does not require dimensionality reduction, cross-space learning and designs a multi-scale parallel sub-network to process image features, improve the performance of model detection, and effectively reduce model parameters. The EMA efficient multi-scale attention structure is as follows: Figure 3 shown.

[0058] S2. In order to solve the problem of construction waste image feature loss caused by the vibration of the conveyor belt and the mutual occlusion of construction waste, the improved YOLOv8 detection and recognition model is adopted. The receptive field attention convolution (RFCBAM) and the multi-dimensional collaborative attention module (MCA) are introduced in the backbone layer feature extraction part of the model. The structures of the receptive field attention convolution and the multi-dimensional collaborative attention module are as follows: Figure 4 and Figure 5 As shown in the figure, a lightweight module is designed in the neck feature fusion part. The lightweight module structure consists of lightweight convolution and lightweight bottleneck layer. Figure 6 and Figure 7 , lightweight modules such as Figure 8 As shown, the YOLOv8 model is improved to build an improved YOLOv8 target detection model. The structure of the improved YOLOv8 target detection model is as follows Fig. 9 As shown in the figure, the trained improved YOLOv8 target detection model is used to perform intelligent sorting detection and recognition of construction waste, thereby solving the problem of loss of construction waste image features caused by the vibration of the conveyor belt and the mutual occlusion of construction waste;

[0059] The feature extraction part of the backbone layer has a total of 15 layers. The first layer is the input image layer, the second layer is the convolution layer, the third layer is the receptive field attention convolution layer, the fourth layer is the C2f module, the fifth layer is the multi-dimensional collaborative attention module, the sixth layer is the receptive field attention convolution layer, the seventh layer is the C2f module, the eighth layer is the multi-dimensional collaborative attention module, and the output feature of the eighth layer is P1, the ninth layer is the receptive field attention convolution layer, the tenth layer is the C2f module, the eleventh layer is the multi-dimensional collaborative attention module, and the output feature of the eleventh layer is P2, the twelfth layer is the receptive field attention convolution layer, the thirteenth layer is the C2f module, the fourteenth layer is the multi-dimensional collaborative attention module, the fifteenth layer is the spatial pyramid pooling layer, and the output feature of the fifteenth layer is P3.

[0060] In order to solve the problem of construction waste image feature loss caused by the vibration of the conveyor belt, the receptive field attention convolution module consists of three branches. The first branch sends the input feature to the global flat pooling layer, then to the linear layer and ReLU activation function, and finally enters the linear layer + Sigmoid activation function layer to output feature Feature1;

[0061] The second branch sends the input features to the group convolution layer, then to the normalization layer and ReLU activation function, and finally to the shape adjustment layer to output feature Feature2;

[0062] The third branch sends the output feature Feature2 to the average pooling and maximum pooling layers, and finally enters the convolution and Sigmoid activation function to output feature Feature3;

[0063] Finally, Feature1, Feature2, and Feature3 are re-weighted and sent to the convolutional layer;

[0064] In order to solve the problem of loss of construction waste image features caused by mutual occlusion of construction waste on the conveyor belt, the multi-dimensional collaborative attention module consists of three branches. The first branch sends the input features to the dimension transformation layer to output feature C1, and then sends them to the average pooling and standard deviation pooling layer, and then to the dimension transformation layer, convolution layer, and dimension transformation layer. Sigmoid activation function is then performed to calculate C2, and then C1 and C2 are multiplied to output feature C3, and finally sent to the dimension transformation layer to output feature C4;

[0065] The second branch sends the input feature to the dimension transformation layer to output feature C5, then to the average pooling and standard deviation pooling layer, and then to the dimension transformation layer, convolution layer, and dimension transformation layer. The Sigmoid activation function is then performed to calculate C6, and then C5 and C6 are multiplied to output feature C7, and finally sent to the dimension transformation layer to output feature C8;

[0066] The third branch sends the input features to the average pooling and standard deviation pooling layers, and then to the dimension transformation layer, convolution layer, and dimension transformation layer, and then performs the Sigmoid activation function to calculate C9, and then multiplies the input features with C9 to output feature C10;

[0067] Finally, the output features C4, C8, and C10 are averaged and output;

[0068] The receptive field attention convolution layer focuses on the spatial features of the receptive field, solves the problem of convolution kernel parameter sharing, and provides effective attention weights for large-size convolution kernels; the multi-dimensional collaborative attention module is a synchronous reasoning attention, which uses three branches in terms of channel, height and width, with almost no additional computing power overhead. A gating mechanism is designed inside the attention to adaptively determine the coverage of image information feature interactions, further strengthening the model's extraction of image features. After the backbone layer feature extraction part integrates the receptive field attention convolution layer and the multi-dimensional collaborative attention module, the model's extraction of image features is strengthened, compensating for the problem of feature loss, and can effectively solve the problem of construction waste image feature loss caused by conveyor belt vibration and mutual occlusion of construction waste, thereby improving the model's detection accuracy;

[0069] In the neck feature fusion part, after upsampling, the output feature P3 is concat-connected with the output feature P2 to form the output feature P4. After the output feature P4 passes through the lightweight module, the output feature P5 is output, and then upsampled. After that, it is concat-connected with the output feature P1 to form the output feature P6. After the output feature P6 passes through the lightweight module, it enters the small target detection layer of the detection module. At the same time, after convolution, the output feature P6 is concat-connected with the output feature P5 to form the output feature P7. After the output feature P7 passes through the lightweight module, it enters the medium target detection layer of the detection module. At the same time, after convolution, the output feature P7 is concat-connected with the output feature P3 to form the output feature P8. After the output feature P8 passes through the lightweight module, it enters the large target detection layer of the detection module.

[0070] Improved YOLOv8 construction waste intelligent sorting detection and recognition model, the convolution 1, convolution 2 and convolution 3 of the trunk layer feature extraction part and the neck feature fusion part are composed of ordinary convolution (Conv2d), BN batch normalization layer and SiLU activation function;

[0071] In order to improve the detection and recognition rate of the model, a new lightweight module is designed. The bottleneck layers in the C2f module in the original YOLOv8 model are all replaced with lightweight bottleneck layers. This structure uses the cross-stage feature fusion strategy and truncated gradient flow technology to enhance the variability of learning features between different network layers, thereby reducing the impact of redundant gradient information and enhancing the learning ability of the network.

[0072] A lightweight module is designed in the neck feature fusion part of the model. The lightweight module includes 4 branches. The first branch consists of a convolution module, which is the same as convolution 1, convolution 2, and convolution 3. The second branch consists of a convolution module and a slice segmentation module. The third branch consists of a convolution module, a slice segmentation module, and a lightweight bottleneck layer. The fourth branch consists of a convolution module, a slice segmentation module, and two identical lightweight bottleneck layers. The four branches are concat-connected and finally processed by the convolution module.

[0073] After the lightweight module is integrated into the neck feature fusion part, a large number of 3×3 ordinary convolutions in the original structure are reduced, which greatly compresses the model size of the network, reduces the number of parameters and calculations, and effectively improves the detection rate of the model. The model can be deployed on the mobile terminal, making it easier to realize intelligent sorting, detection and identification of construction waste;

[0074] In order to solve the problem that some construction waste images are difficult to detect and identify due to blurred features in dusty environments, the EMA efficient multi-scale attention module consists of three branches. The first branch divides the input features into feature groups and sends them to the X average pooling layer to output feature A1. The second branch divides the input features into feature groups and sends them to the Y average pooling layer to output feature A2. The output features A1 and A2 are concat-connected and convoluted to output feature A3, which then continue to enter the first and second branches for processing. In the first branch, the output feature A3 enters the Sigmoid function to output feature A4.

[0075] In the second branch, output feature A3 enters the Sigmoid function to output feature A5, and then the feature group, output feature A4, and output feature A5 are re-weighted to output feature A6. Output feature A6 enters the group normalization output feature A7, and then output feature A7 is sent to the average pooling layer and the Softmax normalization function to output feature A8.

[0076] The third branch divides the input features into feature groups and sends them to the convolution output feature A9. The output feature A9 passes through two branches. One branch is sent to the first branch and combined with the output feature A8 to enter the Matnul function output feature A10. The other branch is output feature A11 after passing through the average pooling layer and the Softmax normalization function. The output feature A11 and the output feature A7 are sent to the Matnul function for processing and then output feature A12.

[0077] After the output feature A12 is combined with the output feature A10, it enters the Sigmoid function output feature A13. Finally, the output feature A13 and the feature group are re-weighted as the final output;

[0078] In order to achieve accurate and effective bounding box regression and further improve the detection accuracy and generalization ability of the model, the loss function of the original YOLOv8 model is optimized, and the bounding box similarity comparison metric MPDIoU loss function based on the minimum point distance is adopted. This metric includes all relevant factors considered in the existing loss function, namely overlapping or non-overlapping areas, center point distance, width and height deviation, and simplifies the calculation process. It solves the problem that most existing bounding box regression loss functions cannot be optimized when the predicted box has the same aspect ratio as the true box, but the width and height values ​​are completely different;

[0079] In order to further improve the detection and recognition rate of the model, the optimizer in the original YOLOv8 model was improved and the Sophia optimizer was adopted. This optimizer is a lightweight second-order optimizer that uses a cheap random estimate of the Hessian diagonal as a pre-conditioner and controls the update size in the worst case through a limiting mechanism, which greatly improves the model operation rate while reducing the training cost.

[0080] S3, sending the images of the construction waste dataset to the improved YOLOv8 construction waste intelligent detection and recognition model for training and verification, and using label smoothing during the training process to obtain the optimal weight;

[0081] After the dataset is processed by the improved SRGAN algorithm, a construction waste image database is constructed and divided into training set, validation set, and test set according to 8:1:1, which are used for training, validation, and testing of the improved YOLOv8 construction waste intelligent detection and recognition model respectively;

[0082] During the training process, the number of training rounds is set to 300 and the batch size is set to 16;

[0083] S4. After obtaining the optimal weights, perform a test, load the optimal weights, and send the images of the test set of the construction waste dataset into the improved YOLOv8 construction waste intelligent detection model for testing.

[0084] It was completed in the experimental environment of Windows 10 operating system, GPU as NVIDIA GeForce RTX 3060Ti, CPU as Intel(R) Core(TM) i5-10400F CPU@2.90GHz, CUDA11.6, cuDNN8.4.1.50, and Python3.9.

[0085] Frames Per Second (FPS), F1 Score (F1 Score) and meanAverage Precision (mAP) are used to evaluate the improved YOLOv8 construction waste intelligent detection and recognition model.

[0086] The experimental results show that the FPS tested on the test set reaches 52, the F1 value of red bricks is 0.95, the F1 value of stones is 0.94, the F1 value of wood is 0.96, the F1 value of plastic is 0.97, and the mAP value reaches 96.78%, which verifies the effectiveness of the method proposed in this embodiment. It can effectively solve the problem of loss of construction waste image features caused by the vibration of the conveyor belt and the mutual occlusion of construction waste, as well as the problem that some construction waste image features are blurred in dusty environments, making them difficult to detect and identify, and realize accurate intelligent detection and identification of construction waste.

[0087] The present invention improves the accuracy while ensuring a relatively high detection speed, and can provide an effective method for intelligent detection and identification of construction waste.

[0088] Computer vision deep learning target detection methods are roughly divided into two types: two-stage detection and recognition algorithms represented by Fast R-CNN and Faster R-CNN, and single-stage algorithms represented by YOLO (You Only Look Once) and SSD (Single Shot Detector).

[0089] The two-stage detection algorithm first generates candidate boxes to determine the area containing objects, and then uses a complex architecture on the candidate boxes to achieve detection and classification. It focuses more on the selective region proposal strategy of the complex architecture.

[0090] The single-stage detection algorithm directly detects and classifies all spatial regions. It focuses on all spatial region proposals and detects targets at one time through a relatively simple architecture. The single-stage detection algorithm can perform real-time target detection with high precision, and has the advantages of fast detection speed, easy algorithm implementation, and end-to-end optimization. Therefore, the single-stage detection algorithm is often given priority in the intelligent sorting detection and identification of construction waste. It can effectively solve the problem of loss of construction waste image features caused by conveyor belt vibration and mutual occlusion of construction waste, as well as the problem that some construction waste image features are blurred in dusty environments, making them difficult to detect and identify.

[0091] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the attached claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved.

[0092] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A method for intelligent sorting, detection and identification of construction waste, characterized in that: The method steps include the following: S1. Collect construction waste images at the construction waste sorting site as the original image sample set, improve the SRGAN algorithm, use the improved SRGAN algorithm to preprocess the construction waste dataset images, and label the preprocessed dataset and divide it into training set, validation set and test set according to 8:1:1; S2. Adopt the improved YOLOv8 detection and recognition model, introduce the receptive field attention convolution and multi-dimensional collaborative attention module in the backbone layer feature extraction part of the model, design a lightweight module in the neck feature fusion part, the lightweight module structure consists of lightweight convolution and lightweight bottleneck layer, improve the YOLOv8 model, build an improved YOLOv8 target detection model, and use the trained improved YOLOv8 target detection model to perform intelligent sorting detection and recognition of construction waste; In the neck feature fusion part, after upsampling, the output feature P3 is concat-connected with the output feature P2 to form the output feature P4. After the output feature P4 passes through the lightweight module, the output feature P5 is output, and then upsampled. After that, it is concat-connected with the output feature P1 to form the output feature P6. After the output feature P6 passes through the lightweight module, it enters the small target detection layer of the detection module. At the same time, after convolution, the output feature P6 is concat-connected with the output feature P5 to form the output feature P7. After the output feature P7 passes through the lightweight module, it enters the medium target detection layer of the detection module. At the same time, after convolution, the output feature P7 is concat-connected with the output feature P3 to form the output feature P8. After the output feature P8 passes through the lightweight module, it enters the large target detection layer of the detection module. S3, sending the images of the construction waste dataset to the improved YOLOv8 construction waste intelligent detection and recognition model for training and verification, and using label smoothing during the training process to obtain the optimal weight; After the dataset is processed by the improved SRGAN algorithm, a construction waste image database is constructed and divided into training set, validation set, and test set according to 8:1:1, which are used for training, validation, and testing of the improved YOLOv8 construction waste intelligent detection and recognition model respectively; During the training process, the number of training rounds is set to 300 and the batch size is set to 16; S4. After obtaining the optimal weights, perform a test, load the optimal weights, and send the images of the test set of the construction waste dataset into the improved YOLOv8 construction waste intelligent detection model for testing.

2. The method for intelligent sorting, detection and identification of construction waste according to claim 1 is characterized by: The improved SRGAN algorithm is mainly composed of two modules: generator and discriminator; The discriminator has a total of 34 layers. The first layer is a convolutional layer, the second layer is a LeakyReLU activation function layer, the third to sixth layers are convolutional layers, batch normalization layers, LeakyReLU activation function layers, and EMA efficient multi-scale attention layers, respectively. The seventh to twenty-eighth layers repeat the modules of the third to sixth layers, the twenty-ninth layer is a densely connected layer, the thirty-th layer is a LeakyReLU activation function layer, the thirty-first layer is a densely connected layer, and the last layer is a Sigmod activation function layer.

3. The method for intelligent sorting, detection and identification of construction waste according to claim 2 is characterized by: The EMA efficient multi-scale attention layer uses a grouping structure without dimensionality reduction, learns across space, and designs a multi-scale parallel sub-network to process image features.

4. The method for intelligent sorting, detection and identification of construction waste according to claim 1 is characterized in that: The feature extraction part of the backbone layer has a total of 15 layers. The first layer is the input image layer, the second layer is the convolution layer, the third layer is the receptive field attention convolution layer, the fourth layer is the C2f module, the fifth layer is the multi-dimensional collaborative attention module, the sixth layer is the receptive field attention convolution layer, the seventh layer is the C2f module, the eighth layer is the multi-dimensional collaborative attention module, and the output feature of the eighth layer is P1, the ninth layer is the receptive field attention convolution layer, the tenth layer is the C2f module, the eleventh layer is the multi-dimensional collaborative attention module, and the output feature of the eleventh layer is P2, the twelfth layer is the receptive field attention convolution layer, the thirteenth layer is the C2f module, the fourteenth layer is the multi-dimensional collaborative attention module, the fifteenth layer is the spatial pyramid pooling layer, and the output feature of the fifteenth layer is P3.

5. The method for intelligent sorting, detection and identification of construction waste according to claim 1 is characterized by: The receptive field attention convolution module consists of three branches. The first branch sends the input feature to the global flat pooling layer, then to the linear layer and ReLU activation function, and finally to the linear layer + Sigmoid activation function layer to output feature Feature1. The second branch sends the input features to the group convolution layer, then to the normalization layer and ReLU activation function, and finally to the shape adjustment layer to output feature Feature2; The third branch sends the output feature Feature2 to the average pooling and maximum pooling layers, and finally enters the convolution and Sigmoid activation function to output feature Feature3; Finally, Feature1, Feature2, and Feature3 are re-weighted and sent to the convolutional layer.

6. The method for intelligent sorting, detection and identification of construction waste according to claim 1 is characterized by: The multi-dimensional collaborative attention module consists of three branches. The first branch sends the input feature to the dimension transformation layer to output feature C1, then to the average pooling and standard deviation pooling layer, and then to the dimension transformation layer, convolution layer, and dimension transformation layer. The Sigmoid activation function is then used to calculate C2, and then C1 and C2 are multiplied to output feature C3, and finally sent to the dimension transformation layer to output feature C4. The second branch sends the input feature to the dimension transformation layer to output feature C5, then to the average pooling and standard deviation pooling layer, and then to the dimension transformation layer, convolution layer, and dimension transformation layer. The Sigmoid activation function is then performed to calculate C6, and then C5 and C6 are multiplied to output feature C7, and finally sent to the dimension transformation layer to output feature C8; The third branch sends the input features to the average pooling and standard deviation pooling layers, and then to the dimension transformation layer, convolution layer, and dimension transformation layer, and then performs the Sigmoid activation function to calculate C9, and then multiplies the input features with C9 to output feature C10; Finally, the output features C4, C8, and C10 are averaged and output.

7. The method for intelligent sorting, detection and identification of construction waste according to claim 1 is characterized by: In the improved YOLOv8 intelligent sorting detection and recognition model for construction waste, convolution 1, convolution 2, and convolution 3 of the trunk layer feature extraction part and the neck feature fusion part are all composed of ordinary convolution, BN batch normalization layer, and SiLU activation function.

8. The method for intelligent sorting, detection and identification of construction waste according to claim 1 is characterized by: A lightweight module is designed in the neck feature fusion part of the model. The lightweight module includes 4 branches. The first branch consists of a convolution module, which is the same as convolution 1, convolution 2, and convolution 3. The second branch consists of a convolution module and a slice segmentation module. The third branch consists of a convolution module, a slice segmentation module, and a lightweight bottleneck layer. The fourth branch consists of a convolution module, a slice segmentation module, and two identical lightweight bottleneck layers. The four branches are concat-connected and finally the output is processed by the convolution module.

9. The method for intelligent sorting, detection and identification of construction waste according to claim 1, characterized in that: The EMA efficient multi-scale attention module consists of three branches. The first branch divides the input features into feature groups and sends them to the X average pooling layer to output feature A1. The second branch divides the input features into feature groups and sends them to the Y average pooling layer to output feature A2. The output features A1 and A2 are concat-connected and convolved to output feature A3, which then continue to enter the first and second branches for processing. In the first branch, output feature A3 enters the Sigmoid function to output feature A4. In the second branch, output feature A3 enters the Sigmoid function to output feature A5, and then the feature group, output feature A4, and output feature A5 are re-weighted to output feature A6. Output feature A6 enters the group normalization output feature A7, and then output feature A7 is sent to the average pooling layer and the Softmax normalization function to output feature A8. The third branch divides the input features into feature groups and sends them to the convolution output feature A9. The output feature A9 passes through two branches. One branch is sent to the first branch and combined with the output feature A8 to enter the Matnul function output feature A10. The other branch is output feature A11 after passing through the average pooling layer and the Softmax normalization function. The output feature A11 and the output feature A7 are sent to the Matnul function for processing and then output feature A12. After the output feature A12 is combined with the output feature A10, it enters the Sigmoid function output feature A13, and finally the output feature A13 is re-weighted with the feature group as the final output.

10. The method for intelligent sorting, detection and identification of construction waste according to claim 1, characterized in that: The loss function of the original YOLOv8 model is optimized, and the bounding box similarity comparison metric MPDIoU loss function based on the minimum point distance is adopted. The optimizer in the original YOLOv8 model uses the Sophia optimizer.

Citation Information

Cited By

  • Crushed material and waste material sorting method and system based on improved YOLOv8

    CN122265663A

  • Crushed material waste sorting method and system based on improved YOLOv8

    CN122265663B