Method, device and equipment for classifying and sorting waste clothes, medium and product

By preprocessing and data enhancement of waste clothing images, combined with feature extraction of fine-grained classification models and cross-layer mutual attention learning, the problem of intra-class variation and limited data is solved, the classification accuracy and model generalization ability are improved, and the Accurate identification of different types of clothing.

CN118865339AInactive Publication Date: 2024-10-29NANTONG CARBON RESISTANT DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410899713.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing technologies face the problems of intra-class variation and inter-class similarity, limited training data, and neglect of low-level information in the field of fine-grained visual classification, resulting in low classification and recognition accuracy.

Method used

A waste clothing classification and sorting method is adopted, including preprocessing and data enhancement of images, and using the feature extractor in the fine-grained classification model to extract low-level and high-level features, and classifying through expert modules and fusion classifiers, combined with Transfer learning and cross-layer mutual attention learning to achieve image category prediction.

Benefits of technology

It improves the accuracy of classification and recognition, reduces the dependence on training data, can accurately identify different types of waste clothing images without image annotation, and improves the generalization ability and real-time response ability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865339A_ABST
    Figure CN118865339A_ABST
Patent Text Reader

Abstract

The invention provides a waste clothes classification and sorting method and device, equipment, a medium and a product, and relates to the field of waste clothes classification and sorting, and the method comprises the steps that waste clothes images are preprocessed; performing data enhancement on the preprocessed waste garment image; inputting the enhanced waste garment image into a fine-grained classification model, and identifying a category corresponding to the enhanced waste garment image; a feature extractor of the fine-grained classification model extracts low-level features and high-level features of image features of the enhanced waste garment images; the expert module determines an image category prediction score according to different level features based on the classifier, and determines an attention area according to the image category prediction score; the data enhancement module performs data enhancement on the attention area; and the fusion classifier fuses the enhanced region data to generate a category corresponding to the enhanced waste garment image. Recognition difficulty of different types of images can be reduced, the method is not limited by training data, and classification recognition precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of waste clothing classification and sorting, and in particular to a waste clothing classification and sorting method, device, equipment, medium and product. Background Art

[0002] Existing technologies have made significant progress in the field of fine-grained visual classification (FGVC). FGVC aims to reliably distinguish visually similar categories, such as different models of aircraft or cars, which has great potential value for many practical applications. However, FGVC faces several technical challenges, mainly including the following:

[0003] 1) Intra-class variation and inter-class similarity: One of the difficulties of the FGVC task is the high similarity between different categories and the variability between individuals in the same category. This makes it difficult to distinguish and identify images of different categories.

[0004] 2) Limited training data: Collecting and annotating images for FGVC tasks usually requires expertise, and it is difficult to create large-scale FGVC datasets. The limited amount of data limits the learning ability and generalization performance of the model.

[0005] 3) Neglect of low-level information: With the dominance of deep convolutional neural networks (CNNs) in computer vision tasks, existing FGVC algorithms mainly classify based on deep, abstract, and semantic information, while ignoring shallow and detailed information. This information neglect may cause the model to fail to capture the key visual cues required to distinguish different categories. Summary of the invention

[0006] The purpose of this application is to provide a method, device, equipment, medium and product for sorting and sorting used clothing to solve the problems of difficulty in recognizing images of different categories, limited training data and low classification and recognition accuracy caused by ignoring low-level information.

[0007] To achieve the above objectives, this application provides the following solutions:

[0008] In a first aspect, a method for classifying and sorting waste clothing comprises:

[0009] Preprocess the waste clothing images;

[0010] Performing data enhancement on the preprocessed waste clothing images to generate enhanced waste clothing images;

[0011] The enhanced image of used clothing is input into a fine-grained classification model to identify the category corresponding to the enhanced image of used clothing; the fine-grained classification model includes a feature extractor, multiple expert modules, multiple classifiers, a data enhancement module and a fusion classifier; wherein one expert module corresponds to one classifier; the feature extractor includes multiple convolution layers and pooling layers, and the feature extractor is used to extract low-level features and high-level features of the image features of the enhanced image of used clothing; the expert module is used to determine the image category prediction score according to the low-level features and the high-level features based on the classifier, and determine the attention area according to the image category prediction score; the data enhancement module is used to perform data enhancement on the attention area; the fusion classifier is used to fuse the enhanced regional data to generate the category corresponding to the enhanced image of used clothing.

[0012] Optionally, preprocess the waste clothing images, including:

