Headphone control method, system, device and computer readable storage medium

By obtaining the physical data of the headphone wearer and making adaptive adjustments, it solves the problem of existing headphone products being unable to adapt to special conditions, improves wearing comfort and hearing health, and reduces headphone loss.

CN114650481BActive Publication Date: 2025-01-21GOERTEK INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210334891.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-31
Publication Date
2025-01-21
Estimated Expiration
2042-03-31

AI Technical Summary

Technical Problem

The existing headphone products are not intelligent and cannot adapt to adapt to the user's special state, resulting in incorrect wearing of headphones under special states may cause hearing health problems and increase headphone loss.

Method used

By obtaining the physical data of the headphone wearer, it is determined whether the wearer is in an exercise state or a sleeping state, and adaptive adjustments are made based on these states, such as playing prompt information during exercise and lowering the volume during sleep.

Benefits of technology

It improves the wearing comfort of headphone wearers under special conditions, avoids the occurrence of hearing health problems, and reduces the loss of headphones.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114650481B_ABST
    Figure CN114650481B_ABST
Patent Text Reader

Abstract

The present application discloses a headphone control method, system, device and computer-readable storage medium, which relates to the field of computer technology. The headphone control method includes: obtaining the vital sign data of the headphone wearer; determining the state of the headphone wearer based on the vital sign data, the state being a moving state or a sleeping state; when the state meets the restriction condition of the moving state, controlling the headphone to play prompt information; when the state meets the control condition of the sleeping state, reducing the playback volume of the headphone. The present application can identify the state of the headphone wearer based on the vital sign data of the headphone wearer, and when it is determined that the state of the headphone wearer is a special state such as a sleeping state or a moving state, control the headphone to perform adaptive adjustments and perform different actions, thereby improving the comfort of the headphone wearer in wearing the headphone in special states, avoiding hearing health problems caused by improper wearing of the headphone in special states, and reducing the loss of the headphone.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a headphone control method, system, device and computer-readable storage medium. Background Art

[0002] In daily life, many users like to wear headphones for various activities. Especially with the popularization of true wireless headphones and the improvement of their wearing comfort, users are accustomed to wearing headphones in various states. However, incorrect wearing of headphones under special conditions can easily cause hearing health problems for users. The current headphone products are not intelligent enough and cannot make adaptive adjustments according to the user's state.

[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention

[0004] The purpose of this application is to provide an earphone control method, system, device and computer-readable storage medium to improve the comfort of earphone wearers in wearing earphones under special conditions, avoid hearing health problems caused by incorrect wearing of earphones under special conditions, and reduce the wear and tear of the earphones.

[0005] In order to solve the above technical problems, the present application provides a headset control method, comprising:

[0006] Obtaining vital sign data of the headphone wearer;

[0007] Determine the state of the headphone wearer based on the vital sign data, where the state is a motion state or a sleep state;

[0008] When the state satisfies the restriction condition of the motion state, controlling the earphone to play prompt information;

[0009] When the state meets the control condition of the sleep state, the playback volume of the earphone is reduced.

[0010] Optionally, before determining the state of the headphone wearer based on the vital sign data, the headphone control method further includes:

[0011] Obtain baseline values ​​and intensity coefficients of physical signs;

[0012] Calculating a motion threshold and a sleep threshold based on the physical sign baseline value and the intensity coefficient;

[0013] The process of determining the state of the headphone wearer based on the vital sign data comprises:

[0014] When the vital sign data is greater than or equal to the motion threshold, determining that the state of the headphone wearer is a motion state;

[0015] When the physical sign data is less than or equal to the sleep threshold, it is determined that the state of the headphone wearer is a sleep state.

[0016] Optionally, the process of calculating the motion threshold and the sleep threshold based on the physical sign baseline value and the intensity coefficient includes:

[0017] The motion threshold is calculated according to the first relational expression, wherein the first relational expression is P1=P0+(P max -P0)×α;

[0018] The sleep threshold is calculated according to the second relational expression, wherein the second relational expression is P2=P0-(P0-P min )×α;

[0019] Wherein, P1 is the motion threshold, P2 is the sleep threshold, α is the intensity coefficient, P0 is the physical sign reference value, P max is the highest value of the physical sign under the motion state, P min It is the lowest value of the physical sign in the sleep state.

[0020] Optionally, the earphone control method further includes:

[0021] Update the maximum value of the vital signs in the motion state based on the vital signs sampling value in the motion state;

[0022] The minimum value of the vital sign in the sleep state is updated based on the vital sign sampling value in the sleep state.

[0023] Optionally, the headset is provided with a vital sign detection sensor for collecting vital sign sampling values ​​of the headset wearer according to a collection period;

[0024] The headset control method further includes:

[0025] Calculate the physical sign offset of the headphone wearer in the current acquisition period;

[0026] If the vital sign offset is greater than a preset value, the collection period of the vital sign detection sensor is shortened.

[0027] Optionally, before calculating the physical sign offset of the headphone wearer in the current acquisition period, the headphone control method further includes:

[0028] Obtain baseline values ​​of vital signs;

[0029] The process of calculating the physical sign offset of the headphone wearer in the current acquisition period includes:

[0030] Calculate the physical sign offset of the headphone wearer in the current acquisition period based on a third relationship, where the third relationship is ΔP=|P-P0|;

[0031] Among them, ΔP is the vital sign offset, P is the vital sign sampling value collected by the vital sign detection sensor in the current collection period, and P0 is the vital sign reference value.

[0032] Optionally, the earphone control method further includes:

[0033] When the duration of the state being the motion state is greater than a first preset time period, determining that the state satisfies the restriction condition of the motion state;

[0034] When the duration of the state being the sleep state is greater than a second preset time period, it is determined that the state meets the control condition of the sleep state.

[0035] In order to solve the above technical problems, the present application also provides a headset control system, including:

[0036] A first acquisition module, used to acquire vital sign data of the headphone wearer;

[0037] A determination module, configured to determine a state of the headphone wearer based on the vital sign data, wherein the state is a motion state or a sleep state;

[0038] The processing module is used to control the earphone to play prompt information when the state meets the restriction condition of the motion state; the processing module is also used to reduce the playback volume of the earphone when the state meets the control condition of the sleep state.

[0039] In order to solve the above technical problems, the present application also provides an earphone control device, comprising:

[0040] Memory for storing computer programs;

[0041] A processor is used to implement the steps of the headphone control method as described in any one of the above when executing the computer program.

[0042] In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the headphone control method as described in any one of the above are implemented.

[0043] The present application provides a headphone control method, which identifies the state of the headphone wearer based on the headphone wearer's vital sign data, and when the headphone wearer is determined to be in a special state such as a sleeping state or a moving state, controls the headphone to perform adaptive adjustments and perform different actions, such as when the headphone wearer is in a special state of moving state and meets the restriction conditions of the moving state, controls the headphone to play prompt information to remind the headphone wearer to rest, or when the headphone wearer is in a special state of sleeping state and meets the control conditions of the sleeping state, reduces the playback volume of the headphone, thereby reducing the impact on the headphone wearer's sleep quality, improving the comfort of the headphone wearer wearing the headphone in a special state, avoiding hearing health problems caused by improper wearing of the headphone in a special state, and reducing the loss of the headphone. The present application also provides a headphone control system, device and computer-readable storage medium, which have the same beneficial effects as the above-mentioned headphone control method. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0045] Figure 1 A flowchart of the steps of a headphone control method provided by the present application;

