Аудіо AI GUIDE

Класифікація акустичних сцен

Acoustic scene classification (ASC) is the task of identifying the kind of place or situation a recording comes from, such as a bus, a park or a busy street, using sound alone.

Послухайте цей посібникШІ-розказаний · ~8 min

На цій сторінці9 min read
  1. Огляд
  2. Ключові висновки
  3. Глибоке занурення
  4. Training a small scene classifier on a public dataset
  5. Реалізація в реальному світі
  6. Майбутнє класифікації акустичних сцен
  7. Застосування на практиці
  8. Джерела та подальше читання
  9. Продовжуйте досліджувати
  10. Часті запитання

Огляд

It lets devices like hearing aids and phones adapt to their surroundings, and it has been benchmarked publicly through the DCASE challenges since the mid-2010s.

Ключові висновки

  1. Acoustic scene classification labels a whole recording with the environment it came from, such as a bus, a park or an office.
  2. Most modern systems convert audio to log-mel spectrograms and classify them with convolutional neural networks.
  3. In DCASE 2016, the best of 48 systems reached 89.7% accuracy on 15 scenes, against a 72.5% MFCC and GMM baseline in development tests.
  4. The DCASE 2024 task capped models at 128 kB of parameters and 30 million multiply-accumulates per second of audio to mimic small devices.
  5. Phonak's AutoSense OS uses scene classification in hearing aids to choose a listening program automatically from six sound classes.

Глибоке занурення

Acoustic scene classification (ASC) asks a computer to name the environment a recording was made in, such as a metro station, an office, a shopping mall or a park, from its sound alone. Barchiesi, Giannoulis, Stowell and Plumbley, in a 2015 review in IEEE Signal Processing Magazine, define it simply as classifying environments from the sounds they produce. It differs from sound event detection, which locates individual sounds like a door slam or a dog bark in time. A scene label describes the whole clip, so the model must summarize the overall texture of many overlapping sounds: traffic hum, footsteps, announcements, birdsong and reverberation.

A typical modern system works in four steps. First, the audio is cut into fixed-length clips, for example 1 second in the 2024 DCASE challenge or 30 seconds in the 2016 edition. Second, each clip is converted into a time-frequency picture, usually a log-mel spectrogram, which shows how much energy falls into perceptually spaced frequency bands over time. Third, a classifier, today usually a convolutional neural network (CNN) that scans the spectrogram like an image, produces a score for each scene class. Fourth, the highest score becomes the label, sometimes after averaging over several clips to smooth out brief misleading sounds.

Earlier systems used hand-built features. The benchmark method in the 2015 review, and the baseline in the DCASE 2016 challenge, computed mel-frequency cepstral coefficients (MFCCs), compact summaries of the spectrum's shape, and modeled each scene with a Gaussian mixture model (GMM), choosing the scene whose model gave the input the highest likelihood. In the challenge the review describes, only three submitted algorithms significantly outperformed that baseline, and the best one matched the median accuracy of human listeners. Some scene pairs confused both people and machines.

The field's main milestones track the DCASE (Detection and Classification of Acoustic Scenes and Events) challenges. The 2016 acoustic scene task used the TUT Acoustic Scenes 2016 dataset: 15 scenes including bus, cafe or restaurant, car, city center, forest path, grocery store, home, library, metro station, office and urban park, recorded with binaural in-ear microphones at 44.1 kHz and 24 bits and split into 30-second segments. Its MFCC and GMM baseline reached 72.5% accuracy in development cross-validation, and the best of 48 submitted systems reached 89.7% on the evaluation set. Later editions shifted toward real-world constraints. By 2024 the task used the TAU Urban Acoustic Scenes 2022 Mobile dataset, with 1-second clips from 3 real and 6 simulated recording devices in development, extra unseen devices in evaluation, a 128 kB limit on model size and a 30 million multiply-accumulate limit per second of audio. Teams also had to train on subsets as small as 5% of the data, and the baseline's accuracy ranged from 42.40% at 5% to 56.99% with all the data.

ASC sits beside several neighboring approaches. Sound event detection gives finer detail but needs time-stamped labels that are costly to produce. General audio taggers trained on large collections, such as the PANNs models trained on AudioSet, recognize hundreds of sound types and can be fine-tuned for scenes; the PANNs authors report a mean average precision of 0.439 on AudioSet tagging and transfer to acoustic scene classification among other tasks. Location data such as GPS can say where a device is but not whether it is in a quiet car or a noisy one, which is why hearing aids rely on sound. Phonak's AutoSense OS, for example, uses classical machine learning trained on audio labeled by audiology engineers to pick among six sound classes.

