WO2023240510A1 - Respiratory monitoring method and apparatus, earphone and storage medium - Google Patents

Respiratory monitoring method and apparatus, earphone and storage medium Download PDF

Info

Publication number
WO2023240510A1
WO2023240510A1 PCT/CN2022/099022 CN2022099022W WO2023240510A1 WO 2023240510 A1 WO2023240510 A1 WO 2023240510A1 CN 2022099022 W CN2022099022 W CN 2022099022W WO 2023240510 A1 WO2023240510 A1 WO 2023240510A1
Authority
WO
WIPO (PCT)
Prior art keywords
respiratory
audio signal
frequency
frequency range
waveform
Prior art date
Application number
PCT/CN2022/099022
Other languages
French (fr)
Chinese (zh)
Inventor
周岭松
Original Assignee
北京小米移动软件有限公司
北京小米松果电子有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京小米移动软件有限公司, 北京小米松果电子有限公司 filed Critical 北京小米移动软件有限公司
Priority to CN202280004450.0A priority Critical patent/CN117597941A/en
Priority to PCT/CN2022/099022 priority patent/WO2023240510A1/en
Publication of WO2023240510A1 publication Critical patent/WO2023240510A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones

Definitions

  • the present disclosure relates to the field of information processing technology but is not limited to the field of information processing technology, and in particular, to a respiratory monitoring method, device, earphones and storage media.
  • the health status of the detected object can be detected through health monitoring equipment.
  • breathing as an important indicator of health status, plays an important role in determining health status.
  • By monitoring the breathing it can be determined whether the breathing of the monitored subject is normal.
  • Embodiments of the present disclosure provide a respiratory monitoring device, an earphone, and a storage medium.
  • a first aspect of an embodiment of the present disclosure provides a respiratory monitoring method, which is applied to an earphone, the earphone includes a feedback microphone, and the method includes:
  • the ear canal audio signal is filtered to obtain a respiratory audio signal; wherein the respiratory audio signal is the vibration generated by the user during the breathing process when the earphone is worn by the user through bone conduction.
  • the respiratory frequency and the reference frequency range it is determined whether the user's respiratory frequency is abnormal.
  • a second aspect of the embodiment of the present disclosure provides a respiratory monitoring device, applied to earphones, where the earphones include a feedback microphone; the device includes:
  • An ear canal audio signal collection module is configured to collect the audio signal in the ear canal through the feedback microphone to obtain the ear canal audio signal;
  • the respiratory audio signal determination module is configured to perform filtering processing on the ear canal audio signal to obtain a respiratory audio signal; wherein the respiratory audio signal is when the earphone is worn by the user and the user is breathing.
  • the vibrations generated during the process are transmitted to the ear canal through bone conduction to generate audio signals;
  • a respiratory frequency determination module configured to determine the respiratory frequency of the user based on the respiratory audio signal
  • An abnormality determination module is configured to determine whether the respiratory frequency is abnormal according to the respiratory frequency and a reference frequency range.
  • a third aspect of the present disclosure provides an earphone.
  • the earphone includes a housing and a controller, a feedback microphone, a feedforward microphone and a speaker provided on the housing; the feedforward microphone is connected to the controller. , used to collect audio data outside the ear canal and send it to the controller; the feedback microphone is connected to the controller, used to collect audio data inside the ear canal and send it to the controller; the controller includes a memory and a processor The processor has executable computer instructions stored on the memory, and the processor can call the computer instructions stored on the memory to execute the respiratory monitoring method as provided in the first aspect when executing the program.
  • a fourth aspect of the embodiments of the present disclosure provides a computer storage medium that stores an executable program; after the executable program is executed by a processor, the respiratory monitoring method provided by the first aspect can be implemented.
  • the respiratory monitoring method provided by the embodiments of the present disclosure can be applied to headphones, and the user's respiratory frequency can be determined through the headphones without the need for other monitoring sensors, thereby improving the convenience of monitoring the user's respiratory frequency and improving the user's experience.
  • Figure 1 is a schematic diagram of a respiratory monitoring method according to an exemplary embodiment
  • Figure 2 is a schematic diagram of an earphone according to an exemplary embodiment
  • Figure 3 is a schematic diagram of an earphone in a state of being worn by a user according to an exemplary embodiment
  • Figure 4 is a schematic diagram of another method for determining respiratory monitoring according to an exemplary embodiment
  • Figure 5 is a schematic diagram illustrating a method of determining respiratory frequency according to an exemplary embodiment
  • Figure 6 is a schematic diagram of determining a target amplitude according to an exemplary embodiment
  • Figure 7 is a schematic diagram illustrating a method of determining a target frequency range and a reference frequency range according to an exemplary embodiment
  • Figure 8 is a schematic diagram illustrating a method of determining a target frequency range according to an exemplary embodiment
  • Figure 9 is a schematic diagram illustrating a method of determining a reference frequency range according to an exemplary embodiment
  • Figure 10 is a schematic structural diagram of a respiratory monitoring device according to an exemplary embodiment
  • FIG. 11 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
  • first, second, third, etc. may be used to describe various information in the embodiments of the present disclosure, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other.
  • first information may also be called second information, and similarly, the second information may also be called first information.
  • word “if” as used herein may be interpreted as "when” or "when” or "in response to determining.”
  • respiratory frequency can reflect physical health.
  • professional monitoring equipment is required.
  • the doctor can monitor the user's respiratory frequency through equipment used to monitor breathing in the hospital, such as piezoelectric sensors, thermal resistance sensors and/or infrared sensors for respiratory monitoring. These sensors are deployed in corresponding parts.
  • the human body breathes, some fluctuations occur in the parts of the human body where the sensors are deployed. These sensors can generate electrical signals based on these fluctuations, and thus the respiratory frequency can be determined based on these electrical signals.
  • Different breathing rates can be identified by analyzing the signals sensed by different sensors. And the relevant operations in this process need to be completed by professional medical staff.
  • the user When monitoring the user's respiratory frequency through these sensors, the user needs to wear multiple sensors in a specific place and in a specific state to monitor the respiratory frequency. For example, in the corresponding department of the hospital, the user completes it in a non-moving state, such as a stationary state. In this way, the respiratory frequency cannot be monitored anytime and anywhere, which reduces the convenience of monitoring the respiratory frequency, thereby reducing the user experience.
  • FIG. 1 a schematic diagram of a respiratory monitoring method provided by an embodiment of the present disclosure is shown.
  • the method can be applied to at least earphones, and the earphones can at least include a feedback microphone.
  • the method includes:
  • Step S100 collect the audio signal in the ear canal through the feedback microphone to obtain the respiratory audio signal
  • Step S200 perform filtering processing on the ear canal audio signal to obtain a respiratory audio signal; wherein, the respiratory audio signal is when the earphone is worn by the user, and the vibration generated by the user during breathing is transmitted to the ear canal through bone conduction.
  • the audio signal produced.
  • Step S300 Determine the user's breathing frequency based on the breathing audio signal.
  • Step S400 Determine whether the respiratory frequency is abnormal based on the respiratory frequency and the reference frequency range.
  • Earphones can be of different shapes, including in-ear, semi-in-ear, and head-mounted earphones.
  • the communication method of the headset may include wired headsets and wireless headsets, and the wireless headsets may include Bluetooth headsets, such as True Wireless Stereo headsets (TWS). Headphones may also include devices such as hearing aids that have feedback microphones and are capable of implementing this scheme.
  • TWS True Wireless Stereo headsets
  • the feedback microphone in the headset can be located near the sound channel of the headset.
  • the feedback microphone is located in the ear canal and can collect audio signals in the ear canal, such as in-ear headphones.
  • the earphones are other types of earphones, such as semi-in-ear earphones and headphones, the feedback microphone can collect audio signals in the ear canal when the earphones are worn.
  • FIG 2 is a schematic diagram of an earphone, including a feedback microphone a.
  • the feedback microphone a can be located in the ear canal.
  • the headset may also include a feedforward microphone b, which may be located on the stem of the headset. When the headset is worn, the feedforward microphone is located outside the ear canal and can collect environmental audio signals from the external environment.
  • the headset may also include a call microphone c to collect audio signals sent by the user during a call.
  • the signal-to-noise ratio of the audio signal collected by feedback microphone a is higher than that of feedforward microphone b, so an ear canal audio signal with less noise and higher quality is collected through feedback microphone a.
  • the feedback microphone a can be located outside the ear canal or toward the ear canal, and can collect ear canal audio signals.
  • Figure 3 is a schematic diagram of an earphone when being worn by a user.
  • the earphone 1 blocks the ear canal 2 to a certain extent, forming an ear-blocking effect.
  • the ear canal audio signals collected by the feedback microphone include: when the headset is worn by the user, the vibration generated by the user during breathing is transmitted to the ear canal through bone conduction, that is, the audio signal 3.
  • step S100 when the earphones are in the wearing state, the ear canal will be blocked to a certain extent, resulting in a certain degree of ear blocking effect.
  • the reason for this is that some sounds will be transmitted to the inner ear through the human bones.
  • the nasal cavity is far away from the ear canal.
  • vibrations are generated between the airflow and the respiratory tract, and the vibrations are transmitted to the audio signals in the ear canal through bone conduction.
  • part of the sound from the bone conduction diffuses outward through the outer ear.
  • the ear canal is blocked to a certain extent, which reduces the sound from the bone conduction to the outside through the ear canal.
  • the amount of diffusion creates a certain degree of ear-blocking effect, also known as the occlusion effect.
  • the sound characteristics produced by the occlusion effect are characterized by strengthening low-frequency signals and weakening high-frequency signals.
  • the earphones block the ear canal to a certain extent, they form varying degrees of ear blocking effect. After the ear blocking effect occurs, the earphones block external audio signals from entering the ear canal, reducing the impact of external audio signals on the audio signals in the ear canal.
  • the feedback microphone can collect the audio signal in the ear canal to obtain the ear canal audio signal.
  • the ear canal audio signal is filtered to obtain a respiratory audio signal. Since the ear canal audio signal includes not only the respiratory audio signal, but also other audio signals, the respiratory audio signal can be obtained by filtering the ear canal audio signal. Filtering can be done based on frequency through filtering algorithms, or filtering can be done through filters.
  • the respiratory audio signal is the ear canal audio signal, which includes the audio signal generated when the earphone is worn by the user and the vibration generated by the user's breathing during the breathing process is transmitted to the ear canal through bone conduction.
  • the vibrations caused by the user's breathing during the breathing process may include vibrations of the airflow in the respiratory tract and/or vibrations of the respiratory tract, which may include the nasal cavity.
  • the vibrations generated by the user during breathing can be transmitted to the ear canal through bone conduction, generating respiratory audio signals, such as audio signals in the range of 0.1Hz to 10Hz.
  • the ear-blocking effect can amplify this frequency range.
  • the audio signal makes it easy for the feedback microphone to collect the respiratory audio signal. This range can be adjusted according to the user's motion status.
  • the user's respiratory frequency can be determined based on the respiratory audio signal.
  • the breathing audio signal can reflect the user's breathing status.
  • the breathing audio signal can be an audio signal in the time domain.
  • the breathing audio signal can be time-frequency converted, and the conversion result can be analyzed to obtain the user's breathing frequency.
  • the method of obtaining the user's breathing frequency based on the breathing audio signal is within the protection scope of this embodiment. For the detailed determination process, please refer to subsequent embodiments.
  • step S400 after determining the respiratory frequency, it may be determined whether the respiratory frequency is abnormal based on the respiratory frequency and the reference frequency range. When the respiratory frequency exceeds the reference frequency range, the respiratory frequency is determined to be abnormal, and when the respiratory frequency is within the reference frequency range, the respiratory frequency is determined to be normal.
  • the reference frequency range can be determined based on the actual usage scenario and the state of the user's body.
  • the state of the user's body is the physical state, which can include a moving state and a non-moving state.
  • the non-exercise state may include a state where the user is sitting quietly, standing, or sleeping. When the user is sitting quietly or standing, the first reference frequency range corresponds to it, and when the user is sleeping, the second reference frequency range corresponds to it.
  • the motion state may include states of different sports such as running, playing ball, swimming, etc.
  • the running state corresponds to the third reference frequency range
  • the playing state corresponds to the fourth reference frequency range.
  • the respiratory frequency matching the corresponding reference frequency range when the respiratory frequency is within the corresponding reference frequency range, the respiratory frequency is normal; when the respiratory frequency is outside the corresponding reference frequency range, the respiratory frequency is abnormal.
  • This disclosed example can obtain the user's breathing audio signal through the earphones, and then detect the user's breathing frequency based on the breathing audio signal, and then determine whether the user's breathing frequency matches the corresponding reference frequency range, thereby determining whether the user's breathing frequency is abnormal. .
  • the respiratory rate can be determined through the earphones without the cost of new hardware or the use of various other sensors and other monitoring equipment. It reduces the difficulty and inconvenience of monitoring the user's breathing frequency, improves the convenience of monitoring the user's breathing frequency, and improves the user's experience.
  • FIG. 4 is a schematic diagram of a method for obtaining a respiratory audio signal.
  • the method includes:
  • Step S201 The ear canal audio signal is divided into frames to obtain the ear canal audio signal divided into multiple frames.
  • Step S202 Filter the ear canal audio signal obtained after multiple frames are divided into multiple frames to obtain a multi-frame respiratory audio signal.
  • the ear canal audio signal After collecting the audio signal in the ear canal through the feedback microphone in the earphone, the ear canal audio signal can be obtained.
  • the audio signal in the ear canal collected by the feedback microphone is divided into frames to obtain the multi-frame divided audio signal.
  • the multi-frame ear canal audio signal obtained after framing is more stable and continuous, which facilitates subsequent processing.
  • the frame length of the divided ear canal audio signal can be determined according to actual needs, such as 16ms, 32ms or 64ms.
  • the frame shift can be half the frame length.
  • the frame length of each frame of the audio signal after framing may be the same.
  • the feedback microphone can also collect audio signals other than breathing audio signals, such as audio signals from running, walking, talking, tooth collisions, and head collisions with other things.
  • the ear canal audio signals collected by the feedback microphone may include respiratory audio signals, and may also include other audio signals besides the respiratory audio signals.
  • the other audio signals except the respiratory audio signals are noise signals corresponding to the respiratory audio signals. Before determining the respiratory frequency based on the respiratory audio signal, these noise signals need to be filtered out.
  • the ear canal audio signal can be filtered to filter out other audio signals except the respiratory audio signal.
  • the frequency range of the respiratory audio signal can be in the range of 0.1Hz to 5Hz, with a concentration around 0.5Hz.
  • the frequencies of other audio signals such as running, walking, talking, tooth collisions, and head collisions with other things are not within this range, or have less intersection with this frequency range.
  • the frequencies of audio signals such as running, walking, or talking are usually greater than breathing audio.
  • the frequency of the signal, and the amplitude of audio signals such as running, walking, or talking is also greater than the amplitude of the breathing audio signal.
  • Noise signals can be filtered out based on frequency.
  • the frequency range of the breathing audio signal can be adjusted according to the user's physical condition.
  • the filtered ear canal audio signal is the respiratory audio signal, which can reduce the interference of the noise signal on the respiratory audio signal, thereby reducing the interference on the determined respiratory frequency and improving the accuracy of the determined respiratory frequency.
  • the filtering methods may include multiple methods.
  • the audio signal after each frame is divided into frames may be filtered through Fourier transform to obtain a multi-frame breathing audio signal.
  • the audio signal after each frame is divided into frames can also be filtered through wavelet transform to obtain a multi-frame respiratory audio signal.
  • the method of filtering the audio signals divided into frames and filtering audio signals other than the respiratory audio signals to obtain multi-frame respiratory audio signals is within the scope of this embodiment.
  • Step S300 determine the user's breathing frequency based on the breathing audio signal, including:
  • Step S301 determine the spectrum information of the respiratory audio signal
  • Step S302 Based on the spectrum information, detect the target amplitude in the respiratory audio signal within the target frequency range; where the target amplitude is the maximum peak value of the fundamental wave of the respiratory audio signal;
  • Step S303 Determine the respiratory frequency according to the frequency corresponding to the target amplitude.
  • the respiratory audio signal is processed to determine the spectrum information of the respiratory audio signal. Since the respiratory audio signal collected through the feedback microphone is an audio signal in the time domain, the respiratory audio signal in the time domain can be converted to obtain an audio signal in the frequency domain, thereby obtaining the corresponding spectrum information. For example, by converting the respiratory audio signal in the time domain to the respiratory audio signal in the frequency domain through Fourier transform, the spectrum information of the respiratory audio signal can be obtained.
  • the spectrum information includes corresponding information of frequency and amplitude.
  • the target amplitude in the respiratory audio signal corresponding to the spectrum information can be detected within the target frequency range.
  • the target amplitude is within the target frequency range, and the spectrum information corresponds to the maximum peak-to-peak value of the fundamental wave of the respiratory audio signal, that is, the maximum amplitude of the fundamental wave corresponds to the amplitude value.
  • the fundamental wave of the respiratory audio signal can best reflect the spectrum information of the respiratory audio signal. Determining the respiratory frequency based on the frequency corresponding to the maximum peak value of the fundamental wave of the respiratory audio signal can improve the accuracy of the respiratory frequency.
  • the target frequency range may be preset, or the corresponding target frequency range may be determined according to the user's physical condition.
  • the greater the amplitude the greater the intensity of the corresponding audio signal.
  • the intensity of the respiratory audio signal is maximum, so according to the frequency corresponding to the target amplitude in the spectrum information, the accuracy of determining the respiratory frequency is higher.
  • the larger the amplitude the higher the peak value of the wave peak.
  • the maximum peak value of the fundamental wave within the target frequency range corresponds to the amplitude of the maximum amplitude of the fundamental wave. Determining the respiratory frequency based on the frequency corresponding to the target amplitude can improve the accuracy of determining the respiratory frequency.
  • step S301 can also process each frame of respiratory audio signal in frame units to determine the spectrum information of each frame of respiratory audio signal, so that each frame of respiratory audio signal can be obtained.
  • the spectrum information of the signal is used to determine the respiratory frequency based on the spectrum information of at least one frame of respiratory audio signal.
  • Step S302 The target amplitude corresponding to each frame of the respiratory audio signal can also be determined within the target frequency range based on the spectrum information of the respiratory audio signal of each frame.
  • Step S303 you can also determine the frequency corresponding to the target amplitude of each frame of respiratory audio signal based on the spectrum information corresponding to each frame of respiratory audio signal, and determine the respiratory frequency based on the frequency corresponding to the target amplitude of each frame of respiratory audio signal.
  • Step S302 based on the spectrum information, detect the target amplitude in the respiratory audio signal within the target frequency range, including:
  • S3022 Determine whether there is a waveform of the second waveform frequency within the target frequency range according to the first waveform frequency of the waveform corresponding to the maximum peak value; wherein the first waveform frequency is an integer multiple of the second waveform frequency.
  • S3025 Determine the maximum peak value of the fundamental wave as the target amplitude.
  • the waveform of the respiratory audio signal can be determined based on the spectrum information. Since the waveform has a peak, the maximum peak value is detected within the target frequency range according to the waveform in the spectrum information. In the spectrum information, the maximum peak value is The intensity of the respiratory audio signal is the largest at the peak, which best reflects the respiratory audio signal. According to the spectrum information, within the target frequency range, the frequency of the waveform corresponding to the maximum peak value can also be determined, and this frequency is recorded as the first waveform frequency. Then detect whether there is a waveform of the second waveform frequency within the target frequency range. The first waveform frequency is an integer multiple of the second waveform frequency.
  • the waveform of the first waveform frequency is not the fundamental wave of the respiratory audio signal.
  • the waveform of the first waveform frequency is the harmonic of the fundamental wave of the respiratory audio signal.
  • the frequency of the harmonic is an integer multiple of the fundamental frequency, and the frequency of the harmonic is greater than the fundamental wave.
  • the frequency and harmonics may have an adverse effect on determining the target amplitude, thereby affecting the determination of the respiratory frequency, then the waveform of the second waveform frequency is determined as the fundamental wave of the respiratory audio signal.
  • the waveform of the second waveform frequency is determined that there is no waveform of the second waveform frequency, indicating that the waveform of the first waveform frequency is the fundamental wave of the respiratory audio signal within the target frequency range, then the waveform of the first waveform frequency is determined is the fundamental wave.
  • the peaks of the two wave peaks are the same, and the frequencies corresponding to each target amplitude are different.
  • the frequency corresponding to one target amplitude is 1Hz
  • the frequency corresponding to the other target amplitude is 1Hz.
  • the frequency corresponding to the value is 1.5Hz, then the frequency 1Hz is determined as the respiratory frequency.
  • step S303 determining the respiratory frequency according to the frequency corresponding to the target amplitude, includes:
  • the average frequency corresponding to the target amplitude in the multi-frame respiratory audio signal is determined as the respiratory frequency.
  • the target amplitude in each frame of the respiratory audio signal is determined based on the spectrum information of each frame of the respiratory audio signal, and then the average value of the frequencies corresponding to the target amplitude in the multi-frame respiratory audio signal is determined as Respiratory rate. This can reduce the impact on the accuracy of determining the respiratory frequency when individual target amplitude differences are large, thereby improving the accuracy of determining the respiratory frequency.
  • the target amplitude of each frame of the respiratory audio signal is determined based on the spectrum information of each frame of the respiratory audio signal in the 10 frames of respiratory audio signal.
  • the target amplitude 1 of the respiratory audio signal of the first frame is determined.
  • the target amplitude 2 of the respiratory audio signal of the second frame is determined.
  • the target amplitude 10 of the respiratory audio signal of the tenth frame is determined. Then, within the target frequency range, the frequencies corresponding to the target amplitude 1 to the target amplitude 10 are determined, and the average frequency of these ten frequencies is determined as the respiratory frequency.
  • FIG. 7 is a schematic diagram for determining a target frequency range and a reference frequency range.
  • the method includes:
  • Step A obtain the user's physical state;
  • the physical state includes a motion state and a non-motion state, the motion state includes at least one state corresponding to motion, and the non-motion state includes at least one state corresponding to non-motion;
  • Step B Determine the target frequency range and reference frequency range according to the physical state. Different body states correspond to respective target frequency ranges, and different body states correspond to respective reference frequency ranges; in the same body state, the reference frequency range is included in the target frequency range.
  • the body status can be obtained through an external device connected to the headset.
  • the external device sends the body status information to the headset after determining the body status, or it can be determined through the headset.
  • the process of determining the body state is not limited; here, only the result of the acquired body state is used.
  • the target frequency range and the reference frequency range can be determined according to the user's physical state.
  • the user's physical state can include a moving state and a non-moving state.
  • the moving state can include states corresponding to various sports such as walking, running, playing ball, and swimming.
  • the non-moving state can include non-moving states such as sitting still, standing, and sleeping.
  • the target frequency range and the reference frequency range that match the user's current body state can be determined.
  • the target frequency range and reference frequency range corresponding to different physical states can be determined according to actual use requirements.
  • the target frequency range and the reference frequency range may be different under the same physical condition.
  • the target frequency range and reference frequency range will also be different in different motion states.
  • the target frequency range and reference frequency range corresponding to the walking state are different from the target frequency range and reference frequency range corresponding to the running state.
  • the target frequency range and reference frequency range may also be different in different non-exercise states.
  • the target frequency range and reference frequency range corresponding to the sleeping state may be different from the target frequency range and reference frequency range corresponding to the sitting state.
  • the reference frequency range is included in the target frequency range, the maximum value of the reference frequency range is less than the maximum value of the target frequency range, and the minimum value of the reference frequency range is less than the minimum value of the target frequency range. If this can reduce the respiratory frequency determined within the target frequency range to always be within the reference frequency range, the respiratory frequency will not exceed the reference frequency range, thereby reducing the situation where the respiratory frequency cannot be determined to be abnormal. It can also reduce the partial intersection between the reference frequency range and the target frequency range, resulting in a higher probability that the respiratory frequency will appear in an interval that does not intersect with the target frequency in the reference frequency range, resulting in a lower accuracy in determining whether the respiratory frequency is abnormal. problem to improve the accuracy of determining whether respiratory rate is abnormal.
  • FIG. 8 is a schematic diagram of determining a target frequency range.
  • the target frequency range is determined based on the user's physical condition, including:
  • Step B1 Determine the first compensation value of the maximum value and the second compensation value of the minimum value in the target frequency range corresponding to different body states.
  • Step B2 Determine the target frequency range based on the first reference frequency range, the first compensation value and the second compensation value.
  • the target frequency range has a first reference frequency range.
  • the first reference frequency range is used to determine the target frequency range under different body states. Different body states correspond to a first compensation value of the maximum value and a minimum value of the target frequency range. 2. Compensation value.
  • the first compensation value and the second compensation value corresponding to different body states are different.
  • the target frequency range matching the body state can be determined based on the first reference frequency range, the first compensation value and the second compensation value.
  • the reference frequency range is determined based on the user's physical condition, including:
  • Step B3 Determine the third compensation value of the maximum value and the fourth compensation value of the minimum value in the reference frequency range corresponding to different body states.
  • Step B4 Determine the reference frequency range based on the second reference frequency range, the third compensation value and the fourth compensation value.
  • the reference frequency range has a second reference frequency range.
  • the second reference frequency range is used to determine the reference frequency range under different body states. Under different body states, there is a third compensation value of the maximum value and a third compensation value of the minimum value in the reference frequency range. Four compensation values. The third compensation value and the fourth compensation value corresponding to different body states are different.
  • the reference frequency range matching the body state can be determined based on the second reference frequency range, the third compensation value and the fourth compensation value.
  • the first reference frequency range and the second reference frequency range may be preset.
  • the second reference frequency range is 0.3Hz to 3Hz. Different physical states will have different impacts on the respiratory frequency.
  • the first compensation value can be and the second compensation value to dynamically adjust the target frequency range, and dynamically adjust the reference frequency range according to the third compensation value and the fourth compensation value.
  • the first compensation value and the second compensation value may be the same, and the third compensation value and the fourth compensation value may also be the same.
  • the second reference frequency range is adjusted to 0.5Hz to 3.2Hz.
  • the first compensation value and the second compensation value can be recorded as Delta_f, and the second reference frequency range is adjusted to Delta_f+0.3Hz to Delta_f+3Hz.
  • the breathing frequency in the current body state can be determined according to the body state, improving the accuracy of the breathing frequency.
  • the method further includes:
  • the preset device When it is determined that the breathing frequency is abnormal, prompt information is sent to a preset device that has established a communication connection with the headset.
  • the preset device may be a terminal device held by the user whose respiratory frequency is being monitored, such as a mobile phone, tablet computer, or other device, or may be a device held by a user who has a social relationship with the user whose respiratory frequency is being monitored.
  • a prompt message is sent to the preset device connected to the headset to notify the user or the user's associated device. personnel, thereby helping the user or the personnel associated with the user to understand the physical condition of the user whose breathing is being monitored, so as to facilitate timely medical treatment.
  • the prompt information can be a pop-up message, a sound prompt message or a short message, etc.
  • FIG. 10 is a schematic diagram of a respiratory monitoring device, which can be applied to an earphone, and the earphone includes a feedback microphone.
  • the device includes:
  • the ear canal audio signal collection module 1 is configured to collect the audio signal in the ear canal through the feedback microphone to obtain the respiratory audio signal;
  • the respiratory audio signal determination module 2 is configured to perform filtering processing on the ear canal audio signal to obtain a respiratory audio signal; wherein the respiratory audio signal is when the earphone is worn by the user.
  • the vibrations generated during breathing are transmitted to the ear canal through bone conduction to generate audio signals;
  • the respiratory frequency determination module 3 is configured to determine the respiratory frequency of the user according to the respiratory audio signal
  • the abnormality determination module 4 is configured to determine whether the respiratory frequency is abnormal according to the respiratory frequency and a reference frequency range.
  • the respiratory frequency determination module includes:
  • a spectrum information determining unit configured to determine the spectrum information of the respiratory audio signal
  • a target amplitude determination unit configured to detect a target amplitude in the respiratory audio signal within a target frequency range based on the spectrum information; wherein the target amplitude is the maximum value of the fundamental wave of the respiratory audio signal. peak value;
  • the respiratory frequency determination unit is configured to determine the respiratory frequency according to the frequency corresponding to the target amplitude.
  • the target amplitude determination unit includes:
  • a peak detection subunit configured to detect the maximum peak value within the target frequency range based on the spectrum information
  • the waveform detection subunit is configured to determine whether there is a waveform of the second waveform frequency within the target frequency range according to the first waveform frequency of the waveform corresponding to the maximum peak value; wherein the first waveform frequency is the An integer multiple of the second waveform frequency;
  • the fundamental wave determination subunit is configured to determine the waveform of the second waveform frequency as the fundamental wave when it is determined that there is a waveform of the second waveform frequency; when it is determined that there is no waveform of the second waveform frequency.
  • the waveform of the first waveform frequency is determined as the fundamental wave.
  • the respiratory frequency determining unit includes:
  • a first respiratory frequency determination subunit configured to determine the frequency corresponding to the target amplitude as the respiratory frequency when the number of frames of the respiratory audio signal is one frame
  • the second respiratory frequency determination subunit is configured to determine the average frequency corresponding to the target amplitude in the multiple frames of the respiratory audio signal as the respiratory frequency when the number of frames of the respiratory audio signal is multiple frames.
  • the device further includes:
  • a body state determination module configured to obtain the body state of the user; the body state includes a motion state and a non-motion state, the motion state includes at least one state corresponding to motion, and the non-motion state includes at least one The state corresponding to non-motion;
  • a frequency range determination module configured to determine the target frequency range and the reference frequency range according to the body state
  • different body states correspond to respective target frequency ranges, and different body states respectively correspond to respective reference frequency ranges; in the same body state, the reference frequency range is included in the target frequency range.
  • the frequency range determination module includes:
  • a first determination unit configured to determine a first compensation value of the maximum value and a second compensation value of the minimum value in the target frequency range corresponding to different body states
  • a second determination unit configured to determine a third compensation value of the maximum value and a fourth compensation value of the minimum value in the reference frequency range corresponding to different body states
  • a target frequency range determination unit configured to determine the target frequency range according to the first reference frequency range, the first compensation value and the second compensation value
  • a reference frequency range determining unit is configured to determine the reference frequency range according to the second reference frequency range, the third compensation value and the fourth compensation value.
  • the respiratory audio signal determination module includes:
  • a framing unit configured to frame the ear canal audio signal to obtain the ear canal audio signal after multiple frames of framing
  • the filtering unit is configured to filter the ear canal audio signal obtained after multiple frames are divided into frames to obtain the respiratory audio signal of multiple frames.
  • the device further includes:
  • a prompt information sending module configured to send prompt information to the preset device when it is determined that the respiratory frequency is abnormal
  • a communication connection is established between the preset device and the earphone.
  • an embodiment of the present disclosure provides an earphone, which includes a housing and a controller, a feedback microphone, a feedforward microphone and a speaker provided on the housing;
  • the feedforward microphone is connected to the controller and used to collect audio data outside the ear canal and send it to the controller;
  • the feedback microphone is connected to the controller and used to collect audio data in the ear canal and send it to the controller;
  • the controller includes a memory and a processor.
  • the memory has executable computer instructions stored therein.
  • the processor can call the computer instructions stored in the memory to execute the method described in any embodiment.
  • a computer storage medium stores an executable program; after the executable program is executed by a processor, the method provided in any of the above embodiments can be implemented.
  • FIG. 11 is a block diagram of an electronic device 800 according to an exemplary embodiment.
  • the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power supply component 806 , a multimedia component 808 , an audio component 810 , an input/output (I/O) interface 812 , and a sensor component 814 , and communication component 816.
  • Processing component 802 generally controls the overall operations of electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 802 may include one or more processors 820 to execute instructions to generate all or part of the steps of the methods described above.
  • processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components.
  • processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operations at electronic device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, etc.
  • Memory 804 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read-only memory
  • EEPROM erasable programmable read-only memory
  • EPROM Programmable read-only memory
  • PROM programmable read-only memory
  • ROM read-only memory
  • magnetic memory flash memory, magnetic or optical disk.
  • Power supply component 806 provides power to various components of electronic device 800 .
  • Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
  • Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action.
  • multimedia component 808 includes a front-facing camera and/or a rear-facing camera.
  • the front camera and/or the rear camera may receive external multimedia data.
  • Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
  • Audio component 810 is configured to output and/or input audio signals.
  • audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 804 or sent via communication component 816 .
  • audio component 810 also includes a speaker for outputting audio signals.
  • the I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
  • Sensor component 814 includes one or more sensors for providing various aspects of status assessment for electronic device 800 .
  • the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800.
  • the sensor component 814 can also detect the electronic device 800 or a component of the electronic device 800. changes in position, the presence or absence of user contact with the electronic device 800 , the orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 .
  • Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices.
  • the electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof.
  • the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communications component 816 also includes a near field communications (NFC) module to facilitate short-range communications.
  • NFC near field communications
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • electronic device 800 may be configured by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A programmable gate array
  • controller microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
  • a non-transitory computer-readable storage medium including instructions such as a memory 804 including instructions, executable by the processor 820 of the electronic device 800 to generate the above method is also provided.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.

