WorksComputer Science
What Do Sound Event Embeddings Reveal? Auditing Speaker Leakage in Audio Representations
Abstract
Pretrained audio embeddings are increasingly used as intermediate representations for sound event detection (SED) and other always-on acoustic sensing tasks. While these representations are selected for their utility on downstream tasks, they may also retain sensitive information unrelated to their intended purpose, creating privacy risks even when raw audio is not exposed. In this work, we present an empirical framework for auditing privacy leakage from pretrained audio embeddings using two complementary approaches. First, we quantify representation-level leakage by measuring statistical dependence between an audio embedding and a representation specialized for encoding sensitive information. Second, we measure attack-level leakage by training lightweight adversarial probes to recover sensitive attributes directly from the embedding. We apply this framework to four widely used audio representations (CLAP, PANNs, AST, and YAMNet) and evaluate leakage of speaker identity and gender. We found that speaker identification balanced accuracy ranges from to , while gender information is also strongly recoverable. Moreover, representation-level and attack-based measurements exhibit consistent trends, with CLAP leaking the most and YAMNet leaking the lest speaker identity. These results demonstrate that intermediate audio representations are not inherently privacy-preserving interfaces and motivate privacy leakage as an explicit criterion, alongside downstream utility, when selecting representations for acoustic sensing systems.
Introduction
Audio sensing is increasingly used in smart speakers, wearables, and other always-on devices to recognize environmental sounds such as alarms, glass breaking, coughing, and other acoustic events [1, 13] (Chhaglani et al. 2024). Rather than operating directly on raw audio, modern sound event detection (SED) systems often rely on pretrained audio encoders that transform an input signal into an intermediate representation , which is then sent to cloud and used for a downstream task as shown in Figure 1. Models such as CLAP [9], PANNs [15], AST [11], and YAMNet [16] provide general-purpose representations that make it easier to build such systems without training an audio encoder from scratch. They have been shown to be effective for various applications. For example, YAMNet has been used for cardiovascular disease classification [2], speech emotion recognition [3], COVID detection [21], and identifying parkinsonian speech [23]. Similarly, CLAP has been used for heart rate estimation and auscultation [18], and SED [9] (including emergency sounds).

