ELECTRONIC DEVICE AND METHOD FOR DETECTING APNEA
20220202358 · 2022-06-30
Assignee
Inventors
Cpc classification
G01S13/88
PHYSICS
G01S7/2923
PHYSICS
A61B5/0004
HUMAN NECESSITIES
A61B5/002
HUMAN NECESSITIES
A61B5/05
HUMAN NECESSITIES
A61B5/6898
HUMAN NECESSITIES
G01S7/415
PHYSICS
G01S13/86
PHYSICS
International classification
Abstract
An electronic device and a method for detecting apnea are provided. The method includes: transmitting a wireless signal to a human subject, receiving an echo corresponding to the wireless signal, and obtaining channel state information (CSI) from the echo; generating a detection result according to the CSI; outputting the detection result. Here, the detection result indicates whether an apnea event has occurred on the human subject.
Claims
1. An electronic device for detecting apnea, comprising: a transceiver; a storage medium, storing a plurality of modules; and a processor, coupled to the storage medium and the transceiver and accessing and executing the modules, wherein the modules comprise: a data collection module transmitting a wireless signal to a human subject through the transceiver, receiving an echo corresponding to the wireless signal through the transceiver, and obtaining channel state information from the echo; a detection module, generating a detection result according to the channel state information, wherein the detection result indicates whether an apnea event has occurred on the human subject; and an output module, outputting the detection result through the transceiver.
2. The electronic device according to claim 1, further comprising: an air cushion; and an air pump, connected to the air cushion and communicating with the transceiver, wherein the modules further comprise: an air cushion control module, inflating the air cushion by configuring the air pump through the transceiver in response to the apnea event.
3. The electronic device according to claim 1, wherein the detection module is further configured to: calculate a first-order differential signal corresponding to the channel state information; and detect the apnea event according to the first-order differential signal.
4. The electronic device according to claim 3, wherein the detection module is further configured to: generate a filtering signal corresponding to the channel state information according to a filtering algorithm; and differentiate the filtering signal to generate the first-order differential signal.
5. The electronic device according to claim 4, wherein the filtering algorithm is associated with at least one of the following: moving average filtering, high pass filtering, low pass filtering, and bandpass filtering.
6. The electronic device according to claim 3, wherein the detection module is further configured to: generate a plurality of frequency responses corresponding to the first-order differential signal, wherein the frequency responses respectively correspond to a plurality of time points; obtain a plurality of global maximum values respectively corresponding to the frequency responses; generate a global maximum value curve corresponding to a first reference time slot according to the global maximum values, wherein the first reference time slot comprises the time points; and detect the apnea event according to the global maximum value curve.
7. The electronic device according to claim 6, wherein the detection module is further configured to: extract a second reference time slot from the first reference time slot according to a threshold, wherein the second reference time slot corresponds to a subset of the global maximum values, and each of the global maximum values in the subset is less than the threshold; and determine that the apnea event is detected in response to the second reference time slot being greater than an apnea time slot.
8. The electronic device according to claim 7, wherein the detection module is further configured to: arrange the global maximum values from small to large to generate a global maximum value sequence; and select an N.sup.th global maximum value from the global maximum value sequence as the threshold, wherein N is a product of a ratio of the apnea time slot to the first reference time slot and the quantity of the global maximum values.
9. The electronic device according to claim 6, wherein the detection module is further configured to: generate an upper bound and a lower bound according to a median of the first-order differential signal; determine a data point larger than the upper bound or smaller than the lower bound in the first-order differential signal as an outlier; and correct the outlier to generate a corrected first-order differential signal, and generate the frequency responses according to the corrected first-order differential signal.
10. The electronic device according to claim 9, wherein the detection module corrects the outlier according to one of following steps: replacing the outlier with the median; and performing an Interpolation calculation on a first data point earlier than the data point and a second data point later than the data point to correct the outlier, wherein the first data point and the second data point are included in the first-order differential signal.
11. A method of detecting apnea, comprising: transmitting a wireless signal to a human subject, receiving an echo corresponding to the wireless signal, and obtaining channel state information from the echo; generating a detection result according to the channel state information, wherein the detection result indicates whether an apnea event has occurred on the human subject; and outputting the detection result.
12. The method according to claim 11, further comprising: configuring an air pump to inflate an air cushion in response to the apnea event.
13. The method according to claim 11, wherein the step of generating the detection result according to the channel state information comprises: calculating a first-order differential signal corresponding to the channel state information; and detecting the apnea event according to the first-order differential signal.
14. The method according to claim 13, wherein the step of calculating the first-order differential signal corresponding to the channel state information comprises: generating a filtering signal corresponding to the channel state information according to a filtering algorithm; and differentiating the filtering signal to generate the first-order differential signal.
15. The method according to claim 14, wherein the filtering algorithm is associated with at least one of the following: moving average filtering, high pass filtering, low pass filtering, and bandpass filtering.
16. The method according to claim 13, wherein the step of detecting the apnea event according to the first-order differential signal comprises: generating a plurality of frequency responses corresponding to the first-order differential signal, wherein the frequency responses respectively correspond to a plurality of time points; obtaining a plurality of global maximum values respectively corresponding to the frequency responses; generating a global maximum value curve corresponding to a first reference time slot according to the global maximum values, wherein the first reference time slot comprises the time points; and detecting the apnea event according to the global maximum value curve.
17. The method according to claim 16, wherein the step of detecting the apnea event according to the global maximum value curve comprises: extracting a second reference time slot from the first reference time slot according to a threshold, wherein the second reference time slot corresponds to a subset of the global maximum values, and each of the global maximum values in the subset is less than the threshold; and determining that the apnea event is detected in response to the second reference time slot being greater than an apnea time slot.
18. The method according to claim 17, wherein the step of detecting the apnea event according to the global maximum value curve further comprises: arranging the global maximum values from small to large to generate a global maximum value sequence; and selecting an N.sup.th global maximum value from the global maximum value sequence as the threshold, wherein N is a product of a ratio of the apnea time slot to the first reference time slot and the quantity of the global maximum values.
19. The method according to claim 16, wherein the step of generating the frequency responses corresponding to the first-order differential signal comprises: generating an upper bound and a lower bound according to a median of the first-order differential signal; determining a data point larger than the upper bound or smaller than the lower bound in the first-order differential signal as an outlier; and correcting the outlier to generate a corrected first-order differential signal, and generating the frequency responses according to the corrected first-order differential signal.
20. The method according to claim 19, wherein the step of correcting the outlier to generate the corrected first-order differential signal comprises one of following steps: replacing the outlier with the median; and performing an interpolation calculation on a first data point earlier than the data point and a second data point later than the data point to update the outlier, wherein the first data point and the second data point are included in the first-order differential signal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0028] The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
DETAILED DESCRIPTION OF DISCLOSED EMBODIMENTS
[0038] In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed embodiments. It will be apparent, however, that one or more embodiments may be practiced without these specific details. In other instances, well-known structures and devices are schematically shown in order to simplify the drawing.
[0039]
[0040] The processor 110 is, for instance, a central processing unit (CPU) or any other programmable general-purpose or special-purpose micro control unit (MCU), microprocessor, digital signal processor (DSP), programmable controller, application specific integrated circuit (ASIC), graphics processing unit (GPU), image signal processor (ISP), image processing unit (IPU), arithmetic logic unit (ALU), complex programmable logic device (CPLD), field programmable gate array (FPGA), any other similar component, or a combination of the above components. The processor 110 may be coupled to the storage medium 120 and the transceiver 130 and may access and execute a plurality of modules and various application programs stored in the storage medium 120.
[0041] The storage medium 120 is, for instance, any type of fixed or portable random access memory (RAM), read only memory (ROM), flash memory), hard disk drive (HDD), solid state drive (SSD), any other similar component, or a combination of the above components, and the storage medium 120 may be configured to store the modules or various application programs that may be executed by the processor 110. In the embodiment, the storage medium 120 may store the modules including a data collection module 121, a sub-carrier selection module 122, a detection module 123, an output module 124, and an air cushion control module 125, and the functions of these modules are described hereinafter.
[0042] The transceiver 130 transmits and receives signals in a wireless or wired manner. The transceiver 130 may also perform operations including low noise amplification, impedance matching, frequency mixing, upward or downward frequency conversion, filtering, amplification, and the like. The processor 110 may communicate with the air pump 200 through the transceiver 130.
[0043] The air pump 200 is coupled to the air cushion 300. The processor 110 may be equipped with the air pump 200 to inflate or deflate the air cushion 300.
[0044] In order to detect whether an apnea event occurs in a human subject, the data collection module 121 may transmit a wireless signal to the human subject through the transceiver 130 and receive an echo corresponding to the wireless signal through the transceiver 130. The wireless signal is, for instance, any kind of radio frequency signal (e.g., a Wi-Fi signal). In an embodiment, the sub-carrier selection module 122 may select a specific sub-carrier. The data collection module 121 may transmit the wireless signal or receive the echo of the wireless signal from the selected sub-carrier through the transceiver 130. For instance, if the wireless signal is the Wi-Fi signal, the sub-carrier selection module 122 may select the 3.sup.rd to the 27.sup.th sub-carriers and/or the 39.sup.th to the 64.sup.th sub-carriers of the Wi-Fi signal, so as to transmit the wireless signal or receive the echo of the wireless signal.
[0045] After receiving the echo through the transceiver 130, the data collection module 121 may obtain channel state information (CSI) from the echo. The detection module 123 may generate a detection result indicating whether an apnea event has occurred on the human subject according to the CSI. The output module 124 may output the detection result through the transceiver 130. For instance, the output module 124 may transmit the detection result to a terminal device (e.g., a smart phone) of a user. The user may interpret the detection result through the terminal device to determine whether the apnea event has occurred on the human subject during sleep.
[0046]
[0047] In an embodiment, before calculating the first-order differential signal, the detection module 123 may generate a filtering signal corresponding to the CSI according to a filtering algorithm.
[0048] In an embodiment, after the first-order differential signal is generated, the detection module 123 may correct an outlier in the first-order differential signal to generate a corrected first-order differential signal.
[0049] The detection module 123 may correct the outlier in the first-order differential signal to generate a corrected first-order differential signal. In an embodiment, the detection module 123 may replace the outlier with the median m, so that the value of the corrected data point PA is the same as the median m. In an embodiment, the detection module 123 may perform an interpolation calculation on a data point PB earlier than the data point PA and a data point PC later than the data point PA in the first-order differential signal to correct the outlier. The corrected value of the data point PA may be equal to the interpolation calculation result of the data point PB and the data point PC.
[0050]
[0051]
[0052] After obtaining the reference time slot T2, the detection module 123 may determine whether the reference time slot T2 is greater than an apnea time slot. If the reference time slot T2 is greater than the apnea time slot, the detection module 123 may determine that the apnea event is detected. Accordingly, the detection module 123 may generate a detection result indicating the occurrence of the apnea event. The apnea time slot may be configured by the user of the electronic device 100. For instance, the user may configure the apnea time slot to ten seconds according to the definition of apnea in the medical community.
[0053] The threshold TH may be generated by the detection module 123. Specifically, the detection module 123 may arrange the global maximum values in the global maximum value curve 27 from small to large to generate a global maximum value sequence 28. Then, the detection module 123 may select an N.sup.th global maximum value from the global maximum value sequence 28 as the threshold TH. The detection module 123 may obtain N according to equation (1), wherein T is the apnea time slot, T1 is the reference time slot, and K is the quantity of the global maximum values (i.e., the global maximum value sequence 28 contains K global maximum values).
[0054]
[0055]
[0056] To sum up, the electronic apparatus provided in one or more embodiments of the disclosure may be applied to detect the CSI without contacting the human subject and may still determine whether the apnea event has occurred on the human subject. There may exist an offset during the sleep time of the human subject (e.g., the offset that may occur because of different sleep stages and may affect the detection result. In response thereto, the CSI may be differentiated to eliminate the offset according to one or more embodiments of the disclosure. As provided in one or more embodiments of the disclosure, the frequency responses may serve to determine whether the apnea event occurs. If the apnea event occurs, the air cushion may be applied to raise the head of the human subject to open the human subject's respiratory tract in one or more embodiments of the disclosure, thereby preventing the occurrence of respiratory arrest events. As such, in one or more embodiments of the disclosure, whether the apnea event has occurred on the human subject can be monitored; what is more, the sleep quality of the human subject may also be improved.
[0057] It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments. It is intended that the specification and examples be considered as exemplary only, with a true scope of the disclosure being indicated by the following claims and their equivalents.