This is a (further) fine-tuned variant of a Wav2Vec2 model for Speech Emotion Recognition in MSP. It is trained using a dataset comprising single sentences uttered in business calls,
which were labeled for flattery in a binary manner. The training set comprised 7167 sentences, 1878 sentences were used as development set. For more details, please
refer to the paper, especially Sections 2 for the dataset, 3.2.2 for the training procedure and 4.2 for the results. The checkpoint provided here was trained without further pruning the model.
It achieves Unweighed Average Recall (UAR) values of .8001 and .8084 on the development and test partition, respectively.
The following snippet illustrates the usage of the model.
python
1from transformers import AutoFeatureExtractor, Wav2Vec2ForSequenceClassification
2from torch import sigmoid
3import librosa
45# initialize model and tokenizer6checkpoint ="chrlukas/flattery_prediction_speech"7processor = AutoFeatureExtractor.from_pretrained(checkpoint)8model = Wav2Vec2ForSequenceClassification.from_pretrained(checkpoint)9model.eval()1011# predict flattery in a sentence12example_file ='example.wav'13# audio must be resampled to 16Hz14y, _ = librosa.load(test_file, sr=16000)15inp = processor(y, sampling_rate=16000, return_tensors='pt')16with torch.no_grad():17 logits = model(**inp).logits
18prediction = sigmoid(logits).item()19flattery = prediction >=0.520print(f'Flattery detected? {flattery}')
Bias, Risks, and Limitations
The model is trained on a highly-domain specific dataset sourced from earning calls, i.e., typically conversations between business analysts and CEOs of US-American companies. Hence, it can not be expected to generalize well to other
domains and contexts. Moreover, the majority of speakers (162/178) in the training dataset are male. However, we found this to have rather little impact on the model's performance for
held-out female speakers (cf. Section 4.4 in the paper)
Citation
@inproceedings{christ24_interspeech,
title = {{This Paper Had the Smartest Reviewers - Flattery Detection Utilising an Audio-Textual Transformer-Based Approach}},
author = {Lukas Christ and Shahin Amiriparian and Friederike Hawighorst and Ann-Kathrin Schill and Angelo Boutalikakis and Lorenz Graf-Vlachy and Andreas König and Björn Schuller},
year = {2024},
booktitle = {{Interspeech 2024}},
pages = {3530--3534},
doi = {10.21437/Interspeech.2024-87},
issn = {2958-1796},
}