[0046] Figure 2 A schematic diagram of a human body state corresponding to different heart rate data provided in this application;

[0047] Figure 3 A schematic diagram of heart rate collection in a moving state provided by this application;

[0048] Figure 4 A schematic diagram of heart rate collection in sleeping state provided by this application;

[0049] Figure 5 A schematic diagram of the structure of a headset control system provided by this application;

[0050] Figure 6 This is a schematic structural diagram of an earphone control device provided in this application. DETAILED DESCRIPTION

[0051] The core of this application is to provide an earphone control method, system, device and computer-readable storage medium to improve the comfort of earphone wearers in wearing earphones under special conditions, avoid hearing health problems caused by incorrect wearing of earphones under special conditions, and reduce the wear and tear of earphones.

[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0053] Please refer to Figure 1 , Figure 1 This is a flowchart of the steps of an earphone control method provided by the present application, and the earphone control method includes:

[0054] S101: Acquire vital sign data of the headphone wearer;

[0055] Among them, the vital sign data is the vital sign data that can be used to determine the current physical state of the headphone wearer, including but not limited to heart rate data, pulse data, breathing data and body temperature data, etc. These vital sign data will change more obviously when the state of the headphone wearer changes. In this step, the vital sign sampling value of the headphone wearer can be detected by a vital sign detection sensor arranged inside the headphone, and the vital sign detection sensor includes but is not limited to a temperature detection sensor and a heart rate detection sensor.

[0056] As an optional embodiment, the process of obtaining the vital sign data of the headphone wearer includes:

[0057] Acquire multiple vital sign sampling values ​​of the headphone wearer in the current control period;

[0058] An average value of the plurality of vital sign sampling values ​​is used as the vital sign data of the headphone wearer in the current control period.

[0059] It can be understood that the vital sign detection sensor collects the vital sign sampling values ​​of the headphone wearer according to the collection cycle, and the vital sign data in this step can refer to the average value of the preset number of vital sign sampling values. Take the vital sign data as heart rate data for example. The heart rate detection sensor collects the heart rate sampling values ​​of the headphone wearer according to the collection cycle and sends them to the controller MCU in the headphone. The MCU counts the number of heart rate detection sensors received until the preset number of heart rate sampling values ​​are received, and then the preset number of heart rate sampling values ​​are averaged, and the average value is used as the heart rate data of the headphone wearer, and the statistical value is cleared to zero, and the statistics are re-performed after the next heart rate sampling value is received. Assuming that the preset number is 10, then after the MCU obtains the 10 heart rate sampling values ​​sent by the heart rate detection sensor, the 10 heart rate sampling values ​​are averaged, and the average value is used as the vital sign data of the headphone wearer in the current control cycle. In the next control cycle, the MCU averages the 10 heart rate sampling values ​​newly obtained in the next control cycle as the heart rate data of the headphone wearer in the next control cycle. The above is just an explanation of the calculation scheme of vital sign data using heart rate data as an example. The calculation schemes for other vital sign data, such as temperature data, respiratory data, etc., are similar. Of course, in addition to obtaining vital sign data by averaging, other calculation methods that can filter out abnormal data can also be used to obtain the vital sign data of each control cycle.