Figure 1. Audio embeddings used for SED on smart speakers
However, although these embeddings are intended to capture information useful for acoustic understanding, they are computed from the entire acoustic signal and may also encode information unrelated to the intended tasks. When speech occurs in the environment, this can include sensitive information about the people being recorded, even when the raw audio itself is never exposed [24, 5, 4] (Chhaglani, Gummeson, and Shenoy 2024). This raises a fundamental question for privacy-aware audio sensing: how do we know whether an audio embedding is leaking private information?
Ideally, a representation should retain information about its intended task(s) while discarding information about a sensitive attribute(s) , i.e., . Yet audio embeddings are typically selected based on downstream utility, with considerably less attention to what unintended information remains encoded in . Consequently, two embeddings that provide similar functionality may expose very different amounts of information about the user. This is particularly important for intermediate representations that are stored, transmitted, or made accessible to downstream applications under the assumption that they are safer than raw audio.
In this work, we investigate this question by auditing speaker privacy in commonly used audio embeddings. We study four commonly used pretrained audio representations, CLAP, PANNs, AST, and YAMNet - using two complementary measures of leakage. First, we introduce a representation-level measure that asks how much information in an audio embedding overlaps with a representation explicitly designed to encode speaker identity. We extract ECAPA-TDNN [12] speaker embeddings from the same audio and measure statistical dependence between the two representation spaces using canonical correlation analysis (CCA) and mutual-information (MI) estimation. Second, we perform an attack-level evaluation in which an adversary receives only the audio embedding and trains a lightweight classifier to infer sensitive attributes. We consider speaker identification and gender inference, providing an operational measure of whether information retained in an embedding can actually be exploited.
We evaluate these approaches using the Common Voice dataset spanning five speakers (three male and two female). Our results reveal substantial and consistent differences across audio embeddings. For speaker identification with only 2 seconds of enrollment audio per speaker, balanced accuracy ranges from 0.43 for YAMNet to 0.72 for CLAP. Our representation-level analysis shows the same overall pattern: CLAP exhibits the greatest dependence on speaker-specialized representations, while YAMNet exhibits the least. Gender information is also recoverable across the evaluated representations, with CLAP exhibiting the strongest leakage.
Our findings highlight an overlooked dimension in selecting audio representations for privacy-sensitive sensing systems. Intermediate embeddings should not be assumed to be privacy-preserving simply because raw audio is discarded: representations optimized for acoustic utility can retain substantial information about the people present in the signal. More broadly, our results motivate evaluating audio embeddings along two dimensions: utility for the intended task and leakage of sensitive information and treating privacy as an explicit model-selection criterion. Such auditing can help developers identify representations that preserve the functionality required by an application while minimizing unnecessary exposure of user information.
Background
Privacy in audio sensing can be examined at different levels of the processing pipeline: signal-level, feature-level, and model-level privacy. Signal-level privacy. Signal-level approaches aim to suppress sensitive information directly in the audio signal while preserving information useful for acoustic sensing. This includes technique like low-pass filtering [20, 14], subsampling [17], removing likely speech segments [4], etc. For example, Kirigami [4] investigates speech-content leakage from signal-level privacy techniques.
Feature-level privacy. Feature-level approaches carefully extract features extracted from audio signals relevant to the task. For example, Symdetector [22] extract hand-crafted features from audio to detect cough and sneeze. FeatureSense [6] evaluates privacy (speaker) leakage and investigates the privacy-utility tradeoffs across low-level handcrafted acoustic features, demonstrating that features useful for sound classification may also retain sensitive information. Such analysis helps identify feature representations that balance downstream sensing utility with privacy. Model-level privacy. Model-level privacy techniques aim to ensure privacy at the ML model and prevent models from learning or exposing sensitive information while preserving their utility for intended tasks. Common approaches include differential privacy [19], adversarial learning, and privacy-preserving representation learning [10]. In contrast to methods that modify model training, our work audits the privacy of intermediate embeddings generated by existing pretrained audio encoders. Specifically, we evaluate whether these representations retain speaker identity and gender information that can be recovered by an adversary. Our work extends privacy auditing from raw audio and handcrafted features to intermediate neural representations.
Challenges in Privacy Evaluation. Evaluating privacy leakage remains challenging because sensitive information may persist in audio representations even when it is not directly observable. Consequently, subjective listening tests alone are insufficient, as information unintelligible to humans may still be recoverable by machine-learning models [20, 4]. Privacy risks also depend on the adversary’s capabilities, available training data, and the sensitive attributes being targeted (like speech, speaker or context). Moreover, statistical dependence does not necessarily indicate whether the information can be exploited in practice. These challenges motivate complementary evaluation approaches that measure both the information retained in a representation and its recoverability through adversarial attacks. Accordingly, our threat model assumes an adversary who has access to pretrained audio embeddings, but not the original audio, and attempts to infer speaker identity and attributes using machine-learning probes.
Problem Formulation
Consider an audio encoder that maps an input audio signal to an intermediate representation . The representation is exposed to a downstream application performing an intended task , such as sound event detection. However, may simultaneously retain information about sensitive attributes that are unnecessary for the intended task, such as speaker identity or gender. Conceptually, a privacy-preserving representation should maximize information relevant to the intended task while minimizing information about sensitive attributes: . We therefore consider an embedding to exhibit privacy leakage when sensitive information remains encoded in and can be detected or recovered despite being unrelated to the intended application. We evaluate such leakage from two complementary perspectives: representation-level dependence and attack-level recoverability.
Representation-Level Leakage
Our first approach measures whether an audio representation contains information associated with a sensitive attribute without explicitly training an attacker to predict that attribute. We use a pretrained ECAPA-TDNN speaker encoder to obtain a reference representation that is explicitly optimized for speaker discrimination. Given an audio embedding and the corresponding speaker embedding for the same utterance, we measure dependence between the two representation spaces.
Because the representations differ in dimensionality, we first standardize them and apply PCA, followed by canonical correlation analysis (CCA) to identify maximally correlated components. We then estimate mutual information between paired canonical components using a -nearest-neighbor estimator. Higher dependence indicates that retains more information aligned with . We use this as a representation-level indicator of speaker leakage rather than as a direct estimate of .
Attack-Level Leakage
Our second approach asks whether sensitive information encoded in can be exploited by an adversary. We assume an adversary has access to the intermediate embedding but not the original audio and trains a lightweight classifier to recover a sensitive attribute. From an information-theoretic perspective, sensitive-information leakage can be expressed as : the more observing reduces uncertainty about , the more sensitive information the representation reveals. Our attack-level evaluation operationalizes this notion by measuring how accurately an adversary can infer from .
We evaluate two sensitive attributes. For speaker identity, we train the adversary using fixed amount of enrollment audio and test whether it can identify the speaker of unseen utterances. For gender, we train a binary classifier from the frozen representations. We report balanced accuracy to account for class imbalance and repeat each experiment across multiple randomized splits.
Evaluation
Experimental Setup
Dataset. We evaluate privacy leakage using 100 two-second speech clips from Mozilla Common Voice, comprising five speakers (three male and two female). We use the same audio clips across all embeddings to enable a controlled comparison.
Audio embeddings. We evaluate four widely used pretrained audio representations: CLAP, PANNs, AST, and YAMNet. For each clip, we extract the corresponding frozen representation without fine-tuning the encoder. Where a model produces frame-level representations, we apply temporal mean pooling to obtain a fixed-dimensional embedding. The resulting embedding dimensions are 512 for CLAP, 2048 for PANNs, 768 for AST, and 1024 for YAMNet.
Sensitive representations and attacks. For representation-level speaker leakage, we use a pretrained ECAPA-TDNN speaker-recognition model to extract a speaker-specialized embedding from each clip and measure its dependence with each audio embedding. For attack-level leakage, we train a logistic regression probe on the frozen embeddings to predict speaker identity and gender. We report balanced accuracy and repeat experiments across multiple randomized splits. For speaker identification, we additionally vary the amount of enrollment audio available to the attacker to characterize how quickly speaker information becomes exploitable.
Implementation details. For representation-level leakage, we independently standardize the audio and ECAPA-TDNN embeddings using StandardScaler. We then apply PCA to retain 10 components from each representation, followed by CCA with five canonical components and a maximum of 2,000 iterations. We estimate mutual information between corresponding canonical components using the -nearest-neighbor estimator implemented in mutual_info_regression (). We report the mean MI across the five components. Statistical significance is assessed using 100 random permutations of the paired speaker embeddings.
Attack configuration. We train a logistic regression classifier on standardized, frozen audio embeddings using balanced class weights, L2 regularization, , and a maximum of 3,000 iterations. For speaker identification, we randomly reserve five clips per speaker for testing and select one additional clip per speaker for enrollment. We repeat this procedure 10 times using random seeds 42–51 and report the mean and standard deviation of balanced accuracy.
For gender inference, we use stratified random splits with 75% of clips for training and 25% for testing. We repeat the experiment over 20 randomized splits using seed 42 and report mean balanced accuracy and standard deviation. These splits are performed at the clip level and may include the same speakers in training and test sets. Therefore, the gender results measure attribute recoverability for the evaluated speakers rather than generalization to unseen speakers.
Privacy Leakage Across Audio Embeddings: Results
Representation-level speaker leakage. We first examine whether general-purpose audio embeddings retain information aligned with speaker identity. Table 1 reports the dependence between each audio representation and speaker-specialized ECAPA-TDNN embeddings. We observe clear differences across representations. CLAP exhibits the highest dependence, with a mean CCA of 0.733 and mean MI of 0.448, followed by PANNs (0.325), AST (0.276), and YAMNet (0.264) in terms of mean MI. These results indicate that representations designed for general acoustic understanding can retain substantial speaker-related information, with the amount of retained information varying across embedding models.
| Embedding | Mean CCA | Mean MI | Sum MI |
| CLAP | 0.733 | 0.448 | 2.242 |
| PANNs | 0.671 | 0.325 | 1.624 |
| AST | 0.647 | 0.276 | 1.379 |
| YAMNet | 0.646 | 0.264 | 1.319 |
Table 1. Representation-level speaker leakage measured by dependence with ECAPA-TDNN speaker embeddings. Higher values indicate greater dependence on speaker-specialized representations.
Speaker-identification attack. We next test whether the speaker information observed at the representation level is exploitable by an adversary. Figure 2 shows speaker-identification performance when the attacker is given only one 2-s enrollment clip per speaker. All four representations exceed the 0.20 chance level for five-way identification. CLAP enables the strongest attack, reaching 0.72 balanced accuracy with only 2 seconds of enrollment audio, followed by PANNs (0.52), AST (0.51), and YAMNet (0.43). The representation-level and attack-level measurements exhibit broadly consistent trends, with CLAP showing the highest and YAMNet the lowest speaker leakage. However, differences between intermediate models are small relative to the observed variability, and a larger-scale evaluation is needed to establish whether representation-level dependence reliably predicts attack performance.

