├── pictures ├── map.png ├── roadmap.png ├── sample2.gif ├── architecture.png └── sample1 (1).jpg ├── long-description.md ├── README.md └── database_to_map_visualization.ipynb /pictures/map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mihika-shrivastava/garbage-detection/HEAD/pictures/map.png -------------------------------------------------------------------------------- /pictures/roadmap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mihika-shrivastava/garbage-detection/HEAD/pictures/roadmap.png -------------------------------------------------------------------------------- /pictures/sample2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mihika-shrivastava/garbage-detection/HEAD/pictures/sample2.gif -------------------------------------------------------------------------------- /pictures/architecture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mihika-shrivastava/garbage-detection/HEAD/pictures/architecture.png -------------------------------------------------------------------------------- /pictures/sample1 (1).jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mihika-shrivastava/garbage-detection/HEAD/pictures/sample1 (1).jpg -------------------------------------------------------------------------------- /long-description.md: -------------------------------------------------------------------------------- 1 |
Ever saw the streets of your hometown littered with trash and wished you could do something? Well, we've been there too! We created this web application with the hopes of helping everyone come together as a community and keep our cities clean.
4 |As India and the world urbanizes, and with the pandemic, there is a sudden rise in the number of corporations providing deliveries to people in and around cities. This puts us in a unique situation wherein we can, with the help of the corporates that provide the delivery, observe locations wherein unnoticed garbage is being collected.
7 | 8 |Keeping in mind the Goal no. 11 of United Nation's Sustainability Goals, 'Sustainable Cities & Communities' ( https://sdgs.un.org/goals ), we propose the following idea to clean up the city and segregate waste.
9 | 10 |This project deals with Deep Learning, wherein we will have a model which is trained to identify garbage and an inference device, which will do the identification physically so as to speak. An inference engine, in the field of AI is a component of the system that applies logical rules to the knowledge base to deduce new information.
12 |Our set-up would essentially be comprised of a smart camera to see the streets, GPS to detect the location and a modem to send the location to a Database server, so that the coordinates are noted and can be displayed on a map for the convenience of the concerned authorities to clean up. These authorities could be municipalities or recycling plants.
13 |Another approach, which will be more feasible with the onset of 5G and hence internet of things is to eliminate the need of pre-trained inference engines and smart cameras and instead have regular cameras sending all the footage it receives directly to a cloud for processing wherein the we will not only be able to identify the presence of garbage but also the specific type of garbage, hence making it easier for the recycling plants using the service too. The processing of the footage in a cloud will be faster and much more accurate since a cloud service could continuously learn. This approach also significantly decreases the cost of setup.
14 | 15 |With the help of delivery/transport services such as Uber, Zomato, we can identify the littered areas of the city by fixing our setup (discussed above), that is programmed to identify trash on the go. We've used the YOLO (You Only Look Once) Algorithm for the garbage detection. The litter identified can be further classified into the following categories: 17 |
The frames where garbage was detected would be sent along with the GPS co-ordinates of the location where the frame was taken can be sent to IBM's Cloudant database from where we can plot them area-wise and garbage-type wise for ease of identification. Or another approach would be to use IBM's Node-RED via MQTT protocol, Node-RED is a service provided by IBM that makes connecting IoT devices to web applications simple.
29 | 30 | 31 |On receiving the location, coordinates (latitude and longitude) are stored in a database (IBM's Cloudant) where we've represented each location with a document. The coordinates are then retrieved and markers are placed on a map using python library (folium) and will be displayed in our web application. Concerned authorities can then be able to collect the garbage and treat it using appropriate techniques.
33 | 34 |The inference machine can be directly tracked using HERE tracking to display details about the locations of garbage found.
36 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Garbage Detection: Leading the way to cleaner cities. 2 | The world generates 2.01 billion tonnes of municipal solid waste annually, with at least 33 percent of that managed in an environmentally unsafe manner.
26 | According to estimates, by 2050, the global waste is expected to grow to about 3.40 billion tonnes, which will be more than double of population growth over the same period of time.
27 | In India, due to rapid urbanisation, the country is facing massive waste management challenge. Over 377 million urban people live in 7,935 towns and cities and generate 62 million tonnes of municipal solid waste per annum. Only 43 million tonnes (MT) of the waste is collected. From that, 11.9 MT is treated and 31 MT is dumped in landfill sites. Solid Waste Management (SWM) is one among the basic essential services which must be provided by municipal authorities in the country to keep urban centres clean. However, almost all municipal authorities deposit solid waste at a dumpyard within or outside the city haphazardly.
28 | In these areas with polluted environments and ineffective waste management, abdominal diseases like Japanese Encephalitis, Jaundice, Cholera, Colitis, etc., are quite common.
The key to efficient waste management is to ensure proper segregation of waste at source and to ensure that the waste goes through different streams of recycling and resource recovery. But as mentioned above, 33% of the mis-managed waste is the one which doesn't even reach the appropriate channel. Rather, it accumulates in local dumps which end up becoming quite filthy and becomes a breeding ground for infections and diseases. Quite often, Municipalities and the concerned authorities don't even know about the existance of many such dumping grounds in and around the city.
32 | 33 |As the country gets more digitally connected, more and more people order commodities (like food) to be directly delivered to their houses. This results in a lot of delivery-people driving into neighbourhoods in and around the city. If we were to fit a smart camera in association with an inference engine in these vehicles, we could get the location of many local garbage dumps and thereby inform the concerned authorities to take suitable action.
35 | We can also further use these techniques of artificial learning and neural networks to identify and segregate the waste so that they can be properly disposed.
36 |
37 |
38 |
45 |
46 |
47 | Our project detects trash on streets through a hardware unit called an inference engine hard coded with a machine learning algorithm. It marks the locations where trash is detected on a map.
52 |
53 |
54 |
55 |
58 |
60 |
62 |
63 |
64 | | \n", 158 | " | _id | \n", 159 | "_rev | \n", 160 | "st_indexes | \n", 161 | "type | \n", 162 | "long | \n", 163 | "lat | \n", 164 | "geometry | \n", 165 | "
|---|---|---|---|---|---|---|---|
| 0 | \n", 170 | "_design/geogdf | \n", 171 | "1-951ce177f5894819fa5a70da5f7e7920 | \n", 172 | "{'geoidx': {'index': 'function(doc) {if (doc.g... | \n", 173 | "NaN | \n", 174 | "NaN | \n", 175 | "NaN | \n", 176 | "NaN | \n", 177 | "
| 1 | \n", 180 | "place1 | \n", 181 | "6-e930d3886e5d78a92b853a94c50cf9c6 | \n", 182 | "NaN | \n", 183 | "Feature | \n", 184 | "77.522393 | \n", 185 | "12.995173 | \n", 186 | "{'type': 'Point', 'coordinates': [77.522393, 1... | \n", 187 | "
| 2 | \n", 190 | "place2 | \n", 191 | "5-19885050827ef5a78b07acc78895a318 | \n", 192 | "NaN | \n", 193 | "Feature | \n", 194 | "77.615251 | \n", 195 | "13.008411 | \n", 196 | "{'type': 'Point', 'coordinates': [77.615251, 1... | \n", 197 | "
| 3 | \n", 200 | "place3 | \n", 201 | "4-260b54f1b21237097e60f7382ddc12d5 | \n", 202 | "NaN | \n", 203 | "Feature | \n", 204 | "77.512531 | \n", 205 | "12.991672 | \n", 206 | "{'type': 'Point', 'coordinates': [77.512531, 1... | \n", 207 | "
| 4 | \n", 210 | "place4 | \n", 211 | "5-fa85bcc8e7565e7a8a499c46b22d91b2 | \n", 212 | "NaN | \n", 213 | "Feature | \n", 214 | "77.59647 | \n", 215 | "12.966384 | \n", 216 | "{'type': 'Point', 'coordinates': [77.59647, 12... | \n", 217 | "
| 5 | \n", 220 | "place5 | \n", 221 | "1-378107549ece09cd41952a871c9f0439 | \n", 222 | "NaN | \n", 223 | "Feature | \n", 224 | "77.521032 | \n", 225 | "13.082295 | \n", 226 | "{'type': 'Point', 'coordinates': [77.521032, 1... | \n", 227 | "
| 6 | \n", 230 | "place6 | \n", 231 | "2-07368dfa2d284916133dc4750ebd4013 | \n", 232 | "NaN | \n", 233 | "Feature | \n", 234 | "77.549238 | \n", 235 | "12.956204 | \n", 236 | "{'type': 'Point', 'coordinates': [77.549238, 1... | \n", 237 | "
| 7 | \n", 240 | "place7 | \n", 241 | "9-bb74e8714d5d9c2e6f3a1715b2020162 | \n", 242 | "NaN | \n", 243 | "Feature | \n", 244 | "77.492505 | \n", 245 | "12.926050 | \n", 246 | "{'type': 'Point', 'coordinates': [77.492505, 1... | \n", 247 | "