A hearing aid in-ear detection method and a hearing aid
Through microphone and FFT processing, the acoustic system in the hearing aid is used for in-ear detection, which solves the problem of howling when the hearing aid is not worn, reduces the design complexity, and realizes the in-ear detection function.
Patent Information
- Application Number
- CN202411188045.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-28
Smart Images

Figure CN118714501B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of hearing aids, and in particular to a hearing aid in-ear detection method and a hearing aid. Background Art
[0002] The in-ear detection function is becoming increasingly popular on TWS headphones. It can better determine whether the user is wearing the headphones, so that the headphones can switch between standby and working states reasonably.
[0003] Hearing aids or hearing-assistive devices are earphone devices that amplify sound. Due to their sound-amplifying characteristics, they are prone to howling when the user is not wearing them and the product is in an open space. This howling sound is very unfriendly to the user and the people around them. Therefore, if the in-ear detection function can be implemented on the hearing aid, when it is determined that the user is not wearing the hearing aid, the amplification function can be reduced or turned off, which can solve the above problem well.
[0004] The current in-ear detection method on TWS headphones usually relies on hardware devices such as distance sensors and light sensors, which not only increases costs, but also increases the size and design complexity of the product. Summary of the invention
[0005] In order to solve the above problems, the present invention provides a hearing aid in-ear detection method and a hearing aid.
[0006] The specific plan is as follows:
[0007] A hearing aid in-ear detection method comprises the following steps:
[0008] S1: Initialize state variables;
[0009] S2: Collect sound through a microphone and convert it into a digital signal, perform FFT processing on the digital signal to obtain the intensity of the digital signal at different frequencies, and extract the frequency corresponding to the smallest intensity and the frequency corresponding to the second smallest intensity in the obtained digital signal;
[0010] S3: superimposing a signal on the frequency corresponding to the minimum intensity of the obtained digital signal, converting the superimposed signal into an electrical signal and sending it to the receiver, and the receiver converts the received electrical signal into sound;
[0011] S4: based on the relationship between the difference between the intensity of the superimposed signal and the intensity of the digital signal obtained at the next moment at the frequency corresponding to the minimum intensity and the difference threshold, a first determination result of whether the hearing aid is in the wearing state is obtained;
[0012] S5: Determine whether the first determination result is consistent with the state corresponding to the state variable. If they are consistent, keep the state variable unchanged and return to S2; if they are inconsistent, enter S6;
[0013] S6: superimposing a signal on the frequency corresponding to the second smallest intensity of the obtained digital signal, canceling the superimposition on the frequency corresponding to the smallest intensity, converting the superimposed signal into an electrical signal and sending it to the receiver, and the receiver converting the received electrical signal into sound;
[0014] S7: obtaining a second determination result of whether the hearing aid is in the wearing state based on the relationship between the difference between the intensity of the superimposed signal and the intensity of the digital signal obtained at the next moment at the frequency corresponding to the second smallest intensity and the difference threshold;
[0015] S8: Determine whether the second determination result is consistent with the first determination result. If they are consistent, change the state variable to the first determination result and return to S2; otherwise, keep the state variable unchanged and return to S2.
[0016] Furthermore, step S1 further includes setting a frequency set, and when obtaining the strength of the digital signal at different frequencies in step S2, the different frequencies are the frequencies included in the frequency set.
[0017] Furthermore, the frequencies in the frequency set include: 16k, 17k, 18k, 19k, 20k, 21k, 22k, 23k, and 24k.
[0018] Further, the determination time period is set to N, where N represents N samplings; a determination is performed every N samplings; wherein the frequency corresponding to the smallest intensity and the frequency corresponding to the second smallest intensity are extracted based on the average intensity of the signal components at each frequency in the N samplings; when the signal is superimposed on the frequency corresponding to the smallest intensity or the frequency corresponding to the second smallest intensity, it is also superimposed N times; in the calculation of the difference between the intensity of the superimposed signal and the intensity of the digital signal obtained at the next moment at the frequency corresponding to the smallest intensity or the frequency corresponding to the second smallest intensity, the average intensity of the signal components at the corresponding frequencies in the N samplings is also used for calculation.
[0019] Furthermore, the value of N is 50.
[0020] Furthermore, after the electrical signal obtained by the microphone is converted into a digital signal through the AD conversion module in the hearing aid, the digital signal is processed by the hearing aid algorithm module inside the hearing aid; when superposition is not required, the processed digital signal is directly converted into an electrical signal through the DA conversion module and then sent to the receiver; when superposition is required, it is superimposed on the processed digital signal, and then the superimposed digital signal is converted into an electrical signal through the DA conversion module and then sent to the receiver.
[0021] Furthermore, the intensity of the superimposed signal is set to 50 dBSPL.
[0022] Furthermore, the difference threshold is set to 20 dBSPL.
[0023] A hearing aid comprises a microphone, an AD conversion module, a DA conversion module, a receiver, a processor, a memory, and a computer program stored in the memory and running on the processor, wherein the receiver is arranged at a position of the hearing aid corresponding to the position in the ear canal, and the processor implements the steps of the above-mentioned method in an embodiment of the present invention when executing the computer program.
[0024] The present invention adopts the above technical solution to realize in-ear detection of the hearing aid without introducing other types of sensors. It only uses the acoustic system required by the hearing aid itself, reduces the complexity of system design, and achieves a greater reuse of the original acoustic system. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 Shown is a flow chart of a method according to a first embodiment of the present invention. DETAILED DESCRIPTION
[0026] To further illustrate various embodiments, the present invention provides drawings. These drawings are part of the disclosure of the present invention, which are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in this field should be able to understand other possible implementations and advantages of the present invention.
[0027] The present invention will now be further described with reference to the accompanying drawings and specific implementation methods.
[0028] Embodiment 1:
[0029] The embodiment of the present invention provides a method for detecting the in-ear insertion of a hearing aid. Figure 1 As shown, the method comprises the following steps:
[0030] S1: Initialize state variables.
[0031] The state variable is used to identify the in-ear state of the hearing aid, including wearing and not wearing. In this embodiment, the state variable is initially set to "not wearing".
[0032] S2: Collect sound through a microphone and convert it into a digital signal, perform FFT processing on the digital signal to obtain the intensity of the digital signal at different frequencies, and extract the frequency corresponding to the smallest intensity and the frequency corresponding to the second smallest intensity in the obtained digital signal.
[0033] After the microphone collects the electrical signal corresponding to the sound, it sends it to the AD conversion (analog-to-digital conversion) module to convert the electrical signal into a digital signal.
[0034] Furthermore, in this embodiment, when obtaining the strength of the digital signal at different frequencies, only the strength at some high frequencies is obtained. For the convenience of processing, in this embodiment, a frequency set is first set in step S1, such as HOP[0,1..8]=[16k,17k,18k,19k,20k,21k,22k,23k,24k], and then in step S2, only the strength at each frequency included in the frequency set is obtained.
[0035] S3: superimpose a signal on the frequency corresponding to the minimum intensity of the obtained digital signal, convert the superimposed signal into an electrical signal and send it to the receiver, and the receiver converts the received electrical signal into sound.
[0036] It should be noted that after the electrical signal obtained by the microphone is converted into a digital signal through the AD conversion module in the hearing aid, the digital signal is processed by the hearing aid algorithm module inside the hearing aid; when superposition is not required, the processed digital signal is directly converted into an electrical signal through the DA conversion module and then sent to the receiver; when superposition is required, it is superimposed on the processed digital signal, and then the superimposed digital signal is converted into an electrical signal through the DA conversion module and sent to the receiver.
[0037] S4: Based on the relationship between the difference between the intensity of the superimposed signal and the intensity of the digital signal obtained at the next moment at the frequency corresponding to the minimum intensity and the difference threshold, a first determination result of whether the hearing aid is in the wearing state is obtained.
[0038] In this embodiment, the strength of the superimposed signal is set to 50 dBSPL, and the difference threshold is set to 20 dBSPL. In other embodiments, those skilled in the art may set other strength values as needed, which is not limited here.
[0039] The next moment in step S4 is the next moment of the current moment. If the current moment is t, the next moment is t+1.
[0040] S5: Determine whether the first determination result is consistent with the state corresponding to the state variable. If they are consistent, keep the state variable unchanged and return to S2; if they are inconsistent, enter S6.
[0041] S6: superimpose a signal on the frequency corresponding to the second smallest intensity of the obtained digital signal, cancel the superposition on the frequency corresponding to the smallest intensity, convert the superimposed signal into an electrical signal and send it to the receiver, and the receiver converts the received electrical signal into sound.
[0042] It should be noted that the moment when a signal is superimposed on the frequency corresponding to the second smallest intensity of the obtained digital signal is the next moment of the current moment, that is, the moment t+1.
[0043] S7: Obtain a second determination result of whether the hearing aid is in the wearing state based on the relationship between the difference between the intensity of the superimposed signal and the intensity of the digital signal obtained at the next moment at the frequency corresponding to the second smallest intensity and the difference threshold.
[0044] It should be noted that the next moment of step S7 is the moment after a signal is superimposed on the frequency corresponding to the second smallest intensity of the obtained digital signal, that is, moment t+2.
[0045] S8: Determine whether the second determination result is consistent with the first determination result. If they are consistent, change the state variable to the first determination result and return to S2; otherwise, keep the state variable unchanged and return to S2.
[0046] The current state of the hearing aid is determined based on the value of the state variable.
[0047] Based on the above method, when the first judgment result is consistent with the state corresponding to the state variable, the overall judgment can be completed only at time t+1. When the first judgment result is inconsistent with the state corresponding to the state variable, the overall judgment must be completed at time t+2.
[0048] In addition, before returning to S2 in steps S5 and S8, the superposition of signals needs to be cancelled at the corresponding time, so that the electrical signal received by the receiver does not contain the superimposed signal. That is, if step S5 returns to S2, the signal is superimposed on the frequency corresponding to the smallest intensity at time t, and the superimposed signal on the frequency corresponding to the smallest intensity is cancelled at time t+1; if step S5 returns to S2, the signal is superimposed on the frequency corresponding to the smallest intensity at time t, and the superimposed signal on the frequency corresponding to the smallest intensity is cancelled at time t+1, and the signal is superimposed on the frequency corresponding to the second smallest intensity at time t+1, and the superimposed signal on the frequency corresponding to the second smallest intensity is cancelled at time t+2.
[0049] Furthermore, in order to reduce the frequency of determination, a determination time period = N is also set in this embodiment, where N represents N samplings, and the value in this embodiment is 50. A determination is performed once every N samplings, wherein the frequency corresponding to the smallest intensity and the frequency corresponding to the second smallest intensity are extracted based on the average intensity of the signal components at each frequency in the N samplings; when a signal is superimposed on the frequency corresponding to the smallest intensity or the frequency corresponding to the second smallest intensity, it is also superimposed N times; in the calculation of the difference between the intensity of the superimposed signal and the intensity of the digital signal obtained at the next moment at the frequency corresponding to the smallest intensity or the frequency corresponding to the second smallest intensity, the average intensity of the signal components at the corresponding frequencies in the N samplings is also used for calculation.
[0050] The embodiment of the present invention is based on the hardware of the existing acoustic system of the hearing aid, and the receiver is set in the ear canal. Without introducing other sensors, the in-ear detection function of the hearing aid is realized through the above method, thereby solving the howling problem that is easy to occur when the user takes off or wears the hearing aid.
[0051] Embodiment 2:
[0052] The present invention also provides a hearing aid, comprising a microphone, an AD conversion module, a DA conversion module, a receiver, a processor, a memory, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps in the above method embodiment of embodiment 1 of the present invention when executing the computer program. The processor may be a DSP chip built into the hearing aid.
[0053] Although the present invention has been specifically shown and described in conjunction with the preferred embodiments, it should be understood by those skilled in the art that various changes may be made to the present invention in form and details without departing from the spirit and scope of the present invention as defined by the appended claims, all of which are within the scope of protection of the present invention.
Claims
1. A hearing aid in-ear detection method, It is characterized in that The following steps are involved: S1: Initialize state variables; S2: Collect sound through a microphone and convert it into a digital signal, perform FFT processing on the digital signal to obtain the intensity of the digital signal at different frequencies, and extract the frequency corresponding to the smallest intensity and the frequency corresponding to the second smallest intensity in the obtained digital signal; S3: superimposing a signal on the frequency corresponding to the minimum intensity of the obtained digital signal, converting the superimposed signal into an electrical signal and sending it to the receiver, and the receiver converts the received electrical signal into sound; S4: based on the relationship between the difference between the intensity of the superimposed signal and the intensity of the digital signal obtained at the next moment at the frequency corresponding to the minimum intensity and the difference threshold, a first determination result of whether the hearing aid is in the wearing state is obtained; S5: Determine whether the first determination result is consistent with the state corresponding to the state variable. If they are consistent, keep the state variable unchanged and return to S2; if they are inconsistent, enter S6; S6: superimposing a signal on the frequency corresponding to the second smallest intensity of the obtained digital signal, canceling the superimposition on the frequency corresponding to the smallest intensity, converting the superimposed signal into an electrical signal and sending it to the receiver, and the receiver converting the received electrical signal into sound; S7: obtaining a second determination result of whether the hearing aid is in the wearing state based on the relationship between the difference between the intensity of the superimposed signal and the intensity of the digital signal obtained at the next moment at the frequency corresponding to the second smallest intensity and the difference threshold; S8: Determine whether the second determination result is consistent with the first determination result. If they are consistent, change the state variable to the first determination result and return to S2; Otherwise, keep the state variables unchanged and return to S2.
2. The hearing aid in-ear detection method according to claim 1, Features: Step S1 also includes setting a frequency set. When the strength of the digital signal at different frequencies is obtained in step S2, the different frequencies are the frequencies included in the frequency set.
3. The hearing aid in-ear detection method according to claim 2, Features: The frequencies in the frequency set include: 16k, 17k, 18k, 19k, 20k, 21k, 22k, 23k, and 24k.
4. The hearing aid in-ear detection method according to claim 1, Features: Set the judgment time period = N, N represents N samplings; make a judgment every N samplings; wherein, the frequency corresponding to the smallest intensity and the frequency corresponding to the second smallest intensity are extracted based on the average intensity of the signal components at each frequency in the N samplings; when superimposing the signal on the frequency corresponding to the smallest intensity or the frequency corresponding to the second smallest intensity, it is also superimposed N times; in calculating the difference between the intensity of the superimposed signal and the intensity of the digital signal obtained at the next moment at the frequency corresponding to the smallest intensity or the frequency corresponding to the second smallest intensity, the average intensity of the signal components at the corresponding frequencies in the N samplings is also used for calculation.
5. The hearing aid in-ear detection method according to claim 4, Features: The value of N is 50.
6. The hearing aid in-ear detection method according to claim 1, Features: After the electrical signal obtained by the microphone is converted into a digital signal through the AD conversion module in the hearing aid, the digital signal is processed by the hearing aid algorithm module inside the hearing aid; when superposition is not required, the processed digital signal is directly converted into an electrical signal through the DA conversion module and then sent to the receiver; when superposition is required, it is superimposed on the processed digital signal, and then the superimposed digital signal is converted into an electrical signal through the DA conversion module and sent to the receiver.
7. The hearing aid in-ear detection method according to claim 1, Features: The intensity of the superimposed signal was set to 50 dBSPL.
8. The hearing aid in-ear detection method according to claim 1, Features: The difference threshold is set to 20dBSPL.
9. A hearing aid, Features: The method comprises a microphone, an AD conversion module, a DA conversion module, a receiver, a processor, a memory, and a computer program stored in the memory and running on the processor. The receiver is arranged at a position of the hearing aid corresponding to the position in the ear canal. When the processor executes the computer program, the steps of the method as claimed in any one of claims 1 to 8 are implemented.
