A method for calculating cadence based on accelerometer power meter

Through the cadence calculation method based on the acceleration power meter, using biaxial acceleration data and feature extraction, the problem of torque meter dependence and poor robustness in the existing cadence system is solved, and the accurate determination and pedaling of the riding state are achieved. Highly accurate output of frequency data.

CN115062639BActive Publication Date: 2024-09-06QINGDAO MAGENE INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210357539.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-06
Publication Date
2024-09-06
Estimated Expiration
2042-04-06

AI Technical Summary

Technical Problem

Because the existing cadence calculation system relies on a torque meter, there are problems such as non-convergence of the threshold and poor robustness. Especially in cadence products without a torque meter, it is incorrect to identify the riding state, and the data characteristics of the single-sensor system are not enhanced, resulting in identification errors. error.

Method used

The cadence calculation method based on the acceleration power meter is used to obtain biaxial acceleration data, perform sliding window processing, filtering processing and feature extraction, combine the preset feature conditions to determine the riding status, and improve the performance through prior estimation and posterior estimation. Accuracy of cadence data.

Benefits of technology

The riding status can be correctly determined without torque, which improves the robustness and data accuracy of the cadence system, reduces identification errors, enhances data characteristics, and improves the stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115062639B
    Figure CN115062639B
Patent Text Reader

Abstract

The present invention discloses a method for calculating the cadence based on an acceleration power meter, and the technical solution thereof includes: obtaining a dual-axis acceleration time series; filtering the data in the window; extracting features from the dual-axis data; determining the normal state; outputting the cadence, and calculating the cadence according to a formula. The extracted features are used to determine whether the riding state is normal at this time, and the riding state can be correctly determined without torque, and the acquisition of dual-axis acceleration data increases the types of available data, thereby improving the robustness of the cadence settlement system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cadence calculation, and more specifically, to a cadence calculation method based on an acceleration power meter. Background Art

[0002] Most transmission power meters use torque to identify abnormal riding, but this method has the problem of non-convergence of thresholds, which can easily lead to recognition errors, and this recognition method is not suitable for cadence products without torque meters. The cadence solution system of a single-sensor system has the problem of poor robustness due to the single sensor or the lack of feature enhancement of input data.

[0003] In response to the above problems, the present application proposes a cadence calculation method based on an acceleration power meter. Summary of the invention

[0004] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a cadence calculation method based on an acceleration power meter, which determines whether the riding state is normal at this time through the extracted features, and can correctly judge the riding state without torque. In addition, by acquiring dual-axis acceleration data, the types of available data are increased, thereby improving the robustness of the cadence settlement system.

[0005] To achieve the above object, the present invention provides the following technical solution: a method for calculating the cadence based on an acceleration power meter, comprising:

[0006] Obtain the acceleration time series of the two axes, obtain the data of the two axes according to the determined time interval, store the data of the two sequences in one time interval into the sliding window, and the sliding window displays the sequence values ​​of different time intervals in turn;

[0007] Filter the data within the window;

[0008] Perform feature extraction on the biaxial data to extract the peak points, valley points, zero points of the two series of data, and the monotonic increase and decrease of the values ​​in the series;

[0009] Normal state judgment: according to the preset characteristic conditions, it is judged whether the characteristics of the two sequences in the window meet the preset characteristic conditions. If they meet, the cadence output is performed; if not, the filtering process of the next window data is directly performed;

[0010] Cadence output, cadence is calculated according to the formula, the calculation formula is as follows:

[0011]

[0012] Among them, cadence represents the pedaling frequency, T is the output frequency of the signal, and △t is the time interval between two feature points in seconds.

[0013] By adopting the above technical solution, whether the riding state is normal at this time is determined by the extracted features, and the riding state can be correctly judged without torque. In addition, by acquiring dual-axis acceleration data, the data features are enhanced and the poor robustness is reduced.

[0014] The present invention is further configured as follows: the two sequence values ​​obtained in the window are respectively recorded as Acc x [acc1, ..., acc n ] and Acc y [acc1, ..., acc n ].

[0015] The present invention is further configured as follows: the process of filtering the data in the window is as follows:

[0016]

[0017] Among them, X represents the input acceleration sequence, Y represents the output filtered value, and a and b represent the denominator vector and numerator vector of the corresponding Butterworth filter.

[0018] By adopting the above technical solution and performing filtering processing, the accuracy of the finally obtained cadence data can be improved.

[0019] The present invention is further configured as follows: the pre-set characteristic conditions include two conditions, the first condition is that the x-axis data is a peak point, and the gradient characteristic of the y-axis data is monotonically increasing;

