Direct detection of REM sleep using low-cost cameras: The ZZZleep Mask
Kirthana and Sarah completing a REM validation test




Students need adequate sleep in order to maintain their highest academic potential. Inadequate sleep, specifically Rapid Eye Movement (REM) sleep, can result in focus loss and inattention, which can be detrimental to brain development and function in adolescents. A sleep mask (The ZZZleep Mask) has been developed to directly track REM sleep cycles using an infrared-sensitive camera and integrated tracking software. The ZZZleep Mask system can successfully collect data and detect eye motion.



Andrillon, T., Nir, Y., Cirelli, C. et al. Single-neuron activity and eye movements during human REM sleep and awake vision. Nat Commun 6, 7884 (2015).

bigleyj. (2021, December 3). Sleep: How Much You Need and Its 4 Stages. Cleveland Clinic; Cleveland Clinic.

Bozkurt, A., & Onaral, B. (2004). Safety assessment of near infrared light emitting diodes for diffuse optical measurements. BioMedical Engineering OnLine, 3(1).

Do Sleep Trackers Really Work? (2021, August 8).

Hershner, S. D., & Chervin, R. D. (2014, June 23). Causes and consequences of sleepiness among college students. Nature and science of sleep.

Horowitz, A. H., Rosello, O., Vega, T. et al. (2021). Masca: A Flexible Sleep Mask for Rapid Eye Movement (REM) Detection and Electrical Muscle Stimulation (EMS) Intervention. MIT Media Lab.

How Is Sleep Different for Men and Women? | Sleep Foundation, 26 Oct. 2018, What Are REM and Non-REM Sleep? WebMD, WebMD, 26 Apr. 2005,

How Lack of Sleep Impacts Cognitive Performance and Focus | Sleep Foundation. (2016, November 14). Sleep Foundation.

Kahn, Jeff. How Much REM Sleep Do You Need? PSA: You Don’t Need to Know., 2019,

Kelsey, S., & Soltis, B. (2011, June 6). Rem sleep alarm. DigitalCommons@CalPoly.

Kourkoumelis N, Tzaphlidou M. Eye safety related to near infrared radiation exposure to biometric devices. ScientificWorldJournal. 2011 Mar 1;11:520-8. doi: 10.1100/tsw.2011.52. PMID: 21380486; PMCID: PMC5720004.

Mateika, J. H. (2002, June). The Impacts of Sleeping on Learning and Behavior in Adolescents. ResearchGate. Retrieved September 27, 2022, from Georgios Mitru, et al. ResearchGate, Blackwell Publishing, June 2002,

Murray, M. (2019, January 25). Raspberry Pi NOIR vs Normal Camera. The Geek Pub.

National Sleep Foundation, Nov. 2020,

Pacheco, Danielle & Singh, Abhinav. What Happens During NREM Sleep? | Sleep Foundation. (2022, July 8). Sleep Foundation.

Polysomnography (sleep study) - Mayo Clinic. (2020).;

Ramsay, D. (2021, April 8). How to Tell if your Eye-Tracking IR Diode is Safe. Epistemology, Cognition, and the Future of Technology.

Raspberry Pi Documentation - Camera. (2013).

Raspberry Pi Ltd. (2016). Buy a Raspberry Pi Camera Module 2 – Raspberry Pi. Raspberry Pi.

Raspberry Pi Ltd. (2016). Buy a Raspberry Pi Camera Module 2 NoIR – Raspberry Pi. Raspberry Pi.

Rundo, J. V., & Downey, R., 3rd (2019). Polysomnography. Handbook of clinical neurology, 160, 381–392.

Rusch, H. L. (2020, December 17). Links between stress, sleep, and inflammation: a translational perspective of resilience. ResearchGate; unknown.

Saleh, M. (2020, October). How accurate is Fitbit sleep? | Top Picks | Medical News Bulletin. Medical News Bulletin.

Stickgold, R., Pace-Schott, E., & Hobson, J. Allan. (1994). A New Paradigm for Dream Research: Mentation Reports Following Spontaneous Arousal from REM and NREM Sleep Recorded in a Home Setting. Consciousness and Cognition, 3(1), 16–29.

Suni, E. (2022, October 7). Stages of sleep. Sleep Foundation. Retrieved December 9, 2022, from

Suni, E. (2023, April 4) 100+ Sleep Statistics - Facts and Data About Sleep 2023 | Sleep Foundation. (2023, April 4). Sleep Foundation.

Takahashi, Kazumi, and Yoshikata Atsumi. Precise Measurement of Individual Rapid Eye Movements in REM Sleep of Humans. Sleep, vol. 20, no. 9, Sept. 1997, pp. 743–52,

Walker, W. H., Walton, J. C., DeVries, A. C., & Nelson, R. J. (2020). Circadian rhythm disruption and mental health. Translational Psychiatry, 10(1).

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Copyright (c) 2023 Sarah Choi, Kana Park, Kirthana Senthil