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

AUTOMATIC WASTE MONITORING INFORMATION SYSTEM USING IOT-

BASED FUZZY LOGIC METHOD


Pradita Arif Setiawan, Hudan Maulana A., M. Zidan Rafy Al Hidayah, Moch.
Rafi Alfiansyah, Moch. Alfin Jailani A.
Advisor : Muhammad Risyad Rahaf Faldi, S.Pd.
MA Unggulan Amanatul Ummah
Praditaarif7@gmail.com

ABSTRACT
Garbage collection carried out by dustmen cannot be carried out
effectively, due to differences in waste production at each point. This reduces
the performance of garbage collectors and causes accumulation which results
in the abandonment of trash cans. With the above problems, there must be
monitoring of trash cans in real-time. Real-time monitoring can increase the
effectiveness and objectivity of the garbage collector. This study designed a
trash can monitoring system using IoT and weight sensors. The system uses
fuzzy logic as a trash can lid controller. In this study, the maximum distance
that IoT can read in the trash can is 30 cm, the shortest distance is 0 cm, while
the weight sensor reads 0 Kg to 40 Kg according to the capacity of the trash
can. Data processing uses ESP32 which functions as a medium for processing
and sending data. From the tests carried out, the accuracy of the IoT HC-SR04
has a deviation of 20%. At the same time, the deviation of the Load Cell weight
sensor is 1%. The action of opening and closing the trash can is determined
using the fuzzy logic method with 100%.
Keywords: Fuzzy Logic, ESP32, Smart trash cans, IoT, Load Cell Sensor
INTRODUCTION communication systems where
everything will communicate and
Background share information smartly without
The significant growth of the human instructions. The
Internet is leading to the emergence interconnected devices are
of new technology, that is, Internet transformed into smart objects,
of things (IoT). The term IoT was which have computational skills to
first used by Ashton in 1999. IoT is monitor an environment leading to
the hub of physical devices that are smart cities.
interlinked through the Internet. IoT promotes various
these physical devices, that is, application areas, such as smart
sensors, RFID tags, and various health, smart city, environment
intelligent nodes, can communicate monitoring smart home, traffic
at any time from anywhere. IoT is management smart education
the backbone of future
system, smart farming, and many IoT, named smart city. IoT provides
others. In smart cities, various various new services in a smart city
problems occur when devices and develops an intelligent society.
communicate with each other; one In IoT-based smart cities, physical
of the important problems is waste devices interact and provide ease to
management. The main causes for humans according to their
this problem are the rapid growth of intelligence.
the urban population, high demands
for food, and various other factors IoT is further divided into
that are influencing the environment various fields, which explains the
in smart cities. With an increase in web-based rankings of each area in
population, the management of percentage. Based on the literature
waste or garbage is a very hectic job study, smart homes and smart cities
to do at the current time. Being a get the highest rankings, which
member of society, every local shows the trends in the modern era
house, industry, and factory of technologies. The rapid growth in
generates some amount of waste population and generation of daily
daily. this waste is ultimately routine garbage or waste make the
collected in waste bins and environment unhygienic for the
eventually collected by the citizens. The waste is divided into
municipal vehicles and moved to two types, that is, wet and solid
dump areas for disposing or waste. In this paper, the focus is on
recycling processes. solid waste management.
Therefore, a waste management
To keep the environment mechanism is proposed for smart
green and clean, monitoring and cities, named SBM (smart bin
disposing of the waste is very mechanism), to sanitize and clean
important these days. Improper the environment intelligently. It is
disposal and poor monitoring of designed for solid waste
collected waste and waste bins can management and recycling of waste
cause serious damage to human because waste is recyclable and
lives. this waste can spread various can be reused. The waste
life-threatening diseases that in turn management procedure comprises
harm the lives of a whole city and five steps: collecting, transporting,
country as well. Nowadays, cities analyzing and processing,
are facing various problems, such recycling, and disposing . In SBM,
as small parking spaces, waste smart bins (SB) are installed in the
management, communication urban areas at different points that
barriers in traditional systems, and store garbage. Primarily, the SBM is
health issues to name a few. All designed for real-time monitoring of
these problems directly affect the the garbage collecting points. The
living of humans in their daily proposed system will reduce the
routine lives. To overcome and labor work, time, and cost that are
solve the existing problems, a new very high in the traditional garbage
concept has emerged in the light of collection system.
Research Formula weigh the trash in the trash can. The
ESP32 will process the input from
How the design of the Real- the IoT and the weight sensor.
Time Garbage Monitoring
Information System in the reservoir Then ESP32 detects the
is the optimization of the work of the height of the trash bin and the
cleaners in transporting waste weight of the trash if it's not full, then
without the need to check ESP32 will instruct the actuator to
repeatedly, because information on open the trash can cover and vice
the volume of the garbage bin will versa. The height of the litter and
be sent directly via Short Message weight of the litter may vary.
Service (SMS). Therefore, a fuzzification process is
needed to determine the status of
Research Goals the trash bin in opening the lid and
This Paper aims to designing closing the trash can based on the
of the Real-Time Garbage height of the trash and weight of the
Monitoring Information System in trash. Fuzzy logic allows
the reservoir is the optimization of membership values between 0 and
the work of the cleaners in 1, grey level, black and white, and
transporting waste without the need linguistic form. Fuzzy logic was
to check repeatedly, because developed from fuzzy set theory. A
information on the volume of the fuzzy set is a grouping of things
garbage bin will be sent directly via based on a language variable
Short Message Service (SMS) (linguistic variable) expressed in a
membership function in the
RESEARCH METHOD universe U. Membership of a value
This study uses an in the set is expressed by the
experimental research approach. degree of the membership whose
The experimental research method value is between 0.0 to 1.0. Its
is a research method to test membership value indicates that an
whether the variables in the item is not only true or false. A value
experiment are effective or not. To of 0 indicates false, a value of 1
test whether it is effective or not, indicates true, and there are still
control variables must be used. values that lie between true and
Experimental research is conducted false.
to test the hypothesis that has been Fuzzy Logic Design
formulated strictly. Experimental
research aims to investigate The application of fuzzy logic
possible causality by applying one is carried out in determining the
or more treatment conditions and status of the trash bin based on the
comparing the results with one or height of the garbage load and the
more groups. This trash can uses varying weight of the garbage,
an IoT to detect the height and a which determines what action the
Load cell-based weight sensor to trash can officer should take.
Figure 2 Mamdani's Fuzzy Logic Design
From Figure 2, the varying values will be used as two fuzzy input variables,
including:
1. IoT: ie data generated by the IoT designed in the ESP32.
2. Weight Sensor: the data generated by the Load Cell sensor.

