Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,68 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
base_model:
|
| 6 |
+
- ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
Speech Emotion Recognition - 6-Class Classifier
|
| 11 |
+
|
| 12 |
+
This model is a fine-tuned version of ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition, specifically designed to classify emotions in English speech.
|
| 13 |
+
|
| 14 |
+
🧠 Emotion Classes
|
| 15 |
+
|
| 16 |
+
The model predicts one of the following six emotions:
|
| 17 |
+
|
| 18 |
+
Happy
|
| 19 |
+
|
| 20 |
+
Angry
|
| 21 |
+
|
| 22 |
+
Disgust
|
| 23 |
+
|
| 24 |
+
Fearful
|
| 25 |
+
|
| 26 |
+
Neutral
|
| 27 |
+
|
| 28 |
+
Sad
|
| 29 |
+
|
| 30 |
+
📊 Dataset
|
| 31 |
+
|
| 32 |
+
The model was trained on the Speech Emotion Recognition dataset from Kaggle:
|
| 33 |
+
🔗 https://www.kaggle.com/datasets/kevinignatiuswijaya/speech-emotion-recognition-dl
|
| 34 |
+
|
| 35 |
+
🎯 Accuracy
|
| 36 |
+
Achieved an accuracy of 84% on the test set.
|
| 37 |
+
|
| 38 |
+
🔧 Base Model
|
| 39 |
+
Fine-tuned from the pretrained model:
|
| 40 |
+
ehcalabres/wav2vec2-lg-xlsr-en-speech-emotion-recognition
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
# Load model and feature extractor
|
| 44 |
+
model = Wav2Vec2ForSequenceClassification.from_pretrained("your-username/your-model-name")
|
| 45 |
+
extractor = Wav2Vec2FeatureExtractor.from_pretrained("your-username/your-model-name")
|
| 46 |
+
|
| 47 |
+
# Create pipeline
|
| 48 |
+
classifier = pipeline("audio-classification", model=model, feature_extractor=extractor)
|
| 49 |
+
|
| 50 |
+
# Predict emotion
|
| 51 |
+
result = classifier("path/to/audio.wav")
|
| 52 |
+
print(result)
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
🧪 Applications
|
| 56 |
+
This model can be used for:
|
| 57 |
+
|
| 58 |
+
Emotion-aware virtual assistants
|
| 59 |
+
|
| 60 |
+
Mental health monitoring tools
|
| 61 |
+
|
| 62 |
+
Human-computer interaction research
|
| 63 |
+
|
| 64 |
+
Call center emotion analytics
|
| 65 |
+
|
| 66 |
+
📁 License
|
| 67 |
+
|
| 68 |
+
Ensure compliance with the licenses for both the Kaggle dataset and the pretrained model used.
|