Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Waste Management Detection

Using Deep Learning


1 4
Dr. Pokkuluri Kiran Sree Mr. Ch. Phaneendra Varma
Head & Professor, Dept of C.S.E, Dept of C.S.E,
Shri Vishnu Engineering College for Women(A), Shri Vishnu Engineering College for Women(A),
Bhimavaram, Bhimavaram,
5
hodcse@svecw.edu.in Dr. M. Prasad
2
Smt SSSN Usha Devi N Dept of C.S.E,
Assistant Professor , University College of Shri Vishnu Engineering College for Women(A),
Engineering, JNTUK, Kakinada, Bhimavaram,
6
ushaucek@gmail.com Dr. P.B.V.Raja Rao
3
Mr. G. Ramesh Babu Dept of C.S.E,
Dept of C.S.E, Shri Vishnu Engineering College for Shri Vishnu Engineering College for Women(A),
Women(A), Bhimavaram, Bhimavaram,

Abstract— In the modern world waste pollution is the illegal dumping, a couple of urban areas have
challenging environmental issues. To reduce planned network-based voluntary reporting
pollution, we need to recycle the waste. In order to frameworks and observation camera-based
recycle waste, one must know which category the monitoring frameworks.
waste belongs to. Waste classification is a social issue But these methodologies require manual
related to people’s livelihood, so letting smart systems observing and recognition, which are vulnerable
perform intelligent waste classification has important
and expensive against false alarms. The techniques
significance. So, we are here with a waste detection
system that uses deep learning and categorizes the of deep learning are being effectively applied to
waste plastic or non-recyclable or glass or bio or different areas, for example, medical imaging,
others. The proposed system is trained and tested to autonomous driving, and numerous industrial
detect the classify the waste using the environments with amazing outcomes on object
CNN(Convolution Neural Network) i.e. a deep identification issues. Applying these techniques to
learning algorithm. The image of the waste material is waste sorting can build the amount of recycled
fed into a neural network which determines the class material and thus, give a simpler everyday life for
of object. We have considered precision, recall and F1 the common people as well as more efficiency for
Score as performance metrics to evaluate our model.
the industry.
The proposed model is compared with existing
baseline models like machine learning, basic neural Thus, the aim is to plan and develop a
networks and datamining approach. The developed framework with a deep learning approach that can
deep learning model has outperformed the existing be effectively used for waste segregation. The
literature with chosen parameters. image will be recognized by utilizing the concept
of a CNN and with the help of an image processing
Keywords: Deep Learning, Object Detection, yolov5,
method that identifies wastes from their shape,
Faster R -CNN, Waste Classification, etc.
color, dimension, and size . This technique
I. INTRODUCTION automatically will help the system to learn the
pertinent features from the sample images of the
A major concern of the present world is
trash and consequently recognize those features in
waste management. Here, the amount of waste in
new images. By using the strategy of CNN garbage
the world generates at least 5 million tons of waste
will be classified into different classes. The strategy
per day and this number is still increasing day by
utilized for this characterization[3] is with the
day. Recycling waste is particularly important to
assistance of Tensorflow Object Detection API and
reduce pollution[2]. To recycle waste, one must
Faster R- CNN technique. Through this technique,
know which category tells that waste belongs to.
bounding boxes are made on the recyclable waste
Waste Management in the present time is
demonstrating which class (cardboard, paper,
known to everyone but unfortunately, it is
metal, glass, plastic, and trash) the waste falls into.
neglected by numerous people that are utilized to
The main objective of this study is to develop
portray exercises for waste segregation to take care
software to detect types of recyclable materials in
of issues brought about by wrong garbage disposal
trash bins and check for possible contamination
. Illegal dumping has been a constant issue in
which would ultimately reduce human effort in
numerous urban communities on the planet[1]. The
waste segregation[5].
smells and pollutants brought about by deserted
So, we are here with a waste detection
household things and unloaded trash, and
system that uses deep learning and categorizes the
construction leftovers ruin the city as well as
different waste materials into bio, glass, metal,
threaten the well being of the citizens. To diminish
plastic, non-recyclable, paper.. detection is that it recognizes the object's class and
the coordinates of the location of the object in the
II. RELATED WORKS given picture. By drawing a bounding box around
Environmental pollution is related to waste the object, it states that the region is being pointed
management and it is a global problem. So, the out.The bounding box might or might not precisely
huge production of biodegradable goods in the past find the location of the object. The capability of
few years has resulted in significant increase to locating the object inside a picture describes the
build garbage, which according to the household accuracy of the performance of the algorithm
waste collection reports 5.2 tons of waste were which is being used for detection. Face
generated in 2018[4]. By the time it reaches 2050, identification is one of the instances of object
it is predicted to have three billion tons waste every detection [6][15].
year. World Bank States that 14% of waste is For the most part, the object detection task
recycled globally and without any classification is completed in three stages:
initially 30% of the garbage is separated from the The little rectangular portions are being produced
original waste. So, this leads to the fact that upon the input image.
different types of wastes are freely separate in a 1. Feature extraction is completed for each
wide variety of environments. portion of the rectangular region to predict
We have identified the most spreading and whether the rectangular shape contains a
environmental harm is due to plastic waste. This valid object.
spreading is increasing day by day, we need to 2. Finally, the rectangular boxes which are
prevent this pollution of this environment and them overlapped get combined into a single
protect the wild animals and human life. bounding box showing the detection result
Since then, the number has been increasing day by of the object.
day. According to the most recent WHO report,
466 million individuals, or 5% of the world's C. Image Processing
population, had hearing loss in 2019. Of these, 432
million (or 83%) were adults and 34 million (or Image processing is one of the main parts
17%) were children. The WHO predicted that by of a structure of signal processing, where the input
2050, the number will double. There is a need to is in the form of an image; for instance, a
remove the communication barrier that impacts photograph or video clip. The performance of an
deaf-mute people's lives and social interactions in image processing can likewise be an image or
this rapidly expanding population[7]. plenty of characteristics or parameters related to the
image. The main objective of image preprocessing
III. SYSTEM DESIGN is to upgrade the image information where
superfluous images were taken out, and the
A. Convolutional Neural Networks (CNN) significant images are added for additional
processing[8].
The convolutional neural networks (CNN)
main function is to classify or the images/pictures D. Proposed System
or group the images or cluster the pictures by the
similar features and it performs the detection of the
object by artificial neural networks. CNN takes the
input as information pertaining to the pictures and
then process the image as a tensor. It can be viewed
as the matrix of numbers with the dimensions also
as an input and then sort the search. Then CNN
identifies 3D objects are the portion of instances
which recognize the images in large scale. Many
applications, such as item identification and facial
recognition, are uploading it. One of the top non-
trivial assignments is this one. Convolutional
layers, subsampling layers, and fully linked layers
are the three distinct layer types that are seen as
components of CNN in neural networks. Since Input Convolution Layer Fully Connected Layer Output
CNN offers more benefits than other techniques, it Fig. 1 CNN Architecture
is primarily utilized for image recognition.
In our paper we primarily focus on
B. Object Detection producing a CNN model which can detect the
images of waste and show the accuracy of that
Object Detection is a part of the computer particular image. We made a system which can
vision technique where a software framework can detect many types of waste into categories such as:
detect, trace, and locate the object from any given bio, glass, metal, plastic, non-recyclable, paper and
video or image. One of the special traits of object other. Preprocessing techniques aim to enhance the
image's details in order to remove unwanted
distortions and improve a few aspects of the input class names. After the label map is created, finally,
image. Image processing can remove extraneous the object detection pipeline is configured which
characteristics, convert RGB images to grayscale, helps in defining what type of parameters and
and pair them. A sophisticated digital instrument, models is used for training.
such as a camera, takes a photograph of the image
and converts it into grayscale. Calculating the C. Model Testing
average estimate of the three components of the During this phase a second set of data is loaded.
two colours results in the grayscale transformation Testing the trained model is the last part of the
(0 and 255 separately). The colour intensity is process. After the training gets completed, the
determined by a set limit, in this case 127, which is frozen inference graph is exported. This is used for
adjusted to 0 and then to 255[9]. identifying and classifying the objects in a real-
time feed utilizing webcam, images, and
The proposed design is presented in videos[14].
Figure 1. We have used the basic AlexNet and used
the normalization function. Then we have D. Live Detection
deactivated the two convolutional layers consisting In this module, the user can directly turn on their
of 238 filters. In the first model we have used the camera and start showing the images, the images
Softmax for the last fully connected layer as a will start predicting the accuracy of that particular
activation function and cross entropy categorical image[13].
loss function. In the later model ie second we have
used a linear function for the last fully connected
layer with hige categorical loss function. CNN is V. RESULTS AND DISCUSSION
turned to be better classifier for handling the multi
class classification [10]. In this segment, the outcomes of the
Both the images of waste and capturing of the created model will be examined. The created model
waste by using a camera will be shown in our works reasonably on the test data. Out of 500
Application. So it will detect the particular images images, 420 images were accurately predicted by
of waste and then it will give the accuracy [12]. the model which concludes that the accuracy rate of
the model is near about 90%.The model precisely
classifies the type of waste materials by detecting
IV. IMPLEMENTATION the type of objects. The images of the testing data
A. Model Building were utilized for testing the result of the created
We take the dataset and these divisions model. For the detection of the waste materials, the
were made depending on the pictures contained in images of the test data have been specifically
the separate respective folder. But the annotations included in the testing code. The total detection
of these images were specifically needed for time taken by the model to predict a single object
training the data in a Faster R- CNN model. To get from an image is about some seconds.
the annotations that are for the labeling of the To find the actual accuracy of the model,
images, a tool has been used which is known as the the names of the images were physically given to
LabelIMG tool.In LabelIng tool, we needed to label observe how exact the functions of the model have
the relevant area of the image to the class it is performed in those images. At first, during testing,
associated with such as cardboard, metal, trash, etc. multiple boundaries have been observed getting
This type of labeling of the image includes the created in the region of the detection of the objects
strategy of creating boundaries to the waste object and by changing the threshold for the prediction of
in the picture.The whole purpose of this particular the images this error was eliminated. This aided in
system is to make the framework figure out how to invalidating the boundaries of the object with
detect objects. The data of the annotations of the minimal threshold values.
images made by the LabelIMG tool are saved in the The model is also being tested on multiple
XML extension format. The annotations of the waste objects. Though in some images it could
picture include the size of images, location detect and predict the multiple objects accurately as
coordinates, and also the names of marked objects the training dataset does not contain any multiple
that could be inspected in the file[11]. waste objects that's why the prediction of the model
was not consistent and sometimes it failed to detect
B. Model Training the waste objects accurately in an image with
After model construction it is time for multiple objects. The total detection time taken by
model training In this phase, the training data is the model to predict multiple objects from an image
generated by generating TFrecords and converting is near about 8.09 seconds. The multiple object
the XML files(annotations of the images labeled by images were taken in a white background for
LabelIMG tool) to CSV files which contain all the testing as the images of the training dataset were
data for the train and test images. After the training also taken in a white background. These images do
data is generated, a label map is created which not belong to testing data and were taken by a
notifies the system about what each object is by mobile camera.
characterizing a mapping of class ID numbers to This analysis can be done by applying the
various classification algorithms of each model on recycle content as 0.74, glass content as 0.80, bio
this framework separately and lastly conclude the class as 0.72 and others class as 0.73. The NN(
best-suited model which will be utilized to get Neural Network) approach has reported a precision
more accurate object detection and prediction in a for identifying waste plastic as 0.84, non-recycle
short time. We can also choose the hardware part content as 0.69, glass content as 0.81, bio class as
by using Robotic to pick the garbage and then put it 0.74 and others class as 0.61. The ML( Machine
into the garbage bin. Learning) approach has reported a precision for
identifying waste plastic as 0.85, non-recycle
content as 0.68, glass content as 0.76, bio class as
0.81 and others class as 0.64 as shown in Figure 3.
The results show the robustness and versatility
of the developed classifier.

