Solid waste identification and classification method and system

Feature extraction and classification of solid waste are carried out through video collection and deep learning models (ResNet-50, U-Net, LBP, YOLO), which solves the problem of inefficiency of traditional manual classification and achieves efficient and accurate solid waste identification. and classification, supporting automated garbage sorting systems, improving the efficiency of resource recycling and environmental protection.

CN117934971BActive Publication Date: 2024-09-27SHENZHEN LUHUAN REGENERATION RESOURCE DEV CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410322339.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-20
Publication Date
2024-09-27
Estimated Expiration
2044-03-20

AI Technical Summary

Technical Problem

Traditional manual classification of solid waste is inefficient, time-consuming and error-prone. It is difficult to achieve accurate classification and affects resource recycling and environmental protection.

Method used

Video collection and automated feature extraction and classification processing are used, the ResNet-50 and U-Net models are combined for feature extraction, the LBP operator is used to enhance texture features, and the YOLO model filters and fuses features to achieve real-time solid waste classification.

Benefits of technology

It improves the accuracy and efficiency of waste identification and classification, reduces the risk of misclassification, supports automated waste sorting systems, and improves the efficiency of resource recycling and environmental protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117934971B
    Figure CN117934971B
Patent Text Reader

Abstract

The invention relates to a method for identifying and classifying solid waste, comprising the following steps: performing video acquisition on images of waste to obtain waste videos; performing feature extraction on the waste videos through a segmentation model to obtain waste features; performing enhanced processing on the waste features through an LBP operator model to obtain texture features of the waste; inputting the texture features of the waste into a preset YOLO model for screening to obtain solid waste features and non-solid waste features; performing analysis and processing on the solid waste features to obtain solid waste features retained for the first time, performing analysis and processing on the non-solid waste features to obtain non-solid waste features retained for the first time, fusing the solid waste features retained for the first time with the non-solid waste features retained for the first time to obtain first solid waste features; performing classification calculation on the first solid waste features to obtain classification results of the solid waste, thereby achieving real-time waste classification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of identification and classification application technology, and in particular to a method, system, computer equipment and storage medium for identifying and classifying solid waste. Background Art

[0002] With the acceleration of urbanization, the amount of domestic and industrial waste has increased significantly, and it is particularly important to correctly classify and treat waste. Accurately classifying waste can not only improve the efficiency of resource recycling, but also reduce environmental pollution. However, there are many types of waste and different forms. The traditional manual classification method is inefficient, time-consuming, labor-intensive and error-prone. Therefore, it is of great significance to develop automated and intelligent waste classification technology. Summary of the invention

[0003] The main purpose of the present invention is to provide a method, system, computer equipment and storage medium for identifying and classifying solid waste, which realizes the real-time classification of waste through video acquisition and automated feature extraction and classification processing.

[0004] To achieve the above object, the present invention provides a method for identifying and classifying solid waste, comprising the following steps:

[0005] Capturing the image of the waste to obtain a waste video; wherein the waste includes solid waste and non-solid waste;

[0006] Extracting features from the waste video through a segmentation model to obtain waste features; wherein the segmentation model uses a convolutional layer in a ResNet-50 model as an encoder, and an output end of the encoder is connected to an input end of a decoder in a U-Net model;

[0007] The waste features are enhanced through the LBP operator model to obtain the texture features of the waste;

[0008] The texture features of the waste are input into the preset YOLO model for screening to obtain the solid waste features and non-solid waste features;

[0009] Analyzing and processing the solid waste features to obtain the solid waste features retained for the first time, analyzing and processing the non-solid waste features to obtain the non-solid waste features retained for the first time, and fusing the solid waste features retained for the first time with the non-solid waste features retained for the first time to obtain the first solid waste features; wherein the non-solid waste features retained for the first time are the solid waste features that are incorrectly screened by the YOLO model;

[0010] Classify and calculate the first solid waste characteristics to obtain a classification result of the solid waste.

[0011] As a further solution of the present invention, the convolution layer in the ResNet-50 model includes a first convolution layer and a BN layer; the waste video is subjected to feature extraction by the segmentation model to obtain waste features including:

[0012] Inputting the waste video into a first convolutional layer to extract features and obtain first waste features;

[0013] Inputting the first waste feature into the BN layer for extraction to obtain a second waste feature;

[0014] Inputting the first waste feature and the second waste feature into a new Conv-concat module for fusion and splicing processing to obtain a third waste feature; wherein the new Conv-concat module is set between the BN layer and the convolution block of the U-Net;

[0015] The third waste feature is normalized by a convolution block of U-Net to obtain a waste feature.

[0016] As a further solution of the present invention, the waste features are enhanced by the LBP operator model to obtain the texture features of the waste, including:

[0017] The waste characteristics are processed by the LBP operator model to generate a waste characteristic image, and the waste characteristic image is divided to obtain multiple local waste characteristic image regions;

[0018] Calculating the region of each local waste feature image by using the LBP operator model to obtain a first texture feature corresponding to the region of each local waste feature image;

[0019] Select a pixel point in each of the first texture features, and perform base conversion on the grayscale value of the pixel point and the grayscale value of each pixel point in the neighborhood of the pixel point to obtain a binary number corresponding to the grayscale value of each pixel point;

[0020] Based on the binary digit corresponding to the gray value of each pixel point, the texture feature of the waste is obtained.

[0021] As a further solution of the present invention, the texture features of the waste are input into a preset YOLO model for screening to obtain solid waste features and non-solid waste features, including:

[0022] Inputting the texture features of the waste into a preset YOLO model for extraction to obtain a plurality of second texture features;

[0023] Performing feature encoding processing on the plurality of second texture features to obtain a vector corresponding to each second texture feature;

[0024] Inputting the vector corresponding to each second texture feature into a preset binary classification model to obtain the probability corresponding to each second texture feature;