A transformation from an input to an Empty, Heavy and Very Heavy


output in a fuzzy domain is used to scale because if you use it in
process the data from these two centimeters (cm) and kilograms, it
variables. The IoT input variable will confuse the trash can staff
uses the Empty, Medium, Full and because of the size of the place.
Very Full scale and the weight different trash.
sensor input variable uses the

Figure 3 Membership Input IoT


The IoT variable in Figure 3 is Empty, Medium, Full, and Very Full.
divided into four sets, namely These four sets are based on the
height of the trash in the trash can. facilitate the creation of fuzzification
This number form is used to rules.

Figure 4 Membership Input Weight Sensor

The IoT membership variable in These three sets are based on


Figure 4 is divided into three sets, Kilogram measurements. This set is
namely Empty [-20 0 20], Heavy [5 based on the weight of the garbage
25 45], and Very Heavy [30 50 70]. in the trash.

Figure 5 Fuzzification Output


The Action variable shown in variables sent to ESP32 for
Figure 5 is divided into four sets: processing are only Good and Very
Very Good, Good, Less Good, and Bad variables because these two
Bad. These four groups are actions variables will be used for
taken by garbage cleaning officers. commands to open or close the
Of the four sets in Figure 4, the trash can.
Figure 6 Fuzzification Rules
In applying the system, the allowed to throw garbage in the
author must follow the rules that trash can.
have been made previously. These
rules will be used as a reference in The simulation on the
coding the program. From Figure 6, MATLAB software shows in Figure
it can be explained that if the IoT 7 that after the rule is entered into
reads a value between 25 - 30 cm the system, it will produce a surface
and the weight sensor reads a graph that shows the distribution of
weight between 15 - 20 Kg, it will membership values for each
take action to open the trash can fuzzification element. From the
cover. If the IoT reads a value picture, it can be seen that the value
between 15-20 cm, but the weight of the Very Good trash has the most
sensor reads a weight of more than minor of the least area. This is
20 Kg, the trash can will remain because the rule only allows the
open. Meanwhile, if the IoT reads a trash can to be in good condition if
value of less than 10 cm and the the trash can is empty, as shown by
weight sensor reads a weight of a small IoT reading and a heavy
more than 25 Kg, the trash can will sensor reading.
be closed, and it is no longer
Figure 7 Simulation Results in Matlab

RESULTS AND DISCUSSION

Next is the performance test on the bin, it is necessary to calibrate the


