Decoding Negative Emotions in Moroccan Dialect: A Phonetic-Acoustic Perspective
Detection of Negative Emotion Using Acoustic Cues and Machine Learning Algorithms in Moroccan Dialect
This paper presents an experimental study on detecting negative emotions (anger and fear) versus a neutral state in the Moroccan Arabic dialect using acoustic cues. By extracting features like formants, fundamental frequency (F0), and intensity from a custom corpus of 108 speakers, the authors achieved a maximum recognition accuracy of 93% using Artificial Neural Networks (RN).
TL;DR
Researchers from Morocco have developed a focused approach to detect anger and fear in the Moroccan Arabic dialect. By analyzing specific words like "Safi" and "Maymkench," the study reveals that while fundamental frequency (F0) is a universal indicator, the "hidden" signals of emotion often reside in gender-specific formant shifts and phonetic explosions, achieving upwards of 93% accuracy with Neural Networks.
Context & Motivation: The Dialect Gap
Emotion recognition in speech (SER) is a cornerstone of modern Human-Computer Interaction (HCI). However, most SOTA models are trained on high-resource languages. The Moroccan dialect presents unique challenges due to its specific phonetic inventory and prosodic rhythm. The authors hypothesize that negative emotions—specifically Anger and Fear—manifest differently depending on the phonemes being pronounced and the gender of the speaker.
Methodology: Beyond the Pitch
The study utilized a corpus of 108 speakers (balanced by gender). Participants recorded two specific words chosen for their phonetic properties:
- "Safi" (Enough): High concentration of fricatives (/s/, /f/).
- "Maymkench" (Impossible): Contains the plosive consonant /k/.
Using Praat for signal processing and WEKA for machine learning, the team extracted:
- Prosodic Features: F0 (Pitch), Intensity, and Number of Pulses.
- Voice Quality: Jitter (frequency instability) and Shimmer (amplitude instability).
- Spectral Features: The first four formants (F1-F4), which represent vocal tract resonance.

Key Insights: Why Phonemes Matter
The research found that emotion isn't just "in the air"—it's tied to the mechanics of the mouth.
1. The F0 and Intensity Rule
Independently of gender or the word spoken, Anger consistently showed the highest F0 and Intensity, followed by Fear, then Neutral. This confirms the "Arousal" theory where high-energy emotions trigger physiological tension, raising pitch.
2. The Formant Shift (F2 vs. F3)
This is the paper's most intriguing find. The effect of emotion on the vocal tract resonance (formants) changed based on gender:
- Females: The 2nd Formant (F2) was the primary differentiator, especially for the plosive-heavy "Maymkench."
- Males: The 3rd Formant (F3) carried the emotional signal.
The authors attribute this to the physical differences in vocal tract length and the specific "explosion" of air required for the Moroccan /k/ sound.

Results & Performance
Using Artificial Neural Networks (RN) and Support Vector Machines (SMO), the study achieved impressive recognition rates.
- Anger Recognition: Highest across all tests, likely due to its distinct high-energy acoustic profile.
- Fear Recognition: More elusive. Female speakers often had Fear confused with Neutral, possibly due to "simulated" fear in acting being less acoustically distinct than natural fear.
- Top Accuracy: 93% for males speaking "Maymkench."

Critical Analysis & Takeaways
The study proves that feature selection must be context-aware. If you are building a voice assistant for the Moroccan market, a global F0 model isn't enough; you need to look at spectral peaks (F2/F3) during plosive segments to truly "hear" the user's frustration or fear.
Limitations:
- The data used was "imitated" emotion. Real-world spontaneous anger might yield different Jitter/Shimmer results.
- The sample size (108 speakers) is decent for traditional ML but small for modern Deep Learning (End-to-End) approaches.
Future Outlook: Moving from manual segmentation in Praat to automatic feature extraction using wav2vec 2.0 or other self-supervised models could scale this research to broader regional dialects.