[0060] S102: determining the state of the headphone wearer based on the physical sign data, the state being a moving state or a sleeping state;

[0061] S103: When the state meets the restriction condition of the motion state, control the earphone to play prompt information;

[0062] S104: When the state meets the control condition of the sleep state, reduce the playback volume of the earphone.

[0063] Specifically, based on the vital sign data obtained in the current control period, the state of the headphone wearer in the current control period is determined. The state can be a resting state or some special states, such as a moving state or a sleeping state. Different states correspond to different control schemes.

[0064] Specifically, if it is determined that the state of the headphone wearer in the current control period is in motion and meets the restriction conditions of the motion state, the headphone is controlled to play a prompt message to prompt the headphone wearer to rest, so as to ensure that the headphone wearer can rest in time when the headphone wearer exceeds its own ability to bear high load. If it is determined that the state of the headphone wearer in the current control period is in sleep state, the playback volume of the headphone is reduced to avoid the audio file played by the headphone affecting the sleep quality of the headphone wearer, and at the same time reduce the loss of the headphone. When it is determined that the state of the headphone wearer is in rest state, that is, neither in motion state nor in sleep state, the above control is not performed on the headphone.

[0065] Among them, when lowering the playback volume of the earphones, the volume adjustment amount can be determined according to the vital sign data of the earphone wearer in the current control period. When it is determined that the earphone wearer is in a deep sleep state according to the vital sign data of the earphone wearer, the earphones can be directly controlled to be in low power consumption mode and the earphones can be put into sleep mode.

[0066] It can be seen that the headphone control method provided in this embodiment identifies the state of the headphone wearer based on the vital sign data of the headphone wearer, and when it is determined that the state of the headphone wearer is a special state such as sleeping state or moving state, controls the headphone to perform adaptive adjustment and perform different actions. For example, when the headphone wearer is in a special state of moving state and meets the restriction conditions of the moving state, the headphone is controlled to play prompt information to remind the headphone wearer to rest, or when the headphone wearer is in a special state of sleeping state and meets the control conditions of the sleeping state, the playback volume of the headphone is reduced, thereby reducing the impact on the sleep quality of the headphone wearer, improving the comfort of the headphone wearer wearing the headphone in special states, avoiding hearing health problems caused by improper wearing of the headphone in special states, and reducing the wear of the headphone.

[0067] Based on the above embodiments:

[0068] As an optional embodiment, before determining the state of the headphone wearer based on the vital sign data, the headphone control method further includes:

[0069] Obtain baseline values ​​and intensity coefficients of physical signs;

[0070] Calculate the exercise threshold and sleep threshold based on the baseline value of physical signs and the intensity coefficient;

[0071] The process of determining the status of the headphone wearer based on the vital sign data includes:

[0072] When the physical sign data is greater than or equal to the motion threshold, the state of the headphone wearer is determined to be motion state;

[0073] When the vital sign data is less than or equal to the sleep threshold, it is determined that the headphone wearer is in a sleep state.

[0074] Specifically, the state of the headphone wearer can be determined based on the comparison result of the physical sign data of the headphone wearer's current control cycle with the motion threshold and the sleep threshold. It can be understood that each physical sign data has its own corresponding motion threshold and sleep threshold, and each physical sign data is compared with its own corresponding motion threshold and sleep threshold to determine the state of the headphone wearer. If the physical sign data is greater than or equal to its corresponding motion threshold, the state of the headphone wearer is determined to be a motion state, and if the physical sign data is less than or equal to its corresponding sleep threshold, the state of the headphone wearer is determined to be a sleep state.

[0075] Of course, if multiple types of vital sign data are obtained in each control cycle, when all types of vital sign data meet the motion state condition, the headphone wearer's state is determined to be in motion state, and when all types of vital sign data meet the sleep state condition, the headphone wearer's state is determined to be in sleep state.

[0076] In this embodiment, considering that different headphone wearers have different physiological conditions and physical fitness, and their vital sign data are also different, therefore, when determining the motion threshold and sleep threshold of the vital sign data, this application does not select a fixed value, but calculates it according to the current physical state of the headphone wearer. Specifically, first obtain the headphone wearer's vital sign baseline value and intensity coefficient. The vital sign baseline value is the unique vital sign data of the headphone wearer obtained when the headphone wearer is in a resting state (not in motion, nor affected by emotions). The intensity coefficient is a value set by the headphone wearer according to his own physical state, which is used to characterize the degree of change of the headphone wearer's vital signs.

