CattleGo is a smart livestock management app that helps farmers and researchers identify Indian cattle breeds using AI-based image recognition. It combines machine learning, real-time detection, multilingual support, and a RAG-based chatbot to make livestock management more accessible and efficient.
| Layer | Technologies Used |
|---|---|
| Frontend | Flutter |
| Backend | FastAPI, Python |
| Machine Learning | TensorFlow / Keras (MobileNetV2) |
| Authentication | Firebase |
| Deployment | Hugging Face Spaces (breed detection API), separate server for chatbot |
| Database | Firebase Firestore (optional for storing user data) |
Analysis: Model begins learning but struggles with generalization, showing clear overfitting patterns.
Analysis: Overfitting reduced; model generalizes better with stable loss and accuracy curves.
Analysis: Excellent convergence with high accuracy and synchronized loss curves.
Analysis: Model achieves its best performance; overfitting minimized and accuracy plateau achieved.
Purpose: Displays model performance across all breed classes, highlighting correctly and incorrectly predicted breeds.
Below are key screens of the CattleGo app demonstrating multilingual support, breed classification, chatbot, and user interface design.
| Sign In | Sign Up |
|———-|———-|
|
|
|
| Home Page | Settings Page | Profile |
|————|—————-|———-|
|
|
|
|
| Classification Page | Breeds List | Breeds Info |
|———————-|————-|————–|
|
|
|
|
| Chatbot | How To Use | App Language |
|———-|————-|————–|
|
|
|
|

You can try the CattleGo app on your Android device using our Release APK:
Make sure to enable “Install from unknown sources” on your Android device to install the APK.
The cattle breed detection backend is publicly deployed on Hugging Face Spaces.
Users can access the deployed API using their own Hugging Face access tokens.
HF_TOKEN.Use the /predict endpoint for standard image classification:
export HF_TOKEN="your_huggingface_token"
export HF_SPACE="https://sanjay11kumar17s-cattle-go-model.hf.space"
curl -X POST \
-H "Authorization: Bearer $HF_TOKEN" \
-F "file=@path/to/cattle_image.jpg" \
"$HF_SPACE/predict"
Expected response format:
{
"class": "Gir",
"confidence": 0.94,
"description": "Indian dairy breed...",
"message": "Prediction complete"
}
Use the /predict-frame endpoint for real-time frame uploads:
curl -X POST \
-H "Authorization: Bearer $HF_TOKEN" \
-F "file=@path/to/frame.jpg" \
"$HF_SPACE/predict-frame"
Get container logs:
curl -N \
-H "Authorization: Bearer $HF_TOKEN" \
"https://huggingface.co/api/spaces/SANJAY11KUMAR17S/Cattle_Go_Model/logs/run"
Get build logs:
curl -N \
-H "Authorization: Bearer $HF_TOKEN" \
"https://huggingface.co/api/spaces/SANJAY11KUMAR17S/Cattle_Go_Model/logs/build"
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.65.06 Driver Version: 580.65.06 CUDA Version: 13.0 |
+-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 4070 ... Off | 00000000:01:00.0 On | N/A |
| 0% 37C P8 9W / 220W | 10369MiB / 12282MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 1364 G /usr/lib/xorg/Xorg 150MiB |
| 0 N/A N/A 1600 G /usr/bin/gnome-shell 20MiB |
| 0 N/A N/A 4666 G /usr/share/code/code 44MiB |
| 0 N/A N/A 5360 C python 10052MiB |
| 0 N/A N/A 6189 G rustdesk 31MiB |
+-----------------------------------------------------------------------------------------+
–
flutter pub getpip install -r requirements.txtflutter runWe welcome contributions to improve CattleGo. Areas of interest:
Note: This documentation reflects the model training progress up to Finetune4, with Finetune5 representing ongoing optimization efforts.
Disclaimer: Developed by Team VeriSimilar. All Rights Reserved 2025