You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Joint WavLM + HuBERT Emotion Recognition Model

Model Description

This model combines WavLM and HuBERT for audio emotion recognition. It uses partial fine-tuning of the top layers from both models and a joint classification head to predict emotions from speech audio.

Model Details

  • Architecture: Joint WavLM + HuBERT Partial Fine-tuner
  • Base Models:
    • WavLM: microsoft/wavlm-base-plus
    • HuBERT: facebook/hubert-base-ls960
  • Task: Audio Emotion Recognition
  • Number of Classes: 5
  • Emotions: Angry, Happy, Neutral, Sad, Surprise
  • Fine-tuned Layers: Top 4 layers from each model

Performance

  • Test Accuracy: 78.26%
  • Validation Accuracy: 89.37%
  • Test Macro F1: 75.93%

Usage

from transformers import AutoModel, AutoConfig
import torch
import librosa

# Load model and config
config = AutoConfig.from_pretrained("your-username/audio-emotion-wavhub")
model = AutoModel.from_pretrained("your-username/audio-emotion-wavhub")

# Load and preprocess audio
audio, sr = librosa.load("path/to/audio.wav", sr=16000)

# Predict emotion
result = model.predict_emotion(audio)
print(f"Emotion: {result['emotion']}")
print(f"Confidence: {result['confidence']:.3f}")

Model Architecture

The model consists of:

  1. WavLM Encoder: Extracts contextualized audio features
  2. HuBERT Encoder: Extracts discrete speech unit features
  3. Fusion Layer: Combines features from both encoders
  4. Classification Head: Maps joint features to emotion classes

Training Details

  • Partial Fine-tuning: Only the top 4 layers of each encoder are fine-tuned
  • Joint Hidden Size: 1536 (concatenated WavLM + HuBERT features)
  • Trainable Parameters: 57,889,365
  • Total Parameters: 189,937,909

Limitations

  • Trained on specific emotion categories
  • Performance may vary with different audio qualities or languages
  • Requires 16kHz audio input

Citation

If you use this model, please cite:

@misc{joint-wavlm-hubert-emotion,
  title={Joint WavLM + HuBERT Emotion Recognition Model},
  author={Nomeda},
  year={2025},
  url={https://huggingface.co/your-username/audio-emotion-wavhub}
}
Downloads last month
-
Safetensors
Model size
0.2B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support