Hearing aids show how a scene label is used in practice. Sonova's fact sheet describes AutoSense OS as a combination of supervised and unsupervised learning, trained on its own media database, whose output selects the hearing program best suited to the current sound, with no input from the wearer. The fact sheet names the main risk plainly: the classifier may choose a program that is not the best one, though the wearer still receives amplification. That framing is typical of scene classification in products, where a wrong label degrades comfort or clarity rather than causing outright failure, so designers trade accuracy against power, memory and response time.

The hard problems are well known from the challenges. Device mismatch is the biggest: a model trained on one microphone performs worse on another, which is why DCASE evaluates on unseen devices. Scenes overlap, so a street with a tram passing may sound like a tram, and an indoor market may sound like a shopping mall. Short clips carry less evidence, and the 2024 baseline's accuracy below 57% on 1-second clips shows how hard the setting is. Class lists are arbitrary and culture-specific, since a metro station in Helsinki may not sound like one in Mumbai. Finally, recordings of public places can capture conversations, so collecting data raises privacy questions.

Deployment costs vary with the target. On a server, a large pretrained network can classify scenes cheaply. On a hearing aid or earbud, power and memory are tight, which is exactly what DCASE's complexity limits simulate: 128 kB holds only about 128,000 parameters in 8-bit integers, and the 2024 baseline used 61,148 parameters and about 29.4 million multiply-accumulates per inference. Training a competitive model needs labeled recordings from many places and devices; the 2024 development training split alone contained 139,620 one-second segments.

04Спрацьований приклад

Training a small scene classifier on a public dataset

  1. Download a public DCASE development set, such as TAU Urban Acoustic Scenes 2022 Mobile, and note which devices appear in its training and test splits.

  2. Convert every 1-second clip to a log-mel spectrogram, for example with 256 frequency bands to match the shape the DCASE 2024 baseline uses.

  3. Train a small convolutional network with a few convolution blocks, global average pooling and a 10-way softmax, using cross-entropy loss.

  4. Count parameters and multiply-accumulates and check them against the 128 kB and 30 million MAC limits used in DCASE 2024.

  5. Report macro-averaged accuracy on the test split, then separately for clips from devices that were never seen in training.

  6. Add Frequency-MixStyle and frequency masking, retrain, and compare the unseen-device accuracy.

Що це показує

The learner ends up with a compact scene classifier and two accuracy numbers, overall and on unseen devices. The gap between them shows device mismatch directly, and comparing against the published DCASE 2024 baseline of about 57% with full training data gives a sanity check.

Реалізація в реальному світі

Phonak's AutoSense OS classifier, built into Sonova hearing aids, sorts incoming sound into Speech in Quiet, Speech in Noise, In Car, Reverberant Speech, Noise and Music, and uses the result to choose a hearing program without any action from the wearer.

The DCASE 2024 challenge asked teams to classify 1-second clips into 10 urban scenes, such as airport, metro station and tram, with models capped at 128 kB of parameters and 30 million multiply-accumulates per second of audio.

The TUT Acoustic Scenes 2016 dataset, recorded with binaural microphones at 44.1 kHz in 15 environments from cafes to lakeside beaches, gave researchers a shared benchmark for comparing scene classifiers on 30-second segments.

Large pretrained audio networks such as PANNs, trained on Google's AudioSet, are fine-tuned for scene classification and other audio tasks, an approach the PANNs authors report reaching state-of-the-art results on several benchmarks.

Early benchmarking compared machines with people: Barchiesi and colleagues reported in 2015 that the best challenge system's mean accuracy matched the median accuracy of human listeners on the same scenes.

Майбутнє класифікації акустичних сцен

The DCASE challenge series shows the direction of the field: from 30-second binaural clips in 2016 to 1-second clips, unseen recording devices, tight memory and compute caps and small training subsets in 2024. These constraints mirror what hearing aids, earbuds and phones need, and the 2024 task explicitly measured how accuracy falls when only 5% of the training data is available. Large pretrained audio models are the other trend. PANNs (2019 to 2020) showed that networks trained on AudioSet transfer to scene classification and other tasks, and the DCASE 2024 rules explicitly allow pretrained models such as PaSST and EfficientAT as teachers for small students that fit device budgets. Whether general-purpose audio models will replace task-specific scene classifiers, or mainly serve as teachers for them, remains open. Open problems include robustness to new microphones and cities, label sets that reflect real users rather than one dataset's ten or fifteen classes, fair performance across regions, and privacy-preserving data collection and on-device processing. Manufacturer claims about product classifiers, such as those in hearing aids, are mostly published as white papers and fact sheets, and independent evaluations remain limited.