Abstract

Embodiments of the present disclosure provide a respiratory monitoring method and apparatus, an earphone and a storage medium. The respiratory monitoring method is applied to an earphone, and the earphone comprises a feedback microphone. The method comprises: collecting an audio signal in an ear canal by means of the feedback microphone to obtain an ear canal audio signal (S100); performing filtering processing on the ear canal audio signal to obtain a respiratory audio signal, wherein the respiratory audio signal is an audio signal generated when the vibration generated in the respiratory process of a user is transmitted to the ear canal by means of bone conduction when the earphone is worn by the user (S200); determining the respiratory rate of the user according to the respiratory audio signal (S300); and determining, according to the respiratory rate and a reference rate range, whether the respiratory rate is abnormal (S400).

Description

呼吸监测方法、装置、耳机及存储介质Respiratory monitoring method, device, earphone and storage medium 技术领域Technical field
本公开涉及信息处理技术领域但不限于信息处理技术领域,尤其涉及一种呼吸监测方法、装置、耳机及存储介质。The present disclosure relates to the field of information processing technology but is not limited to the field of information processing technology, and in particular, to a respiratory monitoring method, device, earphones and storage media.
背景技术Background technique
随着技术的发展,在各个应用场景中出现了越来越多的电子设备,不同的电子设备在对应的应用场景中可以实现不同的功能。With the development of technology, more and more electronic devices have appeared in various application scenarios, and different electronic devices can achieve different functions in corresponding application scenarios.
随着健康监测设备的广泛应用,通过健康监测设备可以检测到被检测对象的健康状态。其中,呼吸作为健康状况的一种重要指标,在确定健康状况时起到了重要作用。通过对呼吸进行监测可以确定出被监测对象的呼吸是否正常。With the widespread application of health monitoring equipment, the health status of the detected object can be detected through health monitoring equipment. Among them, breathing, as an important indicator of health status, plays an important role in determining health status. By monitoring the breathing, it can be determined whether the breathing of the monitored subject is normal.
发明内容Contents of the invention
本公开实施例提供一种呼吸监测、装置、耳机及存储介质。Embodiments of the present disclosure provide a respiratory monitoring device, an earphone, and a storage medium.
本公开实施例第一方面提供一种呼吸监测方法,其中,应用于耳机,所述耳机包括反馈麦克风,所述方法包括:A first aspect of an embodiment of the present disclosure provides a respiratory monitoring method, which is applied to an earphone, the earphone includes a feedback microphone, and the method includes:
通过所述反馈麦克风采集耳道内的音频信号,得到耳道音频信号;Collect the audio signal in the ear canal through the feedback microphone to obtain the ear canal audio signal;
对所述耳道音频信号进行滤波处理,得到呼吸音频信号;其中,所述呼吸音频信号为当所述耳机处于被用户佩戴的状态下,所述用户在呼吸过程中产生的震动通过骨传导方式被传递至耳道而产生的音频信号;The ear canal audio signal is filtered to obtain a respiratory audio signal; wherein the respiratory audio signal is the vibration generated by the user during the breathing process when the earphone is worn by the user through bone conduction. The audio signal produced by being delivered to the ear canal;
根据所述呼吸音频信号,确定所述用户的呼吸频率;Determine the user's respiratory frequency based on the respiratory audio signal;
根据所述呼吸频率和参考频率范围,确定所述用户的呼吸频率是否异常。According to the respiratory frequency and the reference frequency range, it is determined whether the user's respiratory frequency is abnormal.
本公开实施例第二方面提供一种呼吸监测装置,应用于耳机,所述耳机包括反馈麦克风;所述装置包括:A second aspect of the embodiment of the present disclosure provides a respiratory monitoring device, applied to earphones, where the earphones include a feedback microphone; the device includes:
耳道音频信号采集模块,被配置为通过所述反馈麦克风采集耳道内的音频信号,得到耳道音频信号;An ear canal audio signal collection module is configured to collect the audio signal in the ear canal through the feedback microphone to obtain the ear canal audio signal;
呼吸音频信确定模块,被配置为对所述耳道音频信号进行滤波处理,得到呼吸音频信号;其中,所述呼吸音频信号为当所述耳机处于被用户佩戴的状态下,所述用户在呼吸过程中产生的震动通过骨传导方式被传递至耳道而产生的音频信号;The respiratory audio signal determination module is configured to perform filtering processing on the ear canal audio signal to obtain a respiratory audio signal; wherein the respiratory audio signal is when the earphone is worn by the user and the user is breathing. The vibrations generated during the process are transmitted to the ear canal through bone conduction to generate audio signals;
呼吸频率确定模块,被配置为根据所述呼吸音频信号,确定出所述用户的呼吸频率;a respiratory frequency determination module configured to determine the respiratory frequency of the user based on the respiratory audio signal;
异常确定模块,被配置为根据所述呼吸频率和参考频率范围,确定所述呼吸频率是否异常。An abnormality determination module is configured to determine whether the respiratory frequency is abnormal according to the respiratory frequency and a reference frequency range.
本公开实施例第三方面提供一种耳机,所述耳机包括壳体以及设置于所述壳体上的控制器、反馈麦克风、前馈麦克风和扬声器;所述前馈麦克风与所述控制器连接,用于采集耳道外音频数据并发送给所述控制器;所述反馈麦克风与所述控制器连接,用于采集耳道内音频数据并发送给所述控制器;所述控制器包括存储器和处理器,所述存储器上存储有可执行的计算机指令,所述处理器能够调用所述存储器上存储的计算机指令,以执行程序时执行如前述第一方面提供的呼吸监测方法。A third aspect of the present disclosure provides an earphone. The earphone includes a housing and a controller, a feedback microphone, a feedforward microphone and a speaker provided on the housing; the feedforward microphone is connected to the controller. , used to collect audio data outside the ear canal and send it to the controller; the feedback microphone is connected to the controller, used to collect audio data inside the ear canal and send it to the controller; the controller includes a memory and a processor The processor has executable computer instructions stored on the memory, and the processor can call the computer instructions stored on the memory to execute the respiratory monitoring method as provided in the first aspect when executing the program.
本公开实施例第四方面提供一种计算机存储介质,所述计算机存储介质存储有可执行程序;所述可执行程序被处理器执行后,能够实现前述的第一方面提供的呼吸监测方法。A fourth aspect of the embodiments of the present disclosure provides a computer storage medium that stores an executable program; after the executable program is executed by a processor, the respiratory monitoring method provided by the first aspect can be implemented.
本公开实施例提供的呼吸监测方法可以应用于耳机,通过耳机即可确定出用户的呼吸频率,无需其他监测传感器,从而提高了监测用户呼吸频率的便利性,提高了用户的使用体验。The respiratory monitoring method provided by the embodiments of the present disclosure can be applied to headphones, and the user's respiratory frequency can be determined through the headphones without the need for other monitoring sensors, thereby improving the convenience of monitoring the user's respiratory frequency and improving the user's experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开实施例。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and do not limit the embodiments of the present disclosure.
附图说明Description of the drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明实施例,并与说明书一起用于解释本发明实施例的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the embodiments of the invention.
图1是根据一示例性实施例示出的一种呼吸监测方法的示意图;Figure 1 is a schematic diagram of a respiratory monitoring method according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种耳机的示意图;Figure 2 is a schematic diagram of an earphone according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种耳机处于被用户佩戴状态时的示意图;Figure 3 is a schematic diagram of an earphone in a state of being worn by a user according to an exemplary embodiment;
图4是根据一示例性实施例示出的另一种确定呼吸监测方法的示意图;Figure 4 is a schematic diagram of another method for determining respiratory monitoring according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种确定呼吸频率的示意图;Figure 5 is a schematic diagram illustrating a method of determining respiratory frequency according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种确定目标幅值的示意图;Figure 6 is a schematic diagram of determining a target amplitude according to an exemplary embodiment;
图7是根据一示例性实施例示出的一种确定目标频率范围和参考频率范围的示意图;Figure 7 is a schematic diagram illustrating a method of determining a target frequency range and a reference frequency range according to an exemplary embodiment;
图8是根据一示例性实施例示出的一种确定目标频率范围的示意图;Figure 8 is a schematic diagram illustrating a method of determining a target frequency range according to an exemplary embodiment;
图9是根据一示例性实施例示出的一种确定参考频率范围的示意图;Figure 9 is a schematic diagram illustrating a method of determining a reference frequency range according to an exemplary embodiment;
图10是根据一示例性实施例示出的一种呼吸监测装置的结构示意图;Figure 10 is a schematic structural diagram of a respiratory monitoring device according to an exemplary embodiment;
图11是根据一示例性实施例示出的一种电子设备的结构示意图。FIG. 11 is a schematic structural diagram of an electronic device according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明实施例相一致的所有实施方式。相反,它们仅是本发明实施例的一些方面相一致 的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with embodiments of the invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of embodiments of the invention.
在本公开实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本公开实施例。在本公开所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the embodiments of the present disclosure is for the purpose of describing specific embodiments only and is not intended to limit the embodiments of the present disclosure. As used in this disclosure, the singular forms "a," "the" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本公开实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本公开实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present disclosure, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of the embodiments of the present disclosure, the first information may also be called second information, and similarly, the second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to determining."
通常情况下,呼吸频率可以反映身体健康状况,在对呼吸频率进行监测时,需要用到专业的监测设备。例如,用户到医院就医时,医生可以通过医院内用于监测呼吸的设备监测用户的呼吸频率,如压电传感器、热电阻传感器和/或红外传感器等进行呼吸监测。将这些传感器部署在相应的部位,在人体呼吸时,人体中部署传感器的部位会发生一些浮动,这些传感器可以根据这些浮动产生电信号,从而根据这些电信号可以确定呼吸频率。可以通过解析不同传感器感应的信号,识别不同的呼吸速率。并且这个过程中的相关操作需要专业的医护人员完成。Under normal circumstances, respiratory frequency can reflect physical health. When monitoring respiratory frequency, professional monitoring equipment is required. For example, when a user goes to the hospital for medical treatment, the doctor can monitor the user's respiratory frequency through equipment used to monitor breathing in the hospital, such as piezoelectric sensors, thermal resistance sensors and/or infrared sensors for respiratory monitoring. These sensors are deployed in corresponding parts. When the human body breathes, some fluctuations occur in the parts of the human body where the sensors are deployed. These sensors can generate electrical signals based on these fluctuations, and thus the respiratory frequency can be determined based on these electrical signals. Different breathing rates can be identified by analyzing the signals sensed by different sensors. And the relevant operations in this process need to be completed by professional medical staff.
通过这些传感器监测用户的呼吸频率时,需要用户在特定的地点和特定的状态下佩戴多个传感器进行呼吸频率的监测。如在医院内的相应科室内,用户在非运动状态下完成,如静止状态。这样就不能随时随地的监测呼吸频率,降低了监测呼吸频率的便利性,从而降低了用户的体验。When monitoring the user's respiratory frequency through these sensors, the user needs to wear multiple sensors in a specific place and in a specific state to monitor the respiratory frequency. For example, in the corresponding department of the hospital, the user completes it in a non-moving state, such as a stationary state. In this way, the respiratory frequency cannot be monitored anytime and anywhere, which reduces the convenience of monitoring the respiratory frequency, thereby reducing the user experience.
参考图1,其示出了本公开实施例提供的一种呼吸监测方法的示意图,该方法至少可以应用于耳机,该耳机至少可以包括反馈麦克风。Referring to FIG. 1 , a schematic diagram of a respiratory monitoring method provided by an embodiment of the present disclosure is shown. The method can be applied to at least earphones, and the earphones can at least include a feedback microphone.
如图1所示,该方法包括:As shown in Figure 1, the method includes:
步骤S100,通过反馈麦克风采集耳道内的音频信号,得到呼吸音频信号;Step S100, collect the audio signal in the ear canal through the feedback microphone to obtain the respiratory audio signal;
步骤S200,对耳道音频信号进行滤波处理,得到呼吸音频信号;其中,呼吸音频信号为当耳机处于被用户佩戴的状态下,用户在呼吸过程中产生的震动通过骨传导方式被传递至耳道而产生的音频信号。Step S200, perform filtering processing on the ear canal audio signal to obtain a respiratory audio signal; wherein, the respiratory audio signal is when the earphone is worn by the user, and the vibration generated by the user during breathing is transmitted to the ear canal through bone conduction. The audio signal produced.
步骤S300,根据呼吸音频信号,确定出用户的呼吸频率。Step S300: Determine the user's breathing frequency based on the breathing audio signal.
步骤S400,根据呼吸频率和参考频率范围,确定呼吸频率是否异常。Step S400: Determine whether the respiratory frequency is abnormal based on the respiratory frequency and the reference frequency range.
耳机可以是不同形状的耳机,包括入耳式、半入耳式和头戴式等不同形式的耳机。耳机的通信方式可以包括有线耳机和无线耳机,无线耳机可以包括蓝牙耳机,例如真无线立体声耳机(TrueWireless Stereo,TWS)。耳机还可以包括助听器等具有反馈麦克风并且能够实现该方案的设备。Earphones can be of different shapes, including in-ear, semi-in-ear, and head-mounted earphones. The communication method of the headset may include wired headsets and wireless headsets, and the wireless headsets may include Bluetooth headsets, such as True Wireless Stereo headsets (TWS). Headphones may also include devices such as hearing aids that have feedback microphones and are capable of implementing this scheme.
耳机中的反馈麦克风可以位于耳机的出音通道附近,耳机处于佩戴状态时,反馈麦克风位于耳道内,可以采集耳道内的音频信号,例如入耳式耳机。在耳机为其他形式的耳机时,如半入耳式耳机和头戴式耳机等,在耳机处于佩戴状态时反馈麦克风能够采集耳道内的音频信号即可。The feedback microphone in the headset can be located near the sound channel of the headset. When the headset is worn, the feedback microphone is located in the ear canal and can collect audio signals in the ear canal, such as in-ear headphones. When the earphones are other types of earphones, such as semi-in-ear earphones and headphones, the feedback microphone can collect audio signals in the ear canal when the earphones are worn.
参考图2,图2为一种耳机的示意图,包括反馈麦克风a,在耳机处于佩戴状态时,该反馈麦克风a可以位于耳道内。该耳机还可以包括前馈麦克风b,前馈麦克风b可以位于耳机柄上,在耳机处于佩戴状态时,前馈麦克风位于耳道外,可以采集外部环境的环境音频信号。耳机还可以包括通话麦克风c,在通话状态下采集用户发出的音频信号。反馈麦克风a比前馈麦克风b采集到的音频信号的信噪比更高,所以通过反馈麦克风a采集到噪声更少、质量更高的耳道音频信号。Referring to Figure 2, Figure 2 is a schematic diagram of an earphone, including a feedback microphone a. When the earphone is worn, the feedback microphone a can be located in the ear canal. The headset may also include a feedforward microphone b, which may be located on the stem of the headset. When the headset is worn, the feedforward microphone is located outside the ear canal and can collect environmental audio signals from the external environment. The headset may also include a call microphone c to collect audio signals sent by the user during a call. The signal-to-noise ratio of the audio signal collected by feedback microphone a is higher than that of feedforward microphone b, so an ear canal audio signal with less noise and higher quality is collected through feedback microphone a.
在耳机为头戴式耳机时,也会形成一定程度的堵耳效应,在耳机处于佩戴状态时,反馈麦克风a可以位于耳道外或者朝向耳道,能够采集耳道音频信号即可。When the earphone is a headset, a certain degree of ear-blocking effect will also occur. When the earphone is worn, the feedback microphone a can be located outside the ear canal or toward the ear canal, and can collect ear canal audio signals.
参考图3,图3为一种耳机处于被用户佩戴状态时的示意图,耳机1对耳道2形成一定程度的堵塞,形成堵耳效应。反馈麦克风采集的耳道音频信号包括:当耳机处于被用户佩戴的状态下,用户在呼吸过程中产生的震动通过骨传导方式被传递至耳道而产生的音频信号,即音频信号3。Referring to Figure 3, Figure 3 is a schematic diagram of an earphone when being worn by a user. The earphone 1 blocks the ear canal 2 to a certain extent, forming an ear-blocking effect. The ear canal audio signals collected by the feedback microphone include: when the headset is worn by the user, the vibration generated by the user during breathing is transmitted to the ear canal through bone conduction, that is, the audio signal 3.
对于步骤S100,在耳机处于佩戴状态时,对耳道产生一定的堵塞,形成一定程度的堵耳效应,产生原因是有部分声音会经人的骨头传导到内耳,例如,由于鼻腔距离耳道较近,用户呼吸时气流与呼吸道之间会产生震动,震动通过骨传导的方式传递至耳道的音频信号。在耳机未处于佩戴状态时,骨传导来的声音一部分经外耳向外扩散,但是在耳机处于佩戴状态时,耳道在一定程度上被堵住,减少了骨传导来的声音通过耳道向外扩散的扩散量,形成一定程度的堵耳效应,也称闭塞效应。闭塞效应产生的声音特性表现为低频信号加强、高频信号衰弱。For step S100, when the earphones are in the wearing state, the ear canal will be blocked to a certain extent, resulting in a certain degree of ear blocking effect. The reason for this is that some sounds will be transmitted to the inner ear through the human bones. For example, because the nasal cavity is far away from the ear canal, Recently, when the user breathes, vibrations are generated between the airflow and the respiratory tract, and the vibrations are transmitted to the audio signals in the ear canal through bone conduction. When the earphones are not worn, part of the sound from the bone conduction diffuses outward through the outer ear. However, when the earphones are worn, the ear canal is blocked to a certain extent, which reduces the sound from the bone conduction to the outside through the ear canal. The amount of diffusion creates a certain degree of ear-blocking effect, also known as the occlusion effect. The sound characteristics produced by the occlusion effect are characterized by strengthening low-frequency signals and weakening high-frequency signals.
由于耳机对耳道产生一定的堵塞,形成不同程度的堵耳效应,在产生堵耳效应后,耳机阻挡了外界音频信号进入耳道,减少了外界音频信号对耳道内音频信号的影响。反馈麦克风可以采集耳道内的音频信号得到耳道音频信号。Because the earphones block the ear canal to a certain extent, they form varying degrees of ear blocking effect. After the ear blocking effect occurs, the earphones block external audio signals from entering the ear canal, reducing the impact of external audio signals on the audio signals in the ear canal. The feedback microphone can collect the audio signal in the ear canal to obtain the ear canal audio signal.
对于步骤S200,对耳道音频信号进行滤波处理,得到呼吸音频信号。由于耳道音频信号中包括呼吸音频信号以外,还可以包括其他音频信号,所以对耳道音频信号进行滤波,可以得到呼吸音频信号。可以通过滤波算法根据频率进行滤波,还可以通过滤波器进行滤波。For step S200, the ear canal audio signal is filtered to obtain a respiratory audio signal. Since the ear canal audio signal includes not only the respiratory audio signal, but also other audio signals, the respiratory audio signal can be obtained by filtering the ear canal audio signal. Filtering can be done based on frequency through filtering algorithms, or filtering can be done through filters.
呼吸音频信号为该耳道音频信号包括当耳机处于被用户佩戴的状态下,用户在呼吸过程中由于呼吸产生的震动通过骨传导方式被传递至耳道而产生的音频信号。用户在呼吸过程中由于呼吸产生的震动,可以包括呼吸道中气流的震动和/或呼吸道的震动,呼吸道可以包括鼻腔。The respiratory audio signal is the ear canal audio signal, which includes the audio signal generated when the earphone is worn by the user and the vibration generated by the user's breathing during the breathing process is transmitted to the ear canal through bone conduction. The vibrations caused by the user's breathing during the breathing process may include vibrations of the airflow in the respiratory tract and/or vibrations of the respiratory tract, which may include the nasal cavity.
在形成一定程度的堵耳效应后,用户在呼吸过程中产生的震动可以通过骨传导至耳道,产生呼吸音频信号,如0.1Hz至10Hz范围内的音频信号,堵耳效应可以放大该频率范围的音频信号,从而可以便于反馈麦克风采集呼吸音频信号。该范围可以根据用户的运动状态调整。After a certain degree of ear-blocking effect is formed, the vibrations generated by the user during breathing can be transmitted to the ear canal through bone conduction, generating respiratory audio signals, such as audio signals in the range of 0.1Hz to 10Hz. The ear-blocking effect can amplify this frequency range. The audio signal makes it easy for the feedback microphone to collect the respiratory audio signal. This range can be adjusted according to the user's motion status.
对于步骤S300,在得到呼吸音频信号后,可以根据呼吸音频信号确定出用户的呼吸频率。呼吸音频信号可以反映用户的呼吸状况,呼吸音频信号可以是时域内的音频信号,可以对呼吸音频信号进行时频转换,对转换结果进行分析得到用户的呼吸频率。根据呼吸音频信号得到用户的呼吸频率的方式都在该实施例的保护范围之内,详细的确定过程可以参考后续实施例。For step S300, after obtaining the respiratory audio signal, the user's respiratory frequency can be determined based on the respiratory audio signal. The breathing audio signal can reflect the user's breathing status. The breathing audio signal can be an audio signal in the time domain. The breathing audio signal can be time-frequency converted, and the conversion result can be analyzed to obtain the user's breathing frequency. The method of obtaining the user's breathing frequency based on the breathing audio signal is within the protection scope of this embodiment. For the detailed determination process, please refer to subsequent embodiments.
对于步骤S400,在确定呼吸频率后,可以根据呼吸频率和参考频率范围,确定呼吸频率是否异常。在呼吸频率超出参考频率范围时,确定呼吸频率异常,在呼吸频率在参考频率范围内时,确定 呼吸频率正常。For step S400, after determining the respiratory frequency, it may be determined whether the respiratory frequency is abnormal based on the respiratory frequency and the reference frequency range. When the respiratory frequency exceeds the reference frequency range, the respiratory frequency is determined to be abnormal, and when the respiratory frequency is within the reference frequency range, the respiratory frequency is determined to be normal.
参考频率范围可以根据实际的使用场景和用户身体所处的状态确定。用户身体所处的状态即身体状态,可以包括运动状态和非运动状态。非运动状态可以包括用户在静坐、站立或者睡觉的状态,用户在静坐或者站立的状态时,对应有第一参考频率范围,在睡觉状态下对应有第二参考频率范围。运动状态可以包括跑步、打球、游泳等不同运动的状态,在跑步状态时对应有第三参考频率范围,在打球时对应有第四参考频率范围。The reference frequency range can be determined based on the actual usage scenario and the state of the user's body. The state of the user's body is the physical state, which can include a moving state and a non-moving state. The non-exercise state may include a state where the user is sitting quietly, standing, or sleeping. When the user is sitting quietly or standing, the first reference frequency range corresponds to it, and when the user is sleeping, the second reference frequency range corresponds to it. The motion state may include states of different sports such as running, playing ball, swimming, etc. The running state corresponds to the third reference frequency range, and the playing state corresponds to the fourth reference frequency range.
根据呼吸频率与对应的参考频率范围相匹配,在呼吸频率位于对应的参考频率范围内时,呼吸频率即为正常,在呼吸频率位于对应的参考频率范围外时,呼吸频率出现异常。According to the respiratory frequency matching the corresponding reference frequency range, when the respiratory frequency is within the corresponding reference frequency range, the respiratory frequency is normal; when the respiratory frequency is outside the corresponding reference frequency range, the respiratory frequency is abnormal.
本公开示例通过耳机可以获取用户的呼吸音频信号,然后根据呼吸音频信号检测用户的呼吸频率,进而确定出用户的呼吸频率与对应的参考频率范围是否相匹配,即可确定用户的呼吸频率是否异常。利用已有的内置麦克风,无需新的硬件成本,无需使用其他各种传感器等监测设备,通过耳机即可确定出呼吸频率。降低了用户监测呼吸频率的难度和不便性,提高了监测用户呼吸频率的便利性,提高了用户的使用体验。This disclosed example can obtain the user's breathing audio signal through the earphones, and then detect the user's breathing frequency based on the breathing audio signal, and then determine whether the user's breathing frequency matches the corresponding reference frequency range, thereby determining whether the user's breathing frequency is abnormal. . Utilizing the existing built-in microphone, the respiratory rate can be determined through the earphones without the cost of new hardware or the use of various other sensors and other monitoring equipment. It reduces the difficulty and inconvenience of monitoring the user's breathing frequency, improves the convenience of monitoring the user's breathing frequency, and improves the user's experience.
在一个实施例中,参考图4,图4为一种得到呼吸音频信号的方法的示意图。该方法包括:In one embodiment, refer to FIG. 4 , which is a schematic diagram of a method for obtaining a respiratory audio signal. The method includes:
步骤S201,对耳道音频信号进行分帧,得到多帧分帧后的耳道音频信号。Step S201: The ear canal audio signal is divided into frames to obtain the ear canal audio signal divided into multiple frames.
步骤S202,对多帧分帧后得到的耳道音频信号进行滤波,得到多帧呼吸音频信号。Step S202: Filter the ear canal audio signal obtained after multiple frames are divided into multiple frames to obtain a multi-frame respiratory audio signal.
在通过耳机中的反馈麦克风采集的耳道内的音频信号后,即可得到耳道音频信号,为了便于后续处理,对反馈麦克风采集的耳道内的音频信号进行分帧,得到多帧分帧后的耳道音频信号。分帧之后得到的多帧耳道音频信号更加平稳和连续,便于后续处理。After collecting the audio signal in the ear canal through the feedback microphone in the earphone, the ear canal audio signal can be obtained. In order to facilitate subsequent processing, the audio signal in the ear canal collected by the feedback microphone is divided into frames to obtain the multi-frame divided audio signal. Ear canal audio signal. The multi-frame ear canal audio signal obtained after framing is more stable and continuous, which facilitates subsequent processing.
分帧后的耳道音频信号的帧长可以根据实际需求确定,例如16ms、32ms或者64ms等。为了使各帧音频信号之间平滑过渡,保持其连续性,在分帧时,相邻两帧之间可以存在帧移,帧移可以是帧长的一半。分帧后的各帧音频信号的帧长可以是相同的。The frame length of the divided ear canal audio signal can be determined according to actual needs, such as 16ms, 32ms or 64ms. In order to make the transition between each frame of audio signal smooth and maintain its continuity, when dividing frames, there can be a frame shift between two adjacent frames, and the frame shift can be half the frame length. The frame length of each frame of the audio signal after framing may be the same.
由于其他声音也可以通过骨传导的方式传递至耳道内,反馈麦克风也可以采集出来呼吸音频信号之外的音频信号,例如跑步、走路、说话、牙齿碰撞以及头部与其他东西碰撞的音频信号等。反馈麦克风采集的耳道音频信号可以包括呼吸音频信号,还可以包括除了呼吸音频信号之外的其他音频信号,除了呼吸音频信号之外的其他音频信号对应呼吸音频信号而言即为噪声信号,在根据呼吸音频信号确定呼吸频率之前,需要将这些噪声信号滤除。Since other sounds can also be transmitted into the ear canal through bone conduction, the feedback microphone can also collect audio signals other than breathing audio signals, such as audio signals from running, walking, talking, tooth collisions, and head collisions with other things. . The ear canal audio signals collected by the feedback microphone may include respiratory audio signals, and may also include other audio signals besides the respiratory audio signals. The other audio signals except the respiratory audio signals are noise signals corresponding to the respiratory audio signals. Before determining the respiratory frequency based on the respiratory audio signal, these noise signals need to be filtered out.
由于呼吸音频信号的频率与其他音频信号的频率存在差异,所以可以对耳道音频信号进行滤波,滤除呼吸音频信号以外的其他音频信号。例如,呼吸音频信号的频率范围可以在0.1Hz至5Hz的范围,在集中在0.5Hz左右。其他跑步、走路、说话、牙齿碰撞以及头部与其他东西碰撞等音频信号的频率不在这个范围内,或者与这个频率范围交集较少,跑步、走路或者说话等音频信号的频率通常都大于呼吸音频信号的频率,并且跑步、走路或者说话等音频信号的振幅也要大于呼吸音频信号的振幅。根据频率可以将噪声信号滤除。呼吸音频信号的频率范围可以根据用户的身体状态调整。Since the frequency of the respiratory audio signal is different from the frequency of other audio signals, the ear canal audio signal can be filtered to filter out other audio signals except the respiratory audio signal. For example, the frequency range of the respiratory audio signal can be in the range of 0.1Hz to 5Hz, with a concentration around 0.5Hz. The frequencies of other audio signals such as running, walking, talking, tooth collisions, and head collisions with other things are not within this range, or have less intersection with this frequency range. The frequencies of audio signals such as running, walking, or talking are usually greater than breathing audio. The frequency of the signal, and the amplitude of audio signals such as running, walking, or talking, is also greater than the amplitude of the breathing audio signal. Noise signals can be filtered out based on frequency. The frequency range of the breathing audio signal can be adjusted according to the user's physical condition.
经过滤波后的耳道音频信号即为呼吸音频信号,这样可以减少噪声信号对呼吸音频信号的干扰, 从而减少对确定呼吸频率的干扰,便于提高确定出的呼吸频率的准确度。The filtered ear canal audio signal is the respiratory audio signal, which can reduce the interference of the noise signal on the respiratory audio signal, thereby reducing the interference on the determined respiratory frequency and improving the accuracy of the determined respiratory frequency.
滤波的方式可以包括多种,例如可以通过傅里叶变换对各帧分帧后的音频信号进行滤波,得到多帧呼吸音频信号。还可以通过小波变换对各帧分帧后的音频信号进行滤波,得到多帧呼吸音频信号。能够实现对各帧分帧后的音频信号进行滤波,将呼吸音频信号之外的其他音频信号进行滤除得到多帧呼吸音频信号的方式,都在该实施例的保护范围之内。The filtering methods may include multiple methods. For example, the audio signal after each frame is divided into frames may be filtered through Fourier transform to obtain a multi-frame breathing audio signal. The audio signal after each frame is divided into frames can also be filtered through wavelet transform to obtain a multi-frame respiratory audio signal. The method of filtering the audio signals divided into frames and filtering audio signals other than the respiratory audio signals to obtain multi-frame respiratory audio signals is within the scope of this embodiment.
在一个实施例中,参考图5,图5为一种确定呼吸频率的示意图。步骤S300,根据呼吸音频信号,确定出用户的呼吸频率,包括:In one embodiment, refer to FIG. 5 , which is a schematic diagram for determining respiratory frequency. Step S300, determine the user's breathing frequency based on the breathing audio signal, including:
步骤S301,确定出呼吸音频信号的频谱信息;Step S301, determine the spectrum information of the respiratory audio signal;
步骤S302,基于频谱信息,在目标频率范围内检测呼吸音频信号中的目标幅值;其中,目标幅值为呼吸音频信号的基波的最大波峰峰值;Step S302: Based on the spectrum information, detect the target amplitude in the respiratory audio signal within the target frequency range; where the target amplitude is the maximum peak value of the fundamental wave of the respiratory audio signal;
步骤S303,根据目标幅值对应的频率,确定呼吸频率。Step S303: Determine the respiratory frequency according to the frequency corresponding to the target amplitude.
在确定出呼吸音频信号后,对呼吸音频信号进行处理,确定出呼吸音频信号的频谱信息。由于通过反馈麦克风采集得到的呼吸音频信号为时域内的音频信号,可以将时域内的呼吸音频信号进行转换,得到频域内的音频信号,从而得到对应的频谱信息。例如,通过傅里叶变换的方式将时域内的呼吸音频信号转换至频域内的呼吸音频信号,即可得到呼吸音频信号的频谱信息。After the respiratory audio signal is determined, the respiratory audio signal is processed to determine the spectrum information of the respiratory audio signal. Since the respiratory audio signal collected through the feedback microphone is an audio signal in the time domain, the respiratory audio signal in the time domain can be converted to obtain an audio signal in the frequency domain, thereby obtaining the corresponding spectrum information. For example, by converting the respiratory audio signal in the time domain to the respiratory audio signal in the frequency domain through Fourier transform, the spectrum information of the respiratory audio signal can be obtained.
频谱信息中包括频率和振幅的对应信息,根据频谱信息可以在目标频率范围内检测出该频谱信息对应呼吸音频信号中的目标幅值。目标幅值为在目标频率范围内,该频谱信息对应呼吸音频信号的基波的最大波峰峰值,即基波的最大振幅对应幅度值。呼吸音频信号的基波最能反映呼吸音频信号的频谱信息,根据呼吸音频信号的基波的最大波峰峰值对应的频率确定呼吸频率,可以提高呼吸频率的准确性。目标频率范围可以是预设的,也可以根据用户的身体状态确定对应的目标频率范围。The spectrum information includes corresponding information of frequency and amplitude. According to the spectrum information, the target amplitude in the respiratory audio signal corresponding to the spectrum information can be detected within the target frequency range. The target amplitude is within the target frequency range, and the spectrum information corresponds to the maximum peak-to-peak value of the fundamental wave of the respiratory audio signal, that is, the maximum amplitude of the fundamental wave corresponds to the amplitude value. The fundamental wave of the respiratory audio signal can best reflect the spectrum information of the respiratory audio signal. Determining the respiratory frequency based on the frequency corresponding to the maximum peak value of the fundamental wave of the respiratory audio signal can improve the accuracy of the respiratory frequency. The target frequency range may be preset, or the corresponding target frequency range may be determined according to the user's physical condition.
在频谱信息中,振幅越大,对应的音频信号的强度越大。在目标幅值处,呼吸音频信号的强度最大,所以根据目标幅值在频谱信息中对应的频率,确定呼吸频率的准确度越高。振幅越大,波峰的峰值越高,目标频率范围内的基波的最大波峰峰值对应基波的最大振幅的幅值。根据目标幅值对应的频率确定呼吸频率,可以提高确定呼吸频率的准确度。In the spectrum information, the greater the amplitude, the greater the intensity of the corresponding audio signal. At the target amplitude, the intensity of the respiratory audio signal is maximum, so according to the frequency corresponding to the target amplitude in the spectrum information, the accuracy of determining the respiratory frequency is higher. The larger the amplitude, the higher the peak value of the wave peak. The maximum peak value of the fundamental wave within the target frequency range corresponds to the amplitude of the maximum amplitude of the fundamental wave. Determining the respiratory frequency based on the frequency corresponding to the target amplitude can improve the accuracy of determining the respiratory frequency.
在另一实施例中,步骤S301,还可以以帧为单位,对中的每一帧呼吸音频信号进行处理,确定出每一帧呼吸音频信号的频谱信息,这样即可得到每一帧呼吸音频信号的频谱信息,从而便于根据至少一帧呼吸音频信号的频谱信息确定呼吸频率。In another embodiment, step S301 can also process each frame of respiratory audio signal in frame units to determine the spectrum information of each frame of respiratory audio signal, so that each frame of respiratory audio signal can be obtained. The spectrum information of the signal is used to determine the respiratory frequency based on the spectrum information of at least one frame of respiratory audio signal.
步骤S302,还可以根据每一帧呼吸音频信号的频谱信息,在目标频率范围内,确定出每一帧呼吸音频信号对应的目标幅值。Step S302: The target amplitude corresponding to each frame of the respiratory audio signal can also be determined within the target frequency range based on the spectrum information of the respiratory audio signal of each frame.
步骤S303,还可以根据每一帧呼吸音频信号对应的频谱信息,确定出每一帧呼吸音频信号对应目标幅值对应的频率,根据每一帧呼吸音频信号对应目标幅值对应的频率确定呼吸频率。Step S303, you can also determine the frequency corresponding to the target amplitude of each frame of respiratory audio signal based on the spectrum information corresponding to each frame of respiratory audio signal, and determine the respiratory frequency based on the frequency corresponding to the target amplitude of each frame of respiratory audio signal. .
在另一实施例中,参考图6,图6为一种确定目标幅值的示意图。步骤S302,基于频谱信息,在目标频率范围内检测呼吸音频信号中的目标幅值,包括:In another embodiment, refer to FIG. 6 , which is a schematic diagram of determining a target amplitude. Step S302, based on the spectrum information, detect the target amplitude in the respiratory audio signal within the target frequency range, including:
S3021,基于频谱信息,在目标频率范围内检测最大波峰峰值。S3021, based on spectrum information, detect the maximum peak value within the target frequency range.
S3022,根据最大波峰峰值对应波形的第一波形频率,在目标频率范围内确定是否存在第二波形频率的波形;其中,第一波形频率为第二波形频率的整数倍。S3022: Determine whether there is a waveform of the second waveform frequency within the target frequency range according to the first waveform frequency of the waveform corresponding to the maximum peak value; wherein the first waveform frequency is an integer multiple of the second waveform frequency.
S3023,在确定存在第二波形频率的波形时,则将第二波形频率的波形确定为基波。S3023: When it is determined that there is a waveform of the second waveform frequency, determine the waveform of the second waveform frequency as the fundamental wave.
S3024,在确定不存在第二波形频率的波形时,则将第一波形频率的波形确定为基波;S3024, when it is determined that there is no waveform of the second waveform frequency, determine the waveform of the first waveform frequency as the fundamental wave;
S3025,将基波的最大波峰峰值确定为目标幅值。S3025: Determine the maximum peak value of the fundamental wave as the target amplitude.
在得到呼吸音频信号的频谱信息后,可以根据频谱信息确定出呼吸音频信号的波形,由于波形具有波峰,根据频谱信息中的波形在目标频率范围内检测出最大波峰峰值,在频谱信息中最大波峰峰值处呼吸音频信号的强度最大,最能反映呼吸音频信号。根据频谱信息,在目标频率范围内,还可以确定出该最大波峰峰值对应波形的频率,将该频率记为第一波形频率。然后在目标频率范围内检测是否存在第二波形频率的波形,第一波形频率为第二波形频率的整数倍,如果检测到存在第二波形频率的波形,确定存在第二波形频率的波形,说明第一波形频率的波形不是呼吸音频信号的基波,例如第一波形频率的波形是呼吸音频信号基波的谐波,谐波的频率为基波频率的整数倍,谐波的频率大于基波的频率,谐波可能对确定目标幅值产生不利影响,从而影响呼吸频率的确定,则将该第二波形频率的波形确定为呼吸音频信号的基波。After obtaining the spectrum information of the respiratory audio signal, the waveform of the respiratory audio signal can be determined based on the spectrum information. Since the waveform has a peak, the maximum peak value is detected within the target frequency range according to the waveform in the spectrum information. In the spectrum information, the maximum peak value is The intensity of the respiratory audio signal is the largest at the peak, which best reflects the respiratory audio signal. According to the spectrum information, within the target frequency range, the frequency of the waveform corresponding to the maximum peak value can also be determined, and this frequency is recorded as the first waveform frequency. Then detect whether there is a waveform of the second waveform frequency within the target frequency range. The first waveform frequency is an integer multiple of the second waveform frequency. If a waveform of the second waveform frequency is detected, it is determined that there is a waveform of the second waveform frequency. Description The waveform of the first waveform frequency is not the fundamental wave of the respiratory audio signal. For example, the waveform of the first waveform frequency is the harmonic of the fundamental wave of the respiratory audio signal. The frequency of the harmonic is an integer multiple of the fundamental frequency, and the frequency of the harmonic is greater than the fundamental wave. The frequency and harmonics may have an adverse effect on determining the target amplitude, thereby affecting the determination of the respiratory frequency, then the waveform of the second waveform frequency is determined as the fundamental wave of the respiratory audio signal.
如果没有检测到第二波形频率的波形,确定不存在第二波形频率的波形,说明在目标频率范围内第一波形频率的波形为呼吸音频信号的基波,则将第一波形频率的波形确定为基波。If the waveform of the second waveform frequency is not detected, it is determined that there is no waveform of the second waveform frequency, indicating that the waveform of the first waveform frequency is the fundamental wave of the respiratory audio signal within the target frequency range, then the waveform of the first waveform frequency is determined is the fundamental wave.
例如,呼吸音频信号的频谱信息中,存在两个相同的目标幅值,两个波峰的峰值相同,每个目标幅值对应的频率不同,一个目标幅值对应的频率为1Hz,另一个目标幅值对应的频率为1.5Hz,则将频率1Hz确定为呼吸频率。For example, in the spectrum information of the respiratory audio signal, there are two identical target amplitudes, the peaks of the two wave peaks are the same, and the frequencies corresponding to each target amplitude are different. The frequency corresponding to one target amplitude is 1Hz, and the frequency corresponding to the other target amplitude is 1Hz. The frequency corresponding to the value is 1.5Hz, then the frequency 1Hz is determined as the respiratory frequency.
在另一实施例中,步骤S303,根据目标幅值对应的频率,确定呼吸频率,包括:In another embodiment, step S303, determining the respiratory frequency according to the frequency corresponding to the target amplitude, includes:
在呼吸音频信号的帧数为多帧时,将多帧呼吸音频信号中目标幅值对应频率的平均频率确定为呼吸频率。When the number of frames of the respiratory audio signal is multiple frames, the average frequency corresponding to the target amplitude in the multi-frame respiratory audio signal is determined as the respiratory frequency.
多帧呼吸音频信号中,根据各帧呼吸音频信号的频谱信息,确定出每一帧呼吸音频信号中的目标幅值,然后将多帧呼吸音频信号中目标幅值对应的频率的平均值确定为呼吸频率。这样可以减少个别目标幅值差异较大时对确定呼吸频率的准确度的影响,从而提高确定呼吸频率的准确度。In the multi-frame respiratory audio signal, the target amplitude in each frame of the respiratory audio signal is determined based on the spectrum information of each frame of the respiratory audio signal, and then the average value of the frequencies corresponding to the target amplitude in the multi-frame respiratory audio signal is determined as Respiratory rate. This can reduce the impact on the accuracy of determining the respiratory frequency when individual target amplitude differences are large, thereby improving the accuracy of determining the respiratory frequency.
例如,呼吸音频信号的帧数为10帧,则根据10帧呼吸音频信号中各帧呼吸音频信号的频谱信息,确定出各帧呼吸音频信号帧的目标幅值。根据第一帧呼吸音频信号的频谱信息,确定出第一帧呼吸音频信号的目标幅值1,根据第二帧呼吸音频信号的频谱信息,确定出第二帧呼吸音频信号的目标幅值2…以此类推,根据第十帧呼吸音频信号的频谱信息,确定出第十帧呼吸音频信号的目标幅值10。然后在目标频率范围内,确定出分别目标幅值1至目标幅值10对应的频率,将这十个频率的平均频率确定为呼吸频率。For example, if the number of frames of the respiratory audio signal is 10 frames, then the target amplitude of each frame of the respiratory audio signal is determined based on the spectrum information of each frame of the respiratory audio signal in the 10 frames of respiratory audio signal. According to the spectrum information of the respiratory audio signal of the first frame, the target amplitude 1 of the respiratory audio signal of the first frame is determined. According to the spectrum information of the respiratory audio signal of the second frame, the target amplitude 2 of the respiratory audio signal of the second frame is determined... By analogy, based on the spectrum information of the respiratory audio signal of the tenth frame, the target amplitude 10 of the respiratory audio signal of the tenth frame is determined. Then, within the target frequency range, the frequencies corresponding to the target amplitude 1 to the target amplitude 10 are determined, and the average frequency of these ten frequencies is determined as the respiratory frequency.
在另一实施例中,参考该图7,为一种确定目标频率范围和参考频率范围的示意图。该方法包括:In another embodiment, refer to FIG. 7 , which is a schematic diagram for determining a target frequency range and a reference frequency range. The method includes:
步骤A,获取用户的身体状态;身体状态包括运动状态和非运动状态,运动状态包括至少一种 运动对应的状态,非运动状态包括至少一种非运动对应的状态;Step A, obtain the user's physical state; the physical state includes a motion state and a non-motion state, the motion state includes at least one state corresponding to motion, and the non-motion state includes at least one state corresponding to non-motion;
步骤B,根据身体状态,确定目标频率范围和参考频率范围。不同的身体状态分别对应有各自的目标频率范围,不同的身体状态分别对应有各自的参考频率范围;在同一身体状态下,参考频率范围包含在目标频率范围内。Step B: Determine the target frequency range and reference frequency range according to the physical state. Different body states correspond to respective target frequency ranges, and different body states correspond to respective reference frequency ranges; in the same body state, the reference frequency range is included in the target frequency range.
获取身体状态可以通过与耳机连接的外部设备获取,外部设备在确定身体状态后将身体状态信息发送至耳机,也可以通过耳机确定。确定身体状态的过程并不限定,这里只是利用获取到的身体状态这一结果。The body status can be obtained through an external device connected to the headset. The external device sends the body status information to the headset after determining the body status, or it can be determined through the headset. The process of determining the body state is not limited; here, only the result of the acquired body state is used.
目标频率范围和参考频率范围可以根据用户的身体状态确定,在用户的身体状态不同时,对应的目标频率范围和参考频率范围也会不同。用户的身体状态可以包括运动状态和非运动状态,运动状态可以包括走路、跑步、打球和游泳等多种运动对应的状态,非运动状态可以包括静坐、站立、睡眠等非运动对应的状态。The target frequency range and the reference frequency range can be determined according to the user's physical state. When the user's physical state is different, the corresponding target frequency range and reference frequency range will also be different. The user's physical state can include a moving state and a non-moving state. The moving state can include states corresponding to various sports such as walking, running, playing ball, and swimming. The non-moving state can include non-moving states such as sitting still, standing, and sleeping.
根据身体状态可以确定出与用户的当前身体状态匹配的目标频率范围和参考频率范围。不同身体状态对应的目标频率范围和参考频率范围可以根据实际使用需求确定。用户的年龄不同时,在相同的身体状态下,目标频率范围和参考频率范围可能也不同。不同的运动状态下,目标频率范围和参考频率范围也会不同,例如,走路状态对应的目标频率范围和参考频率范围,不同于跑步状态对应的目标频率范围和参考频率范围。不同的非运动状态下,目标频率范围和参考频率范围也可能不同,例如,睡眠状态下对应的目标频率范围和参考频率范围,可能不同于静坐状态时对应的目标频率范围和参考频率范围。According to the body state, the target frequency range and the reference frequency range that match the user's current body state can be determined. The target frequency range and reference frequency range corresponding to different physical states can be determined according to actual use requirements. When the age of the user is different, the target frequency range and the reference frequency range may be different under the same physical condition. The target frequency range and reference frequency range will also be different in different motion states. For example, the target frequency range and reference frequency range corresponding to the walking state are different from the target frequency range and reference frequency range corresponding to the running state. The target frequency range and reference frequency range may also be different in different non-exercise states. For example, the target frequency range and reference frequency range corresponding to the sleeping state may be different from the target frequency range and reference frequency range corresponding to the sitting state.
在同一身体状态下,参考频率范围包含在目标频率范围内,参考频率范围的最大值小于目标频率范围的最大值,参考频率范围的最小值小于目标频率范围的最小值。如果这样可以减少在目标频率范围内确定出的呼吸频率一直位参考频率范围内,导致的不会出现呼吸频率超出参考频率范围的情况,从而减少不能确定呼吸频率出现异常的情况。也可以减少参考频率范围与目标频率范围存在部分交集,导致的呼吸频率出现在参考频率范围中与目标频率非交集的区间的概率较高,进而导致的确定呼吸频率是否异常的准确度较低的问题,提高确定呼吸频率是否出现异常的准确性。In the same body state, the reference frequency range is included in the target frequency range, the maximum value of the reference frequency range is less than the maximum value of the target frequency range, and the minimum value of the reference frequency range is less than the minimum value of the target frequency range. If this can reduce the respiratory frequency determined within the target frequency range to always be within the reference frequency range, the respiratory frequency will not exceed the reference frequency range, thereby reducing the situation where the respiratory frequency cannot be determined to be abnormal. It can also reduce the partial intersection between the reference frequency range and the target frequency range, resulting in a higher probability that the respiratory frequency will appear in an interval that does not intersect with the target frequency in the reference frequency range, resulting in a lower accuracy in determining whether the respiratory frequency is abnormal. problem to improve the accuracy of determining whether respiratory rate is abnormal.
在另一实施例中,参考图8,为一种确定目标频率范围的示意图。步骤B中,根据用户的身体状态,确定目标频率范围,包括:In another embodiment, refer to FIG. 8 , which is a schematic diagram of determining a target frequency range. In step B, the target frequency range is determined based on the user's physical condition, including:
步骤B1,确定不同身体状态对应的目标频率范围中最大值的第一补偿值和最小值的第二补偿值。Step B1: Determine the first compensation value of the maximum value and the second compensation value of the minimum value in the target frequency range corresponding to different body states.
步骤B2,根据第一基准频率范围、第一补偿值和第二补偿值,确定目标频率范围。Step B2: Determine the target frequency range based on the first reference frequency range, the first compensation value and the second compensation value.
目标频率范围具有第一基准频率范围,第一基准频率范围用于确定在不同身体状态下的目标频率范围,不同身体状态下对应有目标频率范围中最大值的第一补偿值和最小值的第二补偿值。不同的身体状态对应的第一补偿值和第二补偿值不同。根据第一基准频率范围、第一补偿值和第二补偿值即可确定出与身体状态相匹配的目标频率范围。The target frequency range has a first reference frequency range. The first reference frequency range is used to determine the target frequency range under different body states. Different body states correspond to a first compensation value of the maximum value and a minimum value of the target frequency range. 2. Compensation value. The first compensation value and the second compensation value corresponding to different body states are different. The target frequency range matching the body state can be determined based on the first reference frequency range, the first compensation value and the second compensation value.
参考图9,为一种确定参考频率范围的示意图。步骤B中,根据用户的身体状态,确定参考频 率范围,包括:Refer to Figure 9, which is a schematic diagram for determining the reference frequency range. In step B, the reference frequency range is determined based on the user's physical condition, including:
步骤B3,确定不同身体状态对应的参考频率范围中最大值的第三补偿值和最小值的第四补偿值。Step B3: Determine the third compensation value of the maximum value and the fourth compensation value of the minimum value in the reference frequency range corresponding to different body states.
步骤B4,根据第二基准频率范围、第三补偿值和第四补偿值,确定参考频率范围。Step B4: Determine the reference frequency range based on the second reference frequency range, the third compensation value and the fourth compensation value.
参考频率范围具有第二基准频率范围,第二基准频率范围用于确定在不同身体状态下的参考频率范围,不同身体状态下对应有参考频率范围中最大值的第三补偿值和最小值的第四补偿值。不同的身体状态对应的第三补偿值和第四补偿值不同。根据第二基准频率范围、第三补偿值和第四补偿值即可确定出与身体状态相匹配的参考频率范围。The reference frequency range has a second reference frequency range. The second reference frequency range is used to determine the reference frequency range under different body states. Under different body states, there is a third compensation value of the maximum value and a third compensation value of the minimum value in the reference frequency range. Four compensation values. The third compensation value and the fourth compensation value corresponding to different body states are different. The reference frequency range matching the body state can be determined based on the second reference frequency range, the third compensation value and the fourth compensation value.
第一基准频率范围和第二基准频率范围可以是预设的,例如第二基准频率范围为0.3Hz至3Hz,在不同的身体状态下对呼吸频率会产生不同的影响,可以根据第一补偿值和第二补偿值动态调整目标频率范围,根据第三补偿值和第四补偿值动态调整参考频率范围。第一补偿值和第二补偿值可以是相同的,第三补偿值和第四补偿值也可以是相同的。The first reference frequency range and the second reference frequency range may be preset. For example, the second reference frequency range is 0.3Hz to 3Hz. Different physical states will have different impacts on the respiratory frequency. The first compensation value can be and the second compensation value to dynamically adjust the target frequency range, and dynamically adjust the reference frequency range according to the third compensation value and the fourth compensation value. The first compensation value and the second compensation value may be the same, and the third compensation value and the fourth compensation value may also be the same.
例如,第一补偿值和第二补偿值都为0.2Hz,则第二基准频率范围调整为0.5Hz至3.2Hz。在第一补偿值和第二补偿值相同时,可以将第一补偿值和第二补偿值记为Delta_f,第二基准频率范围调整为Delta_f+0.3Hz至Delta_f+3Hz。For example, if the first compensation value and the second compensation value are both 0.2Hz, then the second reference frequency range is adjusted to 0.5Hz to 3.2Hz. When the first compensation value and the second compensation value are the same, the first compensation value and the second compensation value can be recorded as Delta_f, and the second reference frequency range is adjusted to Delta_f+0.3Hz to Delta_f+3Hz.
通过对不同身体状态对应的参考频谱范围和目标频率范围进行调整,可以根据身体状态,确定出在当前身体状态下的呼吸频率,提高了呼吸频率的准确度。By adjusting the reference spectrum range and target frequency range corresponding to different body states, the breathing frequency in the current body state can be determined according to the body state, improving the accuracy of the breathing frequency.
在另一实施例中,该方法还包括:In another embodiment, the method further includes:
在确定出呼吸频率异常时,向与耳机之间建立有通信连接的预设设备发送提示信息。预设设备可以是被监测呼吸频率的用户持有的终端设备,例如手机、平板电脑等设备,还可以是与被监测呼吸频率的用户具有社交关系的用户持有的设备。When it is determined that the breathing frequency is abnormal, prompt information is sent to a preset device that has established a communication connection with the headset. The preset device may be a terminal device held by the user whose respiratory frequency is being monitored, such as a mobile phone, tablet computer, or other device, or may be a device held by a user who has a social relationship with the user whose respiratory frequency is being monitored.
在确定出被监测呼吸的用户的呼吸频率存在异常时,即呼吸频率超出参考频率范围,则向与耳机之间建立有连接的预设设备发送提示信息,以便通知用户或者与用户具有关联关系的人员,从而有利用户或者与用户具有关联关系的人员了解被监测呼吸的用户的身体状况,便于及时就医等。When it is determined that the breathing frequency of the user whose breathing is being monitored is abnormal, that is, the breathing frequency exceeds the reference frequency range, a prompt message is sent to the preset device connected to the headset to notify the user or the user's associated device. personnel, thereby helping the user or the personnel associated with the user to understand the physical condition of the user whose breathing is being monitored, so as to facilitate timely medical treatment.
提示信息可以弹窗消息、声音提示信息或者短消息等。The prompt information can be a pop-up message, a sound prompt message or a short message, etc.
在另一实施例中,参考图10,为一种呼吸监测装置的示意图,该装置可以应用于耳机,耳机包括反馈麦克风。该装置包括:In another embodiment, refer to FIG. 10 , which is a schematic diagram of a respiratory monitoring device, which can be applied to an earphone, and the earphone includes a feedback microphone. The device includes:
耳道音频信号采集模块1,被配置为通过所述反馈麦克风采集耳道内的音频信号,得到呼吸音频信号;The ear canal audio signal collection module 1 is configured to collect the audio signal in the ear canal through the feedback microphone to obtain the respiratory audio signal;
呼吸音频信号确定模块2,被配置为对所述耳道音频信号进行滤波处理,得到呼吸音频信号;其中,所述呼吸音频信号为当所述耳机处于被用户佩戴的状态下,所述用户在呼吸过程中产生的震动通过骨传导方式被传递至耳道而产生的音频信号;The respiratory audio signal determination module 2 is configured to perform filtering processing on the ear canal audio signal to obtain a respiratory audio signal; wherein the respiratory audio signal is when the earphone is worn by the user. The vibrations generated during breathing are transmitted to the ear canal through bone conduction to generate audio signals;
呼吸频率确定模块3,被配置为根据所述呼吸音频信号,确定所述用户的呼吸频率;The respiratory frequency determination module 3 is configured to determine the respiratory frequency of the user according to the respiratory audio signal;
异常确定模块4,被配置为根据所述呼吸频率和参考频率范围,确定所述呼吸频率是否异常。The abnormality determination module 4 is configured to determine whether the respiratory frequency is abnormal according to the respiratory frequency and a reference frequency range.
在另一实施例中,所述呼吸频率确定模块包括:In another embodiment, the respiratory frequency determination module includes:
频谱信息确定单元,被配置为确定出所述呼吸音频信号的频谱信息;a spectrum information determining unit configured to determine the spectrum information of the respiratory audio signal;
目标幅值确定单元,被配置为基于所述频谱信息,在目标频率范围内检测所述呼吸音频信号中的目标幅值;其中,所述目标幅值为所述呼吸音频信号的基波的最大波峰峰值;A target amplitude determination unit configured to detect a target amplitude in the respiratory audio signal within a target frequency range based on the spectrum information; wherein the target amplitude is the maximum value of the fundamental wave of the respiratory audio signal. peak value;
呼吸频率确定单元,被配置为根据所述目标幅值对应的频率,确定所述呼吸频率。The respiratory frequency determination unit is configured to determine the respiratory frequency according to the frequency corresponding to the target amplitude.
在另一实施例中,所述目标幅值确定单元包括:In another embodiment, the target amplitude determination unit includes:
峰值检测子单元,被配置为基于所述频谱信息,在所述目标频率范围内检测最大波峰峰值;a peak detection subunit configured to detect the maximum peak value within the target frequency range based on the spectrum information;
波形检测子单元,被配置为根据所述最大波峰峰值对应波形的第一波形频率,在所述目标频率范围内确定是否存在第二波形频率的波形;其中,所述第一波形频率为所述第二波形频率的整数倍;The waveform detection subunit is configured to determine whether there is a waveform of the second waveform frequency within the target frequency range according to the first waveform frequency of the waveform corresponding to the maximum peak value; wherein the first waveform frequency is the An integer multiple of the second waveform frequency;
基波确定子单元,被配置为在确定存在所述第二波形频率的波形时,则将所述第二波形频率的波形确定为所述基波;在确定不存在所述第二波形频率的波形时,则将所述第一波形频率的波形确定为所述基波。The fundamental wave determination subunit is configured to determine the waveform of the second waveform frequency as the fundamental wave when it is determined that there is a waveform of the second waveform frequency; when it is determined that there is no waveform of the second waveform frequency. When the waveform is a waveform, the waveform of the first waveform frequency is determined as the fundamental wave.
在另一实施例中,所述呼吸频率确定单元包括:In another embodiment, the respiratory frequency determining unit includes:
第一呼吸频率确定子单元,被配置为在所述呼吸音频信号的帧数为一帧时,将所述目标幅值对应的频率确定为所述呼吸频率;A first respiratory frequency determination subunit configured to determine the frequency corresponding to the target amplitude as the respiratory frequency when the number of frames of the respiratory audio signal is one frame;
第二呼吸频率确定子单元,被配置为在所述呼吸音频信号的帧数为多帧时,将多帧所述呼吸音频信号中所述目标幅值对应频率的平均频率确定为所述呼吸频率。The second respiratory frequency determination subunit is configured to determine the average frequency corresponding to the target amplitude in the multiple frames of the respiratory audio signal as the respiratory frequency when the number of frames of the respiratory audio signal is multiple frames. .
在另一实施例中,所述装置还包括:In another embodiment, the device further includes:
身体状态确定模块,被配置为获取所述用户的身体状态;所述身体状态包括运动状态和非运动状态,所述运动状态包括至少一种运动对应的状态,所述非运动状态包括至少一种非运动对应的状态;A body state determination module configured to obtain the body state of the user; the body state includes a motion state and a non-motion state, the motion state includes at least one state corresponding to motion, and the non-motion state includes at least one The state corresponding to non-motion;
频率范围确定模块,被配置为根据所述身体状态,确定所述目标频率范围和所述参考频率范围;a frequency range determination module configured to determine the target frequency range and the reference frequency range according to the body state;
其中,不同的身体状态分别对应有各自的所述目标频率范围,不同的身体状态分别对应有各自的所述参考频率范围;在同一身体状态下,所述参考频率范围包含在所述目标频率范围内。Wherein, different body states correspond to respective target frequency ranges, and different body states respectively correspond to respective reference frequency ranges; in the same body state, the reference frequency range is included in the target frequency range. Inside.
在另一实施例中,所述频率范围确定模块包括:In another embodiment, the frequency range determination module includes:
第一确定单元,被配置为确定不同所述身体状态对应的目标频率范围中最大值的第一补偿值和最小值的第二补偿值;A first determination unit configured to determine a first compensation value of the maximum value and a second compensation value of the minimum value in the target frequency range corresponding to different body states;
第二确定单元,被配置为确定不同所述身体状态对应的参考频率范围中最大值的第三补偿值和最小值的第四补偿值;A second determination unit configured to determine a third compensation value of the maximum value and a fourth compensation value of the minimum value in the reference frequency range corresponding to different body states;
目标频率范围确定单元,被配置为根据第一基准频率范围、所述第一补偿值和所述第二补偿值,确定所述目标频率范围;a target frequency range determination unit configured to determine the target frequency range according to the first reference frequency range, the first compensation value and the second compensation value;
参考频率范围确定单元,被配置为根据第二基准频率范围、所述第三补偿值和所述第四补偿值,确定所述参考频率范围。A reference frequency range determining unit is configured to determine the reference frequency range according to the second reference frequency range, the third compensation value and the fourth compensation value.
在另一实施例中,所述呼吸音频信号确定模块包括:In another embodiment, the respiratory audio signal determination module includes:
分帧单元,被配置为对所述耳道音频信号进行分帧,得到多帧分帧后的所述耳道音频信号;A framing unit configured to frame the ear canal audio signal to obtain the ear canal audio signal after multiple frames of framing;
滤波单元,被配置为对多帧分帧后得到的所述耳道音频信号进行滤波,得到多帧所述呼吸音频信号。The filtering unit is configured to filter the ear canal audio signal obtained after multiple frames are divided into frames to obtain the respiratory audio signal of multiple frames.
在另一实施例中,所述装置还包括:In another embodiment, the device further includes:
提示信息发送模块,被配置为在确定出所述呼吸频率异常时,向预设设备发送提示信息;a prompt information sending module configured to send prompt information to the preset device when it is determined that the respiratory frequency is abnormal;
其中,所述预设设备与所述耳机之间建立有通信连接。Wherein, a communication connection is established between the preset device and the earphone.
在另一实施例中,本公开实施例提供一种耳机,所述耳机包括壳体以及设置于所述壳体上的控制器、反馈麦克风、前馈麦克风和扬声器;In another embodiment, an embodiment of the present disclosure provides an earphone, which includes a housing and a controller, a feedback microphone, a feedforward microphone and a speaker provided on the housing;
所述前馈麦克风与所述控制器连接,用于采集耳道外音频数据并发送给所述控制器;The feedforward microphone is connected to the controller and used to collect audio data outside the ear canal and send it to the controller;
所述反馈麦克风与所述控制器连接,用于采集耳道内音频数据并发送给所述控制器;The feedback microphone is connected to the controller and used to collect audio data in the ear canal and send it to the controller;
所述控制器包括存储器和处理器,所述存储器上存储有可执行的计算机指令,所述处理器能够调用所述存储器上存储的计算机指令,以执行任一实施例所述的方法。The controller includes a memory and a processor. The memory has executable computer instructions stored therein. The processor can call the computer instructions stored in the memory to execute the method described in any embodiment.
在另一实施例中,提供一种计算机存储介质,所述计算机存储介质存储有可执行程序;所述可执行程序被处理器执行后,能够实现上述任一实施例提供的方法。In another embodiment, a computer storage medium is provided, and the computer storage medium stores an executable program; after the executable program is executed by a processor, the method provided in any of the above embodiments can be implemented.
图11是根据一示例性实施例示出的一种电子设备800的框图。FIG. 11 is a block diagram of an electronic device 800 according to an exemplary embodiment.
参照图11,电子设备800可以包括以下一个或多个组件:处理组件802,存储器804,电源组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。Referring to FIG. 11 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power supply component 806 , a multimedia component 808 , an audio component 810 , an input/output (I/O) interface 812 , and a sensor component 814 , and communication component 816.
处理组件802通常控制电子设备800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以生成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。 Processing component 802 generally controls the overall operations of electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to generate all or part of the steps of the methods described above. Additionally, processing component 802 may include one or more modules that facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
存储器804被配置为存储各种类型的数据以支持在电子设备800的操作。这些数据的示例包括用于在电子设备800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 804 is configured to store various types of data to support operations at electronic device 800 . Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EEPROM), Programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
电源组件806为电子设备800的各种组件提供电力。电源组件806可以包括电源管理系统,一个或多个电源,及其他与为电子设备800生成、管理和分配电力相关联的组件。 Power supply component 806 provides power to various components of electronic device 800 . Power supply components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800 .
多媒体组件808包括在所述电子设备800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动 和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当电子设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。 Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, multimedia component 808 includes a front-facing camera and/or a rear-facing camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front-facing camera and rear-facing camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当电子设备800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。 Audio component 810 is configured to output and/or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 804 or sent via communication component 816 . In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 812 provides an interface between the processing component 802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc. These buttons may include, but are not limited to: Home button, Volume buttons, Start button, and Lock button.
传感器组件814包括一个或多个传感器,用于为电子设备800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为电子设备800的显示器和小键盘,传感器组件814还可以检测电子设备800或电子设备800一个组件的位置改变,用户与电子设备800接触的存在或不存在,电子设备800方位或加速/减速和电子设备800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor component 814 includes one or more sensors for providing various aspects of status assessment for electronic device 800 . For example, the sensor component 814 can detect the open/closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor component 814 can also detect the electronic device 800 or a component of the electronic device 800. changes in position, the presence or absence of user contact with the electronic device 800 , the orientation or acceleration/deceleration of the electronic device 800 and changes in the temperature of the electronic device 800 . Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件816被配置为便于电子设备800和其他设备之间有线或无线方式的通信。电子设备800可以接入基于通信标准的无线网络,如WiFi,4G或5G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communications component 816 also includes a near field communications (NFC) module to facilitate short-range communications. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,电子设备800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, electronic device 800 may be configured by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由电子设备800的处理器820执行以生成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as a memory 804 including instructions, executable by the processor 820 of the electronic device 800 to generate the above method is also provided. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本公开旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本 发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common common sense or customary technical means in the technical field that are not disclosed in the present disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It is to be understood that the present invention is not limited to the precise construction described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (18)

  1. 一种呼吸监测方法,应用于耳机,所述耳机包括反馈麦克风,所述方法包括:A breathing monitoring method, applied to earphones, the earphones including feedback microphones, the method includes:
    通过所述反馈麦克风采集耳道内的音频信号,得到耳道音频信号;Collect the audio signal in the ear canal through the feedback microphone to obtain the ear canal audio signal;
    对所述耳道音频信号进行滤波处理,得到呼吸音频信号;其中,所述呼吸音频信号为当所述耳机处于被用户佩戴的状态下,所述用户在呼吸过程中产生的震动通过骨传导方式被传递至耳道而产生的音频信号;The ear canal audio signal is filtered to obtain a respiratory audio signal; wherein the respiratory audio signal is the vibration generated by the user during the breathing process when the earphone is worn by the user through bone conduction. The audio signal produced by being delivered to the ear canal;
    根据所述呼吸音频信号,确定所述用户的呼吸频率;Determine the user's respiratory frequency based on the respiratory audio signal;
    根据所述呼吸频率和参考频率范围,确定所述用户的呼吸频率是否异常。According to the respiratory frequency and the reference frequency range, it is determined whether the user's respiratory frequency is abnormal.
  2. 根据权利要求1所述的方法,其中,所述根据所述呼吸音频信号,确定所述用户的呼吸频率,包括:The method of claim 1, wherein determining the user's breathing frequency based on the breathing audio signal includes:
    确定出所述呼吸音频信号的频谱信息;Determine the spectrum information of the respiratory audio signal;
    基于所述频谱信息,在目标频率范围内检测所述呼吸音频信号中的目标幅值;其中,所述目标幅值为所述呼吸音频信号的基波的最大波峰峰值;Based on the spectrum information, detect the target amplitude in the respiratory audio signal within the target frequency range; wherein the target amplitude is the maximum peak value of the fundamental wave of the respiratory audio signal;
    根据所述目标幅值对应的频率,确定所述呼吸频率。The respiratory frequency is determined according to the frequency corresponding to the target amplitude.
  3. 根据权利要求2所述的方法,其中,所述基于所述频谱信息,在目标频率范围内检测所述呼吸音频信号中的目标幅值,包括:The method according to claim 2, wherein detecting the target amplitude in the respiratory audio signal within the target frequency range based on the spectrum information includes:
    基于所述频谱信息,在所述目标频率范围内检测最大波峰峰值;Based on the spectrum information, detect the maximum peak value within the target frequency range;
    根据所述最大波峰峰值对应波形的第一波形频率,在所述目标频率范围内确定是否存在第二波形频率的波形;其中,所述第一波形频率为所述第二波形频率的整数倍;According to the first waveform frequency of the waveform corresponding to the maximum peak value, determine whether there is a waveform of the second waveform frequency within the target frequency range; wherein the first waveform frequency is an integer multiple of the second waveform frequency;
    在确定存在所述第二波形频率的波形时,则将所述第二波形频率的波形确定为所述基波;When it is determined that the waveform of the second waveform frequency exists, the waveform of the second waveform frequency is determined as the fundamental wave;
    在确定不存在所述第二波形频率的波形时,则将所述第一波形频率的波形确定为所述基波。When it is determined that there is no waveform of the second waveform frequency, the waveform of the first waveform frequency is determined as the fundamental wave.
  4. 根据权利要求2所述的方法,其中,所述根据所述目标幅值对应的频率,确定所述呼吸频率,包括:The method according to claim 2, wherein determining the respiratory frequency according to the frequency corresponding to the target amplitude includes:
    在所述呼吸音频信号的帧数为一帧时,将所述目标幅值对应的频率确定为所述呼吸频率;When the number of frames of the respiratory audio signal is one frame, determine the frequency corresponding to the target amplitude as the respiratory frequency;
    在所述呼吸音频信号的帧数为多帧时,将多帧所述呼吸音频信号中所述目标幅值对应频率的平均频率确定为所述呼吸频率。When the number of frames of the respiratory audio signal is multiple frames, the average frequency of the frequencies corresponding to the target amplitudes in the multiple frames of the respiratory audio signal is determined as the respiratory frequency.
  5. 根据权利要求2所述的方法,其中,所述方法还包括:The method of claim 2, further comprising:
    获取所述用户的身体状态;所述身体状态包括运动状态和非运动状态,所述运动状态包括至少一种运动对应的状态,所述非运动状态包括至少一种非运动对应的状态;Obtain the physical state of the user; the physical state includes a moving state and a non-moving state, the moving state includes at least one state corresponding to movement, and the non-moving state includes at least one state corresponding to non-moving;
    根据所述身体状态,确定所述目标频率范围和所述参考频率范围;Determine the target frequency range and the reference frequency range according to the physical state;
    其中,不同的身体状态分别对应有各自的所述目标频率范围,不同的身体状态分别对应有各自的所述参考频率范围;在同一身体状态下,所述参考频率范围包含在所述目标频率范围内。Wherein, different body states correspond to respective target frequency ranges, and different body states respectively correspond to respective reference frequency ranges; in the same body state, the reference frequency range is included in the target frequency range. Inside.
  6. 根据权利要求5所述的方法,其中,所述根据所述用户的身体状态,确定所述目标频率范围 和所述参考频率范围,包括:The method according to claim 5, wherein determining the target frequency range and the reference frequency range according to the user's physical state includes:
    确定不同所述身体状态对应的目标频率范围中最大值的第一补偿值和最小值的第二补偿值;Determine the first compensation value of the maximum value and the second compensation value of the minimum value in the target frequency range corresponding to different physical states;
    确定不同所述身体状态对应的参考频率范围中最大值的第三补偿值和最小值的第四补偿值;Determine the third compensation value of the maximum value and the fourth compensation value of the minimum value in the reference frequency range corresponding to different body states;
    根据第一基准频率范围、所述第一补偿值和所述第二补偿值,确定所述目标频率范围;Determine the target frequency range according to the first reference frequency range, the first compensation value and the second compensation value;
    根据第二基准频率范围、所述第三补偿值和所述第四补偿值,确定所述参考频率范围。The reference frequency range is determined according to the second reference frequency range, the third compensation value and the fourth compensation value.
  7. 根据权利要求1所述的方法,其中,所述对所述耳道音频信号进行滤波处理,得到呼吸音频信号,包括:The method according to claim 1, wherein filtering the ear canal audio signal to obtain a respiratory audio signal includes:
    对所述耳道音频信号进行分帧,得到多帧分帧后的所述耳道音频信号;Framing the ear canal audio signal to obtain the ear canal audio signal divided into multiple frames;
    对多帧分帧后得到的所述耳道音频信号进行滤波,得到多帧所述呼吸音频信号。The ear canal audio signal obtained after dividing multiple frames is filtered to obtain the respiratory audio signal of multiple frames.
  8. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1, further comprising:
    在确定出所述呼吸频率异常时,向预设设备发送提示信息;When it is determined that the respiratory frequency is abnormal, send prompt information to the preset device;
    其中,所述预设设备与所述耳机之间建立有通信连接。Wherein, a communication connection is established between the preset device and the earphone.
  9. 一种呼吸监测装置,应用于耳机,所述耳机包括反馈麦克风;所述装置包括:A respiratory monitoring device applied to an earphone, the earphone including a feedback microphone; the device includes:
    耳道音频信号采集模块,被配置为通过所述反馈麦克风采集耳道内的音频信号,得到耳道音频信号;An ear canal audio signal collection module is configured to collect the audio signal in the ear canal through the feedback microphone to obtain the ear canal audio signal;
    呼吸音频信号确定模块,被配置为对所述耳道音频信号进行滤波处理,得到呼吸音频信号;其中,所述呼吸音频信号为当所述耳机处于被用户佩戴的状态下,所述用户在呼吸过程中产生的震动通过骨传导方式被传递至耳道而产生的音频信号;The respiratory audio signal determination module is configured to perform filtering processing on the ear canal audio signal to obtain a respiratory audio signal; wherein the respiratory audio signal is when the earphone is worn by the user and the user is breathing. The vibrations generated during the process are transmitted to the ear canal through bone conduction to generate audio signals;
    呼吸频率确定模块,被配置为根据所述呼吸音频信号,确定所述用户的呼吸频率;a respiratory frequency determination module configured to determine the respiratory frequency of the user based on the respiratory audio signal;
    异常确定模块,被配置为根据所述呼吸频率和参考频率范围,确定所述用户的呼吸频率是否异常。An abnormality determination module is configured to determine whether the user's breathing frequency is abnormal according to the breathing frequency and a reference frequency range.
  10. 根据权利要求9所述的装置,其中,所述呼吸频率确定模块包括:The device of claim 9, wherein the respiratory rate determination module includes:
    频谱信息确定单元,被配置为确定出所述呼吸音频信号的频谱信息;a spectrum information determining unit configured to determine the spectrum information of the respiratory audio signal;
    目标幅值确定单元,被配置为基于所述频谱信息,在目标频率范围内检测所述呼吸音频信号中的目标幅值;其中,所述目标幅值为所述呼吸音频信号的基波的最大波峰峰值;A target amplitude determination unit configured to detect a target amplitude in the respiratory audio signal within a target frequency range based on the spectrum information; wherein the target amplitude is the maximum value of the fundamental wave of the respiratory audio signal. peak value;
    呼吸频率确定单元,被配置为根据所述目标幅值对应的频率,确定所述呼吸频率。The respiratory frequency determination unit is configured to determine the respiratory frequency according to the frequency corresponding to the target amplitude.
  11. 根据权利要求10所述的装置,其中,所述目标幅值确定单元包括:The device according to claim 10, wherein the target amplitude determining unit includes:
    峰值检测子单元,被配置为基于所述频谱信息,在所述目标频率范围内检测最大波峰峰值;a peak detection subunit configured to detect the maximum peak value within the target frequency range based on the spectrum information;
    波形检测子单元,被配置为根据所述最大波峰峰值对应波形的第一波形频率,在所述目标频率范围内确定是否存在第二波形频率的波形;其中,所述第一波形频率为所述第二波形频率的整数倍;The waveform detection subunit is configured to determine whether there is a waveform of the second waveform frequency within the target frequency range according to the first waveform frequency of the waveform corresponding to the maximum peak value; wherein the first waveform frequency is the An integer multiple of the second waveform frequency;
    基波确定子单元,被配置为在确定存在所述第二波形频率的波形时,则将所述第二波形频率的波形确定为所述基波;在确定不存在所述第二波形频率的波形时,则将所述第一波形频率的波形确定为所述基波。The fundamental wave determination subunit is configured to determine the waveform of the second waveform frequency as the fundamental wave when it is determined that there is a waveform of the second waveform frequency; when it is determined that there is no waveform of the second waveform frequency. When the waveform is a waveform, the waveform of the first waveform frequency is determined as the fundamental wave.
  12. 根据权利要求10所述的装置,其中,所述呼吸频率确定单元包括:The device according to claim 10, wherein the respiratory frequency determining unit includes:
    第一呼吸频率确定子单元,被配置为在所述呼吸音频信号的帧数为一帧时,将所述目标幅值对应的频率确定为所述呼吸频率;A first respiratory frequency determination subunit configured to determine the frequency corresponding to the target amplitude as the respiratory frequency when the number of frames of the respiratory audio signal is one frame;
    第二呼吸频率确定子单元,被配置为在所述呼吸音频信号的帧数为多帧时,将多帧所述呼吸音频信号中所述目标幅值对应频率的平均频率确定为所述呼吸频率。The second respiratory frequency determination subunit is configured to determine the average frequency corresponding to the target amplitude in the multiple frames of the respiratory audio signal as the respiratory frequency when the number of frames of the respiratory audio signal is multiple frames. .
  13. 根据权利要求10所述的装置,其中,所述装置还包括:The device of claim 10, wherein the device further comprises:
    身体状态确定模块,被配置为获取所述用户的身体状态;所述身体状态包括运动状态和非运动状态,所述运动状态包括至少一种运动对应的状态,所述非运动状态包括至少一种非运动对应的状态;A body state determination module configured to obtain the body state of the user; the body state includes a motion state and a non-motion state, the motion state includes at least one state corresponding to motion, and the non-motion state includes at least one The state corresponding to non-motion;
    频率范围确定模块,被配置为根据所述身体状态,确定所述目标频率范围和所述参考频率范围;a frequency range determination module configured to determine the target frequency range and the reference frequency range according to the body state;
    其中,不同的身体状态分别对应有各自的所述目标频率范围,不同的身体状态分别对应有各自的所述参考频率范围;在同一身体状态下,所述参考频率范围包含在所述目标频率范围内。Wherein, different body states correspond to respective target frequency ranges, and different body states respectively correspond to respective reference frequency ranges; in the same body state, the reference frequency range is included in the target frequency range. Inside.
  14. 根据权利要求13所述的装置,其中,所述频率范围确定模块包括:The device of claim 13, wherein the frequency range determination module includes:
    第一确定单元,被配置为确定不同所述身体状态对应的目标频率范围中最大值的第一补偿值和最小值的第二补偿值;A first determination unit configured to determine a first compensation value of the maximum value and a second compensation value of the minimum value in the target frequency range corresponding to different body states;
    第二确定单元,被配置为确定不同所述身体状态对应的参考频率范围中最大值的第三补偿值和最小值的第四补偿值;A second determination unit configured to determine a third compensation value of the maximum value and a fourth compensation value of the minimum value in the reference frequency range corresponding to different body states;
    目标频率范围确定单元,被配置为根据第一基准频率范围、所述第一补偿值和所述第二补偿值,确定所述目标频率范围;a target frequency range determination unit configured to determine the target frequency range according to the first reference frequency range, the first compensation value and the second compensation value;
    参考频率范围确定单元,被配置为根据第二基准频率范围、所述第三补偿值和所述第四补偿值,确定所述参考频率范围。A reference frequency range determining unit is configured to determine the reference frequency range according to the second reference frequency range, the third compensation value and the fourth compensation value.
  15. 根据权利要求9所述的装置,其中,所述呼吸音频信号确定模块包括:The device of claim 9, wherein the respiratory audio signal determination module includes:
    分帧单元,被配置为对所述耳道音频信号进行分帧,得到多帧分帧后的所述耳道音频信号;A framing unit configured to frame the ear canal audio signal to obtain the ear canal audio signal after multiple frames of framing;
    滤波单元,被配置为对多帧分帧后得到的所述耳道音频信号进行滤波,得到多帧所述呼吸音频信号。The filtering unit is configured to filter the ear canal audio signal obtained after multiple frames are divided into frames to obtain the respiratory audio signal of multiple frames.
  16. 根据权利要求9所述的装置,其中,所述装置还包括:The device of claim 9, further comprising:
    提示信息发送模块,被配置为在确定出所述呼吸频率异常时,向预设设备发送提示信息;a prompt information sending module configured to send prompt information to the preset device when it is determined that the respiratory frequency is abnormal;
    其中,所述预设设备与所述耳机之间建立有通信连接。Wherein, a communication connection is established between the preset device and the earphone.
  17. 一种耳机,所述耳机包括壳体以及设置于所述壳体上的控制器、反馈麦克风、前馈麦克风和扬声器;An earphone, which includes a housing and a controller, a feedback microphone, a feedforward microphone and a speaker provided on the housing;
    所述前馈麦克风与所述控制器连接,用于采集耳道外音频数据并发送给所述控制器;The feedforward microphone is connected to the controller and used to collect audio data outside the ear canal and send it to the controller;
    所述反馈麦克风与所述控制器连接,用于采集耳道内音频数据并发送给所述控制器;The feedback microphone is connected to the controller and used to collect audio data in the ear canal and send it to the controller;
    所述控制器包括存储器和处理器,所述存储器上存储有可执行的计算机指令,所述处理器能够调用所述存储器上存储的计算机指令,以执行权利要求1至8中任意一项所述的方法。The controller includes a memory and a processor, executable computer instructions are stored on the memory, and the processor can call the computer instructions stored on the memory to execute any one of claims 1 to 8. Methods.
  18. 一种计算机存储介质,所述计算机存储介质存储有可执行程序;所述可执行程序被处理器 执行后,能够实现如权利要求1至8任一项提供的方法。A computer storage medium that stores an executable program; after the executable program is executed by a processor, the method as provided in any one of claims 1 to 8 can be implemented.