[0025] Based on the probability corresponding to each of the first texture features, obtaining a label corresponding to the solid waste feature and a label corresponding to the non-solid waste feature;

[0026] The label corresponding to the solid waste feature is input into a preset label coding model for coding conversion to obtain the solid waste feature, and the label of the non-solid waste feature is input into a preset label coding model for coding conversion to obtain the non-solid waste feature.

[0027] As a further solution of the present invention, the solid waste characteristics retained for the first time are merged with the non-solid waste characteristics retained for the first time, and the first solid waste characteristics obtained include:

[0028] Extracting features of each of the solid waste features retained for the first time through a convolutional neural network to obtain corresponding solid waste features;

[0029] Performing characteristic calculation on each of the solid waste characteristics to obtain characteristic parameters corresponding to each solid waste characteristic;

[0030] Comparing the characteristic parameter corresponding to each solid waste characteristic with a preset threshold value of the solid waste characteristic parameter;

[0031] If the characteristic parameter corresponding to the solid waste characteristic is not within the preset threshold of the solid waste characteristic parameter, the solid waste characteristic is eliminated; if the characteristic parameter corresponding to the solid waste characteristic is within the preset threshold of the solid waste characteristic parameter, the solid waste characteristic is retained;

[0032] Extracting features of each of the non-solid waste features retained for the first time through a convolutional neural network to obtain corresponding non-solid waste features;

[0033] Performing feature calculation on each of the non-solid waste features to obtain feature parameters corresponding to each non-solid waste feature;

[0034] Comparing the characteristic parameter corresponding to each solid waste characteristic with a preset threshold value of the solid waste characteristic parameter;

[0035] If the characteristic parameter corresponding to the non-solid waste characteristic is not within the preset threshold value of the non-solid waste characteristic parameter, the solid waste characteristic is eliminated; if the characteristic parameter corresponding to the non-solid waste characteristic is within the preset threshold value of the solid waste characteristic parameter, the non-solid waste characteristic is retained;

[0036] The retained solid waste feature and the retained non-solid waste feature are merged to obtain a first solid waste feature.

[0037] As a further solution of the present invention, the first solid waste characteristics are classified and calculated to obtain the classification results of the solid waste including:

[0038] Inputting the first solid waste characteristic into a deep learning model for calculation to obtain characteristic parameters of the first solid waste;

[0039] Based on the characteristic parameters of the first solid waste, the first solid waste characteristics are classified to obtain a classification result of the solid waste.

[0040] As a further solution of the present invention, based on the characteristic parameters of the first solid waste, the first solid waste characteristics are classified to obtain a classification result of the solid waste, including:

[0041] Performing encoding calculation on the parameters of the first solid waste characteristic to obtain a vector corresponding to the parameters of the first solid waste characteristic;

[0042] Calculating a vector corresponding to a parameter of the first solid waste characteristic to obtain a characteristic value of the first solid waste;

[0043] Comparing the characteristic value of the first solid waste with a preset threshold range;

[0044] If the characteristic value of the first solid waste is higher than the preset threshold range, it is solid recyclable waste;

[0045] If the characteristic value of the first solid waste is within a preset threshold range, it is hazardous solid recycling waste;

[0046] If the characteristic value of the first solid waste is lower than a preset threshold range, it is non-recyclable solid waste.

[0047] The present invention also provides a solid waste identification and classification system, comprising:

[0048] The acquisition module performs video acquisition of waste images to obtain waste videos; wherein the waste includes solid waste and non-solid waste;

[0049] An extraction module extracts features from the waste video through a segmentation model to obtain waste features; wherein the segmentation model uses a convolutional layer in a ResNet-50 model as an encoder, and an output end of the encoder is connected to an input end of a decoder in a U-Net model;

[0050] The enhancement module enhances the features of waste through the LBP operator model to obtain the texture features of waste;

[0051] The screening module inputs the texture features of the waste into the preset YOLO model for screening to obtain the solid waste features and non-solid waste features;

[0052] An analysis module analyzes and processes the solid waste features to obtain solid waste features retained for the first time, analyzes and processes the non-solid waste features to obtain non-solid waste features retained for the first time, and fuses the solid waste features retained for the first time with the non-solid waste features retained for the first time to obtain a first solid waste feature; wherein the non-solid waste features retained for the first time are solid waste features that are incorrectly screened by the YOLO model;

[0053] The classification module performs classification calculation on the first solid waste feature to obtain a classification result of the solid waste.

[0054] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.

[0055] The present invention also 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 any of the above-mentioned methods are implemented.

[0056] The solid waste identification and classification method, system, computer device and storage medium provided by the present invention include the following steps: performing video acquisition on images of waste to obtain waste videos; wherein the waste includes solid waste and non-solid waste; performing feature extraction on the waste videos through a segmentation model to obtain waste features; wherein the segmentation model uses the convolutional layer in the ResNet-50 model as an encoder, and the output end of the encoder is connected to the input end of the decoder in the U-Net model; performing enhanced processing on the waste features through the LBP operator model to obtain the texture features of the waste; inputting the texture features of the waste into a preset YOLO model for screening to obtain solid waste features and non-solid waste features; analyzing and processing the solid waste features to obtain solid waste features retained for the first time, and analyzing and processing the non-solid waste features to obtain non-solid waste features retained for the first time. , the solid waste features retained for the first time are merged with the non-solid waste features retained for the first time to obtain the first solid waste features; wherein the non-solid waste features retained for the first time are the solid waste features that are incorrectly screened by the YOLO model; the first solid waste features are classified and calculated to obtain the classification results of the solid waste; the feature information of the waste is extracted by adopting a segmentation model constructed by combining the improved ResNet-50 and U-Net models, and the texture features of the waste are enhanced by the LBP operator to obtain more accurate waste texture information, which solves the problems of low efficiency, time-consuming, labor-intensive and error-prone traditional manual classification methods, realizes the use of deep learning models for feature extraction and classification calculation, significantly improves the accuracy of waste identification and classification, and efficiently processes waste images and realizes automatic classification, which helps to improve the efficiency of waste treatment and reduce the risk of misclassification. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 is a schematic diagram of the steps of a method for identifying and classifying solid waste in one embodiment of the present invention;

