This disclosure relates generally to electronic health monitoring systems and processes, More specifically, this disclosure relates to a system and method for deep audio spectral processing for respiration rate and depth estimation using smart earbuds.
Respiration rate (breaths per minute) and respiration depth (such as shallow, normal, or deep) are important health vital signs. Passive, continuous, and unobtrusive monitoring of respiration rate and depth helps many health and fitness applications determine an indicator of underlying disease, a biomarker for cardiopulmonary arrest, sleep quality, and the like.
This disclosure provides a system and method for deep audio spectral processing for respiration rate and depth estimation using smart earbuds.
In a first embodiment, a method includes obtaining at least one breathing audio sample of a user captured using earbuds worn by the user. The method also includes converting the at least one breathing audio sample to a breathing spectrogram configured as an image. The method further includes processing the breathing spectrogram using a trained multi-task convolutional neural network (CNN) to identify a breathing rate and a breathing depth of the user. In addition, the method includes outputting the breathing rate and the breathing depth of the user.
In a second embodiment, an electronic device includes at least one processing device configured to obtain at least one breathing audio sample of a user captured using earbuds worn by the user. The at least one processing device is also configured to convert the at least one breathing audio sample to a breathing spectrogram configured as an image. The at least one processing device is further configured to process the breathing spectrogram using a trained multi-task CNN to identify a breathing rate and a breathing depth of the user. In addition, the at least one processing device is configured to output the breathing rate and the breathing depth of the user.
In a third embodiment, a non-transitory machine-readable medium contains instructions that when executed cause at least one processor of an electronic device to obtain at least one breathing audio sample of a user captured using earbuds worn by the user. The medium also contains instructions that when executed cause the at least one processor to convert the at least one breathing audio sample to a breathing spectrogram configured as an image. The medium further contains instructions that when executed cause the at least one processor to process the breathing spectrogram using a trained multi-task CNN to identify a breathing rate and a breathing depth of the user. In addition, the medium contains instructions that when executed cause the at least one processor to output the breathing rate and the breathing depth of the user.
Other technical features may be readily apparent to one skilled in the art from the following figures, descriptions, and claims.
Before undertaking the DETAILED DESCRIPTION below, it may be advantageous to set forth definitions of certain words and phrases used throughout this patent document. The terms “transmit,” “receive,” and “communicate,” as well as derivatives thereof, encompass both direct and indirect communication. The terms “include” and “comprise,” as well as derivatives thereof, mean inclusion without limitation. The term “or” is inclusive, meaning and/or. The phrase “associated with,” as well as derivatives thereof, means to include, be included within, interconnect with, contain, be contained within, connect to or with, couple to or with, be communicable with, cooperate with, interleave, juxtapose, be proximate to, be bound to or with, have, have a property of, have a relationship to or with, or the like.
Moreover, various functions described below can be implemented or supported by one or more computer programs, each of which is formed from computer readable program code and embodied in a computer readable medium. The terms “application” and “program” refer to one or more computer programs, software components, sets of instructions, procedures, functions, objects, classes, instances, related data, or a portion thereof adapted for implementation in a suitable computer readable program code. The phrase “computer readable program code” includes any type of computer code, including source code, object code, and executable code. The phrase “computer readable medium” includes any type of medium capable of being accessed by a computer, such as read only memory (ROM), random access memory (RAM), a hard disk drive, a compact disc (CD), a digital video disc (DVD), or any other type of memory. A “non-transitory” computer readable medium excludes wired, wireless, optical, or other communication links that transport transitory electrical or other signals. A non-transitory computer readable medium includes media where data can be permanently stored and media where data can be stored and later overwritten, such as a rewritable optical disc or an erasable memory device.
As used here, terms and phrases such as “have,” “may have,” “include.” or “may include” a feature (like a number, function, operation, or component such as a part) indicate the existence of the feature and do not exclude the existence of other features. Also, as used here, the phrases “A or B,” “at least one of A and/or B,” or “one or more of A and/or B” may include all possible combinations of A and B. For example, “A or B,” “at least one of A and B,” and “at least one of A or B” may indicate all of (1) including at least one A, (2) including at least one B, or (3) including at least one A and at least one B. Further, as used here, the terms “first” and “second” may modify various components regardless of importance and do not limit the components. These terms are only used to distinguish one component from another. For example, a first user device and a second user device may indicate different user devices from each other, regardless of the order or importance of the devices, A first component may be denoted a second component and vice versa without departing from the scope of this disclosure.
It will be understood that, when an element (such as a first element) is referred to as being (operatively or communicatively) “coupled with/to” or “connected with/to” another element (such as a second element), it can be coupled or connected with/to the other element directly or via a third element. In contrast, it will be understood that, when an element (such as a first element) is referred to as being “directly coupled with/to” or “directly connected with/to” another element (such as a second element), no other element (such as a third element) intervenes between the element and the other element.
As used here, the phrase “configured (or set) to” may be interchangeably used with the phrases “suitable for,” “having the capacity to,” “designed to,” “adapted to,” “made to,” or “capable of” depending on the circumstances. The phrase “configured (or set) to” does not essentially mean “specifically designed in hardware to.” Rather, the phrase “configured to” may mean that a device can perform an operation together with another device or parts. For example, the phrase “processor configured (or set) to perform A, B, and C” may mean a generic-purpose processor (such as a CPU or application processor) that may perform the operations by executing one or more software programs stored in a memory device or a dedicated processor (such as an embedded processor) for performing the operations.
The terms and phrases as used here are provided merely to describe some embodiments of this disclosure but not to limit the scope of other embodiments of this disclosure. It is to be understood that the singular forms “a,” “an,” and “the” include plural references unless the context clearly dictates otherwise. All terms and phrases, including technical and scientific terms and phrases, used here have the same meanings as commonly understood by one of ordinary skill in the art to which the embodiments of this disclosure belong. It will be further understood that terms and phrases, such as those defined in commonly-used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined here. In some cases, the terms and phrases defined here may be interpreted to exclude embodiments of this disclosure.
Examples of an “electronic device” according to embodiments of this disclosure may include at least one of a smartphone, a tablet personal computer (PC), a mobile phone, a video phone, an e-book reader, a desktop PC, a laptop computer, a netbook computer, a workstation, a personal digital assistant (PDA), a portable multimedia player (PMP), an MP3 player, a mobile medical device, a camera, or a wearable device (such as smart glasses, a head-mounted device (HMD), electronic clothes, an electronic bracelet, an electronic necklace, an electronic accessory, an electronic tattoo, a smart mirror, or a smart watch). Other examples of an electronic device include a smart home appliance. Examples of the smart home appliance may include at least one of a television, a digital video disc (DVD) player, an audio player, a refrigerator, an air conditioner, a cleaner, an oven, a microwave oven, a washer, a drier, an air cleaner, a set-top box, a home automation control panel, a security control panel, a TV box (such as SAMSUNG HOMESYNC, APPLETV, or GOOGLE TV), a smart speaker or speaker with an integrated digital assistant (such as SAMSUNG GALAXY HOME, APPLE HOMEPOD, or AMAZON ECHO), a gaming console (such as an XBOX, PLAYSTATION, or NINTENDO), an electronic dictionary, an electronic key, a camcorder, or an electronic picture frame, Still other examples of an electronic device include at least one of various medical devices (such as diverse portable medical measuring devices (like a blood sugar measuring device, a heartbeat measuring device, or a body temperature measuring device), a magnetic resource angiography (MRA) device, a magnetic resource imaging (MRI) device, a computed tomography (CT) device, an imaging device, or an ultrasonic device), a navigation device, a global positioning system (GPS) receiver, an event data recorder (EDR), a flight data recorder (FDR), an automotive infotainment device, a sailing electronic device (such as a sailing navigation device or a gyro compass), avionics, security devices, vehicular head units, industrial or home robots, automatic teller machines (ATMs), point of sales (POS) devices, or Internet of Things (IoT) devices (such as a bulb, various sensors, electric or gas meter, sprinkler, fire alarm, thermostat, street light, toaster, fitness equipment, hot water tank, heater, or boiler). Other examples of an electronic device include at least one part of a piece of furniture or building/structure, an electronic board, an electronic signature receiving device, a projector, or various measurement devices (such as devices for measuring water, electricity, gas, or electromagnetic waves). Note that, according to various embodiments of this disclosure, an electronic device may be one or a combination of the above-listed devices. According to some embodiments of this disclosure, the electronic device may be a flexible electronic device. The electronic device disclosed here is not limited to the above-listed devices and may include new electronic devices depending on the development of technology.
In the following description, electronic devices are described with reference to the accompanying drawings, according to various embodiments of this disclosure. As used, here, the term “user” may denote a human or another device (such as an artificial intelligent electronic device) using the electronic device.
Definitions for other certain words and phrases may be provided throughout this patent document. Those of ordinary skill in the art should understand that in many if not most instances, such definitions apply to prior as well as future uses of such defined words and phrases.
None of the descriptions in this application should be read as implying that any particular element, step, or function is an essential element that must be included in the claim scope. The scope of patented subject matter is defined only by the claims. Moreover, none of the claims is intended to invoke 35 U.S.C. § 112(f) unless the exact words “means for” are followed by a participle. Use of any other term, including without limitation “mechanism,” “module,” “device,” “unit.” “component.” “element,” “member,” “apparatus,” “machine,” “system,” “processor,” or “controller,” within a claim is understood by the Applicant to refer to structures known to those skilled in the relevant art and is not intended to invoke 35 U.S.C. § 112(f).
For a more complete understanding of this disclosure and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, in which like reference numerals represent like parts:
As discussed above, respiration rate (breaths per minute) and respiration depth (such as shallow, normal, or deep) are important health vital signs. Passive, continuous, and unobtrusive monitoring of respiration rate and depth helps many health and fitness applications determine an indicator of underlying disease, a biomarker for cardiopulmonary arrest, sleep quality, and the like.
The proliferation of multi-modal, sensor-equipped, smart earbuds among the general population has made such earbuds suitable for in-car health monitoring and a minimally-invasive, wearable device for accurate, continuous, and passive respiration rate and depth monitoring. For example, audio sensing from earbuds is an effective mechanism for estimating respiration rate and respiration depth. Earbuds, when worn, reside in close proximity to the respiratory tracts and can capture clear breathing sounds propagated internally through the human body. Various techniques use one or more inertial measurement unit (IMU) sensors (such as accelerometers, gyroscopes, and the like) in earbuds to detect respiration parameters. Respiration induces subtle head movements, which can be captured by the IMU sensors. However, IMU sensors are prone to error due to motion artifacts. Audio captured from the earbuds is not only resilient to motion artifacts but also inherently resilient to external ambient noise due to the phenomenon of “occlusion effect.” Ambient noises like music mostly include high frequency components, and the occlusion effect in the earbuds suppresses these high frequency components and amplifies low frequency components where respiratory sounds reside.
Recent advancements in deep computer vision techniques have been demonstrated to be highly accurate in detecting various patterns and objects in images. However, prior techniques for inferring respiration parameters from earbud-captured audio data do not utilize an image representation of the audio data along with deep computer vision techniques. Such techniques can be useful in gaining more accurate deep image processing models for respiration parameters estimation.
Estimating multiple respiration parameters (like breathing rate and breathing depth) from an earbud-captured breathing audio signal is challenging. At a crude level, estimating N different respiration parameters from breathing audio may require N different machine learning models, which can be resource heavy in the form of more power, memory, and training time at a computing device. A model able to learn and infer multiple respiration parameters would be more efficient. Moreover, respiration parameters like respiration rate and depth are strongly dependent on the various activities of daily living (ADLs) in which a human subject can be engaged. However, prior techniques for inferring respiration parameters do not consider the human subject's activity state during model training or inferencing. This causes high variance in respiration parameter estimation performance at different activity states.
This disclosure provides various techniques for deep audio spectral processing for respiration rate and respiration depth estimation using smart earbuds. As described in more detail below, the disclosed systems and methods include deep image processing of earbud audio spectrograms using one or more convolutional neural networks (CNNs) in order to infer respiration parameters. The disclosed systems and methods also include multi-task learning with a hybrid regression-classification loss function for simultaneous detection of respiration rate and respiration depth with a single model. In addition, the disclosed systems and methods feature techniques for training a pool of ADL-aware multi-task CNN models for improved respiration rate and respiration depth detection during various activities. Note that while some of the embodiments discussed below are described in the context of use in consumer electronic devices (such as smart earbuds or smartphones), this is merely one example, and it will be understood that the principles of this disclosure may be implemented in any number of other suitable contexts and may use any suitable devices.
According to embodiments of this disclosure, an electronic device 101 is included in the network configuration 100. The electronic device 101 can include at least one of a bus 110, a processor 120, a memory 130, an input/output (I/O) interface 150, a display 160, a communication interface 170, or a sensor 180. In some embodiments, the electronic device 101 may exclude at least one of these components or may add at least one other component. The bus 110 includes a circuit for connecting the components 120-180 with one another and for transferring communications (such as control messages and/or data) between the components.
The processor 120 includes one or more processing devices, such as one or more microprocessors, microcontrollers, digital signal processors (DSPs), application specific integrated circuits (ASICs), or field programmable gate arrays (FPGAs). In some embodiments, the processor 120 includes one or more of a central processing unit (CPU), an application processor (AP), a communication processor (CP), or a graphics processor unit (GPU). The processor 120 is able to perform control on at least one of the other components of the electronic device 101 and/or perform an operation or data processing relating to communication or other functions. As described in more detail below, the processor 120 may perform one or more operations for deep audio spectral processing for respiration rate and depth estimation using smart earbuds.
The memory 130 can include a volatile and/or non-volatile memory. For example, the memory 130 can store commands or data related to at least one other component of the electronic device 101. According to embodiments of this disclosure, the memory 130 can store software and/or a program 140. The program 140 includes, for example, a kernel 141, middleware 143, an application programming interface (API) 145, and/or an application program (or “application”) 147. At least a portion of the kernel 141, middleware 143, or API 145 may be denoted an operating system (OS).
The kernel 141 can control or manage system resources (such as the bus 110, processor 120, or memory 130) used to perform operations or functions implemented in other programs (such as the middleware 143, API 145, or application 147). The kernel 141 provides an interface that allows the middleware 143, the API 145, or the application 147 to access the individual components of the electronic device 101 to control or manage the system resources. The application 147 may support one or more functions for deep audio spectral processing for respiration rate and depth estimation using smart earbuds as discussed below. These functions can be performed by a single application or by multiple applications that each carry out one or more of these functions. The middleware 143 can function as a relay to allow the API 145 or the application 147 to communicate data with the kernel 141, for instance. A plurality of applications 147 can be provided. The middleware 143 is able to control work requests received from the applications 147, such as by allocating the priority of using the system resources of the electronic device 101 (like the bus 110, the processor 120, or the memory 130) to at least one of the plurality of applications 147, The API 145 is an interface allowing the application 147 to control functions provided from the kernel 141 or the middleware 143. For example, the API 145 includes at least one interface or function (such as a command) for filing control, window control, image processing, or text control.
The I/O interface 150 serves as an interface that can, for example, transfer commands or data input from a user or other external devices to other component(s) of the electronic device 101. The I/O interface 150 can also output commands or data received from other component(s) of the electronic device 101 to the user or the other external device.
The display 160 includes, for example, a liquid crystal display (LCD), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, a quantum-dot light emitting diode (QUM display, a microelectromechanical systems (MEMS) display, or an electronic paper display. The display 160 can also be a depth-aware display, such as a multi-focal display. The display 160 is able to display, for example, various contents (such as text, images, videos, icons, or symbols) to the user. The display 160 can include a touchscreen and may receive, for example, a touch, gesture, proximity, or hovering input using an electronic pen or a body portion of the user.
The communication interface 170, for example, is able to set up communication between the electronic device 101 and an external electronic device (such as a first electronic device 102, a second electronic device 104, or a server 106). For example, the communication interface 170 can be connected with a network 162 or 164 through wireless or wired communication to communicate with the external electronic device. The communication interface 170 can be a wired or wireless transceiver or any other component for transmitting and receiving signals.
The wireless communication is able to use at least one of, for example, WiFi, long term evolution (LTE), long term evolution-advanced (LTE-A), 5th generation wireless system (5G), millimeter-wave or 60 GHz, wireless communication, Wireless USB, code division multiple access (CDMA), wideband code division multiple access (WCDMA), universal mobile telecommunication system (UMTS), wireless broadband (WiBro), or global system for mobile communication (GSM), as a communication protocol. The wired connection can include, for example, at least one of a universal serial bus (USB), high definition multimedia interface (HDMI), recommended standard 232 (RS-232), or plain old telephone service (POTS). The network 162 or 164 includes at least one communication network, such as a computer network (like a local area network (LAN) or wide area network (WAN)), Internet, or a telephone network.
The electronic device 101 further includes one or more sensors 180 that can meter a physical quantity or detect an activation state of the electronic device 101 and convert metered or detected information into an electrical signal. For example, one or more sensors 180 can include one or more cameras or other imaging sensors for capturing images of scenes. The sensor(s) 180 can also include one or more buttons for touch input, a gesture sensor, a gyroscope or gyro sensor, an air pressure sensor, a magnetic sensor or magnetometer, an acceleration sensor or accelerometer, a grip sensor, a proximity sensor, a color sensor (such as a red green blue (RUB) sensor), a bio-physical sensor, a temperature sensor, a humidity sensor, an illumination sensor, an ultraviolet (UV) sensor, an electromyography (EMG) sensor, an electroencephalogram (EEG) sensor, an electrocardiogram (ECG) sensor, an infrared (IR) sensor, an ultrasound sensor, an iris sensor, or a fingerprint sensor. The sensor(s) 180 can further include an inertial measurement unit, which can include one or more accelerometers, gyroscopes, and other components. In addition, the sensor(s) 180 can include a control circuit for controlling at least one of the sensors included here. Any of these sensor(s) 180 can be located within the electronic device 101.
In some embodiments, the electronic device 101 can be a wearable device or an electronic device-mountable wearable device (such as an HMD). For example, the electronic device 101 may represent an AR wearable device, such as a headset with a display panel or smart eyeglasses. In other embodiments, the first external electronic device 102 or the second external electronic device 104 can be a wearable device or an electronic device-mountable wearable device (such as an HMD). In those other embodiments, when the electronic device 101 is mounted in the electronic device 102 (such as the HMD), the electronic device 101 can communicate with the electronic device 102 through the communication interface 170. The electronic device 101 can be directly connected with the electronic device 102 to communicate with the electronic device 102 without involving a separate network.
The first and second external electronic devices 102 and 104 and the server 106 each can be a device of the same or a different type from the electronic device 101. According to certain embodiments of this disclosure, the server 106 includes a group of one or more servers. Also, according to certain embodiments of this disclosure, all or some of the operations executed on the electronic device 101 can be executed on another or multiple other electronic devices (such as the electronic devices 102 and 104 or server 106). Further, according to certain embodiments of this disclosure, when the electronic device 101 should perform some function or service automatically or at a request, the electronic device 101, instead of executing the function or service on its own or additionally, can request another device (such as electronic devices 102 and 104 or server 106) to perform at least some functions associated therewith. The other electronic device (such as electronic devices 102 and 104 or server 106) is able to execute the requested functions or additional functions and transfer a result of the execution to the electronic device 101. The electronic device 101 can provide a requested function or service by processing the received result as it is or additionally. To that end, a cloud computing, distributed computing, or client-server computing technique may be used, for example. While
The server 106 can include the same or similar components 110-180 as the electronic device 101 (or a suitable subset thereof). The server 106 can support to drive the electronic device 101 by performing at least one of operations (or functions) implemented on the electronic device 101. For example, the server 106 can include a processing module or processor that may support the processor 120 implemented in the electronic device 101. As described in more detail below, the server 106 may perform one or more operations to support techniques for deep audio spectral processing for respiration rate and depth estimation using smart earbuds.
Although
As shown in
As shown in
Returning to
At operation 305, the electronic device 101 extracts image features from the breathing spectrograms 214 using convolutional layers of the CNN 216.
The training in operation 307 is followed by two parallel predictions in operations 309 and 311. At operation 309, the electronic device 101 predicts a respiration rate 222 on the validation data selected in operation 303 and calculates a respiration rate regression loss. In this example, estimation of the respiration rate 222 is a regression task and has a regression loss function (Lregression). The electronic device 101 can use any suitable regression task and regression loss function, such as Concordance Correlation Coefficient (CCC), Mean Squared Error (MSE), Mean Absolute Error (MAE), or the like. At operation 311, the electronic device 101 predicts a respiration depth 224 on the validation data and calculates a respiration depth classification loss. In this example, estimation of the respiration depth 224 is a classification task having a categorical cross-entropy loss function (Lclassification).
At operation 313, the electronic device 101 calculates a hybrid loss function 226, which is a hybrid regression-classification loss that includes the two heterogeneous loss functions Lregression and Lclassification. In some embodiments, the electronic device 101 can calculate the hybrid loss function 226 using the following equation.
L
total
=αL
regression
+βL
classification
Here, Ltotal represents the hybrid loss function 226, and α and β are weights that can be set empirically before or during training. In some embodiments, the values for α and β can be customized based on user needs. For example, if a user is more interested in respiration rate than respiration depth, α can be assigned to provide more weight than β (or vice versa).
At operation 315, the electronic device 101 determines if the training has reached convergence. In some embodiments, the electronic device 101 may compare the hybrid loss function 226 to a threshold that corresponds to convergence. If convergence has been reached, training is complete, and the electronic device 101 is finished with training as indicated at operation 317, if convergence has not been reached, training is not complete, and the process 300 moves to operation 319. At operation 319, the electronic device 101 updates training weights and returns to operation 305 to perform another iteration of the training.
It should be noted that the multi-task learning process 300 differs from some typical training techniques. In some typical techniques, a DNN model is trained by using multiple datasets, and the trained DNN model generates multiple outputs corresponding to the multiple datasets (such as dataset ‘A’ contributes to output ‘a’, dataset ‘B’ contributes to output ‘b’, and the like), Using such techniques, there are also multiple distinct losses corresponding to the multiple outputs. In contrast, the multi-task learning process 300 uses a single breathing audio dataset 212 as an input to learning and generates two outputs (respiration rate 222 and respiration depth 224) from the single input dataset. This multi-task learning process 300 uses the CNN 216 to identify both the respiration rate 222 and the respiration depth 224 by the single model using multi-task learning. Both targets are learned together in the same model, and learning one target can improve learning on the other target (and vice-versa). Also, the process 300 combines a regression loss function (from the respiration rate 222) and a classification loss function (from the respiration depth 224) into a hybrid loss function 226, in contrast to the multiple distinct losses used in other training techniques.
Although
Turning again to
Although
When a person engages in different activities of daily living (ADLs) (such as walking, running, sleeping, cycling, exercising, and the like), the ADLs can change the person's breathing behavior, breathing rate, and breathing depth. For example,
As shown in
The breathing audio dataset 712 includes multiple earbud breathing audio training samples 730 that correspond to different ADLs 732. The breathing audio training samples 730 are annotated with breathing rate, breathing depth, and ADL information. The earbud breathing audio training samples 730 in the breathing audio dataset 712 are converted to breathing spectrograms 714, and the breathing spectrograms 714 are clustered based on ADL to form the ADL-clustered breathing spectrograms 715. For each cluster of breathing spectrograms 715, an ADL-specific CNN model 718 is trained. The result is a ADL-specific CNN model pool 716 that includes different CNN models 718 for the different ADLs 732. Each CNN model 718 is associated with a specific ADL 732. These ADL-specific CNN models 718 generally perform better in estimating respiration rate and depth than ADL-agnostic models, A process performed using the training pipeline 710 will now be described in greater detail in conjunction with
At operation 803, the electronic device 101 performs a training and validation data split. Here, the electronic device 101 selects a portion of the training data (such as the ADL-clustered breathing spectrograms 715) for training and selects a different portion of the training data for validation of the training. In some embodiments, approximately eighty percent of the training data can be selected for training, and the other approximately twenty percent can be selected for validation. In other embodiments, the percentages may be different.
At operation 804, the electronic device 101 loads selected CNN structural and training configuration information associated with a particular configuration of the ADL-specific CNN models 718. Instead of the CNN models 718 all having a predefined CNN architecture with a fixed structure and parameters, each CNN model 718 can have a different CNN architecture. Therefore, a neural architecture grid search 719 can be performed in the process 800 to determine a suitable CNN architecture for each of the CNN models 718. The following CNN structural hyperparameters and grid search sample values are representative of architectural variables that might apply to the convolutional layers 504 of each CNN model 718: number of convolutional layers (such as 2, 3, 4, 5 . . . ); filter size (in pixels) (such as 2×2, 3×3, 4×4, 5×5, . . . ); number of filters (such as 16, 32, 64, 128, . . . ); stride size (such as 1 to the filter size); pooling type (such as max or avg); and activation function (such as rectified linear unit or “ReLU,” sigmoid, Tan h, . . . ), The following DNN training hyperparameters and grid search sample values are representative of architectural variables that might apply to the DNN layer 506 of each CNN model 718: initial weights (such as random, Xavier, or He); learning rate (such as 0.1, 0.01, 0.001, . . . ); batch size (such as 32, 64, 128, . . . ); and optimizer (such as Adam, Gradient descent. RMSProp, . . . ). In operation 804, the electronic device 101 loads one combination of each of these CNN and DNN hyperparameters and grid search values (such as number of convolutional layers=3, pooling type max, learning rate=0.001, and so on) in order to test the suitability of the combination of values for the particular CNN model 718.
At operation 805, the electronic device 101 extracts image features from the ADL-clustered breathing spectrograms 715 using convolutional layers 504 of the particular CNN model 718. At operation 807, the electronic device 101 trains the DNN layer 506 of the CNN model 718 with training data, which can include the breathing audio dataset 712. The training in operation 807 is followed by two parallel predictions in operations 809 and 811. At operation 809, the electronic device 101 predicts a respiration rate 722 on the validation data selected in operation 803, and then calculates a respiration rate regression loss. In this example, estimation of the respiration rate 722 is a regression task and has a regression loss function (Lregression). The electronic device 101 can use any suitable regression task and regression loss function, such as Concordance Correlation Coefficient (CCC), Mean Squared Error (MSE), Mean Absolute Error (MAE), or the like. At operation 811, the electronic device 101 predicts a respiration depth 724 on the validation data and calculates a respiration depth classification loss. In this example, estimation of the respiration depth 724 is a classification task having a categorical cross-entropy loss function (Lclassification).
At operation 813, the electronic device 101 calculates a hybrid loss function 726, which is a hybrid regression-classification loss that includes the two heterogeneous loss functions Lregression and Lclassification. In some embodiments, the electronic device 101 can calculate the hybrid loss function 726 using the following equation.
L
total
=αL
regression
+βL
classification
Here, Ltotal represents the hybrid loss function 226, and α and β are weights that can be set empirically before or during training.
At operation 815, the electronic device 101 determines if the training has reached convergence. In some embodiments, the electronic device 101 may compare the hybrid loss function 726 to a threshold that corresponds to convergence. If convergence has not been reached for the current CNN model configuration, training is not complete, and the process 300 moves to operation 817. At operation 817, the electronic device 101 updates the training weights and returns to operation 805 to perform another iteration of the training. If convergence has been reached in operation 815, training is complete, and the process 300 moves to operation 819. At operation 819, the electronic device 101 logs one or more validation metrics indicating the results of the CNN model configuration (which includes the particular combination of CNN structural and training parameters selected in operation 804). It can be seen in
At operation 821, the electronic device 101 determines if all CNN model configurations have been examined in the neural architecture grid search 719. If the electronic device 101 determines that not all CNN model configurations have been examined, the process 800 returns to operation 804, where the electronic device 101 selects another combination of CNN and DNN hyperparameters and grid search values. If the electronic device 101 determines that all CNN model configurations have been examined, the process 800 moves to operation 823. At operation 823, the electronic device 101 selects the configuration of the ADL-specific CNN model 718 with the best validation metric (as logged in operation 819). This provides the CNN configuration for each of the CNN models 718 in the ADL-specific CNN model pool 716. Following the process 800, the ADL-specific CNN model pool 716 is available for use in an inference (such as run-time) process, which is described below in conjunction with
Although
As shown in
The electronic device 101 also obtains an IMU sensor data stream 904 from IMU sensors (such as accelerometer, gyroscope, and the like) in the earbuds 906. The IMU sensor data stream 904 can be obtained in parallel in the same temporal window as the breathing audio signal 902. At operation 910, the electronic device 101 performs preprocessing and sampling of the sensor data stream 904 at a specified sampling rate (such as 50 Hz). This could include any suitable preprocessing and sampling operations. At operation 912, the electronic device 101 defines a sliding window for the sensor data stream 904 (such as a five-second window with a one-second shift). At operation 914, the electronic device 101 extracts statistical features (such as mean, standard deviation, maximum, minimum, kurtosis, skewness, median, and the like) from the data stream window.
Based on extracted features, the electronic device 101 determines an ADL 916 in which the user in engaged at the time the breathing audio signal 902 and the sensor data stream 904 are obtained. The determined ADL 916 could include any of the following example ADLs: standing, sitting, lying, walking, jogging, vacuuming, climbing stairs, cycling, stretching, weight-lifting, brushing teeth, washing hands, washing dishes, and the like. Note that these ADLs are examples only and can vary as needed or desired. In some embodiments, these specific ADLs can be grouped into broader ADL classes like posture (like sitting, standing, and lying down), moving (like walking, jogging, vacuuming, and climbing stairs), and stationary (like stretching and weight-lifting) if breathing parameter variations across more specific ADLs are not significant. Also, in some embodiments, the electronic device 101 uses a pretrained classifier to classify the extracted features into the ADL 916.
At operation 922, based on the determined ADL 916, the electronic device 101 selects an ADL-specific CNN model 718 from the ADL-specific CNN model pool 716. That is, the electronic device 101 selects a CNN model 718 that corresponds to the determined ADL 916 of the user. The electronic device 101 provides the breathing spectrogram 920 as input to the selected CNN model 718. Using the CNN model 718, the electronic device 101 outputs (infers) respiration parameters from the breathing audio signal 902, such as a breathing rate 924 of the user and a breathing depth 926 of the user.
Although
Note that the operations and functions shown in or described with respect to
As shown in
An ADL of the user associated with the at least one breathing audio sample is determined at step 1005. This could include, for example, the electronic device 101 determining an ADL 916 of the user based on an IMU sensor data stream 904 captured using IMU sensors in the earbuds 906. One of multiple CNNs in a CNN pool is selected as a trained multi-task CNN at step 1007 based on the ADL of the user. This could include, for example, the electronic device 101 selecting one of the multiple CNN models 718 in the ADL-specific CNN model pool 716 as the trained multi-task CNN based on the determined ADL 916.
The breathing spectrogram is processed at step 1009 using the trained multi-task CNN to identify a breathing rate and a breathing depth of the user. This could include, for example, the electronic device 101 processing the breathing spectrogram 920 using the selected CNN model 718 to identify a breathing rate 924 and a breathing depth 926 of the user. The breathing rate and the breathing depth of the user are output at step 1011. This could include, for example, the electronic device 101 outputting the breathing rate 924 and the breathing depth 926. The breathing rate 924 and the breathing depth 926 could be shown on a display of the electronic device 101, output as audio via a speaker of the electronic device 101, transmitted to a data storage or another electronic device, or provided as any other suitable output.
Although
The embodiments described above can be advantageously implemented in multiple use cases. For example, in a first example use case, the disclosed embodiments can enable longitudinal respiration monitoring using earbuds. In some instances, there may be less overhead of use than with chest bands. Such monitoring using earbuds can include minimal overhead and may be minimally obtrusive. The monitoring using earbuds offers passive and continuous respiratory parameters measurement. Longitudinal respiration monitoring using earbuds may be more accurate than smartwatch-based solutions due to the earbuds' proximity to the respiratory tracts. Also, smartphone-based solutions may typically not be passive.
In a second example use case, the disclosed embodiments can enable remote patient respiratory monitoring using earbuds. This can be useful for patients with respiratory issues, such as irregular respiratory rate and agonal breathing. This can also be useful for elderly respiration monitoring and terminal patient respiration monitoring. In a third example use case, the disclosed embodiments can enable sleep respiration and sleep apnea monitoring using earbuds. In some instances, the disclosed embodiments can be used for overnight sleep respiration monitoring. The monitoring can be performed for detection of sleep apnea episodes, duration, and intensity. Such monitoring can be more accurate than monitoring with wrist-worn smartwatches. In a fourth example use care, the disclosed embodiments can enable activity-specific respiration monitoring using earbuds. In some instances, these embodiments can be useful for respiratory fitness measurement for athletes during training. These embodiments can be customized such that respiration sensing triggers automatically only for activities of interest.
In a fifth example use case, the disclosed embodiments can enable breathing biomarkers from the determined respiration rate and depth. Simultaneously detecting respiration rate and respiration depth offers the ability to extract several irregular breathing and breathing technique biomarkers, which could facilitate existing heath monitoring applications. As particular examples, the following biomarkers could be detected using respiration rate and depth:
The breathing biomarkers described above can be determined using the disclosed embodiments and provided to users as feedback on a health monitoring application (such as SAMSUNG Health). Such breathing biomarkers may not be provided if the model generates a single reparatory metric. In addition, incorporating a single multi-task model ensures better accuracy of estimating respiratory rate and depth (as learning one target helps improves the other and vice versa), along with a smaller overall model size when compared to a solution using two single task models. In addition, the breathing biomarkers described above can facilitate or improve several existing and new health monitoring applications. Some of these applications will now be described.
A guided breathing exercise is a technique in which an individual follows the instructions of a guide app or a recording to control his or her breathing patterns. The exercise is designed to help individuals relax, reduce stress, and increase focus and awareness. During a guided breathing exercise, the guide typically directs the individual to take slow, deep breaths in through the nose and out through the mouth and to focus his or her attention on the sensation of the breath moving in and out of his or her body.
The importance of guided breathing exercises lies in their ability to activate the body's relaxation response, which can counteract the effects of stress on the body and mind. When a person experiences stress, the body's sympathetic nervous system is activated, leading to the release of stress hormones like cortisol and adrenaline. This can cause a range of physical and emotional symptoms, such as increased heart rate, shallow breathing, and feelings of anxiety and tension, By engaging in guided breathing exercises, one can activate the body's parasympathetic nervous system, which helps to reduce these stress-related symptoms and promote feelings of relaxation, calm, and well-being. This can have a range of benefits for both physical and mental health, such as improved sleep, reduced anxiety and depression, and lower blood pressure and heart rate.
Guided breathing exercises can be used in a variety of situations to promote relaxation, reduce stress, and increase focus and awareness. Some common use cases may include the following.
Real-time feedback can be very helpful during guided breathing exercises, as it can help individuals to stay focused and engaged and provide them with a better sense of their progress and performance in following the target breathing pattern Some guided breathing exercise applications do not feature real-time feedback functions. Such applications can instruct the user to breathe at a certain rate and depth (such as with a visual animation) but may not know how well the user is performing in following the target breathing. The extracted raw respiration rate and respiration depth information obtained from the earbuds, along with the breathing biomarkers determined using the disclosed embodiments, can help provide real-time feedback for guided breathing exercises.
Guided breathing with real-time feedback using earbuds can be incorporated in various other functionalities and activities, such as meditation and yoga activities. Generally, meditation involves episodes of slow deep breathing, which can be detected using the disclosed embodiments for user feedback. Also, various stress detection applications can detect stress using smartphone- or smartwatch-captured heart rate and blood oxygen level. If high stress is detected, a stress management program can be proposed to the user by meditation using guided breathing exercises (generally slow deep breathings), where real-time breathing feedback can be provided to the user using the disclosed embodiments. Deep breathing techniques at guided postures can also play an important role in disease recovery, such as COVID-19 recovery. Such exercises include deep breathing while on one's back, while on one's stomach, while sitting, and while standing. The disclosed embodiments, along with high level breathing biomarkers, can detect deep breathing at various postures for real-time user feedback.
In some cases, the disclosed embodiments can produce respiration rate and depth outputs in real-time. In some example implementations, for instance, latency of audio-to-spectrogram generation during runtime may be between about 100 ms to about 120 ms, and latency for performing inference on the spectrogram using a chosen CNN model may be about 100 ms. In addition, the activity detection from IMU sensor signals may have a latency of about 50 ms (however, activity detection can occur in parallel with audio-to-spectrogram generation). As a result, after breathing audio is captured, these particular embodiments can produce a respiration rate and respiration breath output in about 200 ms to about 220 ms, which is essentially real-time operation.
In contrast, real-time biofeedback for different outputs using other monitoring techniques may not be synchronized with each other due to latency variations from different underlying algorithms/models, different window sizes, and different sensing modalities for different outputs. For example, one prior technique uses a ten-second window for respiration depth detection and a two-second window for phase detection in real-time. Also, respiration depth is detected from an IMU, while phase is detected from audio. Therefore, it would be harder for this technique to provide meaningful and synchronized combined biofeedback (such as inhale deeper and slower) to the user as the user performs a guided breathing exercise since feedback for depth is generated every ten seconds and feedback for phase is generated every two seconds. The disclosed embodiments are able to provide such meaningful combined synchronized biofeedback to the user in real-time due to use of a single sensing modality (audio), a single model (multi-task CNN), and a single window for all outputs (rate and depth).
Some other example use cases and related implementation details are presented below. In a sixth example use case, ADL-aware breathing inferences can be generated when a user is walking or jogging. Here, ADL detection can be performed (such as based on static posture, moving activity, stationary activity, or the like) using the earbuds' IMU sensors (such as accelerometer and gyroscope). The detected ADL class for walking or jogging can be “moving activity.” The earbuds' respiration audio can be converted into one or more spectrograms, and the respiration rate and respiration depth can be inferred from the spectrogram(s) using a selected ADL-aware respiration model. The outputs may include ADL-aware respiration rate and depth inference when the user is walking or jogging, which can be more accurate than ADL-agnostic models.
In a seventh example use case, ADL-aware breathing inferences can be generated when a user is exercising (such as lifting weights or stretching limbs). Here, ADL detection can be performed (such as based on static posture, moving activity, stationary activity, or the like) using the earbuds' IMU sensors (such as accelerometer and gyroscope). The detected ADL class for exercising can be “stationary activity.” The earbuds' respiration audio can be converted into one or more spectrograms, and the respiration rate and respiration depth can be inferred from the spectrogram(s) using a selected ADL-aware respiration model. The outputs may include ADL-aware respiration rate and depth inference when the user is exercising, which can be more accurate than ADL-agnostic models.
In an eighth example use case, synchronized breathing during jogging or running may be encouraged. For example, a runner/jogger/trainer may set different synchronized breathing rate goals depending on training intensity, run length, and fitness. It can be helpful to check a runner's breathing rhythm occasionally because it can help monitor the running intensity. Some example breathing rhythms may include the following: 3 to 3 (the runner takes three strides while breathing in and three strides while breathing out); 2 to 2 (the runner takes two strides while breathing in and two strides while breathing out, which is a good training pace for most people and is often used during long runs and marathons); 2 to 1 (the runner takes two strides while breathing in and one stride while breathing out or vice versa); and 1 to 1 (the runner takes one stride while breathing in and one stride while breathing out).
An algorithm for synchronized breathing detection while jogging or running may be implemented as follows. A consecutive number of running/jogging strides (such as twelve strides) may be detected using the earbuds' IMU sensors, and time (t) may be measured for these strides. Respiration audio is captured using earbuds for those strides (within this time t), and user respiration rate is inferred using the disclosed embodiments. The user's respiration rate is compared with a target respiration rate based on the desired breathing rhythm. Thus, for a 1 to 1 breathing rhythm, the goal is six inhales and six exhales for twelve strides, and the target respiration rate is (6/60)/t BPM. For a 2 to 1 breathing rhythm, the goal is four inhales and four exhales for twelve strides, and the target respiration rate is (4×60)/t BPM. For a 2 to 2 goal, the goal is three inhales and three exhales for twelve strides, and the target respiration rate is (3×60)/t BPM. For a 3 to 3 goal, the goal is two inhales and two exhales for twelve strides, and the target respiration rate is (2×60)/t BPM. A recommendation can therefore be provided to the user in order to adjust his or her breathing if the user respiration rate mismatches the target respiration rate (such as when the user is breathing slower/faster) to synchronize with jogging.
As a particular example of this use case, assume a user is jogging and has a breathing rhythm goal of 2 to 2 (two strides per inhale and two strides per exhale). The user's device may count twelve strides using the earbuds' IMU and determine that the user took six seconds for the twelve strides. The target respiration rate may be calculated as (3×60)/6=30 BPM. From breathing audio captured in earbuds within these six seconds, the user's respiration rate may be determined to be 24 BPM using the disclosed embodiments. Thus, the system can recommend that user breathe faster to meet the set goal (30 BPM) for synchronized breathing while jogging.
In a ninth example use case, synchronized breathing during exercise may be encouraged. For example, during exercise with repetitive limb motions (such as weightlifting), a user may want to synchronize his or her breathing pattern while lifting, such as inhaling before each lift and exhaling during each lift. Repetitive limb motions can be detected and counted accurately, such as by using IMU sensors in earbuds or a smartwatch. At the same time, earbud-captured audio can be used to detect respiration rate using the disclosed embodiments. A target respiration rate can therefore be compared with a detected respiration rate to provide a recommendation to the user to synchronize his or her breathing with the lifting exercises.
An algorithm for synchronized breathing detection while exercising may be implemented as follows. A consecutive number of limb movements (such as four limb movements) may be detected using MU sensors in earbuds, a smartwatch, or both, and time (t) may be measured for these four limb movement cycles. Respiration audio can be captured using earbuds for the four limb movements (within this time t), and the user's respiration rate can be inferred using the disclosed embodiments. The user's respiration rate can be compared with a target respiration rate based on the user's goal. For example, for four limb movement cycles, the goal can be four inhales and four exhales, and the target respiration rate is (4×60)/t BPM, A recommendation can therefore be provided to the user in order to adjust his or her breathing if the user respiration rate mismatches the target respiration rate (such as when the user is breathing slower/faster) to synchronize with the exercise.
As a particular example of this use case, assume a user is weightlifting (bench pressing) with a breathing rhythm goal of an inhale before each lift and an exhale during each lift. The user's device may count four limb movement cycles using IMU sensors and determine that the user took eight seconds for these four limb movement cycles. The target respiration rate may be calculated as (4×60)/8=30 BPM. From breathing audio captured in earbuds within these eight seconds, the user's respiration rate may be determined to be 40 BPM using the disclosed embodiments. Thus, the system can recommend that user breathe slower to meet the set goal (30 BPM) for synchronized breathing while weightlifting.
Note that the various use cases described above are non-limiting examples of how the disclosed embodiments may be used in various applications. The disclosed embodiments max be used in any other suitable applications or for any other suitable purposes and are not limited to these specific use cases.
Although this disclosure has been described with reference to various example embodiments, various changes and modifications may be suggested to one skilled in the art. It is intended that this disclosure encompass such changes and modifications as fall within the scope of the appended claims.
This application claims priority under 35 U.S.C. § 119(e) to U.S. Provisional Patent Application No. 63/346,790 filed on May 27, 2022, which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
63346790 | May 2022 | US |