CN111148009B - Earphone wearing state determining method and device and earphone - Google Patents

Earphone wearing state determining method and device and earphone Download PDF

Info

Publication number
CN111148009B
CN111148009B CN201911417134.2A CN201911417134A CN111148009B CN 111148009 B CN111148009 B CN 111148009B CN 201911417134 A CN201911417134 A CN 201911417134A CN 111148009 B CN111148009 B CN 111148009B
Authority
CN
China
Prior art keywords
earphone
wearing state
determining
volatility
signal
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201911417134.2A
Other languages
Chinese (zh)
Other versions
CN111148009A (en
Inventor
张方方
田久东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201911417134.2A priority Critical patent/CN111148009B/en
Publication of CN111148009A publication Critical patent/CN111148009A/en
Application granted granted Critical
Publication of CN111148009B publication Critical patent/CN111148009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • 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
    • H04R1/1083Reduction of ambient noise

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

The invention discloses a method and a device for determining the wearing state of an earphone, the earphone and a computer readable storage medium. The method comprises the following steps: acquiring a PPG signal acquired by an optical heart rate sensor arranged in the earphone in a preset time window; calculating the fluctuation of the PPG signal according to the PPG signal; and determining the wearing state of the earphone according to the comparison result of the volatility and a preset volatility threshold value. According to the embodiment of the invention, the wearing state of the earphone can be determined according to the PPG signal acquired by the optical heart rate sensor, and the probability of misjudgment of the wearing state of the earphone is reduced.

Description

Earphone wearing state determining method and device and earphone
Technical Field
The present invention relates to the field of earphone state detection technologies, and in particular, to a method for determining an earphone wearing state, an apparatus for determining an earphone wearing state, an earphone, and a computer-readable storage medium.
Background
With the intelligent development of True Wireless Stereo (TWS) earphones, users have more and more requirements for functions of earphones, and Infrared (IR) sensors are more and more applied to the TWS earphones to detect wearing states of the earphones.
Specifically, whether the state of the earphone is a wearing state is judged by the proximity degree of the infrared sensor and other objects, namely, when the infrared sensor detects that the infrared sensor is close to the objects enough, the earphone is considered to be worn to the auditory canal and is in the wearing state, and the infrared sensor outputs a control signal to start the earphone at the moment.
However, the infrared sensor cannot distinguish whether an object close to the infrared sensor is an ear canal or other objects, so that the infrared sensor can mistakenly identify the state of the earphone as a wearing state, and output a control signal to turn on the earphone, so that the earphone is turned on in a non-wearing state, the electric quantity of the earphone is consumed, and the power consumption is increased.
Disclosure of Invention
An object of the present invention is to provide a new technical solution for determining the wearing state of an earphone.
According to a first aspect of the present invention, there is provided a method of determining a wearing state of a headphone, the method including:
acquiring a photoplethysmography (PPG) signal acquired by an optical heart rate sensor arranged in the earphone in a preset time window;
calculating the fluctuation of the PPG signal according to the PPG signal;
and determining the wearing state of the earphone according to the comparison result of the volatility and a preset volatility threshold value.
Optionally, the step of calculating a volatility of the PPG signal according to the PPG signal includes:
performing noise reduction processing on the PPG signal by using a Least Mean Square (LMS) algorithm;
averagely dividing the PPG signal after noise reduction into five continuous and non-interactive windows in time, calculating the mean value of signal intensity in each window, determining the maximum value and the minimum value in the mean value, and determining the ratio of the maximum value to the minimum value as the volatility of the PPG signal.
Optionally, the step of determining the wearing state of the headset according to the comparison result between the volatility and a preset volatility threshold includes:
determining that the earphone is in a wearing state under the condition that the volatility is greater than the preset volatility threshold;
determining that the headset is in a non-wearing state if the volatility is not greater than the preset volatility threshold.
Optionally, after the step of determining that the headset is in the wearing state in the case that the volatility is greater than the preset threshold, the method further includes:
acquiring an infrared signal from an infrared sensor arranged in the earphone;
and verifying the wearing state of the earphone according to the infrared signal.
Optionally, the step of verifying the wearing state of the headset according to the infrared signal includes:
determining the distance between the earphone and a shelter according to the infrared signal;
confirming that the earphone is in the wearing state when the distance is smaller than a preset distance threshold;
and confirming that the earphone is in a non-wearing state under the condition that the distance is not smaller than the preset distance threshold.
Optionally, after the step of determining that the headset is in the wearing state in the case that the volatility is greater than the preset threshold, the method further includes:
acquiring a capacitance signal from a capacitance sensor arranged in the earphone;
and verifying the wearing state of the earphone according to the capacitance signal.
Optionally, the step of verifying the wearing state of the headset according to the capacitance signal includes:
judging whether the earphone is in contact with a shielding object or not according to the capacitance signal;
if yes, confirming that the earphone is in the wearing state;
if not, the earphone is confirmed to be in a non-wearing state.
According to a second aspect of the present invention, there is provided an apparatus for determining a wearing state of a headphone, the apparatus comprising:
the acquisition module is used for acquiring photoplethysmography (PPG) signals acquired by an optical heart rate sensor arranged in the earphone in a preset time window;
the calculation module is used for calculating the fluctuation of the PPG signal according to the PPG signal;
a determining module, configured to determine a wearing state of the earphone according to a comparison result between the volatility and a preset volatility threshold
According to a third aspect of the present invention, there is provided a headset comprising a processor and a memory, the memory having stored therein computer instructions which, when executed by the processor, implement the method of determining the wearing state of a headset according to any one of the first aspect of the present invention.
According to a fourth aspect of the present invention, there is provided a computer-readable storage medium storing executable instructions that, when executed by a processor, perform the method for determining a wearing state of a headset according to any one of the first aspect of the present invention.
According to one embodiment of the invention, a PPG signal acquired by an optical heart rate sensor arranged in the earphone is acquired within a preset time window; calculating the fluctuation of the PPG signal according to the PPG signal; and determining the wearing state of the earphone according to the comparison result of the volatility and a preset volatility threshold value. Therefore, the wearing state of the earphone is determined according to the PPG signal acquired by the optical heart rate sensor, and the probability of misjudgment of the wearing state of the earphone is reduced.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic structural diagram of a wireless headset to which a method for determining a wearing state of the headset according to an embodiment of the present invention can be applied;
fig. 2 shows a schematic view of an arrangement of an optical heart rate sensor in a headset to which an embodiment according to the invention is applied;
fig. 3 shows a schematic diagram of a PPG signal acquired by an optical heart rate sensor using headphones according to an embodiment of the invention;
fig. 4 is a flowchart illustrating a method for determining a wearing state of an earphone according to an embodiment of the present invention;
FIG. 5 shows a schematic flow diagram of an example of a method according to an embodiment of the invention;
fig. 6 is a schematic structural diagram showing an apparatus for determining wearing states of earphones according to an embodiment of the present invention;
fig. 7 shows a schematic structural diagram of an earphone according to an embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware configuration >
Fig. 1 is a schematic structural diagram of a wireless headset to which the method for determining the wearing state of the headset according to the embodiment of the present invention can be applied.
As shown in fig. 1, the wireless headset 1000 may be a TWS (true wireless Stereo) headset, and the wireless headset 1000 includes a first headset and a second headset. The wireless headset 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a speaker 1500, a microphone 1600, and the like. Processor 1100 may be a mobile version processor, among others. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 communicates with the charging box using, for example, a contact point connection (Pogo Pin). The communication device 1400 is capable of wired or wireless communication, for example, and the communication device 1400 may include a short-range communication device, for example, any device that performs short-range wireless communication based on a short-range wireless communication protocol such as a Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, or the like. A user can input/output voice information through the speaker 1500 and the microphone 1600.
In this embodiment, the wireless headset 1000 is further provided with an optical heart rate sensor for acquiring PPG signals and an infrared sensor for acquiring infrared signals. In order to obtain a sufficiently strong PPG signal, it is necessary to consider the placement of the optical heart rate sensor, i.e. in close proximity to the ear canal, as shown in fig. 2, marked by the solid black line, i.e. in close proximity to the ear canal after the wireless headset 1000 is inserted into the ear. Fig. 3 is a schematic diagram of a PPG signal acquired by an optical heart rate sensor in a wireless headset in close proximity to the ear canal, illustratively with an acquisition frequency of 50Hz and an acquisition time of 60 s.
The wireless headset 1000 shown in fig. 1 is merely illustrative and is in no way meant to limit the invention, its application, or uses. In an embodiment of the present invention, the memory 1200 of the wireless headset 1000 is used for storing instructions for controlling the processor 1100 to operate so as to execute any method for determining the wearing state of the headset provided by the embodiment of the present invention.
It will be understood by those skilled in the art that although a plurality of devices are shown in fig. 1 for the wireless headset 1000, the present invention may relate only to some of the devices, for example, the wireless headset 1000 relates only to the processor 1100, the memory 1200, the optical heart rate sensor, and the infrared sensor. The skilled person can design the instructions according to the disclosed solution. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
In the above description, the skilled person can design the instructions according to the solutions provided in the present disclosure. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
< method examples >
The embodiment provides a method for determining the wearing state of an earphone. The method for determining the wearing state of the headset can be particularly applied to wireless headsets. The method for determining the wearing state of the headset may be performed by the headset 1000 shown in fig. 1, for example.
It should be noted that, in general, a wireless headset includes two parts, namely a headset and a charging box, and the headset can communicate with the charging box. In order to reduce power consumption and memory when the headset is inside the charging box, the headset is typically not tested for wear. That is, this embodiment is directed at the scene after the earphone is taken out from in the charging box, utilizes optical heart rate sensor to detect whether the earphone is worn on the ear canal. It will be appreciated that the initialization state of the headset is defaulted to a non-worn state after the headset is removed from the charging box.
As shown in fig. 4, the method for determining the wearing state of the earphone of this embodiment may include the following steps 2100 to 2300:
in step 2100, a photoplethysmography (PPG) signal from the optical heart rate sensor disposed in the earpiece is obtained within a preset time window.
The sampling frequency of the PPG signal is set to 50Hz, and considering that the heart rate beat value of a normal person is 60-100 beats/minute, the time of one heartbeat is about 1s, so in this embodiment, 1s is selected to be set as a preset time window. Within each preset time window, a PPG signal from the optical heart rate sensor is acquired.
Step 2200, calculating the fluctuation of the PPG signal according to the PPG signal.
In this step, a Least Mean Square (LMS) algorithm may be used to perform noise reduction on the PPG signal; averagely dividing the PPG signal after noise reduction into five continuous and non-interactive windows in time, calculating the mean value of signal intensity in each window, determining the maximum value and the minimum value in the mean value, and determining the ratio of the maximum value to the minimum value as the volatility of the PPG signal.
Step 2300, determining the wearing state of the earphone according to the comparison result of the volatility and a preset volatility threshold value.
Specifically, it may be determined that the headset is in a wearing state when the volatility is greater than the preset volatility threshold; or determining that the earphone is in a non-wearing state under the condition that the fluctuation is not larger than the preset fluctuation threshold value.
For example, in the present embodiment, the preset volatility threshold is set to 10, and when the volatility of the calculated PPG signal is greater than 10, the headset is considered to be in a wearing state. If the fluctuation of the obtained PPG signal is not more than 10, the earphone is considered to be in a non-wearing state.
In an example, in order to further confirm whether the state of the headset is the wearing state or not, so as to reduce the probability of occurrence of misjudgment, in this embodiment, after the wearing state of the headset is determined, an infrared signal from an infrared sensor provided in the headset may also be acquired; and verifying the wearing state of the earphone according to the infrared signal.
Specifically, the distance between the earphone and the shelter can be determined according to the infrared signal; confirming that the earphone is in the wearing state when the distance is smaller than a preset distance threshold; and confirming that the earphone is in a non-wearing state under the condition that the distance is not smaller than the preset distance threshold.
For example, if the preset distance threshold is 6mm, and the distance between the infrared sensor and the shield is determined to be 5mm from the infrared signal, it is determined that the earphone and the shield are close to each other, and it is confirmed that the earphone is in a wearing state. And if the distance between the infrared sensor and the shelter is determined to be 8mm according to the infrared signal, the earphone and the shelter are judged to be far away, and the earphone state determined according to the PPG signal is incorrect, and the earphone state is determined to be a non-wearing state according to the judgment result.
In another example, in order to further confirm whether the earphone state is the wearing state or not, so as to reduce the probability of occurrence of misjudgment, in this embodiment, after determining that the earphone is the wearing state, a capacitance signal from a capacitance sensor provided in the earphone may also be acquired; and verifying the wearing state of the earphone according to the capacitance signal.
Specifically, whether the earphone is in contact with a shielding object can be judged according to the capacitance signal; if yes, confirming that the earphone is in the wearing state; if not, the earphone is confirmed to be in a non-wearing state.
For example, it is determined that the earphone is in contact with a blocking object, specifically, the ear canal in this example, according to the capacitance signal, and it is determined that the earphone is in a wearing state. And if the earphone is judged not to be in contact with the shelter according to the capacitance signal, the earphone state determined according to the PPG signal is incorrect, and here, the earphone state is determined as a non-wearing state according to the judgment result.
After the earphone state is confirmed to be the wearing state, the above steps 2100 to 2300 are repeatedly executed until the earphone state is determined to be changed from the wearing state to the non-wearing state, and the operation of verifying the wearing state of the earphone through the infrared signal of the infrared sensor or the capacitance signal of the capacitance sensor is triggered again.
In the method for determining the wearing state of the earphone, a PPG signal acquired by an optical heart rate sensor arranged in the earphone is acquired within a preset time window; calculating the fluctuation of the PPG signal according to the PPG signal; and determining the wearing state of the earphone according to the comparison result of the volatility and a preset volatility threshold value. Therefore, the wearing state of the earphone is determined according to the PPG signal acquired by the optical heart rate sensor, and the probability of misjudgment of the wearing state of the earphone is reduced.
< example >
Fig. 5 shows a schematic flow diagram of an example of a method according to an embodiment of the invention. In this example, an example in which an optical heart rate sensor and an infrared sensor are provided in a headphone will be described.
As shown in fig. 5, the method for determining the wearing state of the earphone according to the present embodiment may include the following steps 3100 to 3700:
in a preset time window, a PPG signal from the optical heart rate sensor arranged in the headset is acquired 3100.
And 3200, performing noise reduction processing on the PPG signal by using an LMS algorithm.
And 3300, calculating the volatility of the PPG signal after the noise reduction processing.
Specifically, the PPG signal after noise reduction processing is averagely divided into five continuous and non-interactive windows in time, a mean value of signal intensity in each window is calculated, a maximum value and a minimum value in the mean value are determined, and a ratio of the maximum value to the minimum value is determined as the volatility of the PPG signal.
And step 3400, judging whether the volatility of the PPG signal is greater than a preset volatility threshold value. If yes, determining that the earphone is in a wearing state, and executing step 3500; if not, determining that the earphone is in a non-wearing state, and repeating the operation of the step 3100.
Step 3500, acquiring an infrared signal from an infrared sensor arranged in the earphone.
And 3600, determining the distance between the earphone and the shelter according to the infrared signal.
3700, judging whether the distance is smaller than a preset distance threshold value; if yes, confirming that the earphone is in the wearing state; if not, the earphone is confirmed to be in a non-wearing state.
The method for determining the wearing state of the headset provided in this embodiment is described above with reference to examples and drawings, and includes acquiring a PPG signal from the optical heart rate sensor within a preset time window, acquiring an infrared signal from the infrared sensor after determining that the wearing state of the headset is the wearing state according to the PPG signal, and performing secondary verification on the determined wearing state according to the infrared signal, thereby reducing the probability of misjudgment on the wearing state of the headset. Meanwhile, a simpler wearing detection algorithm is adopted, so that the memory is effectively saved and the power consumption is reduced.
< apparatus embodiment >
The present embodiment provides an apparatus for determining a wearing state of a headphone, where the handle is, for example, the apparatus 4000 for determining a wearing state of a headphone shown in fig. 6, and the apparatus 4000 for determining a wearing state of a headphone includes: an acquisition module 4100, a calculation module 4200 and a determination module 4300.
The acquisition module 4100 is configured to acquire a PPG signal acquired by an optical heart rate sensor arranged in the earphone within a preset time window;
a calculation module 4200, configured to calculate, according to the PPG signal, a volatility of the PPG signal;
a determining module 4300, configured to determine a wearing state of the headset according to a comparison result between the volatility and a preset volatility threshold.
In one example, the calculation module 4200 is specifically configured to: performing noise reduction processing on the PPG signal by utilizing an LMS algorithm; averagely dividing the PPG signal after noise reduction into five continuous and non-interactive windows in time, calculating the mean value of signal intensity in each window, determining the maximum value and the minimum value in the mean value, and determining the ratio of the maximum value to the minimum value as the volatility of the PPG signal.
In one example, the determining module 4300 is specifically configured to: determining that the earphone is in a wearing state under the condition that the volatility is greater than the preset volatility threshold; determining that the headset is in a non-wearing state if the volatility is not greater than the preset volatility threshold.
In one example, the acquiring module 4100 may be further configured to acquire an infrared signal from an infrared sensor disposed in the headset; and verifying the wearing state of the earphone according to the infrared signal.
Correspondingly, the determining module 4300 may be further configured to determine a distance between the earphone and the obstruction according to the infrared signal; confirming that the earphone is in the wearing state when the distance is smaller than a preset distance threshold; and confirming that the earphone is in a non-wearing state under the condition that the distance is not smaller than the preset distance threshold.
In one example, the acquiring module 4100 may be further configured to acquire a capacitance signal from a capacitance sensor disposed in the headset; and verifying the wearing state of the earphone according to the capacitance signal.
Correspondingly, the determining module 4300 may be further configured to determine whether the earphone is in contact with the obstacle according to the capacitance signal; if yes, confirming that the earphone is in the wearing state; if not, the earphone is confirmed to be in a non-wearing state.
The apparatus for determining the wearing state of an earphone of this embodiment may be configured to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects thereof are similar and will not be described herein again.
< earphone embodiment >
In this embodiment, there is also provided an earphone, as shown in fig. 7, the earphone 5000 includes a processor 5100 and a memory 5200, the memory 5200 stores therein computer instructions, and when the computer instructions are executed by the processor 5100, the method for determining the wearing state of the earphone as in the above method embodiments is implemented.
< computer-readable storage Medium >
The present embodiment provides a computer-readable storage medium storing executable instructions that, when executed by a processor, perform the method for determining the wearing state of a headset as in the above method embodiment.
The above embodiments mainly focus on differences from other embodiments, but it should be clear to those skilled in the art that the above embodiments can be used alone or in combination with each other as needed.
The embodiments in the present disclosure are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments, but it should be clear to those skilled in the art that the embodiments described above can be used alone or in combination with each other as needed. In addition, for the device embodiment, since it corresponds to the method embodiment, the description is relatively simple, and for relevant points, refer to the description of the corresponding parts of the method embodiment. The system embodiments described above are merely illustrative, in that modules illustrated as separate components may or may not be physically separate.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (9)

1. A method for determining a wearing state of a headphone, the method comprising:
acquiring a photoplethysmography (PPG) signal acquired by an optical heart rate sensor arranged in the earphone in a preset time window;
performing noise reduction processing on the PPG signal by using a Least Mean Square (LMS) algorithm;
averagely dividing the PPG signal after noise reduction into five continuous and non-interactive windows in time, calculating the mean value of signal intensity in each window, determining the maximum value and the minimum value in the mean value, and determining the ratio of the maximum value to the minimum value as the volatility of the PPG signal;
and determining the wearing state of the earphone according to the comparison result of the volatility and a preset volatility threshold value.
2. The method according to claim 1, wherein the step of determining the wearing state of the headset according to the comparison result of the volatility with a preset volatility threshold comprises:
determining that the earphone is in a wearing state under the condition that the volatility is greater than the preset volatility threshold;
determining that the headset is in a non-wearing state if the volatility is not greater than the preset volatility threshold.
3. The method according to claim 2, wherein after the step of determining that the headset is in a wearing state in case the fluctuation is greater than the preset threshold, the method further comprises:
acquiring an infrared signal from an infrared sensor arranged in the earphone;
and verifying the wearing state of the earphone according to the infrared signal.
4. The method according to claim 3, wherein the step of verifying the wearing state of the headset according to the infrared signal comprises:
determining the distance between the earphone and a shelter according to the infrared signal;
confirming that the earphone is in the wearing state when the distance is smaller than a preset distance threshold;
and confirming that the earphone is in a non-wearing state under the condition that the distance is not smaller than the preset distance threshold.
5. The method according to claim 2, wherein after the step of determining that the headset is in a wearing state in case the fluctuation is greater than the preset threshold, the method further comprises:
acquiring a capacitance signal from a capacitance sensor arranged in the earphone;
and verifying the wearing state of the earphone according to the capacitance signal.
6. The method of claim 5, wherein the step of verifying the wearing state of the headset according to the capacitance signal comprises:
judging whether the earphone is in contact with a shielding object or not according to the capacitance signal;
if yes, confirming that the earphone is in the wearing state;
if not, the earphone is confirmed to be in a non-wearing state.
7. An apparatus for determining a wearing state of a headphone, the apparatus comprising:
the acquisition module is used for acquiring photoplethysmography (PPG) signals acquired by an optical heart rate sensor arranged in the earphone in a preset time window;
the calculation module is used for performing noise reduction processing on the PPG signal by utilizing a least mean square LMS algorithm; averagely dividing the PPG signal after noise reduction into five continuous and non-interactive windows in time, calculating the mean value of signal intensity in each window, determining the maximum value and the minimum value in the mean value, and determining the ratio of the maximum value to the minimum value as the volatility of the PPG signal;
and the determining module is used for determining the wearing state of the earphone according to the comparison result of the volatility and a preset volatility threshold value.
8. A headset, characterized in that the headset comprises a processor and a memory, in which computer instructions are stored, which computer instructions, when executed by the processor, implement the method of determining the wearing state of a headset according to any of claims 1-6.
9. A computer-readable storage medium storing executable instructions which, when executed by a processor, perform the method of determining the wearing state of a headphone according to any one of claims 1 to 6.
CN201911417134.2A 2019-12-31 2019-12-31 Earphone wearing state determining method and device and earphone Active CN111148009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911417134.2A CN111148009B (en) 2019-12-31 2019-12-31 Earphone wearing state determining method and device and earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911417134.2A CN111148009B (en) 2019-12-31 2019-12-31 Earphone wearing state determining method and device and earphone

Publications (2)

Publication Number Publication Date
CN111148009A CN111148009A (en) 2020-05-12
CN111148009B true CN111148009B (en) 2021-09-17

Family

ID=70522924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911417134.2A Active CN111148009B (en) 2019-12-31 2019-12-31 Earphone wearing state determining method and device and earphone

Country Status (1)

Country Link
CN (1) CN111148009B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111683318A (en) * 2020-06-04 2020-09-18 歌尔科技有限公司 Earphone wearing detection method and device, earphone and readable storage medium
CN111568402A (en) * 2020-06-10 2020-08-25 歌尔科技有限公司 Bluetooth headset, data detection method based on Bluetooth headset and storage medium
CN112013949A (en) * 2020-08-06 2020-12-01 歌尔科技有限公司 Earphone wearing state determining method and device and earphone
CN112258809B (en) * 2020-09-30 2022-04-05 歌尔科技有限公司 Loss detection method and device of wireless earphone and earphone
CN112945226B (en) * 2021-01-26 2023-07-14 歌尔科技有限公司 Headset wearing detection method, device and computer readable storage medium
CN113017582A (en) * 2021-04-28 2021-06-25 上海跳与跳信息技术合伙企业(有限合伙) Wearable equipment
CN114305372A (en) * 2021-12-30 2022-04-12 歌尔科技有限公司 Wearing detection method and device and wearing equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786155A (en) * 2016-02-22 2016-07-20 广东小天才科技有限公司 Judgment method and system for wearing state of wearable device
CN107495929A (en) * 2017-09-28 2017-12-22 武汉久乐科技有限公司 Wearable device and condition detection method
CN108337903A (en) * 2018-01-24 2018-07-27 深圳市汇顶科技股份有限公司 A kind of detection method and its detection module, wearable device of wearing state
CN109189207A (en) * 2018-06-27 2019-01-11 深圳还是威健康科技有限公司 A kind of detection method and device of wearable device wearing state

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786155A (en) * 2016-02-22 2016-07-20 广东小天才科技有限公司 Judgment method and system for wearing state of wearable device
CN107495929A (en) * 2017-09-28 2017-12-22 武汉久乐科技有限公司 Wearable device and condition detection method
CN108337903A (en) * 2018-01-24 2018-07-27 深圳市汇顶科技股份有限公司 A kind of detection method and its detection module, wearable device of wearing state
CN109189207A (en) * 2018-06-27 2019-01-11 深圳还是威健康科技有限公司 A kind of detection method and device of wearable device wearing state

Also Published As

Publication number Publication date
CN111148009A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN111148009B (en) Earphone wearing state determining method and device and earphone
JP6621848B2 (en) Changing the behavior of a companion communication device based on the state of the wearable device
CN111149369B (en) On-ear state detection for a headset
US10848887B2 (en) Blocked microphone detection
US9374647B2 (en) Method and apparatus using head movement for user interface
CN112013949A (en) Earphone wearing state determining method and device and earphone
CN110677768A (en) Wireless earphone control method and device, wireless earphone and storage medium
CN112770214B (en) Earphone control method and device and earphone
CN112258809B (en) Loss detection method and device of wireless earphone and earphone
CN105451111A (en) Earphone play control method and apparatus and terminal
US9516429B2 (en) Hearing aid and method for controlling hearing aid
US20170311068A1 (en) Earset and method of controlling the same
CN111831138B (en) Signal identification method and device of wireless earphone and wireless earphone
US10582290B2 (en) Earpiece with tap functionality
CN112752186A (en) Earphone wearing state detection method and device and earphone
CN110933551A (en) Operation method and system of wireless earphone and wireless communication equipment
CN111866691A (en) State detection method and device of wireless earphone and earphone
EP4294037A1 (en) Wearing detection method, wearable device and storage medium
CN111857366B (en) Method and device for determining double-click action of earphone and earphone
CN110972058A (en) Method and device for determining position of wireless communication device
CN113099347A (en) Earphone control method, earphone control device, wireless earphone and storage medium
CN111787444A (en) Bluetooth headset pairing method and device, Bluetooth headset and storage medium
KR102223653B1 (en) Apparatus and method for processing voice signal and terminal
CN107220021B (en) Voice input recognition method and device and head-mounted equipment
US9654618B2 (en) Adjusting a volume level of a phone for a detected hearing aid

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant