Real-Time Emotion Detection: A Comparative Study of traditional ML and advanced DL Models in Streamlit Application for Natural Language Processing

This paper provides a comparative analysis of emotion detection models, categorized into Machine Learning (ML) and Deep Learning (DL) approaches, with a focus on accuracy, loss, and execution time for real-time applications. In the ML category, Naïve Bayes (NB) and Support Vector Machine (SVM) models are evaluated. Naive Bayes achieves 69% accuracy with a loss of 0.93 and processes data in 0.02 seconds. Conversely, SVM, with 87% accuracy, has a much slower processing time of 274.57 seconds. The DL models considered include BERT, DistilBERT, and LSTM. BERT achieves 95% accuracy and a loss of 0.1061, but requires a long processing time of 1507.34 seconds. DistilBERT provides a good balance, achieving 96% accuracy and taking 778.91 seconds. LSTM, while less accurate at 92%, processes data more efficiently at 380.55 seconds. All models are implemented in a real-time emotion recognition system built with Streamlit. The study reveals a trade-off between speed and accuracy, with ML models providing faster predictions at lower accuracy, while DL models such as BERT and DistilBERT provide better accuracy at the expense of computational complexity. The paper discusses these trade-offs in dynamic, real-time environments and suggests optimization strategies, such as model quantization and the use of lightweight transform models, to improve both performance and efficiency.

Authors

Institutions

Publication Details

Published
2025-04-23
DOI
https://doi.org/10.1109/pais66004.2025.11126507
Primary Topic
Sentiment Analysis and Opinion Mining
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Real-Time Emotion Detection: A Comparative Study of traditional ML and advanced DL Models in Streamlit Application for Natural Language Processing

El‐Bay Bourennane, Kamel Messaoudi, Rania Boukhenoun
Sentiment Analysis and Opinion Mining
article

Real-Time Emotion Detection: A Comparative Study of traditional ML and advanced DL Models in Streamlit Application for Natural Language Processing

El‐Bay Bourennane, Kamel Messaoudi, Rania Boukhenoun
article en

Abstract

This paper provides a comparative analysis of emotion detection models, categorized into Machine Learning (ML) and Deep Learning (DL) approaches, with a focus on accuracy, loss, and execution time for real-time applications. In the ML category, Naïve Bayes (NB) and Support Vector Machine (SVM) models are evaluated. Naive Bayes achieves 69% accuracy with a loss of 0.93 and processes data in 0.02 seconds. Conversely, SVM, with 87% accuracy, has a much slower processing time of 274.57 seconds. The DL models considered include BERT, DistilBERT, and LSTM. BERT achieves 95% accuracy and a loss of 0.1061, but requires a long processing time of 1507.34 seconds. DistilBERT provides a good balance, achieving 96% accuracy and taking 778.91 seconds. LSTM, while less accurate at 92%, processes data more efficiently at 380.55 seconds. All models are implemented in a real-time emotion recognition system built with Streamlit. The study reveals a trade-off between speed and accuracy, with ML models providing faster predictions at lower accuracy, while DL models such as BERT and DistilBERT provide better accuracy at the expense of computational complexity. The paper discusses these trade-offs in dynamic, real-time environments and suggests optimization strategies, such as model quantization and the use of lightweight transform models, to improve both performance and efficiency.

Mohamed-Cherif Messaadia University (DZ), ImViA - Imagerie et Vision Artificielle (FR)
Quality Education
Openalex Percentile: Top 88%
Sentiment Analysis and Opinion Mining
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.