Enhancing the utility of Audio AI in everyday devices using Audio Source Classification

author avatar
Enhancing the utility of Audio AI in everyday devices using Audio Source Classification

Making the leap from “Smart” to “Useful”. Smart home devices will continue to increase their utility as the challenges of audio source classification are solved by audio edge processors specifically designed for advanced audio and machine learning applications.

This article was co-authored by Raj Senguttuvan and Vikram Shrivastava. 

Artificial Intelligence (AI) is pervading more broadly and deeply in our everyday lives. The adoption of AI and machine learning (ML) at homes is still at an early phase but the potential is unlimited.  New devices and appliances are released into the market every year with increasing AI capabilities. The data generated from these devices enables device makers to learn user habits and predict future usage patterns using ML algorithms, thereby, delivering an improved user experience. 

In a future smart home, AI could automatically control lights, appliances, and consumer gadgets based on predicted routines and by being contextually aware at all times. For example, a smart thermostat will be able to learn the preferences of different persons in the household, recognize their presence based on their voice signatures, and locally adjust the temperature based on an individual’s usage history. Similarly, a smart washer, in addition to having voice control, will automatically be able to sense any load imbalance or water leaks, and adjust the settings or send alerts to prevent failures. Smart refrigerators with AI capabilities for food recognition and understanding consumption patterns will automatically provide shopping and consumption recommendations at the appropriate time.  Additionally, smart displays or mirrors will be able to recognize user’s voices or audio events and automatically offer recommendations or alerts. 

Smart at the edge

While AI has the potential to positively impact almost every aspect of our home life, some users may be wary of the role of AI due to privacy and other concerns. These concerns are amplified when the user’s personal data is sent to the cloud for processing. There have been several cases of a data breach where hackers have intercepted and stolen consumer’s private data. These concerns along with bandwidth and latency constraints are causing many device manufacturers to increasingly think about using edge processors in devices to run ML tasks locally. Several market research reports suggest edge processor shipments will increase by more than 25% driven by the adoption of edge-based ML.

There are several classes of ML algorithms that can be used to make devices ‘smart’ in a smart home. In most applications, the algorithms can recognize the user, the user’s actions, and learn behavior in order to automatically execute tasks or provide recommendations and alerts.  Recognizing the user or user actions is a classification problem in ML parlance. In this article, we specifically focus on audio source classification. 

Advanced Audio and Speech Recognition 

Smart home devices and appliances with advanced audio and speech recognition can use acoustic scene classification and detection of sound events within a scene to recognize users, receive commands, and invoke actions. User activity at home is a rich dataset of acoustic signals that include speech. While speech is the most informative sound, other acoustic events quite often carry useful information. Laughing or coughing during speech, a baby crying, an alarm going off, or a door opening are examples of acoustic events that can provide useful data to drive intelligent actions. 

The process of event recognition is based on feature extraction and classification. Several approaches for audio event (AE) recognition have been published in recent literature. The fundamental principle behind these approaches is that a distinct acoustic event has features that are dissimilar from the features of the acoustic background. Audio source classification algorithms detect and identify acoustic events. The process is split into two phases – 1) detection of an acoustic event and 2) classification. The purpose of detection is to first discern between the foreground events and the background audio before turning on the classifier which categorizes the sound. 

It is expected that future smart home devices will have both audio event recognition as well as automatic speech recognition capability. The general concept of such a smart home system is illustrated in Figure 1.

Figure 1: Audio Event Recognition complements Automatic Speech Recognition (ASR) to drive intelligent actions

Acoustic event recognition through source classification

A variety of signal processing and machine learning techniques have been applied to the problem of audio classification, including matrix factorization, dictionary learning, wavelet filterbanks, and most recently neural networks. Convolutional neural networks (CNN) have gained popularity due to their ability to learn and identify patterns that are representative of different sounds, even if part of the sound is masked by other sources such as noise. However, CNN’s are dependent on the availability of large amounts of labeled data for training the system. While speech has a large audio corpus due to the large-scale adoption of ASR in mobile devices and smart speakers, there is a relative scarcity of labeled datasets for non-speech environmental audio signals. Several new datasets have been released in recent years and it is expected that the audio corpus for non-speech acoustic events will continue to grow driven by the increasing adoption of smart home devices.

