Apnea Board Forum - CPAP | Sleep Apnea
Data capable CPAP machines...how do they work? - Printable Version

+- Apnea Board Forum - CPAP | Sleep Apnea (https://www.apneaboard.com/forums)
+-- Forum: Public Area (https://www.apneaboard.com/forums/Forum-Public-Area)
+--- Forum: Main Apnea Board Forum (https://www.apneaboard.com/forums/Forum-Main-Apnea-Board-Forum)
+--- Thread: Data capable CPAP machines...how do they work? (/Thread-Data-capable-CPAP-machines-how-do-they-work)

Pages: 1 2


Data capable CPAP machines...how do they work? - cate1898 - 09-12-2015

Very interested in knowing how a fully data capable CPAP machine (ie: S9 Elite, A10 Elite, PR version etc) is able to provide detailed sleep data? I understand how the sleep labs are able to gather this info as patients are wired up in many places on the body and hooked into their more complex machine etc. But how do CPAP machines gather information seeing the only connection is the face mask?

Hoping to be informed enough to be able to tell my sleep Doc why I need a fully data capable machine for my loaner period instead of the brick S9 Escape I was given.


RE: Data capable CPAP machines...how do they work? - justMongo - 09-12-2015

Such machines have two main sensors. A flow sensor and a pressure sensor. The flow sensor can detect a persons inhalation and exhalation waveform. The sample rate for this data is typically 25 samples per second. The heart of the machine is a microprocessor that is essentially a computer specialized for processing the data. It analyzes the waveform and can detect flow limitation and apnea events. Resmed's machines use what they call the FOT algorithm to detect if an apnea is due to obstruction or in a clear airway apnea (Central.) High sample rate data is recorded to an SD card like those used in digital cameras. There is not a lot of mechanical difference between a "brick" and a fully data machine -- it's mainly the firmware that makes a difference. There really should not be such a large price difference between a "brick" and a fully data machine.

The fully data machine provides less data than a full up sleep study at a sleep lab. They include an EKG, eye movement sensors to detect REM sleep, leg movement sensors, pulse oximetry, and an EEG to detect the phase of sleep.


RE: Data capable CPAP machines...how do they work? - ramblingasian - 09-12-2015

CPAPS gather information by scanning your breathing patterns - based on that it can "guess" accurately when you have a Obstructive, Central or Hypopnea. Granted, the older machines may have not done a perfectly accurate job, but that's how they gather the information.

APAPS work by adjusting the pressures based on your breathing patterns will raise or lower your pressures.


RE: Data capable CPAP machines...how do they work? - Ghost1958 - 09-12-2015

Ill take a stab at this. Answer is for a lot of things they cant.
They do a decent job of telling CA from OAs, flow limitations. RERAs they make a guess at.
If the data is based on flow and backpressure or lack of it, they do a good job.
Without wrist pulse ox monitors etc they cant tell your puse rate O2 Sats etc like the lab can nor read your brain waves.

All in all unless you have something unusual going on that needs brsin wave data etc, they give the average pap user all the data he or she needs to optimise therapy or tell if something is obviously wrong.


RE: Data capable CPAP machines...how do they work? - zonk - 09-12-2015

The machine have air flow sensors
When air flow drop 80% below the baseline for 10 seconds or more, an apnea is scored
Of course the machine does not have EEG, so an apnea can be scored while you're awake which are not scored in the sleep lab PSG

There is more to it ...


RE: Data capable CPAP machines...how do they work? - GWild - 09-13-2015

A person breathes in about 20 times a minute. A good sample of that sort of timing - to get a fair view of air flowing in and out or a person - requires a few hundred samples per breath.

Since memory is cheap these days, machines typically sample more than they need since it alleviates several sampling theory byproducts like aliasing. In my machine, it records about 150k bytes per ten minute period, or 15k bytes per minute, or 250 bytes per second. A byte is 8 bits, so there are 2,000 bits of data being saved. Unsure if compression is being used, but probably is, so this is a lower estimate.

Today's machines with airflow and pressure sensors have analog to digital converters that take those values and convert them for the computer (embedded microprocessor) to process. The MCP runs at several MHz, so dealing with 250 byte a second real-time is easy enough. Though, I suspect the actual sample rate of the sensors is much higher than 250Hz, more likely around 1kHz to 10kHz and the extra data used to improve computational and analysis accuracy. Much of this work is done in specialized hardware designed for the purpose... the math and programming is called DSP (digital signal processing) and is usually bundled on a special DSP chip or FPGA. The MCP most likely simply routes the data between sensors, DSP and memory. The DSP chip probably has the proprietary algorithm to control the air pump to provide the correct pressures at the correct times.

These days the FPGA's being sold have sections that can even be programmed with MCP cores, ADC's, MUX's, and more; it can all be bundled into a single chip. All that's needed outside the core chip is power devices to drive the motor.

To get a flow rate measurement, one only needs two pressure sensors in a tube, and some tinkering with diameters and positions.

I've kindof gone off the deep end in detail... but think iPhone for size and capability; and consider that an APAP is doing is much much simpler work.



RE: Data capable CPAP machines...how do they work? - archangle - 09-13-2015

Lots of good info above. Another wording.

Measure pressure.
Measure airflow.
Change fan speed to control pressure.

Math and magic.

Graphs and data.

Much the same as what happens in a sleep lab, but with fewer sensors and a lot more computer processing of the data to determine AHI, CA, etc.

The CPAP machine suffers from not having an EEG sensor and chest belt. It can't tell whether the patient is awake, and can't be as accurate about central apneas.

The data capable CPAP still provides a LOT of very useful data. It's also data from your real therapy, every night. It's a bit like having a diabetic check his own blood sugar daily. it's not as good as a full set of lab tests, but you'd be a fool not to use it, since it's freely available and very useful.


RE: Data capable CPAP machines...how do they work? - justMongo - 09-13-2015

No one is going to get into the Nyquist–Shannon sampling theorem and Nyquist frequency? [/sarc]


RE: Data capable CPAP machines...how do they work? - cate1898 - 09-13-2015

Wow! A lot of the info from the replies is far too complicated for my foggy brain to comprehend. I get the general gist of it though and it makes sense. Good to know and thanks to all for the detailed and helpful replies!!! This forum has so many helpful and knowledgeable people!!!


RE: Data capable CPAP machines...how do they work? - PoolQ - 09-13-2015

As to your question " able to tell my sleep Doc why I need a fully data capable machine for my loaner period instead of the brick "
There are many settings that are referred to as "comfort" settings that help a patient tolerate the main therapy. If a patient will tolerate the therapy, they will use the therapy.

A data capable machine allows the patient to see if the changes they made to these comfort settings actually improved their therapy tolerance. Most things regarding CPAP therapy happen while we are asleep, so having a machine that can tell us what happened while we were sleeping can in some cases be the only feedback we get and help us to adjust the comfort settings so we tolerate the therapy better.

Many patients stop using CPAP, even though the therapy is reducing their apneas, because they just cannot get comfortable using the machine. A data capable machine gives the patient the best chance of being successful.