Blog Post

Cough Detection with TinyML on Arduino

In this tutorial we show how to build a cough detection system for the Arduino Nano BLE Sense using TinyML and Edge Impulse.

Zach Shelby

June 26, 2020

    There is a huge need for inexpensive, easily deployable solutions for COVID-19 and other flu-related early detection. Together with the UN, Hackster, Edge Impulse, and many others we recently launched the UN COVID Detect & Protect Challenge aiming to create easily deployable solutions for the prevention and detection of flu in developing countries. In this tutorial, we show how to use Edge Impulse machine learning on an Arduino Nano BLE Sense to detect the presence of coughing in real-time audio. We built a dataset of coughing and background noise samples, and applied a highly optimized TInyML model, to build a cough detection system that runs in real-time in under 20 kB of RAM on the Nano BLE Sense. This same approach applies to many other embedded audio pattern matching applications, for example, elderly care, safety, and machine monitoring. This project and the dataset were originally started by Kartik Thakore to help in the COVID-19 effort.

    Card image cap



    Are you interested in bringing machine learning intelligence to your devices? We're happy to help.

    Subscribe to our newsletter