Claimcat_1 is an AI-driven complaint categorization system designed to assist Bundesnetzagentur (BNetzA) in classifying consumer complaints efficiently. The system utilizes Natural Language Processing (NLP) models deployed on AWS SageMaker to automate the categorization process, reducing response time and workload for employees.
✅ Automated complaint categorization into Process, Type, and Content levels
✅ Multi-label classification for complaints covering multiple categories
✅ REST API-based integration with existing BNetzA workflows
✅ AWS Lambda & SageMaker-based deployment
- Frontend: Users submit complaints via web forms, emails, or letters.
- Backend: AWS Lambda processes the request and sends it to SageMaker for inference.
- AI Model: NLP-based classifier predicts complaint categories with confidence scores.
- API Response: Returns structured categorization results.
Endpoint | Description |
---|---|
/process-categorization |
Classifies complaints as Strom, Gas, Sostinges. |
/type-categorization |
Identifies **** |
/content-categorization |
Categorizes . |
{
"text": "I have issues with my electricity bill and connection."
}
{
"process_category": "Energy",
"type_category": "Inquiry",
"content_categories": ["Electricity", "Billing", "Network Connection"],
"confidence_scores": [98.3, 95.5, 92.1]
}
git clone https://github.com/srishtiguptaunimi/Claimcat_1.git
cd Claimcat_1
pip install -r requirements.txt
- Set up an AWS account.
- Create an IAM Role with permissions for SageMaker & Lambda.
- Deploy Lambda using AWS CLI or the console.
- Update API Gateway to expose endpoints.
- The NLP model is trained using consumer complaint data.
- Fine-tuned using SageMaker PyTorch models.
- Supports multi-class classification with confidence scores.
- Deployment: The model is hosted on AWS SageMaker Inference Endpoint.
- Unit Tests:
pytest tests/
- API Testing:
Use Postman or
curl
:
curl -X POST "https://your-api-endpoint.com/process-categorization" -H "Content-Type: application/json" -d '{"text": "I have issues with my gas bill"}'
We welcome contributions! To contribute:
- Fork this repository.
- Create a new feature branch:
git checkout -b feature-name
- Commit changes:
git commit -m 'Add new feature'
- Push:
git push origin feature-name
- Create a Pull Request.
This project is licensed under the MIT License.
For questions, reach out via GitHub Issues or email: [email protected]
- ✅ Improve multi-label classification for complex complaints.
- ✅ Build a FastAPI frontend for better integration.
- ✅ Add automated model retraining pipeline using AWS Lambda.
💡 Developed by: ClaimCat Team | Powered by AWS SageMaker, Bedrock & Lambda 🚀