PCT/CN2022/099022 2022-06-15 2022-06-15 Respiratory monitoring method and apparatus, earphone and storage medium WO2023240510A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202280004450.0A CN117597941A (en) 2022-06-15 2022-06-15 Respiration monitoring method, device, earphone and storage medium
PCT/CN2022/099022 WO2023240510A1 (en) 2022-06-15 2022-06-15 Respiratory monitoring method and apparatus, earphone and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/099022 WO2023240510A1 (en) 2022-06-15 2022-06-15 Respiratory monitoring method and apparatus, earphone and storage medium

Publications (1)

Publication Number Publication Date
WO2023240510A1 true WO2023240510A1 (en) 2023-12-21

Family

ID=89192748

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/099022 WO2023240510A1 (en) 2022-06-15 2022-06-15 Respiratory monitoring method and apparatus, earphone and storage medium

Country Status (2)

Country Link
CN (1) CN117597941A (en)
WO (1) WO2023240510A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103444208A (en) * 2011-01-05 2013-12-11 皇家飞利浦电子股份有限公司 Seal-quality estimation for a seal for an ear canal
US20200008708A1 (en) * 2018-07-05 2020-01-09 Starkey Laboratories, Inc. Ear-worn devices with deep breathing assistance
CN110868921A (en) * 2017-05-10 2020-03-06 高等工艺学校 System and method for determining heart rhythm and/or respiration rate
CN110944576A (en) * 2017-07-20 2020-03-31 伯斯有限公司 Earphone for measuring and entraining respiration
AU2021102658A4 (en) * 2021-05-18 2021-07-08 Rudra Sankar Dhar Intelligent earphone system for remote health monitoring using artificial intelligence
CN113440127A (en) * 2020-03-25 2021-09-28 华为技术有限公司 Respiratory data acquisition method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103444208A (en) * 2011-01-05 2013-12-11 皇家飞利浦电子股份有限公司 Seal-quality estimation for a seal for an ear canal
CN110868921A (en) * 2017-05-10 2020-03-06 高等工艺学校 System and method for determining heart rhythm and/or respiration rate
CN110944576A (en) * 2017-07-20 2020-03-31 伯斯有限公司 Earphone for measuring and entraining respiration
US20200008708A1 (en) * 2018-07-05 2020-01-09 Starkey Laboratories, Inc. Ear-worn devices with deep breathing assistance
CN113440127A (en) * 2020-03-25 2021-09-28 华为技术有限公司 Respiratory data acquisition method and device and electronic equipment
AU2021102658A4 (en) * 2021-05-18 2021-07-08 Rudra Sankar Dhar Intelligent earphone system for remote health monitoring using artificial intelligence

