Showing posts with label coronavirus. Show all posts
Showing posts with label coronavirus. Show all posts

Friday, 21 August 2020

So I heard you can do Computer Vision at 30FPS; I can do 1000.

- Akash James



And there was a man, in a cave, held captive and hooked up to an electromagnet plunged deep in his chest. Hammering his way through, quite literally, Stark, built his initial Arc Reactor and Mark 1 Iron Man suit, using nothing but a bucket of scrap and modern, tactical, self-guiding, explosive payload-carrying arrows, ergo missiles. Over-did it, didn’t I? Mesmerizing to most, the primitive propulsion system for un-guided flight and rudimentary weapons were not striking to engineers like us.

Stark kept going on, adding new capabilities to his armour, reaching peak performance with the Model Prime and finally calling it a day with the Mark 85. (More like Captain Marvel blasted him in Civil War 2 or the Gauntlet irradiated him, based on the cinematic or comic universe you prefer).

Just like arguably the best science-fiction-based inventor, I never stop with my creations and continue over-hauling for higher performance, ’cause I know that there will always be a higher ascension level to reach.

Computer Vision is a field with rapid progress; new techniques and higher accuracy coming out from various developers across the planet. Machines now have human-like perception capabilities, thanks to Deep Learning; with the ability to not only understand and derive information from digital image media but also create images from scratch with nothing but 0’s and 1's.

How did it begin?

Time and again, the higher tech-deities bring me at a point in this space-time continuum where I am faced with a conundrum. My team and I, back in our final year of college, were building a smart wearable for people with impaired vision, an AI-enabled extension of sorts to help the user with recognizing objects, recognizing people, and performing Optical Character Recognition; we called it Oculus. In all honesty, we did not rip it off from Facebook’s, Oculus Rift VR Headset and it was purely coincidental. The AI Engine was comprised of a multitude of classifiers, object detectors and image captioning neural networks running with TensorFlow and Python. With my simpleton knowledge of writing optimized code, everything was stacked sequentially, not allowing us to derive results in real-time, which was an absolute necessity of our wearable. Merely by running the entire stack on the GPU and using concurrent processes, I was able to achieve 30fps and derive real-time results.

Thus, this began my journey of being fast — real fast.

Ratcheting my way through

Fast forward two years to the present, I currently work as an AI Architect at Integration Wizards. My work predominantly revolves around creating a digital manifestation of the architecture I come up with for our flagship product — IRIS

Wondering what exactly IRIS does? (being Deadpool and breaking the 4th wall) To give you a gist, IRIS is a Computer Vision platform which provides our customers with the ability to quickly deploy solutions that monitor and detect violations. People counting and tracking with demographics, adherence to safety gear usage, person utilization, detection of fire, automatic number plate recognition and document text extraction are some of the features that come out-of-the-box. 

Typically, IRIS plugs into existing CCTV networks, rendering previously non-smart recording networks into real-time analytical entities. IRIS uses Deep Learning for it’s AI Engine but the architecture of the pipeline and the neural networks has seen many changes. My first notable architecture involved web technologies, like Flask and Gunicorn, to create APIs, that my worker threads could utilize. This ensured that the GPU was utilized in a better manner. However, this turned out to be moot when a large number of streams were to be processed.

The two primary hindrances were the API based architecture being a bottleneck under higher loads and the Object detection neural networks being heavy. For this, I needed something better, a better queue and processing architecture along with faster neural nets. Googling and surfing Reddit for a couple of days, I came across Apache Kafka, a publisher-subscriber message queue that is used for high data traffic. We retro-fit the architecture to push several thousand images per second from the CCTVs to the neural networks to achieve our analytical information. We devised another object detection model that was anchor-less and ran faster while retaining performance. Of course, the benchmark was against the infamous COCO dataset.
This increased our processing capability close to 200 fps on a single GPU.

The Turning point

Yes, you guessed it, I didn’t stop there. I knew that there was much more fire-power I could get; accessible but hidden in the trenches of Tensor cores and C++ (such a spoiler). The deities were calling me and my urge to find something better kept me burning the midnight fuel. And then, the pandemic happened.


WHO declared COVID-19 a global emergency — it ravaged through multiple countries and fear was being pushed down people’s throats; most offices transitioned into an indefinite work-from-home status and India imposed the world’s largest lockdown. Wearing masks and Social distancing was the new norm and everybody feared another Spanish flu of the 1900s. 

As an organization, we work with AI to be an extension of man, helping the human race to be better. Usage of face masks and social distancing needed enforcement and what better way to do it than with AI? Our stars aligned, the goals matched and we knew what we needed to build. The solution had to be light-weight and fast enough to run on low-end hardware or run on large HPC machines to analyze hundreds of CCTV cameras at once. For this, we needed an efficient pipeline and highly optimized models.

Hitting 1000 with Mask Detection and Social Distancing Enforcement

By now, I had a few tricks up my sleeve. IRIS’ pipeline now harnesses elements of GStreamer, which is an open-source, highly optimized, image/video media processing tool. TensorRT is something we used to speed up our neural networks on NVIDIA’s GPUs to properly utilize every ounce of performance we could push out. The entire pipeline is written with C++ with CUDA enabled code to parallelize operations. Finally, light-weight models — the person detector uses a smaller ResNet-like backbone and our Face Detector is just 999 kilobytes in size with a 95% result on the WiderFace dataset. Our person detector and Face Detector are INT8 and FP16 quantized making them much faster. With quantization and entire processing pipeline running on the GPU, amalgamating these together, IRIS’ new and shiny COVID-19 Enforcer ran at 1000 fps at peak performance for Social Distancing and 800fps for both Social Distancing and Mask Detection.