Застосування на практиці

Чому це важливо

  • Доступ і охоплення. Це покращує доступність завдяки транскрипції, дикторському тексту та голосовому інтерфейсу.
  • Вартість і бюджет. Медіа-команди можуть доставляти якісний аудіо швидше за менші бюджети.
  • Швидкість і масштаб. Системи, орієнтовані на клієнта, можуть обробляти голосову взаємодію у більшому масштабі.

Зверніть увагу на

  • Ризик неправильного використання голосу та видавання себе за іншу особу зростає, якщо згоди немає.
  • Точність може впасти через акценти, діалекти чи шумне середовище.
  • Синтетичне аудіо можна прийняти за автентичне мовлення без чіткого маркування.

Наступні кроки

  1. Отримайте чітку згоду на захоплення голосу, клонування та повторне використання.
  2. Перевірте якість на різних динаміках і фонових умовах.
  3. Визначте, коли людина повинна переглядати або затверджувати результати.
  4. Позначайте синтетичне аудіо та зберігайте записи про походження для підзвітності.

Джерела та подальше читання

  1. arXiv (IEEE Signal Processing Magazine, 2015)Acoustic Scene Classification: Classifying environments from the sounds they produce
  2. DCASE CommunityDCASE 2016 Task 1: Acoustic scene classification
  3. DCASE CommunityDCASE 2024 Task 1: Data-Efficient Low-Complexity Acoustic Scene Classification
  4. arXivPANNs: Large-Scale Pretrained Audio Neural Networks for Audio Pattern Recognition
  5. Sonova / PhonakML Fact Sheet: Sound Classifier AutoSense OS

Продовжуйте досліджувати

Безплатний розсилок

Отримуйте щоденне зведення новин про ШІ

Три перевірені історії про ШІ щоробочого ранку, написані простою мовою. Безплатно назавжди, без реклами.

Один лист щотижня з понеділка по п'ятницю. Відписатися в один клік. Ми ніколи не продаємо та не передаємо вашу адресу.

Перевір себе

Take the Acoustic Scene Classification quiz

Миттєва зворотна связь на кожну відповідь та сертифікат із перевіреним ідентифікатором, яким можна поділитися, після проходження курсу.

Розпочати вікторину

Підтримайте безплатну освіту у сфері ШІ. AI Understanding — це некомерційна організація 501(c)(3) — без реклами, без платних стін, назавжди. Зробіть пожертву

Часті запитання

What is Acoustic Scene Classification?

Acoustic scene classification (ASC) is the task of identifying the kind of place or situation a recording comes from, such as a bus, a park or a busy street, using sound alone. It lets devices like hearing aids and phones adapt to their surroundings, and it has been benchmarked publicly through the DCASE challenges since the mid-2010s.

Чим класифікація акустичних сцен відрізняється від виявлення звукових подій?

ASC позначає всю навколишню сцену (наприклад, «вулиця», «парк»), тоді як виявлення звукових подій виявляє окремі звуки, як-от сирена чи гавкіт.

Що таке проблема «невідповідності пристроїв» у ASC?

Різні мікрофони мають різні частотні характеристики, тому модель, навчена на одному пристрої, часто погіршує якість запису з іншого, що є ключовою проблемою ASC.

Яке вхідне представлення є стандартним для моделей ASC?

Як і більшість аудіо штучного інтелекту, ASC перетворює кліпи в спектрограми log-mel, які CNN або трансформатори можуть обробляти.

Чому моделі ASC об’єднують функції протягом багатьох секунд, а не окремих моментів?

Ідентичність сцени залежить від її загальної текстури та атмосфери з часом, тому моделі збирають інформацію про весь кліп.

Яка дослідницька проблема зумовила значний прогрес у ASC?

Щорічний конкурс DCASE (виявлення та класифікація акустичних сцен і подій) є центральним еталоном, який просуває ASC вперед.

Продовжуйте вчитися

Пов'язані посібники

Інші посібники, вибрані для цієї теми

Отримайте безкоштовний сертифікат зі ШІКороткий безкоштовний курс та іспит. Безкоштовно, без картки. Близько 2,5 години.Почати безкоштовно →