Bracelet-based riding judgment method and device, storage medium and processor
By combining GPS and accelerometer to obtain the velocity change amount, and using accelerometer and gyroscope to obtain the velocity change fitting function, combining the user's basic information and hand movement characteristic values, the low accuracy of riding status judgment in the existing technology is solved. The problem of this achieves a more accurate judgment of riding status.
Patent Information
- Application Number
- CN202210049492.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-17
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2042-01-17
AI Technical Summary
In the prior art, the accuracy of riding status judgment is low, mainly due to the dependence on speed judgment, which is prone to misidentification, especially when riding slowly in a car.
By combining GPS and accelerometer to obtain the velocity change amount, and using accelerometer and gyroscope to obtain the velocity change fitting function, we can judge whether the velocity change amount is within the range of the value range of the fitting function, and combine the user's basic information and hand movement characteristics. Value, determines whether it is in the riding state.
It improves the accuracy of riding status judgment, reduces the situation of misidentification, and can more accurately determine whether the user is in riding status.
Smart Images

Figure CN114487477B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of motion recognition technology, and more specifically, to a bracelet-based riding judgment method and device, a storage medium, and a processor. Background Art
[0002] As a common smart wearable device, the bracelet / watch can realize automatic recognition of the type of exercise, such as walking, running, etc., and can automatically record the user's exercise status. However, the current automatic recognition of exercise types is mainly concentrated in scenes such as running and walking, and the accuracy of automatic recognition of riding status is low. In the prior art, the recognition of riding status is mainly realized in two ways. One is to calculate the user's changing speed with the help of GPS. When the running speed is within a certain range, it is judged as riding. Then when the user rides in a slow-moving car, misidentification is prone to occur. The second is to use the acceleration signal in the accelerometer (ACC) to realize speed calculation and speed change characteristics, so as to judge it as riding. The accumulated error of ACC is large, and the speed calculation and characteristics are easily disturbed for a long time, resulting in misjudgment.
[0003] Currently, no effective solution has been proposed to solve the problem that the accuracy of judging the riding status is low because the related art only judges whether the user is in the riding state based on the user's speed. Summary of the invention
[0004] The main purpose of the present application is to provide a bracelet-based riding judgment method and device, a storage medium and a processor to solve the problem in the related art that whether a user is in a riding state is judged only by the user's speed, resulting in low accuracy in riding state judgment.
[0005] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a bracelet-based riding judgment method is provided. The method comprises: determining the speed change of the target user within a preset time one through the GPS and the accelerometer; obtaining the speed change fitting function of the target user through the accelerometer and the gyroscope, wherein the speed change fitting function is generated by the target user performing a pinch brake operation on the riding device; judging whether the speed change is within the value range of the speed change fitting function; when the speed change is within the value range of the speed change fitting function and the target user is in motion, determining that the target user is in a riding state.
[0006] Furthermore, when the speed change is within the value range of the speed change fitting function and the target user is in motion, before determining that the target user is in a riding state, the method also includes: obtaining the target user's motion speed through the GPS and the accelerometer; and judging whether the target user is in motion based on the motion speed.
[0007] Furthermore, the movement speed of the target user is obtained through the GPS and the accelerometer, including: the GPS outputs speed one according to a preset time period one; time integration processing is performed on the data collected by the accelerometer to obtain speed two; when the number of satellites searched by the GPS is greater than or equal to a preset value one and the range of two position changes of the target user is less than a preset value two, the speed one is used as the movement speed.
[0008] Furthermore, the method also includes: when the number of satellites searched by the GPS is less than the preset value one, or the range of two position changes of the target user is greater than or equal to the preset value two, processing the speed one and the speed two through a preset algorithm to obtain the movement speed.
[0009] Further, judging whether the target user is in motion based on the motion speed includes: when the motion speed is greater than or equal to a preset value three and the time for which the target user maintains the motion speed is greater than or equal to a preset time two, determining that the target user is in motion.
[0010] Furthermore, the speed change fitting function of the target user is obtained through the accelerometer and the gyroscope, including: obtaining data information collected by the accelerometer and the gyroscope according to preset time period two; extracting feature values from the data information using a preset method to obtain hand movement feature values of the target user, wherein the preset method is at least one of the following: wavelet analysis, EMD; inputting the hand movement feature values into a preset algorithm model, and the preset algorithm model outputs the confidence and the gate pinching force value of the gate pinching operation according to preset time period three; the speed change fitting function is obtained based on the confidence of the gate pinching operation, the gate pinching force value and the basic information of the target user, wherein the basic information includes at least: height, weight, age and gender.
[0011] Furthermore, the preset algorithm model is one of the following: SVM, random forest and logistic regression.
[0012] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a riding judgment device based on a bracelet is provided. The device includes: a first determination unit, used to determine the speed change of the target user within a preset time one through the GPS and the accelerometer; a first acquisition unit, used to obtain the speed change fitting function of the target user through the accelerometer and the gyroscope, wherein the speed change fitting function is generated by the target user performing a pinch brake operation on the riding device; a first judgment unit, used to judge whether the speed change is within the value range of the speed change fitting function; a second determination unit, used to determine that the target user is in a riding state when the speed change is within the value range of the speed change fitting function and the target user is in a moving state.
[0013] Furthermore, the device also includes: a second acquisition unit, used to obtain the movement speed of the target user through the GPS and the accelerometer before determining that the target user is in a riding state when the speed change is within the value range of the speed change fitting function and the target user is in a moving state; a second judgment unit, used to judge whether the target user is in a moving state based on the movement speed.
[0014] Furthermore, the second acquisition unit includes: an output module, used for the GPS to output speed one according to a preset time period one; a first processing module, used to perform time integration processing on the data collected by the accelerometer to obtain speed two; and a judgment module, used to use speed one as the movement speed when the number of satellites searched by the GPS is greater than or equal to a preset value one and the range of two position changes of the target user is less than a preset value two.
[0015] Furthermore, the device also includes: a processing unit, which is used to process the speed one and the speed two through a preset algorithm to obtain the movement speed when the number of satellites searched by the GPS is less than the preset value one, or the range of two position changes of the target user is greater than or equal to the preset value two.
[0016] Furthermore, the second judgment unit includes: a determination module, configured to determine that the target user is in motion when the motion speed is greater than or equal to a preset value three and the time for which the target user maintains the motion speed is greater than or equal to a preset time two.
[0017] Furthermore, the first acquisition unit includes: an acquisition module, which is used to acquire the data information collected by the accelerometer and the gyroscope according to a preset time period two; an extraction module, which is used to extract feature values from the data information using a preset device to obtain the hand movement feature values of the target user, wherein the preset device is at least one of the following: wavelet analysis, EMD; an output module, which is used to input the hand movement feature values into a preset algorithm model, and the preset algorithm model outputs the confidence and the gate pinching force value of the gate pinching operation according to a preset time period three; a second processing module, which is used to obtain the speed change fitting function based on the confidence of the gate pinching operation, the gate pinching force value and the basic information of the target user, wherein the basic information at least includes: height, weight, age and gender.
[0018] Furthermore, the preset algorithm model is one of the following: SVM, random forest and logistic regression.
[0019] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a computer-readable storage medium is provided, wherein the storage medium stores a program, wherein the program executes any one of the above-mentioned bracelet-based riding judgment methods.
[0020] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a processor is provided, and the processor is used to run a program, wherein when the program is running, any one of the above-mentioned bracelet-based riding judgment methods is executed.
[0021] Through this application, the following steps are adopted: determine the speed change of the target user within a preset time period by using GPS and an accelerometer; obtain the speed change fitting function of the target user by using an accelerometer and a gyroscope, wherein the speed change fitting function is generated by the target user performing a pinch brake operation on the riding device; determine whether the speed change is within the value range of the speed change fitting function; when the speed change is within the value range of the speed change fitting function and the target user is in motion, determine that the target user is in a riding state, thereby solving the problem in the related art that the accuracy of judging the riding state is low because the user's speed is used to judge whether the user is in a riding state. During the riding process, the target user often performs a pinch brake operation on the riding device. According to the pinch brake operation, the speed change fitting function of the target user is obtained by using an accelerometer and a gyroscope. According to whether the speed change of the target user is within the value range of the speed change fitting function, it is possible to accurately judge whether the target user is in a riding state, thereby achieving the effect of improving the accuracy of judging the riding state. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0023] Figure 1 is a flow chart of a wristband-based riding judgment method provided according to an embodiment of the present application;
[0024] Figure 2 is a flowchart of an optional wristband-based riding judgment method provided according to an embodiment of the present application;
[0025] Figure 3 It is a schematic diagram of a riding judgment device based on a wristband provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0027] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0028] 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 interchanged where appropriate, so that the embodiments of the present application described here. 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.
[0029] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0030] EMD: empirical mode decomposition;
[0031] SVM: support vector machine is a generalized linear classifier that performs binary classification of data using supervised learning.
[0032] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flowchart of a riding judgment method based on a wristband according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0033] Step S101, determining the speed change of the target user within a preset time period by using GPS and accelerometer.
[0034] For example, the target user wears a wristband including a GPS, an accelerometer and a gyroscope. According to the GPS and the accelerometer, the speed change of the target user within a preset time (for example, 3 seconds) is obtained.
[0035] Step S102: obtaining a speed change fitting function of the target user through an accelerometer and a gyroscope, wherein the speed change fitting function is generated when the target user performs a brake squeeze operation on the riding device.
[0036] When the target user's speed changes rapidly during riding, it is usually accompanied by a hand-pinch operation. Therefore, when the target user performs a hand-pinch operation on the riding device, the accelerometer and gyroscope in the wristband output hand feature values according to the hand-pinch operation, and then obtain the speed change fitting function of the target user (for example, function f(h, w, age, st)).
[0037] Step S103, determining whether the speed change is within the value range of the speed change fitting function.
[0038] Determine whether the speed change (ΔS) obtained by GPS and accelerometer within a preset time (for example, 3s) is within the value range of the speed change fitting function, that is, whether ΔS is within the range of [f(h, w, age, st)min, f(h, w, age, st)max].
[0039] Step S104: when the speed change is within the value range of the speed change fitting function and the target user is in a moving state, it is determined that the target user is in a riding state.
[0040] When ΔS∈[f(h, w, age, st)min, f(h, w, age, st)max] and the target user is in motion, the target user is considered to be in a riding state.
[0041] In summary, by using the speed change of the target user, plus the hand motion feature values output by the accelerometer and gyroscope according to the target user's brake pinching operation, and then obtaining the speed change fitting function of the target user, it is possible to accurately judge the riding status.
[0042] Optionally, in the bracelet-based cycling judgment method provided in an embodiment of the present application, when the speed change is within the value range of the speed change fitting function and the target user is in motion, before determining that the target user is in a cycling state, the method also includes: obtaining the target user's movement speed through GPS and accelerometer; and judging whether the target user is in motion based on the movement speed.
[0043] Whether the target user is exercising is determined by GPS and accelerometer. First, the target user's movement speed is obtained through GPS and accelerometer, and then the target user is determined to be in motion based on the movement speed. Generally speaking, when the user's movement speed is 10-15km / h and the duration is greater than or equal to 1min, it can be said that the target user is in motion.
[0044] Only when it is determined that the target user is in a moving state can we further determine whether the target user is in a riding state.
[0045] Optionally, in the bracelet-based cycling judgment method provided in an embodiment of the present application, the movement speed of the target user is obtained through GPS and an accelerometer, including: GPS outputs speed one according to a preset time period one; time integration processing is performed on the data collected by the accelerometer to obtain speed two; when the number of satellite searches by the GPS is greater than or equal to a preset value one and the range of two position changes of the target user is less than a preset value two, speed one is used as the movement speed.
[0046] For example, GPS outputs speed 1 (S1) every 10 seconds; the data collected by the accelerometer (ACC) is time-integrated to obtain speed 2 (S2). When the number of GPS satellite searches is greater than or equal to 5 and the target user's position change range is less than 1m-2m, the speed S1 output by GPS is used as the final movement speed S.
[0047] GPS determines the location of the target object by the number of search stars. Generally speaking, when the number of search stars of the GPS in the bracelet is greater than or equal to 5, the location of the target user can be accurately determined, and then the movement speed of the target user can be accurately output.
[0048] Optionally, in the bracelet-based cycling judgment method provided in an embodiment of the present application, the method also includes: when the number of GPS satellite searches is less than a preset value one, or the target user's two position change ranges are greater than or equal to a preset value two, speed one and speed two are processed by a preset algorithm to obtain the movement speed.
[0049] For example, when the number of GPS satellite searches is less than 5, or the target user's position change range is less than 1m-2m, the speed S1 and speed S2 are input into algorithms such as Kalman for fusion processing, and the result output by the algorithm is used as the movement speed S of the target user.
[0050] When GPS cannot accurately output the target user's movement speed, the accuracy of the target user's movement speed is ensured by fusing the speed obtained by GPS and the speed obtained by accelerometer.
[0051] Optionally, in the bracelet-based cycling judgment method provided in an embodiment of the present application, whether the target user is in a state of motion is judged based on the motion speed, including: when the motion speed is greater than or equal to a preset value of three and the time for which the target user maintains the motion speed is greater than or equal to a preset time of two, it is determined that the target user is in a state of motion.
[0052] For example, when the target user's movement speed is 10-15 km / h and the duration is greater than or equal to 1 minute, it indicates that the target user is in a moving state.
[0053] Optionally, in the bracelet-based riding judgment method provided in the embodiment of the present application, a speed change fitting function of the target user is obtained through an accelerometer and a gyroscope, including: obtaining data information collected by the accelerometer and the gyroscope according to preset time period two; extracting feature values from the data information using a preset method to obtain hand movement feature values of the target user, wherein the preset method is at least one of the following: wavelet analysis, EMD; inputting the hand movement feature values into a preset algorithm model, and the preset algorithm model outputs the confidence and the pinch force value of the gate pinching operation according to preset time period three; obtaining a speed change fitting function based on the confidence of the gate pinching operation, the gate pinching force value and the basic information of the target user, wherein the basic information includes at least: height, weight, age and gender.
[0054] The accelerometer and gyroscope (Gyro) collect data information of the target user, and separate the hand motion feature values of the target user from the data information through wavelet analysis, EMD and other methods. The hand motion feature values are input into the preset algorithm model (such as SVM, random forest and logistic regression, etc.), and the confidence and the pinching force value (st) of the gate operation are output at 10s / time. According to the confidence of the gate operation, the gate pinching force value and the basic information of the target user (such as height, weight, age, gender, etc.), the speed change fitting function f(h, w, age, st) of the target user is obtained.
[0055] When the speed of the user changes rapidly during riding, it is usually accompanied by the action of squeezing the brakes. Therefore, the accelerometer and gyroscope are used to output the hand action feature values of the target user's squeezing operation, and then the speed change fitting function of the target user is obtained to ensure the accuracy of the riding state judgment.
[0056] Optionally, in the bracelet-based riding judgment method provided in an embodiment of the present application, the preset algorithm model is one of the following: SVM, random forest and logistic regression.
[0057] Generally speaking, the preset algorithm model used is one of the following: SVM, random forest, and logistic regression.
[0058] The wristband-based riding judgment method provided in the embodiment of the present application determines the speed change of the target user within a preset time through GPS and accelerometer; obtains the speed change fitting function of the target user through the accelerometer and gyroscope, wherein the speed change fitting function is generated by the target user performing a pinch brake operation on the riding device; determines whether the speed change is within the value range of the speed change fitting function; when the speed change is within the value range of the speed change fitting function and the target user is in motion, it is determined that the target user is in a riding state, which solves the problem in the related art that the accuracy of the riding state judgment is low because the user's speed is used to judge whether the user is in a riding state. During the riding process, the target user often performs a pinch brake operation on the riding device. According to the pinch brake operation, the speed change fitting function of the target user is obtained using the accelerometer and gyroscope. According to whether the speed change of the target user is within the value range of the speed change fitting function, it can accurately judge whether the target user is in a riding state, thereby achieving the effect of improving the accuracy of the riding state judgment.
[0059] like Figure 2As shown, it is a flowchart of an optional bracelet-based riding judgment method provided according to an embodiment of the present application. When the user wears the bracelet, the GPS, ACC (accelerometer), and Gyro (gyroscope) in the bracelet are in automatic operation. GPS outputs speed S1 at 10s / time; at the same time, the data obtained by ACC is time-integrated to obtain speed S2. When the number of GPS satellite searches>n and the user's two position change ranges <preset values, speed S1 is used as the final fusion speed S (i.e., the running speed of the target user mentioned above); otherwise, speeds S1 and S2 are input into algorithms such as Kalman for fusion processing, and the result of the algorithm output is used as the fusion speed S. When the fusion speed S is greater than or equal to the threshold and the riding time t is greater than or equal to 1min, the current state is recorded as a motion state. The data obtained by ACC and Gyro are processed by wavelet analysis, EMD and other methods to obtain hand movement feature values, and the hand movement feature values are output at 2s / time. The eigenvalues are input into the preset algorithm model (such as SVM, random forest and logistic regression, etc.) to obtain the confidence and force of the brake-squeezing action st, and then combined with information such as height, weight, age, and gender to obtain the user's speed change fitting function f. When the user's speed changes rapidly during riding, it is usually accompanied by the hand-squeezing action. Then when the user's speed change range Δs is within [f(h, w, age, st)min, f(h, w, age, st)max], it is considered that the user is currently riding.
[0060] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0061] The embodiment of the present application also provides a riding judgment device based on a wristband. It should be noted that the riding judgment device based on a wristband in the embodiment of the present application can be used to execute the riding judgment method based on a wristband provided in the embodiment of the present application. The riding judgment device based on a wristband provided in the embodiment of the present application is introduced below.
[0062] Figure 3 is a schematic diagram of a riding judgment device based on a wristband according to an embodiment of the present application. Figure 3 As shown, the device includes: a first determining unit 301, a first acquiring unit 302, a first judging unit 303 and a second determining unit 304.
[0063] The first determining unit 301 is used to determine the speed change of the target user within a preset time period by using GPS and an accelerometer.
[0064] The first acquisition unit 302 is used to acquire a speed change fitting function of the target user through an accelerometer and a gyroscope, wherein the speed change fitting function is generated when the target user performs a brake pinching operation on the riding device.
[0065] The first judging unit 303 is used to judge whether the speed variation is within the value range of the speed variation fitting function.
[0066] The second determining unit 304 is configured to determine that the target user is in a riding state when the speed variation is within a value range of the speed variation fitting function and the target user is in a moving state.
[0067] The wristband-based riding judgment device provided in the embodiment of the present application determines the speed change of the target user within a preset time one through the first determination unit 301 through the GPS and the accelerometer. The first acquisition unit 302 acquires the speed change fitting function of the target user through the accelerometer and the gyroscope, wherein the speed change fitting function is generated by the target user performing a pinch brake operation on the riding device. The first judgment unit 303 determines whether the speed change is within the value range of the speed change fitting function. The second determination unit 304 determines that the target user is in a riding state when the speed change is within the value range of the speed change fitting function and the target user is in a moving state, thereby solving the problem that the accuracy of the riding state judgment is low by judging whether the user is in a riding state only by the user's speed in the related art. During the riding process, the target user often performs a pinch brake operation on the riding device. According to the pinch brake operation, the speed change fitting function of the target user is obtained by using the accelerometer and the gyroscope. According to whether the speed change of the target user is within the value range of the speed change fitting function, it is possible to accurately judge whether the target user is in a riding state, thereby achieving the effect of improving the accuracy of the riding state judgment.
[0068] Optionally, in the bracelet-based cycling judgment device provided in an embodiment of the present application, the device also includes: a second acquisition unit, used to obtain the movement speed of the target user through GPS and an accelerometer before determining that the target user is in a cycling state when the speed change is within the value range of the speed change fitting function and the target user is in a motion state; a second judgment unit, used to judge whether the target user is in a motion state based on the motion speed.
[0069] Optionally, in the bracelet-based riding judgment device provided in the embodiment of the present application, the second acquisition unit includes: an output module, which is used for the GPS to output speed one according to a preset time period one; a first processing module, which is used to perform time integration processing on the data collected by the accelerometer to obtain speed two; and a judgment module, which is used to use speed one as the movement speed when the number of GPS search satellites is greater than or equal to a preset value one and the range of two position changes of the target user is less than a preset value two.
[0070] Optionally, in the bracelet-based riding judgment device provided in the embodiment of the present application, the device also includes: a processing unit, which is used to process speed one and speed two through a preset algorithm to obtain the movement speed when the number of GPS search satellites is less than a preset value one, or the range of two position changes of the target user is greater than or equal to a preset value two.
[0071] Optionally, in the bracelet-based riding judgment device provided in an embodiment of the present application, the second judgment unit includes: a determination module, used to determine that the target user is in a motion state when the movement speed is greater than or equal to a preset value three and the time for which the target user maintains the movement speed is greater than or equal to a preset time two.
[0072] Optionally, in the bracelet-based riding judgment device provided in the embodiment of the present application, the first acquisition unit includes: an acquisition module, which is used to acquire data information collected by the accelerometer and the gyroscope according to a preset time period two; an extraction module, which is used to extract feature values from the data information using a preset device to obtain the hand movement feature values of the target user, wherein the preset device is at least one of the following: wavelet analysis, EMD; an output module, which is used to input the hand movement feature values into a preset algorithm model, and the preset algorithm model outputs the confidence and the pinching force value of the gate operation according to a preset time period three; a second processing module, which is used to obtain a speed change fitting function based on the confidence of the gate operation, the gate pinching force value and the basic information of the target user, wherein the basic information includes at least: height, weight, age and gender.
[0073] Optionally, in the bracelet-based riding judgment device provided in an embodiment of the present application, the preset algorithm model is one of the following: SVM, random forest and logistic regression.
[0074] The wristband-based riding judgment device includes a processor and a memory. The first determination unit 301, the first acquisition unit 302, the first judgment unit 303, the second determination unit 304, etc. are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
[0075] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the user's riding status can be judged by adjusting the kernel parameters.
[0076] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0077] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the bracelet-based riding judgment method is implemented.
[0078] An embodiment of the present invention provides a processor, which is used to run a program, wherein the bracelet-based riding judgment method is executed when the program is running.
[0079] An embodiment of the present invention provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: determining a speed change of a target user within a preset time period through a GPS and an accelerometer; obtaining a speed change fitting function of the target user through an accelerometer and a gyroscope, wherein the speed change fitting function is generated when the target user performs a brake pinching operation on a riding device; determining whether the speed change is within a value range of the speed change fitting function; and determining that the target user is in a riding state when the speed change is within the value range of the speed change fitting function and the target user is in motion.
[0080] Optionally, when the speed change is within the value range of the speed change fitting function and the target user is in motion, before determining that the target user is in a riding state, the method also includes: obtaining the target user's motion speed through GPS and an accelerometer; and judging whether the target user is in motion based on the motion speed.
[0081] Optionally, the movement speed of the target user is obtained through GPS and an accelerometer, including: GPS outputs speed one according to a preset time period one; time-integrates the data collected by the accelerometer to obtain speed two; when the number of satellites searched by the GPS is greater than or equal to a preset value one and the range of two position changes of the target user is less than a preset value two, speed one is used as the movement speed.
[0082] Optionally, the method further includes: when the number of satellites searched by the GPS is less than a preset value of one, or the range of two position changes of the target user is greater than or equal to a preset value of two, processing speed one and speed two through a preset algorithm to obtain a movement speed.
[0083] Optionally, judging whether the target user is in motion based on the motion speed includes: when the motion speed is greater than or equal to a preset value three and the time the target user maintains the motion speed is greater than or equal to a preset time two, determining that the target user is in motion.
[0084] Optionally, a speed change fitting function of a target user is obtained through an accelerometer and a gyroscope, including: obtaining data information collected by the accelerometer and the gyroscope according to a preset time period two; extracting feature values from the data information using a preset method to obtain feature values of hand movements of the target user, wherein the preset method is at least one of the following: wavelet analysis, EMD; inputting the hand movement feature values into a preset algorithm model, and the preset algorithm model outputs a confidence level and a value of a pinching force of the gate operation according to a preset time period three; obtaining a speed change fitting function based on the confidence level of the gate operation, the value of the pinching force and basic information of the target user, wherein the basic information includes at least: height, weight, age and gender.
[0085] Optionally, the preset algorithm model is one of the following: SVM, random forest and logistic regression. The device in this article can be a server, a PC, a PAD, a mobile phone, etc.
[0086] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: determining a speed change of a target user within a preset time period through a GPS and an accelerometer; obtaining a speed change fitting function of the target user through an accelerometer and a gyroscope, wherein the speed change fitting function is generated by the target user performing a brake operation on a riding device; determining whether the speed change is within a value range of the speed change fitting function; and when the speed change is within the value range of the speed change fitting function and the target user is in motion, determining that the target user is in a riding state.
[0087] Optionally, when the speed change is within the value range of the speed change fitting function and the target user is in motion, before determining that the target user is in a riding state, the method also includes: obtaining the target user's motion speed through GPS and an accelerometer; and judging whether the target user is in motion based on the motion speed.
[0088] Optionally, the movement speed of the target user is obtained through GPS and an accelerometer, including: GPS outputs speed one according to a preset time period one; time-integrates the data collected by the accelerometer to obtain speed two; when the number of satellites searched by the GPS is greater than or equal to a preset value one and the range of two position changes of the target user is less than a preset value two, speed one is used as the movement speed.
[0089] Optionally, the method further includes: when the number of satellites searched by the GPS is less than a preset value of one, or the range of two position changes of the target user is greater than or equal to a preset value of two, processing speed one and speed two through a preset algorithm to obtain a movement speed.
[0090] Optionally, judging whether the target user is in motion based on the motion speed includes: when the motion speed is greater than or equal to a preset value three and the time the target user maintains the motion speed is greater than or equal to a preset time two, determining that the target user is in motion.
[0091] Optionally, a speed change fitting function of a target user is obtained through an accelerometer and a gyroscope, including: obtaining data information collected by the accelerometer and the gyroscope according to a preset time period two; extracting feature values from the data information using a preset method to obtain feature values of hand movements of the target user, wherein the preset method is at least one of the following: wavelet analysis, EMD; inputting the hand movement feature values into a preset algorithm model, and the preset algorithm model outputs a confidence level and a value of a pinching force of the gate operation according to a preset time period three; obtaining a speed change fitting function based on the confidence level of the gate operation, the value of the pinching force and basic information of the target user, wherein the basic information includes at least: height, weight, age and gender.
[0092] Optionally, the preset algorithm model is one of the following: SVM, random forest and logistic regression.
[0093] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0094] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0095] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0096] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0097] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0098] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0099] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0100] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0101] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0102] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A riding judgment method based on a wristband, characterized in that: The wristband includes GPS, accelerometer and gyroscope, including: Determine the speed change of the target user within a preset time by using the GPS and the accelerometer; Acquire a speed change fitting function of the target user through the accelerometer and the gyroscope, wherein the speed change fitting function is generated when the target user performs a brake pinching operation on the riding device; Determine whether the speed change is within the value range of the speed change fitting function; When the speed change is within the value range of the speed change fitting function and the target user is in a moving state, it is determined that the target user is in a riding state; Wherein, obtaining the speed change fitting function of the target user through the accelerometer and the gyroscope includes: Acquire data information collected by the accelerometer and the gyroscope according to a preset time period 2; Extracting feature values from the data information using a preset method to obtain feature values of the hand movements of the target user, wherein the preset method is at least one of the following: wavelet analysis, EMD; The hand motion feature value is input into a preset algorithm model, and the preset algorithm model outputs the confidence and the value of the pinching force of the gate operation according to a preset time period; The speed change fitting function is obtained according to the confidence of the gate-squeezing operation, the gate-squeezing force value and the basic information of the target user, wherein the basic information at least includes: height, weight, age and gender.
2. The method according to claim 1, characterized in that When the speed change is within the value range of the speed change fitting function and the target user is in a moving state, before determining that the target user is in a riding state, the method further includes: Acquire the movement speed of the target user through the GPS and the accelerometer; Whether the target user is in motion is determined based on the motion speed.
3. The method according to claim 2, characterized in that Acquiring the movement speed of the target user through the GPS and the accelerometer includes: The GPS outputs speed one according to a preset time period one; Performing time integration processing on the data collected by the accelerometer to obtain velocity 2; When the number of satellites searched by the GPS is greater than or equal to a preset value one and the range of two position changes of the target user is less than a preset value two, the speed one is used as the movement speed.
4. The method according to claim 3, characterized in that The method further comprises: When the number of satellites searched by the GPS is less than the preset value one, or the range of two position changes of the target user is greater than or equal to the preset value two, the speed one and the speed two are processed by a preset algorithm to obtain the movement speed.
5. The method according to claim 4, characterized in that Judging whether the target user is in motion according to the motion speed includes: When the movement speed is greater than or equal to a preset value three and the time for which the target user maintains the movement speed is greater than or equal to a preset time two, it is determined that the target user is in a moving state.
6. The method according to claim 1, characterized in that The preset algorithm model is one of the following: SVM, random forest and logistic regression.
7. A riding judgment device based on a wristband, characterized in that: The wristband includes GPS, accelerometer and gyroscope, including: A first determining unit, configured to determine a speed change of a target user within a preset time period by using the GPS and the accelerometer; A first acquisition unit is configured to acquire a speed change fitting function of the target user through the accelerometer and the gyroscope, wherein the speed change fitting function is generated when the target user performs a brake pinching operation on the riding device; A first judging unit, used for judging whether the speed variation is within the value range of the speed variation fitting function; A second determining unit is configured to determine that the target user is in a riding state when the speed change is within a value range of the speed change fitting function and the target user is in a moving state; Among them, the first acquisition unit includes: an acquisition module, which is used to acquire the data information collected by the accelerometer and the gyroscope according to a preset time period two; an extraction module, which is used to extract feature values from the data information using a preset device to obtain the hand movement feature values of the target user, wherein the preset device is at least one of the following: wavelet analysis, EMD; an output module, which is used to input the hand movement feature values into a preset algorithm model, and the preset algorithm model outputs the confidence and the gate pinching force value of the gate pinching operation according to a preset time period three; a second processing module, which is used to obtain the speed change fitting function based on the confidence of the gate pinching operation, the gate pinching force value and the basic information of the target user, wherein the basic information at least includes: height, weight, age and gender.
8. A computer-readable storage medium, characterized in that: The storage medium stores a program, wherein the program executes the wristband-based riding judgment method according to any one of claims 1 to 6.
9. A processor, characterized in that: The processor is used to run a program, wherein the program executes the bracelet-based riding judgment method described in any one of claims 1 to 6 when running.
