Skip to content
← All work

Samsung Innovation Campus — 1st place

Daely AI

Drowsy driving causes crashes because drivers rarely notice they're fading. Daely watches the driver through a small in-car camera and raises the alarm in real time.

  • PyTorch
  • Flask
  • OpenCV
  • Azure
Daely AI screens
of 7,590+ participants
1stof 7,590+ participants
model accuracy
98.7%model accuracy
inference time
0.38 sinference time

Why I built it

Drowsy driving causes accidents, and drivers are bad at noticing their own fatigue. They overestimate how long they can stay alert and struggle to judge when to rest. We wanted a system that notices for them.

What it does

  • Watches the driver through an ESP32-CAM mounted in the car.
  • Detects signs of drowsiness in real time, even in low light.
  • Alerts the driver in stages by severity, on an in-car LCD and with a buzzer.
  • Logs every detection to a dashboard where drivers can see when in the day they tend to get drowsy.

How it works

The ESP32-CAM connects over Wi-Fi, captures frames and sends them to a Flask API for analysis. The model flags drowsiness, the result is written to the database, and the device shows the alert on its LCD and sounds the buzzer. A Streamlit dashboard backed by Firebase shows the history: detections per day, per week and by hour.

I trained three models: YOLOv8 (20 epochs), a Vision Transformer (3 epochs) and a stacked model of the two (6 epochs), on the Roboflow drowsiness detection dataset. Each was evaluated on F1 score, precision, recall, accuracy, a confusion matrix and ROC.

Why this stack

PyTorch gave us room to try state-of-the-art architectures quickly. Azure handled orchestration so the camera, model and dashboard could stay separate pieces.

The hard part

Getting inference down to 0.38 seconds, so an alert fires while it can still help. That meant optimizing the computer-vision pipeline end to end, and it had to keep working in low-light driving conditions.

Results

Daely took 1st place out of 7,590+ participants in Samsung Innovation Campus Batch 5. We presented it to the Vice President of Indonesia and to executives from Toyota Motor Corp.

What I'd do differently

Notes coming soon.