A Sleep Sensor Made with Electret Condenser Microphones
Teru Kamogashira, Tatsuya Yamasoba, Shu Kikuta, Kenji Kondo

TL;DR
A low-cost, portable sleep sensor using a microphone and wireless technology can monitor breathing patterns during sleep, offering an accessible alternative to traditional clinical methods.
Contribution
A novel, cost-effective sleep sensor using electret condenser microphones and wireless communication for non-invasive respiratory monitoring.
Findings
The sensor can detect subtle nasal airflow changes with a ±50 Pa pressure range and 20 Hz sampling.
The device is portable, battery-powered, and provides up to 50 hours of continuous monitoring.
The wireless design enhances user comfort and enables home-based sleep monitoring.
Abstract
Measurement of respiratory patterns during sleep plays a critical role in assessing sleep quality and diagnosing sleep disorders such as sleep apnea syndrome, which is associated with many adverse health outcomes, including cardiovascular disease, diabetes, and cognitive impairments. Traditional methods for measuring breathing often rely on expensive and complex sensors, such as polysomnography equipment, which can be cumbersome and costly and are typically confined to clinical settings. These factors limit the performance of respiratory monitoring in routine settings and prevent convenient and extensive screening. Recognizing the need for accessible and cost-effective solutions, we developed a portable sleep sensor that uses an electret condenser microphone (ECM), which is inexpensive and easy to obtain, to measure nasal airflows. Constant current circuits that bias the ECM and circuit…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14- —JSPS KAKENHI
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsObstructive Sleep Apnea Research · Indoor and Outdoor Localization Technologies · Bluetooth and Wireless Communication Technologies
1. Introduction
Measurement of nasal airflow during sleep is essential to evaluate sleep quality [1] and detect sleep apnea syndrome [2]. Specifically, nasal airflow monitoring is useful to detect sleep-related breathing disorders such as sleep apnea [3], which is characterized by repetitive interruptions in breathing. Such interruptions in breathing can lead to fragmented sleep, reduced oxygen levels, and increased risks of serious health problems such as cardiovascular disease [4], diabetes [5], and cognitive impairments [6]. Early and accurate detection of these conditions through respiratory measurements is important to support timely intervention and treatment. Tracking airflow through the nostrils can provide valuable insight into an individual’s breathing stability and overall sleep quality, which is crucial for early diagnosis and treatment planning for such disorders. However, expensive sensors are required to measure nasal airflow, and thus, an inexpensive sensor that can measure airflow and evaluate breathing conditions needs to be developed. We have developed a portable sleep sensor using an electret condenser microphone (ECM) as a micro-pressure sensor. The ECM can be utilized by constructing a circuit with bias and circuit constants suitable for the measurement. By using the ECM as a low-frequency pressure sensor for airflow detection [7,8], nasal airflow can be measured simply and inexpensively. Furthermore, the ECM is highly portable due to the achievement of data transmission using the ZigBee short-range wireless communication standard.
2. Results
The sensor specifications are shown in Table 1, and an overall view is shown in Figure 1. Tubes that detect nasal airflows are commonly available as nasal cannulas and are connected to an ECM through the attachment of the sensor box.
The overall circuit diagram is shown in Figure 2. Details of the equipment components are provided in Appendix A. Data are received by the XBee parent unit, and the results are sequentially recorded in a file by a display and recording program using Processing software (Appendix B).
The digital micro-differential pressure gauge (GC30-101-C9N380 ±100 Pa; Nagano Keiki Co., Ltd., Tokyo, Japan; registered under the Japan Calibration Service System (JCSS) and compliant with the international Mutual Recognition Arrangement (MRA)), exhibited an almost flat frequency response from near direct current (DC) to 10 Hz when the sampling rate was 20 Hz, without an anti-aliasing filter (Figure 3). In the measurement of the ECM, the frequency response without an low-pass filter (LPF) (omitting the 10 μF capacitor of the transimpedance amplifier) was 6 dB/oct high-pass filter (HPF), with a cutoff frequency of around 10 Hz, which is a higher frequency than the 0.07 Hz frequency of the DC servo (Figure 3). When the LPF of 3.4 Hz was set in the transimpedance amplifier, the frequency response of the band-pass filter (BPF) was about 5 Hz. Based on the frequency response curve, the resonant frequency of the micro-speaker of the micro-pressure generator was around 2 kHz. There was no response up to DC because the ECM was not tightly sealed to the diaphragm. Although it is possible to perform simple measurements of ultra-low frequency noise, it might be difficult to measure infrasound.
An example of a calibration using the XBee analog-to-digital converter (ADC) is shown in Figure 4. There were sensitivity differences, depending on the ECM, in the frequency region below 10 Hz, so calibration before measurement is required to compensate for gain differences.
When the sensor is turned on, it will automatically start looking for the XBee parent unit and automatically connect to it. Nasal airflows can be monitored and recorded by starting a measurement program using the Processing software on the computer connected to the XBee parent unit, registering the sensor unit, and starting recording. Airflow measurement data are displayed on the screen for a certain period of time and are also saved in a text file, which can be analyzed later (Figure 5). Figure 6a shows the results of overnight respiratory monitoring. In the magnified trace (Figure 6b), positive values from the center indicate the expiratory phase, while negative values indicate the inspiratory phase. A difference in airflow between the left and right nasal passages was observed, reflecting the nasal cycle associated with body movements such as turning over during sleep. In the prototype, the average current consumption was 37.4 mA, which was within the design specifications, and the device was considered capable of operating for more than two days.
3. Discussion
In this report, we propose a portable nasal airflow meter system that uses an ECM as a micro-pressure sensor. The device is easy to produce and inexpensive. By measuring airflow over time, this system is expected to be useful for the detection of sleep apnea syndrome [2]. It is also expected to facilitate the evaluation of sleep quality [1]. In addition, by performing double recordings of nasal airflow, it is possible to monitor the nasal cycle [9,10], which could yield information regarding the functioning of the autonomic nervous system [11,12].
Although distortion does not affect simple nasal airflow measurement, a considerable amount of secondary distortion occurs when the signal is large due to the square characteristic of continuous drain current (Id) − gate-source voltage (Vgs). To solve this problem, another circuit (Figure 7) has been proposed that cancels the square characteristic. The gain and offset voltage are strongly dependent on pinch-off voltage (Vpo) and drain-source leakage current (Idss); however, in this system, it is theoretically possible to handle large signals with low distortion by selecting an appropriate constant-current FET. Our primary focus was to establish the feasibility of the proposed constant-current bias circuit in terms of improving the power supply rejection ratio (PSRR) through theoretical analysis; as such, no experimental measurements were conducted in this study, and future work will aim to validate the design empirically and compare its performance with that of alternative circuits.
To detect respiratory waveforms, special sensors such as thermistors [13], expensive piezoelectric films [14], and strain gauge pressure sensors [15] are required [16,17] because the respiratory frequency is less than 1 Hz. Recently developed flexible and stretchable self-powered sensors [18] are cost-effective and can be utilized for this purpose in applications where pressure data are not required. In a recently reported system for the non-invasive measurement of nasal airflow velocity, a temperature sensor and wireless data transmission were used [19]; however, this system is inferior to those using pressure sensors in terms of measurement accuracy [13,20]. To evaluate the clinical usefulness of the ECM pressure measurements, it will be important to validate them against a gold-standard reference (pneumotachograph) in a clinical trial. In addition, pressure sensors have the advantage of being able to detect more apnea events than thermistors in polysomnography [21,22]. Our system uses an inexpensive and readily available ECM as a low-frequency pressure sensor for the simple and highly accurate measurement of nasal airflow. In addition, data can be transmitted using an XBee wireless module that implements the ZigBee short-range wireless communication standard [23,24,25], enabling highly portable measurements. This simple and highly accurate system could also be applied to other fields, such as measuring minute pressures inside bronchi [26].
Future developments include implementing algorithms to address artifacts commonly encountered in home sleep monitoring—such as body movement and mouth breathing—and comparing the false-positive and false-negative rates of the portable sleep sensor with those of polysomnography.
As respiratory monitoring technologies continue to advance for use in more accessible and non-clinical settings, parallel progress in neural interface research is redefining how humans engage with technology and their surroundings. Neural interfaces—which connect the brain to external devices by decoding neural signals—hold promise not only in healthcare but also in broader societal contexts. However, their development is hindered by persistent challenges, including material–tissue compatibility, signal fidelity, and algorithmic limitations. These obstacles, as emphasized in recent discussions on the state of neural interface research, highlight the need for interdisciplinary approaches to develop effective, adaptable brain–computer interaction systems [27].
4. Materials and Methods
4.1. Sensor and Circuit Overview
This study employed the XCM6035-2022-354R (SPL Limited, Kowloon, Hong Kong) ECM, which is nearly equivalent to the WM-61A (Panasonic Semiconductor/Nuvoton Technology Corporation, Kyoto, Japan). To suppress left–right crosstalk, the preamplifier stage for the signal from the ECM is a transimpedance amplifier using a current mirror. To suppress high-frequency signals from the ECM and reduce power consumption, the gain bandwidth product (GBWP) of the operational amplifier (op-amp) is 500 kHz or less, and a high-precision type with a low input offset voltage was selected so that offset adjustment is not required to simplify the circuit.
In this example, an LT1078 (Linear Technology Corporation/Analog Devices, Wilmington, MA, USA) device was used in the microphone preamplifier stage, while a MAX492 (Maxim Integrated Products/Analog Devices, Wilmington, MA, USA) device, with rail-to-rail operation at the input and output, was used in the XBee ADC preamplifier stage. The input of the XBee Series 2 ADC ranges from 0 V to 1.2 V, meaning that the diode is driven with a constant current to generate a midpoint voltage of about 0.6 V, which is then converted at the preamplifier stage and input to the XBee ADC.
4.2. Wireless Data Transmission Module
To allow for 2 days of operation, the power consumption requirements of the wireless module are important in its selection. Table 2 shows wireless modules that were available at the time of the study.
The power source of this sensor is four AA batteries, connected in series. Based on the datasheet of Panasonic’s website (Appendix C), a module with a current consumption of 40 mA or less must be used for AA batteries to sustain the operation for more than 2 days. If a switching regulator is used for stepping down, the efficiency will be higher, and thus, the required conditions will be more lenient. All modules using standard Wi-Fi are unsuitable for this sensor because they consume more than twice the power of 40 mA. There was no Java software development kit (Java SDK) available for TWE-Lite. Modules using Bluetooth Low Energy (Bluetooth LE) consume little power and are suitable for this sensor, but are incompatible with Windows 8. There were many issues with interoperability and SDKs in using Bluetooth LE, and earlier versions of Processing software do not support the API library for Processing (Java); therefore, the XBee S2 module was adopted. Once the PAN ID of the coordinator is set on the modules of XBee, they will automatically search for and connect to the network just by turning the device on, making them very easy to use.
4.3. Consideration of the Sensor Amplifier Circuit
The typical circuits that use op-amps to amplify ECM signals with a single power supply, such as batteries, in portable devices are an inverting amplifier circuit and a non-inverting amplifier circuit (Figure 8). The problem with these circuits is that the ECM is directly connected to the power supply through a load resistor of several kΩ, and the midpoint is biased with two resistors and a capacitor, which causes crosstalk between multiple channels operated with a single power supply. Another problem with these circuits is that the output voltage saturates at high sound pressures of about 100 dB SPL or higher in nasal airflows. The requirements for a circuit to detect nasal airflows are low crosstalk and tolerance to high sound pressures.
4.4. Possibility of Reducing Crosstalk Using Regulators
One possible idea to solve the crosstalk problem is to use a constant voltage regulator in each channel. As an experiment, employing a low noise 3.3 V regulator (NJM2863, Nisshinbo Micro Devices Inc., Tokyo, Japan) as a supply voltage to both channels reduced the crosstalk, but series regulators for the constant voltage circuit in battery-powered mode can be problematic in terms of power consumption. Another problem in measuring at high sound pressure using regulators is that the output voltage fluctuates and is difficult to stabilize after the input of high sound pressure. The specified power supply voltage is low at about 2 V, and consequently, the signal from the ECM saturates when the signal is large, causing the bias voltage to fluctuate. To solve this problem when the signal is large, modification of the internal circuit of the ECM itself from an original common source circuit to a common drain (source follower) has been proposed by some enthusiasts. However, this method is difficult and requires an accuracy of less than 1 mm when cutting the terminals of the ECM to separate the source and ground.
4.5. Biasing an ECM with a Constant Current
The operating point of the ECM can be controlled by replacing the load resistance with a constant current load, allowing the ECM to be biased at a higher voltage. High voltage bias increases output impedance but also increases amplification. The typical circuits for this bias method, using current/voltage (I/V) conversion with an op-amp or amplifying with a non-inverting amplifier circuit, are shown in Figure 9. The circuit constant of a constant current should be determined based on the maximum current consumption of the field-effect transistor (FET) specified in the datasheet (usually about 0.5 mA) used in the ECM (2SK3372 (WM-61A), maximum Idss: 460 μA). Adjustment of the constant current is necessary when the output sticks to the power supply voltage or ground, depending on the operating point. In the case of a non-inverting amplifier circuit, the ECM is biased through a load resistor from the servo circuit (Figure 9). An I/V conversion circuit with a servo was adopted to allow for flexibility in circuit constants.
4.6. Consideration of Circuit Constants and Components
4.6.1. Power Supply Voltage
If two AA batteries (3 V) are used, the step-up converter to supply 3.3 V power to a wireless module may be less efficient in obtaining the sufficient current. Additionally, due to the ease of designing circuits using a single power supply or rail-to-rail op-amp, as well as the type of battery case available, four AA batteries were adopted.
4.6.2. I/V Resistance
The sensitivity of XCM6035-2022-354R, which is nearly equivalent to that of WM-61A, is −35 dBV, and the voltage at 1 Pa (94 dB SPL) is 10^−35/20^ = 17.8 mVrms. The specified resistance is 2.2 kΩ; therefore, the current is 17.8 mV/2.2 kΩ = 8.1 μArms/Pa. The maximum sound pressure of the ECM itself is not specified, but the tube pressure measurement evaluates a relatively high pressure as sound pressure. Therefore, to ensure that the peak-to-peak voltage after I/V conversion at 128 dB SPL (50 Pa) was within 6 V (the equivalent of four 1.5 V dry batteries), the I/V resistance is 6 V/(50 × 8.1 × 2 × sqrt(2)) μApp = 5.2 kΩ, and 4.7 kΩ was selected from the E series as a slightly smaller value, with some leaks.
4.6.3. Low-Pass Filter (LPF) and High-Pass Filter (HPF)
The breathing rate varies from 10 to 20 breaths per minute, but the measurement range is slightly lower than this frequency. The LPF of the transimpedance amplifier was set to 3.4 Hz (4.7 kΩ, 10 μF), while the DC servo (HPF) was set to 0.07 Hz (2.2 MΩ, 1 μF). This frequency is low enough to preserve the relevant low-frequency components of the respiratory signal.
4.6.4. Reference Voltage
The shunt regulator TL431 was selected for a reference voltage because it was readily available, but other types can be adopted from the perspective of power consumption. TL431 requires a minimum current of 1 mA, according to the datasheet. In the worst case scenario, the voltage of four AA batteries connected in series, with voltage drop, is 4 V, and the resistance should be 1.5 kΩ or less; therefore, 1 kΩ was selected to flow 1 mA or more at 4 V − 2.5 V = 1.5 V. To extend the operating time, NJM2825 (Nisshinbo Micro Devices Inc., Tokyo, Japan; minimum current: 0.7 μA), LT1389 (Linear Technology Corporation/Analog Devices, Wilmington, MA, USA; minimum current: 0.7 μA), or similar components can be adopted. The output current limitation should be checked to conform to the upper limit of the input bias current of the op-amp.
4.6.5. XBee ADC Midpoint Voltage
In XBee Series 2 and later versions, the maximum input voltage is fixed at 1.2 V, unlike XBee Series 1 and XBee Pro with programmable HCS08, in which the reference voltage for the ADC (Vref) can be set. The forward drop voltage (VF) of the diode was utilized to set the midpoint (0.6 V) with a maximum input of 1.2 V for the ADC. The diode was biased with a constant current using a FET (2SK117, Idss: 1.2–3.0 mA (Y)) because of the simplicity of the circuit. When temperature characteristics, voltage accuracy, and power savings are required, TL431 can also be adopted.
4.6.6. Resistor to Measure Remaining Battery Capacity
Voltage precision is not required; therefore, the division using 120 kΩ and 12 kΩ was utilized to directly input to the XBee ADC (input impedance: 10 kΩ). Current consumption is about 45 μA, which is much less than that of the wireless module and does not pose a problem in terms of battery operating time.
4.6.7. Op-amps
Requirements for Op-amps to Amplify the ECM
The maximum voltage of four AA batteries is 1.6 V × 4 = 6.4 V, and is 7 V with a margin. The package is a plastic dual in-line package (PDIP), employed to easily handle components. The I/V resistor is 4.7 kΩ; therefore, the input bias current of the op-amp should be 0.2 μA or less when the error is required to be 1 mV or less. The input offset current also affects the error to the same extent as the feedback resistor; therefore, this parameter is also set to the same condition. The amplification factor in this circuit is low, and the input offset voltage does not severely affect the error. When the ADC range is 1.2 Vpp and the error is kept within ±1 bit with a 12-bit ADC, the offset voltage should be within 1.2 V/2^12^ × 2 = 0.6 mV. The offset voltage of a typical op-amp is about 1 mV, which generally satisfies this condition. The frequency to be handled is 10 Hz or less; therefore, a GBWP of several hundred kilohertz or less is sufficient, and a high-speed op-amp that consumes power is unnecessary. The sink current must be 1 mA or more to bias the load resistor connected to the current mirror and to supply power to the ECM (about 0.5 mA).
In summary, the conditions are as follows: (1) two channels, 8-pin PDIP, maximum voltage of 7 V or more, single power supply-compatible, rail-to-rail or output up to about 1 V below the power supply voltage; (2) as little current consumption as possible; (3) input bias current and input offset current of 0.2 μA or less; (4) input offset voltage of 1 mV or less, (5) GBWP of several hundred kilohertz or less; and (6) maximum output current of 1 mA or more.
An example of results based on the aforementioned conditions using an op-amp search system provided by a semiconductor manufacturer is shown in Appendix D. LT1078 was selected from the list based on its availability.
Op-amp Current
Op-amps with a large GBWP and large slew rate consume a lot of power and are unsuitable for this purpose, but several op-amps were tested for proper operation. NJM2732 (Nisshinbo Micro Devices Inc., Tokyo, Japan) and LMC6482 (National Semiconductor/Texas Instruments, Dallas, TX, USA) worked normally, but the output was stuck to the power supply voltage or ground with NJU7096 (Nisshinbo Micro Devices Inc., Tokyo, Japan). The maximum source/sink current is about 10/2 and 30/20 mA for NJM2732 and LMC6482, respectively, which is greater than the maximum current of the ECM. However, the maximum source/sink current for NJU7096 is only about 200/1000 μA, which is insufficient to supply power to the ECM.
Op-amp Noise
The frequency band in this circuit is relatively narrow (0.07–3.4 Hz); therefore, noise is unlikely to be a problem. The estimated noise based on the LT1078 datasheet is detailed below. The input-equivalent noise current density is 0.06 pA/sqrt(Hz)@10 Hz, and 1/f noise from 0.07 Hz to 3.4 Hz is 0.06 pA × sqrt(10 × ln(3.4/0.07)) = 0.24 pArms, which is 1.1 nVrms when the feedback resistor is 4.7 kΩ. The input-equivalent noise voltage density is 29 nV/sqrt(Hz)@10 Hz with a 1/f corner of 0.7 Hz. The graph in the datasheet shows that in this region, where 1/f noise is not dominant, the band noise is 30 × sqrt(3.4 − 0.07) = 55 nVrms, which will not affect the measurements.
Level Shifting of the Op-amp
The conditions of the preamplifier op-amp, which performs level shifting from 2.5 V to 0.6 V in order to connect to XBee ADC, are more lenient than those described above. The output voltage is low at 0–1.2 V; therefore, MAX492, which is a rail-to-rail low-power op-amp, was selected.
4.7. Pressure Calibration Using a Micro-Pressure Sensor
The lower limit of the ECM is generally up to about 50 Hz in the frequency response figure provided in the datasheet (Appendix E); therefore, the frequency response below 50 Hz was measured. Air pressure handled by this sensor is very low at several hundred pascals, which is difficult to measure with a general barometer. A small digital micro-differential pressure gauge (GC30) was used to measure the frequency response of the pressure to the ECM. A calibration device to generate a very small pressure with a sine wave for this measurement was also produced (Appendix F).
5. Conclusions
This work presents a portable nasal flow-measuring system that uses an ECM as a micro-pressure sensor, making it simple and inexpensive to fabricate the device. This portable sleep sensor provides a practical, accessible, and cost-effective solution to measure nasal airflow during sleep. The circuit biasing the ECM and the suitable circuit constants for measurements enable the specific use of the ECM. In addition, data transmission using the ZigBee short-range wireless communication standard enables the achievement of highly portable measurements. The sensor provides a convenient way to assess sleep quality and detect potential sleep disturbances and can improve the accessibility of sleep monitoring, while maintaining high portability and ease of use.
6. Patents
This work is patented as PCT/JP2019/005287 (WO/2019/167643) “Rhinomanometry Device”.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Snoeks S. Velasco E. Talavera K. Hellings P.W. Nasal Obstruction: Overview of Pathophysiology and Presentation of a Clinically Relevant Preoperative Plan for Rhino(Septo)plasty Facial Plast. Surg.20244027528610.1055/s-0043-177785038224694 · doi ↗ · pubmed ↗
- 2Trang H. Leske V. Gaultier C. Use of nasal cannula for detecting sleep apneas and hypopneas in infants and children Am. J. Respir. Crit. Care Med.200216646446810.1164/rccm.211011412186821 · doi ↗ · pubmed ↗
- 3Choudhury N. Deshmukh P. Obstructive Sleep Apnea in Adults and Ear, Nose, and Throat (ENT) Health: A Narrative Review Cureus 202310.7759/cureus.4763738022002 PMC 10668538 · doi ↗ · pubmed ↗
- 4Yeghiazarians Y. Jneid H. Tietjens J.R. Redline S. Brown D.L. El-Sherif N. Mehra R. Bozkurt B. Ndumele C.E. Somers V.K. Obstructive Sleep Apnea and Cardiovascular Disease: A Scientific Statement from the American Heart Association Circulation 2021144 E 56E 6710.1161/CIR.000000000000098834148375 · doi ↗ · pubmed ↗
- 5Kurnool S. Mc Cowen K.C. Bernstein N.A. Malhotra A. Sleep Apnea, Obesity, and Diabetes—An Intertwined Trio Curr. Diab. Rep.20232316517110.1007/s 11892-023-01510-637148488 PMC 10239381 · doi ↗ · pubmed ↗
- 6Gills J.L. Bubu O.M. Obstructive Sleep Apnea and Alzheimer’s Disease Pathology: Is Sleep Architecture the Missing Key?J. Alzheimer’s Dis.202498697310.3233/JAD-23138538363613 PMC 11851638 · doi ↗ · pubmed ↗
- 7Jeng Y.N. Yang T.M. Lee S.Y. Response identification in the extremely low frequency region of an electret condenser microphone Sensors 20111162363710.3390/s 11010062322346594 PMC 3274121 · doi ↗ · pubmed ↗
- 8Kinnerup R.T. Knott A. Thomsen O.C. Marbjerg K. Rasmussen P. Preamplifier with ultra low frequency cutoff for infrasonic condenser microphone Proceedings of the American Society of Mechanical Engineers, Noise Control and Acoustics Division (Publication) NCAD New York City, NY, USA,19–22 August 2012605616
