Cloud-Based Emotion Detection Model Using Convolution Neural Networks on the Affectnet Dataset
Authors
Department of Networking and Communications, SRM Institute of Science and Technology, Kattankulathur, India (India)
Department of Networking and Communications, SRM Institute of Science and Technology, Kattankulathur, India (India)
Department of Networking and Communications, SRM Institute of Science and Technology, Kattankulathur, India (India)
Article Information
DOI: 10.51244/IJRSI.2026.1305000121
Subject Category: Artificial Intelligence
Volume/Issue: 13/5 | Page No: 1335-1338
Publication Timeline
Submitted: 2026-05-06
Accepted: 2026-05-11
Published: 2026-06-03
Abstract
Emotion recognition powered by AI and Computer Vision is changing how people and machines interact, computers can now read our feelings just by analyzing our faces. In this paper, we dig into a cloud-based emotion classification system built around the massive AffectNet dataset and a fine-tuned MobileNetV2 deep learning model. We needed to process millions of real-world images, so we put together a distributed MLOps pipeline on Google Cloud Platform using Apache Spark and Vertex AI.
Traditional hardware just can’t keep up with this scale of data causing a huge bottleneck. We solved this with a cloud-first architecture. All images landed in Google Cloud Storage, acting as a virtually limitless data lake. When we needed to preprocess everything, we spun up an on-demand Apache Spark cluster with Dataproc, spreading the load across machines. For training, we handed things off to Vertex AI, orchestrating jobs across a cluster of NVIDIA A100 GPUs. Separating out these stages slashed both our processing time and costs while running thirty times faster than a single machine could ever manage.
The AffectNet dataset has an extreme class imbalance. Some emotions, like happiness, dominate while others barely show up. We tackled this early in the preprocessing step by assigning class weights, sidestepping the need for resource-hungry oversampling. For transfer learning, we started by freezing the MobileNetV2 base and letting it extract features, only tuning the top layers at a low learning rate.
The study includes a per-class performance metrics, a confusion matrix and digs into the dataset to give a sense of the model’s strengths and weaknesses. The final model reached 68.2% accuracy and a weighted F1-score of 0.67. In the end, this work lays a solid, reproducible MLOps foundation for more advanced research in temporal and multimodal emotion recognition.
Keywords
big data, convolutional neural networks, deep learning, emotion recognition, Google Cloud Platform
Downloads
References
1. Mollahosseini, A., Hasani, B., & Mahoor, M. H. (2019). AffectNet: A Database for Facial Expression, Valence, and Arousal Computing in the Wild. IEEE Transactions on Affective Computing, 10(1), 18-31. https://doi.org/10.1109/TAFFC.2017.2740923 [Google Scholar] [Crossref]
2. Sandler, M., Howard, A., Zhu, M., Zhmoginov, A., & Chen, L. (2018). MobileNetV2: Inverted Residuals and Linear Bottlenecks. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, 4510-4520. https://doi.org/10.1109/CVPR.2018.00474 [Google Scholar] [Crossref]
3. Zaharia, M., et al. (2016). Apache Spark: A Unified Engine for Big Data Processing. Communications of the ACM, 59(11), 56-65. https://doi.org/10.1145/2934664 [Google Scholar] [Crossref]
Metrics
Views & Downloads
Similar Articles
- The Role of Artificial Intelligence in Revolutionizing Library Services in Nairobi: Ethical Implications and Future Trends in User Interaction
- ESPYREAL: A Mobile Based Multi-Currency Identifier for Visually Impaired Individuals Using Convolutional Neural Network
- Comparative Analysis of AI-Driven IoT-Based Smart Agriculture Platforms with Blockchain-Enabled Marketplaces
- AI-Based Dish Recommender System for Reducing Fruit Waste through Spoilage Detection and Ripeness Assessment
- SEA-TALK: An AI-Powered Voice Translator and Southeast Asian Dialects Recognition