Home > IoT Insights > Inside Access to DriveSafe: A Driver Monitoring App Powered by Machine Learning

Inside Access to DriveSafe: A Driver Monitoring App Powered by Machine Learning

A closer look at the motor vehicle accident statistics around the world shows that driver distraction and fatigue are some of the major risk factors to road safety today. As road traffic injuries and death have been showing an incremental trend over the years, it is high time we address this issue.

The source of driver distraction, in most cases, is within the vehicle itself. Activities that distract the driver include texting or talking on the phone, reaching out to the back seat, playing music on the infotainment system, etc. while driving.

With the increase in the use of smartphones and hands-free devices connected to phones, cognitive distraction that affects driving behavior is also on the rise.

Driver Distraction Detection App

Project DriveSafe – Real-time Driver Monitoring App

The Innovation Lab at Embitel has been buzzing with activity as our engineers tried to develop a solution that keeps a check on cognitive distraction, i.e., activities that take a driver’s mind off the road.

Our work on this project was initiated at the beginning of 2020 when we designed a Python-based machine learning algorithm that analyzes driver movements, identifies each activity, and sends alerts based on the results.

The next step was to identify the most optimum end-user application that would relay these messages to the driver.

The pandemic lockdown ceased to deter our enthusiasm to see this solution through to the end, and we came up with a great idea!

We decided to develop DriveSafe, an intuitive Android-based app that would use the existing hardware of the user’s mobile app to assess their attentiveness while driving. The app that was designed captures images of the driver at pre-defined intervals to act as input to the machine learning algorithm within.

Key features of DriveSafe:

  • The intensive training given to the algorithm ensures that it identifies the driver’s activity with a great degree of accuracy.
  • Currently, we have identified 16 activities that the driver could be engaged in. This includes 15 driver distraction activities such as using a mobile phone for calls, texting, taking selfie on a phone, adjusting makeup, talking to passengers, reaching to the back seat, smoking, reaching for the audio system to play music, and more. The focused activity identified is the driver looking at the road while driving.
  • The activity is analyzed through the hand movements of the driver as well. Hence, the camera should be positioned at a 45-degree angle to the direction in which the driver is facing.
  • The driver can pre-configure the app settings so that his/her images are captured at periodic intervals throughout the journey. This interval for photo capture can be configured up to milliseconds.
  • The user can also configure the resolution of the images captured. Additionally, he/she can configure whether all images captured need to be retained on the device after processing.
  • After analysis of the images, if the algorithm finds that the driver is engaged in a distracting activity, it sends a visual notification on the phone in the form of a text image. It also sends an audio notification to alert the driver.
  • The solution can also be customised to integrate a cloud server to which the alert messages can be sent. Integration of this functionality could open up a wide range of business use cases for which this solution can be deployed.

Business Use Cases for Our Distracted Driver Detection App

The driver monitoring app conceived at Embitel’s Innovation Lab can be the solution for a large spectrum of business use cases:

  1. Driver assistance – When there is a need to offer some assistance to the driver to help him/her stay attentive on the road, DriveSafe would be the perfect solution. While using this app, if the driver is distracted, they receive a real-time notification that helps them focus on the road and drive safely.
  2. Insurance companies – Our driver monitoring app can be beneficial to insurance companies in identifying the primary reason for a road mishap that precedes an insurance claim. If there was an accident, the insurer can easily analyze the driver activity at that point of time to take a judicious decision.
  3. Drowsiness detection – Currently, our driver behavior app performs image analysis using pictures captured from the mobile camera positioned at the side of the driver (45 degrees from the front of the driver’s face). For detecting driver drowsiness, it is necessary to install the camera at the front of the driver. When the camera is at the front, it is possible to analyze the eyes of the driver and detect drowsiness. Our driver monitoring app is scalable to include driver drowsiness detection feature as well. The same algorithm can be used for this purpose; only the model needs to be trained with different data to accomplish this feature.
  4. Cab aggregators – Our driver monitoring app helps cab aggregators track their drivers’ behavior for streamlining operations. The driver activities such as smoking, texting, excessive use of music system, etc. can be of interest to such companies for this use case.

Driver Behavior Monitoring App - Data Security

Currently, all computations and predictions are performed locally on the driver behavior app. There is no need for internet connectivity for app functioning.

In the future, if a module is integrated to connect to an external server to transfer driver alerts for analysis, the data will be stored locally and transmitted to the server when there is connectivity. Hence, there will be no data loss or threat to security from this architecture. In such a scenario, the security aspects of the solution will also rely completely on the network security.

Overcoming Challenges

This project was sparked by a unique “Eureka moment” and fueled by an undying urge to craft a solution quickly. As with such kind of projects, we had to face some challenges along the way. One that we are particularly proud of overcoming is the sudden change in operations when we adopted a work-from-home policy during the pandemic lockdown.

Today, we are thrilled to announce the successful completion of the development activities of this project, as planned before the lockdown. This is a feather in the cap of the engineering team that worked on the driver monitoring app development project. And clear evidence of their dedication and passion to break barriers and deliver exciting solutions for the future!


to Help!