[0013] Abnormal images in the waste clothing images are eliminated to generate preprocessed waste clothing images; the abnormal images include blurred images, images without clothing, incomplete clothing images and multiple clothing images.

[0014] Optionally, data enhancement is performed on the preprocessed waste clothing image to generate an enhanced waste clothing image, specifically including:

[0015] Rotating the preprocessed waste clothing image to generate a rotated image;

[0016] Flipping the rotated image to generate a mirror image;

[0017] Cropping the mirror image to divide the region of interest;

[0018] Scaling the region of interest to generate a scaled image;

[0019] Modifying the color space of the scaled image to generate a color-transformed image;

[0020] Random noise is added to the color-converted image to generate an enhanced image of used clothing; the random noise includes Gaussian noise and salt and pepper noise.

[0021] Optionally, the process of constructing the fine-grained classification model specifically includes:

[0022] Using transfer learning and a convolutional neural network model pre-trained on a large image recognition database ImageNet as the model architecture of the fine-grained classification model;

[0023] Based on the model architecture, a feature extractor of CMAL-Net, a cross-layer mutual attention learning method for fine-grained visual classification, is used as a feature extractor of the fine-grained classification model;

[0024] Based on the automatic generation method of the region of interest, a fine-grained classification model is constructed.

[0025] Optionally, the enhanced waste clothing image is input into a fine-grained classification model to identify a category corresponding to the enhanced waste clothing image, which also includes:

[0026] The hyperparameters of the fine-grained classification model are trained by hyperparameter search, the best hyperparameters are selected, and the optimal fine-grained classification model is determined; the hyperparameters include learning rate, batch size and epoch.

[0027] In a second aspect, a waste clothing classification and sorting device includes: a data acquisition device, a data preprocessing device and a model training system;

[0028] The data collection device includes a conveyor belt and a rack; the rack is arranged on both sides of the conveyor belt; the rack is provided with a lighting lamp and a camera; the conveyor belt is provided with a photoelectric sensor, when the clothing is conveyed to the middle position of the conveyor belt, the photoelectric sensor triggers the camera to take a photo, obtains the image of the waste clothing, and completes the data collection;

[0029] The data preprocessing device is used to preprocess and enhance the data of the waste clothing images;

[0030] The model training system is used to construct a fine-grained classification model, and input the enhanced waste clothing image into the fine-grained classification model to identify the category corresponding to the enhanced waste clothing image.

[0031] In a third aspect, a computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-mentioned method for classifying and sorting used clothing.

[0032] In a fourth aspect, a computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for classifying and sorting used clothing.

[0033] In a fifth aspect, a computer program product includes a computer program, which implements the above-mentioned waste clothing classification and sorting method when executed by a processor.

[0034] According to the specific embodiments provided by the present application, the present application discloses the following technical effects: the present application performs preprocessing and data enhancement on waste clothing images, thereby accurately identifying different types of images, and then extracts low-level features and high-level features in the image through the feature extractor in the fine-grained classification model, taking into account shallow and detailed information, improving the classification and recognition accuracy, and calculating the image category prediction score by the expert module, thereby further improving the classification and recognition accuracy, and further, determining the attention area according to the image category prediction score, and performing data enhancement on the attention area, and generating the category corresponding to the enhanced waste clothing image by fusing the enhanced regional data through the fusion classifier. And the whole process does not require the image to be labeled, but is directly scored by the expert module to obtain the image category prediction score, which is not limited by the training data. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 A flow chart of the method for sorting and separating used clothing provided in this application;

[0037] Figure 2 This is the data preprocessing flow chart;

[0038] Figure 3 Build a flowchart for a fine-grained classification model;

[0039] Figure 4 This is a schematic diagram of a device for sorting and classifying used clothing. DETAILED DESCRIPTION

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

[0041] The purpose of this application is to provide a method, device, equipment, medium and product for classifying and sorting used clothing, which can reduce the difficulty of image recognition of different categories, is not limited by training data, and improves classification and recognition accuracy.

[0042] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0043] Example 1

[0044] like Figure 1 As shown, the present application provides a method for sorting and classifying waste clothing, comprising:

[0045] Step 101: Preprocess the waste clothing image.

[0046] In practical applications, step 101 specifically includes: removing abnormal images from the waste clothing images to generate preprocessed waste clothing images; the abnormal images include blurred images, images without clothing, incomplete clothing images, and multiple clothing images.

