BREATH MONITORING ON TWS EARPHONES
A wearable electronic device detects the breathing of a user based on bone conduction of sounds waves. The wearable electronic device includes an inertial sensor unit. The inertial sensor unit generates sensor data based on bone conduction of sound. The inertial sensor unit generates frequency domain data based on the sensor data. The inertial sensor unit detects breathing of the user by performing a classification process based on the frequency domain data.
1 . A method, comprising:
generating, with an inertial sensor unit of an electronic device worn by a user, sensor data based on bone conduction of sound;
generating, with the inertial sensor unit, frequency domain data based on the sensor data; and
detecting, with the inertial sensor unit, breathing of the user by performing a classification process based on the frequency domain data.
2 . The method of claim 1 , comprising:
calculating, from the frequency domain data, a spectral energy, a spectral centroid frequency, and a spectral spread based on the sensor data; and
detecting, with the inertial sensor unit, breathing of the user by performing a classification process based on the spectral energy, the spectral centroid frequency, and the spectral spread.
3 . The method of claim 2 , comprising performing axis fusion on the sensor data prior to generating the frequency domain data.
4 . The method of claim 3 , comprising performing low-pass filtering and decimation after performing axis fusion and prior to generating the frequency domain data.
5 . The method of claim 2 , comprising:
generating, from the sensor data, a plurality of windows; and
generating the frequency domain data by performing a sliding discrete Fourier transform on each window.
6 . The method of claim 5 , wherein calculating the spectral energy, the spectral centroid frequency, and the spectral spread includes calculating the spectral energy, the spectral centroid frequency, and the spectral spread for each window.
7 . The method of claim 6 , wherein the classification process includes:
making a classification for each window from a group of the windows; and
detecting breathing for the group of windows based on the classification of each window of the group.
8 . The method of claim 2 , wherein the classification process includes:
generating a value by dividing the spectral energy by the product of the spectral centroid frequency and spectral spread; and
comparing the value to a threshold.
9 . The method of claim 2 , wherein the classification algorithm includes:
comparing the spectral energy to a first threshold value;
comparing the spectral centroid frequency to a second threshold value; and
comparing the spectral spread to a third threshold value.
10 . The method of claim 2 , comprising outputting, from the inertial sensor unit, breathing detection data based on detecting the breathing.
11 . The method of claim 2 , wherein the classification algorithm includes:
passing the spectral energy, the spectral centroid frequency, and the spectral spread to an analysis model trained with a machine learning process; and
detecting breathing based on a classification of the analysis model.
12 . The method of claim 11 , comprising outputting breathing detection data from the wearable electronic device to a remote electronic device.
13 . A wearable electronic device, comprising:
a first sensor unit including:
an inertial sensor configured to generate first sensor data based on bone conduction of sound;
a control circuit configured to:
generate frequency domain data based on the first sensor data;
generate breathing detection data indicative of breathing of the user based on the spectral energy, the spectral centroid frequency, and the spectral spread.
14 . The wearable electronic device of claim 13 , wherein the control circuit is configured to generate, from the frequency domain data, a spectral energy, a spectral centroid frequency, and a spectral spread based on the first sensor data and generate the breathing detection data based on the spectral energy, the spectral centroid frequency, and the spectral spread.
15 . The electronic device of claim 13 , wherein the control circuit includes an analysis model trained with a machine learning process to detect breathing based on the spectral energy, the spectral centroid frequency, and the spectral spread.
16 . The electronic device of claim 15 , comprising a first earphone including the sensor unit.
17 . The electronic device of claim 16 , comprising a second earphone including a second sensor unit configured to provide second sensor data to the first sensor unit, wherein the control circuit is configured to generate the breathing detection data based on the first sensor data and the second sensor data.
18 . A method, comprising:
generating, with an inertial sensor unit of an electronic device worn by a user, sensor data based on bone conduction of sound;
performing an axis fusion process on the sensor data to fuse multiple axes in the sensor data;
generating, from the sensor data, a plurality of windows;
calculating, with the inertial sensor unit for each window, a first feature and a second feature; and
detecting, with the inertial sensor unit, breathing of the user based on the first feature and the second feature of a plurality of windows.
19 . The method of claim 18 , comprising:
calculating, with the inertial sensor unit for each window, a third feature; and
detecting, with the inertial sensor unit, breathing of the user based on the first feature, the second feature, and the third feature of a plurality of windows.
20 . The method of claim 19 , wherein the first feature is spectral energy, the second feature is spectral centroid frequency, and the third feature is spectral spread.