Abstract
Facial expression recognition (FER) is the task of determining a person’s current emotion. It plays an important role in healthcare, marketing, and counselling. With the advancement in deep learning algorithms like Convolutional Neural Network (CNN), the system’s accuracy is improving. A hybrid CNN and k-Nearest Neighbour (KNN) model can improve FER’s accuracy. This paper presents a hybrid CNN-KNN model for FER on the Raspberry Pi 4, where we use CNN for feature extraction. Subsequently, the KNN performs expression recognition. We use the transfer learning technique to build our system with an EfficientNet-Lite model. The hybrid model we propose replaces the Softmax layer in the EfficientNet with the KNN. We train our model using the FER-2013 dataset and compare its performance with different architectures trained on the same dataset. We perform optimization on the Fully Connected layer, loss function, loss optimizer, optimizer learning rate, class weights, and KNN distance function with the k-value. Despite running on the Raspberry Pi hardware with very limited processing power, low memory capacity, and small storage capacity, our proposed model achieves a similar accuracy of 75.26% (with a slight improvement of 0.06%) to the state-of-the-art’s Ensemble of 8 CNN model.
Highlights
Emotions are natural states associated with the nervous system that influence every aspect of human behaviour, including rationality and decision-making [1,2]
Our research focuses on improving the deep learning models currently in use in Facial expression recognition (FER) systems
Since researchers have not evaluated the hybrid Convolutional Neural Network (CNN)-k-Nearest Neighbour (KNN) model in the FER framework, we use this hybrid model to improve accuracy in the FER-2013 dataset
Summary
Emotions are natural states associated with the nervous system that influence every aspect of human behaviour, including rationality and decision-making [1,2]. Individuals can convey emotions through speech, body posture, gestures, and facial expressions. Facial expressions are effective ways to recognize one's emotions. Facial expressions are vital for day-to-day communication, as they convey non-verbal emotions and feelings. With just 43 different facial muscles, humans can make 6,000 to 10,000 expressions [3]. In 1872, Charles Darwin hypothesized that humans had evolved facial expressions from animal ancestors. Certain expressions are universal across cultures, despite differences in race, language, and religion [4]. In the late 20th century, Ekman and Friesen confirmed Darwin's theory and classified six universal facial expressions: happy, fear, surprise, disgust, sad, and angry [3]
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.