Earphone control method, earphone and computer readable storage medium
By integrating sensor modules and control modules in the headsets to collect and process swimming data, the problem that existing headsets cannot analyze swimming postures is solved, and accurate detection and evaluation of swimming parameters and swimming postures is achieved, and the application scenarios of headsets are expanded.
Patent Information
- Application Number
- CN202411218168.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-01-14
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing headphones cannot analyze the user's swimming posture and indicators under different swimming postures, which limits their application scenarios.
By integrating sensor modules in the headset, including gyroscopes and accelerometers, collecting detection data, obtaining the swimming parameters and swimming postures of users when swimming, using complementary filtering fusion processing and quaternary solution, determine swimming parameters and swimming postures, and provide Swimming posture evaluation and correction suggestions.
It expands the functions of the headset, can analyze the user's swimming posture and indicators when swimming, expands its application scenarios, and improves the accuracy of user experience and sports data recording.
Smart Images

Figure CN119316767A_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 analyze the user's swimming style or obtain various indicators of the user in different swimming styles, 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 is characterized by comprising: activating a swimming mode of the earphone; acquiring detection data collected by a sensor module; acquiring swimming parameters of a user wearing the earphone when swimming based on the detection data; and acquiring a swimming posture of the user when swimming based on the detection data.
[0005] In some implementations, the control method further includes: issuing a prompt message to guide the user to calibrate the posture of the headset.
[0006] In some embodiments, the sensor module includes a gyroscope, and the detection data includes a three-axis angular velocity signal detected by the gyroscope; the control method also includes: determining whether the posture calibration of the earphone is successful; if the posture calibration of the earphone is successful, calibrating the three-axis angular velocity signal detected by the gyroscope; and if the posture calibration of the earphone is unsuccessful, the earphone turning off the swimming mode.
[0007] In some embodiments, the sensor module also includes an accelerometer, and the detection data includes a three-axis acceleration signal detected by the accelerometer; determining whether the posture of the headset is calibrated successfully includes: fusing the three-axis acceleration signal at each preset moment during a preset calibration window to obtain a combined acceleration signal at the preset moment; calculating the maximum value, minimum value and average value of the combined acceleration signal at all the preset moments during the calibration window; and determining whether the posture of the headset is calibrated successfully based on the maximum value, minimum value and average value of the combined acceleration signal.
[0008] In some embodiments, the sensor module includes an accelerometer and a gyroscope, and the detection data includes a three-axis acceleration signal detected by the accelerometer and a three-axis angular velocity signal detected by the gyroscope; obtaining swimming parameters of a user wearing the headset when swimming according to the detection data, including: performing complementary filtering and fusion processing on the three-axis acceleration signal and the three-axis angular velocity signal to obtain a combined acceleration signal, a combined angular velocity signal, and quaternion data; solving the quaternion data to obtain a posture angle signal of the headset; and determining the swimming parameters according to the combined acceleration signal, the combined angular velocity signal, and the posture angle signal.
[0009] In some embodiments, the sensor module includes an accelerometer and a gyroscope, and the detection data includes a three-axis acceleration signal detected by the accelerometer and a three-axis angular velocity signal detected by the gyroscope; obtaining the swimming parameters of the user wearing the headset when swimming according to the detection data includes: processing the three-axis acceleration signal and the three-axis angular velocity signal at each preset moment during a preset swimming window to obtain a combined acceleration signal, a combined angular velocity signal, and a posture angle signal of the headset at multiple preset moments during the swimming window; and determining the swimming parameters according to the combined acceleration signal, the combined angular velocity signal, and the posture angle signal.
[0010] In some embodiments, the swimming parameters include a freestyle breathing angle, the attitude angle signal includes a roll angle signal, and determining the swimming parameters based on the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal includes: obtaining a peak maximum value and a trough average value of the combined acceleration signal and the combined angular velocity signal; and within a first preset period, when the roll angle signal first rises and then falls, and both the combined acceleration signal and the combined angular velocity signal have at least two peak maxima greater than a first preset peak threshold and at least two trough average values less than a first preset trough threshold, determining the maximum roll angle within the first preset period as the freestyle breathing angle.
[0011] In some embodiments, the swimming parameters include a freestyle gliding angle, the attitude angle signal includes a roll angle signal and a pitch angle signal, and determining the swimming parameters based on the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal includes: obtaining the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and within a first preset period, when the fluctuation amplitude of the roll angle signal is less than a preset first fluctuation threshold, determining the pitch angle average value within the first preset period as the freestyle gliding angle.
[0012] In some embodiments, the swimming parameters include a breaststroke breathing angle, the attitude angle signal includes a pitch angle signal, and determining the swimming parameters based on the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal includes: obtaining the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and within a second preset period, when the combined acceleration signal, the combined angular velocity signal, and the pitch angle signal all rise, determining that the current pitch angle is the breaststroke breathing angle.
[0013] In some embodiments, the swimming parameters include breaststroke gliding time, the attitude angle signal includes a pitch angle signal, and determining the swimming parameters based on the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal includes: obtaining the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and within a second preset period, when the fluctuation amplitude of the pitch angle signal is less than a preset second fluctuation threshold and the attitude angle signal is within a preset breaststroke gliding pitch angle threshold range, determining the time when the pitch angle signal is within the preset breaststroke gliding pitch angle threshold range as the breaststroke gliding time.
[0014] In some embodiments, obtaining the swimming stroke of the user wearing the headset when swimming based on the detection data includes: obtaining the number of breathing angles during a preset swimming window; during the swimming window, if both the combined acceleration signal and the combined angular velocity signal have at least two peak averages greater than a first preset peak threshold, and the number of breathing angles is greater than a preset first number threshold, determining that the swimming stroke is freestyle; and during the swimming window, if both the combined acceleration signal and the combined angular velocity signal rise, and the number of breathing angles is greater than a preset second number threshold, determining that the swimming stroke is breaststroke.
[0015] In some embodiments, the control method further includes: obtaining the standard parameters corresponding to different standard swimming styles stored in a database; and providing swimming style evaluation or correction suggestions based on the swimming parameters, the user's swimming style and the standard parameters.
[0016] In some embodiments, providing a swimming posture evaluation or correction suggestion based on the swimming parameters, the user's swimming posture and the standard parameters includes: obtaining the swimming parameters corresponding to the swimming posture of the user when actually swimming and the standard parameters corresponding to the swimming posture; and comparing the swimming parameters corresponding to the swimming posture and the standard parameters corresponding to the swimming posture to determine the standard degree of the swimming posture of the user using the swimming posture.
[0017] In some embodiments, providing a swimming posture evaluation or correction suggestion based on the swimming parameters, the user's swimming posture and the standard parameters includes: obtaining the swimming parameters corresponding to the swimming posture of the user when actually swimming and the standard parameters corresponding to the swimming posture; comparing the swimming parameters corresponding to the swimming posture and the standard parameters corresponding to the swimming posture to obtain an actual difference; and providing correction suggestions based on the actual difference.
[0018] In some embodiments, the control method also includes: storing the historical swimming parameters and historical swimming strokes generated by the user's historical swimming as historical swimming data into the user's personal database; and obtaining the changing trend of the user's swimming parameters based on the current swimming parameters and historical swimming parameters generated by the user's current swimming.
[0019] The present application also provides an earphone, which includes a sensor module and a control module, wherein the sensor module is used to collect detection data; and 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.
[0020] In some embodiments, the earphones in the above embodiments are bone conduction earphones.
[0021] 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.
[0022] In the earphone control method, earphone and computer-readable storage medium provided by the present application, when the earphone starts the swimming mode, the swimming parameters of the user wearing the earphone and the swimming posture of the user when swimming are obtained according to the detection data collected by the sensor module, thereby increasing the function of the earphone and expanding the use scenarios of the earphone.
[0023] 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
[0024] 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: Figure 1 is a flowchart of a method for controlling headphones in some implementation modes of the present application; Figure 2 is a schematic diagram of the structure of headphones in some embodiments of the present application; Figure 3is a flowchart of a method for controlling headphones in other embodiments of the present application; Figure 4 is a schematic diagram of the structure of headphones according to other embodiments of the present application; Figure 5 is a flowchart of determining whether the posture of the headset is successfully calibrated in the headset control method of certain embodiments of the present application; Figure 6 It is a flow chart of obtaining swimming parameters of a user wearing the earphones when swimming according to detection data in an earphone control method in certain embodiments of the present application; Figure 7 It is a flow chart of determining swimming parameters according to a combined acceleration signal, a combined angular velocity signal, and a posture angle signal in a method for controlling headphones in certain embodiments of the present application; Figure 8 is a schematic diagram of the breathing angle of freestyle swimming in certain embodiments of the present application; Fig. 9 is a schematic diagram of freestyle gliding angles in certain embodiments of the present application; Fig.10 is a schematic diagram of breaststroke breathing angles in certain embodiments of the present application; Fig.11 It is a schematic diagram of a flow chart of obtaining a swimming posture of a user wearing the earphones when swimming according to detection data in an earphone control method in certain embodiments of the present application; Fig.12 It is a flowchart of providing swimming posture evaluation or correction suggestions according to swimming parameters, the user's swimming posture and standard parameters in the earphone control method of certain embodiments of the present application; Fig.13 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.
[0025] Description of main component symbols: Headphones 10; Control module 11; sensor module 12; gyroscope 121; accelerometer 122; Processor 20; Computer readable storage medium 200 ; computer program 202 . DETAILED DESCRIPTION
[0026] 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.
[0027] 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 analyze the user's swimming posture when swimming, and cannot obtain various indicators of the user in different swimming postures, which limits the application scenarios of headphones. How to solve the problem of being unable to analyze the user's swimming posture and unable to obtain various indicators of the user in different swimming postures due to the lack of headphone functions has become a difficult problem that technical personnel in this field urgently need to solve. To solve this problem, the present application provides a method for controlling headphones (such as Figure 1 )、Earphone 10 (such as Figure 2 and Figure 4 ) and computer readable storage medium 200 (as shown Fig.13 as shown).
[0028] See also Figure 1 and Figure 2 , the headset control method of the embodiment of the present application includes: 02: The earphones start swimming mode; 03: Acquire the detection data collected by the sensor module 12; 04: Obtain swimming parameters of the user wearing the earphones when swimming based on the detection data; and 05: Obtain the user's swimming style based on the detection data.
[0029] 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 start the swimming mode; obtain the detection data collected by the sensor module 12; obtain the swimming parameters of the user wearing the earphone when swimming according to the detection data; and obtain the swimming posture of the user when swimming according to the detection data.
[0030] 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 listen to music, movies, games or other audio content, or converting sound into electrical signals. The earphone 10 is designed 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 analyzing the swimming style of the user wearing the earphone and measuring various indicators of the user wearing the earphone under different swimming styles. For this purpose, the earphone 10 also needs to have the function of monitoring and recording various data during swimming. At the same time, it also needs to have strong waterproof ability to ensure that the earphone 10 can be completely immersed in water and used underwater for a long time, so as to ensure that the earphone 10 can collect various detection data during the long-term swimming of the user wearing the earphone, and determine the swimming parameters and swimming style. The earphone 10 in the present application may be a bone conduction earphone, which uses human bones to conduct sound instead of traditional earphones that transmit sound waves through the air. The bone conduction earphone will not block the ear 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, thereby improving the safety of the user's outdoor sports. Therefore, in the present application, the earphone 10 may also be a bone conduction earphone including a storage module.
[0031] Specifically, the earphone 10 includes a control module 11 and a sensor module 12. 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 earphone control method provided in the present application, steps 02, 03, 04 and 05 are all executed 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 for the user wearing the earphone to select the mode of the earphone 10, and to obtain the swimming parameters and swimming stroke of the user when swimming according to the detection data obtained by the sensor module 12. The sensor module 12 provides additional functional support for the earphone 10, and is a module in the earphone 10 that obtains external information and / or the parameters of the earphone 10 itself. The sensor module 12 may be an accelerometer (used to detect the three-axis acceleration of the earphone 10), a gyroscope (used to detect the three-axis angular velocity of the earphone 10), a magnetometer (also called a compass sensor, used to detect the direction of the earth's magnetic field, helping the earphone 10 determine its own orientation, which is very important for the positioning and navigation applications of the earphone 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 earphone when wearing the earphone, which can be used for functions such as adjusting the volume, controlling playback or answering calls), etc. In the present application, the sensor module 12 is used to collect various data of the user wearing the earphone 10 when swimming, so as to help the control module 11 obtain the swimming parameters and swimming strokes of the user when swimming.
[0032] 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.
[0033] 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.
[0034] Specifically, in step 02 and step 03, the user wearing the earphone 10 can start the swimming mode of the earphone 10 through the control module 11, and control the sensor module 12 to collect detection data related to the user's swimming. In step 04, the control module 11 obtains the swimming parameters of the user when swimming according to the detection data. More specifically, the swimming parameters include freestyle real-time breathing angle, freestyle real-time gliding angle, breaststroke real-time breathing angle, breaststroke real-time gliding time, breathing frequency, freestyle breathing angle, freestyle maximum breathing angle, freestyle pitch angle, breaststroke breathing angle, breaststroke maximum breathing angle, breaststroke total gliding time, freestyle total duration, and breaststroke total duration. Among them, the breathing angle refers to the relative position and direction of the head and the water surface when the head is breathing above the water surface during swimming. Therefore, it is very important for the user to maintain the correct breathing angle during swimming to maintain body balance, improve swimming efficiency and avoid choking. The pitch angle generally refers to the angle change of the swimmer's body posture and head position underwater relative to the water surface. Therefore, it is very important for the user to maintain a good pitch angle during swimming to improve swimming efficiency, reduce resistance, maintain correct breathing methods and improve overall performance. The gliding angle refers to the angle between the user's head and the vertical plane during swimming. The ideal gliding angle can help the user reduce water resistance and improve swimming efficiency. In step 05, the control module 11 can determine the user's swimming stroke type while obtaining the user's swimming parameters based on these detection data, wherein the swimming stroke includes but is not limited to freestyle, breaststroke, backstroke, and butterfly stroke. The control module 11 can determine the proportion of each stroke based on the stroke type and swimming parameters.
[0035] In certain embodiments, see Figure 2 and Figure 3 , the control method of the present application also includes: 01: Send a prompt message to guide the user to calibrate the posture of the headset 10.
[0036] The above-mentioned earphone control method can be applied to the earphone 10 , and the control module 11 is further used to issue prompt information to guide the user to calibrate the posture of the earphone 10 .
[0037] It is understandable that, in some embodiments, before controlling the sensor module 12 to collect data, a prompt message may be sent to the user to guide the user to calibrate the posture of the headset 10. Specifically, the control module 11 guides the user to look forward through voice prompts or vibrator vibration prompts, so as to determine the reference angle in the subsequent posture angle detection process, so as to achieve posture calibration of the headset 10 and ensure the accuracy of the posture angle collected in the subsequent steps.
[0038] See also Figure 3 and Figure 4 In some embodiments, the sensor module 12 includes a gyroscope 121, and the detection data includes a three-axis angular velocity signal detected by the gyroscope 121. The control method of the present application also includes: 021: Determine whether the posture of the headset 10 is calibrated successfully; 023: When the posture calibration of the headset 10 is successful, calibrate the three-axis angular velocity signal detected by the gyroscope 121; and 025: If the posture calibration of the earphone 10 is unsuccessful, the earphone 10 turns off the swimming mode.
[0039] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: determine whether the posture calibration of the earphone 10 is successful; if the posture calibration of the earphone 10 is successful, calibrate the three-axis angular velocity signal detected by the gyroscope 121; and if the posture calibration of the earphone 10 is unsuccessful, the earphone 10 turns off the swimming mode.
[0040] Specifically, in step 021, after the headset 10 turns on the swimming mode, before the control module 11 controls the sensor module 12 to collect detection data, it is first necessary to ensure the accuracy of the detection data collected by the sensor module 12. Therefore, the control module 11 will first determine whether the posture of the headset 10 is calibrated successfully. In steps 023 and 025, if the posture calibration of the headset 10 is successful, the control module 11 continues to perform subsequent steps, that is, calibrating the three-axis angular velocity signal detected by the gyroscope 121 to further ensure the accuracy of the three-axis angular velocity signal measured by the gyroscope 121. However, if the posture calibration of the headset 10 is unsuccessful, the control module 11 needs to control the headset 10 to turn off the swimming mode, and wait for the user wearing the headset to recalibrate the posture of the headset 10, and after turning on the swimming mode, re-determine whether the posture calibration of the headset 10 is successful.
[0041] In certain embodiments, see Figure 4 and Figure 5 , step 021 comprises: 0211: Fusing the three-axis acceleration signals at each preset time during the preset calibration window to obtain a combined acceleration signal at the preset time; 0213: Calculate the maximum value, minimum value and average value of the combined acceleration signal at all preset moments during the calibration window; and 0215: Determine whether the headset posture calibration is successful based on the maximum, minimum and average values of the combined acceleration signal.
[0042] 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 acceleration signals at each preset moment during the preset calibration window to obtain the combined acceleration signal at the preset moment; calculate the maximum value, minimum value and average value of the combined acceleration signal at all preset moments during the calibration window; and determine whether the posture of the earphone is calibrated successfully based on the maximum value, minimum value and average value of the combined acceleration signal.
[0043] Specifically, in step 0211, the preset calibration window period can be a time window period set in advance by the user, or a time window period that has been preset based on experience before the earphone 10 leaves the factory. The control module 11 obtains the swimming parameters and swimming stroke of the user when swimming based on the detection data collected by the sensor module 12 during this time window period. Therefore, before collecting the detection data, the control module 11 needs to first fuse the three-axis acceleration signal at each preset moment during this window period to obtain the combined acceleration signal at the preset moment. Compared with the acceleration signal of a single axis, the combined acceleration signal can more accurately reflect the posture of the earphone 10. In steps 0213 and 0215, the control module 11 calculates the maximum value, minimum value and average value of the combined acceleration signal at all preset moments during the calibration window period, thereby determining whether the posture of the earphone 10 is successfully calibrated based on the maximum value, minimum value and average value of the combined acceleration signal. More specifically, the headset 10 stores a combined acceleration calibration threshold for determining whether the posture calibration of the headset 10 is successful. The combined acceleration calibration threshold includes three groups, namely, a combined acceleration calibration maximum threshold, a combined acceleration calibration minimum threshold, and a combined acceleration calibration average threshold range. During the calibration window, if the maximum value of the combined acceleration signal is less than the combined acceleration calibration maximum threshold, the minimum value of the combined acceleration signal is greater than the combined acceleration calibration minimum threshold, and the average value of the combined acceleration is within the combined acceleration calibration average threshold range, it indicates that the posture of the headset 10 meets the characteristics that the user wearing the headset 10 looks forward and remains motionless, and at this time, it is determined that the posture calibration of the headset 10 is successful. During the calibration window, if the maximum value of the combined acceleration signal is greater than the combined acceleration calibration maximum threshold, or the minimum value of the combined acceleration signal is less than the combined acceleration calibration minimum threshold, or the average value of the combined acceleration is not within the combined acceleration calibration average threshold range, it indicates that the posture of the headset 10 does not meet the characteristics that the user wearing the headset 10 looks forward and remains motionless, and at this time, it is determined that the posture calibration of the headset 10 is unsuccessful.
[0044] See also Figure 4 and Figure 6 In some embodiments, the sensor module 12 includes an accelerometer 122 and a gyroscope 121, and the detection data includes a three-axis acceleration signal detected by the accelerometer 122 and a three-axis angular velocity signal detected by the gyroscope 121. Step 04 includes: 041: Perform complementary filtering and fusion processing on the three-axis acceleration signal and the three-axis angular velocity signal to obtain a combined acceleration signal, a combined angular velocity signal, and quaternion data; 042: Calculate the quaternion data to obtain the attitude angle signal of the headset; and 044: Determine swimming parameters based on the combined acceleration signal, the combined angular velocity signal and the attitude angle signal.
[0045] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: perform complementary filtering and fusion processing on the three-axis acceleration signal and the three-axis angular velocity signal to obtain a combined acceleration signal, a combined angular velocity signal, and quaternion data; solve the quaternion data to obtain the attitude angle signal of the earphone; and determine the swimming parameters according to the combined acceleration signal, the combined angular velocity signal and the attitude angle signal.
[0046] Specifically, in step 041, the control module 11 performs filtering and fusion on the three-axis acceleration signal and the three-axis angular velocity signal, eliminates the noise in the signal by filtering, further ensures the accuracy of the three-axis acceleration signal and the three-axis angular velocity signal, and simultaneously performs fusion processing on the three-axis acceleration signal and the three-axis angular velocity signal respectively to obtain a combined acceleration signal and a combined angular velocity signal. Compared with a single-axis acceleration signal or a single-axis angular velocity signal, the combined acceleration signal and the combined angular velocity signal can more comprehensively reflect the posture of the earphone 10. In conjunction with step 042, the control module 11 also performs complementary filtering and fusion processing on the three-axis acceleration signal and the three-axis angular velocity signal to obtain 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. The control module 11 can obtain a posture angle signal used to reflect the posture of the earphone 10 by solving the quaternion data. Then, in step 044, the swimming parameters are determined according to the combined acceleration signal, the combined angular velocity signal and the posture angle signal.
[0047] See also Figure 4 and Figure 6 In some embodiments, the sensor module 12 includes an accelerometer 122 and a gyroscope 121, and the detection data includes a three-axis acceleration signal detected by the accelerometer 122 and a three-axis angular velocity signal detected by the gyroscope 121. Step 04 also includes: 043: Processing the three-axis acceleration signal and the three-axis angular velocity signal at each preset moment during the preset swimming window to obtain a combined acceleration signal, a combined angular velocity signal, and an attitude angle signal of the earphone at multiple preset moments during the swimming window; and 044: Determine swimming parameters according to the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal.
[0048] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: process the three-axis acceleration signal and the three-axis angular velocity signal at each preset moment during the preset swimming window to obtain the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal of the earphone at multiple preset moments during the swimming window; and determine the swimming parameters according to the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal.
[0049] It can be understood that, when the acquisition quality of the sensor module 12 is high, the three-axis acceleration signal and the three-axis angular velocity signal can also be used directly without filtering, that is, the control module 11 directly processes the three-axis acceleration signal and the three-axis angular velocity signal at each preset time during the preset swimming window to obtain the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal of the earphone at multiple preset times during the swimming window, and determines the swimming parameters based on the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal.
[0050] See also Figure 4 and Figure 7 In some embodiments, the swimming parameter includes a freestyle breathing angle, the attitude angle signal includes a roll angle signal, and step 044 includes: 0441: Obtain the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and 0442: Within the first preset period, when the roll angle signal first rises and then falls, and both the combined acceleration signal and the combined angular velocity signal have at least two peak maxima greater than the first preset peak threshold and at least two trough average values less than the first preset trough threshold, the maximum roll angle within the first preset period is determined to be the freestyle breathing angle.
[0051] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: obtain the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and within the first preset period, when the roll angle signal first rises and then decreases, and the combined acceleration signal and the combined angular velocity signal both have at least two peak maximum values greater than the first preset peak threshold and at least two trough average values less than the first preset trough threshold, determine that the maximum roll angle within the first preset period is the freestyle breathing angle.
[0052] Specifically, the solution formula of the roll angle signal is: Roll =atan2(2 * q2 * q3 + 2 * q0 * q1, -2 * q1 * q1 - 2 * q2 * q2); In the above formula, q0, q1, q2, q3 are quaternion data, and Roll is the roll angle. In step 0441, the acquisition of swimming parameters needs to be carried out based on the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal. More specifically, in step 0442, the first preset period is a signal detection period preset inside the earphone 10. In the first preset period, when the roll angle signal rises first and then falls, and both the combined acceleration signal and the combined angular velocity signal have at least two peak maximum values greater than the first preset peak threshold and at least two trough average values less than the first preset trough threshold, the control module 11 determines that the maximum roll angle in the first preset period is the freestyle breathing angle. Please combine Figure 8 , Figure 8 The angle α in is the breathing angle. The breathing angle refers to the relative position and direction of the head and the water surface when the head is above the water surface for breathing during swimming. Therefore, the breathing angle can be determined by the roll angle.
[0053] See also Figure 4 and Figure 7 In some embodiments, the swimming parameter includes a freestyle gliding angle, and the attitude angle signal includes a roll angle signal and a pitch angle signal. Step 044 includes: 0441: Obtain the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and 0443: In a first preset period, when the fluctuation amplitude of the roll angle signal is less than a preset first fluctuation threshold, the average pitch angle value in the first preset period is determined as the freestyle gliding angle.
[0054] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: obtain the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and within the first preset period, when the fluctuation amplitude of the roll angle signal is less than the preset first fluctuation threshold, determine the average pitch angle within the first preset period as the freestyle gliding angle.
[0055] Specifically, the solution formula of the pitch angle signal is: Pitch = asin(-2 * q1 * q3 + 2 * q0 * q2); In the above formula, q0, q1, q2, q3 are quaternion data, and Pitch is the pitch angle. In step 0441, the acquisition of swimming parameters needs to be carried out according to the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal. More specifically, in step 0443, the first preset period is a signal detection period preset inside the earphone 10. In the first preset period, when the fluctuation amplitude of the roll angle signal is less than the preset first fluctuation threshold, the control module 11 determines that the average pitch angle in the first preset period is the freestyle gliding angle. Please combine Fig. 9 , Fig. 9 The angle β in is the glide angle, which refers to the angle between the user's head and the vertical plane during swimming. The ideal glide angle can help the user reduce water resistance and improve swimming efficiency. Therefore, the glide angle can be determined by the roll angle and the pitch angle.
[0056] See also Figure 4 and Figure 7 In some embodiments, the swimming parameter includes a breaststroke breathing angle, the attitude angle signal includes a pitch angle signal, and step 044 includes: 0441: Obtain the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and 0444: In the second preset period, when the combined acceleration signal, the combined angular velocity signal and the pitch angle signal all increase, it is determined that the current pitch angle is the breaststroke breathing angle.
[0057] The above-mentioned earphone control method can be applied to earphone 10, and the control module 11 is also used to: obtain the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and within the second preset period, when the combined acceleration signal, the combined angular velocity signal and the pitch angle signal all rise, determine that the current pitch angle is the breaststroke breathing angle.
[0058] Specifically, in step 0441, the acquisition of swimming parameters needs to be performed based on the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal. More specifically, in step 0444, the second preset period is a signal detection period preset in the earphone 10. In the second preset period, please combine Fig.10 , Fig.10 The angle γ in is the breathing angle of breaststroke. When the combined acceleration signal, the combined angular velocity signal and the pitch angle signal all increase, it indicates that the head of the user wearing the headset is lifting relative to the horizontal plane, that is, the breathing action during the breaststroke. The control module 11 determines that the current pitch angle is the breathing angle of breaststroke.
[0059] See also Figure 4 and Figure 7In some embodiments, the swimming parameter includes a breaststroke glide time, the attitude angle signal includes a pitch angle signal, and step 044 includes: 0441: Obtain the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and 0445: Within the second preset period, when the fluctuation amplitude of the pitch angle signal is less than the preset second fluctuation threshold and when the attitude angle signal is within the preset breaststroke gliding pitch angle threshold range, the time during which the pitch angle signal is within the preset breaststroke gliding pitch angle threshold range is determined as the breaststroke gliding time.
[0060] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: obtain the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and within the second preset period, when the fluctuation amplitude of the pitch angle signal is less than the preset second fluctuation threshold, and when the attitude angle signal is within the preset breaststroke gliding pitch angle threshold range, determine the time when the pitch angle signal is within the preset breaststroke gliding pitch angle threshold range as the breaststroke gliding time.
[0061] Specifically, in step 0441, the acquisition of swimming parameters needs to be carried out based on the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal. More specifically, in step 0445, the second preset period is a signal detection period preset in the earphone 10. During the second preset period, when the fluctuation amplitude of the pitch angle signal is less than the preset second fluctuation threshold and when the attitude angle signal is within the preset breaststroke gliding pitch angle threshold range, it indicates that the head of the user wearing the earphone is below the water surface and is looking at the bottom of the water, that is, the user wearing the earphone is in a non-breathing action process of gliding underwater during the breaststroke. The control module 11 determines that the time when the pitch angle signal is within the preset breaststroke gliding pitch angle threshold range is the breaststroke gliding time.
[0062] See also Figure 4 and Fig.11 In some embodiments, step 05 includes: 051: Get the number of breathing angles during the preset swimming window; 053: During the swimming window, when both the combined acceleration signal and the combined angular velocity signal have at least two peak averages greater than a first preset peak threshold, and the number of breathing angles is greater than a preset first number threshold, determining that the swimming stroke is freestyle; and 055: During the swimming window, when the combined acceleration signal and the combined angular velocity signal both rise, and the number of breathing angles is greater than a preset second number threshold, the swimming stroke is determined to be breaststroke.
[0063] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: obtain the number of breathing angles during a preset swimming window; during the swimming window, when both the combined acceleration signal and the combined angular velocity signal have at least two peak averages greater than a first preset peak threshold, and the number of breathing angles is greater than the preset first number threshold, determine that the swimming stroke is freestyle; during the swimming window, when both the combined acceleration signal and the combined angular velocity signal rise, and the number of breathing angles is greater than the preset second number threshold, determine that the swimming stroke is breaststroke.
[0064] Specifically, since the breathing frequencies of different swimming strokes are different, before determining the swimming stroke, the control module 11 obtains the number of breathing angles during the preset swimming window, that is, determines the number of breathing times by the number of breathing angles, and then determines the breathing frequency. In step 053 and step 055, during the swimming window, if the combined acceleration signal and the combined angular velocity signal both have at least two peak average values greater than the first preset peak threshold, and the number of breathing angles is greater than the preset first number threshold, it indicates that the combined acceleration signal and the combined angular velocity signal meet the posture characteristics of freestyle, and the current user's breathing frequency also meets the breathing characteristics of freestyle, and the control module 11 determines that the swimming stroke is freestyle; during the swimming window, if the combined acceleration signal and the combined angular velocity signal both rise, and the number of breathing angles is greater than the preset second number threshold, it indicates that the combined acceleration signal and the combined angular velocity signal meet the posture characteristics of breaststroke, and the current user's breathing frequency also meets the breathing characteristics of breaststroke, and the control module 11 determines that the swimming stroke is breaststroke. In addition, if the resultant acceleration signal or the resultant angular velocity signal does not satisfy the above conditions, or the breathing frequency does not satisfy the above conditions, the control module 11 determines that the swimming stroke is another type of swimming stroke, such as butterfly stroke or backstroke.
[0065] In some embodiments, the swimming parameters include freestyle breathing angle, freestyle gliding angle, breaststroke breathing angle, breaststroke gliding time, breathing frequency, freestyle maximum breathing angle, freestyle pitch angle, breaststroke maximum breathing angle, breaststroke total gliding time, freestyle total time, and breaststroke total time.
[0066] It can be understood that, through the above-mentioned implementation mode, the swimming posture of the user, as well as the breathing angle of freestyle, the gliding angle of freestyle, the breathing angle of breaststroke, the gliding time of breaststroke and the breathing frequency can be determined. The maximum breathing angle of freestyle or breaststroke is the maximum value of the breathing angles of freestyle or breaststroke during the preset swimming time window. The pitch angle of freestyle can be directly determined by the pitch angle signal. In addition, since the swimming process is composed of a gliding process and a breathing process, the total gliding time of freestyle or breaststroke and the total duration of freestyle or breaststroke can be directly determined by the signal curve, thereby determining the swimming posture proportion of freestyle or breaststroke.
[0067] See also Figure 3 and Figure 4 In some embodiments, the control method of the present application further includes: 06: Obtain standard parameters corresponding to different standard swimming styles stored in the database; 07: Provide swimming style evaluation or correction suggestions based on swimming parameters, the user's swimming style and standard parameters.
[0068] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: obtain standard parameters corresponding to different standard swimming styles stored in the database; provide swimming style evaluation or correction suggestions based on the swimming parameters, the user's swimming style and the standard parameters.
[0069] Specifically, the database is a database containing standard parameters of different standard swimming styles. After obtaining the swimming parameters and the user's swimming style, the control module 11 compares the user's swimming parameters under the corresponding swimming style with the standard parameters to obtain an evaluation of the user's swimming and correction suggestions for the swimming style.
[0070] See also Figure 4 and Fig.12 In some embodiments, step 07 includes: 071: Obtain swimming parameters corresponding to the swimming style of the user when swimming and standard parameters corresponding to the swimming style; 073: Compare the swimming parameters corresponding to the swimming stroke and the standard parameters corresponding to the swimming stroke to determine the standard degree of the swimming stroke of the user.
[0071] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: obtain swimming parameters corresponding to the user's actual swimming style and standard parameters corresponding to the swimming style; compare the swimming parameters corresponding to the swimming style and the standard parameters corresponding to the swimming style to determine the standard degree of the user's swimming style using the swimming style.
[0072] Specifically, the standard degree of the user's swimming posture is determined by comparing the swimming parameters corresponding to the user's actual swimming posture with the standard parameters corresponding to the swimming posture.
[0073] See also Figure 4 and Fig.12 In some embodiments, step 07 includes: 071: Obtain swimming parameters corresponding to the swimming style of the user when swimming and standard parameters corresponding to the swimming style; 075: Compare the swimming parameters corresponding to the swimming stroke and the standard parameters corresponding to the swimming stroke to obtain an actual difference; and 077: Provide correction suggestions based on the actual difference.
[0074] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: obtain swimming parameters corresponding to the user's actual swimming style and standard parameters corresponding to the swimming style; compare the swimming parameters corresponding to the swimming style and the standard parameters corresponding to the swimming style to obtain the actual deviation; and provide correction suggestions based on the actual difference.
[0075] Specifically, by comparing the swimming parameters corresponding to the swimming posture of the user during actual swimming with the standard parameters corresponding to the swimming posture, the deviation value between the two sets of parameters, i.e., the actual deviation in step 075, is obtained, thereby quantifying the degree of deviation between the posture of the user's actual swimming posture and the posture of the standard swimming posture, and then providing correction suggestions based on this actual difference. For example, if the breathing angle and pitch angle of the user's freestyle swimming are larger than the breathing angle and pitch angle of the standard freestyle swimming, it means that the most effective force-generating technique has not been learned during the current freestyle breathing and gliding. The earphone 10 sends correction suggestions to the user through voice or display screen, thereby helping the user correct his or her freestyle swimming posture.
[0076] See also Figure 3 and Figure 4 In some embodiments, the control method of the present application further includes: 08: storing the historical swimming parameters and historical swimming strokes generated by the user's historical swimming as historical swimming data in the user's personal database; 09: Obtain the changing trend of the user's swimming parameters according to the current swimming parameters and historical swimming parameters generated by the user's current swimming.
[0077] The above-mentioned earphone control method can be applied to the earphone 10, and the control module 11 is also used to: store the historical swimming parameters and historical swimming strokes generated by the user's historical swimming as historical swimming data into the user's personal database; and obtain the change trend of the user's swimming parameters based on the current swimming parameters and historical swimming parameters generated by the user's current swimming.
[0078] Specifically, the control module 11 will also store the historical swimming parameters and historical swimming strokes generated by the user's historical swimming into the user's personal database. When the user subsequently swims, the control module 11 will compare the current swimming parameters generated by the user's current swimming with the historical swimming parameters to obtain the changing trend of the user's swimming parameters. For example, the user's current breaststroke breathing angle is smaller than the historical average, indicating that the current breaststroke breathing has become more stable; the current gliding time is longer than the historical average, indicating that the body is more stretched in the current breaststroke gliding stage and the resistance is smaller during gliding. By comparing the current swimming parameters generated by the user's current swimming with the historical swimming parameters, it can help the user track his or her own swimming stroke learning progress at any time, thereby further broadening the use scenarios of the headset 10.
[0079] In summary, in the earphone control method provided in the present application, when the earphone 10 starts the swimming mode, the swimming parameters of the user wearing the earphone 10 and the swimming posture of the user when swimming are obtained according to the detection data collected by the sensor module 12, thereby increasing the function of the earphone 10 and expanding the usage scenarios of the earphone 10.
[0080] See also Figure 2 , Figure 3 and Fig.13 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.
[0081] For example, when the computer program 202 is executed by the processor 20, the following control method is implemented: 02: The earphones start swimming mode; 03: Acquire the detection data collected by the sensor module 12; 04: Obtain swimming parameters of the user wearing the earphones when swimming based on the detection data; 05: Obtain the user's swimming style based on the detection data.
[0082] For another example, when the computer program 202 is executed by the processor 20, the following control method is implemented: 01: Send a prompt message to guide the user to calibrate the posture of the headset 10.
[0083] For another example, when the computer program 202 is executed by the processor 20, the control methods in 021, 0211, 0213, 0215, 023, 025, 041, 042, 043, 044, 0441, 0442, 0443, 0444, 0445, 051, 053, 055, 06, 07, 071, 073, 075, 077, 08 and 09 can also be implemented.
[0084] In the computer-readable storage medium 200 in the present application, by decoding the video stream data, when the earphone 10 starts the swimming mode, the swimming parameters of the user wearing the earphone 10 and the swimming posture of the user when swimming are obtained according to the detection data collected by the sensor module 12, thereby increasing the function of the earphone 10 and expanding the usage scenarios of the earphone 10.
[0085] 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.
[0086] 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.
[0087] 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: The earphone activates swimming mode; Acquire detection data collected by the sensor module; Acquire swimming parameters of a user wearing the earphone when swimming according to the detection data; and The swimming posture of the user when swimming is obtained according to the detection data.
2. The control method according to claim 1, characterized in that: Also includes: A prompt message is issued to guide the user to calibrate the posture of the headset.
3. The control method according to claim 2, characterized in that: The sensor module includes a gyroscope, and the detection data includes a three-axis angular velocity signal detected by the gyroscope; the control method further includes: Determining whether the posture of the headset is calibrated successfully; When the posture calibration of the headset is successful, calibrating the three-axis angular velocity signal detected by the gyroscope; and If the posture calibration of the earphone is unsuccessful, the earphone turns off the swimming mode.
4. The control method according to claim 3, characterized in that: The sensor module further comprises an accelerometer, and the detection data comprises a three-axis acceleration signal detected by the accelerometer; The determining whether the posture of the headset is calibrated successfully includes: fusing the three-axis acceleration signals at each preset moment during a preset calibration window to obtain a combined acceleration signal at the preset moment; Calculating the maximum value, minimum value and average value of the combined acceleration signal at all the preset moments during the calibration window; and Whether the posture of the earphone is calibrated successfully is determined according to the maximum value, the minimum value and the average value of the combined acceleration signal.
5. The control method according to claim 1, characterized in that: The sensor module includes an accelerometer and a gyroscope, and the detection data includes a three-axis acceleration signal detected by the accelerometer and a three-axis angular velocity signal detected by the gyroscope; The step of obtaining swimming parameters of a user wearing the earphone when swimming according to the detection data includes: Performing complementary filtering and fusion processing on the three-axis acceleration signal and the three-axis angular velocity signal to obtain a resultant acceleration signal, a resultant angular velocity signal, and quaternion data; Solving the quaternion data to obtain an attitude angle signal of the headset; and The swimming parameter is determined according to the combined acceleration signal, the combined angular velocity signal and the attitude angle signal.
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 a three-axis acceleration signal detected by the accelerometer and a three-axis angular velocity signal detected by the gyroscope; The step of obtaining swimming parameters of a user wearing the earphone when swimming according to the detection data includes: Processing the three-axis acceleration signal and the three-axis angular velocity signal at each preset moment during a preset swimming window to obtain a combined acceleration signal, a combined angular velocity signal, and an attitude angle signal of the earphone at multiple preset moments during the swimming window; and The swimming parameter is determined according to the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal.
7. The control method according to claim 5 or 6, characterized in that: The swimming parameters include a freestyle breathing angle, the attitude angle signal includes a roll angle signal, and determining the swimming parameters according to the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal includes: Obtaining the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and In the first preset period, when the roll angle signal first rises and then falls, and both the resultant acceleration signal and the resultant angular velocity signal have at least two peak maxima greater than the first preset peak threshold and at least two trough average values less than the first preset trough threshold, the maximum roll angle in the first preset period is determined to be the freestyle breathing angle.
8. The control method according to claim 5 or 6, characterized in that: The swimming parameter includes a freestyle gliding angle, the attitude angle signal includes a roll angle signal and a pitch angle signal, and determining the swimming parameter according to the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal includes: Obtaining the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and In a first preset period, when the fluctuation amplitude of the roll angle signal is less than a preset first fluctuation threshold, an average value of the pitch angle in the first preset period is determined as the freestyle gliding angle.
9. The control method according to claim 5 or 6, characterized in that: The swimming parameter includes a breaststroke breathing angle, the attitude angle signal includes a pitch angle signal, and determining the swimming parameter according to the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal includes: Obtaining the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and In a second preset period, when the combined acceleration signal, the combined angular velocity signal, and the pitch angle signal all increase, it is determined that the current pitch angle is the breaststroke breathing angle.
10. The control method according to claim 5 or 6, characterized in that: The swimming parameter includes a breaststroke gliding time, the attitude angle signal includes a pitch angle signal, and determining the swimming parameter according to the combined acceleration signal, the combined angular velocity signal, and the attitude angle signal includes: Obtaining the peak maximum value and the trough average value of the combined acceleration signal and the combined angular velocity signal; and Within a second preset period, when the fluctuation amplitude of the pitch angle signal is less than a preset second fluctuation threshold and when the attitude angle signal is within a preset breaststroke gliding pitch angle threshold range, the time during which the pitch angle signal is within the preset breaststroke gliding pitch angle threshold range is determined as the breaststroke gliding time.
11. The control method according to claim 5 or 6, characterized in that: The step of obtaining a swimming posture of a user wearing the headset when swimming according to the detection data includes: Obtain the number of breathing angles during a preset swimming window; During the swimming window, when both the combined acceleration signal and the combined angular velocity signal have at least two peak averages greater than a first preset peak threshold, and the number of the breathing angles is greater than a preset first number threshold, determining that the swimming stroke is freestyle; and During the swimming window, when the combined acceleration signal and the combined angular velocity signal both rise, and the number of the breathing angles is greater than a preset second number threshold, it is determined that the swimming stroke is breaststroke.
12. The control method according to claim 1, characterized in that: The control method further comprises: Obtaining the standard parameters corresponding to different standard swimming styles stored in a database; and Provide swimming style evaluation or correction suggestions based on the swimming parameters, the user's swimming style and the standard parameters.
13. The control method according to claim 12, characterized in that: The providing swimming posture evaluation or correction suggestions according to the swimming parameters, the user's swimming posture and the standard parameters includes: Acquire the swimming parameters corresponding to the swimming posture of the user when actually swimming and the standard parameters corresponding to the swimming posture; and The swimming parameters corresponding to the swimming style and the standard parameters corresponding to the swimming style are compared to determine the standard degree of the swimming style of the user using the swimming style.
14. The control method according to claim 12, characterized in that: The providing swimming posture evaluation or correction suggestions according to the swimming parameters, the user's swimming posture and the standard parameters includes: Acquire the swimming parameters corresponding to the swimming posture of the user when actually swimming and the standard parameters corresponding to the swimming posture; Comparing the swimming parameter corresponding to the swimming style with the standard parameter corresponding to the swimming style to obtain an actual difference; and Based on the actual difference, a corrective suggestion is provided.
15. The control method according to claim 1, characterized in that: The control method further comprises: storing the historical swimming parameters and the historical swimming strokes generated by the user's historical swimming as historical swimming data in the user's personal database; and According to the current swimming parameters and the historical swimming parameters generated by the user's current swimming, a change trend of the swimming parameters of the user is obtained.
16. 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-15.
17. The earphone according to claim 16, characterized in that The earphones are bone conduction earphones.
18. 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 15 is implemented.
Citation Information
Patent Citations
Method for monitoring swimming
CN106334307A
Swimming posture recognition method and device based on intelligent wearable equipment
CN116229578A
One-way filter for infusion set
KR1020250000929A
Methods and systems for swimming performance analysis
US20190269968A1
A Controller and a Method to Determine a Swim Stroke
US20230321488A1
Cited By
Earphone control method, earphone, and computer-readable storage medium
WO2026046347A1