Earphone control method, earphone and computer readable storage medium
By integrating sensor modules in the headset, collecting data and calculating the cervical spine mobility parameters, the problem that existing headsets cannot measure the cervical spine health is solved, expanding its application scenarios and providing cervical spine health assessments and suggestions.
Patent Information
- Application Number
- CN202411216511.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2044-08-30
AI Technical Summary
Existing headphones cannot measure the user's cervical spine health, limiting their application scenarios.
By integrating the sensor module in the headset, receiving action instructions and collecting detection data, and obtaining the user's head status and cervical vertebra mobility parameters based on the preset status threshold and detection data, the measurement of cervical vertebra health is achieved.
The functions of the headphones have been added, and their usage scenarios have been expanded, so that they can effectively measure the user's cervical spine health, and provide cervical spine status evaluation and exercise advice.
Smart Images

Figure CN119316761A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of earphone control technology, and more specifically, to an earphone control method, an earphone, and a computer-readable storage medium. Background Art
[0002] As a new type of smart terminal, earphones will accompany users in many activities, such as exercise and rest, and can effectively record users' activity tracks and activity status information. However, current earphones have few functions and cannot measure the health of users' cervical spine, which limits the application scenarios of earphones. Summary of the invention
[0003] Embodiments of the present application provide a method for controlling an earphone, an earphone, and a computer-readable storage medium.
[0004] A method for controlling an earphone according to an embodiment of the present application includes: receiving an action instruction, wherein the action instruction is used to guide a user wearing the earphone to move the cervical spine; obtaining detection data collected by a sensor module in the earphone; obtaining a head state of the user wearing the earphone according to the detection data and a preset state threshold, wherein the head state includes a first state and a second state, and the movement amplitude of the user's head in the first state is greater than the movement amplitude of the user's head; and obtaining a mobility parameter of the user's cervical spine according to the head state and the detection data.
[0005] In some embodiments, the sensor module includes an accelerometer and a gyroscope, the detection data includes three-axis acceleration detected by the accelerometer and three-axis angular velocity detected by the gyroscope, and the preset state threshold includes a preset acceleration difference threshold and a preset angular velocity difference threshold; obtaining the head state of the user wearing the headset according to the detection data and the preset state threshold includes: determining the head state of the user wearing the headset according to the three-axis acceleration, the three-axis angular velocity, the acceleration difference threshold and the angular velocity difference threshold within a preset time window.
[0006] In some embodiments, determining the head state of the user wearing the headset according to the three-axis acceleration, the three-axis angular velocity, the acceleration difference threshold and the angular velocity difference threshold within a preset time window includes: fusing the three-axis acceleration at multiple predetermined moments in the preset time window to obtain multiple fused acceleration values corresponding to the multiple predetermined moments, and fusing the three-axis angular velocities at multiple predetermined moments in the preset time window to obtain multiple fused angular velocity values corresponding to the multiple predetermined moments; selecting a maximum fused acceleration value and a minimum fused acceleration value from the multiple fused acceleration values, and selecting a maximum fused angular velocity value and a minimum fused angular velocity value from the multiple fused angular velocity values; and obtaining the head state according to the maximum fused acceleration value, the minimum fused acceleration value, the maximum fused angular velocity value, the minimum fused angular velocity value, and the preset state threshold.
[0007] In certain embodiments, when the action instruction is used to guide a user wearing the headset to turn the cervical spine left or right, the preset state threshold includes a first angular velocity threshold, a second angular velocity threshold, and an angular velocity difference threshold; obtaining the head state according to the maximum fusion acceleration, the minimum fusion acceleration, the maximum fusion angular velocity, the minimum fusion angular velocity, and the preset state threshold includes: when the maximum fusion acceleration is greater than the first angular velocity threshold, or the minimum fusion acceleration is less than the second angular velocity threshold, determining that the head state is the first state; and obtaining the angular velocity difference according to the maximum fusion angular velocity and the minimum fusion angular velocity; and, when the angular velocity difference is less than the angular velocity difference threshold, determining that the head state is the second state.
[0008] In certain embodiments, when the action instruction is used to guide a user wearing the headset to tilt the cervical spine to the left, right, forward or backward, the preset state threshold includes an acceleration difference threshold; obtaining the head state according to the maximum fusion acceleration, the minimum fusion acceleration, the maximum fusion angular velocity, the minimum fusion angular velocity, and the preset state threshold includes: obtaining the acceleration difference according to the maximum fusion acceleration and the minimum fusion acceleration; when the acceleration difference is greater than the acceleration difference threshold, determining that the head state is the first state; and when the acceleration difference is less than the acceleration difference threshold, determining that the head state is the second state.
[0009] In some embodiments, the sensor module includes an accelerometer and a gyroscope, and the detection data includes three-axis acceleration detected by the accelerometer and three-axis angular velocity detected by the gyroscope; the activity parameters of the user's cervical spine are obtained according to the head state and the detection data, including: filtering the three-axis acceleration and the three-axis angular velocity at multiple predetermined moments within a preset time window; fusing the filtered multiple three-axis accelerations to obtain multiple fused acceleration values corresponding to the multiple predetermined moments, and fusing the filtered multiple three-axis angular velocities to obtain multiple fused angular velocity values corresponding to the multiple predetermined moments; converting the multiple fused acceleration values and the multiple fused angular velocity values into quaternion data; solving the quaternion data to obtain the posture angle of the headset; and determining the activity parameters according to the head state and the posture angle.
[0010] In some embodiments, the sensor module includes an accelerometer and a gyroscope, and the detection data includes three-axis acceleration detected by the accelerometer and three-axis angular velocity detected by the gyroscope; obtaining the activity parameters of the user's cervical spine based on the head state and the detection data includes: fusing the three-axis accelerations at multiple predetermined moments within a preset time window to obtain multiple fused acceleration values corresponding to the multiple predetermined moments, and fusing the three-axis angular velocities at multiple predetermined moments within a preset time window to obtain multiple fused angular velocity values corresponding to the multiple predetermined moments; converting the multiple fused acceleration values and the multiple fused angular velocity values into quaternion data; solving the quaternion data to obtain the posture angle of the headset; and determining the activity parameters based on the head state and the posture angle.
[0011] In some embodiments, determining the activity parameter based on the head state and the posture angle includes: within the preset time window, when the head state changes from being in the first state to being in the second state, and the posture angle is within a preset posture angle threshold range, determining the posture angle as the activity parameter.
[0012] In some embodiments, the control method further includes: issuing a prompt message if, within the preset time window, the change in the head state is not first in the first state and then in the second state, or if the posture angle is not within a preset posture angle threshold range.
[0013] In certain embodiments, the control method further includes: determining a standard value and a warning value based on the mean value and standard deviation of the activity parameters corresponding to people of different ages stored in a database, wherein the standard value is greater than the warning value; and providing a cervical spine status evaluation based on the standard value, the warning value and the activity parameters.
[0014] In certain embodiments, providing cervical vertebra status evaluation based on the standard value, the warning value and the activity parameter includes: providing first cervical vertebra status evaluation information when the activity parameter is less than the standard parameter and greater than the warning parameter; and providing second cervical vertebra status evaluation information when the activity parameter is less than the warning parameter.
[0015] In some embodiments, the mobility parameters include a left turn angle, a right turn angle, a left tilt angle, and a right tilt angle. 06: Providing a cervical vertebrae status evaluation based on the mobility parameters also includes: obtaining a rotation angle difference between the left turn angle and the right turn angle, and an inclination angle difference between the left tilt angle and the right tilt angle based on the mobility parameters; and comparing the rotation angle difference with a preset first symmetry angle threshold, and comparing the inclination angle difference with a preset second symmetry angle threshold, to provide third cervical vertebrae status evaluation information.
[0016] In some embodiments, the control method further includes: providing a first cervical vertebra movement suggestion based on the cervical vertebra status evaluation.
[0017] In certain embodiments, the control method further includes: storing the user's historical activity parameters into the user's personal database; obtaining a change trend of the user's cervical spine activity based on the user's current activity parameters and the historical activity parameters; and providing a second cervical spine movement suggestion when the user's current activity parameter is less than the average value of the historical activity parameters and the activity difference between the user's current activity parameter and the average value of the historical activity parameters is greater than a preset activity parameter threshold.
[0018] The present application also provides an earphone, which includes a sensor module and a control module; the sensor module is used to collect detection data; the control module is communicatively connected to the sensor module, and is used to execute the control method described in any one of the above embodiments.
[0019] In some embodiments, the earphones in the above embodiments are bone conduction earphones or air conduction earphones.
[0020] The present application also provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the control method described in any one of the above-mentioned embodiments is implemented.
[0021] In the control method of the earphones, the earphones and the computer-readable storage medium provided by the present application, after receiving the action instruction, the head state of the user wearing the earphones is obtained according to the detection data collected by the sensor module, and the mobility parameters of the user's cervical spine are obtained according to the head state and the detection data, thereby realizing the measurement of the health status of the user's cervical spine, increasing the function of the earphones and expanding the usage scenarios of the earphones.
[0022] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0024] Figure 1 is a flowchart of a method for controlling headphones in some implementation modes of the present application;
[0025] Figure 2 is a schematic diagram of the structure of headphones in some embodiments of the present application;
[0026] Figure 3 is a flowchart of a method for controlling headphones in other embodiments of the present application;
[0027] Figure 4 is a schematic diagram of the structure of headphones according to other embodiments of the present application;
[0028] Figure 5 It is a flowchart of determining the head state of a user wearing the headset according to the three-axis acceleration, the three-axis angular velocity, the acceleration difference threshold and the angular velocity difference threshold within a preset time window in the headset control method of certain embodiments of the present application;
[0029] Figure 6 It is a flowchart of obtaining the head state according to the maximum value of fused acceleration, the minimum value of fused acceleration, the maximum value of fused angular velocity, the minimum value of fused angular velocity, and a preset state threshold in the earphone control method of certain embodiments of the present application;
[0030] Figure 7 It is a flowchart of obtaining the activity parameters of the user's cervical spine according to the head state and detection data in the earphone control method of certain embodiments of the present application;
[0031] Figure 8 It is a flowchart of providing cervical vertebra status evaluation according to standard values, warning values and activity parameters in a headset control method of certain embodiments of the present application;
[0032] Fig. 9 It is a schematic diagram of the connection status of a computer-readable storage medium and a processor in certain embodiments of the present application.
[0033] Description of main component symbols:
[0034] Headphones 10;
[0035] Control module 11; sensor module 12; gyroscope 121; accelerometer 122;
[0036] Processor 20;
[0037] Computer readable storage medium 200 ; computer program 202 . DETAILED DESCRIPTION
[0038] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.
[0039] With the popularization and development of portable electronic products and smart terminals, headphones, as a new type of smart terminal, will accompany many activities of users, such as exercise and rest, and can effectively record the user's exercise data, activity trajectory and activity status information. However, current headphones have fewer functions and cannot measure the health of the user's cervical spine, which limits the application scenarios of headphones. How to solve the problem of being unable to measure the health of the user's cervical spine due to the lack of headphone functions has become a difficult problem that technicians in this field urgently need to solve. To solve this problem, the present application provides a method for controlling headphones (such as Figure 1 and Figure 3 As shown), earphone 10 (as Figure 2 and Figure 4 ) and computer readable storage medium 200 (as shown Fig. 9 shown).
[0040] See also Figure 1 and Figure 2 , the headset control method of the embodiment of the present application includes:
[0041] 01: receiving an action instruction, where the action instruction is used to guide the user wearing the headset 10 to move the cervical spine;
[0042] 02: Obtain detection data collected by the sensor module 12 in the headset 10;
[0043] 03: Obtaining the head state of the user wearing the headset 10 according to the detection data and the preset state threshold, the head state includes a first state and a second state, and the movement amplitude of the user's head in the first state is greater than the movement amplitude of the user's head;
[0044] 04: Obtain the user's cervical spine mobility parameters based on the head state and detection data.
[0045] The above-mentioned earphone control method can be applied to the earphone 10. The earphone 10 of the embodiment of the present application includes a control module 11 and a sensor module 12, wherein the control module 11 is used to receive action instructions, and the action instructions are used to guide the user wearing the earphone 10 to move the cervical spine; obtain the detection data collected by the sensor module 12 in the earphone 10; obtain the head state of the user wearing the earphone 10 according to the detection data and a preset state threshold, the head state includes a first state and a second state, and the movement amplitude of the user's head in the first state is greater than the movement amplitude of the user's head; obtain the activity parameters of the user's cervical spine according to the head state and the detection data.
[0046] The earphone 10 is an audio device, mainly used for sound-to-electric conversion, such as converting audio signals into sound, so that users can hear music, movies, games or other audio content, or converting sound into electrical signals. The design of the earphone 10 is to provide a private listening environment, so that users can enjoy the audio content alone without affecting the people around them. In the present application, the earphone 10 adds the function of measuring the user's head state, and obtaining the activity parameters of the user's cervical spine according to the user's head state and detection data, so as to measure the health of the user's cervical spine. For this reason, the earphone 10 also needs to have the function of monitoring and recording various data when the user moves the cervical spine. The earphone 10 in the present application can be a bone conduction earphone or an air conduction earphone, wherein the bone conduction earphone uses the human bones to conduct sound, rather than the traditional earphone that transmits sound waves through the air. The bone conduction earphone will not block the ears when worn by the user. Compared with in-ear earphones, the bone conduction earphone can avoid hearing damage caused by long-term use. At the same time, it ensures that the user can hear the sound of the outside world when using it, and improves the safety of the user's outdoor sports. Air conduction headphones are headphones that use air vibrations to transmit sound directly to the user's ears. Air conduction headphones do not need to directly contact the ears through earplugs or earmuffs, nor do they need to be inserted into the ear canal or close to the head. Compared with in-ear headphones, air conduction headphones have similar advantages to bone conduction headphones, and can also avoid hearing damage caused by long-term use of headphones. At the same time, it can also ensure that users can hear external sounds when using them, improving the safety of users' outdoor sports. Therefore, in this application, the headphones 10 can also be bone conduction headphones containing a storage module or air conduction headphones containing a storage module.
[0047] Specifically, the earphone 10 includes a control module 11 and a sensor module 12, and the control module 11 and the sensor module 12 can be connected by a wired communication formed by a data line, or by a wireless communication formed by a wireless signal. In the control method of the earphone provided in the present application, steps 01, 02, 03 and 04 are all performed by the control module 11. The control module 11 is a module inside the earphone 10 that is responsible for processing various data and coordinating various functions (including but not limited to audio processing, connecting devices, power management, user interaction and other functions). In the present application, the control module 11 is used to receive action instructions for guiding the user wearing the earphone 10 to move the cervical vertebra, and obtain the head state of the user wearing the earphone 10 according to the detection data collected by the sensor module 12 and the preset state threshold, and then obtain the activity parameters of the user's cervical vertebra according to the head state and the detection data. The sensor module 12 provides additional functional support for the earphone 10 and is a module in the earphone 10 that obtains external information. The sensor module 12 may be an accelerometer (used to detect the three-axis acceleration of the headset 10), a gyroscope (used to detect the three-axis angular velocity of the headset 10), a magnetometer (also called a compass sensor, used to detect the direction of the earth's magnetic field, helping the headset 10 determine its own orientation, which is very important for the positioning and navigation applications of the headset 10), a heart rate sensor (measures the user's heart rate through skin contact), and a pressure sensor (used to detect the pressure of the user on the headset when wearing the headset, which can be used to adjust the volume, control playback or answer calls, etc.). In the present application, the sensor module 12 is used to collect various data when the user wearing the headset 10 moves the cervical spine, so as to help the control module 11 obtain the user's head state and the activity parameters of the cervical spine.
[0048] Specifically, please combine Figure 2 The earphone 10 further includes a battery box 117 for placing batteries and / or a control box 119 with a control function. The control box 119 can be used to control the power on and off of the earphone 10 and adjust the volume of the earphone 10. Specifically, the control box 119 includes a first box body, a control module 11 and a sensor module 12. The control module 11 and the sensor module 12 can be installed in the first box body. The battery box 117 includes a second box body and a battery, and the battery is loaded in the second box body. The battery is used to power the earphone 10 so that the earphone 10 can work normally.
[0049] Specifically, the earphone 10 also includes a to-be-connected part 13, and the to-be-connected part 13 includes an ear hook 137 and / or a back hook 139. When the user wears the earphone 10, the back hook 139 of the earphone 10 is worn on the head, and the ear hook 137 of the earphone 10 is worn on the back of the ear, thereby improving the wearing stability of the earphone 10, and the earphone 10 is not easy to fall off when the user is outdoors or exercising. The back hook 139 is used to connect the battery box 117 and the control box 119. The earphone 10 also includes a transducer component 30, and the ear hook 137 is used to connect the battery box 117 and the transducer component 30, and to connect the control box 119 and the transducer component 30. The transducer component 30 is used to fit with the skin of the human body. When the earphone 10 is in use, the transducer component 30 can vibrate mechanically to enable the user to hear the sound.
[0050] Specifically, in step 01, the action instructions for guiding the user wearing the headset 10 to move the cervical spine are usually sent by various terminals, such as the user's mobile phone, tablet computer, or laptop computer, etc. The user can achieve the purpose of sending action instructions to the headset 10 through the corresponding application installed on the terminal. These action instructions usually include turning the head left, turning the head right, tilting the head forward, tilting the head backward, tilting the head left, tilting the head right, etc. After receiving these control instructions, the control module 11 guides the user wearing the headset 10 to complete these action instructions. When the user completes these action instructions, the user will drive his own cervical spine to turn left, turn right, tilt forward, tilt backward, tilt left, tilt right, etc., so that his own cervical spine can perform different forms of activities. In step 02, the control module 11 completes the collection of detection data through the sensor module 12 in the headset 10. In step 03, the control module 11 obtains the head state of the user wearing the headset 10 according to the detection data and the preset state threshold. The head state of the user wearing the headset 10 includes a first state and a second state. In the first state, the movement amplitude of the user's head is greater than the movement amplitude of the user's head. For example, the first state usually refers to the movement state, and the second state usually refers to the static state. Among them, the movement amplitude in the motion state is greater than the preset first movement amplitude threshold, and the movement amplitude in the static state is less than the preset second movement amplitude threshold, the first movement amplitude threshold> the second movement amplitude threshold, and the second movement amplitude threshold can be zero or a smaller value greater than zero. In addition, the movement amplitude can refer to the displacement on three axes (X, Y and Z), or it can be the rotation angle around three axes (X, Y and Z). In step 04, the control module 11 obtains the activity parameters of the user's cervical spine based on the head state and detection data, thereby realizing quantitative measurement of the health of the user's cervical spine, thereby increasing the function of the headset 10 and expanding the use scenarios of the headset 10.
[0051] In some embodiments, please combine Figure 4The sensor module 12 includes an accelerometer 122 and a gyroscope 121, the detection data includes the three-axis acceleration detected by the accelerometer 122 and the three-axis angular velocity detected by the gyroscope 121, the preset state threshold includes a preset acceleration difference threshold and a preset angular velocity difference threshold, and step 03 includes:
[0052] 031: Determine the head state of the user wearing the headset 10 according to the three-axis acceleration, the three-axis angular velocity, the acceleration difference threshold and the angular velocity difference threshold within a preset time window.
[0053] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to determine the head state of the user wearing the earphone 10 according to the three-axis acceleration, three-axis angular velocity, acceleration difference threshold and angular velocity difference threshold within a preset time window.
[0054] Specifically, in step 031, the preset time window is a time window period set in advance by the user, or a time window period preset based on experience before the headset 10 leaves the factory. The control module 11 collects the three-axis acceleration and the three-axis angular velocity through the accelerometer 122 and the gyroscope 121 during this time window period, and then determines the head state of the user wearing the headset 10 in combination with the acceleration difference threshold and the angular velocity difference threshold, thereby determining whether the user wearing the headset 10 is moving the cervical spine according to the action instruction. Step 031 will be described in more detail below.
[0055] In certain embodiments, see Figure 4 and Figure 5 , step 031 comprises:
[0056] 0311: fusing the three-axis accelerations at multiple predetermined moments in a preset time window to obtain multiple fused acceleration values corresponding to the multiple predetermined moments, and fusing the three-axis angular velocities at multiple predetermined moments in the preset time window to obtain multiple fused angular velocity values corresponding to the multiple predetermined moments;
[0057] 0313: selecting a maximum fusion acceleration value and a minimum fusion acceleration value from a plurality of fusion acceleration values, and selecting a maximum fusion angular velocity value and a minimum fusion angular velocity value from a plurality of fusion angular velocity values; and
[0058] 0315: Get the head state according to the maximum value of fusion acceleration, the minimum value of fusion acceleration, the maximum value of fusion angular velocity, the minimum value of fusion angular velocity, and the preset state threshold.
[0059] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to fuse the three-axis accelerations at multiple predetermined moments in a preset time window to obtain multiple fused acceleration values corresponding to the multiple predetermined moments, and to fuse the three-axis angular velocities at multiple predetermined moments in the preset time window to obtain multiple fused angular velocity values corresponding to the multiple predetermined moments; to select the maximum fused acceleration value and the minimum fused acceleration value from the multiple fused acceleration values, and to select the maximum fused angular velocity value and the minimum fused angular velocity value from the multiple fused angular velocity values; and to obtain the head state according to the maximum fused acceleration value, the minimum fused acceleration value, the maximum fused angular velocity value, the minimum fused angular velocity value, and the preset state threshold.
[0060] Specifically, in step 0311, after the sensor module 12 completes the acquisition of the detection data, the control module 11 needs to first fuse the three-axis accelerations at multiple predetermined moments in the preset time window to obtain the fused acceleration at the preset moment. Compared with the acceleration of a single axis, the fused acceleration can more accurately reflect the posture of the earphone 10. At the same time, the control module 11 will also fuse the three-axis angular velocities at multiple predetermined moments in the preset time window to obtain the fused angular velocity at the preset moment. Compared with the angular velocity of a single axis, the fused angular velocity can also more accurately reflect the posture of the earphone 10. In steps 0313 and 0315, the control module 11 selects the maximum and minimum values of the fused acceleration and the maximum and minimum values of the fused angular velocity from the fused accelerations and fused angular velocities at multiple predetermined moments in the preset time window, so as to obtain the head state according to the maximum and minimum values of the fused acceleration, the maximum and minimum values of the fused angular velocity, and the preset state threshold, so as to determine whether the user wearing the earphone 10 is moving the cervical spine according to the action instruction.
[0061] Since action instructions can be mainly divided into two categories: rotation actions and non-rotation actions, in the present application, left turn action instructions and right turn action instructions are classified into one category, forward leaning action instructions, backward leaning action instructions, left leaning action instructions and right leaning action instructions are classified into one category. Based on these two categories of action instructions, step 0315 is further explained below.
[0062] See also Figure 4 and Figure 6 In some embodiments, when the motion instruction is used to guide the user wearing the headset to turn the cervical spine left or right, the preset state threshold includes a first angular velocity threshold, a second angular velocity threshold, and an angular velocity difference threshold, and step 0315 includes:
[0063] 03151: when the maximum value of the fused angular velocity is greater than the first angular velocity threshold, or the minimum value of the fused angular velocity is less than the second angular velocity threshold, determining that the head state is the first state; and
[0064] 03153: Obtain an angular velocity difference according to a maximum fused angular velocity and a minimum fused angular velocity; and, when the angular velocity difference is less than an angular velocity difference threshold, determine that the head state is the second state.
[0065] The above-mentioned earphone control method can be applied to earphone 10, and the control module 11 is also used to: determine that the head state is the first state when the maximum value of the fused angular velocity is greater than the first angular velocity threshold, or the minimum value of the fused angular velocity is less than the second angular velocity threshold; obtain the angular velocity difference according to the maximum value of the fused angular velocity and the minimum value of the fused angular velocity; and, when the angular velocity difference is less than the angular velocity difference threshold, determine that the head state is the second state.
[0066] Specifically, in step 03151, if the maximum value of the fused angular velocity is greater than the first angular velocity threshold, it indicates that the head of the user wearing the headset 10 is rotating at high speed. If the minimum value of the fused angular velocity is less than the second angular velocity threshold, it indicates that the head of the user wearing the headset 10 has just stopped rotating at high speed, so the control module 11 determines that the head state is the first state, for example, it is determined that the head of the user wearing the headset 10 is in motion. In step 03153, the angular velocity difference is obtained according to the maximum value of the fused angular velocity and the minimum value of the fused angular velocity; and, when the angular velocity difference is less than the angular velocity difference threshold, that is, when the head of the user wearing the headset 10 is almost not rotating, the control module 11 determines that the head state is the second state, for example, it is determined that the head of the user wearing the headset 10 is in a stationary state.
[0067] See also Figure 4 and Figure 6 In some embodiments, when the motion instruction is used to guide the user wearing the headset to tilt the cervical spine to the left, right, forward or backward, the preset state threshold includes an acceleration difference threshold, and step 0315 further includes:
[0068] 03155: Obtain the acceleration difference according to the maximum value and the minimum value of the fused acceleration;
[0069] 03157: when the acceleration difference is greater than the acceleration difference threshold, determining that the head state is the first state; and
[0070] 03159: When the acceleration difference is less than the acceleration difference threshold, determine that the head state is the second state.
[0071] The above-mentioned earphone control method can be applied to earphone 10, and the control module 11 is also used to: obtain the acceleration difference according to the maximum value of the fused acceleration and the minimum value of the fused acceleration; when the acceleration difference is greater than the acceleration difference threshold, determine that the head state is the first state; and when the acceleration difference is less than the acceleration difference threshold, determine that the head state is the second state.
[0072] Specifically, in step 03155 and step 03157, the control module 11 first obtains the acceleration difference according to the maximum value of the fused acceleration and the minimum value of the fused acceleration, so as to determine the movement of the head of the user wearing the headset 10. If the acceleration difference is greater than the acceleration difference threshold, it indicates that the head of the user wearing the headset 10 has just moved at a high speed. Therefore, the control module 11 determines that the head state is the first state, for example, it is determined that the head of the user wearing the headset 10 is in a moving state. In step 03159, when the acceleration difference is less than the acceleration difference threshold, that is, when the head of the user wearing the headset 10 has hardly moved, the control module 11 determines that the head state is the second state, for example, it is determined that the head of the user wearing the headset 10 is in a stationary state.
[0073] See also Figure 4 and Figure 7 In some embodiments, the sensor module 12 includes an accelerometer 122 and a gyroscope 121, and the detection data includes three-axis acceleration detected by the accelerometer and three-axis angular velocity detected by the gyroscope. Step 04 includes:
[0074] 041: Filtering the three-axis accelerations and three-axis angular velocities at multiple predetermined moments within a preset time window;
[0075] 042: fusing the filtered multiple three-axis accelerations to obtain multiple fused acceleration values corresponding to multiple predetermined moments, and fusing the filtered multiple three-axis angular velocities to obtain multiple fused angular velocity values corresponding to multiple predetermined moments;
[0076] 043: Convert multiple fused acceleration values and multiple fused angular velocity values into quaternion data;
[0077] 044: Calculate the quaternion data to obtain the attitude angle of the headset 10; and
[0078] 045: Determine the activity parameters based on the head state and posture angle.
[0079] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: filter the three-axis acceleration and the three-axis angular velocity at multiple predetermined moments within a preset time window; fuse the filtered multiple three-axis accelerations to obtain multiple fused acceleration values corresponding to the multiple predetermined moments, and fuse the filtered multiple three-axis angular velocities to obtain multiple fused angular velocity values corresponding to the multiple predetermined moments; convert the multiple fused acceleration values and the multiple fused angular velocity values into quaternion data; solve the quaternion data to obtain the posture angle of the earphone 10; and determine the activity parameter according to the head state and the posture angle.
[0080] Specifically, in step 041 and step 042, the control module 11 performs filtering and fusion on the three-axis acceleration and the three-axis angular velocity, eliminates the noise in the signal by filtering, further ensures the accuracy of the three-axis acceleration and the three-axis angular velocity, and simultaneously performs fusion processing on the three-axis acceleration and the three-axis angular velocity respectively to obtain the fused acceleration and the fused angular velocity. Compared with the acceleration of a single axis or the angular velocity of a single axis, the fused acceleration and the fused angular velocity can more comprehensively reflect the posture of the earphone 10. In conjunction with step 043, the control module 11 will also convert multiple fused acceleration values and multiple fused angular velocity values into quaternion data. The quaternion consists of a real part and three imaginary parts, and can be used to represent the mathematical concepts of rotation and direction in three-dimensional space. In step 044, the control module 11 can obtain a posture angle signal for reflecting the posture of the earphone 10 by solving the quaternion data. Then in step 045, according to the head state of the user wearing the earphone 10 and the posture angle of the earphone 10, the activity parameter of the cervical vertebra of the user wearing the earphone 10 is determined.
[0081] See also Figure 4 and Figure 7 In some embodiments, the sensor module 12 includes an accelerometer 122 and a gyroscope 121, and the detection data includes three-axis acceleration detected by the accelerometer and three-axis angular velocity detected by the gyroscope. Step 04 includes:
[0082] 046: fusing the three-axis accelerations at multiple predetermined moments within the preset time window to obtain multiple fused acceleration values corresponding to the multiple predetermined moments, and fusing the three-axis angular velocities at multiple predetermined moments within the preset time window to obtain multiple fused angular velocity values corresponding to the multiple predetermined moments;
[0083] 043: Convert multiple fused acceleration values and multiple fused angular velocity values into quaternion data;
[0084] 044: Calculate the quaternion data to obtain the attitude angle of the headset 10; and
[0085] 045: Determine the activity parameters based on the head state and posture angle.
[0086] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: fuse the three-axis accelerations at multiple predetermined moments within a preset time window to obtain multiple fused acceleration values corresponding to the multiple predetermined moments, and fuse the three-axis angular velocities at multiple predetermined moments within the preset time window to obtain multiple fused angular velocity values corresponding to the multiple predetermined moments; convert the multiple fused acceleration values and the multiple fused angular velocity values into quaternion data; solve the quaternion data to obtain the posture angle of the earphone 10; and determine the activity parameter according to the head state and the posture angle.
[0087] It can be understood that in step 046, when the acquisition quality of the sensor module 12 is high, the three-axis acceleration and the three-axis angular velocity can also be used directly without filtering, that is, the control module 11 directly fuses the three-axis acceleration at multiple predetermined moments in the preset time window to obtain multiple fused acceleration values corresponding to the multiple predetermined moments. At the same time, the three-axis angular velocity at multiple predetermined moments in the preset time window is fused to obtain multiple fused angular velocity values corresponding to the multiple predetermined moments. In combination with step 043, the control module 11 will also convert the multiple fused acceleration values and the multiple fused angular velocity values into quaternion data. The quaternion consists of a real part and three imaginary parts, which can be used to represent the mathematical concepts of rotation and direction in three-dimensional space. In step 044, the control module 11 can obtain a posture angle signal for reflecting the posture of the headset 10 by solving the quaternion data. Then in step 045, according to the head state of the user wearing the headset 10 and the posture angle of the headset 10, the activity parameter of the cervical vertebra of the user wearing the headset 10 is determined.
[0088] Please combine Figure 4 In some embodiments, step 04 includes:
[0089] 0451: Within a preset time window, the change of the head state is first in a first state and then in a second state, and when the posture angle is within a preset posture angle threshold range, the posture angle is determined as the activity parameter.
[0090] The above-mentioned earphone control method can be applied to earphone 10, and the control module 11 is also used to: within a preset time window, when the head state changes from a first state to a second state, and the posture angle is within a preset posture angle threshold range, determine the posture angle as an activity parameter.
[0091] Specifically, in step 0451, if the change of the head state is first in the first state and then in the second state, that is, the change of the head state is first in motion and then in a static state, it indicates that the user wearing the headset 10 has completed an action according to the action instruction, and the user's cervical spine has also performed an activity accordingly. If the posture angle is within the preset posture angle threshold range, it indicates that the head posture of the user wearing the headset 10 is basically in a posture of looking forward. At this time, the control module 11 can determine the posture angle as the mobility parameter of the user's cervical spine.
[0092] See also Figure 4 and Figure 7 In some embodiments, step 04 further includes:
[0093] 047: within the preset time window, if the change of the head state is not first in the first state and then in the second state, or if the posture angle is not within the preset posture angle threshold range, a prompt message is issued.
[0094] The above-mentioned earphone control method can be applied to earphone 10, and the control module 11 is also used to: within a preset time window, if the change of the head state is not first in the first state and then in the second state, or if the posture angle is not within the preset posture angle threshold range, issue a prompt message.
[0095] Specifically, if the change in the state of the head is not first in the first state and then in the second state, that is, the change in the state of the head is not first in the moving state and then in the static state, it indicates that the user wearing the headset 10 has not completed the action according to the action instruction, and the user's cervical spine has not moved according to the action instruction. At this time, the control module 11 will issue a prompt message to remind the user that the current detection has failed and guide the user to perform the next detection. If the posture angle is not within the preset posture angle threshold range, it indicates that the head posture of the user wearing the headset 10 is not in the posture of looking forward. If the control module 11 determines the posture angle as the activity parameter of the user's cervical spine at this time, a large error will occur, affecting the subsequent evaluation of the user's cervical spine state.
[0096] See also Figure 3 and Figure 4 In some embodiments, the control method of the present application further includes:
[0097] 05: Determine a standard value and a warning value according to the average value and standard deviation of the activity parameters corresponding to people of different ages stored in the database, wherein the standard value is greater than the warning value; and
[0098] 06: Provide cervical spine status evaluation based on standard values, warning values and activity parameters.
[0099] The above-mentioned earphone control method can be applied to earphone 10, and the control module 11 is also used to: determine the standard value and warning value according to the average value and standard deviation of the activity parameters corresponding to people of different ages stored in the database, wherein the standard value is greater than the warning value; and provide cervical spine status evaluation according to the standard value, warning value and activity parameters.
[0100] Specifically, the database is a database containing the average value and standard deviation of the activity parameters of the cervical vertebrae of people of different ages. The control module 11 determines the standard value and warning value of the activity parameters of the cervical vertebrae according to the average value and standard deviation of the activity parameters of the cervical vertebrae of people of different ages in the database, wherein the standard value represents the average value of the activity parameters of the cervical vertebrae of people of different ages, and the warning value is determined based on the average value of the activity parameters of the cervical vertebrae of people of different ages and the standard deviation of the activity parameters of the cervical vertebrae of people of different ages. For example, if the activity parameter of the user's cervical vertebrae is less than the warning value, it indicates that the activity parameter of the user's cervical vertebrae is significantly lower than the average value of the activity parameter of the cervical vertebrae of people of corresponding ages. Compared with an unhealthy cervical vertebra, a healthy cervical vertebra has greater activity, and thus the standard value is greater than the warning value. The control module 11 provides a cervical vertebrae status evaluation based on the standard value, the warning value, and the activity parameters of the user wearing the headset 10.
[0101] See also Figure 4 and Figure 8 In some embodiments, step 06 includes:
[0102] 061: When the activity parameter is less than the standard value and greater than the warning value, provide the first cervical vertebra status evaluation information; and
[0103] 062: When the activity parameter is less than the warning value, provide the second cervical vertebra status evaluation information.
[0104] The above-mentioned earphone control method can be applied to earphone 10, and the control module 11 is also used to: provide first cervical vertebra status evaluation information when the activity parameter is less than the standard value and greater than the warning value; provide second cervical vertebra status evaluation information when the activity parameter is less than the warning value.
[0105] Specifically, if the activity parameter of the cervical spine of the user wearing the headset 10 is less than the standard value and greater than the warning value, it indicates that the user's cervical spine is not in an ideal health state, but is still relatively close to an ideal health state. At this time, the control module 11 provides the first cervical spine status evaluation information to ensure that the user pays attention to the health of his or her cervical spine, such as suggesting that the user regularly moves the cervical spine in multiple directions every day and improves the daily sitting posture. If the activity parameter of the cervical spine of the user wearing the headset 10 is less than the warning value, it indicates that the user's cervical spine is in an unhealthy state. The control module 11 provides the second cervical spine status evaluation information to warn the user to pay attention to the health of his or her cervical spine, such as suggesting that the user go to the hospital for further examination of his or her cervical spine.
[0106] See also Figure 4 and Figure 8 In some embodiments, the activity parameters include a left turn angle, a right turn angle, a left lean angle, and a right lean angle. Step 06 also includes:
[0107] 063: According to the activity parameter, obtain the rotation angle difference between the left turn angle and the right turn angle, and the tilt angle difference between the left tilt angle and the right tilt angle; and
[0108] 064: Compare the rotation angle difference with the preset first symmetry angle threshold, and compare the tilt angle difference with the preset second symmetry angle threshold, and provide third cervical vertebra state evaluation information.
[0109] The above-mentioned earphone control method can be applied to earphone 10, and the control module 11 is also used to: obtain the rotation angle difference between the left turn angle and the right turn angle, and the inclination angle difference between the left tilt angle and the right tilt angle according to the activity parameter; and compare the rotation angle difference with the preset first symmetry angle threshold, and compare the inclination angle difference with the preset second symmetry angle threshold, to provide third cervical vertebra status evaluation information.
[0110] Specifically, when the activity parameters include a left turn angle, a right turn angle, a left tilt angle, and a right tilt angle, the control module 11 will obtain the rotation angle difference between the left turn angle and the right turn angle, and the tilt angle difference between the left tilt angle and the right tilt angle according to the activity parameters, and in step 064, compare the tilt angle difference with the preset second symmetry angle threshold, so as to determine the symmetrical activity state of the cervical spine of the user wearing the headset 10, so as to further quantitatively measure the health status of the user's cervical spine, and provide third cervical spine status evaluation information according to the comparison result. More specifically, when the tilt angle difference is greater than the preset second symmetry angle threshold, it is determined that the symmetrical activity state of the cervical spine of the user wearing the headset 10 is poor, and the control module 11 prompts the user to perform left turn, right turn, left tilt, and right tilt stretching and relaxation movements regularly every day to enhance the symmetrical activity ability of the cervical spine. When the tilt angle difference is less than the preset second symmetry angle threshold, it is determined that the cervical spine of the user wearing the headset 10 has good symmetrical activity. The control module 11 prompts the user to perform a small amount of left turn, right turn, left tilt and right tilt stretching and relaxation movements every day to maintain the symmetrical activity of the cervical spine.
[0111] See also Figure 3 and Figure 4 In some embodiments, the control method of the present application further includes:
[0112] 07: Provide first cervical vertebra exercise suggestions based on cervical vertebra status evaluation;
[0113] 08: Store the user's historical activity parameters into the user's personal database;
[0114] 091: Obtaining a change trend of the user's cervical vertebrae activity according to the user's current activity parameters and historical activity parameters; and
[0115] 092: Provide a second cervical vertebra movement suggestion when the user's current activity parameter is less than the average value of the historical activity parameters and the activity difference between the user's current activity parameter and the average value of the historical activity parameters is greater than a preset activity parameter threshold.
[0116] The above-mentioned earphone control method can be applied to earphone 10, and the control module 11 is also used to: provide a first cervical spine movement suggestion based on the cervical spine status evaluation; store the user's historical activity parameters in the user's personal database; obtain the changing trend of the user's cervical spine activity based on the user's current activity parameters and historical activity parameters; provide a second cervical spine movement suggestion when the user's current activity parameter is less than the average value of the historical activity parameters and the activity difference between the user's current activity parameter and the average value of the historical activity parameters is greater than a preset activity parameter threshold.
[0117] Specifically, in step 07, the control module 11 will also provide a first cervical vertebra movement suggestion based on the cervical vertebra status evaluation, and the first cervical vertebra movement suggestion includes turning the head left, right, leaning left, leaning right, leaning forward, and leaning back at regular intervals and in a fixed amount every day. The first cervical vertebra movement suggestion may be stored in the headset 10 in advance, or may be downloaded online through networking or the like. In steps 08 and 091, the control module 11 stores the user's historical activity parameters in the user's personal database. When the user subsequently performs head movements according to the action instructions, the control module 11 will compare the user's current activity parameters with the historical activity parameters to obtain the changing trend of the user's cervical vertebra activity. In step 093, when the user's current activity parameter is less than the average value of the historical activity parameters, and the activity difference between the user's current activity parameter and the average value of the historical activity parameters is greater than the preset activity parameter threshold, the control module 11 will provide a second cervical spine movement suggestion. For example, when the user's current activity parameter is significantly lower than the average value of the historical activity parameters, the control module 11 will prompt the user that the risk of shoulder and neck discomfort / pain is increased, and recommend corresponding stretching and relaxation movements, and adjustment of daily work and life habits.
[0118] In summary, in the control method of the earphone provided in the present application, after receiving the action instruction, the head state of the user wearing the earphone 10 is obtained according to the detection data collected by the sensor module 12, and the mobility parameters of the user's cervical spine are obtained according to the head state and the detection data, thereby realizing the measurement of the health status of the user's cervical spine, increasing the function of the earphone 10, and expanding the usage scenarios of the earphone 10.
[0119] See also Figure 2 , Figure 3 and Fig. 9 In some embodiments, the present application further provides a computer-readable storage medium 200 on which a computer program 202 is stored, and when the program is executed by a processor, the control method in any of the above embodiments is implemented.
[0120] For example, when the computer program 202 is executed by the processor 20, the following control method is implemented:
[0121] 01: receiving an action instruction, where the action instruction is used to guide the user wearing the headset 10 to move the cervical spine;
[0122] 02: Obtain detection data collected by the sensor module 12 in the headset 10;
[0123] 03: Obtaining the head state of the user wearing the headset 10 according to the detection data and the preset state threshold, the head state includes a first state and a second state, and the movement amplitude of the user's head in the first state is greater than the movement amplitude of the user's head;
[0124] 04: Obtain the user's cervical spine mobility parameters based on the head state and detection data.
[0125] For another example, when the computer program 202 is executed by the processor 20, the following control method is implemented:
[0126] 031: Determine the head state of the user wearing the headset 10 according to the three-axis acceleration, the three-axis angular velocity, the acceleration difference threshold and the angular velocity difference threshold within a preset time window.
[0127] For another example, when the computer program 202 is executed by the processor 20, the control methods in 0311, 0313, 0315, 03151, 03153, 03155, 03157, 03159, 041, 042, 043, 044, 045, 0451, 046, 047, 06, 061, 062, 063, 064, 07, 08, 091 and 092 can also be implemented.
[0128] In the computer-readable storage medium 200 in the present application, after receiving the action instruction, the head state of the user wearing the headset 10 is obtained according to the detection data collected by the sensor module 12, and the mobility parameters of the user's cervical spine are obtained according to the head state and the detection data, thereby realizing the measurement of the health status of the user's cervical spine, increasing the functions of the headset 10, and expanding the usage scenarios of the headset 10.
[0129] In the description of this specification, the descriptions with reference to the terms "certain embodiments", "in an example", "exemplarily", etc., mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0130] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0131] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for controlling a headset, characterized in that: include: receiving an action instruction, wherein the action instruction is used to guide a user wearing the headset to move the cervical spine; Acquire detection data collected by the sensor module in the earphone; Acquire a head state of a user wearing the headset according to the detection data and a preset state threshold, the head state comprising a first state and a second state, and a movement amplitude of the user's head in the first state is greater than a movement amplitude of the user's head in the second state; and The activity parameter of the user's cervical spine is obtained according to the head state and the detection data.
2. The control method according to claim 1, characterized in that: The sensor module includes an accelerometer and a gyroscope, the detection data includes three-axis acceleration detected by the accelerometer and three-axis angular velocity detected by the gyroscope, and the preset state threshold includes a preset acceleration difference threshold and a preset angular velocity difference threshold; The step of obtaining the head state of the user wearing the headset according to the detection data and a preset state threshold comprises: The head state of the user wearing the headset is determined according to the three-axis acceleration, the three-axis angular velocity, the acceleration difference threshold and the angular velocity difference threshold within a preset time window.
3. The control method according to claim 2, characterized in that: The determining the head state of the user wearing the headset according to the three-axis acceleration, the three-axis angular velocity, the acceleration difference threshold and the angular velocity difference threshold within a preset time window includes: The three-axis accelerations at multiple predetermined moments in the preset time window are fused to obtain multiple fused acceleration values corresponding to the multiple predetermined moments, and the three-axis angular velocities at multiple predetermined moments in the preset time window are fused to obtain multiple fused angular velocity values corresponding to the multiple predetermined moments; Filtering out a maximum fused acceleration value and a minimum fused acceleration value from the plurality of fused acceleration values, and filtering out a maximum fused angular velocity value and a minimum fused angular velocity value from the plurality of fused angular velocity values; and The head state is obtained according to the maximum value of the fusion acceleration, the minimum value of the fusion acceleration, the maximum value of the fusion angular velocity, the minimum value of the fusion angular velocity, and the preset state threshold.
4. The control method according to claim 3, characterized in that: In a case where the action instruction is used to guide a user wearing the headset to turn the cervical spine left or right, the preset state threshold includes a first angular velocity threshold, a second angular velocity threshold, and an angular velocity difference threshold; and obtaining the head state according to the maximum fusion acceleration value, the minimum fusion acceleration value, the maximum fusion angular velocity value, the minimum fusion angular velocity value, and the preset state threshold value includes: When the maximum value of the fused angular velocity is greater than the first angular velocity threshold, or the minimum value of the fused angular velocity is less than the second angular velocity threshold, determining that the head state is the first state; and An angular velocity difference is obtained according to the maximum fused angular velocity and the minimum fused angular velocity; and when the angular velocity difference is less than the angular velocity difference threshold, the head state is determined to be the second state.
5. The control method according to claim 3, characterized in that: In a case where the action instruction is used to guide a user wearing the headset to tilt the cervical spine to the left, right, forward or backward, the preset state threshold includes an acceleration difference threshold; and obtaining the head state according to the maximum fusion acceleration value, the minimum fusion acceleration value, the maximum fusion angular velocity value, the minimum fusion angular velocity value, and the preset state threshold value includes: Acquire an acceleration difference value according to the maximum value of the fused acceleration and the minimum value of the fused acceleration; When the acceleration difference is greater than the acceleration difference threshold, determining that the head state is the first state; and When the acceleration difference is less than the acceleration difference threshold, the head state is determined to be the second state.
6. The control method according to claim 1, characterized in that: The sensor module includes an accelerometer and a gyroscope, and the detection data includes three-axis acceleration detected by the accelerometer and three-axis angular velocity detected by the gyroscope; The obtaining the activity parameter of the user's cervical spine according to the head state and the detection data includes: Performing filtering processing on the three-axis accelerations and the three-axis angular velocities at a plurality of predetermined moments within a preset time window; fusing the filtered multiple three-axis accelerations to obtain multiple fused acceleration values corresponding to the multiple predetermined moments, and fusing the filtered multiple three-axis angular velocities to obtain multiple fused angular velocity values corresponding to the multiple predetermined moments; Converting the plurality of fused acceleration values and the plurality of fused angular velocity values into quaternion data; Solving the quaternion data to obtain the attitude angle of the headset; and The activity parameter is determined according to the head state and the posture angle.
7. The control method according to claim 1, characterized in that: The sensor module includes an accelerometer and a gyroscope, and the detection data includes three-axis acceleration detected by the accelerometer and three-axis angular velocity detected by the gyroscope; The obtaining the activity parameter of the user's cervical spine according to the head state and the detection data includes: The three-axis accelerations at multiple predetermined moments in a preset time window are fused to obtain multiple fused acceleration values corresponding to the multiple predetermined moments, and the three-axis angular velocities at multiple predetermined moments in a preset time window are fused to obtain multiple fused angular velocity values corresponding to the multiple predetermined moments; Converting the plurality of fused acceleration values and the plurality of fused angular velocity values into quaternion data; Solving the quaternion data to obtain the attitude angle of the headset; and The activity parameter is determined according to the head state and the posture angle.
8. The control method according to claim 6 or 7, characterized in that: The determining the activity parameter according to the head state and the posture angle includes: In the preset time window, when the head state changes from the first state to the second state, and the posture angle is within a preset posture angle threshold range, the posture angle is determined as the activity parameter.
9. The control method according to claim 6 or 7, characterized in that: Also includes: If, within the preset time window, the head state does not change from the first state to the second state, or the posture angle is not within the preset posture angle threshold range, a prompt message is issued.
10. The control method according to claim 1, characterized in that: The control method further comprises: Determining a standard value and a warning value according to the average value and standard deviation of the activity parameter corresponding to people of different ages stored in the database, wherein the standard value is greater than the warning value; and According to the standard value, the warning value and the activity parameter, a cervical spine status evaluation is provided.
11. The control method according to claim 10, characterized in that: Providing cervical vertebra status evaluation according to the standard value, the warning value and the activity parameter includes: When the activity parameter is less than the standard value and greater than the warning value, providing first cervical vertebra state evaluation information; and When the activity parameter is less than the warning value, second cervical vertebra status evaluation information is provided.
12. The control method according to claim 10, characterized in that: The activity parameters include a left turn angle, a right turn angle, a left lean angle, and a right lean angle. The method of providing a cervical vertebra status evaluation based on the activity parameters also includes: According to the activity parameter, a rotation angle difference between the left turn angle and the right turn angle, and a tilt angle difference between the left tilt angle and the right tilt angle are obtained; and The rotation angle difference is compared with a preset first symmetry angle threshold, and the tilt angle difference is compared with a preset second symmetry angle threshold, to provide third cervical vertebra state evaluation information.
13. The control method according to claim 10, characterized in that: The control method further comprises: According to the cervical vertebra status evaluation, a first cervical vertebra movement recommendation is provided.
14. The control method according to claim 10, characterized in that: The control method further comprises: storing the user's historical activity parameters in a user's personal database; Obtaining a change trend of the cervical vertebra activity of the user according to the current activity parameter and the historical activity parameter of the user; and When the current activity parameter of the user is less than the average value of the historical activity parameters, and the activity difference between the current activity parameter of the user and the average value of the historical activity parameters is greater than a preset activity parameter threshold, a second cervical vertebra movement suggestion is provided.
15. An earphone, characterized in that: The earphone comprises: A sensor module, used to collect detection data; and A control module is communicatively connected to the sensor module and is used to execute the control method described in any one of claims 1-14.
16. The earphone according to claim 15, characterized in that The earphone is a bone conduction earphone or an air conduction earphone.
17. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the control method described in any one of claims 1 to 14 is implemented.
Citation Information
Patent Citations
Head / neck inclination angle detection method, device and system, and wireless earphone controller
CN109618263A
Wearable spine health quantitative evaluation device and measurement method thereof
CN111657958A
Intelligent intervertebral disc system and monitoring method capable of monitoring moving postures and stress thereof
CN111938881A
Exercise reminding method and electronic equipment
CN116416769A
Earphone with posture reminding function
CN209964258U