This allows us to deploy IRIS on smaller embedded devices to provide a cost-effective solution for retail-chains and stand-alone stores while letting us utilize multi-GPU setups to run on warehouses, shopping malls and city-wide CCTV networks making it easier to comply with and deny the spread of infection.

So what’s next?

I am not done. Achieving one milestone allows me to mark a bigger and better goal. Artificial Intelligence is in its infancy and being at the forefront of making it commercially viable and available in all markets, especially India has been mine and my organization’s vision. The endgame is to have AI for all, where people, be it developers or business-owners, have the ability to quickly design and deploy their own pipelines. 

IRIS aims at being a platform to precisely empower individuals with that, with the intention to democratize Artificial Intelligence, making it not a luxury for the few, rather a commodity for all. 

Chiselling AI agents to be the best tool that man has ever known will be our goal, paving the future with a legion of Intelligent agents, not making the world cold, but making us a smarter race. Ain’t nobody creating Ultron!

Monday, 22 June 2020

Covid-19 isn’t going away soon…… What’s your plan to make YOUR team safe in the workplace?

Thankfully Covid-19 seems to be on the wane…. But it will take a long time to disappear fully, and it is unlikely to be the last pandemic. This means that YOU may need to make the workplace safe for your team and perhaps your customers.

The good news is that many organisations have successfully implemented a Work-From-Home strategy….. And perhaps it has been much easier than we had dreamed it could be – certainly full or part-time WFH will now be a real option for many office workers.

The bad news is that solving the problem for workers who MUST be in their workplace is much, much harder.

Thankfully there ARE tools and solutions (automated Artificial Intelligence) that can help.

Solving the problem falls into several areas

  • Supplying / enforcing use of PPE
  • Providing hygiene solutions – hand sanitiser and washing facilities
  • Making social distancing easy & ensuring that it happens

The last of the above – social distancing, is easy to request, but much harder to implement & has a whole set of sub-problems

  • Filtering out people who have symptoms e.g. high temperature, that they themselves may be unaware of
  • Re-arranging the environment to provide enough isolation where individuals work
  • Reducing hotspots where people might struggle to keep a suitable distance
  • Changing processes to reduce face-face interactions where possible
  • Encouraging a culture where people choose to do the right thing

For these problems we have a technology solution: IRIS, an Artificial Intelligence tool that automatically and constantly analyses what is going on in your workplace AND gives you the data to work out what is going wrong, when it is going wrong and gives you the opportunity to fix it.

  • It can check who is & is not using PPE
  • It can check temperature of people entering a building
  • It can measure how far apart people are 24/7
  • It can find hotspots where social distancing guidelines being broken
  • Feedback is immediate and specific

Crucially this allows YOU to take control

  • Change processes exactly where it creates problems
  • Rearrange workspace to minimise squeeze points & hotspots
  • Make changes AND then check if these changes were effective
  • As with many processes you often get what you measure ….especially when the feedback loop is effective

Perhaps as importantly it allows you to SHOW that you are taking control, hopefully giving confidence to people, demonstrates your organisation’s desire for change and ideally creating a model for the right culture. 

Here is how you can find out more

Visit www.iwizardsolutions.com/covid19

Ask us at info.eu@iwizardsolutions.com

Tuesday, 7 April 2020

IRIS AI – A fight against the COVID-19 Pandemic

pic: Unsplash 

How do we stop a global pandemic which has infected over 3.6 million and claimed more than 250000 lives? 

As the number of COVID-19 cases continues to rise, wearing masks and gloves, frequent hand sanitization, social distancing, and early identification of infected people are crucial in curbing further spread of COVID-19.

However, the biggest challenge that is faced by organizations is to enforce and ensure strict compliance with these measures. Especially at a time when the number of cases is on a surge each day, non-compliance due to human negligence and fatigue can cost us greatly.

To put it in words, “we are our worst enemies” during the COVID-19 pandemic.

This is where technology such as computer vision can be highly impactful. IRIS AI, a flagship product by Integration Wizards Solutions can transform your passive CCTV cameras into active analytical tools.

The computer vision technology can keep your employees and premises safe by ensuring the use of masks and gloves by people, social distancing compliance, and early sensing of fever using thermal cameras.

With the majority of countries in a lockdown, business continuity is another key challenge being faced by companies across the globe. However, it is also critical to get the operations re-started to get the economy back up.

So, for those looking for an effective mechanism of ensuring more than 99% compliance without any infrastructure overhaul, implementing IRIS computer vision can help.

IRIS AI uses the feed from existing CCTV to detect non-compliance and raises real-time alerts as SMS, WhatsApp messages, email, etc. The alarm is configured to be sent to the right authority who can then take the necessary steps like personally contacting the non-compliant employee. Moreover, it gives insights on a dashboard for the organisation to understand the analytics during a given time period.

In these challenging times for communities across the globe, technology and innovation could be the key in this fight against COVID-19.