Load Cell weight sensor. This study loadcell beforehand. Loadcell
used 10 types of waste placed on calibration requires HX711 IC as an
the trash can. Trash cans have a amplifier. The results of data
volume load of 30 L or collection that have been calibrated
approximately 30 to 40 kg. In are as in Table 1.
calculating the weight of the trash
Table 1 IoT Test
Sensor Test Ruler Ultrasound Sensor
1 7 7
2 10 10
3 13 13
4 16 15
5 19 18
6 21 21
7 23 23
8 26 25
9 29 28
10 30 30.1

The test results were based The data in Table is used as


on Table 1 which was carried out on a simulation to determine the weight
10 data collection times. From these of the trash can. From the data
tests, similar results were obtained, calculated based on the difference
there are 194 and 190. The average between the scales on the market
measurement result with a ruler was using a weight sensor, the accuracy
19.4, while the average of the load cell weight is obtained
measurement result with the IoT which has a weight difference value
was 19. So from these two values, ranging from 0.01 kg to 0.03 kg.
the percentage error of With an average difference of
measurements made using the 0.0096 kg. Load Cell can calculate
sensor could be calculated. mass with very high accuracy. To
Ultrasonic as follows. simulate the opening and closing of
the trash can, fuzzy logic is needed
that has been previously designed.
Table 2 Testing the Load Cell Weight Sensor
No Garbage Type Weighing Scales Weight Difference
(Kg) on (Kg)
Sensor (Kg)
1 Rice Trash 2.00 2.01 0.01
2 Fruit Trash 1.24 1.21 0.03
3 Vegetable 1.31 1.30 0.01
Garbage
4 Bottle Trash 1.0 1.01 0.01
5 Plastic waste 0.018 0.017 0.01
6 Glass Trash 0.20 0.20 0
7 Metal Trash 1.45 1.46 0.01
8 Paper Trash 0.955 0.956 0.01
9 PCB Trash 0.25 0.25 0
10 Mixed Garbage 0.30 0.31 0.01

