Navarasa Affective AI: A multimodal model for emotion classification
2 min readupdated
The Navarasa Affective AI model combines visual facial features and 3D geometry to recognize nine canonical emotions (navaras) from the Natya Shastra treatise. The architecture links a ResNet34 convolutional neural network (a computer vision model for extracting visual features) with a multilayer perceptron, LandmarkMLP (a neural network for processing facial landmark coordinates), merging them in an intermediate classifier layer. This solution is useful for researchers in emotion analysis and developers of interactive multimedia applications.
Key features
- Dual-stream architecture: fusion of ResNet34 embeddings and 468 MediaPipe FaceLandmarker points.
- 9-emotion classification: recognition of states ranging from anger and fear to joy and peace.
- Interpretability: Grad-CAM support (a visualization method for neural network attention zones) for spatial saliency maps.
- Versatility: support for running on both a central processing unit (CPU) and CUDA-enabled GPUs.
What you can do
- Launch a Streamlit demo application by configuring the environment variable with the model weights.
- Explore model performance and visualize the facial regions it relies on for classification.
Example
Running the application and downloading the model weights from the repository:
export NAVARASA_HF_MODEL_REPO=ChitrankDixit/navarasa-affective-ai-weights
streamlit run app.py
Read more
DetailsFramework: PyTorch (resnet34 + LandmarkMLP)
Weight file size: 85.42 MB (epoch 3)
Validation Accuracy: 0.6667
Hardware requirements: CPU or CUDA










Comments