[0020] Condition 2 is that the x-axis data is zero, the gradient feature of the x-axis data is monotonically increasing, and the y-axis data is a peak point, or the x-axis data is zero, the x-axis data is monotonically decreasing, and the y-axis data is a valley point.

[0021] The present invention is further configured as follows: when the data features of the two sequences within the judgment window meet condition one, the time point corresponding to the middle position of the acceleration sequence is recorded and stored in the peak sequence, and the time interval between the time point stored in the peak sequence and the peak point in the acceleration sequence is taken as Δt.

[0022] The present invention is further configured as follows: when the data features of the two sequences within the judgment window meet condition two, the time point corresponding to the middle position of the acceleration sequence is recorded and stored in the zero-point sequence, and the time interval between the time point stored in the zero-point sequence and the zero-point time in the time series is taken as Δt.

[0023] The present invention is further configured to include a priori estimation, where the data feature of condition 2 appears one quarter of a cycle earlier than the data feature of condition 1. After the cadence output corresponding to condition 2 is obtained, a priori estimation is performed first, and the formula is as follows:

[0024]

[0025] Among them, cad 1|2 is the cadence predicted by the prior estimate, and cad2 is the cadence value corresponding to condition two.

[0026] The present invention is further configured to update the cofactor matrix after prior estimation, and the formula is as follows:

[0027]

[0028] Where P is the cofactor matrix, R and Q are the system errors in the pedaling frequency corresponding to the solution condition 2.

[0029] The present invention is further configured as follows: after the cadence output condition corresponds to the cadence value, a posteriori estimation is performed, and the formula is:

[0030]

[0031] in is the optimal cadence value outputted at last, cad1 is the cadence value corresponding to condition 1, and cad 1|2 is the cadence value predicted by the prior estimate.

[0032] By adopting the above technical solution, a more accurate cadence value can be obtained through a priori estimation and a posteriori estimation.

[0033] The present invention is further configured as follows: after the optimal cadence output is performed, the cofactor matrix is ​​first updated, and then a priori estimation is performed. The cofactor matrix update formula is as follows:

[0034] P = (1-K)*P.

[0035] In summary, the present invention has the following beneficial effects compared with the prior art:

[0036] 1. The present invention uses the extracted features to determine whether the riding state is normal at this time, and can correctly determine the riding state without torque. In addition, by acquiring dual-axis acceleration data, the types of available data are increased, and the robustness of the cadence settlement system is improved;

[0037] 2. The present invention can improve the accuracy of the pedaling frequency data finally obtained through filtering processing;

[0038] 3. The present invention can obtain a more accurate cadence value through a priori estimation and a posteriori estimation. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A schematic diagram of the method steps of an embodiment;

[0040] Figure 2 is the sequence of the x-axis and y-axis during positive riding;

[0041] Figure 3 It is the time series of x-axis and y-axis in the chain-reversing riding state. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention is clearly and completely described below in conjunction with the accompanying drawings of the present invention. Based on the embodiments in this application, other similar embodiments obtained by ordinary technicians in this field without making creative work should all fall within the scope of protection of this application. In addition, the directional words mentioned in the following embodiments, such as "up", "down", "left", "right", etc., are only reference to the directions of the accompanying drawings. Therefore, the directional words used are used to illustrate rather than limit the invention.

[0043] The present invention will be further described below in conjunction with the accompanying drawings and preferred embodiments.

[0044] Embodiment: A method for calculating the cadence based on an accelerometer. Figure 1 ,include:

[0045] Obtain dual-axis acceleration time series, obtain dual-axis accelerometer data according to a determined time interval, store the data of two sequences in one time interval into a sliding window, and the sliding window displays the sequence values ​​of different time intervals in turn; the data obtained by the dual-axis accelerometer are x-axis acceleration data and y-axis acceleration data, respectively, and the two sequences here refer to the time series of x-axis acceleration data and the time series of y-axis acceleration data, respectively.

[0046] Filter the data within the window;

[0047] Feature extraction is performed on the dual-axis data to extract the peak points, valley points, zero points of the two sequence data and the monotonic increase and monotonic decrease of the sequence values; the monotonic increase and monotonic decrease refer to the gradient characteristics of the sequence data.

[0048] Normal state judgment, based on the pre-set characteristic conditions, determines whether the characteristics of the two sequences in the window meet the preset characteristic conditions. If they meet, the cadence is output; if not, the next window data is directly filtered.

[0049] Cadence output, cadence is calculated according to the formula, the calculation formula is as follows:

[0050] Among them, cadence represents the pedaling frequency, T is the output frequency of the signal, and △t is the time interval between two feature points in seconds.

