Overview of the system
Figure 1 displays the prototype of the intelligent kitchen waste composting system. The prototype can be categorized into three subsystems. The red box indicates the Kitchen Waste Segregation System, whilst the blue box represents the composting system, and the green box represents the compost soil transportation system. The description for each system is listed in Table 1. Figure 2 shows the overall system's fundamental operation. The CNN Model was trained with TensorFlow library in Jupyter Notebook platform using transfer learning method, the CNN model used is MobileNetV2. The total number of images used in training and validating the model were 985, 68% for training and 32% for validation. These images were collected and labelled locally to classify the kitchen wastes into two categories which are compostable such as banana, carrot, cucumber, eggshell, lemon, lime, orange, and potato, whereas non-compostable such as food cans, sauce bottles, food packaging plastic and spice bottle. The system begins with an ultrasonic sensor to detect the presence of the kitchen waste and trigger the object detection element. The deep learning algorithm of the system will classify the kitchen waste as compostable or non-compostable. If the kitchen waste is not compostable, it will be segregated into the dumping bin. Otherwise, the compostable kitchen waste will be shredded to a smaller size of waste, which will ease and speed up the composting process. Before commencing the composting process, the server communication will link the preceding system with the composting process and compost soil transporting process through IoT integration. The composting process will send real-time sensor data to the server. When the compost is finished, the server will send a signal to the compost soil transporting process to collect the compost soil and deliver it to the designated location.
Table 1
Prototype system description
No.
|
Systems Name
|
Description
|
1
|
Kitchen Waste Segregation System
|
AI and IoT technology have been integrated into the system. The trained deep learning model can classify kitchen waste into compostable and non-compostable with camera vision, to segregate the kitchen waste. A signal will send to the server once completed the instruction of this system.
|
2
|
Composting System
|
The composting system is linked to the kitchen waste segregation system. The composting system will process the kitchen waste into compost. Through the integration of AI and IoT technologies, the system monitors the compost state and may inform the user of the product's condition.
|
3
|
Compost Soil Transportation System
|
Following the production of compost, the robot transporter, which is linked to the composting system through an IoT system, will arrive and collect the compost soil. Following the black tape trail, the compost soil will be delivered to the destination.
|
The hardware of each sub-systems is stated in the sub-section as shown in Table 2 to Table 4:
Table 2
Kitchen waste segregation system components
No.
|
Component
|
Specification
|
Description
|
1
|
Raspberry Pi 4
|
• Quad core Cortex-A72 64-bit
|
Microcontroller
|
2
|
L298N Bridge Motor Driver
|
• Operating DC Voltage range: 5–35 V.
• Maximum power 25 W.
|
Control stepper motor speed and direction.
|
3
|
Web Camera
|
• Resolution 1920 p ×1080 p.
• Frame rate, 30 FPS
|
Run real-time video stream for object detection.
|
4
|
HC-SR04 Ultrasonic Sensor
|
• Operating DC voltage: 5 V
• Detection range: 2 cm to 400 cm
|
To trigger the camera to run object detection model.
|
5
|
17HS4401
Stepper Motor
|
• Bipolar stepper
• Holding torque: 0.4 Nm.
|
Act as the rotational actuator to turn the segregation platform.
|
6
|
Aluminum Profiles
|
• Size: 30 mm × 30 mm × 800 mm.
|
body frame’s support.
|
7
|
Acrylic Sheet
|
• Size: 420 mm × 594 mm (A2)
• Thickness: 3 mm
|
For prototyping body frame.
|
8
|
Shredder Blades
|
• Diameter: 80 mm
• Thickness: 10 mm
|
For shredding purposes.
|
Table 3
Composting system components
No.
|
Component
|
Specification
|
Description
|
1
|
ESP32
|
• 32-bit dual-core
|
Microcontroller
|
2
|
DHT22 Temperature and Humidity Sensor
|
• 3.3-6 V
• Humidity from 0-100% Relative Humidity
• Temperature from − 40°C to 80°C.
|
To measure the ambient humidity and temperature of the compost bin.
|
3
|
Capacitive Moisture Sensor
|
• 3.3-5 V
• Analog I/O 0-4095.
|
To measure the moisture level of the compost pile.
|
4
|
DS18B20 Temperature Probe
|
• 3-5.5 V
• Temperature from − 55°C to 125°C.
|
To measure compost pile temperature.
|
5
|
Brushed DC Motor
|
• 12V
• 5.5 kgfcm
|
To rotate the compost bin.
|
Table 4
Compost soil transportation system components
No.
|
Component
|
Specification
|
Description
|
1
|
ESP32
|
• Xtensa dual-core 32-bit LX6
|
Microcontroller
|
2
|
TCRT5000 IR Sensor
|
• Peak Operating Distance: 2.5 mm.
• Operating voltage: 5 V.
|
Using an infrared (IR) beam to detect the black tape path.
|
3
|
L298N Bridge Motor Driver
|
• Integrated 5V power regulator
• 2A max drive current
|
Motor controller to regulate motor speed and direction.
|
4
|
TT Gear Motor
|
• 3–6V DC.
• Operating Speed: 200 RPM.
|
Gear DC motor to move the transporter.
|
Software
Web server framework
Django was chosen as the framework for the web server. Django is a backend framework that is completely based on the Python programming language, making it very simple to build. In addition, Django has native support for SQL database management systems, making database interaction incredibly straightforward and requiring no SQL code to be developed.
Database management systems (DBMS)
DBMS is a system used to improve and manage database storage. MySQL DBMS was chosen because of the developer's expertise.
Communication protocol selection
The HTTP and MQTT communication protocols were selected as the major client-server and endpoint protocols, respectively. HTTP is a document-centric communication protocol, making it a sensible choice for the user side given that its main purpose is to supply content, in this case HTML pages. MQTT is a data-centric protocol that is more efficient than HTTP for sending data that consists just of data, such as JavaScript Object Notation (JSON).
System data retrieving technique selection
Short polling was selected as the data retrieving method to create the system rapidly due to the short time frame of the project.
TensorFlow
TensorFlow was selected as the library to perform the deep learning computation. TensorFlow is a sophisticated and highly effective deep learning package with robust visualization features and several alternatives for high-level model construction.