Garbage classification detection method, device and electronic equipment

By building a garbage can category and garbage discrimination model, identifying garbage can categories and judging garbage categories, the problem of low accuracy of garbage classification detection in the existing technology is solved, and higher accuracy and cost-effectiveness are achieved.

CN113989646BActive Publication Date: 2024-11-22SHANGHAI HOWELL ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111331535.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-11
Publication Date
2024-11-22
Estimated Expiration
2041-11-11

AI Technical Summary

Technical Problem

The accuracy of the existing garbage classification detection methods is not high, making it difficult to effectively identify the phenomenon of misplaced garbage.

Method used

By building a garbage can category identification model and a garbage discrimination model corresponding to different garbage categories, obtain the images to be detected and identify the target garbage can, use the garbage can category identification model to identify the garbage can, and call the corresponding garbage discrimination model to classify garbage. , determine whether the garbage is this category, reduce interference from other types of garbage, and improve accuracy.

Benefits of technology

It improves the accuracy of garbage classification monitoring, reduces the error rate of misinvestment detection, is suitable for large-scale promotion, reduces hardware dependence, and reduces overall costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113989646B_ABST
    Figure CN113989646B_ABST
Patent Text Reader

Abstract

The embodiment of this specification provides a garbage classification detection method, which constructs a garbage bin category recognition model and a garbage discrimination model corresponding to different garbage categories, obtains an image to be detected and identifies a target garbage bin in the image to be detected, uses the garbage bin category recognition model to identify the category of the target garbage bin, calls the garbage discrimination model corresponding to the category, performs category discrimination on the garbage in the image to be detected, determines whether the category of the garbage in the image to be detected is the category corresponding to the garbage discrimination model, and outputs the detection result. By constructing dedicated garbage discrimination models for different categories of garbage, mutual interference of other categories of garbage is reduced. First, the garbage bin category is identified, and then the garbage discrimination model dedicated to the category is called. The garbage discrimination model only needs to determine whether the garbage is a certain category, and there is no need to perform multi-category recognition, thereby improving the accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a garbage classification detection method, device and electronic equipment. Background Art

[0002] Garbage classification has gradually become part of people's lives, and with it comes the phenomenon of misplaced garbage. For example, when people are not clear about the specific categories of garbage, they often make the mistake of throwing one type of garbage into other types of trash cans.

[0003] At present, the industry will collect a large amount of garbage sample information and build a multi-objective model. In this way, any category of garbage information can be identified after being processed and identified by this model. At this time, by comparing it with the category of the trash can, it can be known whether the garbage is thrown into the wrong place.

[0004] However, although this method can achieve detection, its accuracy is often not very high. It is necessary to provide a new method to improve the accuracy of garbage classification monitoring. Summary of the invention

[0005] The embodiments of this specification provide a garbage classification detection method, device and electronic device to improve the accuracy of garbage classification monitoring.

[0006] The embodiment of this specification provides a garbage classification detection method, including:

[0007] Construct a trash can category recognition model and a garbage discrimination model corresponding to different garbage categories;

[0008] Acquire an image to be detected and identify a target trash can in the image to be detected, use the trash can category recognition model to identify the category of the target trash can, call a trash discrimination model corresponding to the category, perform category discrimination on the trash in the image to be detected, determine whether the category of the trash in the image to be detected is the category corresponding to the trash discrimination model, and output a detection result.

[0009] Optionally, the acquiring the image to be detected and identifying the target trash can in the image to be detected includes:

[0010] Acquire two images to be detected collected at adjacent collection times;

[0011] The two images to be detected are compared to determine the target trash can whose storage state has changed.

[0012] Optionally, the identifying the category of the target trash can by using the trash can category recognition model includes:

[0013] The trash can category recognition model is used to process at least one of the trash can cover, the logo and the trash in the trash can, and the classifier in the trash can category recognition model performs category judgment on the processing result.

[0014] Optionally, it also includes:

[0015] Determine whether a trash can cover is detected, and if so, use the cover to identify the type of the trash can.

[0016] Optionally, it also includes:

[0017] Use the front-back discrimination model to distinguish the front and back of the trash can lid.

[0018] Optionally, it also includes:

[0019] Locate the trash can and identify whether the location status of the trash can is abnormal. If abnormal, send a prompt message to the management platform.