[0077] Taking heart rate data as an example, the heart rate intensity coefficient can generally be set in the range of 60% to 90%. The heart rate changes of headphone wearers who do not exercise frequently may be more significant than those of headphone wearers who exercise frequently. Therefore, the heart rate intensity coefficient of headphone wearers who do not exercise frequently is higher than that of headphone wearers who exercise frequently. Headphone wearers who do not exercise frequently can set the heart rate intensity coefficient to 80%, and headphone wearers who exercise frequently can set the heart rate intensity coefficient to 75%. When the headphone wearer is an athlete, the heart rate intensity coefficient can be set to 75%.

[0078] Specifically, the intensity coefficient can be set on a terminal used with the headset, and the terminal sends the intensity coefficient to the headset controller MCU so that the headset MCU can perform subsequent processing. When the headset wearer determines that he is in a resting state, he can also input a calibration instruction on the terminal, and the headset controller calculates the vital sign reference value based on a preset number of vital sign sampling values ​​obtained after receiving the calibration instruction.

[0079] Furthermore, considering that different headphone wearers may have different baseline vital signs values, and the same headphone wearer may have different baseline vital signs values ​​in different environments, for example, the baseline vital signs values ​​of the same headphone wearer in the plains may be different from those in the plateaus. Therefore, each time the headphone is worn or the environment changes, the baseline vital signs values ​​must be re-obtained to ensure that the subsequently calculated motion thresholds and sleep thresholds are accurate and reliable.

[0080] As an optional embodiment, when the environment changes, considering that the acquired vital sign sampling values ​​may be significantly different from the historical data, a corresponding prompt message may be generated at the terminal, prompting the headphone wearer to re-acquire the vital sign baseline value in the current environment, so that the headphone wearer can enter a correction instruction on the terminal when determining that he is in a resting state. Accordingly, each time the headphone is worn, a corresponding prompt message may be generated at the terminal, prompting the headphone wearer to re-acquire the vital sign baseline value in the current environment, so that the headphone wearer can enter a correction instruction on the terminal when determining that he is in a resting state.

[0081] As an optional embodiment, the process of calculating the motion threshold and the sleep threshold based on the physical sign baseline value and the intensity coefficient includes:

[0082] The motion threshold is calculated according to the first relational expression: P1=P0+(P max -P0)×α;

[0083] The sleep threshold is calculated according to the second relational expression, which is P2=P0-(P0-P min )×α;

[0084] Among them, P1 is the movement threshold, P2 is the sleep threshold, α is the intensity coefficient, P0 is the baseline value of the physical sign, and P max is the highest value of physical signs in motion, P min This is the lowest value of physical signs during sleep.

[0085] Specifically, take heart rate data as an example, refer to Figure 2 As shown, Figure 2 This is a schematic diagram of the human body state corresponding to different heart rate data. If the headphone wearer sets the heart rate intensity coefficient to 80%, when the heart rate data deviates upward by more than or equal to 80% of the heart rate reference value P0, the current state of the headphone wearer is determined to be a moving state; when the heart rate data deviates downward by more than or equal to 80% of the heart rate reference value P0, the current state of the headphone wearer is determined to be a sleeping state.

[0086] Furthermore, in order to improve the reliability of subsequent state determination, the motion threshold and sleep threshold of the same headphone wearer in the same environment will also be adjusted according to the physical state of the headphone wearer. As an optional embodiment, the headphone control method further includes:

[0087] Update the maximum value of the vital signs in the motion state based on the vital signs sampling value in the motion state;

[0088] The lowest value of the vital sign in the sleep state is updated based on the vital sign sampling value in the sleep state.

[0089] Specifically, if the vital sign sampling value obtained in the current acquisition cycle is greater than the highest value of the vital sign in the motion state, the vital sign sampling value is used as the new highest value of the vital sign in the motion state for subsequent motion threshold calculation; if the vital sign sampling value obtained in the current acquisition cycle is smaller than the lowest value of the vital sign in the sleep state, the vital sign sampling value is used as the new lowest value of the vital sign in the sleep state for subsequent sleep threshold calculation.

[0090] As an optional embodiment, the earphone control method further includes:

[0091] When the duration of the state being in the motion state is greater than a first preset time period, it is determined that the state meets the restriction condition of the motion state;

[0092] When the duration of the state being the sleep state is greater than the second preset time period, it is determined that the state meets the control condition of the sleep state.

[0093] Specifically, when the wearer of the headset is in motion, the physical data, such as heart rate data and body temperature data, will be higher. For example, the heart rate data is used as an example. Figure 3 As shown, Figure 3 This is a schematic diagram of heart rate collection in motion. Assuming that the collection period is 1s, the heart rate data is the average of the heart rate sampling values ​​of 10s, that is, X is the heart rate sample value collected every second. When P1'>P1, the state of the headphone wearer is determined to be in motion, and the heart rate detection sensor will continue to collect heart rate sample values ​​according to the collection cycle. The MCU will use the average value of the heart rate sample values ​​within the next 10s as the new P1' to compare with the motion threshold. When the time t determined to be in motion exceeds the first preset time period Δt, it is determined that the headphone wearer is in motion for a long time, that is, the state is determined to meet the restriction condition of the motion state. At this time, the headphone is controlled to play a prompt message to remind the headphone wearer that he needs to rest. When the time t determined to be in motion does not exceed the first preset time period, the headphone does not operate.