[0058] Figure 2 is a structural block diagram of a solid waste identification and classification system in one embodiment of the present invention;

[0059] Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.

[0060] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0061] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0062] like Figure 1 As shown, Figure 1 It is a schematic diagram of the steps of a method for identifying and classifying solid waste in one embodiment of the present invention;

[0063] In one embodiment of the present invention, a method for identifying and classifying solid waste is provided, comprising the following steps:

[0064] Step S1, collecting video images of waste to obtain waste videos; wherein the waste includes solid waste and non-solid waste.

[0065] Specifically, at the waste treatment site or classification belt, a camera is set up to collect images of passing waste to obtain a continuous video of the waste. The deep learning model in current technology (based on ResNet-50 convolutional network and U-Net structure) is used to process the waste video frames to extract the feature information of the waste. The texture features of the waste are extracted and enhanced by the local binary pattern (LBP) operator. The extracted texture features are input into the pre-trained YOLO (You Only Look Once) model for rapid screening to distinguish the features of solid waste and non-solid waste. The screened solid waste features and non-solid waste features (misscreened solid features) are further analyzed and processed, and the features retained for the first time are fused, and the classification calculation results are obtained: the retained solid waste features are fused with the misscreened non-solid waste features, and the specific category of the waste is calculated using the classification algorithm.

[0066] The above steps can achieve the following technical effects: real-time monitoring of waste and providing raw data for subsequent image processing and feature analysis. Accurate identification of the boundaries and shapes of waste is helpful for subsequent texture feature extraction and classification. Improved recognition of waste materials and surface textures helps to distinguish different types of waste. Improved the speed and accuracy of the classification process and achieved fast and efficient preliminary classification. Ensured that the final solid waste features have higher accuracy and reduced classification errors. Achieved more accurate waste classification and provided accurate data that can be used in automated garbage sorting systems. In summary: The above steps provide an automated, efficient and accurate waste sorting solution through advanced image processing and deep learning technologies. The technical effects include increasing sorting speed, reducing labor costs, improving waste treatment efficiency, and contributing to environmental protection.

[0067] Step S2, extracting features from the waste video through a segmentation model to obtain waste features; wherein the segmentation model uses the convolutional layer in the ResNet-50 model as an encoder, and the output end of the encoder is connected to the input end of the decoder in the U-Net model.

[0068] Specifically, the core of the above steps is to apply a hybrid neural network model to process waste videos. The segmentation model combines ResNet-50 and U-Net, with ResNet-50 as an encoder and U-Net as a decoder. The encoder's task is to extract the features of waste in the video. As a deep convolutional neural network, ResNet-50 is very suitable for processing complex image data and can effectively extract and identify features in images. The task of the decoder is to reconstruct the precise details of the image based on the features extracted by the encoder. The U-Net structure is particularly suitable for image segmentation tasks and can help the model understand the shape and edges of waste more accurately. Through this hybrid model, the system can extract key features from waste videos. These features include not only the shape and size of the waste, but also more complex attributes such as texture, color, and possible materials.

[0069] The above steps can achieve the following technical effects: The model combining ResNet-50 and U-Net can more accurately identify and segment waste in the video, which is crucial for subsequent classification and processing. Automated processing reduces manual participation and greatly improves the efficiency of waste processing. Due to its deep learning characteristics, this model can adapt to different types and forms of waste and has good generalization ability. Through the use of deep learning models, the system can have a deeper understanding of the detailed characteristics of waste, thereby providing a more accurate basis for classification. In summary: By using such a hybrid model, important features can be effectively extracted from waste videos, providing strong technical support for the automatic classification and processing of waste.

[0070] Step S3, enhancing the waste features through the LBP operator model to obtain the texture features of the waste.

[0071] Specifically, it is necessary to apply the LBP operator to the features extracted from the waste video. The following steps are usually involved: Select a window (e.g., a pixel and its surrounding neighborhood). Compare the grayscale value of the central pixel of the window with the grayscale value of its neighboring pixels. Encode each neighboring pixel according to whether the grayscale value of the central pixel is greater than the grayscale value of the neighboring pixel (usually use 0 to indicate less than or equal to, and use 1 to indicate greater than). Read the encoding sequence and convert the obtained binary number into a decimal number, which is the LBP value of the window. Apply these LBP values ​​to the entire image to obtain an LBP texture feature map. After obtaining the LBP texture feature map, further enhancement processing may be required to improve the discriminability of the feature, for example: calculate the histogram of the LBP feature map to represent the distribution of different LBP values, and the histogram may need to be normalized so that it is not affected by the image size. Statistical features can be further extracted, such as texture contrast, uniformity, entropy, etc.

[0072] The above steps can achieve the following technical effects: LBP is a powerful texture descriptor that can effectively extract and describe local texture features of objects, which helps to distinguish waste of different materials and surfaces. LBP features are robust to local image rotation and grayscale changes. It is understandable that even under different lighting conditions and slight deformations, the texture features can still maintain a certain invariance. The LBP algorithm is relatively simple in calculation and can efficiently extract texture features from large amounts of video data. It is suitable for real-time or near real-time waste classification systems. In summary: The step of using the LBP operator model to enhance the processing of waste features can significantly improve the recognition ability and robustness of waste texture features, thereby improving the overall performance of the waste classification system.

[0073] Step S4, inputting the texture features of the waste into a preset YOLO model for screening to obtain solid waste features and non-solid waste features.

