Sleep apnea detector app

The video below demonstrates how to use the app.

Until 1.06 the application is calibrated.

At 1:20, respiratory arrest is simulated.

At 1.50, breathing is restored.

At 2.12 the alarm log opens.


For what purposes is this application created?


If you snore in your sleep, feel sleepy during the day, and feel tired, you may have sleep apnea. Sleep apnea is when breathing stops during sleep, lasting up to 2 minutes.


Suspending breathing at night has a bad effect on the functioning of the heart, provoking arrhythmia, heart failure, and angina attacks. In 50% of cases, concomitant diseases develop - arterial hypertension, coronary heart disease, bronchial asthma.


Typically, sleep apnea is diagnosed in clinics using a device that records many parameters of the body of a sleeping person.


Sleep apnea detector app is not an alternative to a medical examination, however, it can in some cases help you determine the presence of sleep apnea.


In addition, this app can use a sound to wake you up or alert people nearby if you don't move or breathe for more than 20 seconds.


The "Sleep apnea detector" app stores in a log all moments when breathing stops. You can forward this log to your doctor.


Preparing to use the application

Lie down in bed.

Launch the application.

Place your iPhone on the bed next to you and find a place for it where, during your quiet breathing, the circle on the screen will rotate about half a turn (180 degrees).

It is better to orient the iPhone parallel to your body and place it opposite your chest.

To avoid damaging your iPhone, it should be placed in a durable protective case.


App Calibration

To start calibrating the application, press the bottom left button and lie quietly, without moving and breathing evenly and calmly.

After 12 seconds, a number will appear under the rotating circle showing the amplitude of your breathing. Optimally, this figure should be between 200 and 350. It will be updated every 10 seconds.

If you were lying motionless, after a minute in the center of the large circle, instead of a number, a circle of smaller diameter will appear and a short click will be heard. This means the application is ready to go.

If you were moving during calibration and the number under the circle was greater than 500 for some periods of time, those periods will be ignored and calibration will take longer.

If you don't feel comfortable looking at the screen while keeping track of the numbers during calibration, you can temporarily enable read-aloud mode by pressing the speaker button.


Application in working mode

If, after the application is ready to work, you stop moving and breathing, within 20 seconds the circle will turn red and an alarm will sound.

You can select a short or long signal using the bell button. The same button will allow you to turn off the alarm.


Checking the application's functionality

To make sure the application is working, you can hold your breath for 20 seconds and lie still, or get out of bed for the same 20 seconds.


Alarm log

Each time an alarm is triggered, an entry appears in the application log, which is a time stamp of the moment the breathing stopped.

You can view the entries by clicking on the right button at the top of the screen.

On the page for viewing entries, by clicking on the button in the center of the top of the screen, you can copy entries to the clipboard for sending them via instant messengers or pasting them into any other application.

By clicking on the right button you can clear the log of entries.

The left button will take you back to the main screen of the application.


Pause

If you need to get out of bed for a while, click on the bottom left button to pause the application. Otherwise, the application will assume that you are not breathing and will sound alarms and log them every 10 seconds.

To continue, click this button again.


Reset

If the application often gives false signals or, on the contrary, does not work when breathing stops, you can recalibrate it by clicking on the lower right button.


Energy Saving

To reduce power consumption, you can reduce the iPhone screen brightness to minimum.


Notes

The alarm will not work if you were moving while you stopped breathing, or if the vibrations of the iPhone were caused by other reasons.

The app will not work on hard surfaces, such as if you sleep on the floor. The bed should deform due to muscle contractions during your breathing.

If screen light is making it difficult for you to sleep, turn your iPhone so the screen is facing down, while maintaining its position on the bed.

If your iPhone has an operating system higher than 15, reading numbers out loud may not work. Unfortunately, I have no way to fix this error because the App Store won't allow me to update this app.

One more demo:

At 0.04 - the application is turned on, calibration begins.

During the calibration process, you can see the figure rotate in time with my breathing.

At 1.07 - application calibration is completed.

At 1.26 I'm holding my breath.

At 1.37 the alarm sounds.

At 1.57 I hold my breath again

At 2.07 the alarm sounds

Then I open the log and the moments of respiratory arrest are recorded there.


The red color of the numbers at some points in time shows that the amplitude of the change in the angle of inclination of the iPhone body exceeds the recommended limits. This is due to my intense movements and too deep breathing while recording this video. If this happens while you are calibrating the application, try to find a place on the bed for the iPhone where this amplitude will be within 200...350 units.


https://apps.apple.com/us/app/sleep-apnea-detector/id6474300830