17.project AH 09
17.project AH 09
Abstract:
Due to rapid urbanization and ever-increasing population, India requires a sophisticated waste management system. Only
one-fifth of the generated waste is treated and the rest is dumped in landfill sites. Segregation of household waste reduces a lot of
complexity in waste treatment plants. Usually, segregation of household waste into dry and wet categories is done manually by the
workers collecting the waste. This paper describes a waste management system to segregate waste into dry waste and wet waste
through automation. The automation process saves a lot of time and effort and makes it easier for waste treatment plants. The
system includes a camera module, which captures the image of the waste based on input from a sensor. The image, that is stored on
Raspberry Pi, is then classified used the deep learning classification model. The proposed model is a miniaturized waste management
system uses IoT and Deep Learning which can be implemented in the waste treatment plants or large sized community garbage
containers on a large scale. The project consists of sensors, Raspberry Pi board, Deep Learning model, model training tool—Lobe, IoT
dashboard, camera module, deep learning libraries which include lobe, TensorFlow Lite and open CV and servo motor. The CNN
learning model uses ResNet and MobileNet algorithms for speed, accuracy and compatibility. The model, trained using a total of
12000 image samples, is efficient in segregating waste into dry waste and wet waste.
Keywords: CNN, Deep Learning, IoT, Lobe, MobileNet, Raspberry Pi, ResNet, TensorFlow Lite
I. Introduction
According to Down to Earth magazine, around 380 million people live in 7935 towns and cities in
India. And, they generate around 62 million tons of waste. Of which, only 43 million tons is collected and 11.9
million tons is treated. Remaining 31 million tons of untreated waste is dumped into landfills. Indian
government came up with an initiative towards a Clean India called Swachh Bharat. Now Swachh Bharat 2.0
which focuses on collection of waste to 100% with an investment of 1.41L crores. With the huge population
producing household garbage every day, there's a strong need for segregation of waste into dry and wet
categories. The segregation is essential because proper waste management not only reduces waste but also
reduces the emission of greenhouse gases like methane, carbon dioxide from the landfill sites.
4486
Nat. Volatiles & Essent. Oils, 2021; 8(5): 4486 – 4494
Pi 3 and IoT devices are used to automate the process of segregation at waste treatment plants and municipal
garbage bins. Raspberry Pi 3 is the most widely used variant by the student and research community, since
the introduction of Raspberry Pi boards. Raspberry Pi is a low cost, SoC computer designed to easily interface
with IoT and embedded devices. It plugs into computer monitor, TV or Laptop for its display. Usage of Deep
learning along with IoT results in a smart and fully automated waste management system. We have used
convolutional neural networks to create an efficient model for image classification. This model which is in
TensorFlow lite format is better suited to run in embedded devices like Raspberry Pi 3, with it being a light
weight learning model along with better computing power.
Fig 1.2 – Train dataset composition Fig 1.3 – Test dataset composition
III. Methodology:
The proposed waste management system is designed using model training tool – Lobe and a
microcomputer to interface the deep learning model with IoT sensors and devices – Raspberry Pi 3. The IoT
sensors used in this project are IR sensor, Ultrasonic sensor along with devices like Pi Camera and Servo
motors. The prerequisites are
1. Build an efficient learning model
2. Install the necessary python libraries
4487
Nat. Volatiles & Essent. Oils, 2021; 8(5): 4486 – 4494
The learning model is built using an application called Lobe, which is designed to train a model from a given
data set.
Lobe:
Lobe is a deep learning tool designed by Microsoft. It automates model training by extracting the features
from the image or video samples from input data. This app is specially designed to train models that involve
image analysis, image processing and video analysis. The model is trained from the given data and can be
exported from the application. This exported model can be used as any other pre-trained model. Lobe uses
ResNet (residual neural networks) and MobileNet (mobile neural networks) to train a model. Lobe simplifies
the method of training a model. It requires simply three steps: Import the collected data set, Train the model
and Understand the results and improve the model through feedback. Finally, export the model into any
desired format that is suits with the device, compatibility and computing power.
Installation of python libraries is done by few simple Linux commands through the terminal of Raspberry Pi.
These python libraries allow the python code to interact with IoT devices and sensors connected to raspberry
pi. The libraries are used by camera to capture the images and store them in the target folder, to import the
code and input image from the source folder, and to use and interact with the learning model. The libraries
used are Lobe, TensorFlow Lite, Pillow and Open CV.
Additionally. Python programming language is used to write a code to interface with IoT devices and deep
learning model with Raspberry Pi board. The design broadly comprises of three modules. The modules
process the input to either send output to the next module or to perform its own functions. The modules
are:
1. Camera module: The camera module comprises of a Pi camera and IR sensor to detect the presence of
an object. The camera captures image of the object when the output of the IR sensor is positive. The
camera uses open CV library to capture the image and store it using a pre-determined name on the local
storage. Open CV is an open source library. It contains programming functions and computer vision
tools, which are designed to solve computer vision problems.
2. Deep learning model: The deep learning model uses CNN algorithm, which classifies the image sample
stored on Raspberry Pi board. The model is exported from the Lobe application in the format of
TensorFlow Lite. The python code uses the Lobe, Pillow and TensorFlow lite libraries to get the input
image and analyse it by using the learning model to classify the image. The output is predicted by the
model after analysing its features and parameters. TensorFlow lite is a set of tools, more compatible
with Android, embedded and IoT devices. It performs with higher speed than TensorFlow and can be
exported as smaller and simpler model. This library is used to interface with TensorFlow-lite files
3. IoT module: This module composes of IoT devices and sensors. Ultrasonic sensor is used to measure the
depth and analyse if there is space available in the bin to dispose the waste into it. Servo motor is used
to dispose the waste into appropriate bin.
4488
Nat. Volatiles & Essent. Oils, 2021; 8(5): 4486 – 4494
4489
Nat. Volatiles & Essent. Oils, 2021; 8(5): 4486 – 4494
4490
Nat. Volatiles & Essent. Oils, 2021; 8(5): 4486 – 4494
4491
Nat. Volatiles & Essent. Oils, 2021; 8(5): 4486 – 4494
.
Fig 5.1 – Time vs Depth of the bin
As observed from the Fig 5.1, the default depth of bin is 35cm. Whenever the bin is emptied, the ultrasonic
sensor reads a value of 35. Each bar in this graph represents the vacant space available in that hour.
Whenever the value is less than our threshold value of 5, the user is alerted to clear the bin. So, the depth in
next hour is a value of 35.
The following are input images along with their outputs. The object in the input image is waste object that is
classified by our classification model and result can be observed in the output terminal of the python IDE.
The output is either ‘Dry’ or ‘Wet’ based on the classification of the input image.
4492
Nat. Volatiles & Essent. Oils, 2021; 8(5): 4486 – 4494
4493
Nat. Volatiles & Essent. Oils, 2021; 8(5): 4486 – 4494
4494
Nat. Volatiles & Essent. Oils, 2021; 8(5): 4486 – 4494
10. Md. Wahidur Rahman, Rahabul Islam , "Intelligent waste management system using deep learning with
IoT" , ScienceDirect.
11. Website : https://www.tensorflow.org/tutorials/image/image_recognition.
12. Website : https://www.sciencedirect.com/science/article/pii/S1110062118301375.
13. Mark Sandler Andrew Howard “MobileNetV2: Inverted Residuals and Linear Bottlenecks”,
https://arxiv.org/pdf/1801.04381.pdf.
14. Dr. P. Veena, Dr J Jerusalin Carol, Samrudhi Rajendra Kaware, Sesha Bhargavi Velagaleti , “Artificial
Intelligence Based Autonomous Waste Management for Ε-Environment Application Νο.202141019996
A, 2021, Patent Application Publication , India.
4495