{"title":"Lightweight emotion analysis solution using tiny machine learning for portable devices","authors":"Maocheng Bai, Xiaosheng Yu","doi":"10.1016/j.compeleceng.2024.110038","DOIUrl":null,"url":null,"abstract":"<div><div>Deep learning-based models have obtained great improvements in facial expression recognition (FER). However, these deep models have high computational complexity and more memory during training and inference, limiting their scalability in deploying on portable devices. In addition, the exploration of the intrinsic connection between facial muscle movements and expressions has always been a huge challenge. To resolve these dilemmas, we propose an effective binary tiny machine learning (TinyML) model by combining two different attention mechanisms and binary operations. Specifically, to exploit the muscle movements in different facial expressions, we propose an effective lightweight deep model by introducing channel and spatial attention mechanisms in which learning weights for different regions can enable the network to focus on regions associated with facial expressions. Moreover, we introduce the scale factor-based binary operation to improve the inference speed. Extensive experiments on three public facial expression datasets prove that our proposed model can achieve advanced performance with 70 K parameters and 0.96MB model size. We have ported and tested our model on the Seeed XIAO ESP32S3 Sense platform, showing the superiority of what was proposed in terms of inference speed.</div></div>","PeriodicalId":50630,"journal":{"name":"Computers & Electrical Engineering","volume":"123 ","pages":"Article 110038"},"PeriodicalIF":4.0000,"publicationDate":"2025-01-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Computers & Electrical Engineering","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0045790624009637","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, HARDWARE & ARCHITECTURE","Score":null,"Total":0}
引用次数: 0
Abstract
Deep learning-based models have obtained great improvements in facial expression recognition (FER). However, these deep models have high computational complexity and more memory during training and inference, limiting their scalability in deploying on portable devices. In addition, the exploration of the intrinsic connection between facial muscle movements and expressions has always been a huge challenge. To resolve these dilemmas, we propose an effective binary tiny machine learning (TinyML) model by combining two different attention mechanisms and binary operations. Specifically, to exploit the muscle movements in different facial expressions, we propose an effective lightweight deep model by introducing channel and spatial attention mechanisms in which learning weights for different regions can enable the network to focus on regions associated with facial expressions. Moreover, we introduce the scale factor-based binary operation to improve the inference speed. Extensive experiments on three public facial expression datasets prove that our proposed model can achieve advanced performance with 70 K parameters and 0.96MB model size. We have ported and tested our model on the Seeed XIAO ESP32S3 Sense platform, showing the superiority of what was proposed in terms of inference speed.
期刊介绍:
The impact of computers has nowhere been more revolutionary than in electrical engineering. The design, analysis, and operation of electrical and electronic systems are now dominated by computers, a transformation that has been motivated by the natural ease of interface between computers and electrical systems, and the promise of spectacular improvements in speed and efficiency.
Published since 1973, Computers & Electrical Engineering provides rapid publication of topical research into the integration of computer technology and computational techniques with electrical and electronic systems. The journal publishes papers featuring novel implementations of computers and computational techniques in areas like signal and image processing, high-performance computing, parallel processing, and communications. Special attention will be paid to papers describing innovative architectures, algorithms, and software tools.