Skip to content
Free planNo credit card requiredStart writing

article · SHILAP Revista de lepidopterología · 2025

HAAR CASCADE ALGORITHM FOR MICROSLEEP DETECTION

Norkhushaini Awang, Ahmad Mirza Azhar

Cited by 0Open access

Abstract

Drowsy driving, particularly due to microsleep episodes, is a significant cause of traffic accidents, with existing solutions being often too costly or limited for widespread adoption. This project addresses this critical gap by developing a cost-effective, real-time Internet of Things (IoT)-based anti-microsleep alarm system. The system's development followed a fourstage process: Planning, Design, Development, and Evaluation. During the development phase, the system was built in Python using OpenCV and dlib for real-time facial analysis and the Haar Cascade algorithm for efficient facial feature detection. Key metrics like the Eye Aspect Ratio (EAR) and lip distance were monitored to identify signs of drowsiness and yawning. A comprehensive feedback loop was implemented using MQTT for communication between the Python backend and a Node-RED dashboard, with eSpeak and the Slack API providing aural and textual alerts. A finding from the evaluation, however, was a sensitivity to environmental factors as the distance between the driver and the camera increased, the system's accuracy in detecting drowsiness, yawning, and microsleep declined, leading to an increased risk of false negatives. Based on these results, future research should focus on enhancing the core algorithm to be more resilient to variable lighting and distance, thereby reducing false positives and negatives. Further work is also recommended to explore the system's integration with vehicle-specific infrastructure, develop more scalable data storage solutions, and conduct extensive long-term testing to validate its performance in diverse real-world driving conditions, which will pave the way for its commercial viability and broader adoption.

Cite this paper

APA 7

Awang, N., & Azhar, A. M. (2025). HAAR CASCADE ALGORITHM FOR MICROSLEEP DETECTION. SHILAP Revista de lepidopterología. https://doi.org/10.24191/mjoc.v10i1.6845

MLA 9

Awang, Norkhushaini, and Ahmad Mirza Azhar. “HAAR CASCADE ALGORITHM FOR MICROSLEEP DETECTION.” SHILAP Revista de lepidopterología, 2025, https://doi.org/10.24191/mjoc.v10i1.6845.

Chicago

Awang, Norkhushaini, and Ahmad Mirza Azhar. 2025. “HAAR CASCADE ALGORITHM FOR MICROSLEEP DETECTION.” SHILAP Revista de lepidopterología. https://doi.org/10.24191/mjoc.v10i1.6845.

Harvard

Awang, N. and Azhar, A.M. (2025) ‘HAAR CASCADE ALGORITHM FOR MICROSLEEP DETECTION’, SHILAP Revista de lepidopterología. Available at: https://doi.org/10.24191/mjoc.v10i1.6845.

BibTeX
@article{awang2025haar,
  title = {{HAAR CASCADE ALGORITHM FOR MICROSLEEP DETECTION}},
  author = {Awang, Norkhushaini and Azhar, Ahmad Mirza},
  journal = {SHILAP Revista de lepidopterología},
  year = {2025},
  doi = {10.24191/mjoc.v10i1.6845}
}

Made from the index record. Check names, capitalisation and page numbers against the paper. Need another style? AI for Research has over 10,000.