# Implementing federated learning for privacy-preserving emotion detection in educational environments

**Authors:** Rommel Gutiérrez, William Villegas-Ch, Sergio Luján-Mora

PMC · DOI: 10.3389/frai.2025.1644844 · Frontiers in Artificial Intelligence · 2025-11-07

## TL;DR

This paper introduces a privacy-preserving emotion detection system for education using federated learning, which improves student engagement and performance without compromising data privacy.

## Contribution

A novel federated learning model for emotion detection in educational settings that preserves data privacy and improves academic outcomes.

## Key findings

- The model achieved 87% precision, 85% recall, and 86% F1-score in emotion detection.
- It improved academic participation by 15% and average performance by 12%.
- The system maintains performance under adverse conditions like low lighting and noise.

## Abstract

Emotion detection has become an essential tool in educational settings, where understanding and responding to students’ emotions is crucial to improving their engagement, academic performance, and emotional well-being. However, traditional emotion detection systems, such as DeepFace, and hybrid transformer-based models face significant data privacy and scalability limitations. These models rely on transferring sensitive data to central servers, compromising student confidentiality and making deployment in large or diverse populations difficult. In this work, we propose a federated learning-based model designed to detect emotions in educational settings, preserving data privacy by processing them locally on students’ devices (smartphones, tablets, and laptops). The model was integrated into the Moodle platform, allowing its evaluation in a conventional educational environment. Advanced anonymization and preprocessing techniques were implemented to ensure the security of emotional data and optimize its quality. The results demonstrate that the proposed model achieves a precision of 87%, a recall of 85%, and an F1-score of 86%, maintaining its performance under adverse conditions, such as low lighting and ambient noise. In addition, a 15% increase in academic participation and a 12% improvement in the average academic performance of students were observed, highlighting the system’s positive impact on educational dynamics. This innovative method combines privacy, scalability, and performance, positioning itself as a viable and sustainable solution for emotion detection in contemporary educational environments.

## Full-text entities

- **Genes:** PLAT (plasminogen activator, tissue type) [NCBI Gene 5327] {aka T-PA, TPA}
- **Diseases:** confusion (MESH:D003221), Anxiety (MESH:D001007)
- **Chemicals:** Moodle (-)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12634504/full.md

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12634504/full.md

## References

67 references — full list in the complete paper: https://tomesphere.com/paper/PMC12634504/full.md

---
Source: https://tomesphere.com/paper/PMC12634504