[0020] Optionally, the categories include: dry garbage bin, wet garbage bin, recyclable garbage bin and hazardous garbage bin.

[0021] The embodiment of this specification also provides a garbage classification detection device, including:

[0022] Modeling module, builds a trash can category recognition model, and builds trash discrimination models for different categories of trash;

[0023] The detection module obtains the image to be detected and identifies the target trash can in the image to be detected, uses the trash can category recognition model to identify the category of the target trash can, calls the trash discrimination model corresponding to the category, performs category discrimination on the trash in the image to be detected, determines whether the category of the trash in the image to be detected is the category corresponding to the trash discrimination model, and outputs the detection result.

[0024] The embodiment of the present specification also provides an electronic device, wherein the electronic device includes:

[0025] processor; and,

[0026] A memory storing computer executable instructions, which when executed cause the processor to perform any of the above methods.

[0027] An embodiment of the present specification also provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, any of the above methods is implemented.

[0028] The various technical solutions provided in the embodiments of this specification construct a trash can category recognition model and a garbage discrimination model corresponding to different garbage categories, obtain the image to be detected and identify the target trash can in the image to be detected, use the trash can category recognition model to identify the category of the target trash can, call the garbage discrimination model corresponding to the category, perform category discrimination on the trash in the image to be detected, determine whether the category of the trash in the image to be detected is the category corresponding to the garbage discrimination model, and output the detection result. By constructing dedicated garbage discrimination models for different categories of garbage, mutual interference of other categories of garbage is reduced. First, the trash can category is identified, and then the garbage discrimination model dedicated to the category is called. The garbage discrimination model only needs to determine whether the garbage is a certain category, and there is no need to perform multi-category recognition, thereby improving the accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0030] Figure 1 A schematic diagram of the principle of a garbage classification detection method provided in an embodiment of this specification;

[0031] Figure 2 A schematic diagram of the structure of a garbage classification detection device provided in an embodiment of this specification;

[0032] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification;

[0033] Figure 4 A schematic diagram of a computer-readable medium provided for an embodiment of this specification. DETAILED DESCRIPTION

[0034] Exemplary embodiments of the present invention will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments can be implemented in a variety of forms, and should not be construed as limiting the present invention to the embodiments set forth herein. On the contrary, providing these exemplary embodiments enables the present invention to be more comprehensive and complete, and is more convenient for fully conveying the inventive concept to those skilled in the art. The same reference numerals in the figures represent the same or similar elements, components or parts, and thus their repeated description will be omitted.

[0035] Under the premise of being consistent with the technical concept of the present invention, the features, structures, characteristics or other details described in a specific embodiment do not exclude that they can be combined in one or more other embodiments in a suitable manner.

[0036] In the description of specific embodiments, the features, structures, characteristics or other details described in the present invention are intended to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can practice the technical solutions of the present invention without one or more of the specific features, structures, characteristics or other details.

[0037] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0038] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0039] The term "and / or" or "and / or" includes all combinations of any one or more of the associated listed items.

[0040] Figure 1 A schematic diagram of the principle of a garbage classification detection method provided in an embodiment of this specification, the method may include:

[0041] S101: Construct a trash can category recognition model and a garbage discrimination model corresponding to different garbage categories.

[0042] When modeling, we need to use junk samples. The selection of samples will affect the accuracy of the model. If some samples that are irrelevant to the model target are used as modeling samples, it will actually lead to a decrease in model accuracy. Therefore, we take a different approach from the multi-target recognition model, that is, to build a dedicated discrimination model for each category of junk. This model does not need to select from multiple targets, but only needs to make a yes or no judgment to determine whether the category of the junk sample is the category corresponding to the junk discrimination model. This can reduce the interference of other categories of samples on the current modeling process.

[0043] We can use machine learning to build a trash can category recognition model and a garbage discrimination model corresponding to different garbage categories. Specifically, it can be a deep learning algorithm. The prior art of deep learning algorithm has been made public and will not be elaborated here.

[0044] We can use a two-step approach to build a trash can category recognition model and a garbage discrimination model corresponding to different garbage categories.

[0045] Therefore, in the embodiments of this specification, the following may be specifically included:

[0046] Obtain garbage sample image information, use the garbage image samples to build a garbage bin category recognition model and a garbage discrimination model, use the grouping model to group the garbage sample image information, use each group of garbage sample image information to train the garbage discrimination model respectively, calculate the deviation of each garbage discrimination model, adjust the grouping model according to the deviation, use the adjusted grouping model to divide the garbage sample image information into groups again, use the newly divided garbage sample image information belonging to the same group to adjust the garbage discrimination model corresponding to the group, and iterate.

[0047] In this way, through iteration, the sample set finally used to model each garbage discrimination model are all samples of that category that are accurately classified.

[0048] In the embodiments of the present specification, the categories may include: dry garbage bin, wet garbage bin, recyclable garbage bin and hazardous garbage bin.

[0049] In the embodiment of this specification, the method of using each group of garbage sample image information to train the garbage discrimination model may include:

[0050] For the garbage discrimination model corresponding to each category, the group of garbage sample images is used as white samples, and the group of garbage sample images is fused with other groups of garbage sample images as black samples for training.

[0051] Illegal garbage disposal means putting multiple types of garbage that do not meet the classification requirements into one type of trash bin.

[0052] Specifically, for this classification method, illegal disposal may occur in four types of garbage bins. If the original garbage in the garbage bin and the new garbage illegally thrown in produce completely different combinations, it is difficult to converge by training a unified model. Therefore, we train a garbage discrimination model for each category:

[0053] Garbage discrimination model a, with plastic bags, paper bags, and lunch boxes as the background in the dry garbage bin, detects kitchen waste, vegetables and fruits that are illegally placed;

[0054] Garbage discrimination model b detects plastic bags, paper bags, mineral water bottles, etc. that are illegally placed in the wet garbage bin with food and soup as the background.

[0055] The garbage discrimination model c detects plastic bags, vegetables, fruits, etc. that are illegally placed in the recyclable garbage bin with cardboard, plastic, and glass products as the background.

[0056] Garbage discrimination model d, detects other garbage in hazardous waste bins.

[0057] The most common situation among the above is the illegal placement of dry garbage into wet garbage bins, and occasionally wet garbage and recyclable garbage are placed in dry garbage bins.

[0058] S102: Acquire the image to be detected and identify the target trash can in the image to be detected, use the trash can category recognition model to identify the category of the target trash can, call the trash discrimination model corresponding to the category, perform category discrimination on the trash in the image to be detected, determine whether the category of the trash in the image to be detected is the category corresponding to the trash discrimination model, and output the detection result.

[0059] The method constructs a trash can category recognition model and a garbage discrimination model corresponding to different garbage categories, obtains the image to be detected and identifies the target trash can in the image to be detected, uses the trash can category recognition model to identify the category of the target trash can, calls the garbage discrimination model corresponding to the category, classifies the trash in the image to be detected, determines whether the category of the trash in the image to be detected is the category corresponding to the garbage discrimination model, and outputs the detection result. By constructing dedicated garbage discrimination models for different categories of garbage, mutual interference of other categories of garbage is reduced. First, the trash can category is identified, and then the garbage discrimination model dedicated to the category is called. The garbage discrimination model only needs to determine whether the garbage is a certain category, and there is no need to identify multiple categories, thereby improving the accuracy.

[0060] Considering that in actual scenarios, whenever garbage is thrown, there will be a need for identification, and when garbage is thrown, the storage status of the trash can will change. Therefore, we can identify the trash cans with changed storage status from the image to know which trash can the garbage has been thrown into.

[0061] Therefore, in the embodiment of this specification, the step of acquiring the image to be detected and identifying the target trash can in the image to be detected may include:

[0062] Acquire two images to be detected collected at adjacent collection times;

[0063] The two images to be detected are compared to determine the target trash can whose storage state has changed.

[0064] After identifying the target trash can, we need to know its category. There are many ways to do this, such as the logo on the trash can, the style of the trash can lid, the trash already stored in the trash can, or the location of the trash can. These can all be used as ways to identify the category of the target trash can.

[0065] When performing identification, a trash can category recognition model can be built.

[0066] Therefore, in the embodiment of this specification, the step of identifying the category of the target trash can by using the trash can category recognition model may include:

[0067] The trash can category recognition model is used to process at least one of the trash can cover, the logo and the trash in the trash can, and the classifier in the trash can category recognition model performs category judgment on the processing result.

[0068] Classifiers are commonly used in discrete models, and the prior art has been disclosed, so they will not be elaborated in detail here.

[0069] In the embodiment of this specification, the method may further include:

[0070] Determine whether a trash can cover is detected, and if so, use the cover to identify the type of the trash can.

[0071] In the embodiment of this specification, the method may further include:

[0072] Use the front-back discrimination model to distinguish the front and back of the trash can lid.

[0073] In the embodiment of this specification, the method may further include:

[0074] Locate the trash can and identify whether the location status of the trash can is abnormal. If abnormal, send a prompt message to the management platform.

[0075] In specific implementation, a camera may be installed in the garbage room or in the area above the garbage bin to capture images, and images in RGB format with a resolution of 1280x720 may be used.

[0076] In the embodiments of this specification, in order to accurately identify the trash can, we can build an object recognition model to locate the trash can and the covered trash can, so as to facilitate the detection of illegal disposal in the next step.

[0077] Among them, the object recognition model can be a model of the YOLOv model framework.

[0078] The trash can category recognition model can be a model of the MobilenetV3 framework.

[0079] The various model frameworks in the above embodiments are only a preferred choice, and the derived model frameworks can also be used as an implementation method. The YOLOv model framework and MobilenetV3 framework have been discussed in the prior art and will not be elaborated here.

[0080] By adding cameras, there is no need to modify the hardware and the existing trash cans can be used, thus reducing dependence on hardware, lowering overall costs and making it suitable for large-scale promotion.

[0081] Figure 2 A schematic diagram of a garbage classification detection device provided in an embodiment of this specification may include:

[0082] Modeling module 201, constructs a garbage bin category recognition model, and constructs garbage discrimination models for different categories of garbage;

[0083] The detection module 202 obtains the image to be detected and identifies the target trash can in the image to be detected, uses the trash can category recognition model to identify the category of the target trash can, calls the trash discrimination model corresponding to the category, performs category discrimination on the trash in the image to be detected, determines whether the category of the trash in the image to be detected is the category corresponding to the trash discrimination model, and outputs the detection result.

[0084] In the specific implementation, the image to be detected collected by the camera can be first obtained, and then the trash can and the trash can cover can be identified. For the trash can cover, the front and back of the trash can cover can be identified by using the front and back discrimination model, so as to detect whether the position of the trash can is correct. For the identified trash can, the trash can category recognition model can be used to identify its category, so as to call the corresponding category of garbage discrimination model for judgment, and the detection result can be sent to the management platform, or a voice prompt can be sent.

[0085] The device constructs a trash can category recognition model and a garbage discrimination model corresponding to different garbage categories, obtains the image to be detected and identifies the target trash can in the image to be detected, uses the trash can category recognition model to identify the category of the target trash can, calls the garbage discrimination model corresponding to the category, classifies the trash in the image to be detected, determines whether the category of the trash in the image to be detected is the category corresponding to the garbage discrimination model, and outputs the detection result. By constructing dedicated garbage discrimination models for different categories of garbage, mutual interference of other categories of garbage is reduced. The trash can category is first identified, and then the garbage discrimination model dedicated to the category is called. The garbage discrimination model only needs to determine whether the garbage is of a certain category, and does not need to perform multi-category recognition, thereby improving the accuracy.

[0086] Based on the same inventive concept, an embodiment of this specification also provides an electronic device.

[0087] The following describes an electronic device embodiment of the present invention, which can be regarded as a specific physical implementation of the method and device embodiments of the present invention. The details described in the electronic device embodiment of the present invention should be regarded as a supplement to the above method or device embodiments; details not disclosed in the electronic device embodiment of the present invention can be implemented with reference to the above method or device embodiments.

[0088] Figure 3This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. Figure 3 The electronic device 300 according to the embodiment of the present invention is described. Figure 3 The electronic device 300 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0089] like Figure 3 As shown, the electronic device 300 is in the form of a general computing device. The components of the electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one storage unit 320, a bus 330 connecting different system components (including the storage unit 320 and the processing unit 310), a display unit 340, etc.