[0074] Specifically, the waste texture features obtained by LBP operator enhancement processing are used as input data, and the waste texture features will be fed into a pre-trained YOLO model. YOLO is a popular real-time object detection system that can quickly and accurately identify and locate multiple objects in an image. The YOLO model analyzes the input texture features and identifies different objects in the image (in this case, different types of waste). The model distinguishes between solid waste and non-solid waste by analyzing the texture features. The above classification is based on the model's recognition of different materials and object forms. The output of the YOLO model will be information about whether the waste is solid or non-solid. The above information can be used for further processing steps, such as automated waste sorting or more detailed classification.

[0075] The above steps can achieve the following technical effects: The YOLO model is well-known for its extremely high operating speed and is suitable for application scenarios that require real-time or near real-time processing. Due to the high accuracy of the YOLO model in the field of object detection, the above steps help to improve the accuracy of the overall waste classification system. The YOLO model can be trained to adapt to various types and forms of waste, allowing the system to flexibly handle a variety of waste. In summary: Inputting the texture features of the waste into the preset YOLO model for screening is an efficient and accurate step, which can speed up the waste classification process and improve the accuracy of classification, which is crucial to realizing an automated and efficient waste management system.

[0076] Step S5, analyzing and processing the solid waste characteristics to obtain the solid waste characteristics retained for the first time, analyzing and processing the non-solid waste characteristics to obtain the non-solid waste characteristics retained for the first time, and fusing the solid waste characteristics retained for the first time with the non-solid waste characteristics retained for the first time to obtain the first solid waste characteristics; wherein the non-solid waste characteristics retained for the first time are the solid waste characteristics that are incorrectly screened out by the YOLO model.

[0077] Specifically, the solid waste features obtained from the YOLO model need to be further analyzed to confirm their accuracy. This includes comparing feature libraries, using additional classification algorithms, or applying deeper image processing techniques to refine the classification. Non-solid waste features (including solid waste features that are mistakenly screened by the YOLO model) also need to be similarly analyzed and processed. The purpose of the above process is to reduce classification errors, especially the situation where solid waste is misclassified as non-solid. The solid waste features retained after the above steps are analyzed and processed and fused with the non-solid waste features. The above fusion process is to integrate all available information and improve the accuracy of the final classification. After fusion, more accurate and comprehensive waste features are obtained. These features can be used for the final waste classification and provide accurate data for the automatic sorting system.

[0078] The above steps can achieve the following technical effects: By analyzing and processing the characteristics of each category, the errors in the initial classification (such as that performed by the YOLO model) can be effectively reduced. Fusion of features from different sources can provide more comprehensive information and help to more accurately determine the type of waste. After these steps, the final waste characteristics will be more accurate.

[0079] Step S6, classifying and calculating the first solid waste characteristics to obtain a classification result of the solid waste.

[0080] Specifically, by analyzing and processing the collected waste feature data, image processing, pattern recognition and other technologies are used to extract key features for classification, such as shape, size, color, texture, etc. On the basis of feature extraction, feature selection is required to reduce the amount of calculation and improve the efficiency and accuracy of classification. Features that contribute greatly to the classification results are screened through statistical analysis, machine learning algorithms and other methods. Use the extracted and selected features to train machine learning models or deep learning models. Possible models include support vector machines (SVM), decision trees, random forests, deep neural networks, etc. The extracted features are input into the trained model for classification calculation, and the model outputs the probability that each solid waste belongs to each preset classification or a direct classification label. In order to ensure the accuracy of the classification, the classification results need to be verified. This can be done through methods such as cross-validation and independent data set testing. If the accuracy does not meet the requirements, it is necessary to return to the feature extraction or model training steps for optimization and adjustment.

[0081] The above steps can achieve the following technical effects: Through accurate feature extraction and effective feature selection, the accuracy of the solid waste classification model can be improved. Optimizing features and models can reduce the amount of calculation and increase processing speed, achieving rapid classification. Automation of classification can reduce manual intervention, save time and labor costs, and is particularly useful when dealing with large amounts of waste. Through continuous training and optimization, the model can better adapt to waste classification tasks under various types and conditions.

[0082] In some specific embodiments, the convolutional layer in the ResNet-50 model includes a first convolutional layer and a BN layer; and extracting features from the waste video using a segmentation model to obtain waste features includes:

[0083] Inputting the waste video into the first convolutional layer to extract features and obtain first waste features;

[0084] Inputting the first waste feature into the BN layer for extraction to obtain a second waste feature;

[0085] Inputting the first waste feature and the second waste feature into a new Conv-concat module for fusion and splicing processing to obtain a third waste feature; wherein the new Conv-concat module is set between the BN layer and the convolution block of the U-Net;

[0086] The third waste feature is normalized by a convolution block of U-Net to obtain a waste feature.

[0087] Specifically, the waste video is first input into the first convolutional layer of the ResNet-50 model. The model begins to extract primary features of the waste, such as edges, colors, textures, etc. Next, the features obtained from the first convolutional layer are passed to the batch normalization (BN) layer. The BN layer is used in deep learning to speed up the training process and also helps prevent overfitting. The features are further processed and standardized. The features output by the first convolutional layer and the BN layer are then fed into a new Conv-concat module. The segmentation model is designed to better fuse and splice features from different sources. Through this fusion, the resulting features will contain richer information. Finally, the fused features are input into the convolutional block of U-Net. U-Net is a network structure commonly used for image segmentation, and its convolutional blocks can further process and refine features to achieve more accurate feature extraction.

