Abstract

Plastic waste management is a challenge for the whole world. Manual sorting of garbage is a difficult and expensive process, which is why scientists create and study automated sorting methods that increase the efficiency of the recycling process. The plastic waste may be automatically chosen on a transmission belt for waste removal by using methods of image processing and artificial intelligence, especially deep learning, to improve the recycling process. Waste segregation techniques and procedures are applied to major groups of materials such as paper, plastic, metal, and glass. Though, the biggest challenge is separating different materials types in a group, for example, sorting different colours of glass or plastics types. The issue of plastic garbage is important due to the possibility of recycling only certain types of plastic (PET can be converted into polyester material). Therefore, we should look for ways to separate this waste. One of the opportunities is the use of deep learning and convolutional neural network. In household waste, the most problematic are plastic components, and the main types are polyethylene, polypropylene, and polystyrene. The main problem considered in this article is creating an automatic plastic waste segregation method, which can separate garbage into four mentioned categories, PS, PP, PE-HD, and PET, and could be applicable on a sorting plant or home by citizens. We proposed a technique that can apply in portable devices for waste recognizing which would be helpful in solving urban waste problems.

1. Introduction

Waste and the risks associated with it are becoming an increasingly serious problem in environmental protection. There is an expanding interest in waste management in the world, in both the development of technologies to minimize their quantity and those related to their disposal and economic use. The main reason for extreme waste generation is irrational materials management. The garbage gather in landfills may be used as secondary raw materials, the value of which is estimated at a couple hundred million dollars. 25% of this amount is coal; 35% is zinc, lead, iron, and other metals; and 40% is related to components such as ash, slag, rock waste, aggregates, and others [1]. Limiting the mass of generated waste to a level that ensures balance between raw material, ecological, and sanitary waste is not possible without extensive synchronization of technologies and the manner people live with the formation and working of an ecological structure in the area. Actions aimed at reducing the amount of waste produced and placed in the surroundings should include recycling raw materials, minimizing waste production from end to end, the use of modern low-waste or nonwaste technologies, and replacing traditionally used raw materials [2]. The target system for solving the problem of production waste polluting the natural environment is low and waste-free technologies. Nonwaste technology (NWT) is based on preventing waste and full comprehensive use of the raw material. It involves a number of technological processes that lead to total management and, consequently, the elimination of pollution without harmful effects on the environment. The condition here is that waste should not be deposited. The implementation of NWT has its economic justification, because the full use of materials and, consequently, the reduction of the amount of waste, allows for increased production and allows for the reduction of imports of raw materials. In some cases, it is also possible to reduce the consumption of electricity, heat, or technology by reducing energy-consuming waste treatment processes. The benefits of using nonwaste technology also include reducing material consumption, environmental losses, and operating costs.

Another method to reduce waste is recycling. Its basic job is to maximize the reuse of the same materials, including reduction of expenditure on their processing. The recycling process takes place in two areas: the production of goods and the subsequent generation of waste from them. Its assumptions assume the imposition of appropriate attitudes among manufacturers, conducive to the production of the most recoverable materials, and the creation of appropriate behavior among recipients. Recycling of waste from used postconsumer products can take place, among others through the secondary use of raw material combined with a change in its condition and composition. For this, it is necessary to sort waste not only into fractions such as metal, bio, plastic paper, or glass. It is necessary here to use advanced techniques to distinguish the type of material in individual groups because not all of them are suitable for reuse today. For example, the easiest way to recover and recycle PET is plastic.

To facilitate the recycling process, worldwide labelling of several types of plastics was introduced as follows:(i)01-PET-polyethylene-terephthalate(ii)02-HDPE-high-density-polyethylene(iii)03-PVC-polyvinyl-chloride(iv)04-LDPE-low-density-polyethylene(v)05-PP-polypropylene(vi)06-PS-polystyrene(vii)07-other

Four types of plastic dominate in household waste: PET, HDPE, PP, PS. Dividing them into individual types of plastics would allow reuse of some of them. One of the options is the use of computer image recognition techniques in combination with artificial intelligence. We proposed a technique that can apply in portable devices for waste recognizing which would be helpful in solving urban waste problems. The device could be used both at home and in waste sorting plants, and when used microcomputer with microcamera, it will present results by LED diodes. Then, the user puts the waste in the correct box manually.

2. Review of Plastic Waste Separation Methods