Also Published As

Publication number Publication date
CN117597941A (en) 2024-02-23

Similar Documents

Publication Publication Date Title
KR101756674B1 (en) Active noise reduction headset device with hearing aid features
US9380374B2 (en) Hearing assistance systems configured to detect and provide protection to the user from harmful conditions
JP2020508616A (en) Off-head detection for in-ear headsets
US20150319546A1 (en) Hearing Assistance System
US20140270200A1 (en) System and method to detect close voice sources and automatically enhance situation awareness
US20220210583A1 (en) Detecting user's eye movement using sensors in hearing instruments
EP3095252A2 (en) Hearing assistance system
US11467666B2 (en) Hearing augmentation and wearable system with localized feedback
WO2016167877A1 (en) Hearing assistance systems configured to detect and provide protection to the user harmful conditions
WO2022067293A1 (en) Typing noise reduction using interconnected electronic devices
WO2023240510A1 (en) Respiratory monitoring method and apparatus, earphone and storage medium
KR20160137290A (en) Method and computer program for cancelling howling and echo in a headset
CN113596662B (en) Method for suppressing howling, device for suppressing howling, earphone, and storage medium
CN115278441A (en) Voice detection method, device, earphone and storage medium
KR101693482B1 (en) Headset with a function for cancelling howling and echo
WO2023240512A1 (en) Fall detection method and device, earphone, and storage medium
CN114830692A (en) System comprising a computer program, a hearing device and a stress-assessing device
WO2023245372A1 (en) Step counting method and apparatus, and earphones and storage medium
US20230300511A1 (en) Method and apparatus for controlling headphones, headphones and storage medium
US11696065B2 (en) Adaptive active noise cancellation based on movement
WO2023179484A1 (en) Earphone
US20230229383A1 (en) Hearing augmentation and wearable system with localized feedback
CN115550791A (en) Audio processing method, device, earphone and storage medium
CN116208880A (en) Method for sound signal and related equipment
CN114979889A (en) Method and device for reducing occlusion effect of earphone, earphone and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22946204

Country of ref document: EP

Kind code of ref document: A1