The smart trash can made in trash can will open, and if the weight
this study is designed to detect of the garbage has exceeded 25 Kg
objects if the object is in an area of and the object distance is less than
0 – 30 cm and with a weight 10 cm, the lid of the trash can will be
between 0 – 40 Kg. In Table, it can silent and will not open. However, if
be seen the response made by the the object distance is between 0 cm
IoT HCSR04 and the weight sensor. – 10 cm but the weight sensor
For a distance between 20 cm to 30 shows less than 5 Kg, the trash bin
cm and the weight, the sensor reads will remain closed until the trash can
between 0 - 25 Kg, the lid of the is cleaned.
Table 3 Observation Results of the Smart Trash System
No Object Weight Sensor Results
Distance (Kg)
(cm)
1 30 0 Cover Open (Very
Good)
2 30 5 Cover Open (Very
Good
3 27 7 Cover Open (Good)
4 25 10 Cover Open (Good)
5 23 12 Cover Open (Good)
6 20 15 Cover Open (Good)
7 17 17 Cover Open (Not Good)
8 15 20 Cover Open (Not Good)
9 12 23 Cover Open (Not Good)
10 10 25 Cover Open (Not Good)
11 7 27 Cover Not Open (Bad)
12 5 30 Cover Not Open (Bad)
13 3 32 Cover Not Open (Bad)
14 0 35 Cover Not Open (Bad)
15 0 40 Cover Not Open (Bad)

CONCLUSION AND From the tests made, the


SUGGESTION accuracy of the IoT HC-SR04 has a
deviation of 20%. At the same time,
Based on the conclusion of
the deviation of the Load Cell weight
the discussion of the research that
sensor is 1%. The implication of this
has been done, it is concluded that
research is to provide convenience
the accuracy of the fuzzy logic
for garbage officers in maximizing
algorithm in determining the action
the effective cleaning of trash bins
of opening and closing the trash can
and reducing the accumulation of
has a level of 100% so that the
trash that occurs.
expected action is following the
system.
REFERENCES
A. Imran and M. Rasul, “Pengembangan Tempat Sampah Pintar Menggunakan
Esp32,” J. Media Elektr., vol. 17, no. 2, pp. 2721–9100, 2020, [Online].
Available:
A. M. Hilal, L. Osman Widaa, F. N. Al-Wesabi, M. Medani, M. A. Hamza, and
M. Al Duhayyim, “Metaheuristic resource allocation strategy for cluster
based 6g industrial applications,” Comput. Mater. Contin., vol. 71, no. 1,
2022, doi: 10.32604/cmc.2022.021338.
A. P. Puspaningrum et al., “Waste Classification Using Support Vector Machine
with SIFT-PCA Feature Extraction,” Nov. 2020. doi:
10.1109/ICICoS51170.2020.9298982.
D. Atmajaya, N. Kurniati, Y. Salim, W. Astuti, and P. Purnawansyah, “Sistem
Kontrol Timbangan Sampah
E. Putrawan et al., “Implementasi Alat Pengontrol Pengumpul Sampah pada
Irigasi Aliran Air Sawah Menggunakan Mikrokontroler,” J. Krisnadana,
vol. 1, no. 1, pp. 57–68, 2021, [Online]. Available:
https://ejournal.catuspata.com/index.php/jkdn/index
F. Fadel, “The Design and Implementation of Smart Trash Bin,” Acad. J.
Nawroz Univ., vol. 6, no. 3, pp. 141–148, 2017, doi:
10.25007/ajnu.v6n3a103.
H. D. Ariessanti, Martono, and J. Widiarto, “Sistem Pembuangan Sampah
Otomatis Berbasis IOT Menggunakan Mikrokontroler pada SMAN 14
Kab.Tangerang,” vol. 12, no. 2, pp. 229–240, 2019.
https://ejournal.up45.ac.id/index.php/Jurnal_ENGINE/article/view/420/379
https://ojs.unm.ac.id/mediaelektrik/article/view/14193
Humas KLHK, “Gerakan Nasional Pilah Sampah Dari Rumah Resmi
Diluncurkan,” Kementerian
K. Telaumbanua, F. Butar-Butar, and P. Shania Bilqis, “Identifikasi Sampah
Berdasarkan Tekstur dengan Metode GLCM dan GLRLM Menggunakan
Improved KNN,” 2021.
L. Abualigah, A. Diabat, and Z. W. Geem, “A Comprehensive Survey of the
Harmony Search Algorithm in Clustering Applications,” Appl. Sci., vol.
10, no. 11, p. 3827, May 2020, doi: 10.3390/app10113827.
Lingkungan Hidup dan Kehutanan, 2019.
http://ppid.menlhk.go.id/siaran_pers/browse/2100
M. A. Nasution, G. Putra, A. Putra, and S. Andika, “Rancang Bangun Alat
Pencacah Daun dan Ranting Gambir,” Agroteknika, vol. 1, no. 1, pp. 1–
8, Jun. 2018, doi: 10.32530/agtk.v1i1.16.
M. A. Saputra, I. G. P. W. W. Wirawan, and A. Zubaidi, “Rancang Bangun
Smart Trash Can Berbasis IOT (Internet Of Things) Untuk Petugas
Sampah Perumahan,” J. Teknol. Informasi, Komputer, dan Apl. (JTIKA
), vol. 3, no. 1, pp. 120–132, 2021, doi: 10.29303/jtika.v3i1.134.
M. Malik and A. Burhanuddin, “Desain Model Fuzzy Control UAV Berbasis
MATLAB / SIMULINK,” J. ENGINE Energi, Manufaktur, dan Mater., vol.
2, no. 1, pp. 19–24, 2018, [Online]. Available:
M. Yang and G. Thung, “Classification of Trash for Recyclability Status,”
CS229Project Rep., pp. 1–6, 2016.
Non Organik Berbasis Load Cell dan ESP32,” Semin. Nas. Teknol. Inf. dan
Komun., vol. 1, no. 1, pp. 434– 443, 2018.
O. Adedeji and Z. Wang, “Intelligent waste classification system using deep
learning convolutional neural network,” in Procedia Manufacturing,
2019, vol. 35, pp. 607–612. doi: 10.1016/j.promfg.2019.05.086.
R. M. Irsyad, L. H. D. Satryo, A. L. Febrianingrum, and F. Adriyanto, “Design of
Monitoring and Separating Dustbin System using Internet of Things,” J.
Electr. Electron. Information, Commun. Technol., vol. 2, no. 2, p. 30,
2020, doi: 10.20961/jeeict.2.2.45112.
R. P. Mahyudin, “Kajian Permasalahan Pengelolaan Sampah Dan Dampak,”
Tek. Lingkungan, 3, vol. 3, no. 1, pp. 66–74, 2017.
Rosmiati, H. Pratama, and N. Arif, “Perancangan Prototype Sistem Keamanan
Parkir Otomatis Berbasis Radio Frequency Identification (RFID),” Inf.
(Jurnal Inform. dan Sist. Informasi), vol. 13, no. 2, pp. 146– 153, 2021,
doi: 10.37424/informasi.v13i2.126.
U. Özkaya and L. Seyfi, “Fine-Tuning Models Comparisons on Garbage
Classification for Recyclability.”
Z. Azmi, M. Ramadhan, and Supriyadi, “Tong sampah cerdas via sms,” vol. 16,
no. 2, pp. 142–150, 2017, [Online]. Available:
www.SensorUltrasonik.co.id

You might also like