<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Michele Moscaritolo on Medium]]></title>
        <description><![CDATA[Stories by Michele Moscaritolo on Medium]]></description>
        <link>https://medium.com/@michele_5863?source=rss-d182ea76417b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*VDXlYCGpYBufwDX8.jpg</url>
            <title>Stories by Michele Moscaritolo on Medium</title>
            <link>https://medium.com/@michele_5863?source=rss-d182ea76417b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:11:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@michele_5863/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Smart Garbage Visual Detection, Monitoring and Analytics]]></title>
            <link>https://becominghuman.ai/smart-garbage-visual-detection-monitoring-and-analytics-a0061fff2b76?source=rss-d182ea76417b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0061fff2b76</guid>
            <category><![CDATA[garbage]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[real-time-analytics]]></category>
            <category><![CDATA[object-detection]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Michele Moscaritolo]]></dc:creator>
            <pubDate>Tue, 22 Oct 2019 16:31:50 GMT</pubDate>
            <atom:updated>2019-10-29T15:13:50.541Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FS6SdXzcw1WQ%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DS6SdXzcw1WQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FS6SdXzcw1WQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b5aed786421bd6280bd8ca78f987520/href">https://medium.com/media/8b5aed786421bd6280bd8ca78f987520/href</a></iframe><h3>Background and rationale for this project</h3><p>Garbage and generic waste management is a challenging task in modern cities. Every area has its peculiar waste production pattern in terms of kind and volume of produced waste, and <strong>optimizing collection is key to reduce costs</strong> and ensure at the same time that city decor is always maintained.</p><p>For some cities, this task is made even more difficult due to the impossibility of installing underground containers. This is the case of Amsterdam, where in most part of the city center, garbage collection relies on citizens and tourists to drop trash bags at given collection spots, at given hours (twice a week). In this case, <strong>it is of course vital to optimize the collection process and to minimize the amount of trash bags accumulating at any of these spots</strong>.</p><p>Many projects that aim to solve this problem involve some form of sensors to be scattered through the city, which would be responsible to collect data about garbage distribution (IoT-style). We find this approach expensive, both for installation and maintenance, not at all scalable and not environmental-friendly. <strong>The solution to environmental problems cannot be to produce and scatter even more disposable electronics all over a city</strong>.</p><h3>Trending AI Articles:</h3><blockquote><a href="https://becominghuman.ai/getting-started-with-building-realtime-api-infrastructure-a19601fc794e">1. Getting Started with Building Realtime API Infrastructure</a></blockquote><blockquote><a href="https://becominghuman.ai/top-100-medium-com-c2695ab3270c">2. TOP 100 medium articles related with Artificial Intelligence</a></blockquote><blockquote><a href="https://becominghuman.ai/digital-processes-inspiring-analog-paintings-a358eb7801a0">3. How I used machine learning as inspiration for physical paintings</a></blockquote><blockquote><a href="https://becominghuman.ai/ms-or-startup-job-which-way-to-go-to-build-a-career-in-deep-learning-2d62a5b10f9e">4. MS or Startup Job — Which way to go to build a career in Deep Learning?</a></blockquote><p>If there was a smart camera able to <strong>visually recognize garbage</strong>, a city would just need to mount 4 or 5 of them on garbage collection trucks or on dedicate vehicles. Operators could remotely <strong>monitor, in real-time and from their office, garbage statistics</strong> such as where more of each garbage type is usually present, daily, weekly and monthly trends, hot spots. A dedicated vehicle could detect the usage of non-authorized collection spots or times for <strong>real-time intervention</strong>. For those caring about their privacy (and we all should!), the camera should embed a technology for <strong>blurring faces</strong>, clothes and person bodies at the edge, so that no sensible data are ever transmitted to the cloud.</p><p>In this article we will explain how we have realized such a camera, the vehicle and the monitoring system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qdFdqO8WdTvH-GMsKnY8Lg.jpeg" /><figcaption>Example of garbage detection (from onboard video) with face and body blurring. The effect can be tuned.</figcaption></figure><h3>The camera</h3><p>The technology enabling our project is a very commonly used and very efficient object-detection Neural Networks: <a href="https://pjreddie.com/darknet/yolo/">Yolo</a>. A version of this network, specifically trained to recognize garbage containers, bags and cardboard boxes has been recently released by <a href="https://github.com/maartensukel/yolov3-pytorch-garbage-detection">Maarten Sukel</a>, an AI specialist working for the city of Amsterdam. This is the core of our camera software.</p><p>The best way to add smart capabilities to a portable camera is to use one of <a href="https://developer.nvidia.com/embedded-computing">the NVIDIA Jetson family</a> system-on-a-chip. For our camera we have chosen the most powerful one, the NVIDIA AGX Xavier series. It was a safe choice considering we have to run both garbage detection and people blurring, but it is probably possible to achieve the same results on a less expensive TX2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*EPeAMxn3OU2vL7RotyTbQQ.png" /></figure><p>The camera is a simple logitech webcam and additional hardware includes an Arduino-compatible GPS+Glonass module with its antenna and a battery-powered wifi/4G hotspot for cloud connectivity.</p><h3>The vehicle</h3><p>The best battery-powered vehicle that one can use to reach every zone in Amsterdam is an electric bike. However, style matters and for this reason we modified our Vespa to hold all the equipment (cameras and antenna excluded) in the helmet compartment. Add a simple voltage regulator (from 12V to 19V for the Xavier) and a power button, and you have an AI-powered Vespa: we baptized it <strong>VespAI</strong>!</p><p>The software on-board uses a modified version of <a href="https://pjreddie.com/darknet/">Darknet </a>to run Yolo v3. The detection results are fed through a filter-and-accumulate module that will avoid counting multiple times the same garbage, if present in multiple adjacent video frames; it will also merge to a single “garbage point” multiple detections done within approximately a 5-meters radius area. Better resolution seems unnecessary and can be achieved in any case only with more advanced GPS modules.</p><p>GPS points are read from the usb module by using the simple <a href="https://gpsd.gitlab.io/gpsd/index.html">gpsd</a> interface. Data are stored on Google Firestore real-time database and as such the native google firebase SDK has been used for client app development.</p><h3>The app</h3><p>Modern applications for data analytics need to be accessible from any device and platform. Real-time data access requires the usage of an appropriate back-end technology and a properly designed data model able to support user queries. Our choice has fallen on <a href="https://ionicframework.com/docs/angular/your-first-app">Ionic+Angular</a> for the front-end development and on <a href="https://cloud.google.com/firestore/">Google Firestore</a> real-time database.</p><p>Ionic+Angular allows us to deploy, from a common codebase, native iOS and Android apps as well as a web-based app accessible from any browser.</p><p>Google Firebase allows us to store each GPS point as a nested collections/document store. The chosen data model allows us to quickly retrieve the list of detected trash points, with related GPS location, a count of containers/bags/cardboard, by zone and with hourly granularity. The support for distributed counters makes it easy to pre-calculate basic statistics by hour and zone in real-time with no need to perform complicated queries.</p><p>The Firebase client SDK includes an extensive APIs that can be used to subscribe client applications to add/update/remove events generated by the application running on VespAI on the Firestore database. In this way, all our applications can show data within seconds from the detection.</p><p>Of course, Google Maps is the chosen platform to show geo-analytics data. For the moment, support for two different visualization layer is present: heatmaps and markers. Heatmaps allow to have a quick glance at garbage distribution in areas, markers allow to inspect the details of the single garbage detection point.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FAyh7nP4TVHk%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DAyh7nP4TVHk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FAyh7nP4TVHk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/77f0d1d75437eb61504660c4d1edb7be/href">https://medium.com/media/77f0d1d75437eb61504660c4d1edb7be/href</a></iframe><p>The web-based application is available <a href="https://mangustatrash.firebaseapp.com/tabs/tab2">at this address</a>. For the Android APK, you can contact us or ask to be included in the closed beta. The app defaults to showing data for the last run, but other periods are selectable.</p><h3>Future developments</h3><p>The application is fully functional (you can check from time to time, data will default to last run), but of course some improvements are in the roadmap:</p><ul><li>use of a better GPS module. The present module is based on u-blox neo-7 generation and neo-8 is available now, with improvements in precision. This will avoid the occasional &quot;in the middle of a canal&quot; detected points, due to poor satellite reception.</li><li>improved neural network training. While we accumulate more and more imaging of garbage, we will use those for training purposes to get a progressively more accurate detection.</li><li>back-end improvements. We plan to use Firestore distributed counters to add more real-time statistics such as zone-based daily and weekly stats per garbage type.</li><li>again on the back-end side, we are considering using GeoFire to support geographic queries that will allow users to perform statistics on customer-defined zones.</li><li>data export to other kind of database to support SQL-based queries on historical datasets.</li></ul><h3>Conclusions</h3><p>We hope you find this project interesting. If you have any questions about it, please feel free to drop us a line at info@mangusta.technology.</p><p>Cheers!</p><h3>Don’t forget to give us your 👏 !</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*2lvCls4yjxVMfZSR" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F8f5f8b%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F8f5f8b&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/c43026df6fee7cdb1aab8aaf916125ea/href">https://medium.com/media/c43026df6fee7cdb1aab8aaf916125ea/href</a></iframe><figure><a href="https://becominghuman.ai/artificial-intelligence-communities-c305f28e674c"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*2f7OqE2AJK1KSrhkmD9ZMw.png" /></a></figure><figure><a href="https://upscri.be/8f5f8b"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*v-PpfkSWHbvlWWamSVHHWg.png" /></a></figure><figure><a href="https://becominghuman.ai/write-for-us-48270209de63"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*Wt2auqISiEAOZxJ-I7brDQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0061fff2b76" width="1" height="1" alt=""><hr><p><a href="https://becominghuman.ai/smart-garbage-visual-detection-monitoring-and-analytics-a0061fff2b76">Smart Garbage Visual Detection, Monitoring and Analytics</a> was originally published in <a href="https://becominghuman.ai/">Becoming Human: Artificial Intelligence Magazine</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>