[0094] Correspondingly, when the human body is in a sleeping state, the heart rate data and body temperature data will be low. Let's take the heart rate data as an example. Figure 4 As shown, Figure 4 This is a schematic diagram of heart rate collection in the sleep state. Assuming that the collection period is 1s, the heart rate data is the average of the heart rate sampling values ​​of 10s, that is, X is the heart rate sample value collected every second. When P2'<P2, the wearer of the headset is judged to be in sleep state. The heart rate detection sensor will continue to collect heart rate sample values ​​according to the collection cycle. The MCU will use the average value of the heart rate sample values ​​within the next 10s as the new P2' to compare with the sleep threshold. When the time t judged as the sleep state exceeds the second preset time period Δt, it is judged that the state of the wearer of the headset meets the control conditions of the sleep state. At this time, the playback volume of the headset can be adjusted to reduce the playback volume of the headset. When the time t judged as the sleep state exceeds the third preset time, it can be judged that the wearer of the headset has entered a deep sleep state, and the headset is controlled to enter a low power consumption mode and the headset is dormant. When the time t judged as the sleep state does not exceed the second preset time period, the headset does not operate.

[0095] As an optional embodiment, the earphone is provided with a vital sign detection sensor for collecting vital sign sampling values ​​of the earphone wearer according to a collection period;

[0096] The headset control method further includes:

[0097] Calculate the physical sign offset of the headphone wearer in the current acquisition period;

[0098] If the vital sign offset is greater than the preset value, the collection period of the vital sign detection sensor is shortened.

[0099] As an optional embodiment, before calculating the physical sign offset of the headphone wearer in the current acquisition period, the headphone control method further includes:

[0100] Obtain baseline values ​​of vital signs;

[0101] The process of calculating the physical sign offset of the headphone wearer in the current acquisition period includes:

[0102] Calculate the physical sign offset of the headphone wearer in the current acquisition period based on the third relational expression, where the third relational expression is ΔP=|P-P0|;

[0103] Among them, ΔP is the vital sign offset, P is the vital sign sampling value collected by the vital sign detection sensor in the current collection period, and P0 is the vital sign reference value.

[0104] Specifically, in a resting state, the vital sign detection sensor can be controlled to collect the vital sign sampling values ​​of the headphone wearer according to the first collection period. The first collection period can be set to 10 minutes, that is, the vital sign detection sensor collects the vital sign data of the headphone wearer every 10 minutes to save the power of the headphone. When the vital sign data is detected to be abnormal, such as the vital sign data is too high or too low, it is judged that the state of the headphone wearer may have changed. At this time, the collection period of the vital sign detection sensor is adjusted. For example, the collection period can be set to 2 minutes at this time, and the vital sign detection sensor collects the vital sign data of the headphone wearer every 2 minutes, so that it can respond quickly and obtain the current vital sign data more accurately.

[0105] Specifically, the change in the state of the headphone wearer can be determined based on the vital sign offset, the absolute value of the difference between the vital sign offset and the vital sign sampling value and the vital sign baseline value. If the absolute value is greater than the preset deviation value, it means that the state of the headphone wearer may have changed. At this time, the vital sign detection sensor is controlled to respond quickly.

[0106] The method for obtaining the baseline value of the vital signs is as described above, and will not be repeated in this embodiment.

[0107] Please refer to Figure 5 , Figure 5 This is a schematic diagram of the structure of an earphone control system provided in this application, and the earphone control system includes:

[0108] A first acquisition module 11, used to acquire vital sign data of the headphone wearer;

[0109] A determination module 12, used to determine the state of the headphone wearer based on the physical sign data, the state being a moving state or a sleeping state;

[0110] The processing module 13 is used to control the earphone to play prompt information when the state meets the restriction condition of the moving state; the processing module 13 is also used to reduce the playback volume of the earphone when the state meets the control condition of the sleeping state.

[0111] It can be seen that the headphone control system provided by the present embodiment identifies the state of the headphone wearer based on the vital sign data of the headphone wearer, and when it is determined that the state of the headphone wearer is a special state such as sleeping state or moving state, controls the headphone to perform adaptive adjustment and perform different actions. For example, when the headphone wearer is in a special state of moving state and meets the restriction conditions of the moving state, the headphone is controlled to play prompt information to remind the headphone wearer to rest, or when the headphone wearer is in a special state of sleeping state and meets the control conditions of the sleeping state, the playback volume of the headphone is reduced, thereby reducing the impact on the sleep quality of the headphone wearer, improving the comfort of the headphone wearer wearing the headphone in special states, avoiding hearing health problems caused by improper wearing of the headphone in special states, and reducing the wear of the headphone.

[0112] As an optional embodiment, the earphone control system further includes:

[0113] The second acquisition module is used to obtain the baseline value and intensity coefficient of the vital signs;

[0114] A first calculation module, used for calculating the motion threshold and the sleep threshold based on the physical sign baseline value and the intensity coefficient;

[0115] The determination module 12 is specifically used for:

[0116] When the physical sign data is greater than or equal to the motion threshold, the state of the headphone wearer is determined to be motion state;