[0051] Specifically, when obtaining the dual-axis acceleration time series, the two series values ​​obtained are recorded as Acc x [acc1, ..., acc n ] and Acc y [acc1, ..., acc n ].

[0052] Optimally, in this embodiment, the data acquisition frequency is set to 100 Hz and the time interval is set to 10 ms.

[0053] Specifically, when filtering the data in the window, the process is as follows:

[0054]

[0055] Among them, X represents the input acceleration sequence, Y represents the output filtered value, and a and b represent the denominator vector and numerator vector of the corresponding Butterworth filter.

[0056] Filtering can reduce the impact of noise on data accuracy.

[0057] Specifically, when extracting features from biaxial data, peak detection, valley detection, zero point detection, and monotonic detection are mainly performed; when detecting the peak value, if the value at the middle position of the acceleration sequence is a maximum value and is greater than the peak judgment threshold, it is recorded as the peak point;

[0058] During valley detection, if the value at the middle position of the acceleration sequence is the minimum value and is less than the valley judgment threshold, it is recorded as the valley point;

[0059] During zero point detection, the absolute value of the middle position value of the x-axis acceleration sequence is less than the zero point judgment threshold, and the gradient feature of the x-axis acceleration data is a single point increase and corresponds to the y-axis peak value, or the gradient feature of the x-axis acceleration data is a monotonically decreasing and corresponds to the y-axis valley value;

[0060] During monotonic detection, whether the values ​​in the acceleration sequence are monotonically increasing or monotonically decreasing.

[0061] Specifically, when presetting the feature conditions, two preset features are set. The first condition is that the x-axis data is a peak point, and the gradient feature of the y-axis data is monotonically increasing;

[0062] Condition 2 is that the x-axis data is zero, the gradient feature of the x-axis data is monotonically increasing, and the y-axis data is a peak point, or the x-axis data is zero, the x-axis data is monotonically decreasing, and the y-axis data is a valley point.

[0063] During normal state determination, when the data features of the two sequences in the window meet different preset features, different △t values ​​are selected to calculate the cadence to ensure the accuracy of the final cadence value.

[0064] like Figure 2 As shown, during normal riding, the peak point of the x-axis data corresponds to the zero point of the y-axis data after removing the baseline, and the y-axis data in this process shows a monotonically increasing trend, which meets condition one;

[0065] like Figure 3 As shown in the figure, the time series of the x-axis and y-axis of the chain-falling riding state (abnormal riding), the peak point of the x-axis in this state corresponds to the zero point of the y-axis after removing the baseline, but the y-axis data corresponding to this point shows a monotonically decreasing trend. The present invention eliminates the chain-falling riding state in the riding state by identifying this feature, and does not perform cadence calculation.

[0066] When the data features of the two sequences in the judgment window meet condition 1, the time point corresponding to the middle position of the acceleration sequence is recorded and stored in the peak sequence, and the time interval between the time point stored in the peak sequence and the peak point in the acceleration sequence is taken as △t;

[0067] When the data features of the two sequences in the judgment window meet the second condition, the time point corresponding to the middle position of the acceleration sequence is recorded and stored in the zero-point sequence, and the time interval between the time point stored in the zero-point sequence and the zero-point time in the time series is taken as △t.

[0068] In order to improve the accuracy of the final cadence output, after obtaining the cadence calculated after satisfying condition one and the cadence calculated after satisfying condition two, a fusion output is performed based on the characteristics between the two to obtain the optimal cadence value. For ease of understanding, the cadence corresponding to condition one represents the cadence calculated after satisfying condition one, and the cadence corresponding to condition two represents the cadence calculated after satisfying condition two; the solution frequency of the cadence corresponding to condition one is half of the settlement frequency of the cadence corresponding to condition two, so the following fusion design is performed based on the characteristics of the two: Since the cadence corresponding to condition two is solved through the zero point, the cadence corresponding to condition two will be solved one quarter of the cycle of the cadence corresponding to condition one, so the cadence corresponding to cadence two is first estimated a priori, and the formula adopted when making a priori estimates is as follows:

[0069]

[0070] Among them, cad 1|2 is the cadence predicted by the prior estimate, and cad2 is the cadence value corresponding to condition two.

[0071] After the prior estimation, the cofactor matrix is ​​updated, and the update formula is as follows:

[0072]

[0073] Where P is the cofactor matrix, R and Q are the system errors in the pedaling frequency corresponding to the solution condition 2.

[0074] After the cadence value corresponding to the cadence output condition is obtained, a posteriori estimation is performed, and the calculation formula is:

[0075]

[0076] in is the optimal cadence value outputted at last, cad1 is the cadence value corresponding to condition 1, and cad 1|2 is the cadence value predicted by the prior estimate.

[0077] After the optimal cadence output is performed, the cofactor matrix is ​​updated first, and then a priori estimation is performed. The update formula of the cofactor matrix is ​​as follows:

[0078] P = (1-K)*P.

[0079] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A method for calculating cadence based on an accelerometer, characterized in that: include: Obtain the acceleration time series of the two axes, obtain the data of the two axes according to the determined time interval, store the data of the two sequences in one time interval into the sliding window, and the sliding window displays the sequence values ​​of different time intervals in turn; Filter the data within the window; Perform feature extraction on the biaxial data to extract the peak points, valley points, zero points of the two series of data, and the monotonic increase and decrease of the values ​​in the series; Normal state judgment: according to the preset characteristic conditions, it is judged whether the characteristics of the two sequences in the window meet the preset characteristic conditions. If they meet, the cadence output is performed; if not, the filtering process of the next window data is directly performed; Cadence output, cadence is calculated according to the formula, the calculation formula is as follows: Among them, cadence represents the pedaling frequency, T is the output frequency of the signal, and when the data characteristics of the two sequences in the judgment window meet condition one, the time interval between the time point corresponding to the middle position of the acceleration sequence and the peak point in the acceleration sequence is taken as △t; when the data characteristics of the two sequences in the judgment window meet condition two, the time interval between the time point corresponding to the middle position of the acceleration sequence and the zero time in the time series is taken as △t, and the unit of △t is seconds.

2. The method for calculating the cadence based on an acceleration power meter according to claim 1, characterized in that: The two sequence values ​​obtained in the window are recorded as Acc x [acc1, ..., acc n ] and Acc y [acc1, ..., acc n ].

3. The method for calculating the cadence based on an acceleration power meter according to claim 2, characterized in that: The process of filtering the data in the window is as follows: Among them, X represents the input acceleration sequence, Y represents the output filtered value, and a and b represent the denominator vector and numerator vector of the corresponding Butterworth filter.

4. The method for calculating the cadence based on an acceleration power meter according to claim 1, characterized in that: The pre-set characteristic conditions include two conditions: condition 1 is that the x-axis data is a peak point, and the gradient characteristic of the y-axis data is monotonically increasing; Condition 2 is that the x-axis data is zero, the gradient feature of the x-axis data is monotonically increasing, and the y-axis data is a peak point, or the x-axis data is zero, the x-axis data is monotonically decreasing, and the y-axis data is a valley point.

5. The method for calculating the cadence based on an acceleration power meter according to claim 4, characterized in that: When the data features of the two sequences in the judgment window meet condition one, the time point corresponding to the middle position of the acceleration sequence is recorded and stored in the peak sequence. The time interval between the time point stored in the peak sequence and the peak point in the acceleration sequence is taken as Δt.

6. The method for calculating the cadence based on an acceleration power meter according to claim 5, characterized in that: When the data features of the two sequences in the judgment window meet the second condition, the time point corresponding to the middle position of the acceleration sequence is recorded and stored in the zero-point sequence, and the time interval between the time point stored in the zero-point sequence and the zero-point time in the time series is taken as △t.

7. The method for calculating the cadence based on an acceleration power meter according to claim 6, characterized in that: It also includes a priori estimation. The data features of condition 2 appear one quarter of a cycle earlier than the data features of condition 1. After obtaining the cadence output corresponding to condition 2, a priori estimation is performed first. The formula is as follows: Among them, cad 1|2 is the cadence predicted by the prior estimate, and cad2 is the cadence value corresponding to condition two.

8. The method for calculating the cadence based on an acceleration power meter according to claim 7, characterized in that: After the prior estimation, the cofactor matrix is ​​updated, and the formula is as follows: Where P is the cofactor matrix, and Q is the system error when solving the pedaling frequency corresponding to condition 2.

9. The method for calculating the cadence based on an acceleration power meter according to claim 8, characterized in that: After the cadence value corresponding to the cadence output condition is obtained, a posteriori estimation is performed, and the formula is: in is the optimal cadence value outputted at last, cad1 is the cadence value corresponding to condition 1, and cad 1|2 is the cadence value predicted by the prior estimate.

10. The method for calculating the cadence based on an acceleration power meter according to claim 9, characterized in that: After the optimal cadence output is performed, the cofactor matrix is ​​updated first, and then a priori estimation is performed. The update formula of the cofactor matrix is ​​as follows: P = (1-K)*P.