Table 3 Algorithm of the proposed mechanism.

From: Blockchain based solid waste classification with AI powered tracking and IoT integration

Step

Task

Description

1

Initialize CNN model

Load and fine-tune a pre-trained CNN model on labeled waste images

2

Capture image of waste

Capture an image of waste using the camera module

3

Pre-process image

Resize and normalize the captured image for the CNN input

4

Classify waste

Pass the image through CNN to classify waste into categories

5

Process classification results

Store the classification result and send it to microcontroller

6

Measure bin fill level

Use the ultrasonic sensor to measure waste fill level in the bin

7

Measure bin weight

Use the load sensor to measure the weight of accumulated waste

8

Activate sorting mechanism

Activate the servo motor to sort waste based on classification result

9

Store data

Send the data (fill level, weight, classification) to the cloud and update app

10

Optimize collection schedule

Use AI to predict the optimal collection schedule and route

11

Track sorting efficiency

Calculate sorting accuracy based on true and false classifications

12

Update waste categorization

Categorize waste into food waste, hazardous, residual, or recyclable

13

Report recycling efficiency

Calculate the recycling efficiency based on successfully recycled materials

14

Send final report

Send the final status report to the monitoring system