[0117] When the vital sign data is less than or equal to the sleep threshold, it is determined that the headphone wearer is in a sleep state.

[0118] As an optional embodiment, the process of calculating the motion threshold and the sleep threshold based on the physical sign baseline value and the intensity coefficient includes:

[0119] The motion threshold is calculated according to the first relational expression: P1=P0+(P max -P0)×α;

[0120] The sleep threshold is calculated according to the second relational expression, which is P2=P0-(P0-P min )×α;

[0121] Among them, P1 is the movement threshold, P2 is the sleep threshold, α is the intensity coefficient, P0 is the baseline value of the physical sign, and P max is the highest value of physical signs in motion, P min This is the lowest value of physical signs during sleep.

[0122] As an optional embodiment, the earphone control system further includes:

[0123] The updating module is used to update the maximum value of the vital signs in the moving state based on the vital signs sampling value in the moving state; the updating module is also used to update the minimum value of the vital signs in the sleeping state based on the vital signs sampling value in the sleeping state.

[0124] As an optional embodiment, the earphone is provided with a vital sign detection sensor for collecting vital sign sampling values ​​of the earphone wearer according to a collection period;

[0125] The headset control system also includes:

[0126] The second calculation module is used to calculate the physical sign offset of the headphone wearer in the current collection period;

[0127] The processing module 13 is also used to shorten the collection period of the vital sign detection sensor if the vital sign offset is greater than a preset value.

[0128] As an optional embodiment, the earphone control system further includes:

[0129] The third acquisition module is used to obtain the baseline value of the vital signs;

[0130] The second calculation module is specifically used for:

[0131] Calculate the physical sign offset of the headphone wearer in the current acquisition period based on the third relational expression, where the third relational expression is ΔP=|P-P0|;

[0132] Among them, ΔP is the vital sign offset, P is the vital sign sampling value collected by the vital sign detection sensor in the current collection period, and P0 is the vital sign reference value.

[0133] As an optional embodiment, the earphone control system further includes:

[0134] The determination module is used to determine that the state meets the restriction condition of the motion state when the duration of the state in the motion state is greater than the first preset time period; the determination module is also used to determine that the state meets the control condition of the sleep state when the duration of the state in the sleep state is greater than the second preset time period.

[0135] Please refer to Figure 6 , Figure 6 This is a schematic diagram of the structure of an earphone control device provided in the present application, the earphone control device comprises:

[0136] A memory 21, used for storing computer programs;

[0137] The processor 22 is configured to implement the steps of the earphone control method described in any one of the above embodiments when executing a computer program.

[0138] Specifically, the memory 21 includes a non-volatile storage medium and an internal memory 21. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory 21 provides an environment for the operation of the operating system and computer-readable instructions in the non-volatile storage medium. When the processor 22 executes the computer program stored in the memory 21, the following steps can be implemented: obtaining the vital sign data of the headphone wearer; determining the state of the headphone wearer based on the vital sign data, the state is a motion state or a sleep state; when the state meets the restriction condition of the motion state, controlling the headphone to play the prompt information; when the state meets the control condition of the sleep state, reducing the playback volume of the headphone.

[0139] It can be seen that the headphone control device provided in this embodiment identifies the state of the headphone wearer based on the vital sign data of the headphone wearer, and when it is determined that the state of the headphone wearer is a special state such as sleeping state or exercising state, controls the headphone to perform adaptive adjustment and perform different actions. For example, when the headphone wearer is in a special state of exercising and meets the restriction conditions of the exercising state, the headphone is controlled to play prompt information to remind the headphone wearer to rest, or when the headphone wearer is in a special state of sleeping and meets the control conditions of the sleeping state, the playback volume of the headphone is reduced, thereby reducing the impact on the sleep quality of the headphone wearer, improving the comfort of the headphone wearer in wearing the headphone in special states, avoiding hearing health problems caused by improper wearing of the headphone in special states, and reducing the wear of the headphone.

[0140] As an optional embodiment, when the processor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: obtaining a vital sign baseline value and an intensity coefficient; calculating a motion threshold and a sleep threshold based on the vital sign baseline value and the intensity coefficient; when the vital sign data is greater than or equal to the motion threshold, determining that the state of the headphone wearer is a motion state; when the vital sign data is less than or equal to the sleep threshold, determining that the state of the headphone wearer is a sleep state.

[0141] As an optional embodiment, when the processor 22 executes the computer subroutine stored in the memory 21, the following steps may be implemented: calculating the motion threshold according to a first relational expression, where the first relational expression is P1=P0+(P max -P0)×α; Calculate the sleep threshold according to the second relational expression, the second relational expression is P2=P0-(P0-P min )×α; where P1 is the motion threshold, P2 is the sleep threshold, α is the intensity coefficient, P0 is the baseline value of the physical sign, and P max is the highest value of physical signs in motion, P min This is the lowest value of physical signs during sleep.

[0142] As an optional embodiment, when the processor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: updating the highest value of the vital signs in the motion state based on the vital sign sampling value in the motion state; updating the lowest value of the vital signs in the sleep state based on the vital sign sampling value in the sleep state.