[0047] Furthermore, data preprocessing plays a vital role in image classification. It can improve the accuracy, generalization ability and training efficiency of the model, thereby providing more reliable results for practical applications. In combination with the clothing classification and sorting scenario, the data preprocessing process is as follows: Figure 2 shown.

[0048] After the data acquisition device takes a picture of the clothes, the local program will upload it to the object storage cloud service. The data preprocessing device will download the data to the local object storage, and the picture will be stored in a local folder named with the classification number. The next step is to detect whether there are damaged pictures, blurry and other low-quality pictures. These pictures are not suitable for model training and can be automatically eliminated based on traditional computer vision methods. Then, based on multimodal image recognition and positioning technology, the number of clothes in the picture is detected, and pictures with only one piece of clothing are screened out. In addition, pictures with other objects in the picture (such as abnormal intruders) can also be proposed based on arbitrary target detection capabilities.

[0049] Step 102: performing data enhancement on the preprocessed waste clothing image to generate an enhanced waste clothing image.

[0050] In practical applications, step 102 specifically includes: rotating the preprocessed waste clothing image to generate a rotated image; flipping the rotated image to generate a mirror image; cropping the mirror image to divide the region of interest; scaling the region of interest to generate a scaled image; modifying the color space of the scaled image to generate a color-transformed image; adding random noise to the color-transformed image to generate an enhanced waste clothing image; the random noise includes Gaussian noise and salt and pepper noise.

[0051] Furthermore, the data enhancement method can improve the diversity of the data set, increase the generalization ability of the model, reduce the risk of overfitting, and improve the performance in fine-grained image classification tasks. The data enhancement method used in this application is further explained below.

[0052] Rotation: Rotate the image randomly or at a fixed angle to increase the diversity of the data.

[0053] Flip: Flip the image horizontally or vertically to generate a mirror image and increase the number of samples in the dataset.

[0054] Cropping: Cropping an image randomly or at a fixed position to focus the image content on the area of ​​interest, and also to change the image size.

[0055] Scaling: Scale the image randomly or by a fixed ratio to simulate objects at different distances or sizes.

[0056] Color transformation: Modify the color space of an image, such as adjusting brightness, contrast, saturation and other parameters to increase the diversity of the data.

[0057] Adding noise: Add random noise to the image, such as Gaussian noise, salt and pepper noise, etc., to increase the model's robustness to noise.

[0058] Step 103: Input the enhanced waste clothing image into a fine-grained classification model to identify the category corresponding to the enhanced waste clothing image; the fine-grained classification model includes a feature extractor, multiple expert modules, multiple classifiers, a data enhancement module and a fusion classifier; wherein one expert module corresponds to one classifier; the feature extractor includes multiple convolution layers and pooling layers, and the feature extractor is used to extract low-level features and high-level features of the image features of the enhanced waste clothing image; the expert module is used to determine the image category prediction score based on the classifier according to the low-level features and the high-level features, and determine the attention area according to the image category prediction score; the data enhancement module is used to perform data enhancement on the attention area; the fusion classifier is used to fuse the enhanced regional data to generate the category corresponding to the enhanced waste clothing image.

[0059] In practical applications, clothing classification and sorting have inherent challenges of fine-grained image classification tasks, mainly including three aspects:

[0060] 1) High similarity between categories: In clothing style classification, there are often a large number of categories, and there may be high similarity between these categories, such as similar styles from different brands, the same style in different colors, etc. This makes distinguishing these subtle differences a challenging task.

[0061] 2) Subtle visual differences: Clothing styles may have subtle differences in texture, pattern, cut, etc. These differences may be obvious to humans, but are often difficult for computer vision algorithms to capture and distinguish.

[0062] 3) Small Sample Learning: Some clothing styles may have only a few samples available for training, which can cause the model to overfit when learning these categories.

[0063] To address these challenges, this application uses transfer learning and a convolutional neural network model pre-trained on the large image recognition database ImageNet as a feature extraction model. It also draws on the feature extractor and automatic attention region generation method of the Cross-layer Mutual Attention Learning for Fine-grained Visual Classification (CMAL-Net) to improve the performance of the model in fine-grained classification tasks.

[0064] In practical applications, the construction process of the fine-grained classification model specifically includes: using transfer learning and taking the convolutional neural network model pre-trained on ImageNet as the model architecture of the fine-grained classification model; based on the model architecture, using the feature extractor of CMAL-Net as the feature extractor of the fine-grained classification model; and constructing a fine-grained classification model based on the automatic generation method of the focus area.

