# How do i detect CPAP masks off

**URL:** https://discuss.roboflow.com/t/how-do-i-detect-cpap-masks-off/9034
**Category:** 🤝  Community Help
**Created:** [March 15, 2025, 2:31am UTC](https://discuss.roboflow.com/t/how-do-i-detect-cpap-masks-off/9034 "2025-03-15T02:31:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Victor\_Boba](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/victor_boba/32/6870_2.png) [@Victor\_Boba](https://discuss.roboflow.com/u/Victor_Boba)
#### Post date: [March 15, 2025, 2:31am UTC](https://discuss.roboflow.com/t/how-do-i-detect-cpap-masks-off/9034/1 "2025-03-15T02:31:28Z")

</div>

I am working on a device that is a raspberry pi that needs to set off an alarm when a person laying in bed has removed their CPAP mask.  
Pretty sure i need to start a workflow and import images and define them into three labels.

1. With mask on
2. Mask off
3. No mask.  
After that im unclear how to proceed.  
Does anyone know the steps?  
The raspberry pi will be using TensorFlpw lite.

Thanks in advance

---

<div class="post-metadata">

### Author: ![Lake](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/lake/32/4110_2.png) [@Lake](https://discuss.roboflow.com/u/Lake)
#### Post date: [March 18, 2025, 3:55pm UTC](https://discuss.roboflow.com/t/how-do-i-detect-cpap-masks-off/9034/2 "2025-03-18T15:55:04Z")

</div>

Hi there, I think you’re on the right path. I would try an object detection model that detects a CPAP mask with two classes, cpap-on and cpap-off. Then you can make a workflow and run that on your pi!

Here’s our docs on how to run a Roboflow Workflow on a Raspberry Pi! This should help get you started: [Install on Raspberry Pi - Roboflow Inference](https://inference.roboflow.com/install/raspberry-pi/#run-a-workflow)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)
#### Post date: [April 8, 2025, 3:55pm UTC](https://discuss.roboflow.com/t/how-do-i-detect-cpap-masks-off/9034/3 "2025-04-08T15:55:35Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
