Action counting method and device, equipment and storage medium
Patent Information
- Application Number
- CN202280090679.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-24
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-03-24
AI Technical Summary
The existing technology is difficult to count actions without established action rules, and the counting method relies on artificially set acceleration sensor signal characteristics, which cannot adapt to new action types and user-created actions, and cannot meet the needs when some hardware devices are missing. .
By using acceleration sensors in wearable devices, target motion feature information and current motion feature information are obtained, multi-scale transformation and peak screening strategies are used to extract motion features, and combined with confidence calculation and hierarchical matching strategies, the cumulative value of the number of actions is automatically determined, reducing Reliance on artificial rules.
It realizes action counting without established action rules, improves the flexibility and accuracy of action counting, is suitable for situations where hardware equipment is lacking, and adapts to different user behavior habits.
Smart Images

Figure CN118660739A
Abstract
Description
Action counting method, device, equipment and storage medium Technical Field
[0001] The embodiments of the present application relate to the field of smart terminal applications, for example, to an action counting method, apparatus, device, and storage medium. Background Art
[0002] With the increasing popularity of wearable devices, smartwatches and wristbands have become essential for many fitness and sports enthusiasts. Leveraging the rich array of sensors within smartwatches and wristbands to quantify a user's various behaviors and movements is a fundamental function of mainstream wearable devices. Quantification and statistical analysis of fitness and strength training are particularly popular among users. In addition to real-time monitoring of physiological indicators such as heart rate and calories burned during exercise, users also require assistance with features such as counting movements and action counts.
[0003] In the related art, there are many different methods and systems to help smart watch / bracelet users count fitness and strength training actions, but the methods have the following defects: First, the counting is only for a limited number of established action types, and it is impossible to count new action types or even user-created actions; second, the counting method strictly relies on certain characteristics of the acceleration sensor signal. Most of these characteristics are manually set based on a limited data set and are related to whether the action is executed in a standard manner. Different user behavior habits can easily introduce interference and cause the established rules to fail; third, the counting method requires the participation of multiple sensors and cannot meet the needs of devices that lack some hardware devices.
[0004] Summary of the Invention
[0005] Embodiments of the present application provide an action counting method, apparatus, device, and storage medium to solve the problem of how to count actions without established action rules.
[0006] In a first aspect, an embodiment of the present application provides an action counting method, which is applied to a wearable device, wherein the wearable device includes an acceleration sensor, and the method includes:
[0007] Obtain target motion feature information;
[0008] Determine the user's current motion characteristic information based on the current acceleration signal;
[0009] Based on the current motion feature information and the target motion feature information, a cumulative value of the user's action times is determined.
[0010] In a second aspect, an embodiment of the present application further provides an action counting device, comprising:
[0011] A target information acquisition module configured to acquire target motion feature information;
[0012] a current information determination module configured to determine the user's current motion characteristic information based on the current acceleration signal;
[0013] The action number determination module is configured to determine the cumulative value of the user's action number based on the current motion feature information and the target motion feature information.
[0014] In a third aspect, an embodiment of the present application further provides a wearable device, comprising: a memory and at least one processor;
[0015] The memory is configured to store at least one program;
[0016] When the at least one program is executed by the at least one processor, the at least one processor implements the action counting method as described in the first aspect above.
[0017] In a fourth aspect, an embodiment of the present application further provides a storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to perform the counting method of the actions described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] FIG1 is a schematic flow chart of an action counting method provided in Example 1 of the present application;
[0019] FIG2 is a flow chart of another method for counting actions provided in Example 2 of the present application;
[0020] FIG3 is an example diagram of a process for determining an approximate coding sequence according to an embodiment of the present application;
[0021] FIG4 is an example diagram of a sliding update provided in an embodiment of the present application;
[0022] FIG5 is an example diagram of determining an overlap ratio according to an embodiment of the present application;
[0023] FIG6 is a structural block diagram of an action counting device provided in Example 3 of the present application;
[0024] FIG7 is a structural block diagram of a wearable device provided in Example 4 of the present application. DETAILED DESCRIPTION
[0025] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Example 1
[0028] Figure 1 is a flow chart of an action counting method provided in Example 1 of the present application. This embodiment is applicable to situations where actions without established action rules are counted. The method can be executed by an action counting device, which can be composed of hardware and / or software and generally integrated into a wearable device, which includes an accelerometer. The following uses fitness movements as an example to illustrate the execution process of the action counting method.
[0029] It should be noted that in the related art, the method of counting fitness actions is usually to compare whether the characteristics of the fitness actions meet the set action rules, and to match the repeated actions to achieve the counting function of the fitness actions. Among them, the set action rules are often set by humans and are known for the action types in the related art, and the actions to be matched are obtained by calling the set action rules in the rule library. However, when counting new action types or even user-created actions, since there are no action rules corresponding to the action in the rule library, the feature information corresponding to the action to be matched is unknown, and the existing technology cannot match the action of this type and thus cannot achieve counting; in addition, whether the user action is executed in accordance with the standards or not, different user behavior habits are likely to introduce interference and cause the established action rules to fail. Considering that the counting methods in the related art are only for established limited types of action types, it is necessary to find an action counting method that is more suitable for the case where there are no established set action rules.
[0030] As shown in FIG1 , the first embodiment of the present application provides an action counting method, including the following operations:
[0031] S110: Obtain target motion feature information.
[0032] It should be noted that in the related art, when counting fitness actions, the user's motion data needs to be compared with the set action rules. If the motion data meets the set action rules, the fitness action can be counted and accumulated. If the motion data does not meet the set action rules, the fitness action will not be accumulated. The set action rules are known, and when making comparisons, the action to be matched can be obtained by retrieving the set action rules in the fitness action storage library. However, this technical solution is mainly aimed at the situation where there are no established set action rules. It can also be understood that the fitness action storage library does not store the action rules corresponding to the action to be matched, so it is necessary to obtain the feature information of the action to be matched in advance. Among them, the target motion feature information can be understood as a feature information set containing the action to be matched obtained through analysis and processing. After obtaining the target motion feature information, the user's motion data can be matched with the target motion feature information to determine the number of fitness actions.
[0033] In this embodiment, the method is applied to a wearable device, and the wearable device includes an acceleration sensor. The wearable device can be any device with corresponding functions, such as a smart watch, a smart bracelet, smart shoes, etc. When a user wants to count fitness movements through a wearable device, he or she can wear the wearable device, turn on the wearable device before starting exercise, and perform fitness movements. After the user performs the fitness movement, the wearable device can obtain the user's starting movement information, and the starting movement information can be a starting acceleration signal obtained by the acceleration sensor. After obtaining the starting acceleration signal, the starting acceleration signal can be transformed, the eigenvalues therein can be extracted, and the set of eigenvalues can be used as the target motion feature information. Exemplarily, the target motion feature information can be represented in the form of a vector set.
[0034] For example, this embodiment uses a three-axis acceleration signal as the raw data and applies a multi-scale transform to obtain multiple wavelet-transformed output signals at three axes and multiple scales. A peak screening strategy is then implemented to extract peaks from the output signal. A peak sequence at a specific scale and coordinate axis is selected according to a set rule to effectively extract the most critical and obvious motion interval segmentation points, i.e., peak position information. The peak position information obtained through screening is then incorporated into the current interval signal segmentation position sequence to achieve high-quality interval signal segmentation.
[0035] Secondly, the confidence level of the fused motion duration stability and motion morphology consistency is calculated for adjacent interval signals. The similarity and stability between two consecutive motion cycles (i.e., two adjacent interval signals) are quantified as a probabilistic model, reducing reliance on manually defined rules. Motion features are extracted from continuous, stable, high-confidence interval signals, considering both the absolute characteristics of the motion signal (i.e., the quantiles of the acceleration signal magnitude) and the relative characteristics of the motion signal (i.e., the fluctuation morphology of the acceleration signal).
[0036] Finally, based on the motion features extracted from the interval signals, key information about the most recent stable and repetitive movements is automatically obtained and stored as target motion feature information for subsequent matching. This determination of target motion feature information preserves the distinction between different movements without resorting to complex clustering operations. It should be noted that fitness movements typically have significant features along a specific coordinate axis. Therefore, when determining the target motion feature information, it is also possible to determine which coordinate axis's acceleration signal analysis is required to obtain the motion feature information for the user's fitness movement.
[0037] S120: Determine the user's current motion characteristic information according to the current acceleration signal.
[0038] This step is performed after step S110. When the user turns on the wearable device and continues to perform fitness exercises, motion data will be continuously generated and stored in a preset data buffer. The current acceleration signal within the sliding window is obtained from the data buffer. To remove noise interference, the current acceleration signal can be filtered. The current acceleration signal is processed to obtain current motion feature information representing the current action. Considering that fitness actions are counted by comparing the current motion feature information with the target motion feature information, the representation form of the current motion feature information should be consistent with the representation form of the target motion feature information. Determining the current motion feature information based on the current acceleration signal is the same as obtaining the target motion feature information. It should be noted that, as can be seen from step S110, while determining the target motion feature information, it is also possible to determine which coordinate axis's acceleration signal is analyzed to obtain the motion feature information of the user's fitness action. Therefore, this step can extract the acceleration signal of the corresponding coordinate axis from the current acceleration signal. Only the acceleration signal corresponding to a single axis needs to be processed to obtain the corresponding current motion feature information.
[0039] S130: Determine the cumulative number of user actions based on the current motion feature information and the target motion feature information.
[0040] In this embodiment, the target motion feature information obtained in step S110 is used as the feature information corresponding to the action to be matched. The current motion feature information obtained in step S120 is matched with the target motion feature information, and the cumulative number of fitness actions performed by the user is determined based on the matching results. If the current motion feature information matches the target motion feature information, indicating that the current action meets the fitness action standard, the number of fitness actions performed by the user is accumulated. If the current motion feature information does not match the target motion feature information, indicating that the current action does not meet the fitness action standard, the number of fitness actions performed by the user is not accumulated. To improve the accuracy of counting, this step adopts a hierarchical matching strategy, transforming the counting problem into a pattern matching problem. First, considering the macroscopic morphology and microscopic details of the action, the current motion feature information and the target motion feature information are split into two vectors. A relatively simple overlap area ratio calculation is performed based on the first vector of the current motion feature information and the first vector of the target motion feature information. Then, a cross-correlation coefficient is calculated based on the second vector of the current motion feature information and the second vector of the target motion feature information. Finally, a quantitative statistical analysis of the fitness action count is achieved in the form of probability. It should be noted that each level of matching in the hierarchical matching strategy has a sequence. Only when the current level meets the matching requirements will the next level of matching be performed. Otherwise, the number of actions will not be accumulated.
[0041] The embodiment of the present application discloses a method, apparatus, device and storage medium for counting actions, the method being applied to a wearable device, the wearable device including an acceleration sensor, the method comprising: obtaining target motion characteristic information; determining the current motion characteristic information of the user based on the current acceleration signal; and determining the cumulative value of the number of actions of the user based on the current motion characteristic information and the target motion characteristic information. Considering that the counting of actions in the related art is often for a limited number of established action types, it is impossible to count new action types or even user-created actions, and the counting method strictly relies on artificially set signal characteristics. Different user action standards or non-standards can easily introduce interference and cause the established rules to fail. To address this problem, the present technical solution does not impose constraints or assumptions on the execution of actions, but obtains target motion characteristic information representing the action by processing the received initial acceleration signal. After the target motion characteristic information is determined, the current motion characteristic information is matched with the target motion characteristic information to determine the cumulative value of the number of actions, thereby improving the flexibility of action counting.
[0042] Example 2
[0043] Figure 2 is a flow chart of another method for counting actions provided in Example 2 of the present application. This embodiment is applicable to counting actions without predefined action rules. The method can be performed by an action counting device, which can be composed of hardware and / or software and can generally be integrated into a wearable device, which includes an accelerometer.
[0044] As shown in FIG2 , another method for counting actions provided in the second embodiment of the present application includes the following operations:
[0045] S210 , performing multi-scale transformation analysis on the initial acceleration signal to determine a target peak position sequence.
[0046] In this embodiment, the wearable device includes a three-axis acceleration sensor. When the user turns on the wearable device and exercises, motion data is generated and stored in the data buffer. The starting acceleration signal is extracted from the data buffer in a sliding window manner. The starting acceleration signal can be understood as the data first generated by the user's exercise, or as the data first stored in the data buffer. The signal can be used as basic data for obtaining target motion feature information. In this embodiment, only the starting acceleration signals corresponding to the three axes are analyzed. In order to improve the counting detection rate of compound and complex actions, the repeatability of the action signals at different granularities is analyzed. Under the condition of only obtaining the starting acceleration signals of the three axes, multi-scale transformation is applied, and peak feature detection is performed on the transformed signals at different scales. By setting rules, the peak sequence under a certain scale and a certain coordinate axis corresponding to the maximum response is selected as the target peak position sequence.
[0047] For example, a multi-scale transform analysis is performed on the starting acceleration signals corresponding to the three axes. Multiple wavelet-transformed output signals are obtained across the three axes and at multiple scales. Peak extraction of these output signals and the implementation of the proposed peak screening strategy effectively extract the most critical and distinct motion interval segmentation points, i.e., the target peak position sequence. This step only requires convolution calculations at the specified scale, which, with limited computational complexity and storage overhead, can cover scenarios with the frequency of common strength training movements.
[0048] S220: Determine target motion feature information according to the target peak position sequence.
[0049] Based on the target peak position sequence, high-quality interval signal division is obtained; considering the similarity and stability of adjacent interval signals, the confidence of adjacent interval signals can be calculated; for continuous and stable high-confidence interval signals, motion features are extracted; when the confidence of a set number of consecutive interval signals is higher than a set value, the current motion features can be clustered to form target motion feature information.
[0050] It is clear that after executing steps S210 - S220 , based on the target motion feature information, the fitness action continued by the user can be matched with the target motion feature information to count the fitness actions.
[0051] S230 : Extracting a target acceleration signal of the target axis from the current acceleration signal.
[0052] The target axis is the coordinate axis associated with the target motion characteristic information. It should be noted that after determining the target motion characteristic information in step S220, the target axis associated with the target motion characteristic information is also determined. After the target axis is selected as the acceleration coordinate axis to be tracked, subsequent counting of fitness movements only requires motion data analysis on the selected target axis.
[0053] Exemplarily, after determining the target motion characteristic information, the current acceleration signal is acquired from the data buffer in a sliding window manner, and the acceleration signal corresponding to the target axis is extracted from the current acceleration signal as the target acceleration signal.
[0054] S240: Determine the user's current motion characteristic information based on the target acceleration signal.
[0055] It should be noted that the steps for determining the user's current motion characteristic information are the same as the steps for determining the target motion characteristic information. The only difference is that the target motion characteristic information is determined based on a three-axis acceleration signal, while the current motion characteristic information is determined based on a single target axis acceleration signal.
[0056] S250 , dividing the current motion feature information to obtain a first current motion feature vector and a second current motion feature vector.
[0057] In this step, both the macroscopic morphology and the microscopic details of the action are considered simultaneously, the overlapping area of the set score corresponding feature information corresponding to the current motion feature information and the target motion feature information is calculated, and the mutual correlation coefficient of the approximate coding sequence corresponding feature information corresponding to the current motion feature information and the target motion feature information is calculated.
[0058] Exemplarily, the current motion feature information includes feature information corresponding to the set score and feature information corresponding to the approximate coding sequence. The current motion feature information is divided, and the feature information corresponding to the set score is determined as the first current motion feature vector, and the feature information corresponding to the approximate coding sequence is determined as the second current motion feature vector. Exemplarily, the current motion feature information is represented as: {frc 90 ,frc 10 ,s 1, s 2, ,s 3, ,s4, ,s 5, ,s 6, ,s 7, ,s8}, after dividing it, the first current motion feature vector is determined to be {frc 90 ,frc 10}, determine the second current motion feature vector as {s 1, ,s 2, ,s 3, ,s 4, ,s 5, ,s 6, ,s 7, ,s8}.
[0059] S260 , dividing the target motion feature information to obtain a first target motion feature vector and a second target motion feature vector.
[0060] The target motion feature information includes feature information corresponding to a set score and feature information corresponding to an approximate coding sequence. The target motion feature information is divided, and the feature information corresponding to the set score is determined as a first target motion feature vector, and the feature information corresponding to the approximate coding sequence is determined as a second target motion feature vector. For example, the target motion feature information is represented as: After dividing it, the first target motion feature vector is determined to be Determine the second target motion feature vector as
[0061] S270: Determine a cumulative number of fitness actions of the user based on the first current motion feature vector, the second current motion feature vector, the first target motion feature vector, and the second target motion feature vector.
[0062] This step adopts a hierarchical matching strategy to convert the counting problem into a pattern matching problem. First, a relatively simple overlapping area ratio calculation is performed based on the first current motion feature vector and the first target motion feature vector; then, the mutual correlation coefficient of the approximate coding sequence is calculated based on the second current motion feature vector and the second target motion feature vector; finally, the action matching probability is obtained based on the fusion confidence (i.e., the confidence of the fusion action duration stability and action morphology consistency), the overlapping area ratio, and the mutual correlation coefficient, and the quantitative statistics of the fitness action count are realized in the form of probability. It can be seen that the overlapping area ratio and the mutual correlation coefficient are considered as the macroscopic morphology and microscopic detail factors of the action, respectively, and the matching results are output in the form of probability, which converts the counting problem into a pattern matching problem, realizes the statistics of the action count in the form of quantitative probability, and improves the accuracy of the counting.
[0063] As an optional embodiment of the present application, based on the above embodiment, the steps of performing multi-scale transformation analysis on the initial acceleration signal to determine the target peak position sequence are as follows:
[0064] S2101 : Based on the initial acceleration signal, determine that the initial acceleration signal corresponds to a plurality of wavelet sequences of set scales.
[0065] The acceleration signal corresponding to each axis in the filtered initial acceleration signal is subjected to a multi-scale transformation. The multi-scale transformation can adopt a wavelet transform with a wavelet basis of Haar (Harr) wavelet. The selection of the setting scale will affect the frequency distribution interval of daily strength training movements. In order to obtain a significant response output on the frequency of daily fitness movements to the greatest extent, the determination of the setting scale can be statistically obtained based on a real user data set of a certain size. Optionally, 5 scales corresponding to 0.4, 1.0, 1.5, 2.0, and 2.5 Hz are selected respectively, and a significant response output can be obtained on the frequency of daily fitness movements to the greatest extent. Exemplarily, the wavelet basis is determined to be Haar wavelet, the scale frequencies are 0.4, 1.0, 1.5, 2.0, and 2.5 Hz, and the sampling frequency is 25 Hz, i.e., the corresponding wavelet basis sequence can be obtained, and the lengths of the sequences are 25, 40, 60, 120, and 250, respectively. The three-axis acceleration signals are subjected to multi-scale transformations of the five scales mentioned above. The following uses the wavelet transform of the x-axis acceleration at the fourth scale as an example to illustrate how to obtain a quantized response output.
[0066] For example, in the x-axis acceleration signal sequence {x0, x1, x2, ..., x N} and the wavelet basis sequence on the fourth scale Perform convolution to obtain a sequence of wavelet transform with a length of max{N,M}. Since the sampling rate is 25Hz and the window length is 15 seconds, N=375, M=120, the final transformed wavelet sequence is {y0,y1,y2,…,y N}.
[0067] S2102 : Determine, based on the wavelet sequence, multiple peak position sequences and multiple peak height sequences corresponding to the initial acceleration signal.
[0068] In this step, the example of S2101 is continued to describe {y0, y1, y2, ..., y N} to extract the local maximum value, that is, to obtain the peak extraction of the sequence signal. The implementation of peak extraction needs to ensure that the signals on the left and right sides of the peak are smaller than the signal size of the peak point, and that the peaks meet certain constraints. This constraint relationship includes that the distance between adjacent peaks must not be greater than a certain larger value and must not be less than a certain smaller value, and the signal size of each candidate peak point should not be significantly less than the preset ratio of the median value of the signal size of all candidate peak points. After executing the above constraints on peak extraction, the sequence signal {y0,y1,y2,…,y N} of the peak position sequence {l0,l1,l2,…,l P} and the peak height sequence {v0,v1,v2,…,v P}.
[0069] S2103. Determine multiple overall response output values corresponding to the initial acceleration based on the multiple peak height sequences.
[0070] In this step, we continue to describe the example of S2102 and calculate the peak height sequence {v0, v1, v2, ..., v P}Calculate the median value as the axis input signal {x0,x1,x2,…,x N In this scale After wavelet transform analysis of {y0,y1,y2,…,y N}Response output Perform wavelet transform analysis on all five scales of the x-axis acceleration signal to obtain five response outputs: Find the peak position sequence corresponding to the largest response output Assume that the response output on the i-th scale is Max. Output the above 5 responses The mean of the total response output r as the x-axis x .
[0071] According to the above processing of the x-axis acceleration signal, the processing of the y-axis and z-axis is completed. At this time, the algorithm should at least save the peak position sequence corresponding to the three axes and the overall response output corresponding to the three axes {r x ,r y ,r z}.
[0072] S2104. Determine a target peak position sequence based on multiple overall response output values.
[0073] For example, select {r x ,r y ,r z The peak position sequence of the axis corresponding to the maximum value in} As the basis for the next step of interval signal division, it is assumed that the peak position sequence corresponding to the scale with the maximum response output on the axis with the maximum overall response output (ie, the target peak position sequence) occurs on the jth scale.
[0074] As an optional embodiment of the present application, based on the above embodiment, determining target motion feature information according to the target peak position sequence includes:
[0075] S2201. Generate multiple interval signal sets of the starting acceleration signal according to the target peak position sequence and a preset merging rule, where each interval signal set consists of two or more interval signals.
[0076] Exemplarily, continuing with the above example, it is assumed that the peak position sequence corresponding to the scale with the maximum response output on the axis with the largest overall response output occurs on the jth scale. The target peak position sequence obtained through screening in the above step S2104 is merged into the current interval signal division position sequence. The merging operation must comply with the following rules: the target peak position sequence to be merged and the current interval signal division position sequence perform a "set merge" operation to remove duplicates; the length of the merged interval signal division position sequence must be greater than or equal to 4; the merged interval signal division position sequence should tend to evenly divide the signal of the total length. That is, the three adjacent interval signals have respective lengths of l1, l2 and l3, and it should be ensured that l2 is not significantly smaller than l1 and l3. Optionally, the rule selected in this step is that l2 is greater than or equal to 1 / 2 of l1 and greater than or equal to 1 / 2 of l3.
[0077] After the above signal interval division, the interval signal set L of the three-axis acceleration signal can be determined x ,=L y and L z . With L x For example, L x Including multiple is Composition, of which and are two adjacent elements in the peak position sequence that have been screened and meet the constraint rules.
[0078] S2202 : Calculate first confidences of adjacent interval signals and second confidences of a set number of consecutive interval signals in each interval signal set.
[0079] Confidence is primarily used to measure the periodicity and stability of movement execution. Considering that during daily strength training, the speed of two consecutive movements in a single group is consistent, the first confidence level used to assess the stability of adjacent interval signals is based on the duration of adjacent interval signals. This first confidence level can be understood as a measure of the similarity and stability of adjacent interval signals.
[0080] When several adjacent interval signals have a high first confidence level, it indicates that these adjacent interval signals correspond to multiple repetitions of a certain action. Therefore, the sum of the first confidence levels of a set number of consecutive interval signals can be calculated as the second confidence level. When the second confidence level is above a set threshold, motion feature extraction and calculation can be performed based on the interval signal.
[0081] Optionally, respectively calculating the first confidence levels of adjacent interval signals in the interval signal set and the second confidence levels of a set number of consecutive interval signals includes:
[0082] a1) If the lengths of adjacent interval signals in the interval signal set are inconsistent, interpolation resampling is performed on the shorter interval signal to make the lengths of adjacent interval signals consistent.
[0083] Considering that during the execution of daily strength training, the speed of two adjacent movements in a single group is consistent, the confidence level used in this method to evaluate the stability of adjacent interval signals is based on the time length of adjacent interval signals. That is, assuming that the adjacent interval signal {X a ,X b}The duration is l a and l b ,ratio It should not be less than a certain threshold z1, and when this ratio is greater than a certain threshold z2, this ratio is forced to be modified to 1. This design ensures that when the execution cycles of two adjacent actions are not much different, the difference in time length does not affect the size of the confidence level. a ,X b}(Assuming duration l a <l b ), there are usually differences in signal length. This step uses interpolation resampling of the shorter signal length sequence to extend its length to be consistent with the longer length sequence. For example, for X a Interpolated resampled signal
[0084] b1) respectively determining the duration of adjacent interval signals in each interval signal set.
[0085] For example, it is assumed that the adjacent interval signal {X a ,X b}The duration is l a and l b .
[0086] c1) Determine the mutual correlation coefficient of adjacent interval signals in each interval signal set.
[0087] In the case of consistent length, the interpolated resampled signal With another signal X b Do the cross-correlation calculation and get the cross-correlation coefficient R ab When the correlation coefficient is less than 0.5, R ab It is forcibly modified to 0. The mutual correlation coefficient in this step is limited to 0.5 based on a large amount of real user data statistics. The data show that a mutual correlation coefficient less than 0.5 is considered to be not significantly related.
[0088] d1) Determining a first confidence level of adjacent interval signals and a second confidence level of a set number of consecutive interval signals based on the duration and mutual correlation coefficient of adjacent interval signals.
[0089] For example, the first confidence level P is determined by comprehensively considering the similarity and stability of signals in adjacent intervals. conf is defined as: Because interval signals are extracted after sliding windowing, a particular interval signal may be in the middle of the current sliding window and at the end of the previous sliding window. This results in the same interval signal having different confidence levels within different sliding windows. In this embodiment, confidence levels are primarily used to measure the periodicity and stability of action execution. Therefore, the interval signal with the highest confidence level to date is always selected as input for subsequent steps. The number of intervals can be set as needed; for example, a value of 4 can be used to indicate that the exercise was repeated four times.
[0090] S2203: When the first confidence level satisfies a first confidence level condition, determine the starting motion feature information corresponding to the starting acceleration signal.
[0091] The first confidence level can be understood as representing the similarity and stability of adjacent interval signals. The first confidence level condition can be that the confidence level is above a certain set threshold. When the first confidence level is above the set threshold, the starting motion feature information can be represented by the set quantile of each interval signal and the approximate coding sequence of the interval signal.
[0092] Optionally, determining the starting motion characteristic information corresponding to the starting acceleration signal includes:
[0093] a2) Equally divide the interval signal within the set quantile range to obtain a split point matching sequence.
[0094] It is clear that when several adjacent interval signals have a high first confidence level, it indicates that these adjacent interval signals correspond to multiple repetitions of a certain action. Motion feature extraction and calculation can then be performed on these adjacent interval signals. Optionally, the 10th percentile, 90th percentile, and approximate encoding sequence of each interval signal are calculated.
[0095] The implementation method of the approximate coding sequence of the interval signal is to divide the interval signal into equal parts within the set quantile range. For example, the range corresponding to the 90th quantile and the 10th quantile of the interval signal is divided into 6 parts, and the 90th quantile, the 10th quantile and the 5 middle dividing points are used as the signal fluctuation range dividing points to form an interval sequence {g0, g1, ..., g7} with a length of 8. The interval signal is divided into 8 segments in the time dimension, and the mean value of each segment signal is used as a benchmark to find the nearest point that can fall in the interval {g0, g1, ..., g7}, thus completing the segmentation point matching of all 8 segments of the signal. For example, error! Reference source not found. An example diagram of the segmentation point matching sequence determination process provided in the embodiment of the present application. The segmentation point matching sequence is {g4, g2, g1, g4, g7, g6, g5, g5}.
[0096] b2) Determine an approximate encoding sequence based on the segmentation point matching sequence.
[0097] Exemplarily, the segmentation point indexes of the segmentation point matching sequence are saved as the approximate encoding sequence. Exemplarily, continuing with the above example, assuming that the segmentation point matching sequence is {g4, g2, g1, g4, g7, g6, g5, g5}, the segmentation point indexes of the segmentation point matching sequence {4, 2, 1, 4, 7, 6, 5, 5} are saved as the approximate encoding sequence.
[0098] In this step, the approximate coding sequence of the interval signal describes the morphological characteristics of the signal fluctuation with as few and simple features as possible without considering the absolute size and speed of the signal. From the perspective of engineering implementation, it also greatly reduces the storage overhead and reduces the complexity of calculation matching.
[0099] c2) determining starting motion feature information corresponding to the starting acceleration signal based on the set quantile and the approximate coding sequence.
[0100] In this step, setting the quantile and approximate code sequence allows for a specific description of the motion based on the absolute magnitude and fluctuation pattern of the interval signal. Therefore, the set quantile and approximate code sequence are used to determine the starting motion characteristic information corresponding to the starting acceleration signal. For example, the 90th percentile, 10th percentile, and approximate code sequence from the above steps are combined to determine the starting motion characteristic information corresponding to the starting acceleration signal.
[0101] S2204: When the second confidence level satisfies the second confidence level condition, determine the target motion feature information and the target axis according to the starting motion feature information.
[0102] The target motion feature information in this step is achieved by clustering the motion features extracted from the interval signal. Key information about recent stable and repetitive movements is automatically obtained and stored as target motion feature information for subsequent matching. This determination of target motion feature information preserves the distinction between different movements without resorting to complex clustering operations. The second confidence level condition can be set to be greater than a set threshold.
[0103] For example, assuming that the number of consecutive settings is set to 4, the second confidence condition is greater than 3.8, if and only if the confidence of the signals of the four consecutive intervals is greater than 3.8. If the sum is greater than 3.8, the current motion feature vector is clustered to form target motion feature information for action matching in subsequent steps.
[0104] Optionally, determining target motion feature information and a target axis based on the starting motion feature information includes:
[0105] a3) Determine the starting motion characteristic parameters of the signals of the set number of intervals continuously according to the starting motion characteristic information.
[0106] The starting motion characteristic parameters can be understood as the mean and variance corresponding to the starting motion characteristic information. Continuing with the example of step S2204, for the four interval signals that meet the requirements, the corresponding motion characteristic vectors {frc 90 ,frc 10 ,s 1, s 2, ,s 3, ,s 4, ,s 5, ,s 6, ,s 7, ,s8}, namely 90th percentile, 10th percentile and approximate coding sequence (s i Corresponding to one of {g0,g1,…,g7}), calculate the corresponding mean and variance.
[0107] b3) If the starting motion feature parameters meet the set conditions, the starting motion feature information is clustered to obtain the target motion feature information and the target axis.
[0108] Exemplarily, the determination of whether the starting motion characteristic parameters meet a set condition is performed. Optionally, the set condition can be set to whether the starting motion characteristic information falls within a 95% high probability range centered on the mean and referenced by three times the standard deviation. Only when the motion characteristics of the four interval signals all fall within this high probability range are the target motion characteristic information for the action formed, and the currently used coordinate axis is marked as the target axis for subsequent motion matching tracking, thereby determining which of the x, y, and z axes the subsequent strength training count will track.
[0109] At this point, the 90th percentile, 10th percentile, and the mean corresponding to the approximate coding sequence are saved to form a 10-dimensional vector. This vector is stored as the target motion feature vector fvfingerprint corresponding to the current continuous, stable, and repeated action at least 4 times. The target motion feature vector can be expressed as:
[0110] Optionally, it should be noted that before performing multi-scale transformation analysis on the starting acceleration signal, the starting acceleration signal within the starting sliding window may be obtained from a preset data buffer area, and the starting acceleration signal may be filtered.
[0111] Among them, the preset buffer area can be understood as being used to store the motion data generated when the user exercises. Taking into account the wide application of the technical solution provided by this embodiment, this method can be applied to wearable devices with limited storage and computing speeds (such as smart watches / bracelets). Since the sampling rate of the original acceleration signal will affect whether the key information of common fast / slow strength training movements can be truly restored, this embodiment needs to set a reasonable sampling rate of the acceleration signal while taking into account power consumption and performance. Optionally, based on statistics on a real user data set of a certain scale, the sampling rate of the acceleration signal can be 25Hz, that is, 25 acceleration x-axis sampling values, 25 acceleration y-axis sampling values, and 25 z-axis sampling values are obtained per second.
[0112] It is important to know that the starting acceleration signal can be obtained from the data buffer in the form of data windowing. Taking into account the duration of a single group of single actions in daily strength training movements and the number of times a certain action may be repeated in a single group of training, the size of the data window for the starting acceleration signal will affect whether sufficient and continuous action information can be observed within the window. Therefore, the size of the data window length is very important. Optionally, based on statistics on a real user data set of a certain size, the data window length can be determined to be 15 seconds, that is, the three-axis starting acceleration signal is cached, and the cache length corresponds to a continuous action duration of 15 seconds. In addition, due to the introduction of data windowing, in order to ensure that the complete action signal is observed as much as possible within a single window, a reasonable sliding update rule needs to be adopted. Optionally, a 1 / 2 sliding update rule can be adopted. Figure 4 is an example diagram of sliding updates provided in an embodiment of the present application. As shown in Figure 4, the sliding windows are t1, t2 and t3, respectively.
[0113] Under the condition that sufficient original acceleration signals are obtained to fill the data window size, the three-axis original acceleration signals need to be filtered to avoid interference caused by signal measurement noise and motion jitter. Optionally, the three-axis original acceleration signals are low-pass filtered with a cutoff frequency greater than or equal to 2.5Hz to remove interference caused by signal measurement noise and motion jitter. The selection of low-pass filtering method will affect the speed of filter convergence, signal waveform distortion and storage and computing overhead. A Butterworth low-pass filter of order 2 can be selected, and the first 8 filtered data are discarded during the filtering process to shield the miscount caused by signal waveform jitter during the filter convergence process.
[0114] Optionally, determining a cumulative value of the number of user actions based on the first current motion feature vector, the second current motion feature vector, the first target motion feature vector, and the second target motion feature vector includes:
[0115] a) determining an overlap ratio based on the first current motion feature vector and the first target motion feature vector.
[0116] Exemplarily, the first current motion feature vector and the first target motion feature vector are checked for overlapping area to determine the overlapping ratio P between the two. overlap FIG5 is an example diagram of determining an overlap ratio according to an embodiment of the present application.
[0117] b) Determine whether the overlap ratio is less than a first set threshold. If the overlap ratio is greater than or equal to the first set threshold, execute step c); if the overlap ratio is less than the first set threshold, execute step h).
[0118] The first threshold can be statistically derived from a real user dataset of a certain size, or can be set by the device developer. The overlap ratio is compared with the first threshold. If the overlap ratio is less than the first threshold, indicating a mismatch between the current motion feature information and the target motion feature information, the cumulative number of user fitness movements remains unchanged. If the overlap ratio is greater than or equal to the first threshold, the correlation coefficient between the second current motion feature vector and the second target motion feature vector can be further determined.
[0119] c) determining a mutual correlation coefficient based on the second current motion feature vector and the second target motion feature vector.
[0120] This step is performed after determining that the overlap ratio is greater than or equal to the first set threshold, performing a cross-correlation operation on the second current motion feature vector and the second target motion feature vector to calculate the cross-correlation coefficient R s .
[0121] d) Determine whether the mutual correlation coefficient is less than a second set threshold. If the mutual correlation coefficient is greater than or equal to the second set threshold, execute step e); if the mutual correlation coefficient is less than the second set threshold, execute step h).
[0122] The second threshold value can be statistically derived from a real user dataset of a certain size, or can be set by the device developer. The cross-correlation coefficient is compared with the second threshold value. If the cross-correlation coefficient is less than the second threshold value, indicating a mismatch between the current motion feature information and the target motion feature information, the cumulative number of user fitness movements remains unchanged. If the cross-correlation coefficient is greater than or equal to the second threshold value, an estimated probability can be further determined based on the confidence level, overlap ratio, and cross-correlation coefficient.
[0123] e) Determine the estimated probability based on the confidence level, overlap ratio, and cross-correlation coefficient, where the confidence level is determined by the adjacent interval signals.
[0124] This step is performed after determining that the overlap ratio is greater than or equal to the first set threshold and the cross-correlation coefficient is greater than or equal to the second set threshold. For the interval signal that meets the above threshold judgment, it can be preliminarily considered that it may match the target action feature information. It should be noted that for the interval signal that meets the above threshold judgment, it is also necessary to calculate the estimated probability. The estimated probability is the corresponding confidence level P in step d1). conf The overlap ratio P calculated above overlap and the mutual correlation coefficient R s The estimated probability can be expressed as: P estimate =P conf ·P overlap ·R sIt should be noted that the confidence in step e) has the same meaning as the fusion confidence and the first confidence mentioned above.
[0125] f) Determine whether the estimated probability is greater than a third set threshold, and if so, execute step g); if so, execute step h).
[0126] If and only if the estimated probability is greater than a third set threshold, it is determined that the action corresponding to the interval signal matches the most recently saved target motion feature information.
[0127] g) The cumulative value of the number of actions of the control user is increased by 1 as the new cumulative value of the number of actions.
[0128] When the action corresponding to the interval signal matches the most recently saved target motion feature information, the cumulative value of the number of actions of the user's fitness is controlled to be increased by 1 as a new cumulative value of the number of actions.
[0129] h) The cumulative value of the number of user actions remains unchanged.
[0130] When the action corresponding to the interval signal does not match the most recently saved target motion feature information, the cumulative value of the user's fitness action remains unchanged, and no new target motion feature information is generated for the mismatched action. It should be noted that each time the user turns on the wearable device, the corresponding target motion feature information is generated using this technical solution. Alternatively, it can be understood that only one type of target motion feature information is generated each time the wearable device is turned on. For greater clarity, let's use a specific application scenario as an example. For example, User A arrives at the gym and wants to perform a self-created exercise. After turning on their wearable device, User A begins exercising. The wearable device, using the received user motion information and the technical means provided by this solution, generates target motion feature information and counts fitness actions. During this time, User A walks to the rest room to rest, then returns to the exercise area to continue exercising, and then turns off the wearable device when finished. From the time the wearable device is turned on to the time it is turned off, only one target motion feature information is generated. The walking action to the rest room does not match the target motion feature information, so the number of fitness actions for the walking action is not accumulated, and no new target motion feature information is generated based on the walking action.
[0131] Optionally, after determining the cumulative value of the user's action times, it also includes: if the counting loop end condition is not currently met, the acceleration signal of the next sliding window is used as the current acceleration signal, and the operation of determining the user's current motion feature information based on the current acceleration signal is returned to be re-executed; when the counting loop end condition is currently met, the cumulative value of the action times is used as the counting result of the action for feedback.
[0132] Among them, the counting cycle termination condition is: the acceleration signal is not obtained within the set time; or the cumulative value of the number of actions has not changed for a set number of consecutive times (that is, the number of consecutive times the acceleration signal of the next window is obtained in the form of a sliding window reaches a set number). In this embodiment, the set time can be set by the user. If the acceleration signal is not obtained within the set time, it can be understood that the user stops exercising within the set time and no new acceleration signal is generated. It can also be understood that there is no new motion data in the data buffer area for the wearable device to analyze within the set time, and the counting can be terminated. The set number of times can be set by the user. If the cumulative value of the number of actions has not changed for a set number of consecutive times, it can be understood that the user no longer performs the fitness exercise, but performs other actions or stops the exercise, that is, the cumulative value of the number of actions has not changed for a set number of consecutive times, and the counting can be terminated. After the counting is terminated, the cumulative value of the number of actions needs to be fed back as the counting result of the fitness exercise. For example, it can be presented on the wearable device in the form of a digital display or voice broadcast.
[0133] For example, if the counting loop termination condition is not currently met, data in the buffer area is continuously acquired, and the acceleration signal of the next window is acquired in the form of a sliding window as the current acceleration signal. The process then returns to determine the user's current motion feature information based on the current acceleration signal, matches the current motion feature information with the acquired target motion feature information, and performs counting statistics. It is clear that if the counting loop termination condition is not currently met, the acceleration signal of the next sliding window is acquired to proceed to the subsequent steps, and the process is repeated in this cycle.
[0134] The embodiment of the present application refines the process of determining target motion feature information, extracts the starting acceleration signal from the data buffer in a sliding window manner and performs filtering processing; performs multi-scale transformation analysis only on the three-axis acceleration signal, effectively extracts the most critical and obvious motion interval segmentation points, that is, peak position information, and obtains high-quality interval signal division; performs confidence calculation on the stability of the fusion action duration and the consistency of the action shape of adjacent interval signals, quantifies the similarity and stability of the two previous and subsequent action cycles into a probabilistic model, and reduces dependence on manually set rules; when extracting motion features, both the absolute characteristics of the motion signal, that is, the quantile of the acceleration signal size, and the relative characteristics of the motion signal, that is, the description of the fluctuation shape of the acceleration signal are considered. Without significantly increasing the computational complexity and storage overhead, it is suitable for resource-constrained devices such as smart watches / bracelets; automatically obtains key information of the most recent stable and repetitive action, stores it as target motion feature information for subsequent matching, and retains the distinction between different actions without using complex clustering operations.
[0135] Furthermore, after determining the target motion feature information, only the feature information corresponding to the target axis is considered during action matching, which improves computational efficiency and saves space. Furthermore, a hierarchical matching strategy is employed, moving from the relatively simple calculation of overlapping area ratios to the calculation of cross-correlation coefficients of approximate coding sequences. This strategy integrates confidence, macroscopic motion morphology, and microscopic motion details to derive the probability of action matching (i.e., estimated probability), achieving quantitative statistics of strength training counts in a probabilistic manner.
[0136] Example 3
[0137] Figure 6 is a structural block diagram of an action counting device provided in Example 3 of the present application. The device can be applied to wearable devices. As shown in Figure 6, the device includes: a target information acquisition module 31, a current information determination module 32 and an action number determination module 33.
[0138] A target information acquisition module 31 is configured to acquire target motion feature information;
[0139] A current information determination module 32 is configured to determine the user's current motion characteristic information based on the current acceleration signal;
[0140] The action times determination module 33 is configured to determine the cumulative value of the user's action times based on the current motion feature information and the target motion feature information.
[0141] Optionally, the target information acquisition module 31 may include:
[0142] a target sequence determination unit configured to perform a multi-scale transformation analysis on the initial acceleration signal to determine a target peak position sequence;
[0143] The target information determination unit is configured to determine target motion feature information based on a target peak position sequence.
[0144] Optionally, the target sequence determination unit is configured as:
[0145] Based on the initial acceleration signal, determining a plurality of wavelet sequences of set scales corresponding to the initial acceleration signal;
[0146] Determining, based on the wavelet sequence, a plurality of peak position sequences and a plurality of peak height sequences corresponding to the initial acceleration signal;
[0147] determining a plurality of overall response output values corresponding to the initial acceleration based on the plurality of peak height sequences;
[0148] A target peak position sequence is determined based on the plurality of overall response output values.
[0149] Optionally, the target information determination unit is configured to:
[0150] According to the target peak position sequence and in combination with the preset merging rules, multiple interval signal sets of the starting acceleration signal are generated, each interval signal set consisting of two or more interval signals;
[0151] Calculating first confidence levels of adjacent interval signals and second confidence levels of a set number of consecutive interval signals in each interval signal set respectively;
[0152] When the first confidence level satisfies a first confidence level condition, determining starting motion feature information corresponding to the starting acceleration signal;
[0153] When the second confidence level satisfies the second confidence level condition, the target motion feature information and the target axis are determined according to the initial motion feature information.
[0154] Optionally, the step of the target information determination unit being configured to respectively calculate the first confidence level of each adjacent interval signal in the interval signal set and the second confidence level of a set number of consecutive interval signals may include:
[0155] If the lengths of adjacent interval signals in the interval signal set are inconsistent, the shorter interval signal is interpolated and resampled to make the lengths of adjacent interval signals consistent;
[0156] respectively determining the duration of adjacent interval signals in each interval signal set;
[0157] Determine the autocorrelation coefficient of adjacent interval signals in each interval signal set;
[0158] Based on the duration of the adjacent interval signals and the autocorrelation coefficient, a first confidence level of the adjacent interval signals and a second confidence level of the consecutive set number of interval signals are determined.
[0159] Optionally, the step in which the target information determining unit is configured to determine the starting motion characteristic information corresponding to the starting acceleration signal may include:
[0160] Perform equal division processing on the interval signal within the set quantile range to obtain the split point matching sequence;
[0161] Based on the segmentation point matching sequence, an approximate coding sequence is determined;
[0162] According to the set quantile and the approximate coding sequence, the starting motion feature information corresponding to the starting acceleration signal is determined.
[0163] Optionally, the target information determining unit is configured to determine the target motion feature information and the target axis according to the starting motion feature information, and the step may include:
[0164] Determining starting motion characteristic parameters of a set number of consecutive interval signals according to the starting motion characteristic information;
[0165] If the starting motion feature parameters meet the set conditions, the starting motion feature information is clustered to obtain the target motion feature information and the target axis.
[0166] Optionally, the current information determination module 32 may include:
[0167] a target acceleration signal determining unit configured to extract a target acceleration signal of a target axis from the current acceleration signal, wherein the target axis is a coordinate axis associated with the target motion characteristic information;
[0168] The current motion feature information determining unit is configured to determine the user's current motion feature information based on the target acceleration signal.
[0169] Optionally, the action number determination module 33 is configured as follows:
[0170] Dividing the current motion feature information to obtain a first current motion feature vector and a second current motion feature vector;
[0171] Dividing the target motion feature information to obtain a first target motion feature vector and a second target motion feature vector;
[0172] The cumulative value of the number of actions of the user is determined according to the first current motion feature vector, the second current motion feature vector, the first target motion feature vector, and the second target motion feature vector.
[0173] Optionally, the action count determination module 33 is configured to determine the cumulative value of the user's action count based on the first current motion feature vector, the second current motion feature vector, the first target motion feature vector, and the second target motion feature vector, including:
[0174] a) determining an overlap ratio based on the first current motion feature vector and the first target motion feature vector.
[0175] b) determining whether the overlap ratio is less than a first set threshold, and in response to the overlap ratio being greater than or equal to the first set threshold, executing step c); and in response to the overlap ratio being less than the first set threshold, executing step h).
[0176] c) determining a mutual correlation coefficient based on the second current motion feature vector and the second target motion feature vector.
[0177] d) determining whether the mutual correlation coefficient is less than a second set threshold; in response to the mutual correlation coefficient being greater than or equal to the second set threshold, executing step e); in response to the mutual correlation coefficient being less than the second set threshold, executing step h).
[0178] e) determining an estimated probability according to a confidence level, the overlap ratio, and the cross-correlation coefficient, wherein the confidence level is determined by adjacent interval signals.
[0179] f) determining whether the estimated probability is greater than a third set threshold, and in response to the estimated probability being greater than the third set threshold, executing step g); and in response to the estimated probability being less than or equal to the third set threshold, executing step h).
[0180] g) Control the cumulative value of the number of fitness actions of the user to be increased by 1 as the new cumulative value of the number of actions.
[0181] h) Control the cumulative number of user's fitness movements to remain unchanged.
[0182] Optionally, the device further comprises a circulation module:
[0183] The loop module is configured to use the acceleration signal of the next sliding window as the current acceleration signal if the counting loop end condition is not currently met, and return to re-execute the operation of determining the user's current motion feature information based on the current acceleration signal; if the counting loop end condition is currently met, the accumulated value of the number of actions is fed back as the counting result of the action.
[0184] Optionally, the counting cycle end condition is: the acceleration signal is not acquired within a set time; or the cumulative value of the number of actions does not change for a set number of consecutive times.
[0185] The above device can execute the counting method of actions provided in all the above embodiments of this application, and has the corresponding functional modules for executing the above methods. For technical details not fully described in this embodiment, please refer to the methods provided in all the above embodiments of this application.
[0186] Example 4
[0187] Figure 7 is a structural block diagram of a wearable device provided in Example 4 of the present application. As shown in Figure 7, the wearable device includes a processor 41, a memory 42, an input device 43 and an output device 44; the number of processors 41 in the computer device can be at least one, and Figure 7 takes one processor 41 as an example; the processor 41, memory 42, input device 43 and output device 44 in the wearable device can be connected via a bus or other means, and Figure 7 takes the connection via a bus as an example.
[0188] The memory 42, as a computer-readable storage medium, can be configured to store software programs, computer-executable programs, and modules, such as the modules corresponding to the action counting method in the embodiments of the present application (for example, the target information acquisition module 31, the current information determination module 32, and the action count determination module 33 in the action counting device). The processor 41 executes the software programs, instructions, and modules stored in the memory 42 to execute various functional applications and data processing of the computer device, that is, to implement the above-mentioned action counting method.
[0189] The memory 42 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function; the data storage area may store data generated based on the use of the terminal. Furthermore, the memory 42 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state memory device. In some instances, the memory 42 may include memory remotely located relative to the processor 41, and such remote memory may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0190] The input device 43 may be configured to receive input digital or character information and generate key signal input related to user settings and function control of the computer device. The output device 44 may include a display device such as a display screen.
[0191] Example 5
[0192] The fifth embodiment of the present application further provides a storage medium containing computer-executable instructions. When the computer-executable instructions are executed by a computer processor, the computer-executable instructions are used to perform an action counting method. The method includes:
[0193] Obtain target motion feature information;
[0194] Determine the user's current motion characteristic information based on the current acceleration signal;
[0195] Based on the current motion feature information and the target motion feature information, a cumulative value of the user's action times is determined.
[0196] Of course, the storage medium containing computer-executable instructions provided in an embodiment of the present application is not limited to the method operations described above, and can also execute related operations in the action counting method provided in any embodiment of the present application.
[0197] Through the above description of the implementation methods, those skilled in the art can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course can also be implemented by hardware. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, which can be a non-transitory storage medium, such as a computer's floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0198] It is worth noting that in the embodiment of the counting device for the above-mentioned actions, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the names of the various functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.
Claims
1. A motion counting method, applied to a wearable device, wherein the wearable device includes an acceleration sensor, comprising: Obtain target motion feature information; Determine the user's current motion characteristic information based on the current acceleration signal; Based on the current motion feature information and the target motion feature information, a cumulative value of the user's action times is determined.
2. The method according to claim 1, wherein The acquiring target motion feature information includes: Perform multi-scale transformation analysis on the initial acceleration signal to determine the target peak position sequence; Target motion feature information is determined based on the target peak position sequence.
3. The method according to claim 2, wherein: The performing multi-scale transformation analysis on the initial acceleration signal to determine the target peak position sequence includes: Based on the initial acceleration signal, determining that the initial acceleration signal corresponds to a plurality of wavelet sequences of set scales; Determining, based on the wavelet sequence, a plurality of peak position sequences and a plurality of peak height sequences corresponding to the initial acceleration signal; determining a plurality of overall response output values corresponding to the initial acceleration based on the plurality of peak height sequences; A target peak position sequence is determined based on the plurality of overall response output values.
4. The method according to claim 2, wherein: Determining target motion feature information according to the target peak position sequence includes: According to the target peak position sequence and in combination with a preset merging rule, a plurality of interval signal sets of the starting acceleration signal are generated, each of the interval signal sets consisting of two or more interval signals; respectively calculating first confidences of adjacent interval signals in each interval signal set and second confidences of a set number of consecutive interval signals; In response to the first confidence level satisfying a first confidence level condition, determining starting motion feature information corresponding to the starting acceleration signal; In response to the second confidence level satisfying a second confidence level condition, the target motion feature information and the target axis are determined based on the initial motion feature information.
5. The method according to claim 4, wherein The respectively calculating the first confidence levels of adjacent interval signals in each interval signal set and the second confidence levels of a set number of interval signals in succession comprises: In response to inconsistency in lengths of adjacent interval signals in the interval signal set, interpolating and resampling shorter interval signals therein to make the lengths of adjacent interval signals consistent; respectively determining durations of adjacent interval signals in each interval signal set; determining a mutual correlation coefficient between adjacent interval signals in each interval signal set; Based on the duration of the adjacent interval signals and the mutual correlation coefficient, a first confidence level of the adjacent interval signals and a second confidence level of a set number of consecutive interval signals are determined.
6. The method according to claim 4, wherein: The determining of the starting motion characteristic information corresponding to the starting acceleration signal includes: Performing equal division processing on the interval signal within the set quantile range to obtain a segmentation point matching sequence; Determining an approximate coding sequence based on the segmentation point matching sequence; The starting motion feature information corresponding to the starting acceleration signal is determined according to the set quantile and the approximate coding sequence.
7. The method according to claim 4, wherein: The step of determining the target motion characteristic information and the target axis according to the starting motion characteristic information includes: Determining starting motion characteristic parameters of a set number of consecutive interval signals according to the starting motion characteristic information; In response to the starting motion feature parameters satisfying a set condition, the starting motion feature information is clustered to obtain target motion feature information and a target axis.
8. The method according to claim 1, wherein The determining, based on the current acceleration signal, current motion characteristic information of the user includes: Extracting a target acceleration signal of a target axis from the current acceleration signal, wherein the target axis is a coordinate axis associated with the target motion characteristic information; Based on the target acceleration signal, current motion feature information of the user is determined.
9. The method according to claim 1, wherein The determining, based on the current motion feature information and the target motion feature information, a cumulative value of the number of user actions includes: Dividing the current motion feature information to obtain a first current motion feature vector and a second current motion feature vector; Dividing the target motion feature information to obtain a first target motion feature vector and a second target motion feature vector; The cumulative value of the user's action times is determined according to the first current motion feature vector, the second current motion feature vector, the first target motion feature vector, and the second target motion feature vector.
10. The method according to claim 9, wherein: The determining the cumulative value of the number of actions of the user according to the first current motion feature vector, the second current motion feature vector, the first target motion feature vector, and the second target motion feature vector includes: determining an overlap ratio based on the first current motion feature vector and the first target motion feature vector; determining whether the overlap ratio is less than a first set threshold, and in response to the overlap ratio being greater than or equal to the first set threshold, determining a correlation coefficient based on the second current motion feature vector and the second target motion feature vector; and in response to the overlap ratio being less than the first set threshold, controlling the cumulative value of the number of user actions to remain unchanged; determining whether the cross-correlation coefficient is less than a second set threshold, and in response to the cross-correlation coefficient being greater than or equal to the second set threshold, determining an estimated probability based on a confidence level, the overlap ratio, and the cross-correlation coefficient, wherein the confidence level is determined by adjacent interval signals; and in response to the cross-correlation coefficient being less than the second set threshold, controlling the accumulated value of the number of user actions to remain unchanged; Determine whether the estimated probability is greater than a third set threshold. In response to the estimated probability being greater than the third set threshold, control the user's cumulative number of actions to be increased by 1 as a new cumulative number of actions; in response to the estimated probability being less than or equal to the third set threshold, control the user's cumulative number of actions to remain unchanged.
11. The method according to any one of claims 1 to 10, further comprising, after determining the cumulative number of actions of the user: In response to the count cycle end condition not being met, the acceleration signal of the next sliding window is used as the current acceleration signal, and the operation of determining the current motion feature information of the user according to the current acceleration signal is returned to be re-executed; In response to the counting cycle end condition being currently satisfied, the accumulated value of the number of actions is fed back as the counting result of the action.
12. The method according to claim 11, wherein The counting cycle end condition is: the acceleration signal is not acquired within a set time; or the cumulative value of the number of actions does not change for a set number of consecutive times.
13. An action counting device comprising: A target information acquisition module configured to acquire target motion feature information; a current information determination module configured to determine the user's current motion characteristic information based on the current acceleration signal; The action number determination module is configured to determine the cumulative value of the user's action number based on the current motion feature information and the target motion feature information.
14. The device according to claim 13, wherein The target information acquisition module includes: a target sequence determination unit configured to perform a multi-scale transformation analysis on the initial acceleration signal to determine a target peak position sequence; The target information determination unit is configured to determine target motion feature information based on the target peak position sequence.
15. The device according to claim 14, wherein The target sequence determination unit is configured as: Based on the initial acceleration signal, determining that the initial acceleration signal corresponds to a plurality of wavelet sequences of set scales; Determining, based on the wavelet sequence, a plurality of peak position sequences and a plurality of peak height sequences corresponding to the initial acceleration signal; determining a plurality of overall response output values corresponding to the initial acceleration based on the plurality of peak height sequences; A target peak position sequence is determined based on the plurality of overall response output values.
16. The device according to claim 14, wherein The target information determination unit is configured as: According to the target peak position sequence and in combination with a preset merging rule, a plurality of interval signal sets of the starting acceleration signal are generated, each of the interval signal sets consisting of two or more interval signals; respectively calculating first confidences of adjacent interval signals in each interval signal set and second confidences of a set number of consecutive interval signals; In response to the first confidence level satisfying a first confidence level condition, determining starting motion feature information corresponding to the starting acceleration signal; In response to the second confidence level satisfying a second confidence level condition, the target motion feature information and the target axis are determined based on the initial motion feature information.
17. The device according to claim 13, wherein The current information determination module includes: a target acceleration signal determining unit, configured to extract a target acceleration signal of a target axis from the current acceleration signal, wherein the target axis is a coordinate axis associated with the target motion characteristic information; The current motion characteristic information determining unit is configured to determine the current motion characteristic information of the user based on the target acceleration signal.
18. The device according to claim 13, wherein The action number determination module is set to: Dividing the current motion feature information to obtain a first current motion feature vector and a second current motion feature vector; Dividing the target motion feature information to obtain a first target motion feature vector and a second target motion feature vector; The cumulative value of the user's action times is determined according to the first current motion feature vector, the second current motion feature vector, the first target motion feature vector, and the second target motion feature vector.
19. The apparatus according to any one of claims 13 to 18, further comprising: a loop module configured to, in response to the count loop end condition not being met currently, use the acceleration signal of the next sliding window as the current acceleration signal and return to re-execute the operation of determining the current motion feature information of the user based on the current acceleration signal; In response to the counting cycle end condition being currently satisfied, the accumulated value of the number of actions is fed back as the counting result of the action.
20. A wearable device comprising: memory and at least one processor; The memory is configured to store at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the action counting method according to any one of claims 1 to 12.
21. A storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to perform the action counting method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Local real-time movement trajectory characteristic extraction and identification method for smartphone
CN106406516A
Swimming information detection method and device and electronic equipment
CN108245869A
Motion counting method, device, equipment and storage medium
CN109260673A
Appratus and Method for Receiving Tag Signal in MobileRFID Reader
KR1020070036624A
Apparatus and method for speech recognition using a plurality of confidence score estimation algorithms
US20070136058A1
