Rail Kavach
AI-Powered Railway Animal Detection & Alert System
Created on 16th March 2025
•
Rail Kavach
AI-Powered Railway Animal Detection & Alert System
The problem Rail Kavach solves
🛡️ Rail Kavach is an AI-powered railway safety system designed to prevent animal collisions on tracks. It makes train travel safer and more efficient by:
✅ AI-Driven Animal Detection – Identifies animals on or near tracks in real time.
✅ Instant Alerts – Notifies railway authorities, train operators, and nearby stations.
✅ Automated Train Control – Slows down or stops trains to prevent collisions.
✅ Continuous Monitoring – Uses advanced surveillance to track wildlife movement.
✅ Nearest Railway Alert – Sends immediate warnings to trains approaching high-risk zones, ensuring timely action.
🚆 Wildlife Collisions: According to the Wildlife Institute of India (WII), thousands of wild animals, including elephants and deer, die every year due to train collisions.
🔧 Operational Disruptions: Indian Railways reports over 200+ train-animal collisions annually, leading to financial losses and delays.
🌍 Global Impact: Countries like the US, Canada, and Australia also struggle with railway accidents in wildlife-dense regions.
📊 Statistics for Prevention: Studies suggest that over 80% of train-animal collisions occur in regions with known wildlife corridors. Implementing early detection systems can reduce accidents by up to 70%.
With Rail Kavach, railways can reduce wildlife fatalities, minimize disruptions, and enhance safety, making transportation more sustainable and responsible. 🚄🐘
Challenges we ran into
#1. False Alarms & Misclassification
Issue: The system sometimes misclassified shadows, plastic bags, or humans as animals.
Solution: We ensured an animal must be detected twice within 5 minutes before triggering an alert. The model was trained strictly for animals, and alerts were sent to the nearest railway station for verification to avoid unnecessary train stoppages.
#2. YOLOv5 Detection Issues
Issue: YOLOv5 struggled with poor lighting and fast-moving objects.
Solution: We retrained the model with a larger dataset, fine-tuned confidence thresholds, and adjusted NMS settings to improve accuracy.
#3. Learning ML from Scratch
Issue: As first-year students, this was our first ML project, requiring us to learn YOLO, OpenCV, and model training from scratch.
Solution: Our team member Tulika led the ML efforts, helping us successfully build and deploy our detection system.
#4. Camera Placement Strategy
Issue: A train-mounted camera had a limited field of view, and high-speed trains couldn’t stop suddenly.
Solution: We placed cameras at regular intervals along the tracks, allowing early detection and gradual speed reduction instead of last-minute braking.
#5. Dashboard UX & Driver Distraction
Issue: Train drivers found it distracting to check the dashboard for alerts while operating the train.
Solution: We implemented voice alerts with color-coded warning indicators that require minimal attention, ensuring better usability without compromising safety.
#6. Real-Time Processing & API Latency
Issue: When using the Gemini API for image-based detection, we noticed delays in response time, causing a lag in sending alerts.
Solution: We implemented parallel processing by running a local lightweight ML model alongside the API. If the API response took too long, the local model provided a fallback detection mechanism.