[0088] The above steps can achieve the following technical effects: by combining ResNet-50 and U-Net, it is possible to deeply extract complex features in waste videos, thereby providing richer and more accurate feature information for subsequent classification or recognition tasks; the new Conv-concat module can effectively fuse features from different levels, and the above fusion helps to capture more comprehensive information and enhance the expressiveness of the final features. The use of batch normalization layers can accelerate model training, while the structure of U-Net helps to improve the accuracy of feature extraction, especially in detail processing. Combining the deep network of ResNet-50 and the refined processing of U-Net, the above scheme is suitable for processing complex or changeable waste recognition scenarios, especially when there are many types of waste and different forms. In summary: through this advanced feature extraction method, it can provide strong data support for subsequent applications such as waste classification and recognition, thereby greatly improving the performance and accuracy of these applications.

[0089] In some specific embodiments, the waste features are enhanced by the LBP operator model to obtain the texture features of the waste, including:

[0090] The waste characteristics are processed by the LBP operator model to generate a waste characteristic image, and the waste characteristic image is divided to obtain multiple local waste characteristic image regions;

[0091] Calculating the region of each local waste feature image by using the LBP operator model to obtain a first texture feature corresponding to the region of each local waste feature image;

[0092] Select a pixel point in each of the first texture features, and perform base conversion on the grayscale value of the pixel point and the grayscale value of each pixel point in the neighborhood of the pixel point to obtain a binary number corresponding to the grayscale value of each pixel point;

[0093] Based on the binary digit corresponding to the gray value of each pixel point, the texture feature of the waste is obtained.

[0094] Specifically, the LBP operator is used to process the waste features and generate a feature image of the waste. The waste feature image is then divided into multiple local areas, and detailed texture feature analysis can be performed on each area. The LBP operator model is used to calculate each area of ​​the local waste feature image to obtain the corresponding initial texture feature (first texture feature). A pixel point is selected in each first texture feature, and then the grayscale value of the pixel point is compared with the grayscale value of each pixel point in its neighborhood, and a binary sequence is generated based on the comparison result. Based on the binary sequence generated by each pixel point, the texture feature of the waste can be obtained. Generally, the texture of an area is characterized by calculating the histogram of the binary sequence.

[0095] The above steps can achieve the following technical effects: As an effective texture descriptor, the LBP operator can extract the slight texture changes on the surface of the waste and obtain more detailed texture features. Local area division of the feature image can make the feature description more specific, reflect the local changes in the texture of the waste surface, and improve the accuracy of image classification and recognition. The LBP feature has certain rotation invariance and grayscale invariance, which can be understood as the texture description is relatively stable even under different angles or lighting conditions, which helps to improve the robustness of waste classification. The calculation of the LBP feature is relatively simple, without complex mathematical operations, so the calculation efficiency is high and it is suitable for real-time waste treatment systems. The fine-grained texture features extracted can greatly enhance the performance of waste recognition and classification, especially in distinguishing between types of waste with rich texture information. In summary: Using the LBP operator model to strengthen the processing of waste features can greatly improve the extraction effect of waste texture features and facilitate subsequent recognition and classification tasks.

[0096] In some specific embodiments, the inputting of the texture features of the waste into a preset YOLO model for screening to obtain the solid waste features and non-solid waste features includes:

[0097] Inputting the texture features of the waste into a preset YOLO model for extraction to obtain a plurality of second texture features;

[0098] Performing feature encoding processing on the plurality of second texture features to obtain a vector corresponding to each second texture feature;

[0099] Inputting the vector corresponding to each second texture feature into a preset binary classification model to obtain the probability corresponding to each second texture feature;

[0100] Based on the probability corresponding to each of the first texture features, obtaining a label corresponding to the solid waste feature and a label corresponding to the non-solid waste feature;

[0101] The label corresponding to the solid waste feature is input into a preset label coding model for coding conversion to obtain the solid waste feature, and the label of the non-solid waste feature is input into a preset label coding model for coding conversion to obtain the non-solid waste feature.

[0102] Specifically, the texture features of the waste are input into a preset YOLO model. The YOLO (You Only LookOnce) model is a fast and efficient object detection model that can extract key features of waste. After processing the texture features, the YOLO model outputs multiple second texture features. The output multiple second texture features are obtained by identification and processing by the YOLO model, and contain information about the shape, size, texture, etc. of the waste. The extracted second texture features are feature encoded and converted into corresponding vector forms. This step is to convert the features into a format suitable for processing by a machine learning model. The encoded vector is input into a preset binary classification model. The binary classification model will classify each texture feature and output the probability that they belong to solid waste or non-solid waste respectively. Based on the probability output by the binary classification model, each texture feature is assigned a label of solid waste feature or non-solid waste feature. Then, these labels are encoded and converted through a preset label encoding model to obtain the final classification result.

[0103] The above steps can achieve the following technical effects: The use of the YOLO model can quickly and effectively extract the key features of waste and improve the processing speed of the entire system. By combining texture features and deep learning models, the solution can more accurately distinguish solid waste from non-solid waste. The entire process is highly automated, reducing manual participation and improving processing efficiency and accuracy. The solution can be adjusted and optimized according to the characteristics of different types of waste, and has good adaptability and flexibility. The use of feature encoding and label encoding facilitates the conversion and application of data between different models and processing stages. In summary: By utilizing advanced machine learning technology, the solution achieves efficient extraction and accurate classification of waste features, and is particularly suitable for scenarios where large amounts of waste data need to be quickly processed and classified.

[0104] In some specific embodiments, the first retained solid waste feature is merged with the first retained non-solid waste feature to obtain the first solid waste feature, which includes:

[0105] Extracting features of each of the solid waste features retained for the first time through a convolutional neural network to obtain corresponding solid waste features;

[0106] Performing characteristic calculation on each of the solid waste characteristics to obtain characteristic parameters corresponding to each solid waste characteristic;

[0107] Comparing the characteristic parameter corresponding to each solid waste characteristic with a preset threshold value of the solid waste characteristic parameter;