[0090] The storage unit stores program codes, which can be executed by the processing unit 310, so that the processing unit 310 performs the steps according to various exemplary embodiments of the present invention described in the above processing method section of this specification. For example, the processing unit 310 can perform the following steps: Figure 1 Steps shown.

[0091] The storage unit 320 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 3201 and / or a cache memory unit 3202 , and may further include a read-only memory unit (ROM) 3203 .

[0092] The storage unit 320 may also include a program / utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.

[0093] Bus 330 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0094] The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 300, and / or any device that enables the electronic device 300 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 350. Furthermore, the electronic device 300 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 360. The network adapter 360 may communicate with other modules of the electronic device 300 through the bus 330. It should be understood that although Figure 3 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0095] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation method of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.) or on a network, including a number of instructions to enable a computing device (which can be a personal computer, server, or network device, etc.) to execute the above method according to the present invention. When the computer program is executed by a data processing device, the computer-readable medium can implement the above method of the present invention, that is: Figure 1 The method shown.

[0096] Figure 4 A schematic diagram of a computer-readable medium provided for an embodiment of this specification.

[0097] accomplish Figure 1The computer program of the method shown can be stored on one or more computer readable media. The computer readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0098] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0099] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0100] In summary, the present invention can be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that general data processing devices such as microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0101] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

[0102] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0103] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A garbage classification detection method, characterized in that: include: Obtaining garbage sample image information, using the garbage image samples to build a garbage bin category recognition model and a garbage discrimination model, using the grouping model to group the garbage sample image information, using each group of garbage sample image information to train the garbage discrimination model respectively, calculating the deviation of each garbage discrimination model, adjusting the grouping model according to the deviation, using the adjusted grouping model to group the garbage sample image information again, using the newly divided garbage sample image information belonging to the same group to adjust the garbage discrimination model corresponding to the group, and iterating to obtain garbage discrimination models corresponding to different garbage categories; Acquire two images to be detected that are captured at adjacent capture times and compare the two images to be detected, determine a target trash can whose storage state changes, use the trash can category recognition model to identify the category of the target trash can, call a trash discrimination model corresponding to the category, perform category discrimination on the trash in the image to be detected, determine whether the category of the trash in the image to be detected is the category corresponding to the trash discrimination model, and output a detection result.

2. The method according to claim 1, characterized in that The step of using the trash bin category recognition model to identify the category of the target trash bin includes: The trash can category recognition model is used to process at least one of the trash can cover, the logo and the trash in the trash can, and the classifier in the trash can category recognition model performs category judgment on the processing result.

3. The method according to claim 1, characterized in that Also includes: Determine whether a trash can cover is detected, and if so, use the cover to identify the type of the trash can.

4. The method according to claim 3, characterized in that Also includes: Use the front-back discrimination model to distinguish the front and back of the trash can lid.

5. The method according to claim 4, characterized in that Also includes: Locate the trash can and identify whether the location status of the trash can is abnormal. If abnormal, send a prompt message to the management platform.

6. The method according to claim 1, characterized in that The categories include: dry trash cans, wet trash cans, recyclable trash cans and hazardous waste cans.

7. A garbage classification detection device, characterized in that: include: A modeling module, which obtains garbage sample image information, uses the garbage image samples to build a garbage bin category recognition model and a garbage discrimination model, uses the grouping model to group the garbage sample image information, uses each group of garbage sample image information to train the garbage discrimination model, calculates the deviation of each garbage discrimination model, adjusts the grouping model according to the deviation, uses the adjusted grouping model to divide the garbage sample image information into groups again, uses the newly divided garbage sample image information belonging to the same group to adjust the garbage discrimination model corresponding to the group, and iterates to obtain garbage discrimination models corresponding to different garbage categories; The detection module obtains two images to be detected collected at adjacent collection times and compares the two images to be detected, determines the target trash can whose storage state changes, uses the trash can category recognition model to identify the category of the target trash can, calls the trash discrimination model corresponding to the category, classifies the trash in the image to be detected, determines whether the category of the trash in the image to be detected is the category corresponding to the trash discrimination model, and outputs the detection result.

8. An electronic device, wherein: The electronic device includes: processor; and, A memory storing a computer executable program which, when executed, causes the processor to perform a method according to any one of claims 1 to 6.

9. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method of any one of claims 1 to 6 is implemented.