Compact Near-Real-Time Anger Detection System Through Voice Analysis Implemented on ESP32 Microcontroller
This paper presents the development of a compact, near-real-time anger detection system through voice analysis, implemented on an ESP32 microcontroller. The system is designed to address domestic violence scenarios in which anger often precedes aggression. Due to the computational constraints of embedded devices, we propose an optimized Convolutional Neural Network based on VGG16, called MiniVGG16, which reduces the number of parameters while maintaining an 80% accuracy in anger recognition. The system processes audio signals in near real-time, extracting Mel-Frequency Cepstral Coefficients from speech data. These features are then fed into the MiniVGG16 model, which has been optimized using TensorFlow Lite Micro for efficient inference on the ESP32. The entire pipeline, including audio sampling, feature extraction, and classification, is executed in 676.4 ms, enabling practical deployment in near-real-world applications. The system’s small memory usage and real-time processing capability make it a cost-effective and accessible tool for emotion monitoring in home environment, mental healthcare scenarios, and security applications. Future improvements include noise filtering and data augmentation to improve classification performance under diverse acoustic conditions.
Authors
- Héctor De la Torre Gutiérrez (ORCID: https://orcid.org/0000-0002-8343-989X)
- Hugo Mitre‐Hernandez (ORCID: https://orcid.org/0000-0003-2840-3998)
- Carlos Lara-Álvarez (ORCID: https://orcid.org/0000-0001-7856-7398)
- Uziel Jaramillo-Avila (ORCID: https://orcid.org/0000-0003-4594-2862)
- Ivan Fernandez-Morales (ORCID: https://orcid.org/0009-0003-0852-9179)
Publication Details
- Journal
- IEEE Transactions on Instrumentation and Measurement
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/tim.2025.3574903
- Citations
- 2
- Primary Topic
- IoT-based Smart Home Systems
- Type
- article
- Field-Weighted Citation Impact
- 1.46