[0108] If the characteristic parameter corresponding to the solid waste characteristic is not within the preset threshold of the solid waste characteristic parameter, the solid waste characteristic is eliminated; if the characteristic parameter corresponding to the solid waste characteristic is within the preset threshold of the solid waste characteristic parameter, the solid waste characteristic is retained;

[0109] Extracting features of each of the non-solid waste features retained for the first time through a convolutional neural network to obtain corresponding non-solid waste features;

[0110] Performing feature calculation on each of the non-solid waste features to obtain feature parameters corresponding to each non-solid waste feature;

[0111] Comparing the characteristic parameter corresponding to each solid waste characteristic with a preset threshold value of the solid waste characteristic parameter;

[0112] If the characteristic parameter corresponding to the non-solid waste characteristic is not within the preset threshold value of the non-solid waste characteristic parameter, the solid waste characteristic is eliminated; if the characteristic parameter corresponding to the non-solid waste characteristic is within the preset threshold value of the solid waste characteristic parameter, the non-solid waste characteristic is retained;

[0113] The retained solid waste feature and the retained non-solid waste feature are merged to obtain a first solid waste feature.

[0114] Specifically, convolutional neural networks are used to extract features from the solid waste features and non-solid waste features retained for the first time. This step is to extract the key features of each type of waste through a deep learning model. Feature parameters are calculated for the extracted solid waste features and non-solid waste features, respectively, to obtain feature parameters corresponding to each feature. The calculated feature parameters are compared with the preset feature parameter thresholds for solid waste and non-solid waste. If the feature parameter is not within the threshold range, the feature is eliminated; if it is within the threshold range, the feature is retained. The retained solid waste features and non-solid waste features are merged to obtain the first solid waste feature. The purpose of this step is to integrate key information of different types of waste and provide a more comprehensive data basis for subsequent processing.

[0115] The above steps can achieve the following technical effects: Through the deep extraction of various types of waste features by convolutional neural network, more detailed and accurate feature information can be obtained. By comparing with the preset threshold, the features that are valuable for classification and identification tasks are effectively screened out, improving the accuracy and efficiency of the entire system. Fusion of features of different types of waste can provide more comprehensive information, which helps to improve the final classification and identification.

[0116] In some specific embodiments, the first solid waste characteristics are classified and calculated to obtain the classification results of the solid waste, including:

[0117] Inputting the first solid waste characteristic into a deep learning model for calculation to obtain characteristic parameters of the first solid waste;

[0118] Based on the characteristic parameters of the first solid waste, the first solid waste characteristics are classified to obtain a classification result of the solid waste.

[0119] Specifically, the fused first solid waste feature (i.e., data integrating solid and non-solid waste features) is input into a deep learning model. The deep learning model may be a convolutional neural network (CNN), a recurrent neural network (RNN), a multi-layer perceptron (MLP), etc. The deep learning model processes the input solid waste features to obtain feature parameters for each waste sample. The feature parameters represent the position of the sample in a high-dimensional feature space, and the feature parameters capture the essential properties of the waste. Based on the feature parameters of each sample, the model classifies and calculates the solid waste features. The classification may be based on a supervised learning method, in which the model has previously learned the categories to which the feature parameters of each type of waste conform.

[0120] The above steps can achieve the following technical effects: Using deep learning to classify waste reduces the need for manual identification and improves the degree of automation of classification. Since deep learning models can usually quickly identify new samples once training is completed, the above method increases the speed of waste classification. The high accuracy of deep learning models in image recognition and classification helps to improve the accuracy of solid waste classification. Deep learning models are able to handle and adapt to a variety of different waste characteristics, including in diverse and complex environments. This provides more accurate data for waste management and improves decision-making and the formulation of management strategies. In summary: The above scheme achieves efficient and accurate classification of solid waste characteristics through deep learning models, which has positive significance for modern waste treatment systems and circular economy.

[0121] In some specific embodiments, based on the characteristic parameters of the first solid waste, the first solid waste characteristics are classified to obtain a classification result of the solid waste, including:

[0122] Performing encoding calculation on the parameters of the first solid waste characteristic to obtain a vector corresponding to the parameters of the first solid waste characteristic;

[0123] Calculating a vector corresponding to a parameter of the first solid waste characteristic to obtain a characteristic value of the first solid waste;

[0124] Comparing the characteristic value of the solid waste with a preset threshold range;

[0125] If the characteristic value of solid waste is higher than the preset threshold range, it is solid recyclable waste;

[0126] If the characteristic value of solid waste is within the preset threshold range, it is hazardous solid recycling waste;

[0127] If the characteristic value of solid waste is lower than the preset threshold range, it is non-recyclable solid waste.

[0128] Specifically, for each parameter of the first solid waste characteristic, encoding calculation is performed to obtain a corresponding vector. This step is to convert the extracted characteristic parameters into a form suitable for further processing, and calculate the encoded vector to obtain the characteristic value of each solid waste. The characteristic value of solid waste is a quantitative representation of the characteristics of the waste. The calculated characteristic value is compared with the preset threshold interval. The above threshold interval is pre-set based on different classifications of solid waste (such as recyclable, hazardous, and non-recyclable). If the characteristic value of the solid waste is higher than the preset threshold interval, it is determined to be solid recyclable waste. If the characteristic value of the solid waste is within the preset threshold interval, it is determined to be hazardous solid recyclable waste. If the characteristic value of the solid waste is lower than the preset threshold interval, it is determined to be non-recyclable solid waste.

[0129] The above steps can achieve the following technical effects: solid waste can be more accurately classified as recyclable, hazardous or non-recyclable, thereby improving the efficiency and effectiveness of waste treatment. Automated characteristic parameter calculation and classification judgment reduce manual intervention and improve processing speed and accuracy. Accurate classification of recyclable and non-recyclable items helps optimize resource recycling. Accurate identification and classification of hazardous solid waste helps reduce environmental pollution and improve public health protection. It provides data support for waste management and policy making, and helps to formulate more scientific and reasonable waste treatment strategies. In summary: through detailed characteristic analysis and intelligent classification, it provides strong technical support for the efficient treatment of solid waste and resource recovery.