[0143] As an optional embodiment, when the processor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: calculating the vital sign offset of the headphone wearer in the current acquisition period; if the vital sign offset is greater than a preset value, shortening the acquisition period of the vital sign detection sensor, which is a vital sign detection sensor provided inside the headphone for collecting vital sign sampling values ​​of the headphone wearer according to the acquisition period.

[0144] As an optional embodiment, when the processor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: obtaining a vital sign baseline value; calculating the vital sign offset of the headphone wearer in the current acquisition period based on a third relationship, and the third relationship is ΔP=|P-P0|; wherein ΔP is the vital sign offset, P is the vital sign sampling value collected by the vital sign detection sensor in the current acquisition period, and P0 is the vital sign baseline value.

[0145] As an optional embodiment, when the processor 22 executes the computer subroutine stored in the memory 21, the following steps can be implemented: when the duration of the state in the motion state is greater than the first preset time period, it is determined that the state meets the restriction condition of the motion state; when the duration of the state in the sleep state is greater than the second preset time period, it is determined that the state meets the control condition of the sleep state.

[0146] Based on the above embodiment, as a preferred implementation manner, the earphone control device further includes:

[0147] The input interface is connected to the processor 22 and is used to obtain externally imported computer programs, parameters and instructions, and save them in the memory 21 under the control of the processor 22. The input interface can be connected to an input device to receive parameters or instructions manually input by the user. The input device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the terminal housing.

[0148] The network port is connected to the processor 22 and is used to communicate with external terminal devices. The communication technology used for the communication connection can be a wired communication technology or a wireless communication technology, such as mobile high-definition link technology (MHL), universal serial bus (USB), high-definition multimedia interface (HDMI), wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, communication technology based on IEEE802.11s, etc.

[0149] On the other hand, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the headphone control method described in any one of the above embodiments are implemented.

[0150] Specifically, the computer-readable storage medium may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes. The storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented: obtaining the vital sign data of the headphone wearer; determining the state of the headphone wearer based on the vital sign data, the state being a moving state or a sleeping state; when the state meets the restriction condition of the moving state, controlling the headphone to play the prompt information; when the state meets the control condition of the sleeping state, reducing the playing volume of the headphone.

[0151] It can be seen that in this embodiment, the state of the headphone wearer is identified based on the vital sign data of the headphone wearer, and when the state of the headphone wearer is determined to be a special state such as a sleeping state or a moving state, the headphone is controlled to perform adaptive adjustments and perform different actions. For example, when the headphone wearer is in a special state of moving and meets the restriction conditions of the moving state, the headphone is controlled to play prompt information to remind the headphone wearer to rest; or when the headphone wearer is in a special state of sleeping and meets the control conditions of the sleeping state, the playback volume of the headphone is reduced, thereby reducing the impact on the sleep quality of the headphone wearer, improving the comfort of the headphone wearer in wearing the headphone in a special state, avoiding hearing health problems caused by improper wearing of the headphone in a special state, and reducing the wear of the headphone.

[0152] As an optional embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by the processor, the following steps can be specifically implemented: obtaining a vital sign baseline value and an intensity coefficient; calculating a motion threshold and a sleep threshold based on the vital sign baseline value and the intensity coefficient; when the vital sign data is greater than or equal to the motion threshold, determining that the state of the headphone wearer is a motion state; when the vital sign data is less than or equal to the sleep threshold, determining that the state of the headphone wearer is a sleep state.

[0153] As an optional embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by the processor, the following steps may be implemented: calculating the motion threshold according to a first relational expression, where the first relational expression is P1=P0+(P max -P0)×α; Calculate the sleep threshold according to the second relational expression, the second relational expression is P2=P0-(P0-P min )×α; where P1 is the motion threshold, P2 is the sleep threshold, α is the intensity coefficient, P0 is the baseline value of the physical sign, and P max is the highest value of physical signs in motion, P min This is the lowest value of physical signs during sleep.

[0154] As an optional embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by the processor, the following steps can be specifically implemented: updating the highest value of the vital signs in the motion state based on the vital sign sampling value in the motion state; updating the lowest value of the vital signs in the sleep state based on the vital sign sampling value in the sleep state.

[0155] As an optional embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by the processor, the following steps can be specifically implemented: calculating the vital sign offset of the headphone wearer in the current acquisition period; if the vital sign offset is greater than a preset value, shortening the acquisition period of the vital sign detection sensor, which is a vital sign detection sensor provided inside the headphone for collecting vital sign sampling values ​​of the headphone wearer according to the acquisition period.

[0156] As an optional embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by the processor, the following steps can be specifically implemented: obtaining a vital sign baseline value; calculating the vital sign offset of the headphone wearer in the current acquisition period based on a third relationship, and the third relationship is ΔP=|P-P0|; wherein ΔP is the vital sign offset, P is the vital sign sampling value collected by the vital sign detection sensor in the current acquisition period, and P0 is the vital sign baseline value.

[0157] As an optional embodiment, when the computer subroutine stored in the computer-readable storage medium is executed by the processor, the following steps can be specifically implemented: when the duration of the state in the motion state is greater than the first preset time period, it is determined that the state meets the restriction condition of the motion state; when the duration of the state in the sleep state is greater than the second preset time period, it is determined that the state meets the control condition of the sleep state.