[0065] like Figure 3 As shown, Figure 3 The input image in is also extracted through the feature extraction network. The features are fed into three experts respectively. Each expert generates a prediction score and a corresponding attention region. Then, data augmentation is performed using all attention regions to generate a fusion input, which is finally fed into the fusion classifier to produce the final prediction.

[0066] In practical applications, hyperparameter search can help optimize the performance and generalization ability of the model. This application combines the automated learning (AutoML) hyperparameter search technology to search for hyperparameters such as learning rate, batch size, and epoch. The optimization goal is to maximize the accuracy on the validation set and select the best hyperparameters, thereby improving the recognition accuracy in the clothing sorting scenario.

[0067] The method described in this application improves the accuracy of clothing classification, achieving an accuracy rate of more than 90% in nearly 100 clothing categories, has strong adaptability to diversified clothing, and can be widely used in clothing of different types, styles and brands. In addition, the method can meet the requirements of real-time performance, so that it can be used in application scenarios that require rapid response.

[0068] Experiments have shown that data preprocessing and multi-classifier / multi-attention predictor models are the main reasons for ensuring accuracy. Table 1 is a schematic diagram of the impact of data preprocessing and multi-classifier / multi-attention predictor models on model accuracy, as shown in Table 1.

[0069] Table 1

[0070]

[0071] Among them, the Baseline is the ResNet50 model.

[0072] Data preprocessing can help reduce noise and interference in images, allowing the model to focus more on learning real features. By removing or reducing noise, the model can better understand the content in the image, thereby improving the accuracy of classification. Resizing images to a uniform size ensures that the inputs processed by the model during training are of consistent size, which helps the model better learn the features in the image. Uniform size can also reduce the risk of overfitting the model on images of different sizes.

[0073] The multi-classifier / multi-attention predictor model in this application is derived from CMAL-Net, which uses multiple classifiers to process different image regions, and each classifier focuses on learning specific fine-grained features. The benefit of this is that it can increase the diversity of the model, enabling it to better capture tiny details and differences in the image, thereby improving classification accuracy. CMAL-Net introduces multiple attention region predictors to determine which image regions are most important for specific classification tasks. In this way, the model can pay more attention to important areas related to the classification task and ignore areas that are not related to the task, thereby improving the efficiency and accuracy of the model. CMAL-Net also uses a cross-level attention mechanism, allowing feature maps at different levels to interact with each other, thereby better capturing fine-grained features in the image. This cross-level attention mechanism can help the model better understand the image and focus on features that are meaningful to the classification task, further improving the classification accuracy.

[0074] This application achieves information fusion and complementarity at different levels and in different regions through cross-layer attention learning and multi-expert structure. Different classifiers and predictors can complement each other, helping the model to understand the image more comprehensively, thereby improving classification accuracy.

[0075] Data augmentation can enhance features in an image, making it easier for the model to distinguish between different categories. For example, enhancing contrast and color vividness can highlight important features in an image, thereby improving classification accuracy. Data augmentation can also increase the diversity of the dataset by generating transformed images. This helps the model learn a wider range of image features and improve generalization capabilities. However, in this scenario, data augmentation does not contribute much to the improvement in accuracy (only 0.3 percentage points). In addition, hyperparameter search also contributed 0.6% to the improvement in accuracy.

[0076] Example 2

[0077] like Figure 4 As shown, a waste clothing classification and sorting device includes: a data acquisition device, a data preprocessing device and a model training system.

[0078] The data acquisition device includes a conveyor belt and a rack; the rack is arranged on both sides of the conveyor belt; the rack is provided with a lighting lamp and a camera; the conveyor belt is provided with a photoelectric sensor, when the clothing is conveyed to the middle position of the conveyor belt, the photoelectric sensor triggers the camera to take a photo, obtains the image of the waste clothing, and completes the data acquisition.

[0079] The data preprocessing device is used to preprocess and enhance the data of the waste clothing images.

[0080] The model training system is used to construct a fine-grained classification model (i.e., a clothing sorting model), and input the enhanced waste clothing images into the fine-grained classification model to identify the category corresponding to the enhanced waste clothing images.

[0081] Furthermore, conventional lighting is used on both sides of the conveyor belt, and a USB camera is configured on the top of the shelf, which is connected to an Android industrial computer.

[0082] The data preprocessing device combines traditional computer vision technology and multimodal image recognition and positioning technology to automatically eliminate blurred photos and clothing photos taken in abnormal circumstances, thereby achieving automated data screening and data enhancement.

