AI-Enhanced Railway Safety and Crowd Management is an innovative project aimed at revolutionizing the Indian Railways by leveraging cutting-edge AI technology to address critical challenges faced by the railway sector. Our project focuses on real-time anomaly detection, crowd management, and crime prevention using the existing CCTV network.
Our objective is to enhance passenger safety, comfort, and the overall travel experience within the Indian Railways by deploying state-of-the-art AI models and real-time data analysis. We aim to address the following key challenges:
- Real-time anomaly detection for enhanced crowd management and crime prevention.
- Efficient monitoring of maintenance tasks to ensure railway infrastructure remains safe and reliable.
- Providing immediate guidance and assistance to passengers during security threats or other emergencies.
- AI Models: We fine-tune deep learning models using Vision Transformer (ViT) and You Only Look Once (YOLO) for real-time anomaly detection.
- Web Application: Our AI seamlessly integrates into a user-friendly web application for accessible results.
- CCTV Network Integration: Utilizing existing CCTV infrastructure for real-time monitoring and enhanced security.
- Frame Storage and Preprocessing: Implementation of a frame storage system for capturing and preprocessing CCTV images.
- GPS-Based Guidance: Providing real-time route guidance during emergencies for passenger safety.
Our project leverages a robust technological stack, including:
- Hugging Face
- HTML, CSS
- Python Flask
- SQLAlchemy
- TensorFlow, PyTorch
- Google Maps Geolocation API
- GitHub
- OpenCV
- Create a virtual environment with
python3 -m venv venv
. - Activate the virtual environment using
source venv/bin/activate
on Linux/MacOS orvenv\Scripts\activate
on Windows.
- Install the required dependencies with
pip install -r requirements.txt
.
- Modify the
config.py
file to set up your database configuration. - Run
flask db upgrade
to set up the database.
- Start the application using
flask run
. - The app should now be running on
http://127.0.0.1:5000
.
- Build the Docker image with
docker build -t railway-safety-ai .
.
- Run the Docker container with
docker run -p 5000:5000 railway-safety-ai
. - The app will be accessible at
http://localhost:5000
.
For detailed usage instructions and examples, please refer to the User Guide.
Our project's success depends on building strong collaborations with railway authorities, enabling integration with the IRCTC App, and gaining access to real-time location data to optimize crowd management and safety.
We welcome contributions from the community. If you'd like to contribute to our project, please refer to our Contribution Guidelines.
This project is licensed under the MIT License.