Real-time Speech Emotion Recognition of Spoken Algerian Arabic Dialect using Deep Learning and Mobile Deployment
| dc.contributor.author | SEFIANE , Ghaith | |
| dc.contributor.author | BELAMRI , Mounib | |
| dc.contributor.author | HAMDI , Skander Supervisor | |
| dc.date.accessioned | 2026-11-05T13:27:13Z | |
| dc.date.issued | 2026 | |
| dc.description | يُتحدَّث اللهجة العربية الجزائرية من قِبَل أكثر من 44 مليون نسمة، ومع ذلك فإنها ما تزال غائبة إلى حدٍّ كبير عن أبحاث التعرّف على المشاعر في الكلام. يقدّم هذا العمل خطًّا متكاملًا للتعرّف على المشاعر في الكلام باللهجة الجزائرية المنطوقة في الزمن الحقيقي، حيث تُصنَّف العبارات الصوتية إلى أربع فئات: الغضب، الفرح، الحياد، والحزن، انطلاقًا من الصوت الخام مباشرة. بُنيت شبكة عصبية تلافية (سي إن إن) على ميزات إم إف سي سي ثلاثية القنوات (ثابتة، دلتا، دلتا-دلتا) باستخدام مُجمّع مُوسَّع مُوسَّم يضم 2402 تسجيلًا، بأدوات بايثون، وتينسرفلو، وليبروسا، وفلاتر. تحسّنت دقة الاختبار عبر أربع مراحل: سي إن إن أساسية (70.95%)، وسي إن إن متبقية مع انتباه سكويز آند إكسايتيشن وتكبير بيانات التدريب فقط (86.72%)، ومجموعة من خمس نماذج (88.80%)، ثم تقطير المعرفة نحو نموذج طالب مُدمج (91.29%، ودرجة إف 1 كلية قدرها 0.8938). حُوّل النموذج المُقطَّر إلى تينسرفلو لايت بصيغة إنت 8 (4.1 ميغابايت، و28 مللي ثانية لكل نافذة). يُشغّل تطبيق فلاتر سلسلة مُعالجة مسبقة واستدلالًا على الجهاز دون اتصال، بزمن استجابة من طرف إلى طرف يقارب 120 مللي ثانية على هاتف أندرويد متوسط المواصفات. وعلى حدّ علمنا، يُعدّ هذا أوّل نظام مُنشَر للتعرّف على المشاعر في الكلام باللهجة الجزائرية في الزمن الحقيقي على عتاد محمول. وبمساهمة تكميلية، أُجريت تجربة موسّعة على الخادم باستخدام نموذج ويف تو فيك 2 الكبير متعدد اللغات المُخصَّص للهجة الجزائرية نفسها. وقد دُرِّب هذا النموذج ذاتيًا مسبقًا على 56 ألف ساعة من الكلام متعدد اللغات، بما في ذلك العربية، واستُخدم معه وزن عكسي لتكرار الفئات وتعزيز يدوي بمقدار 2.5 مرة لفئة الفرح، وهي الفئة الأقل تمثيلًا. بلغت دقة الاختبار 94.61% (ودقة التحقق 95.42%)، متفوقة على خط سي إن إن الأساسي بفارق 3.32 نقطة مئوية، كما ارتفع استرجاع فئة الفرح من 79.17% إلى 87.50%. ويُقدَّم النموذج عبر واجهة فاست إيه بي آي ويُدمَج في تطبيق فلاتر كوضع استدلال اختياري عند توفر الاتصال بالشبكة. الكلمات المفتاحية: التعرّف على المشاعر في الكلام، اللهجة العربية الجزائرية، شبكة عصبية تلافية متبقية، انتباه سكويز آند إكسايتيشن، إم إف سي سي، ميزات دلتا، تكبير البيانات، التعلم بالمجموعات، تقطير المعرفة، تينسرفلو لايت، فلاتر، الاستدلال في الزمن الحقيقي، معالجة الكلام منخفضة الموارد | |
| dc.description.abstract | Algerian Arabic is spoken by over 44 million people yet remains largely absent from speech emotion recognition research. This work presents a complete real-time Speech Emotion Recognition (SER) pipeline for spoken Algerian Arabic dialect, classifying utterances into angry, happy, neutral, and sad directly from raw audio. A CNN trained on three-channel MFCC features (static, delta, delta-delta) was built on a labeled corpus of 2,402 recordings using Python, TensorFlow, Librosa, and Flutter. Test accuracy improved through four stages: baseline CNN (70.95%), residual CNN with SE attention and training-only augmentation (86.72%), a five-model ensemble (88.80%), and knowledge distillation to a compact student (91.29%, macro F1 0.8938). The dis-tilled model was converted to INT8 TensorFlow Lite (4.1 MB, 28 ms per window). A Flutter application runs chained on-device preprocessing and inference fully offline, with end-to-end latency of approximately 120 ms on a mid-range Android device. To our knowledge, this is the first published end-to-end real-time Algerian dialect SER system deployed on mobile hardware. As a complementary contribution, a server-side extended experiment was conducted using a fine-tuned facebook/wav2vec2-large-xlsr-53 model, a self-supervised speech representation pretrained on 53 languages including Arabic. Fine-tuned on the same Algerian dialect dataset with inverse-frequency class weighting and a 2.5× manual boost for the minority happy class, the wav2vec2 model achieved a test accuracy of 94.61% (validation accuracy: 95.42%), outperforming the CNN pipeline by 3.32 percentage points overall and raising happy class recall from 79.17% to 87.50%. The model is served through a FastAPI endpoint and integrated into the Flutter application as an optional online inference mode, complementing the on-device CNN with a higher-accuracy cloud-based alternative when network connectivity is available | |
| dc.description.sponsorship | Le dialecte arabe algérien, parlé par plus de 44 millions de personnes, reste largement absent de la recherche en reconnaissance des émotions dans la parole. Ce mémoire présente un pipeline complet de reconnaissance en temps réel pour la parole en dialecte algérien, classifiant les énoncés en colère, joie, neutralité et tristesse à partir de l’audio brut. Un CNN entraîné sur des caractéristiques MFCC à trois canaux (MFCC, delta, delta-delta) a été développé sur un corpus de 2 402 enregistrements annotés à l’aide de Python, TensorFlow, Librosa et Flutter. La précision progresse en quatre étapes : CNN de référence (70,95 %), CNN résiduel avec attention SE et augmentation (86,72 %), ensemble de cinq modèles (88,80 %), puis distillation vers un étudiant compact (91,29 %, F1 macro 0,8938). Le modèle distillé est converti en TensorFlow Lite INT8 (4,1 Mo, 28 ms par fenêtre). Une application Flut-ter exécute le prétraitement et l’inférence sur appareil via deux interpréteurs TFLite en chaîne, entièrement hors ligne, avec une latence de bout en bout d’environ 120 ms sur un appareil Android milieu de gamme. À notre connaissance, il s’agit de la première démonstration publiée d’un système SER algérien en temps réel déployé sur mobile. À titre de contribution complémentaire, une expérience étendue côté serveur a été menée en utilisant un modèle facebook/wav2vec2-large-xlsr-53 affiné sur le même corpus de dialecte algérien. Le modèle wav2vec2, préentraîné sur 56 000 heures de parole multilingue incluant l’arabe, a été affiné avec une pondération inverse des fréquences de classe et un boost manuel de 2,5× appliqué à la classe joie — la classe minoritaire la plus difficile. Le modèle a atteint une précision de test de 94,61 % (précision de validation : 95,42 %), surpassant le pipeline CNN de 3,32 points de pourcentage et portant le rappel de la classe joie de 79,17 % à 87,50 %. Le modèle est servi via un point d’accès FastAPI local et intégré dans l’application Flutter en tant que mode d’inférence en ligne optionnel, activé automatiquement lorsque la connexion réseau est disponible et sélectionné par l’utilisateur via un interrupteur à bascule | |
| dc.identifier.other | MAI/1076 | |
| dc.identifier.uri | https://repository.univ-setif.dz/handle/123456789/3942 | |
| dc.language.iso | en | |
| dc.publisher | Unuversity Setif 1 Ferhat Abbas . Faculty of Sciences | |
| dc.subject | Speech emotion recognition | |
| dc.subject | Algerian Arabic dialect | |
| dc.subject | Residual convolutional neural network | |
| dc.subject | Squeeze-and-excitation attention | |
| dc.subject | MFCC | |
| dc.subject | Delta features | |
| dc.subject | data augmenta-tion | |
| dc.subject | Ensemble learning | |
| dc.subject | knowledge distillation | |
| dc.subject | TensorFlow Lite | |
| dc.subject | Flutter | |
| dc.subject | Real-time infer-ence | |
| dc.subject | Low-resource speech | |
| dc.title | Real-time Speech Emotion Recognition of Spoken Algerian Arabic Dialect using Deep Learning and Mobile Deployment | |
| dc.type | Thesis |