The process of sorting materials suitable for reprocessing from the municipal solid waste is problematic and expensive. First, dry and wet wastes are separated, and electromagnetic techniques are used to sort iron-containing materials. However, one of the visual [3, 4] methods can be used to segregate plastic garbage. In optical sorting, cameras are used to identify different waste fractions based on visual properties, such as colour, shape, or texture. Huang et al. planned a sorting method that combines a 3D colour camera and a laser beam on a conveyor belt. The method creates triangles over the camera image on the base laser beam, which is why it is called triangulation scanning [5]. Another group of methods is spectral imaging. It is a combination of spectral reflection measurement technology and computer image processing. These types of methods use near infrared (NIR), hyperspectral imaging (HSI), and visual image spectroscopy (VIS) [68]. The hyperspectral camera acquires images in the narrow spectral bands, and another system analyzes spectroscopic data. Then, the data is preprocessed and reduced using a special algorithm. The array of compressed air nozzles over the belt pushes the waste into individual containers depending on the decision of the classifier [9, 10]. For spectroscopy-based techniques, light is directed to plastic waste, and each type of plastic reflects a different range of waves. NIR and laser sensors capture the reflected spectrum and, on this basis, the material is classified. This type of technique was developed by Safavi et al. [11] for identifying PP material in mixed waste. For the classification of PP and PE materials, the HSI method using NIR (near infrared) light (1000–1700 nm) can be used [12, 13]. Principal component analysis (PCA) [14] is used to increase the accuracy of the classification algorithm. However, the alternative is a quick method of classifying plastics using a fusion of MIR spectroscopy and independent component analysis (ICA) developed by Kassouf et al. in [15]. Unfortunately, the presented methods have several significant disadvantages: waste must be ground, which is a cost, and small particles are more difficult to classify. Therefore, a technique without these drawbacks should be developed.

3. Proposed System

The system with a microcomputer dedicated to image processing may be used to identify the type of plastic from which the waste is made. The system we propose uses an RGB camera and a microcomputer with computer vision software to classify plastic garbage. The classifier in form of a program controls the nozzles with air to manage the waste to the right container (Figure 1). The software in the system uses image processing techniques for image preprocessing. The key element is the classifier developed based on convolution artificial neural networks and deep learning [16], which are used for object classification. In the case of the home version of the device, the device will consist of a Raspberry Pi type microcomputer that recognizes the object, and the user will manually place the rubbish in a specific container. This version can also be used in the industry.

4. Convolutional Neural Network

The Convolutional Neural Network (CNN) is a mathematical model of an artificial neural network. The structure of neurons is created similarly to the structure of the mammalian visual cortex. The local pixel arrangement determines the shape of the object. CNN first recognizes smaller local patterns in the image and then combines them into more complicated shapes. Convolutional Neural Networks may be an effective solution to the problem of sorting waste because they are very effective in recognizing objects in the image. The structure of CNN usually consists of three types of layers: convolutional, pool, and fully connected. Convolutional and pool layers are stacked one after the other. In contrast, layers with fully connected neurons generate probabilities of class membership [17, 18]. The structure was chosen experimentally. The programming process was made in MATLAB.

5. Experiment

When designing the structure of a neural network, the first step is fixing the size of the input image. High-resolution results increase in the number and time of calculations, which in turn may lead to overloading of the computational units and their memory. An additional goal was to develop such a structure that can be built into a Raspberry Pi type microcomputer. A too-large size of processed images would be impossible for it to analyze in real time. In turn, the low resolution of the input images will make it difficult or impossible to recognize the object and thus achieve the expected performance. We determined to conduct research with image resolution of 120 × 120 pixels and 227 × 227 pixels. The next important step was the point of the number and layers types of the CNN network. Two CNN networks were experienced, opposite in the number of layers and size of convolution filters. The first tested structure (based on the AlexNet network) enclosed 23 layers. In this network, the first convolution layer consisted of 64 filters of size 11 × 11. A total of six layers were responsible for encoding the image and then delivering data to the three full-connected layers. This structure for images of 227 × 227 pixels is shown in Table 1.

The second network (author’s proposal) contained 15 layers. In this network, the first convolution layer consisted of 64 filters of size 9 × 9. A total of three layers were responsible for encoding the image and then delivering data to the two full-connected layers. This structure for images of 120 × 120 pixels is shown in Table 2.

In our research, we used a simplified model of the station for object recognition, in which only one waste is in the camera lens. The preparation of input data for the learning and testing phase is a key element. For experiments with deep neural networks, it is necessary to gather a lot of data for each identified class, a few thousand. The set of images represented objects categorised in four classes: PET, PE-HD, PS, and PP. Images are from the WaDaBa [19] database, and several samples are shown in Figure 2. The image database contains mostly photos of PET objects because there are the most common domestic waste that is being recycled. That is why individual classes have a different number of photos. In order to set up the quantity of images in each class, we have modified existing images by rotating them. Images from the PET class every 24°, from the PE-HD class, were rotated every 6°; from the PS class every 5°; and from the PP class every 7°. In this way, we obtained 33,000 images for the PET class, 36,000 images for the PE-HD class, 37,440 images for the PS class, and 33,80 images for the PP class. Different degrees of rotation were used for the development of the image set for images from different classes in order to equalize the number of samples in each category. As the results showed, this dataset proved to be sufficient to teach CNN correctly.