VI. CONCLUSION
With the help of Waste Management detection,
we can recycle a lot of wastage which helps in
reducing pollution. This leads to minimizing cost
and to maintain the surroundings clean. This is one
of the unique methods to detect waste and classify
the waste using the standard benchmarked datasets.
We have ensured that the quality of the detection of
waster in different environments is tested. The
Fig. 2 Summary of Precision, Recall, F1 Score using Deep
Learning (CNN) framework has received the best remarkable
performance in the detection of waste. The future
work also aims to implement this technology in a
In the above graph, we can see the mobile platform so that it becomes very easy for
accuracy of the images after training and validation the user to classify waste materials and dump the
of the dataset. We can see that the results of waste materials in the correct disposal bin to
training and validation on the above graph So, this protect the environment and reduce pollution.
graph is for detecting the percentage of the given
dataset images.
The output of the CNN (Deep Learning) REFERENCES
classifier is five classes i.e. dividing the material [1] He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep
into waste plastic, non-recycle content, glass, bio residual learning for image recognition. In Proceedings of
and others. We have evaluated our classifier using the IEEE conference on computer vision and pattern
recognition (pp. 770-778).
precision, recall and F1 score. The proposed [2] A. Lanorte, F. De Santis, G. Nolè, I. Blanco, R.V. Loisi, E.
classifier has identified the waste plastic with 0.94 Schettini, G. Vox Agricultural plastic waste spatial
precision, non-recycle waste with 0.79 F1 score, estimation by Landsat 8 satellite images Comput. Electron.
glass class with 0.89 F1 score, bio class with 0.82 Agric., 1 (2017), pp. 35-45,
10.1016/j.compag.2017.07.003
F1 score and others class with 0.78 as shown in the [3] Y. Liu, Z. Ge, G. Lv, S. WangResearch on automatic
Figure 2. garbage detection system based on deep learning and
narrowband internet of things J. Phys.: Conf. Ser.,
1069(2018), p. 012032, 10.1088/1742-
6596/1069/1/012032
[4] Zhao, Z.Q.; Zheng, P.; Xu, S.t.; Wu, X. Object detection
with deep learning: A review.
IEEE transactions on neural networks and learning systems
2019, 30, 3212–3232.
[5] Çevik, E.; Zengin, K. Classification of Skin Lesions in
Dermatoscopic Images with Deep Convolutional Network.
[6] Simonyan, K.; Zisserman, A. Very deep convolutional
networks for large-scale image recognition. arXiv preprint
arXiv:1409.1556 2014.
[7] Donovan, J. Auto-trash sorts garbage automatically at the
techcrunch disrupt hackathon. Techcrunch Disrupt
Hackathon, San Francisco, CA, USA, Tech. Rep. Disrupt
SF 2016, 2016.
[8] Awe, O.; Mengistu, R.; Sreedhar, V. Smart trash net:
Waste localization and classification.
arXiv preprint 2017.
Fig. 3 Comparison with Base Line Classifiers
[9] Pokkuluri, Kiran Sree, SSSN Usha Devi Nedunuri, and
The proposed classifier ie CNN (Deep Usha Devi. "Crop Disease Prediction with Convolution
Neural Network (CNN) Augmented With Cellular
Learning) has reported a precision for identifying Automata." INTERNATIONAL ARAB JOURNAL OF
waste plastic as 0.94, non-recycle content as 0.75, INFORMATION TECHNOLOGY 19.5 (2022): 765-773.
glass content as 0.87, bio class as 0.78 and others [10] Pokkuluri, Kiran Sree, and Devi Nedunuri Usha. "A secure
class as 0.78. DM(Data Mining) has reported a cellular automata integrated deep learning mechanism for
health informatics." Int. Arab J. Inf. Technol. 18.6 (2021):
precision for identifying waste plastic as 0.85, non- 782-788.
[11] Pokkuluri, Kiran Sree, and SSSN Usha Devi Nedunuri. "A
Novel Cellular Automata Classifier for COVID-19
Prediction." Journal of Health Sciences 10.1 (2020): 34-38.
[12] Sree, P. K. Deep Learning Mechanism Augmented with
16-Hybrid Cellular Automata For Secondary Structure
Prediction. PP: 490-493 , Volume-9 Issue-2, December
2019, International Journal of Innovative Technology and
Exploring Engineering (IJITEE).
[13] Anh Khoa, Tran, et al. "Waste management system using
IoT-based machine learning in university." Wireless
Communications and Mobile Computing 2020 (2020): 1-
13.
[14] Xu, A., Chang, H., Xu, Y., Li, R., Li, X., & Zhao, Y.
(2021). Applying artificial neural networks (ANNs) to
solve solid waste-related issues: A critical review. Waste
Management, 124, 385-402.
[15] Dias, J. L., Sott, M. K., Ferrão, C. C., Furtado, J. C., &
Moraes, J. A. R. (2021). Data mining and knowledge
discovery in databases for urban solid waste management:
A scientific literature review. Waste Management &
Research, 39(11), 1331-1340.

You might also like