[0083] The model training system trains the model for clothing classification based on fine-grained feature learning and visual attention mechanism methods, and combines hyperparameter search to improve the recognition accuracy in clothing sorting scenarios.

[0084] Example 3

[0085] A computer device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for classifying and sorting waste clothing in Example 1.

[0086] Example 4

[0087] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method for classifying and sorting waste clothing in Example 1.

[0088] Example 5

[0089] A computer program product includes a computer program, which implements the method for classifying and sorting waste clothing in embodiment 1 when executed by a processor.

[0090] Example 6

[0091] A computer device, which may be a database. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device 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 pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the waste clothing classification and sorting method in Example 1 is implemented.

[0092] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards.

[0093] Those of ordinary skill 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 the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, etc., but are not limited thereto.

[0094] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0095] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A method for sorting and classifying waste clothing, characterized in that: include: Preprocess the waste clothing images; Performing data enhancement on the preprocessed waste clothing images to generate enhanced waste clothing images; Input the enhanced waste clothing image into a fine-grained classification model to identify the category corresponding to the enhanced waste clothing image; the fine-grained classification model includes a feature extractor, multiple expert modules, multiple classifiers, a data enhancement module and a fusion classifier; wherein one expert module corresponds to one classifier; the feature extractor includes multiple convolutional layers and pooling layers, and the feature extractor is used to extract low-level features and high-level features of the image features of the enhanced waste clothing image; the expert module is used to determine the image category prediction score based on the low-level features and the high-level features of the classifier, and determine the attention area according to the image category prediction score; The data enhancement module is used to perform data enhancement on the attention area; the fusion classifier is used to fuse the enhanced regional data to generate a category corresponding to the enhanced waste clothing image.

2. The method for classifying and sorting waste clothing according to claim 1, characterized in that: Preprocess the waste clothing images, including: Abnormal images in the waste clothing images are eliminated to generate preprocessed waste clothing images; the abnormal images include blurred images, images without clothing, incomplete clothing images and multiple clothing images.

3. The method for classifying and sorting waste clothing according to claim 1, characterized in that: The preprocessed waste clothing images are subjected to data enhancement to generate enhanced waste clothing images, specifically including: Rotating the preprocessed waste clothing image to generate a rotated image; Flipping the rotated image to generate a mirror image; Cropping the mirror image to divide the region of interest; Scaling the region of interest to generate a scaled image; Modifying the color space of the scaled image to generate a color-transformed image; Random noise is added to the color-converted image to generate an enhanced image of used clothing; the random noise includes Gaussian noise and salt and pepper noise.

4. The method for classifying and sorting waste clothing according to claim 1, characterized in that: The construction process of the fine-grained classification model specifically includes: Using transfer learning and a convolutional neural network model pre-trained on ImageNet as the model architecture of the fine-grained classification model; Based on the model architecture, the feature extractor of CMAL-Net is used as the feature extractor of the fine-grained classification model; Based on the automatic generation method of the region of interest, a fine-grained classification model is constructed.

5. The method for classifying and sorting waste clothing according to claim 1, characterized in that: Inputting the enhanced waste clothing image into a fine-grained classification model to identify the category corresponding to the enhanced waste clothing image, the method also includes: The hyperparameters of the fine-grained classification model are trained by hyperparameter search, the best hyperparameters are selected, and the optimal fine-grained classification model is determined; the hyperparameters include learning rate, batch size and epoch.

6. A device for sorting and classifying waste clothing, characterized in that: include: Data acquisition device, data preprocessing device and model training system; The data acquisition device includes a conveyor belt and a rack; the rack is arranged on both sides of the conveyor belt; The rack is provided with a lighting lamp and a camera; the conveyor belt is provided with a photoelectric sensor. When the clothing is conveyed to the middle position of the conveyor belt, the photoelectric sensor triggers the camera to take a photo, obtain the image of the waste clothing, and complete the data collection; The data preprocessing device is used to preprocess and enhance the data of the waste clothing images; The model training system is used to construct a fine-grained classification model, and input the enhanced waste clothing image into the fine-grained classification model to identify the category corresponding to the enhanced waste clothing image.

7. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for sorting and separating used clothing as described in any one of claims 1 to 5.

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 method for classifying and sorting used clothing described in any one of claims 1 to 5 is implemented.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for classifying and sorting used clothing described in any one of claims 1 to 5 is implemented.