6. Results and Discussion

6.1. Training and Validation

The research consisted in training the prepared networks and determining the classification accuracy using different divisions of the input data into training and test data. The data were prepared for four stages: 90% (training data), 10% (test data), 80%–20%, 70%–30%, and 60%–40% (Table 3).

The network learning process was conducted with sets of data described above. Teaching was passed for two structures, with two types of input image, with resolutions of 120 × 120 and 227 × 227 pixels. Smaller images were created by applying the image resizing function, which also reduced the amount of detail in the images and consequently the number of features. Learning was carried out for a variable value of learning coefficient, starting from 0.001 and decreasing every subsequent 4 epochs, and fixed 1064 iterations for the epoch. Experiments showed the best accuracy and loss values obtained in subsequent iterations during learning of the stratified network for a 90%–10% partition and at input image resolutions of 120 × 120 pixels. The charts were made after 10 epochs.

Tables 47 present tests conducted for mentioned networks.

Analyzing the results of experiments, it can be seen that, in the case of our 15-layer network and images 120 × 120, 4 epochs are enough to obtain a tolerable level. Further training, also with a lower learning rate, does not give significant effects of accuracy. Achieved accuracy of 97.43% after 4 epochs is a good result. Further learning up to the tenth epoch increases efficiency to almost 100%. In the case of images of 227 × 227 pixels, the computation time has doubled and accuracy achieved 91.72%. That is not acceptable for the system that works in the real environment [1921].

In the case of the 23-layer network, the learning process was different. This network achieved an accuracy of 99.23% for the first case of data split with images of 227 × 227 pixels. Unfortunately, the learning time of 725 minutes compared to 217 minutes (15-layer network) made the relearning process impractical. This result is not good if the system is to be operated in a real environment. For images of 120 × 120 pixels, this network after 10 epochs achieved accuracy 3% lower than the smaller network (Figures 3 and 4).

6.2. Testing

The experiment was carried out on the WaDaBa database [19]. We used 5 sets of data with 2000 images, which equals ten thousand images. In the goal to thoroughly verify the correctness of the proposed method in the testing process, we used the cross-validation method. The data has been divided into 5 parts. Four parts were used for teaching and the fifth for testing. In individual sets of A, B, C, D, and E, individual parts were exchanged so that all of them could be used in the testing process in individual tests and the remaining ones for learning. The results of experiments performed with the proposed method achieved an average efficiency of 74%, with FRR = 10% and FAR = 16% (Table 8). These results are preliminary to the development of the waste selection method based on image processing techniques. Analyzing the current state of the art in this field, we did not find solutions for this type. The review of the existing methods shows that they are not used in the automatic selection of whole waste, but only with particles, what is expensive.

7. Conclusion and Future Works

The results of the experiment show that our 15-layer network achieves better performance for images of 120 × 120 pixels compared to the 23-layer network for 227 × 227 pixels. An additional advantage of our solution has shorter network learning time. The proposed 15-layer network turned out to be a better structure due to better generalizing properties, which translates into the use of fewer features for recognition. Therefore, it is possible to use smaller image sizes which have more useful features and less noise. Compared to other convolutional neural networks (Table 9), our network is less effective. However, compared to other networks, it has much fewer parameters, which is a big advantage in the case of implementation for mobile devices such as the Raspberry Pi platform.

The classification of waste for four classes is in most cases at a good level. Further work will be carried out on covering the waste image database to include waste images under more realistic conditions, as well as from other types.

We also plan more detailed research to take into account changes in hyper learning parameters and various types of filters.

The research results in Europe showed that the investment outlays for obtaining primary raw materials are much higher than the outlays incurred in relation to the use of secondary raw materials obtained from production waste or waste after use. Obtaining and processing recyclable materials also involves lower energy consumption. They can also replace traditional energy carriers. For example, municipal and agricultural waste is used to produce biogas or thermal energy. Replacing primary raw materials with secondary raw materials also reduces the use of materials, eliminates the cost of exporting waste to landfills and maintains these landfills, shortens the production process, reduces labour input, and thus reduces the cost of product production.

Data Availability

The datasets used in this study are available from the relevant authors upon reasonable request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This research was funded by the “Polish Ministry of Science and Higher Education” with the name “Regional Initiative of Excellence” in the years 2019–2022 (Project no. 020/RID/2018/19), the amount of financing 12,000,000 PLN.