[0130] The above describes the solid waste identification and classification method in the embodiment of the present invention. The following describes the solid waste identification and classification system in the embodiment of the present invention. Figure 2 In one embodiment of the present invention, a system for identifying and classifying solid waste includes:

[0131] The acquisition module 21 performs video acquisition of images of waste to obtain waste videos; wherein the waste includes solid waste and non-solid waste;

[0132] An extraction module 22 extracts features from the waste video through a segmentation model to obtain waste features; wherein the segmentation model uses a convolutional layer in a ResNet-50 model as an encoder, and an output end of the encoder is connected to an input end of a decoder in a U-Net model;

[0133] The enhancement module 23 enhances the waste features through the LBP operator model to obtain the texture features of the waste;

[0134] The screening module 24 inputs the texture features of the waste into a preset YOLO model for screening to obtain solid waste features and non-solid waste features;

[0135] The analysis module 25 analyzes and processes the solid waste features to obtain the solid waste features retained for the first time, analyzes and processes the non-solid waste features to obtain the non-solid waste features retained for the first time, and fuses the solid waste features retained for the first time with the non-solid waste features retained for the first time to obtain the first solid waste features; wherein the non-solid waste features retained for the first time are the solid waste features that are incorrectly screened by the YOLO model;

[0136] The classification module 26 performs classification calculation on the first solid waste feature to obtain a classification result of the solid waste.

[0137] In this embodiment, for the specific implementation of each unit in the above system embodiment, please refer to the above method embodiment, which will not be repeated here.

[0138] Reference Figure 3 The present invention also provides a computer device in an embodiment, wherein the internal structure of the computer device can be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a display screen, an input system, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.

[0139] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.

[0140] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0141] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.

[0142] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, system, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, system, article or method. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, system, article or method including the element.

[0143] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for identifying and classifying solid waste, characterized in that: The following steps are involved: Capturing the image of the waste to obtain a waste video; wherein the waste includes solid waste and non-solid waste; Extracting features from the waste video through a segmentation model to obtain waste features; wherein the segmentation model uses a convolutional layer in a ResNet-50 model as an encoder, and an output end of the encoder is connected to an input end of a decoder in a U-Net model; The waste features are enhanced through the LBP operator model to obtain the texture features of the waste; Input the texture features of the waste into the preset YOLO model for screening to obtain solid waste features and non-solid waste features; Analyzing and processing the solid waste features to obtain the solid waste features retained for the first time, analyzing and processing the non-solid waste features to obtain the non-solid waste features retained for the first time, and fusing the solid waste features retained for the first time with the non-solid waste features retained for the first time to obtain the first solid waste features; wherein the non-solid waste features retained for the first time are the solid waste features that are incorrectly screened by the YOLO model; Classifying and calculating the first solid waste characteristic to obtain a classification result of the solid waste; The texture features of the waste are input into the preset YOLO model for screening, and the solid waste features and non-solid waste features obtained include: Inputting the texture features of the waste into a preset YOLO model for extraction to obtain a plurality of second texture features; Performing feature encoding processing on the plurality of second texture features to obtain a vector corresponding to each second texture feature; Inputting the vector corresponding to each second texture feature into a preset binary classification model to obtain the probability corresponding to each second texture feature; Based on the probability corresponding to each second texture feature, obtaining a label corresponding to the solid waste feature and a label corresponding to the non-solid waste feature; Input the label corresponding to the solid waste feature into a preset label coding model for coding conversion to obtain the solid waste feature, and input the label of the non-solid waste feature into a preset label coding model for coding conversion to obtain the non-solid waste feature; The solid waste features retained for the first time are merged with the non-solid waste features retained for the first time to obtain the first solid waste features including: Extracting features of each of the solid waste features retained for the first time through a convolutional neural network to obtain corresponding solid waste features; Performing characteristic calculation on each of the solid waste characteristics to obtain characteristic parameters corresponding to each solid waste characteristic; Comparing the characteristic parameter corresponding to each solid waste characteristic with a preset threshold value of the solid waste characteristic parameter; If the characteristic parameter corresponding to the solid waste characteristic is not within the preset threshold of the solid waste characteristic parameter, the solid waste characteristic is eliminated; if the characteristic parameter corresponding to the solid waste characteristic is within the preset threshold of the solid waste characteristic parameter, the solid waste characteristic is retained; Extracting features of each of the non-solid waste features retained for the first time through a convolutional neural network to obtain corresponding non-solid waste features; Performing feature calculation on each of the non-solid waste features to obtain feature parameters corresponding to each non-solid waste feature; Comparing the characteristic parameter corresponding to each non-solid waste characteristic with a preset threshold value of the non-solid waste characteristic parameter; If the characteristic parameter corresponding to the non-solid waste feature is not within the preset threshold of the non-solid waste characteristic parameter, the non-solid waste feature is eliminated; if the characteristic parameter corresponding to the non-solid waste feature is within the preset threshold of the non-solid waste characteristic parameter, the non-solid waste feature is retained; The retained solid waste feature and the retained non-solid waste feature are merged to obtain a first solid waste feature.

2. The method for identifying and classifying solid waste according to claim 1, characterized in that: The convolutional layers in the ResNet-50 model include a first convolutional layer and a BN layer; the waste video is subjected to feature extraction by the segmentation model to obtain waste features including: Inputting the waste video into a first convolutional layer to extract features and obtain first waste features; Inputting the first waste feature into the BN layer for extraction to obtain a second waste feature; Inputting the first waste feature and the second waste feature into a new Conv-concat module for fusion and splicing processing to obtain a third waste feature; wherein the new Conv-concat module is set between the BN layer and the convolution block of the U-Net; The third waste feature is normalized by a convolution block of U-Net to obtain a waste feature.

