Private Speech Classification with Secure Multiparty Computation

Kyle Bittner, Martine De Cock, Rafael Dowsley · DOI

Abstract

Deep learning in audio signal processing, such as human voice audio signal classification, is a rich application area of machine learning. Legitimate use cases include voice authentication, gunfire detection, and emotion recognition. While there are clear advantages to automated human speech classification, application developers can gain knowledge beyond the professed scope from unprotected audio signal processing. In this paper we propose the first privacy-preserving solution for deep learning-based audio classification that is provably secure. Our approach, which is based on Secure Multiparty Computation, allows to classify a speech signal of one party (Alice) with a deep neural network of another party (Bob) without Bob ever seeing Alice's speech signal in an unencrypted manner. As threat models, we consider both passive security, i.e. with semi-honest parties who follow the instructions of the cryptographic protocols, as well as active security, i.e. with malicious parties who deviate from the protocols. We evaluate the efficiency-security-accuracy trade-off of the proposed solution in a use case for privacy-preserving emotion detection from speech with a convolutional neural network. In the semi-honest case we can classify a speech signal in under 0.3 sec; in the malicious case it takes ~1.6 sec. In both cases there is no leakage of information, and we achieve classification accuracies that are the same as when computations are done on unencrypted data.

Introduction

Speech data is inherently sensitive. Beyond the semantic content of spoken words, audio signals contain "biometric breadcrumbs" that can reveal a user's age, gender, health status, and emotional state. While services like voice authentication or emotion-aware AI provide significant utility, they currently necessitate the transmission of raw audio to a server, posing substantial privacy risks. Conversely, companies invest heavily in training proprietary machine learning models and are reluctant to deploy them on user devices where they could be reverse-engineered or stolen.

This research addresses a fundamental challenge: How can Alice have her speech classified by Bob’s model without Alice sharing her audio or Bob sharing his model? We present the first provably secure, deep learning-based solution for private speech classification using Secure Multiparty Computation (MPC).

Methodology and System Architecture

The proposed system bridges the gap between privacy and utility by combining 1D Convolutional Neural Networks (CNNs) with an MPC framework.

Overview of the private speech classification workflow using Secure Multiparty Computation (MPC).

1D CNNs and Quantization

While most audio processing tasks utilize 2D CNNs on spectrograms, this work advocates for 1D CNNs. 1D architectures are more compact and computationally efficient, which is critical in an MPC setting where every operation incurs significant overhead. To further optimize for MPC, the researchers employed 8-bit integer quantization. Since MPC frameworks struggle with floating-point arithmetic, converting the model to 8-bit integers significantly boosts execution speed with minimal impact on accuracy.

Secure Multiparty Computation (MPC)

The system utilizes the MP-SPDZ framework to perform computations on "secret shares." Data is partitioned into pieces such that no single piece reveals information about the original value, yet they can be mathematically manipulated to produce the correct result. The study evaluates two security models:

  • Passive Security (Semi-honest): Parties follow the protocol but may attempt to learn information from their shares.
  • Active Security (Malicious): Protects against parties who may intentionally deviate from the protocol to compromise data.

Experimental Setup

The approach was evaluated using the RAVDESS (Ryerson Audio-Visual Database of Emotional Speech and Song) benchmark, involving 1,440 audio files for an 8-way emotion classification task. Audio was preprocessed into 40-dimensional Mel-frequency cepstral coefficient (MFCC) feature vectors.

Key Results and Insights

The proposed system demonstrates that privacy-preserving speech classification can achieve real-time performance without sacrificing accuracy.

  • Accuracy: The quantized private model achieved an accuracy of 70.32%, matching the performance of the baseline model running on unencrypted data.
  • Latency: In a 3-party computation (3PC) setup, a 3.5-second audio clip was classified in 0.15 to 0.26 seconds under passive security. Even under active security, classification took approximately 1.6 seconds, maintaining a real-time factor of 0.46.
  • Computational Efficiency: The transition to 1D CNNs was pivotal, achieving runtimes an order of magnitude faster than previous image-based MPC classification attempts. Furthermore, 3PC was found to be 16x to 29x faster than 2-party computation (2PC) due to more efficient secret sharing protocols.

Limitations and Future Work

While MPC protects inputs and weights, the final classification label is revealed to the parties. Repeated queries could potentially allow for model inversion attacks. Future work will explore the integration of Differential Privacy (DP) to mitigate this risk. Additionally, the researchers suggest that custom MPC protocols for specific neural network layers (e.g., replacing division in average pooling with constant multiplication) could further reduce runtimes. Testing on more diverse, real-world datasets remains a priority for future validation.

Summary updated

BibTeX
@misc{bittner2020private,
  author = {Kyle Bittner and Martine De Cock and Rafael Dowsley},
  title = {{Private Speech Classification with Secure Multiparty Computation}},
  year = {2020},
  eprint = {2007.00253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.00253},
}
Figure