Figure 2. Speaker-identification attack across audio embeddings. Error bars show standard deviation across repeated runs; the dashed line denotes chance performance (0.20).
Gender inference. Speaker identity is not the only sensitive information retained by these representations. Figure 3 shows gender inference from the same frozen embeddings. CLAP enables perfect classification in our evaluation (1.00 balanced accuracy), while AST, PANNs, and YAMNet achieve 0.88, 0.83, and 0.73, respectively, all above the 0.50 binary chance level. Together with the speaker-identification results, these findings show that audio embeddings intended for general acoustic tasks can expose multiple attributes of the individuals present in the audio, and that the degree of leakage varies substantially across representations. These differences suggest that embedding dimensionality alone does not explain privacy leakage. Pretraining objectives, architectures, and representation extraction strategies may contribute to the observed variation, although isolating their effects requires controlled experiments.

Figure 3. Gender inference from frozen audio embeddings. Error bars show standard deviation across repeated runs; the dashed line denotes chance performance (0.50).
Conclusion and Future Work
We presented an empirical framework for auditing privacy leakage in pretrained audio embeddings using complementary representation- and attack-level measurements. Our evaluation shows that representations intended for general acoustic understanding can retain substantial speaker-related information, enabling inference of speaker identity and gender even when raw audio is unavailable. Importantly, the representation-level and speaker-identification analyses show consistent trends across the evaluated embeddings, with CLAP exhibiting the highest and YAMNet the lowest speaker leakage in our experiments. These findings highlight that intermediate audio representations should not be assumed to be privacy-preserving and motivate privacy leakage as an explicit criterion when selecting embeddings for audio sensing systems. Our study is an initial audit over a small set of speakers and representations. Future work will evaluate larger and more diverse speaker populations, additional sensitive attributes such as speech content, and a more audio encoders. We also plan to jointly characterize downstream SED utility and sensitive-information leakage, enabling analysis of the privacy-utility trade-offs of audio representations.
References
- [1]Amazon Staff. 2024. Everything you need to know about Alexa Emergency Assist, an Amazon service that can keep you and your family safe. About Amazon. Accessed November 19, 2026.
- [2]Barnawi, S. A. A. 2023. Evaluation of Pre-Trained CNN Models for Cardiovascular Disease Classification: A Benchmark Study. Information Sciences Letters, 12(7): 3317–38.DOI
- [3]Boateng, G.; and Kowatsch, T. 2020. Speech emotion recognition among elderly individuals using multimodal fusion and transfer learning. In Companion publication of the 2020 international conference on multimodal interaction, 12–16.DOI
- [4]Boovaraghavan, S.; Zhou, H.; Goel, M.; and Agarwal, Y. 2024. Kirigami: Lightweight speech filtering for privacy-preserving activity recognition using audio. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, 8(1): 1–28.DOI
- [5]Chen, F.; Adcock, J.; and Krishnagiri, S. 2008. Audio privacy: reducing speech intelligibility while preserving environmental sounds. In Proceedings of the 16th ACM international conference on Multimedia, 733–736.DOI
- [6]Chhaglani, B.; Gomasta, S. S.; Agarwal, Y.; Gummeson, J.; and Shenoy, P. 2025. FeatureSense: Protecting Speaker Attributes in Always-On Audio Sensing System. arXiv preprint arXiv:2505.24115.arxiv.org/abs/2505.24115
- [9]Elizalde, B.; Deshmukh, S.; Al Ismail, M.; and Wang, H. 2023. Clap learning audio concepts from natural language supervision. In ICASSP 2023–2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 1–5. IEEE.arxiv.org/abs/2206.04769
- [10]Gharib, S.; Tran, M.; Luong, D.; Drossos, K.; and Virtanen, T. 2024. Adversarial representation learning for robust privacy preservation in audio. IEEE Open Journal of Signal Processing, 5: 294–302.DOI
- [11]Gong, Y.; Chung, Y.-A.; and Glass, J. 2021. Ast: Audio spectrogram transformer. arXiv preprint arXiv:2104.01778.arxiv.org/abs/2104.01778
- [12]Guo, J.; Zhu, J.; Lin, S.; and Shi, F. 2024. Ecapa-tdnn embeddings for speaker recognition. In 2024 5th International Seminar on Artificial Intelligence, Networking and Information Technology (AINIT), 1488–1491. IEEE.DOI
- [13]Heittola, T.; Mesaros, A.; Eronen, A.; and Virtanen, T. 2013. Context-dependent sound event detection. EURASIP Journal on audio, speech, and music processing, 2013(1): 1.DOI
- [14]Iravantchi, Y.; Ahuja, K.; Goel, M.; Harrison, C.; and Sample, A. 2021. Privacymic: Utilizing inaudible frequencies for privacy preserving daily activity recognition. In Proceedings of the 2021 CHI Conference on Human Factors in Computing Systems, 1–13.DOI
- [15]Kong, Q.; Cao, Y.; Iqbal, T.; Wang, Y.; Wang, W.; and Plumbley, M. D. 2020. Panns: Large-scale pretrained audio neural networks for audio pattern recognition. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 28: 2880–2894.arxiv.org/abs/1912.10211
- [16]Korkmaz, Y. 2025. Performance Analysis of YAMNet and VGGish Networks for Emotion Recognition from Audio Signals. European Journal of Technique (EJT), 15(2): 251–260.DOI
- [17]Mollyn, V.; Ahuja, K.; Verma, D.; Harrison, C.; and Goel, M. 2022. SAMoSA: Sensing activities with motion and subsampled audio. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, 6(3): 1–19.DOI
- [19]Paul, A. 2025. Secure and Privacy-Preserving Audio Processing Techniques.
- [20]Pohlhausen, J.; and Bitzer, J. 2025. Revisiting the Privacy of Low-Frequency Speech Signals: Exploring Resampling Methods, Evaluation Scenarios, and Speaker Characteristics. arXiv preprint arXiv:2508.02483.arxiv.org/abs/2508.02483
- [21]Sobahi, N.; Atila, O.; Deniz, E.; Sengur, A.; and Acharya, U. R. 2022. Explainable COVID-19 detection using fractal dimension and vision transformer with Grad-CAM on cough sounds. biocybernetics and biomedical engineering, 42(3): 1066–1080.DOI
- [23]Syed, Z. S.; Memon, S. A.; and Memon, A. L. 2020. Deep acoustic embeddings for identifying parkinsonian speech. International Journal of Advanced Computer Science and Applications, 11(10): 726–734.DOI
- [24]Williams, J.; Pizzi, K.; Das, S.; and Noé, P.-G. 2023. New challenges for content privacy in speech and audio. arXiv preprint arXiv:2301.08925.DOI