Educational content in the form of a scientific draft that needs expert review before being adopted as an academic reference. No experimental result that was not actually run is shown here.
Definition
A family of convolutional networks pre-trained on AudioSet for audio pattern recognition, used directly or fine-tuned for audio classification and detection tasks.
Mathematical Idea
The model processes a mel spectrogram with convolutional blocks, then pools the frequency axis and pools the time axis with max and mean to move from a frame-level representation to a clip-level representation, and a sigmoid layer predicts the multiple labels. The clip representation is suitable for transfer to other tasks.
How It Works
Log-mel spectrogram
Convolutional blocks with decreasing resolution
Pool the frequency axis
Temporal pooling: max + mean
Linear layers and sigmoid
Transfer or fine-tune for the downstream task
Stages Diagram
Mel Spectrogram
CNN Blocks
Frequency/time pooling
Linear layer
Sigmoid
Equations
$$z=\max_t f_t+\frac1T\sum_t f_t$$
Temporal pooling combining max and mean.
$$\hat{y}=\sigma(Wz+b)$$
Independent multiple labels.
Advantages
Representations that transfer well across audio tasks
Well-known, effective convolutional architecture
Ready-to-use models
Limitations
Larger models may outperform it
Depends on the AudioSet domain
Long context is limited for convolution
Use Cases
Audio event classification
Temporal event detection
Extracting embeddings for downstream classifiers
Applied Example
On a clip of 100 frames and dimension 32, the pooling operation produces a vector of length 32 and then 5 independent probabilities (see the code).
Code Example
PythonImplemented and Tested
import numpy as np
rng = np.random.default_rng(0)
T, C, n_cls = 100, 32, 5
frame_feat = np.abs(rng.normal(size=(T, C))) # frame features after the convolutional part
clip = frame_feat.max(axis=0) + frame_feat.mean(axis=0) # temporal pooling: max + mean
W = rng.normal(size=(n_cls, C))*0.1; b = np.zeros(n_cls)
p = 1/(1+np.exp(-(W @ clip + b))) # independent probability per label
print(clip.shape, p.shape)
Assistant Professor of Artificial Intelligence and Deep Learning
University of Al-Qadisiyah
About
Researcher and academic specialising in artificial intelligence (AI), deep learning, computer vision and natural language processing (NLP). The “Deep Learning in Arabic” project aims to enrich Arabic scientific and technical content with sound, free references and software for researchers and learners across the Arab world.
Smart Audio Assistant
I am the lab's Audio Assistant. Ask me about an algorithm, model, dataset, or experiment, and I will answer from the lab's content with links.
Smart Audio Assistant
Local mode: the lab's database
It answers from the lab's database only, without sending your question to any external party. Conversations and audio are not saved.
Smart assistant
Answers from the site’s content
The assistant can make mistakes, so check the attached sources.
Welcome! I am Dr. Alaa Taima, and this is my smart assistant on “Deep Learning in Arabic”. Ask it about any term or topic in artificial intelligence, and it will answer from the site's content with links to the sources.
DL Bot
Your smart assistant · Connecting…
Enter to send · Shift + Enter for a new line · The assistant can make mistakes, so check the sources.