International Journal of Innovative Research in Engineering and Management
Year: 2026, Volume: 13, Issue: 2
First page : ( 189) Last page : ( 197)
Online ISSN : 2350-0557
DOI: 10.55524/ijirem.2026.13.2.24 |
DOI URL: https://doi.org/10.55524/ijirem.2026.13.2.24
This is an Open Access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0) (http://creativecommons.org/licenses/by/4.0)
Article Tools: Print the Abstract | Indexing metadata | How to cite item | Email this article | Post a Comment
Nidhi Singh
Most chat platforms today carry an enormous amount of emotional content that nobody is actually tracking. People send billions of messages a day across apps like WhatsApp, Slack and Teams, and a lot of those messages are angry, scared, frustrated, or excited in ways that the platform itself never picks up on. This project tries to do something about that. We built a small REST API that takes a chat message and tells you what emotion is in it. The seven labels we use are Happy, Sad, Angry, Surprised, Fearful, Disgusted, and Neutral. The reply comes back as JSON, and includes the emotion, a confidence number, and a short reason. For the actual classification we use AWS Bedrock so that we don't have to host any models ourselves. Claude 3 Sonnet from Anthropic is the main model. If it fails, we fall back to Amazon's Titan Text Express. The Python code uses FastAPI, runs in Docker on ECS Fargate, and the entire AWS setup is written as code with the CDK in TypeScript. We tested it on a hand-labelled set of 1,000 chat messages and got 88.4% accuracy overall, which is past the 85% target we set at the start. Latency at 50 concurrent users sat at a median of 285 ms, with the 95th percentile at 412 ms. The API also takes the past few messages of a conversation into account when classifying, which helps a lot with sarcasm and one-line follow-ups.
Department of Computer Science & Engineering, Institute of Technology and Management, Lucknow, India
No. of Downloads: 8 | No. of Views: 104
Nidhi Singh.
June 2026 - Vol 13, Issue 3
Piyush Thapliyal, Purva Mundada, Mukthikka V, Gurpreet Singh.
June 2026 - Vol 13, Issue 3
T. Srajan Kumar, Kandula Siri Chandana, Gavara Archana, Gundeti Dhanush Reddy, Jonna Madhu Reddy.
April 2026 - Vol 13, Issue 2
