Аудио AI РЪКОВОДСТВО

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

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.

Чуйте това ръководствоAI-разказан · ~8 min

На тази страница9 минути четене
  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

Продължете да изследвате

Безплатен бюлетин

Получавайте дневния AI бюлетин

Три проверени AI истории всяка делнична сутрин, написани на достъпен език. Безплатно завинаги, без реклами.

Един имейл всеки делничен ден. Отписване с едно кликване. Никога не продаваме и не споделяме вашия имейл адрес.

Тествайте себе си

Take the Acoustic Scene Classification quiz

Незабавна обратна връзка за всеки отговор и сертификат за споделяне с подлежащ на проверка идентификационен номер, след като преминете курс.

Стартирай теста

Подкрепете безплатното AI образование. AI Understanding е 501(c)(3) с нестопанска цел — без реклами, без платен достъп, никога. Направете дарение

Често задавани въпроси

Какво е класификация на акустичната сцена?

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 моделите?

Подобно на голяма част от аудио AI, ASC преобразува клипове в log-mel спектрограми, които CNN или трансформатори могат да обработват.

Защо ASC моделите обединяват функции за много секунди, а не за отделни моменти?

Идентичността на една сцена идва от нейната цялостна текстура и атмосфера във времето, така че моделите събират информация за целия клип.

Кое изследователско предизвикателство е довело до голяма част от напредъка в ASC?

Годишното предизвикателство DCASE (Откриване и класифициране на акустични сцени и събития) е централния показател, който тласка ASC напред.

Продължавай да учиш

Свързани ръководства

Още ръководства, избрани за тази тема

Получете безплатен AI сертификатКратък безплатен курс и изпит. Без разходи, без карта. Около 2,5 часа.Започнете безплатно →