Step counting method and device of hearing aid system, hearing aid, medium and product
By combining the data of Sanxuan accelerometer and gyroscope, the problem that the accuracy of step meter function in hearing aids is affected by the complex movement mode of the head, and more accurate step statistic is achieved.
Patent Information
- Application Number
- CN202411512450.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-03-11
Smart Images

Figure CN119595006A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of hearing aids, and in particular to a step counting method, device, hearing aid, medium and product of a hearing aid system. Background Art
[0002] Currently, with the rapid development of science and technology, hearing aids are no longer limited to improving the auditory experience of the hearing-impaired, but are gradually moving towards intelligence and multi-functions. In order to meet users' needs for health management and daily activity monitoring, many modern hearing aids have integrated pedometer modules to help wearers easily track their steps, thereby encouraging a more active lifestyle.
[0003] However, this design faces a significant challenge in practical application: since the hearing aid is worn directly on the head, the head will inevitably move during daily activities (such as walking, running, or slight body shaking). Although this natural head movement has limited impact on the hearing aid function, it greatly affects the data accuracy of the pedometer module. Because traditional pedometer algorithms rely on accurate analysis of acceleration changes in fixed parts (such as wrists, pockets, etc.), and the complex movement pattern of the head makes it difficult for this algorithm to accurately distinguish between true walking movements and simple head shaking.
[0004] Therefore, how to improve the accuracy of the pedometer function in hearing aids is a technical problem that needs to be solved by those skilled in the art. Summary of the invention
[0005] The main purpose of this application is to provide a pedometer method, device, hearing aid, medium and product for a hearing aid system, aiming to solve the technical problem of how to improve the accuracy of the pedometer function in a hearing aid.
[0006] To achieve the above object, the present application proposes a step counting method for a hearing aid system, the step counting method for a hearing aid system is applied to a hearing aid, the hearing aid comprises: a gyroscope and a three-axis accelerometer, and the method comprises:
[0007] Acquire first data through the three-axis accelerometer, and acquire second data through the gyroscope, wherein the first data is data acquired by the three-axis accelerometer, and the second data is data acquired by the gyroscope;
[0008] Using the data corresponding to the z-axis in the first data as the first target data;
[0009] Detecting a peak value in the first target data, and using a collection time corresponding to the peak value as a target time;
[0010] The data in the second data corresponding to the target time is used as the second target data, and the number of steps is calculated according to the second target data.
[0011] In one embodiment, the step of calculating the number of steps according to the second target data includes:
[0012] calculating the head rotation speed according to the second target data;
[0013] If it is detected that the head rotation speed is lower than a preset threshold, the peak value is used as a target peak value;
[0014] The number of target peaks is taken as the number of steps.
[0015] In one embodiment, the step of calculating the head rotation speed according to the second target data comprises:
[0016] Extracting the x-axis angular velocity, the y-axis angular velocity, and the z-axis angular velocity in the second target data;
[0017] The sum of the squares of the x-axis angular velocity, the y-axis angular velocity, and the z-axis angular velocity is calculated, and the arithmetic square root of the sum of the squares is used as the head rotation speed.
[0018] In one embodiment, the hearing aid further comprises a GNSS receiver, and the method further comprises:
[0019] Receiving positioning information via the GNSS receiver;
[0020] The step of calculating the number of steps according to the second target data comprises:
[0021] The number of steps is calculated based on the positioning information and the second target data.
[0022] In one embodiment, before the step of using the data corresponding to the z-axis in the first data as the first target data, the method further includes:
[0023] filtering the first data to obtain filtered first data;
[0024] The step of using the data corresponding to the z-axis in the first data as the first target data comprises:
[0025] Using the data corresponding to the z-axis in the filtered first data as the first target data;
[0026] Before the step of using the data in the second data corresponding to the target time as the second target data, the method further includes:
[0027] filtering the second data to obtain filtered second data;
[0028] The step of using the data in the second data corresponding to the target time as the second target data comprises:
[0029] The data corresponding to the target time in the filtered second data is used as the second target data.
[0030] In one embodiment, after the step of calculating the number of steps according to the second target data, the method further includes:
[0031] When it is detected that the number of steps reaches a preset step threshold, a voice prompt indicating that the number of steps has reached the standard is output;
[0032] A preset exercise strategy corresponding to the step count threshold is obtained, and the exercise strategy is output through voice.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a pedometer device for a hearing aid system, wherein the pedometer device for the hearing aid system is applied to a hearing aid, wherein the hearing aid comprises: a gyroscope and a three-axis accelerometer, and wherein the pedometer device for the hearing aid system comprises:
[0034] an acquisition module, configured to acquire first data through the three-axis accelerometer and acquire second data through the gyroscope, wherein the first data is data acquired by the three-axis accelerometer and the second data is data acquired by the gyroscope;
[0035] A data extraction module, used for taking the data corresponding to the z-axis in the first data as first target data;
[0036] A peak detection module, used to detect a peak value in the first target data, and use a collection time corresponding to the peak value as a target time;
[0037] The step counting module is used to use the data corresponding to the target time in the second data as the second target data, and calculate the number of steps according to the second target data.
[0038] In addition, to achieve the above objectives, the present application also proposes a hearing aid, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the pedometer method of the hearing aid system as described above.
[0039] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the pedometer method of the hearing aid system as described above are implemented.
[0040] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the pedometer method of the hearing aid system as described above are implemented.
[0041] In an embodiment of the present application, the first data is obtained by the three-axis accelerometer, and the second data is obtained by the gyroscope, wherein the first data is the data collected by the three-axis accelerometer, and the second data is the data collected by the gyroscope, and data for step counting can be obtained; then the data corresponding to the z-axis in the first data is used as the first target data, and the data of the Z-axis in the three-axis accelerometer can be used as the target data, so as to use the time point of the acceleration mutation in the Z-axis data as the time point when the user takes a step; the peak value in the first target data is detected, and the acquisition time corresponding to the peak value is used as the target time, so as to further determine the time when the user takes a step; then the data corresponding to the target time in the second data is used as the second target data, and the number of steps is calculated according to the second target data, and the steps determined based on the three-axis accelerometer can be auxiliary verified based on the data collected by the gyroscope, thereby filtering out the false steps caused by the shaking of the head. Thus, the present application improves the accuracy of the step counting function of the hearing aid. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0044] Figure 1 A flowchart of Embodiment 1 of the step counting method for a hearing aid system of the present application is provided;
[0045] Figure 2 A flowchart diagram of Embodiment 2 of the step counting method for a hearing aid system of the present application is provided;
[0046] Figure 3 A schematic diagram of a brief information output process provided in Embodiment 2 of the step counting method for a hearing aid system of the present application;
[0047] Figure 4 This is a schematic diagram of the module structure of a pedometer of a hearing aid system according to an embodiment of the present application;
[0048] Figure 5Schematic diagram of the device structure of the hardware operating environment involved in the step counting method of the hearing aid system in the embodiment of the present application.
[0049] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0051] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0052] Currently, with the rapid development of science and technology, hearing aids are no longer limited to improving the auditory experience of the hearing-impaired, but are gradually moving towards intelligence and multi-functions. In order to meet users' needs for health management and daily activity monitoring, many modern hearing aids have integrated pedometer modules to help wearers easily track their steps, thereby encouraging a more active lifestyle.
[0053] However, this design faces a significant challenge in practical application: since the hearing aid is worn directly on the head, the head will inevitably move during daily activities (such as walking, running, or slight body shaking). Although this natural head movement has limited impact on the hearing aid function, it greatly affects the data accuracy of the pedometer module. Because traditional pedometer algorithms rely on accurate analysis of acceleration changes in fixed parts (such as wrists, pockets, etc.), and the complex movement pattern of the head makes it difficult for this algorithm to accurately distinguish between true walking movements and simple head shaking.
[0054] Therefore, how to improve the accuracy of the pedometer function in hearing aids is a technical problem that needs to be solved by those skilled in the art.
[0055] In an embodiment of the present application, the first data is obtained by the three-axis accelerometer, and the second data is obtained by the gyroscope, wherein the first data is the data collected by the three-axis accelerometer, and the second data is the data collected by the gyroscope, and data for step counting can be obtained; then the data corresponding to the z-axis in the first data is used as the first target data, and the data of the Z-axis in the three-axis accelerometer can be used as the target data, so as to use the time point of the acceleration mutation in the Z-axis data as the time point when the user takes a step; the peak value in the first target data is detected, and the acquisition time corresponding to the peak value is used as the target time, so as to further determine the time when the user takes a step; then the data corresponding to the target time in the second data is used as the second target data, and the number of steps is calculated according to the second target data, and the steps determined based on the three-axis accelerometer can be auxiliary verified based on the data collected by the gyroscope, thereby filtering out the false steps caused by the shaking of the head. Thus, the present application improves the accuracy of the step counting function of the hearing aid.
[0056] It should be noted that the pedometer method of the hearing aid system of the present application is performed by the hearing aid. In the following embodiments, for the sake of convenience, the description of the performing body is omitted.
[0057] Based on this, the embodiment of the present application provides a step counting method for a hearing aid system, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the step counting method for the hearing aid system of the present application.
[0058] In this embodiment, the step counting method of the hearing aid system is applied to a hearing aid, and the hearing aid includes: a gyroscope and a three-axis accelerometer. The step counting method of the hearing aid system includes steps S10 to S40:
[0059] Step S10, acquiring first data through the three-axis accelerometer, and acquiring second data through the gyroscope, wherein the first data is data acquired by the three-axis accelerometer, and the second data is data acquired by the gyroscope;
[0060] It can be understood that in this embodiment, the gyroscope is used to verify the steps determined based on the three-axis accelerometer, so as to avoid the technical problem that the calculated number of steps is higher than the actual number of steps due to the shaking of the user's head, thereby improving the accuracy of the step count.
[0061] Step S20, taking the data corresponding to the z-axis in the first data as the first target data;
[0062] It is understandable that when the user wearing the hearing aid is in motion (such as running or walking), each time the user takes a step, the user's foot will touch the ground, causing a sudden change in the user's vertical acceleration, so that an obvious peak value will be recorded on the z-axis data of the three-axis accelerometer. Therefore, in this embodiment, only the data in the z-axis direction of the three-axis accelerometer needs to be obtained.
[0063] Step S30, detecting a peak value in the first target data, and taking a collection time corresponding to the peak value as a target time;
[0064] It can be understood that the peak value refers to the local maximum value in the target data. There are usually multiple peak values in the target data obtained within the preset time. When the target data is not verified by the data collected by the gyroscope, the number of peak values can be used as the number of steps. However, in the present embodiment, the three-axis accelerometer is arranged in the hearing aid, and the hearing aid is usually worn on the head, and the head will shake with the user's body movements, thereby causing the data collected by the three-axis accelerometer to have peak values even if the user does not exercise (does not walk or run), resulting in a high number of steps calculated only by the three-axis accelerometer. Therefore, in the present embodiment, after determining the peak value in the target data, it is also necessary to use the collection time corresponding to each peak value as the target time, so as to find the data corresponding to the target time in the data collected by the gyroscope based on the target time, and then further judge the number of steps of the user based on the data corresponding to the target time in the gyroscope.
[0065] Step S40: taking the data in the second data corresponding to the target time as the second target data, and calculating the number of steps according to the second target data.
[0066] It can be understood that after the user's steps are preliminarily identified based on the data collected by the three-axis accelerometer, the false steps caused by head shaking can be filtered out from the preliminarily identified steps based on the second target data. Thus, the present application can improve the accuracy of step counting in the hearing aid.
[0067] In an embodiment of the present application, the first data is obtained by the three-axis accelerometer, and the second data is obtained by the gyroscope, wherein the first data is the data collected by the three-axis accelerometer, and the second data is the data collected by the gyroscope, and data for step counting can be obtained; then the data corresponding to the z-axis in the first data is used as the first target data, and the data of the Z-axis in the three-axis accelerometer can be used as the target data, so as to use the time point of the acceleration mutation in the Z-axis data as the time point when the user takes a step; the peak value in the first target data is detected, and the acquisition time corresponding to the peak value is used as the target time, so as to further determine the time when the user takes a step; then the data corresponding to the target time in the second data is used as the second target data, and the number of steps is calculated according to the second target data, and the steps determined based on the three-axis accelerometer can be auxiliary verified based on the data collected by the gyroscope, thereby filtering out the false steps caused by the shaking of the head. Thus, the present application improves the accuracy of the step counting function of the hearing aid.
[0068] Furthermore, based on the above-mentioned first embodiment of the step counting method for the hearing aid system of the present application, a second embodiment of the step counting method for the hearing aid system of the present application is proposed.
[0069] Please refer to Figure 2 In this embodiment, the above step S40 includes:
[0070] Step S401, calculating the head rotation speed according to the second target data;
[0071] Step S402, if it is detected that the head rotation speed is lower than a preset threshold, the peak value is used as a target peak value;
[0072] It is understandable that when the user is exercising, the user's head will also shake a little, but the shaking during exercise will not be as violent as a sudden shake or nod of the head. The gyroscope records the rotation of the head. When the user is running normally, the rotation speed of the head is not high. Therefore, when the accelerometer detects a peak, if the gyroscope shows that the head rotation speed is low, this peak is regarded as a step. If the user shakes his head suddenly, an abnormal peak may also be recorded in the Z-axis data collected by the accelerometer, but at this time the gyroscope detects that the head rotation speed is very high, and this peak will be ignored in the step counting process and will not be counted as a step.
[0073] Step S403: taking the number of target peaks as the number of steps.
[0074] Therefore, the present application can determine multiple target peaks from multiple peaks based on the head rotation speed, and then, the number of target peaks can be used as the number of steps.
[0075] In a feasible implementation manner, the above step S401 includes:
[0076] Step S4011, extracting the x-axis angular velocity, the y-axis angular velocity and the z-axis angular velocity in the second target data;
[0077] Step S4012, calculating the square sum of the x-axis angular velocity, the y-axis angular velocity and the z-axis angular velocity, and taking the arithmetic square root of the square sum as the head rotation speed.
[0078] For example, when the x-axis angular velocity, the y-axis angular velocity, and the z-axis angular velocity are a, b, and c respectively, the head rotation speed v can be expressed as:
[0079]
[0080] In a feasible implementation manner, the hearing aid further includes a GNSS receiver, and the method further includes:
[0081] Step S50, receiving positioning information through the GNSS receiver;
[0082] It is understandable that if the user is in motion, the positioning information received by the GNSS receiver on the hearing aid will change. Correspondingly, if the user is at rest, the positioning information received by the GNSS receiver on the hearing aid will not change. Therefore, on the basis of calculating the number of steps based on the hearing aid, the accurate number of steps can be further calculated based on the positioning information.
[0083] Based on this, the above step S40 further includes:
[0084] Step S404: Calculate the number of steps according to the positioning information and the second target data.
[0085] For example, in this embodiment, only when the positioning information indicates that the user's position has changed, and there is a peak in the target data, and the second target data at the time corresponding to the peak indicates that the head rotation speed is lower than a preset threshold, will it be determined that the user's step count has changed, and then the user's step count will be counted. Otherwise, it is determined that the user's step count has not changed.
[0086] Therefore, the present application can further improve the accuracy of calculating the number of steps by integrating a GNSS receiver into the hearing aid.
[0087] In a feasible implementation manner, before the above step S20, the method further includes:
[0088] Step S60, filtering the first data to obtain filtered first data;
[0089] Based on this, the above step S20 also includes:
[0090] Step S201, taking the data corresponding to the z-axis in the filtered first data as the first target data;
[0091] Furthermore, before the above step S40, the method further includes:
[0092] Step S70, filtering the second data to obtain filtered second data;
[0093] Based on this, the above step S40 further includes:
[0094] Step S405: taking the data corresponding to the target time in the filtered second data as the second target data.
[0095] It is understandable that there is noise in the data collected by the gyroscope and the three-axis accelerometer, and the noise will affect the step count. Therefore, after obtaining the first data collected by the three-axis accelerometer and the second data collected by the gyroscope, when using the first data and the second data to count the number of steps, it is necessary to filter out the noise in the first data and the second data through a filter to improve the data quality used for counting the number of steps.
[0096] Please refer to Figure 3 In a feasible implementation manner, after the above step S40, the method further includes:
[0097] Step S80, when it is detected that the number of steps reaches a preset step threshold, outputting a step reaching threshold prompt voice;
[0098] Step S90, obtaining a preset exercise strategy corresponding to the step count threshold, and outputting the exercise strategy through voice.
[0099] It should be noted that the step count reminder voice is a voice preset in the hearing aid to remind the user to reach the step count target. The exercise strategy refers to the exercise plan after reaching the step count threshold. For example, the exercise strategy can be walking slowly, adjusting breathing, etc.
[0100] In this embodiment, different exercise strategies can be set for different step count thresholds. For example, for a step count threshold with a smaller value, the exercise strategy may be to adjust breathing to support continuous exercise; for a step count threshold with a larger value, the exercise strategy may be to walk slowly to maintain physical strength while exercising and improve the safety of exercise.
[0101] In this embodiment, the present application improves the user experience by outputting a voice prompt for reaching the step count target and outputting an exercise strategy.
[0102] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the step counting method of the hearing aid system of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0103] The present application also provides a pedometer for a hearing aid system, the pedometer for the hearing aid system is applied to a hearing aid, the hearing aid comprises: a gyroscope and a three-axis accelerometer, please refer to Figure 4 , the pedometer device of the hearing aid system comprises:
[0104] An acquisition module 10, configured to acquire first data through the three-axis accelerometer and acquire second data through the gyroscope, wherein the first data is data acquired by the three-axis accelerometer and the second data is data acquired by the gyroscope;
[0105] A data extraction module 20, configured to use the data corresponding to the z-axis in the first data as first target data;
[0106] A peak detection module 30, configured to detect a peak value in the first target data, and use a collection time corresponding to the peak value as a target time;
[0107] The step counting module 40 is used to use the data corresponding to the target time in the second data as the second target data, and calculate the number of steps according to the second target data.
[0108] In one embodiment, the step counting module 40 is further used for:
[0109] calculating the head rotation speed according to the second target data;
[0110] If it is detected that the head rotation speed is lower than a preset threshold, the peak value is used as a target peak value;
[0111] The number of target peaks is taken as the number of steps.
[0112] In one embodiment, the step counting module 40 is further used for:
[0113] Extracting the x-axis angular velocity, the y-axis angular velocity, and the z-axis angular velocity in the second target data;
[0114] The sum of the squares of the x-axis angular velocity, the y-axis angular velocity, and the z-axis angular velocity is calculated, and the arithmetic square root of the sum of the squares is used as the head rotation speed.
[0115] In one embodiment, the hearing aid further comprises a GNSS receiver, and the pedometer device of the hearing aid system further comprises:
[0116] A positioning information receiving module, used for receiving positioning information through the GNSS receiver;
[0117] Based on this, the step counting module 40 is also used for:
[0118] The number of steps is calculated based on the positioning information and the second target data.
[0119] In one embodiment, the pedometer device of the hearing aid system further comprises:
[0120] A first filtering module, used for filtering the first data to obtain filtered first data;
[0121] A second filtering module, used for filtering the second data to obtain filtered second data;
[0122] Based on this, the data extraction module 20 is also used to:
[0123] Using the data corresponding to the z-axis in the filtered first data as the first target data;
[0124] Based on this, the step counting module 40 is also used for:
[0125] The data corresponding to the target time in the filtered second data is used as the second target data.
[0126] In a feasible implementation manner, the pedometer device of the hearing aid system further includes:
[0127] A first output module is used to output a step reaching standard prompt voice when it is detected that the step number reaches a preset step number threshold;
[0128] The second output module is used to obtain a preset exercise strategy corresponding to the step count threshold and output the exercise strategy through voice.
[0129] The pedometer device of the hearing aid system provided in the present application adopts the pedometer method of the hearing aid system in the above embodiment, and can solve the technical problem of how to improve the accuracy of the pedometer function in the hearing aid. Compared with the prior art, the beneficial effects of the pedometer device of the hearing aid system provided in the present application are the same as the beneficial effects of the pedometer method of the hearing aid system provided in the above embodiment, and other technical features of the pedometer device of the hearing aid system are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0130] The present application provides a hearing aid, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the step counting method of the hearing aid system in the above-mentioned embodiment 1.
[0131] Reference below Figure 5 , which shows a structural schematic diagram of a hearing aid suitable for implementing an embodiment of the present application. Figure 5 The hearing aid shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0132] like Figure 5 As shown, the hearing aid may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read On ly Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the hearing aid are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the hearing aid to communicate with other devices wirelessly or by wire to exchange data. Although the figures show hearing aids with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0133] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0134] The hearing aid provided by the present application adopts the step counting method of the hearing aid system in the above embodiment, which can solve the technical problem of how to improve the accuracy of the step counting function in the hearing aid. Compared with the prior art, the beneficial effects of the hearing aid provided by the present application are the same as the beneficial effects of the step counting method of the hearing aid system provided by the above embodiment, and the other technical features in the hearing aid are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0135] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0136] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0137] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the step counting method of the hearing aid system in the above-mentioned embodiment.
[0138] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM: Erasable Programmab le Read On ly Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read On ly Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0139] The computer-readable storage medium may be included in the hearing aid, or may exist independently without being installed in the hearing aid.
[0140] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the hearing aid, the hearing aid: obtains first data through a three-axis accelerometer and obtains second data through a gyroscope, wherein the first data is the data collected by the three-axis accelerometer, and the second data is the data collected by the gyroscope; uses the data corresponding to the z-axis in the first data as the first target data; detects the peak value in the first target data, and uses the collection time corresponding to the peak value as the target time; uses the data corresponding to the target time in the second data as the second target data, and calculates the number of steps according to the second target data.
[0141] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0142] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0143] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0144] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the pedometer method of the above-mentioned hearing aid system, and can solve the technical problem of how to improve the accuracy of the pedometer function in the hearing aid. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the pedometer method of the hearing aid system provided in the above-mentioned embodiment, and will not be repeated here.
[0145] The present application also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of the pedometer method of the hearing aid system as described above are implemented.
[0146] The computer program product provided in this application can solve the technical problem of how to improve the accuracy of the step counting function in a hearing aid. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the step counting method of the hearing aid system provided in the above embodiment, which will not be described in detail here.
[0147] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A step counting method for a hearing aid system, characterized in that: The step counting method of the hearing aid system is applied to a hearing aid, wherein the hearing aid comprises: a gyroscope and a three-axis accelerometer, and the step counting method of the hearing aid system comprises: Acquire first data through the three-axis accelerometer, and acquire second data through the gyroscope, wherein the first data is data acquired by the three-axis accelerometer, and the second data is data acquired by the gyroscope; Using the data corresponding to the z-axis in the first data as the first target data; Detecting a peak value in the first target data, and using a collection time corresponding to the peak value as a target time; The data in the second data corresponding to the target time is used as the second target data, and the number of steps is calculated according to the second target data.
2. The step counting method of the hearing aid system according to claim 1, characterized in that: The step of calculating the number of steps according to the second target data comprises: calculating the head rotation speed according to the second target data; If it is detected that the head rotation speed is lower than a preset threshold, the peak value is used as a target peak value; The number of target peaks is taken as the number of steps.
3. The step counting method of the hearing aid system according to claim 2, characterized in that: The step of calculating the head rotation speed according to the second target data comprises: Extracting the x-axis angular velocity, the y-axis angular velocity, and the z-axis angular velocity in the second target data; The sum of the squares of the x-axis angular velocity, the y-axis angular velocity, and the z-axis angular velocity is calculated, and the arithmetic square root of the sum of the squares is used as the head rotation speed.
4. The step counting method of the hearing aid system according to claim 1, characterized in that: The hearing aid further comprises a GNSS receiver, and the method further comprises: Receiving positioning information via the GNSS receiver; The step of calculating the number of steps according to the second target data comprises: The number of steps is calculated based on the positioning information and the second target data.
5. The step counting method of the hearing aid system according to claim 1, characterized in that: Before the step of taking the data corresponding to the z-axis in the first data as the first target data, the method further includes: filtering the first data to obtain filtered first data; The step of using the data corresponding to the z-axis in the first data as the first target data comprises: Using the data corresponding to the z-axis in the filtered first data as the first target data; Before the step of using the data in the second data corresponding to the target time as the second target data, the method further includes: filtering the second data to obtain filtered second data; The step of using the data in the second data corresponding to the target time as the second target data comprises: The data corresponding to the target time in the filtered second data is used as the second target data.
6. The step counting method of the hearing aid system according to claim 1, characterized in that: After the step of calculating the number of steps according to the second target data, the method further includes: When it is detected that the number of steps reaches a preset step threshold, a voice prompt indicating that the number of steps has reached the standard is output; A preset exercise strategy corresponding to the step count threshold is obtained, and the exercise strategy is output through voice.
7. A pedometer device for a hearing aid system, characterized in that: The pedometer of the hearing aid system is applied to a hearing aid, and the hearing aid comprises: a gyroscope and a three-axis accelerometer. The pedometer of the hearing aid system comprises: an acquisition module, configured to acquire first data through the three-axis accelerometer and acquire second data through the gyroscope, wherein the first data is data acquired by the three-axis accelerometer and the second data is data acquired by the gyroscope; A data extraction module, used for taking the data corresponding to the z-axis in the first data as first target data; A peak detection module, used to detect a peak value in the first target data, and use a collection time corresponding to the peak value as a target time; The step counting module is used to use the data corresponding to the target time in the second data as the second target data, and calculate the number of steps according to the second target data.
8. A hearing aid, characterized in that: The hearing aid comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the step counting method for the hearing aid system according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the step counting method of the hearing aid system according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the step counting method of the hearing aid system according to any one of claims 1 to 6 are implemented.