[0158] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0159] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for controlling a headset, characterized in that: include: Obtaining vital sign data of the headphone wearer; Determine the state of the headphone wearer based on the vital sign data, where the state is a moving state or a sleeping state; When the state satisfies the restriction condition of the motion state, controlling the earphone to play prompt information; When the state satisfies the control condition of the sleep state, reducing the playback volume of the earphone; Before determining the state of the headphone wearer based on the vital sign data, the headphone control method further includes: Whenever the earphone is worn or the environment changes, a physical sign baseline value and an intensity coefficient are obtained; the physical sign baseline value is the physical sign data of the earphone wearer obtained when the earphone wearer is in a resting state, and the intensity coefficient is used to characterize the degree of change of the physical sign data; Calculating a motion threshold and a sleep threshold based on the physical sign baseline value and the intensity coefficient; The process of determining the state of the headphone wearer based on the vital sign data comprises: When the vital sign data is greater than or equal to the motion threshold, determining that the state of the headphone wearer is a motion state; When the physical sign data is less than or equal to the sleep threshold, determining that the state of the headphone wearer is a sleep state; The process of calculating the motion threshold and the sleep threshold based on the physical sign reference value and the intensity coefficient includes: The motion threshold is calculated according to the first relational expression, which is: ; The sleep threshold is calculated according to the second relational expression, which is: ; in, P 1 is the motion threshold, P 2 is the sleep threshold, is the strength coefficient, P 0 is the baseline value of the physical sign, P max is the highest value of the physical sign in the above mentioned motion state, P min It is the lowest value of the physical sign in the sleeping state.

2. The earphone control method according to claim 1, characterized in that: The headset control method further includes: Update the maximum value of the vital signs in the motion state based on the vital signs sampling value in the motion state; The minimum value of the vital sign in the sleep state is updated based on the vital sign sampling value in the sleep state.

3. The earphone control method according to claim 1, characterized in that: The earphone is provided with a vital sign detection sensor for collecting vital sign sampling values ​​of the wearer of the earphone according to a collection period; The headset control method further includes: Calculate the physical sign offset of the headphone wearer in the current acquisition period; If the vital sign offset is greater than a preset value, the collection period of the vital sign detection sensor is shortened.

4. The earphone control method according to claim 3, characterized in that: Before calculating the physical sign offset of the headphone wearer in the current acquisition period, the headphone control method further includes: Obtain baseline values ​​of vital signs; The process of calculating the physical sign offset of the headphone wearer in the current acquisition period includes: The physical sign offset of the headphone wearer in the current acquisition period is calculated based on the third relationship, and the third relationship is: ; in, is the sign offset, P is the vital sign sampling value collected by the vital sign detection sensor in the current collection period, P 0 is the baseline value of the physical sign.

5. The earphone control method according to any one of claims 1 to 4, characterized in that: The headset control method further includes: When the duration of the state being the motion state is greater than a first preset time period, determining that the state satisfies the restriction condition of the motion state; When the duration of the state being the sleep state is greater than a second preset time period, it is determined that the state meets the control condition of the sleep state.

6. A headset control system, characterized in that: include: A first acquisition module, used to acquire vital sign data of the headphone wearer; A determination module, configured to determine a state of the headphone wearer based on the vital sign data, wherein the state is a motion state or a sleep state; A processing module, used for controlling the earphone to play prompt information when the state meets the restriction condition of the motion state; the processing module is also used for reducing the playback volume of the earphone when the state meets the control condition of the sleep state; The headset control system also includes: A second acquisition module is used to acquire a physical sign reference value and an intensity coefficient whenever the earphone is worn or the environment changes; the physical sign reference value is the physical sign data of the earphone wearer acquired when the earphone wearer is in a resting state, and the intensity coefficient is used to characterize the degree of change of the physical sign data; A first calculation module, configured to calculate a motion threshold and a sleep threshold based on the physical sign baseline value and the intensity coefficient; The process of determining the state of the headphone wearer based on the vital sign data comprises: When the vital sign data is greater than or equal to the motion threshold, determining that the state of the headphone wearer is a motion state; When the physical sign data is less than or equal to the sleep threshold, determining that the state of the headphone wearer is a sleep state; The process of calculating the motion threshold and the sleep threshold based on the physical sign reference value and the intensity coefficient includes: The motion threshold is calculated according to the first relational expression, which is: ; The sleep threshold is calculated according to the second relational expression, which is: ; in, P 1 is the motion threshold, P 2 is the sleep threshold, is the strength coefficient, P 0 is the baseline value of the physical sign, P max is the highest value of the physical sign in the above mentioned motion state, P min It is the lowest value of the physical sign in the sleeping state.

7. An earphone control device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the headphone control method according to any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the headphone control method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Method and device for controlling intelligent playing terminal, storage medium and intelligent wearable equipment

    CN112667065A

  • Automatically emergency warning device and method for automatically outputting emergency warning

    JP2002049979A

  • Sensitivity adjustment device

    US20140077084A1