Inspiration
The growth of ride-hailing services has revolutionized the transportation industry, but it has also raised concerns about the safety of riders. In order to address these concerns and provide a secure and enjoyable experience for all riders, we came up with an innovative solution to monitor the rides using a hardware device that automatically triggers a dashcam to stream the happenings live to authorized personnel, and sends a text using Twilio to an emergency contact person of all the people in the car, so that they can use manual intervention and cognizance to cater to the safety of the people.
What it does
rideCare is a system that integrates Machine Learning Techniques, more specifically Natural Language Processing with a hardware device such as the Raspberry Pi. It detects conflicts in conversations between the driver, and passengers to broadcast an alert to their registered emergency contacts with a link to view and read the transcript of the conversation, in real-time. It can also be used by 911 to intervene as they seem fit.
How we built it
Hardware Used:
- Raspberry Pi Model 4 B (Running Raspbian OS)
- C922 PRO HD STREAM WEBCAM
- Blue Yeti USB Microphone #Software and Packages Used:
- Python 3
- Vosk for Speech to Text Conversion
- Perspective API for toxic comment classification
- OpenCV for streaming the video in real-time
- Twilio for sending SMS to emergency contacts
Challenges we ran into
- Merging the whole project, especially integration of React with Flask
- Use of a textual comment classification library such as PerspectiveAPI to get better predictions when the real-time input is in speech
- Sending an SMS to the emergency contact by using Twilio, when the trail account had only toll-free number attached to it which logged the error as 'Undelivered'
- Designing a formula (out of 5) to calculate the severity of toxicity in the speech, based on the publicly available Kaggle dataset used by PerspectiveAPI - Kaggle dataset by weighting the various labels to determine the threat of the conversation
Accomplishments that we're proud of
- Use of OpenAI API to also perform sentiment analysis, in addition to PerspectiveAPI
- Use of a speech-to-text library such as vosk to convert speech to text in real-time to make predictions using text as input
What's next for SafeRide.ai
- Use of speaker diarization to identify targeted emergency contacts
- Development of a full fledged web-page to stream data
Built With
- openai
- opencv
- perspective
- python
- raspberry-pi
- twilio
- vosk
Log in or sign up for Devpost to join the conversation.