Acoustic event recognition Software and Tools

Audio event recognition software using source classification is available through multiple algorithm vendors including Sensory, Audio Analytic, and Edge Impulse to name a few. These vendors provide a library of sounds on which models are pre-trained, while also providing a toolkit for building models and recognizing custom sounds. When implementing audio event recognition on an edge processor, the tradeoff between power consumption and accuracy has to be carefully considered.  

There are also multiple open-source libraries and models available. Here, we provide the results for audio event classification based on YAMNet ("Yet another Audio Mobilenet Network"). YAMNet is an open-source pre-trained model on TensorFlow hub that has been trained on millions of YouTube videos to predict audio events. It is based on MobileNet architecture, which is ideal for embedded applications and can serve as a good baseline for an application developer. The following table shows the simulation results of a simple YAMNet classifier that is less than 200KB in size. It is seen that such a small classifier can deliver sufficient accuracy for the detection of a few common audio events both in clean conditions and in the presence of noise. As seen in Table 1, the TPR (True Positive Rate) performance of the model increases with the SNR of the signal. The data presented in the table below is meant only for a high-level illustration of the concept. In practice, application developers spend many hours training and optimizing these models to accurately detect their sounds under their test conditions. 

Figure 1: TPR using YAMNet Source Classifier

IA8201 is Optimized to Run Source Classification Algorithms

The computational blocks illustrated in Figure 1 are key components of the audio processing chain in a smart home system. Often ML algorithms are used to execute these tasks and matrix operations are critical to executing ML algorithms. Depending on the type of application, many 100’s of millions of multiply-add operations may be needed to be executed. Therefore, the ML processor must have a fast and efficient matrix multiplier as the main computational engine.

Knowles AISonic™ IA8201: Dual Core is an audio edge processor specifically designed for advanced audio and machine learning applications to enable power-efficient compute at the edge. In addition to supporting advanced voice processing and audio output features, IA8201 also has the capability to run Audio Event (AE) recognition use cases at very low power for smart home applications. One of the cores has custom instruction sets optimized to execute matrix-vector multipliers (MVMs) processing, which is critical for running classification routines. Other features of the processor include 1MB of RAM, 64/128-bit busses for high throughput data delivery, ML hardware accelerators, and sparse matrix support for a graceful trade-off between precision and memory. IA8201 SDK will also offer TensorFlow lite support with an acceleration library to enable designers to leverage standard frameworks and tools, thereby, reducing design cycle times.


Smart devices as we know them now will increasingly become smart and useful devices as the challenges of audio source classification are solved by audio edge processors specifically designed for advanced audio and machine learning applications. These edge processors will make smart home devices and appliances more secure and more personal. 

References and further reading

Mariscal-Harana, et al (2020). Audio-Based Aircraft Detection System for Safe RPAS BVLOS Operations. 10.20944/preprints202010.0343.v1. 

Lopatka, K., Kotus, J. & Czyzewski, A. Detection, classification and localization of acoustic events in the presence of background noise for acoustic surveillance of hazardous situations. Multimed Tools Appl 7510407–10439 (2016). https://doi.org/10.1007/s11042-015-3105-4

Temko A., Nadeu C., Macho D., Malkin R., Zieger C., Omologo M. (2009) Acoustic Event Detection and Classification. In: Waibel A., Stiefelhagen R. (eds) Computers in the Human Interaction Loop. Human–Computer Interaction Series. Springer, London. https://doi.org/10.1007/978-1-84882-054-8_7 

Chip-Enabled Edge AI Drives Next-Gen IoT [Internet]. IoT World Today. 2021. Available from: https://www.iotworldtoday.com/2021/02/23/chip-enabled-edge-ai-drives-next-gen-iot/

3Freesound - Freesound [Internet]. Freesound.org.Available from: https://freesound.org/

Sound classification with YAMNet  |  TensorFlow Hub [Internet]. TensorFlow. 2021. Available from: https://www.tensorflow.org/hub/tutorials/yamnet

More by Knowles Corporation

As a market leader and global supplier of advanced micro-acoustic microphones and speakers, audio processing, and specialty component solutions, serving the mobile consumer electronics, communications, medical, military, aerospace, and industrial markets, Knowles has achieved excellence for nearly 7...

Wevolver 2023