3. The method for identifying and classifying solid waste according to claim 1, characterized in that: The waste features are enhanced by the LBP operator model to obtain the texture features of the waste, including: The waste characteristics are processed by the LBP operator model to generate a waste characteristic image, and the waste characteristic image is divided to obtain multiple local waste characteristic image regions; Calculating the region of each local waste feature image by using the LBP operator model to obtain a first texture feature corresponding to the region of each local waste feature image; Select a pixel point in each of the first texture features, and perform base conversion on the grayscale value of the pixel point and the grayscale value of each pixel point in the neighborhood of the pixel point to obtain a binary number corresponding to the grayscale value of each pixel point; Based on the binary digit corresponding to the gray value of each pixel point, the texture feature of the waste is obtained.

4. The method for identifying and classifying solid waste according to claim 1, characterized in that: The first solid waste characteristics are classified and calculated to obtain the classification results of the solid waste including: Inputting the first solid waste characteristic into a deep learning model for calculation to obtain characteristic parameters of the first solid waste; Based on the characteristic parameters of the first solid waste, the first solid waste characteristics are classified to obtain a classification result of the solid waste.

5. The method for identifying and classifying solid waste according to claim 1, characterized in that: Based on the characteristic parameters of the first solid waste, the first solid waste characteristics are classified to obtain classification results of the solid waste, including: Performing encoding calculation on the parameters of the first solid waste characteristic to obtain a vector corresponding to the parameters of the first solid waste characteristic; Calculating a vector corresponding to a parameter of the first solid waste characteristic to obtain a characteristic value of the first solid waste; Comparing the characteristic value of the first solid waste with a preset threshold range; If the characteristic value of the first solid waste is higher than the preset threshold range, it is solid recyclable waste; If the characteristic value of the first solid waste is within a preset threshold range, it is hazardous solid recycling waste; If the characteristic value of the first solid waste is lower than a preset threshold range, it is non-recyclable solid waste.

6. A solid waste identification and classification system, characterized in that: include: The acquisition module performs video acquisition of waste images to obtain waste videos; wherein the waste includes solid waste and non-solid waste; An extraction module extracts features from the waste video through a segmentation model to obtain waste features; wherein the segmentation model uses a convolutional layer in a ResNet-50 model as an encoder, and an output end of the encoder is connected to an input end of a decoder in a U-Net model; The enhancement module enhances the features of waste through the LBP operator model to obtain the texture features of waste; The screening module inputs the texture features of the waste into the preset YOLO model for screening to obtain the solid waste features and non-solid waste features; An analysis module analyzes and processes the solid waste features to obtain solid waste features retained for the first time, analyzes and processes the non-solid waste features to obtain non-solid waste features retained for the first time, and fuses the solid waste features retained for the first time with the non-solid waste features retained for the first time to obtain a first solid waste feature; wherein the non-solid waste features retained for the first time are solid waste features that are incorrectly screened by the YOLO model; A classification module, which performs classification calculation on the first solid waste feature to obtain a classification result of the solid waste; The texture features of the waste are input into the preset YOLO model for screening, and the solid waste features and non-solid waste features obtained include: Inputting the texture features of the waste into a preset YOLO model for extraction to obtain a plurality of second texture features; Performing feature encoding processing on the plurality of second texture features to obtain a vector corresponding to each second texture feature; Inputting the vector corresponding to each second texture feature into a preset binary classification model to obtain the probability corresponding to each second texture feature; Based on the probability corresponding to each second texture feature, obtaining a label corresponding to the solid waste feature and a label corresponding to the non-solid waste feature; Input the label corresponding to the solid waste feature into a preset label coding model for coding conversion to obtain the solid waste feature, and input the label of the non-solid waste feature into a preset label coding model for coding conversion to obtain the non-solid waste feature; The solid waste features retained for the first time are merged with the non-solid waste features retained for the first time to obtain the first solid waste features including: Extracting features of each of the solid waste features retained for the first time through a convolutional neural network to obtain corresponding solid waste features; Performing characteristic calculation on each of the solid waste characteristics to obtain characteristic parameters corresponding to each solid waste characteristic; Comparing the characteristic parameter corresponding to each solid waste characteristic with a preset threshold value of the solid waste characteristic parameter; If the characteristic parameter corresponding to the solid waste characteristic is not within the preset threshold of the solid waste characteristic parameter, the solid waste characteristic is eliminated; if the characteristic parameter corresponding to the solid waste characteristic is within the preset threshold of the solid waste characteristic parameter, the solid waste characteristic is retained; Extracting features of each of the non-solid waste features retained for the first time through a convolutional neural network to obtain corresponding non-solid waste features; Performing feature calculation on each of the non-solid waste features to obtain feature parameters corresponding to each non-solid waste feature; Comparing the characteristic parameter corresponding to each non-solid waste characteristic with a preset threshold value of the non-solid waste characteristic parameter; If the characteristic parameter corresponding to the non-solid waste feature is not within the preset threshold of the non-solid waste characteristic parameter, the non-solid waste feature is eliminated; if the characteristic parameter corresponding to the non-solid waste feature is within the preset threshold of the non-solid waste characteristic parameter, the non-solid waste feature is retained; The retained solid waste feature and the retained non-solid waste feature are merged to obtain a first solid waste feature.

7. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Imaging omics analysis method fusing traditional features and depth features

    CN110533683A

  • Mineral sorting method and device, electronic equipment and storage medium

    CN113673625A

  • Classification prediction method and device, equipment, storage medium and computer program product

    CN114398983A

  • Construction waste material visual identification method based on feature code fusion

    CN114580569A

  • Manipulator-grabbed object texture identification method, device and equipment

    CN115091445A