Update README.md
Browse files
README.md
CHANGED
@@ -1,199 +1,83 @@
|
|
1 |
---
|
|
|
|
|
|
|
2 |
library_name: transformers
|
3 |
-
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
---
|
5 |
|
6 |
-
#
|
7 |
|
8 |
-
|
|
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
12 |
-
##
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
- **Developed by:** [More Information Needed]
|
21 |
-
- **Funded by [optional]:** [More Information Needed]
|
22 |
-
- **Shared by [optional]:** [More Information Needed]
|
23 |
-
- **Model type:** [More Information Needed]
|
24 |
-
- **Language(s) (NLP):** [More Information Needed]
|
25 |
-
- **License:** [More Information Needed]
|
26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
27 |
-
|
28 |
-
### Model Sources [optional]
|
29 |
-
|
30 |
-
<!-- Provide the basic links for the model. -->
|
31 |
-
|
32 |
-
- **Repository:** [More Information Needed]
|
33 |
-
- **Paper [optional]:** [More Information Needed]
|
34 |
-
- **Demo [optional]:** [More Information Needed]
|
35 |
-
|
36 |
-
## Uses
|
37 |
-
|
38 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
39 |
-
|
40 |
-
### Direct Use
|
41 |
-
|
42 |
-
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
43 |
-
|
44 |
-
[More Information Needed]
|
45 |
-
|
46 |
-
### Downstream Use [optional]
|
47 |
-
|
48 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
49 |
-
|
50 |
-
[More Information Needed]
|
51 |
-
|
52 |
-
### Out-of-Scope Use
|
53 |
-
|
54 |
-
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
55 |
-
|
56 |
-
[More Information Needed]
|
57 |
-
|
58 |
-
## Bias, Risks, and Limitations
|
59 |
-
|
60 |
-
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
61 |
-
|
62 |
-
[More Information Needed]
|
63 |
-
|
64 |
-
### Recommendations
|
65 |
-
|
66 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
67 |
-
|
68 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
69 |
-
|
70 |
-
## How to Get Started with the Model
|
71 |
-
|
72 |
-
Use the code below to get started with the model.
|
73 |
-
|
74 |
-
[More Information Needed]
|
75 |
-
|
76 |
-
## Training Details
|
77 |
-
|
78 |
-
### Training Data
|
79 |
-
|
80 |
-
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
81 |
-
|
82 |
-
[More Information Needed]
|
83 |
-
|
84 |
-
### Training Procedure
|
85 |
-
|
86 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
87 |
-
|
88 |
-
#### Preprocessing [optional]
|
89 |
-
|
90 |
-
[More Information Needed]
|
91 |
-
|
92 |
-
|
93 |
-
#### Training Hyperparameters
|
94 |
-
|
95 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
96 |
-
|
97 |
-
#### Speeds, Sizes, Times [optional]
|
98 |
-
|
99 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
100 |
-
|
101 |
-
[More Information Needed]
|
102 |
|
103 |
## Evaluation
|
104 |
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
- **Compute Region:** [More Information Needed]
|
151 |
-
- **Carbon Emitted:** [More Information Needed]
|
152 |
-
|
153 |
-
## Technical Specifications [optional]
|
154 |
-
|
155 |
-
### Model Architecture and Objective
|
156 |
-
|
157 |
-
[More Information Needed]
|
158 |
-
|
159 |
-
### Compute Infrastructure
|
160 |
-
|
161 |
-
[More Information Needed]
|
162 |
-
|
163 |
-
#### Hardware
|
164 |
-
|
165 |
-
[More Information Needed]
|
166 |
-
|
167 |
-
#### Software
|
168 |
-
|
169 |
-
[More Information Needed]
|
170 |
-
|
171 |
-
## Citation [optional]
|
172 |
-
|
173 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
174 |
-
|
175 |
-
**BibTeX:**
|
176 |
-
|
177 |
-
[More Information Needed]
|
178 |
-
|
179 |
-
**APA:**
|
180 |
-
|
181 |
-
[More Information Needed]
|
182 |
-
|
183 |
-
## Glossary [optional]
|
184 |
-
|
185 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
186 |
-
|
187 |
-
[More Information Needed]
|
188 |
-
|
189 |
-
## More Information [optional]
|
190 |
-
|
191 |
-
[More Information Needed]
|
192 |
-
|
193 |
-
## Model Card Authors [optional]
|
194 |
-
|
195 |
-
[More Information Needed]
|
196 |
-
|
197 |
-
## Model Card Contact
|
198 |
-
|
199 |
-
[More Information Needed]
|
|
|
1 |
---
|
2 |
+
language:
|
3 |
+
- fr
|
4 |
+
license: apache-2.0
|
5 |
library_name: transformers
|
6 |
+
tags:
|
7 |
+
- emotion-recognition
|
8 |
+
- speech
|
9 |
+
- french
|
10 |
+
- classification
|
11 |
+
- audio
|
12 |
+
- emotion
|
13 |
+
- wav2vec2
|
14 |
+
metrics:
|
15 |
+
- f1
|
16 |
+
pipeline_tag: audio-classification
|
17 |
---
|
18 |
|
19 |
+
# Speech Emotion Recognition model for French conversation
|
20 |
|
21 |
+
This model is a simple 5-classes multilabel classifier trained on a proprietary dataset containing real life conversations in the French language.
|
22 |
+
The model is trained on a large number of speakers (>30) in a wide variety of contexts and environment with varying audio quality.
|
23 |
+
It has been developed within the frame of the R&D at La Javaness as part of a [Master Thesis project](https://odr.chalmers.se/server/api/core/bitstreams/5180e50c-cb17-4cb0-8abb-bbdcabeea6af/content) for developping a multi-task conversational analysis tool for real conversation.
|
24 |
|
25 |
+
The development of this model aims at reducing the accuracy gap between benchmark emotion classification models where audio are professionnaly recorded actors with highly stereotyped emotion expression and emotion expression in a _real life_ context. Hence, we developed this model to provide more convenient and usable solutions for emotion recognition in real life context (e.g. Call centers, interview analysis, etc.)
|
26 |
|
27 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/63bd79a1d7dea2e13e55083d/iD_8-jQPPf5QolRsYToWI.png" alt="model-architecture" width="400"/>
|
28 |
|
29 |
+
## Classes
|
30 |
|
31 |
+
The model is trained with 5-classes based on defined subspaces from Valence-Arousal emotion space. The number of classes has been reduced to 5 to improve overall performance while covering most of the conceptual Valence-Arousal space.
|
32 |
+
```python
|
33 |
+
['Pleased','Relaxed','Neutral','Sad','Tension']
|
34 |
+
```
|
35 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/63bd79a1d7dea2e13e55083d/JwuwrvmlbnQV0IZlkV2QT.png" alt="emotion-mapping" width="400"/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
## Evaluation
|
38 |
|
39 |
+
_Notes : This model aims at providing solution for emotion classification for real life conversation in French language. While performance of the model remains quite poor on usual benchmark English and French datasets. We observe that the performance on real conversations improves compare to models trained with benchmark datasets. In addition, one should acknowledge that emotion recognition in real context remains a highly data-centric problem and that our training dataset was quite small (~ 4 hours of content). Therefore, it is provided a proof-of-concept and we expect significant improvement in F1-scores with larger dataset (>10 hours)_
|
40 |
+
|
41 |
+
|
42 |
+
### Scores on our proprietary dataset and comparison with benchmark model
|
43 |
+
|
44 |
+
| | ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition | lajavaness/wav2vec2-lg-xlsr-fr-speech-emotion-recognition |
|
45 |
+
|---|---|---|
|
46 |
+
| F1-micro | 0.41 | 0.56 |
|
47 |
+
| F1-macro | 0.31 | 0.45 |
|
48 |
+
| | **F1-score by class** | |
|
49 |
+
| Pleased | 0.07 | 0.35 |
|
50 |
+
| Relaxed | 0.18 | 0.32 |
|
51 |
+
| Neutral | 0.65 | 0.72 |
|
52 |
+
| Sad | 0.21 | 0.27 |
|
53 |
+
| Tension | 0.43 | 0.56 |
|
54 |
+
|
55 |
+
### Scores on RAVDESS dataset
|
56 |
+
|
57 |
+
| **Class** | **F1-score** | **Support** |
|
58 |
+
|---|---|---|
|
59 |
+
| Pleased | 0.00 | 192 |
|
60 |
+
| Relaxed | 0.43 | 192 |
|
61 |
+
| Neutral | 0.33 | 96 |
|
62 |
+
| Sad | 0.17 | 192 |
|
63 |
+
| Tension | 0.76 | 192 |
|
64 |
+
|
65 |
+
|
66 |
+
## Citation
|
67 |
+
|
68 |
+
```latex
|
69 |
+
@article{baevski2020wav2vec,
|
70 |
+
title={wav2vec 2.0: A framework for self-supervised learning of speech representations},
|
71 |
+
author={Baevski, Alexei and Zhou, Yuhao and Mohamed, Abdelrahman and Auli, Michael},
|
72 |
+
journal={Advances in neural information processing systems},
|
73 |
+
volume={33},
|
74 |
+
pages={12449--12460},
|
75 |
+
year={2020}
|
76 |
+
}
|
77 |
+
|
78 |
+
@article{sintes2023multi,
|
79 |
+
title={Multi-task French speech analysis with deep learning Emotion recognition and speaker diarization models for end-to-end conversational analysis tool},
|
80 |
+
author={Sintes, Jules},
|
81 |
+
year={2023}
|
82 |
+
}
|
83 |
+
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|