| Literature DB >> 36015936 |
Israel Edem Agbehadji1, Abdultaofeek Abayomi2, Khac-Hoai Nam Bui3, Richard C Millham4, Emmanuel Freeman5.
Abstract
Waste management is one of the challenges facing countries globally, leading to the need for innovative ways to design and operationalize smart waste bins for effective waste collection and management. The inability of extant waste bins to facilitate sorting of solid waste at the point of collection and the attendant impact on waste management process is the motivation for this study. The South African University of Technology (SAUoT) is used as a case study because solid waste management is an aspect where SAUoT is exerting an impact by leveraging emerging technologies. In this article, a convolutional neural network (CNN) based model called You-Only-Look-Once (YOLO) is employed as the object detection algorithm to facilitate the classification of waste according to various categories at the point of waste collection. Additionally, a nature-inspired search method is used as learning rate for the CNN model. The custom YOLO model was developed for waste object detection, trained with different weights and backbones, namely darknet53.conv.74, darknet19_448.conv.23, Yolov4.conv.137 and Yolov4-tiny.conv.29, respectively, for Yolov3, Yolov3-tiny, Yolov4 and Yolov4-tiny models. Eight (8) classes of waste and a total of 3171 waste images are used. The performance of YOLO models is considered in terms of accuracy of prediction (Average Precision-AP) and speed of prediction measured in milliseconds. A lower loss value out of a percentage shows a higher performance of prediction and a lower value on speed of prediction. The results of the experiment show that Yolov3 has better accuracy of prediction as compared with Yolov3-tiny, Yolov4 and Yolov4-tiny. Although the Yolov3-tiny is quick at predicting waste objects, the accuracy of its prediction is limited. The mean AP (%) for each trained version of YOLO models is Yolov3 (80%), Yolov4-tiny (74%), Yolov3-tiny (57%) and Yolov4 (41%). This result of mAP (%) indicates that the Yolov3 model produces the best performance results (80%). In this regard, it is useful to implement a model that ensures accurate prediction to develop a smart waste bin system at the institution. The experimental results show the combination of KSA learning rate parameter of 0.0007 and Yolov3 is identified as the accurate model for waste object detection and classification. The use of nature-inspired search methods, such as the Kestrel-based Search Algorithm (KSA), has shown future prospect in terms of learning rate parameter determination in waste object detection and classification. Consequently, it is imperative for an EdgeIoT-enabled system to be equipped with Yolov3 for waste object detection and classification, thereby facilitating effective waste collection.Entities:
Keywords: Internet of Things (IoT) enabled; Kestrel-based search algorithm (KSA); You-Only-Look-Once (YOLO); convolutional neural network (CNN); object detection and classification; smart bin
Mesh:
Year: 2022 PMID: 36015936 PMCID: PMC9415888 DOI: 10.3390/s22166176
Source DB: PubMed Journal: Sensors (Basel) ISSN: 1424-8220 Impact factor: 3.847
Figure 1Basic structure of ROI area mapped on the CNN network.
Figure 2Structure of the YOLO deep learning network.
Figure 3EdgeIoT smart waste bin framework.
Figure 4Design prototype of smart waste bin.
Figure 5Schematic representation of smart waste bin.
Hardware specification of LattePanda alpha 864.
| Specification | Description |
|---|---|
| CPU | Intel m3-8100Y |
| Graphics | Intel HD Graphics 615, 300–900 MHz |
| Memory | 8 GB LPDDR3 RAM |
| Storage | 64 GB |
| Connectivity | Wi-Fi 802.11AC 2.4 G & 5 G, Dual-Band Bluetooth 4.2, Gigabyte Ethernet |
| Display | 4 K HDMI Output, Type-C, DP Support |
| Operating system | Windows 10 Pro |
| Dimensions | 115 × 78 × 14 mm |
Figure 6Model for KSA and deep learning hub.
Classification of waste image datasets.
| Class of Waste | Recyclable |
|---|---|
| Mixed paper (leaflet and brochure, newspaper) | Yes |
| Metal can/tin | Yes |
| Metallic foil | Yes |
| Glass bottle (colored and colorless) | Yes |
| Plastic garbage bag | Yes |
| Plastic bottle | Yes |
| Polystyrene | Yes |
| Snack plastic bag | Yes |
Figure 7Samples of waste image datasets.
YOLO models and backbone.
| YOLO Model | Number of Fully Connected YOLO Layer | Backbone |
|---|---|---|
|
| 3 | darknet53.conv.74 |
|
| 2 | darknet19_448.conv.23 |
|
| 3 | yolov4.conv.137 |
|
| 2 | yolov4-tiny.conv.29 |
Hyper-parameter for YOLO architecture.
| YOLO Model | Batch | Mini-Batch | Learning Rate (Default) | Momentum (Default) | Decay (Default) |
|---|---|---|---|---|---|
|
| 64 | 32 | 0.001 | 0.9 | 0.0005 |
|
| 64 | 32 | 0.001 | 0.9 | 0.0005 |
|
| 64 | 32 | 0.001 | 0.9 | 0.0005 |
|
| 64 | 16 | 0.0026 | 0.9 | 0.0005 |
Performance result of different YOLO models on classes of waste dataset.
| YOLO Models | Newspaper | Metal Cans/Tins | Metallic Foil | Glass Bottles | Plastic Garbage Bags | Plastic Bottles | Polystyrene | Snack Plastic Bag | Average Precision (AP) |
|---|---|---|---|---|---|---|---|---|---|
| Yolov3 | 97% | 100% | 100% | 98% | 100% | 75% | 99% | 99% | 96% |
| Yolov3-tiny | 0 | 99% | 30% | 96% | 0 | 47% | 0 | 100% | 47% |
| Yolov4 | 28% | 57% | 55% | 40% | 0 | 49% | 33% | 32% | 37% |
| Yolov4-tiny | 35% | 72% | 61% | 70% | 68% | 52% | 36% | 54% | 56% |
Figure 8Samples of waste image tested using Yolov3 on “Anaconda Prompt”.
Performance result of different versions of YOLO model and class of a waste dataset.
| Yolov3 | AP (%) | |||||
|---|---|---|---|---|---|---|
| Test Precision (%) | ||||||
| Class of Waste | 1 | 2 | 3 | 4 | 5 | |
| Newspaper | 96 | 88 | 85 | 95 | 95 | 92 |
| Metal can/Tin | 98 | 99 | 98 | 93 | 94 | 96 |
| Metallic foil | 97 | 72 | 95 | 87 | 97 | 90 |
| Glass bottle | 98 | 95 | 97 | 99 | 99 | 98 |
| Plastic garbage bag | 89 | 67 | 62 | 42 | 51 | 62 |
| Plastic bottle | 75 | 98 | 90 | 98 | 99 | 92 |
| Polystyrene | 99 | 48 | 44 | 64 | 69 | 65 |
| Snack plastic bag | 51 | 41 | 33 | 46 | 50 | 44 |
|
|
| |||||
|
|
| |||||
|
| ||||||
|
|
|
|
|
|
| |
| Newspaper | 47 | 69 | 77 | 63 | 56 | 62 |
| Metal can/Tin | 83 | 92 | 90 | 45 | 87 | 79 |
| Metallic foil | 30 | 51 | 43 | 76 | 53 | 51 |
| Glass bottle | 96 | 67 | 38 | 43 | 44 | 58 |
| Plastic garbage bag | 38 | 32 | 36 | 45 | 47 | 40 |
| Plastic bottle | 86 | 96 | 93 | 78 | 65 | 84 |
| Polystyrene | 38 | 36 | 44 | 86 | 33 | 47 |
| Snack plastic bag | 41 | 42 | 34 | 30 | 35 | 36 |
|
| 57 | |||||
|
|
| |||||
|
| ||||||
|
|
|
|
|
|
| |
| Newspaper | 37 | 45 | 52 | 54 | 49 | 47 |
| Metal can/Tin | 57 | 28 | 28 | 30 | 27 | 34 |
| Metallic foil | 50 | 51 | 57 | 58 | 52 | 54 |
| Glass bottle (colored and colorless) | 40 | 30 | 35 | 34 | 42 | 36 |
| Plastic garbage bag | 31 | 35 | 32 | 36 | 33 | 33 |
| Plastic bottle | 49 | 68 | 50 | 39 | 38 | 49 |
| Polystyrene | 33 | 35 | 34 | 31 | 36 | 34 |
| Snack plastic bag | 32 | 45 | 48 | 36 | 51 | 42 |
|
|
| |||||
|
|
| |||||
|
| ||||||
|
|
|
|
|
|
| |
| Newspaper | 56 | 89 | 80 | 66 | 79 | 74 |
| Metal can/Tin | 85 | 86 | 85 | 87 | 56 | 80 |
| Metallic foil | 82 | 82 | 88 | 82 | 87 | 84 |
| Glass bottle (colored and colorless) | 88 | 93 | 76 | 79 | 83 | 84 |
| Plastic garbage bag | 80 | 88 | 89 | 88 | 86 | 86 |
| Plastic bottle | 86 | 83 | 86 | 79 | 85 | 84 |
| Polystyrene | 82 | 64 | 58 | 81 | 73 | 72 |
| Snack plastic bag | 19 | 20 | 33 | 26 | 36 | 27 |
|
|
| |||||
BFLOPS and number of layers loaded.
| YOLO Models | Total BFLOPS | Layers Loaded from Trained File |
|---|---|---|
| Yolov3 | 65.355 | 107 |
| Yolov3-tiny | 5.459 | 24 |
| Yolov4 | 127.341 | 162 |
| Yolov4-tiny | 6.798 | 38 |
Class of waste image and speed of prediction (milli-seconds) on a test dataset.
| YOLO Models | Newspaper | Metal Cans/Tins | Metallic Foil | Glass Bottles | Plastic Garbage Bags | Plastic Bottles | Polystyrene | Plastic Snack Bag | Average Speed |
|---|---|---|---|---|---|---|---|---|---|
| Yolov3 | 14,864.519 | 14,408.218 | 13,992.650 | 14,340.804 | 15,797.001 | 14,339.928 | 14,479.301 | 13,868.197 | 14,511.327 |
| Yolov3-tiny | 1713.719 | 1787.309 | 1718.016 | 1597.968 | 1751.314 | 1594.539 | 1760.403 | 1832.831 | 1719.5124 |
| Yolov4 | 38,687.950 | 37,195.259 | 38,249.108 | 37,453.995 | 46,097.332 | 38,102.992 | 37,957.456 | 37,909.434 | 38,956.691 |
| Yolov4-tiny | 2387.265 | 2011.539 | 2106.241 | 2101.936 | 2191.841 | 2154.326 | 2353.303 | 2330.005 | 2204.557 |
Average speed of prediction (milli-seconds) of Yolo models on a test dataset.
| Yolov3 | ||||||
|---|---|---|---|---|---|---|
| Speed of Prediction (Milli-Seconds) for Each Test Precision | ||||||
| Class of Waste | 1 | 2 | 3 | 4 | 5 | Average Speed |
| Newspaper | 145,11.33 | 3371.072 | 3402.911 | 3423.648 | 3408.782 | 5623.548 |
| Metal can/Tin | 3374.501 | 3358.799 | 3361.697 | 3687.178 | 3396.21 | 3435.677 |
| Metallic foil | 4431.427 | 3366.969 | 3420.938 | 3450.327 | 3382.536 | 3610.439 |
| Glass bottle | 3259.033 | 3284.746 | 3241.885 | 3300.003 | 3235.94 | 3264.321 |
| Plastic garbage bag | 3229.904 | 3242.865 | 3288.991 | 3260.612 | 3220.934 | 3248.661 |
| Plastic bottle | 3248.995 | 3259.026 | 3285.452 | 3278.581 | 3242.654 | 3262.942 |
| Polystyrene | 3266.775 | 3252.742 | 3252.253 | 3298.082 | 3294.333 | 3272.837 |
| Snack plastic bag | 3243.03 | 3251.574 | 3269.722 | 3267.892 | 3260.797 | 3258.603 |
|
| ||||||
|
| ||||||
|
|
|
|
|
|
|
|
| Newspaper | 1719.5124 | 345.386 | 451.605 | 355.934 | 349.96 | 644.4795 |
| Metal can/Tin | 412.516 | 362.064 | 348.336 | 363.067 | 3,507,220 | 701,741.2 |
| Metallic foil | 364.925 | 366.693 | 349.6 | 347.747 | 355.349 | 356.8628 |
| Glass bottle | 361.354 | 361.13 | 375.465 | 354.422 | 352.705 | 361.0152 |
| Plastic garbage bag | 365.59 | 366.693 | 361.351 | 357.466 | 357.192 | 361.6584 |
| Plastic bottle | 350.41 | 349.458 | 356.926 | 354.744 | 352.455 | 352.7986 |
| Polystyrene | 347.004 | 345.738 | 347.331 | 358.453 | 347.524 | 349.21 |
| Snack plastic bag | 353.371 | 356.43 | 357.425 | 364.276 | 354.909 | 357.2822 |
|
| ||||||
|
| ||||||
|
|
|
|
|
|
|
|
| Newspaper | 38,956.691 | 8774.513 | 9017.872 | 8828.029 | 8830.348 | 14,881.49 |
| Metal can/Tin | 9064.939 | 8705.701 | 8840.907 | 8755.587 | 8809.887 | 8835.404 |
| Metallic foil | 8885.9 | 8734.941 | 8770.792 | 8712.028 | 8813.188 | 8783.37 |
| Glass bottle | 8927.729 | 8798.003 | 8646.429 | 8704.054 | 8642.384 | 8743.72 |
| Plastic garbage bag | 8785.54 | 8773.475 | 8792.293 | 8672.216 | 8569.058 | 8718.516 |
| Plastic bottle | 8678.185 | 8730.985 | 8727.078 | 8807.571 | 8711.908 | 8731.145 |
| Polystyrene | 8765.683 | 8796.807 | 8615.674 | 8900.68 | 8932.007 | 8802.17 |
| Snack plastic bag | 8741.221 | 8813.443 | 8908.464 | 8672.81 | 8762.721 | 8779.732 |
|
| ||||||
|
| ||||||
|
|
|
|
|
|
|
|
| Newspaper | 2204.557 | 432.81 | 444.677 | 433.673 | 425.816 | 788.3066 |
| Metal can/Tin | 506.594 | 461.378 | 438.879 | 434.285 | 429.553 | 454.1378 |
| Metallic foil | 538.672 | 501.698 | 427.958 | 436.49 | 438.808 | 468.7252 |
| Glass bottle | 466.04 | 471.653 | 450.824 | 460.716 | 447.763 | 459.3992 |
| Plastic garbage bag | 446.845 | 439.637 | 451.61 | 440.731 | 431.29 | 442.0226 |
| Plastic bottle | 444.43 | 483.175 | 439.567 | 428.941 | 427.13 | 444.6486 |
| Polystyrene | 515.868 | 489.658 | 429.741 | 425.873 | 431.69 | 458.566 |
| Snack plastic bag | 432.811 | 435.474 | 431.187 | 426.308 | 446.415 | 434.439 |
KSA learning rate parameter.
| #No | Iteration#1 | Iteration#2 | Iteration#3 | Iteration#4 | Iteration#5 |
|---|---|---|---|---|---|
| 1 | 0.0008 | 0.0028 | 0.0045 | 0.0099 | 0.0124 |
| 2 | 0.0109 | 0.0111 | 0.0021 | 0.0678 | 0.0689 |
| 3 | 0.0210 | 0.0234 |
| 0.0987 | 0.0897 |
| 4 | 0.1002 |
| 0.0045 | 0.0123 |
|
| 5 | 0.0028 | 0.0070 | 0.0032 |
| 0.0291 |
Bold values represent the minimum learning rate parameter in each column
Performance result of KSA-based YOLO model on class of waste dataset.
| YOLO Models | Newspaper | Metal Cans/Tins | Metallic Foil | Glass Bottles | Plastic Garbage Bags | Plastic Bottles | Polystyrene | Snack Plastic Bag | AP (%) |
|---|---|---|---|---|---|---|---|---|---|
| Yolov3 | 96% | 98% | 99% | 98% | 99% | 78% | 99% | 98% | 96% |
| Yolov3-tiny | 50% | 97% | 35% | 95% | 30% | 48% | 40% | 95% | 61% |
| Yolov4 | 30% | 60% | 56% | 44% | 27% | 50% | 38% | 30% | 42% |
| Yolov4-tiny | 40% | 75% | 66% | 74% | 69% | 55% | 39% | 50% | 59% |
Figure 9Performance results of KSA-based YOLO model.