Back To Projects

Facial Intoxication Detector with AI

Rayyaan O.

The purpose of this study is to analyze whether Artificial Intelligence can be used to more effectively detect and prevent drunk driving and if a Machine Learning models like Logistic Regression and Decision Tree can be more accurate than a human police officer.


Drunk driving is a very widespread problem, causing many casualties and millions of dollars in insurance and damages per year. In 2020, despite the COVID19 pandemic greatly reducing road traffic, about 32 people died per day in the US alone from DUI (Driving under Influence)(nhtsa.gov). Existing solutions such as police testing drivers suspected to be under influence is simply impractical considering the number of possible intoxicated drivers. With more and more people gaining access to a vehicle, it is crucial that more effective strategies be developed to detect and combat drunk driving. The purpose of this study is to analyze whether Artificial Intelligence can be used to more effectively detect and prevent drunk driving and if a Machine Learning models like Logistic Regression and Decision Tree can be more accurate than a human police officer. To address this question, a dataset named drunkImagesWebp was used. Two machine learning algorithms, Logistic regression and decision tree were then trained on this dataset with facial image data of intoxicated people to accurately predict the sobriety of humans based on facial cues. After testing this model, it became clear that both Logistic regression and decision tree models can indeed accurately test a driver for signs of intoxication with well over 90% accuracy compared to human-administered tests with can only hit up to around 75% accuracy. By comparison, both the Logistic regression and Decision tree algorithms detected intoxication with 96% accuracy. This paper shows the potential AI can have in creating an automated solution to detecting and ultimately preventing drunk driving.

Explore More!

Rayyaan O.
Linda Banh
Electrical Engineering MS from Stanford with professional AI Certificate, Engineer at Microsoft

Related Projects

Identifying Parameters in Water Potability Analysis Through Machine Learning

Predicting whether the water is potable or not can be helpful for people who are reliant on bodies of water and redirect them to safer options. It will also be beneficial to apply the algorithm to other places where it is expensive and inefficient to send people out and collect water samples. Over the past couple of decades, researchers have often commented on the lack of funding as a source of error when it comes to data analysis and the accuracy of the research.
Molly H.
Mentored by Sharon Chen
Predicting Mental Health Conditions Using Student Demographic Information

With this, we will train the data to extrapolate what symptoms the user has based on their demographics and academic/social life. This can help understand what symptoms a person has of certain characteristics.
Ashwith Y.
Mentored by
DeepSolar Bangladesh: A Novel Convolutional Neural Network (CNN) Architecture for the Detection of Solar Panels from Low Resolution Satellite Imagery in Developing Countries

Due to its environmental benefits and decreasing costs, the supply of solar energy is growing at an accelerating pace globally. However, the decentralised nature of solar makes it difficult to keep track of the different photovoltaic (PV) systems deployed across a country. There is a critical need for highly accurate, comprehensive national databases of solar systems, which would allow policymakers, researchers, and the government to study socioeconomic trends in solar deployment. Manual surveys have shown to be inaccurate. The 2018 DeepSolar study by Yang et. al developed a deep-learning framework and national solar deployment database for the US using high-quality satellite imagery, which proved to be a much more efficient and accurate approach. However, satellite imagery in developing countries such as Bangladesh is of much lower resolution and quality, and performed poorly with the original DeepSolar model by Yang et. al. Our study highlights the implementation of a novel convolutional neural network (CNN) in detecting solar panels through low resolution Google Static Maps API satellite imagery data.
Khondoker F.
Mentored by Barbie Duckworth