CN108245869A - A kind of swimming information detecting method, device and electronic equipment - Google Patents
A kind of swimming information detecting method, device and electronic equipment Download PDFInfo
- Publication number
- CN108245869A CN108245869A CN201711482393.4A CN201711482393A CN108245869A CN 108245869 A CN108245869 A CN 108245869A CN 201711482393 A CN201711482393 A CN 201711482393A CN 108245869 A CN108245869 A CN 108245869A
- Authority
- CN
- China
- Prior art keywords
- user
- swimming
- data
- stroke
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B69/00—Training appliances or apparatus for special sports
- A63B69/12—Arrangements in swimming pools for teaching swimming or for training
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B31/00—Swimming aids
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B71/00—Games or sports accessories not covered in groups A63B1/00 - A63B69/00
- A63B71/06—Indicating or scoring devices for games or players, or for other sports activities
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B2220/00—Measuring of physical parameters relating to sporting activity
- A63B2220/40—Acceleration
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B2225/00—Miscellaneous features of sport apparatus, devices or equipment
- A63B2225/60—Apparatus used in water
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63B—APPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
- A63B2244/00—Sports without balls
- A63B2244/20—Swimming
Landscapes
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Physical Education & Sports Medicine (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
The application provides a kind of swimming information detecting method, device and electronic equipment.The swimming information detecting method is applied to electronic equipment, and acceleration transducer is built-in in the electronic equipment;The method includes:Persistently obtain the acceleration information that acceleration transducer is acquired during user swims;Accessed acceleration information is added sequentially in first circulation array;After acceleration information is added in the first circulation array, based on the current acceleration data in the first circulation array, judge whether the user occurs arm stroke;Also, based on each judging result, determine the swimming information of the user.User can be realized by electronic equipment that itself wears by this programme to understand the purpose of the swimming of oneself.
Description
Technical field
This application involves electronic device field, more particularly to a kind of swimming information detecting method, device and electronic equipment.
Background technology
With the high speed development of modern society and the continuous improvement of living standard, various body-building are increasingly becoming people's life
Important need in work.Swimming exercise boosts metabolism as a kind of public movement of positive health, exercise cardio-pulmonary function,
Increasingly liked by people.As other movements, the specification of swimming exercise or exercising way can greatly improve exercise effect
Fruit, and most of fan that swims is spontaneous exercise, cannot get the guidance of professional person.
Meanwhile with the fast development of intelligence wearing industry, more and more people begin to use wearable device, such as:
The electronic equipments such as smartwatch, Intelligent bracelet.Simultaneously as the development of sensor technology and the application of Low-power Technology, can wear
The basic model that the use scope of equipment reads from information and (such as reads step number, heart rate) is worn, is extended to based on multisensor
The accurate small tool of fusion.
Will be undoubtedly user if user can understand the swimming of oneself by the electronic equipment that itself wears
Great convenience is provided, there is higher user experience.
Invention content
In view of this, the application provides a kind of swimming information detecting method, device and electronic equipment, to realize that user passes through
The electronic equipment itself worn understands the purpose of the swimming of oneself.
Specifically, the application is achieved by the following technical solution:
In a first aspect, this application provides a kind of swimming information detecting method, applied to electronic equipment, the electronic equipment
In be built-in with acceleration transducer;The method includes:
Persistently obtain the acceleration information that acceleration transducer is acquired during user swims;
Accessed acceleration information is added sequentially in first circulation array;
After acceleration information is added in the first circulation array, based on current in the first circulation array
Acceleration information, judges whether the user occurs arm stroke;
Also, based on each judging result, determine the swimming information of the user.
Optionally, based on the current acceleration data in the first circulation array, judge whether the user occurs to draw
The step of hydrodynamic(al) is made, including:
Judge whether the current acceleration data in the first circulation array are periodic data;
When judging result is when being, from the current acceleration data, obtains the target corresponding to nearest a cycle
Acceleration information;
Based on the aimed acceleration data, judge whether the user occurs arm stroke.
Optionally, it is described to be based on the aimed acceleration data, the step of whether user occurs arm stroke judged,
Including:
Determine the first mode vector of the aimed acceleration data;
The matching degree of the first mode vector and the reference model vector of preset arm stroke is calculated, and based on described
Matching degree judges whether to meet default arm stroke condition, if so, judging that the user sends out arm stroke;Otherwise, it is determined that
The user does not send out arm stroke.
Optionally, the swimming information is number of striking;
It is described based on each judging result, the step of determining the swimming information of the user, including:
Whenever detect show that user sends out the judging result of arm stroke when, the completion of the user is struck number
Increase primary, obtain the current completion of the user and strike number.
Optionally, the swimming information is swimming stroke;
It is described based on each judging result, the step of determining the swimming information of the user, including:
Whenever detect show that user sends out the judging result of arm stroke when, determine and preserve the first acceleration information;
Wherein, first acceleration information shows that user sends out aimed acceleration number corresponding to the judging result of arm stroke for this
According to;
For the first acceleration information determined every time, based on first acceleration information, determine that the user corresponds to
An alternative stroke, and preserve the alternative stroke determined;
Also, when judging to meet default stroke analysis condition, based on each alternative stroke currently preserved, identification
The swimming stroke of the user;Wherein, the default stroke analysis condition is:The current quantity of alternative stroke that has preserved is more than
Preset quantity threshold value, alternatively, the judging result that arm stroke whether is sent out based on user determines that continuous strokes stop.
Optionally, it is described based on first acceleration information, the step of determining a user corresponding alternative stroke, packet
It includes:
Calculate the third mode arrow of the second acceleration information corresponding to the second mode vector sum of first acceleration information
Amount;Wherein, which was detected by last time shows that user sends out what is preserved during the judging result of arm stroke
Aimed acceleration data;
Judge whether strokes are stablized, and in stabilization based on the third mode vector described in the second mode vector sum
When, based on the second mode vector and/or the third mode vector, determine the corresponding alternative stroke of the user.
Optionally, it is described to judge whether strokes are stablized based on the third mode vector described in the second mode vector sum
The step of, including:
The matching degree of the third mode vector described in the second mode vector sum is calculated, and based on the matching calculated
Degree, judges whether to meet deliberate action stable condition, if so, judgement strokes are stablized;Otherwise, it is determined that strokes are unstable
It is fixed;
It is described based on the second mode vector and/or the third mode vector, determine that the user is corresponding one standby
The step of selecting stroke, including:
Calculate the second mode vector and/or the third mode vector reference mould with preset all kinds of strokes respectively
The matching degree of formula vector, and according to the matching degree calculated, obtain the corresponding alternative stroke of the user.
Optionally, the electronic equipment is also built-in with geomagnetic sensor, and the swimming information is the swimming number of turns;
It is described based on each judging result, the step of determining the swimming information of the user, including:
When determining that continuous strokes stop based on each judging result, geomagnetic sensor is persistently obtained in the use
The geomagnetic data acquired during the swimming of family;
Accessed geomagnetic data is added sequentially in second circulation array;
After geomagnetic data is added in the second circulation array, the current position in the second circulation array is determined
The plateau data of magnetic data and the dynamic variable quantity based on time-domain difference;
Also, based on the plateau data determined and dynamic variable quantity, determine the swimming number of turns of the user.
Optionally, it is described based on the plateau data determined and dynamic variable quantity, determine the swimming of the user
The step of number of turns, including:
When detecting the presence of the target dynamic variable quantity more than default variable quantity threshold value, the target dynamic variable quantity is judged
Whether the adjacent data of corresponding geomagnetic data belongs to plateau data, if so, the completion swim ring by the user
Number increases half-turn, obtains the current swimming number of turns of completion of the user.
Optionally, whether the adjacent data for judging geomagnetic data corresponding to the target dynamic variable quantity belongs to steady shape
State data, if so, the step of swimming pool number of turns that the user is completed increases half-turn, including:
Judge whether the adjacent data of geomagnetic data corresponding to the target dynamic variable quantity belongs to plateau data, and sentence
Whether disconnected target duration is higher than preset duration threshold value and/or whether target strikes number higher than preset times threshold value, if it is determined that
Result is to be, the swimming pool number of turns that the user is completed increases half-turn;Wherein, a length of current time and upper one during the target
Duration during secondary increase half-turn between the corresponding moment, the target strike number to draw time number in the target duration.
Second aspect, present invention also provides a kind of swimming information detectors, and applied to electronic equipment, the electronics is set
Acceleration transducer is built-in in standby;Described device includes:
Acceleration information acquiring unit is acquired for persistently obtaining the acceleration transducer during user swims
Acceleration information;
Acceleration information adding unit, for accessed acceleration information to be added sequentially to first circulation array
In;
Arm stroke judging unit, for whenever in the first circulation array add in acceleration information after, based on institute
The current acceleration data in first circulation array are stated, judge whether the user occurs arm stroke;
Swimming information determination unit, for being based on each judging result, determines the swimming information of the user.
The third aspect, present invention also provides a kind of electronic equipment, including:Processor, can for storing the processor
The memory of execute instruction;
Wherein, the processor, for performing the swimming information detecting method that the application first aspect is provided.
Fourth aspect, present invention also provides a kind of computer readable storage medium, the storage medium is stored with calculating
Machine program, the computer program are used to perform the swimming information detecting method that the application first aspect is provided.
In scheme provided herein, electronic equipment persistently obtains acceleration transducer and is acquired during user swims
Acceleration information;Accessed acceleration information is added sequentially in first circulation array;It is followed whenever described first
After adding in acceleration information in number of rings group, based on the current acceleration data in the first circulation array, the user is judged
Whether arm stroke is occurred;Also, based on each judging result, determine the swimming information of the user.It is as it can be seen that provided herein
Scheme can realize user by electronic equipment that itself wears to understand the purpose of the swimming of oneself.
Description of the drawings
Fig. 1 is a kind of flow chart of swimming information detecting method provided herein;
Fig. 2 is the direction schematic diagram of three axis of acceleration transducer in the application;
Fig. 3 is a kind of another flow chart of swimming information detecting method provided herein;
Fig. 4 is a kind of another flow chart of swimming information detecting method provided herein;
Fig. 5 is a kind of another flow chart of swimming information detecting method provided herein;
Fig. 6 is a kind of structure diagram of swimming information detector provided herein;
Fig. 7 is a kind of another structure diagram of swimming information detector provided herein;
Fig. 8 is the structure diagram of a kind of electronic equipment provided herein.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only merely for the purpose of description specific embodiment in term used in this application, and is not intended to be limiting the application.
It is also intended in the application and " one kind " of singulative used in the attached claims, " described " and "the" including majority
Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps
Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from
In the case of the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
This application provides a kind of swimming information detecting method, device and electronic equipment, to realize that user is worn by itself
The electronic equipment worn understands the purpose of the swimming of oneself.
A kind of swimming information detecting method provided herein is introduced first below.
It should be noted that a kind of executive agent of swimming information detecting method provided herein can be a kind of trip
Swimming information detector.The swimming information detector is run in electronic equipment, which is built-in with acceleration sensing
Device.Wherein, which can obtain the acceleration information that the acceleration transducer is acquired, and then utilize institute
The acceleration information of acquisition performs the analysis about swimming information.
In a particular application, which can be the wearable devices such as smartwatch, Intelligent bracelet, Intelligent glove.
Also, the acceleration transducer can be three axis, six axis etc.;In addition, it is necessary to, it is emphasized that the acceleration transducer can be independent
In the presence of alternatively, the acceleration transducer can be integrated with other sensors, which can be that earth magnetism senses
Device, pressure sensor, optical sensor etc..
It is understood that the swimming due to understanding user using the electronic equipment, in user's swimming process
In the electronic equipment still be worn on user.
As shown in Figure 1, a kind of swimming information detecting method provided herein, may include steps of:
S101 persistently obtains the acceleration information that acceleration transducer is acquired during user swims;
During user swims, the acceleration transducer in the electronic equipment that user is worn can be accelerated with continuous collecting
Degrees of data;And the swimming information detector can continue to obtain what the acceleration transducer was acquired during user swims
Acceleration information, and then obtained acceleration information is utilized to perform subsequent detection process.
It should be noted that since the acceleration information that the acceleration transducer is acquired during user swims is to connect
Continuous signal, for the ease of analysis, can obtain one section of acceleration information, i.e. data corresponding to certain amount sampled point every time
Section.Also, the length of the acceleration information obtained every time can be more than the length of the acceleration information corresponding to an arm stroke
Degree, such as:The length of acceleration information corresponding to arm stroke twice or thrice, specific length value do not limit herein;Its
In, the length of the acceleration information corresponding to an arm stroke can be determined according to statistical analysis.
Also, the acceleration information acquired in the swimming information detector can be all axis of acceleration transducer
Acceleration information;Certainly, in order to reduce calculation amount, acquired acceleration information can be only that can most reflect arm stroke
The acceleration information of one axis, wherein, can most reflect the acceleration information of an axis of arm stroke can determine according to statistical analysis.
As shown in Fig. 2, the direction corresponding to Fig. 2 shows each axis of acceleration transducer, wherein, x-axis is is directed toward finger orientation, i.e.,
Direction of advance, z-axis are upper and lower directions, and through analysis it is found that z-axis can most reflect arm stroke, therefore, in order to reduce calculation amount,
Acquired acceleration information can be only the acceleration information of z-axis.
Accessed acceleration information is added sequentially in first circulation array by S102;
After getting acceleration information every time, which can be by accessed acceleration information
It is added in first circulation array, in this way, a data segment to be analyzed can be obtained every time, and then, it can be to every number
It is analyzed according to section.It should be noted that when accessed acceleration information is added to first circulation array, opened from end
Begin to add in, in this way, data are removed earlier in first circulation array, ensure that the data age of first circulation array.
Wherein, the length of first circulation array can be identical with the length of the acceleration information obtained every time, in this way, by institute
After the acceleration information got is added to first circulation array, the current data of the first circulation array only includes current institute
The acceleration information got;And the length of first circulation array can also be more than the length of acceleration information acquired every time
Degree, after accessed acceleration information is added to first circulation array in this way, the current data of the first circulation array was both
Including current accessed acceleration information, also include all or part of data of the acceleration information acquired in the last time.
S103, after acceleration information is added in the first circulation array, based on working as in the first circulation array
Preacceleration data, judge whether the user occurs arm stroke;
It, can be based in the first circulation array after thering is new acceleration information to be added to first circulation array every time
Current acceleration data, judge whether the user occurs arm stroke.
Optionally, in a kind of specific implementation, based on the current acceleration data in the first circulation array, judge
The step of whether user occurs arm stroke can include:
Judge whether the current acceleration data in the first circulation array are periodic data;
When judging result is when being, from the current acceleration data, obtains the target corresponding to nearest a cycle and add
Speed data;
Based on the aimed acceleration data, judge whether the user occurs arm stroke.
For the current acceleration data in first circulation array, since arm stroke belongs to the period during user's swimming
Sexual act, therefore, when judging whether user occurs arm stroke, can first determine whether current in the first circulation array plus
Whether speed data is periodic data, and then when the determination result is yes, performs further analysis.Wherein, judge this first
Cycle array in current acceleration data whether be periodic data concrete mode can include but is not limited to auto-correlation,
The modes such as period enhancing, power spectrum, Fourier transformation specifically using which kind of mode, may be set according to actual conditions, the application
It does not limit.And, it is understood that whether the current acceleration data in the first circulation array is judged are periodically
Before data, can current acceleration data be removed with baseline interference processing, to ensure different strokes
It is analyzed by using in a manner of provided herein;Wherein, removing the concrete mode of baseline interference can include but is not limited to
The modes such as line style mean value, fitting of a polynomial, wavelet decomposition, empirical mode decomposition, specifically can be according to reality using which kind of mode
Situation is set, and the application does not limit.
Wherein, it is described based on the aimed acceleration data, the step of whether user occurs arm stroke judged, can be wrapped
It includes:
Determine the first mode vector of the aimed acceleration data;
The matching degree of the first mode vector and the reference model vector of preset arm stroke is calculated, and based on the matching
Degree, judges whether to meet default arm stroke condition, if so, judging that the user sends out arm stroke;Otherwise, it is determined that the user
Arm stroke is not sent out.
Wherein, the first mode vector of the aimed acceleration can include but is not limited to:Mean value, standard deviation, maximum value,
Minimum value, the degree of bias, kurtosis etc. specifically using which kind of type, may be set according to actual conditions, the application does not limit this.
It is described to calculate the first mode vector and the ginseng of preset arm stroke also, in a kind of specific implementation
Examining the matching degree of pattern vector can include:Calculate the first mode vector and the reference model vector of preset arm stroke
Similarity;Correspondingly, it is described based on the matching degree, judge whether to meet default arm stroke condition, can include:Judgement is counted
Whether the similarity of calculating is more than the first similarity threshold, if so, judgement meets default arm stroke condition.
It is described to calculate the first mode vector and the reference mould of preset arm stroke in another specific implementation
The matching degree of formula vector can include:Calculate the vector of the first mode vector and the reference model vector of preset arm stroke
Distance;Correspondingly, it is described based on the matching degree, judge whether to meet default arm stroke condition, can include:Judgement is calculated
Whether the vector distance gone out is less than the first vector distance threshold value, if so, judgement meets default arm stroke condition.
It is understood that the statistical index of reflection similarity can include but is not limited to:When related coefficient, dynamic
Between it is regular etc.;And the type of vector distance can include but is not limited to:Euclidean distance (euclidean metric), Hamming
Distance (Hamming distance), markov distance (Markov distance), Minkowski Distance
(MinkowskiDistance), manhatton distance (Manhattan Distance), Chebyshev's distance Chebyshev
Distance etc..In addition, the reference model vector of preset arm stroke can including but not limited to observe the warp of gained
Test data and the analysis result based on data, etc..
It is above-mentioned based on the aimed acceleration data, judge the specific implementation for the step of whether user occurs arm stroke
Mode should not form the restriction to the application as just example, such as:It can also be identified by neural network model
The aimed acceleration data, so as to obtain the recognition result whether user occurs arm stroke.Similar, it is above-mentioned based on institute
The current acceleration data in first circulation array are stated, judge the specific implementation for the step of whether user occurs arm stroke
Mode should not form the restriction to the application as just example.
S104 based on each judging result, determines the swimming information of the user.
Due to whenever in the first circulation array add in acceleration information after, can be based in the first circulation array
Current acceleration data, judge whether the user occurs arm stroke, therefore, can obtain multiple judging results;And then the trip
Swimming information detector can be based on each judgement as a result, determining the swimming information of the user.
It should be noted that in a particular application, which can be strike number, swimming stroke, the swimming number of turns
In it is one or more, be not limited thereto certainly.Wherein, the swimming number of turns refers to the how many circles of the common trip of primary swimming, and each circle is two
A swimming pool length;Stroke of swimming includes breaststroke, freestyle swimming, backstroke etc..It is understood that by the detection to information of swimming,
User's rate of striking typically more being concerned about, distance of striking can be calculated and with parameter informations such as speed, wherein, rate of striking
For the number of striking in the unit time, distance of striking draws time distance of advance, the time with speed used in every hundred meters for unit.
In order to which scheme understands and is laid out clearly, subsequently respectively using information of swimming as number of striking, swimming stroke and swim ring
Number is specific example, and swimming information detecting method provided herein is introduced.It is understood that it can be based on each
It is a to judge at least two swimming information as a result, in the number that determines to strike simultaneously, swimming stroke and the number of turns of swimming, to meet simultaneously
The demand of at least two swimming information of detection, wherein, in the number that determines to strike at the same time, swimming stroke and the swimming number of turns at least
During two kinds of swimming information, corresponding specific reality hereinafter is referred to for specific method of determination of each swimming information
Apply the realization method given by example.
In scheme provided herein, electronic equipment persistently obtains acceleration transducer and is acquired during user swims
Acceleration information;Accessed acceleration information is added sequentially in first circulation array;Whenever in the first circulation
After adding in acceleration information in array, based on the current acceleration data in the first circulation array, judge whether the user sends out
Raw arm stroke;Also, based on each judging result, determine the swimming information of the user.As it can be seen that scheme provided herein can
Understand the purpose of the swimming of oneself to realize user by electronic equipment that itself wears.
By taking number of striking is swimming information as an example, it is situated between to a kind of swimming information detecting method provided herein
It continues.
It should be noted that a kind of executive agent of swimming information detecting method provided herein can be a kind of trip
Swimming information detector.The swimming information detector is run in electronic equipment, which is built-in with acceleration sensing
Device.Wherein, which can obtain the acceleration information that the acceleration transducer is acquired, and then utilize institute
The acceleration information of acquisition performs the analysis about swimming information.
In a particular application, which can be the wearable devices such as smartwatch, Intelligent bracelet, Intelligent glove.
Also, the acceleration transducer can be three axis, six axis etc.;In addition, it is necessary to, it is emphasized that the acceleration transducer can be independent
In the presence of alternatively, the acceleration transducer can be integrated with other sensors, which can be that earth magnetism senses
Device, pressure sensor, optical sensor etc..
It is understood that the swimming due to understanding user using the electronic equipment, in user's swimming process
In the electronic equipment still be worn on user.
As shown in figure 3, a kind of swimming information detecting method provided herein, may include steps of:
S201 persistently obtains the acceleration information that acceleration transducer is acquired during user swims;
Accessed acceleration information is added sequentially in first circulation array by S202;
S203, after acceleration information is added in the first circulation array, based on working as in the first circulation array
Preacceleration data, judge whether the user occurs arm stroke;
In the present embodiment, S201-S203 is identical with the S101-S103 in above-described embodiment, and this will not be repeated here.
S204, whenever detect show that user sends out the judging result of arm stroke when, the completion of the user is struck
Number increases primary, obtains the current completion of the user and strikes number.
In the present embodiment, S204 is the specific implementation of S104 in above-described embodiment.
It is understood that whenever judging result shows that user sends out arm stroke, then it can be by the completion of the user
Number of striking increases primary, obtains the current completion of the user and strikes number.Also, work as and meet number record end item of striking
During part, final strike number of the number for this swimming of user of striking will have been completed.Wherein, time number record end condition is drawn
Can be to show that user does not send out arm stroke to continue the obtained judging result of scheduled duration, alternatively, obtained company
Continuous multiple judging results show that user does not send out arm stroke, alternatively, receiving the END instruction that user sends out.
Also, after the final number of striking for obtaining this swimming of user, the final number of striking, meter can be utilized
Calculation obtains rate of striking;And swimming under the premise of determined, swimming distance and the number of striking can also be based on, is calculated
Obtain distance, etc. of striking.
As it can be seen that by this specific example, user can be realized by electronic equipment that itself wears to understand the trip of oneself
The purpose for level of swimming, also, the swimming information especially recognized is number of striking.
By taking stroke of swimming is swimming information as an example, it is situated between to a kind of swimming information detecting method provided herein
It continues.
It should be noted that a kind of executive agent of swimming information detecting method provided herein can be a kind of trip
Swimming information detector.The swimming information detector is run in electronic equipment, which is built-in with acceleration sensing
Device.Wherein, which can obtain the acceleration information that the acceleration transducer is acquired, and then utilize institute
The acceleration information of acquisition performs the analysis about swimming information.
In a particular application, which can be the wearable devices such as smartwatch, Intelligent bracelet, Intelligent glove.
Also, the acceleration transducer can be three axis, six axis etc.;In addition, it is necessary to, it is emphasized that the acceleration transducer can be independent
In the presence of alternatively, the acceleration transducer can be integrated with other sensors, which can be that earth magnetism senses
Device, pressure sensor, optical sensor etc..
It is understood that the swimming due to understanding user using the electronic equipment, in user's swimming process
In the electronic equipment still be worn on user.
As shown in figure 4, a kind of swimming information detecting method provided herein, may include steps of:
S301 persistently obtains the acceleration information that acceleration transducer is acquired during user swims;
Accessed acceleration information is added sequentially in first circulation array by S302;
S303, after acceleration information is added in the first circulation array, based on working as in the first circulation array
Preacceleration data, judge whether the user occurs arm stroke;
In the present embodiment, S301-S303 is identical with the S101-S103 of above-described embodiment, and this will not be repeated here.
S304, whenever detect show that user sends out the judging result of arm stroke when, determine and preserve the first acceleration
Data;Wherein, which shows that user sends out aimed acceleration corresponding to the judging result of arm stroke for this
Data;
S304-S306 is the specific implementation of S104 in the present embodiment.
S305 for the first acceleration information determined every time, based on first acceleration information, determines the user couple
The alternative stroke answered, and preserve the alternative stroke determined;
Since each arm stroke can embody stroke, after the first acceleration information is determined every time,
First acceleration information can be based on, determines the corresponding alternative stroke of the user, and preserve the alternative swimming determined
Appearance, and then, the swimming stroke of user is determined using a large amount of alternative stroke.
Optionally, in a kind of specific implementation, based on first acceleration information, determine that the user is corresponding one standby
The step of selecting stroke can include:
Calculate the second mode vector of first acceleration information;
Matching degree of the second mode vector respectively with the reference model vector of preset all kinds of strokes is calculated, and according to institute
The matching degree calculated obtains the corresponding alternative stroke of the user.
Wherein, second mode vector can include but is not limited to:Mean value, standard deviation, maximum value, minimum value, the degree of bias, peak
Degree etc., specifically using which kind of type, may be set according to actual conditions, the application does not limit this.Also, the matching
Degree can be similarity or vector distance, wherein, it, can will be corresponding to the stroke of maximum similarity when matching degree is similarity
As the corresponding alternative stroke of the user;And when matching degree is vector distance, it can will be corresponding to minimum vector distance
Stroke is as the corresponding alternative stroke of the user.In addition, the reference model vector of all kinds of strokes can include but is not limited to
Observe the empirical data of gained and the analysis result based on data, etc..
Optionally, in order to improve the reliability of alternative stroke, in another specific implementation, based on first acceleration
Degrees of data, can include the step of determining a user corresponding alternative stroke:
Calculate the third mode arrow of the second acceleration information corresponding to the second mode vector sum of first acceleration information
Amount;Wherein, which was detected by last time shows that user sends out what is preserved during the judging result of arm stroke
Aimed acceleration data;
Based on the second mode vector sum, the third mode vector judges whether strokes are stablized, and when stablizing, base
In the second mode vector and/or the third mode vector, the corresponding alternative stroke of the user is determined.
It is understood that the concrete type of the third mode vector is identical with the type of second mode vector.
Specifically, the step for judging whether strokes stablize based on the second mode vector sum the third mode vector
Suddenly, can include:
The matching degree of the second mode vector sum the third mode vector is calculated, and based on the matching degree calculated, is sentenced
It is disconnected whether to meet deliberate action stable condition, if so, judgement strokes are stablized;Otherwise, it is determined that strokes are unstable;
Correspondingly, described based on the second mode vector and/or the third mode vector, determine that the user is corresponding one standby
The step of selecting stroke can include:
The second mode vector and/or the third mode vector is calculated to swear with the reference model of preset all kinds of strokes respectively
The matching degree of amount, and according to the matching degree calculated, obtain the corresponding alternative stroke of the user.
Wherein, the matching degree for calculating the second mode vector sum the third mode vector is specifically as follows:Calculate this second
The similarity or vector distance of pattern vector and the third mode vector.Correspondingly, when matching degree is similarity, based on being calculated
The matching degree gone out judges whether that meeting deliberate action stable condition can include:Judge whether calculated similarity is more than
A preset similarity threshold, if it is greater, then judgement meets deliberate action stable condition;Alternatively, when matching degree for vector away from
From when, based on the matching degree calculated, judge whether that meeting deliberate action stable condition can include:Judge what is calculated
Whether vector distance is less than preset vector distance threshold value, if it is greater, then judgement meets deliberate action stable condition.
It should be noted that calculate the second mode vector and/or the third mode vector respectively with preset all kinds of swimming
The matching degree of the reference model vector of appearance can be:Calculate the second mode vector and/or the third mode vector respectively in advance
If all kinds of strokes reference model vector similarity, alternatively, calculating the second mode vector and/or the third mode vector
Respectively with the vector distance of the reference model vector of preset all kinds of strokes.
It is understood that since strokes are stablized, which can calculate second mould
The formula vector matching degree with the reference model vector of preset all kinds of strokes respectively;Alternatively, the swimming information detector can be with
Calculate matching degree of the third mode vector respectively with the reference model vector of preset all kinds of strokes;Certainly, the swimming information
Detection device can also calculate the second mode vector sum the third mode vector reference mould with preset all kinds of strokes respectively
The matching degree of formula vector, this is all reasonable.
Specifically, ought individually calculate the second mode vector or the third mode vector respectively with preset all kinds of strokes
It is described according to the matching degree calculated if matching degree is similarity during the matching degree of reference model vector, obtain the use
The corresponding alternative stroke in family can include:It will be determined as the corresponding alternative swimming of user corresponding to the stroke of highest similarity
Appearance;And if matching is vector distance, it is described according to the matching degree calculated, obtain the corresponding alternative stroke of the user
It can include:It will be determined as the corresponding alternative stroke of user corresponding to the stroke of minimum vector distance.
Specifically, and when calculating the second mode vector sum the third mode vector ginseng with preset all kinds of strokes respectively
It is described according to the matching degree calculated if matching degree is similarity when examining the matching degree of pattern vector, obtain the user
A corresponding alternative stroke can include:For each stroke, by the similarity corresponding to the second mode vector and it is somebody's turn to do
Similarity corresponding to the third mode vector is averaging, and obtains comprehensive similarity, and will be corresponding to the swimming of highest comprehensive similarity
Appearance is determined as the corresponding alternative stroke of user;It is described according to the matching degree calculated if matching degree is vector distance,
Obtaining the corresponding alternative stroke of the user can include:It, will be corresponding to the second mode vector for each stroke
Vector distance corresponding to vector distance and the third mode vector is averaging, and obtains synthetic vector distance, and will correspond to most
The stroke of small synthetic vector distance is determined as the corresponding alternative stroke of user.It is emphasized that it is above-mentioned based on this first
Acceleration information, the step of determining a user corresponding alternative stroke, are merely exemplary, should not form to the application
Restriction, such as:First acceleration information is identified using deep neural network model, is obtained first acceleration information and is accorded with
The stroke of conjunction, and using the stroke as the alternative stroke of the user.
S306, when judging to meet default stroke analysis condition, based on each alternative stroke currently preserved, identification
The swimming stroke of the user.
Wherein, which is:The current quantity of alternative stroke preserved is more than preset quantity threshold value,
Alternatively, the judging result that arm stroke whether is sent out based on user determines that continuous strokes stop.It is so-called to be based on user
The judging result for whether sending out arm stroke determines that continuous strokes stopping is specifically as follows:When obtained by lasting scheduled duration
To judging result be to show that user does not send out arm stroke, alternatively, when obtained continuous multiple equal tables of judging result
Bright user does not send out arm stroke, it can be assumed that continuous strokes stop, being not limited thereto certainly.
Based on each alternative stroke currently preserved, identifying the specific implementation of the swimming stroke of the user can wrap
It includes:By the most target alternative stroke of occurrence number in each alternative stroke, it is determined as the swimming stroke of the user, certainly not
It is confined to this.
As it can be seen that by this specific example, user can be realized by electronic equipment that itself wears to understand the trip of oneself
The purpose for level of swimming.
By taking the number of turns of swimming is swimming information as an example, it is situated between to a kind of swimming information detecting method provided herein
It continues.
It should be noted that a kind of executive agent of swimming information detecting method provided herein can be a kind of trip
Swimming information detector.The swimming information detector is run in electronic equipment, which is built-in with acceleration sensing
Device and geomagnetic sensor.Wherein, which can obtain the acceleration number of degrees that the acceleration transducer is acquired
According to, and then acquired acceleration information is utilized to perform the analysis about swimming information;Also, the swimming information detector can
To obtain the geomagnetic data that the geomagnetic sensor is acquired, and then acquired geomagnetic data is utilized to perform about swimming information
Analysis.
In a particular application, which can be the wearable devices such as smartwatch, Intelligent bracelet, Intelligent glove.
The acceleration transducer can be three axis, six axis etc.;And the geomagnetic sensor can be three axis, six axis etc..In addition, it is necessary to it emphasizes
, the acceleration transducer and the geomagnetic sensor can be individually present, alternatively, the acceleration transducer and the geomagnetic data
Collective's one, alternatively, the acceleration transducer and/or the geomagnetic sensor can be integrated with other sensors, this other
Sensor can be pressure sensor, optical sensor etc..
It is understood that the swimming due to understanding user using the electronic equipment, in user's swimming process
In the electronic equipment still be worn on user.
It is that pause is identified by acceleration transducer or is turned round dynamic it is emphasized that for the number of turns is swum in detection
Make, and be aided with the directional information of geomagnetic sensor, to judge various touch turns, touch wall including standard and turn round the action that pushes off, short
Pause continues after having a rest, singlehanded tactile wall one hand is struck and turned round.
As shown in figure 5, a kind of swimming information detecting method provided herein, may include steps of:
S401 persistently obtains the acceleration information that acceleration transducer is acquired during user swims;
Accessed acceleration information is added sequentially in first circulation array by S402;
S403, after acceleration information is added in the first circulation array, based on working as in the first circulation array
Preacceleration data, judge whether the user occurs arm stroke;
In the present embodiment, S401-S403 is identical with the S101-S103 of above-described embodiment, and this will not be repeated here.
S404 when determining that continuous strokes stop based on each judging result, persistently obtains geomagnetic sensor and exists
The geomagnetic data acquired during user swimming;
In the present embodiment, S404-S407 is the specific implementation of S104 in above-described embodiment.
Determine that continuous strokes stopping can specifically refer to based on each judging result:Obtained by lasting scheduled duration
Judging result be to show that user does not send out arm stroke, alternatively, when obtained continuous multiple judging results show
User does not send out arm stroke, it can be assumed that continuous strokes stop, being not limited thereto certainly.
During user swims, geomagnetic sensor in the electronic equipment that user is worn can with continuous collecting magnetic number
According to therefore, which can continue to obtain the ground that geomagnetic sensor is acquired during the user swims
Magnetic data.
It should be noted that since the geomagnetic data that the geomagnetic sensor is acquired during user swims is continuously to believe
Number, for the ease of analysis, one section of geomagnetic data, i.e. data segment corresponding to certain amount sampled point can be obtained every time.Also,
The specific length value of the length of the geomagnetic data obtained every time does not limit herein.
Also, the geomagnetic data acquired in the swimming information detector can be the earth magnetism of all axis of geomagnetic sensor
Data;Certainly, in order to reduce calculation amount, acquired geomagnetic data can be only the ground magnetic number that can most reflect the axis turned round
According to, wherein, it can most reflect that the geomagnetic data of an axis turned round can be determined according to statistical analysis.Assuming that the x-axis of geomagnetic sensor
To be directed toward finger orientation, i.e., direction of advance, z-axis are upper and lower directions, and through analysis it is found that z-axis can most reflect touch turn, because
This, in order to reduce calculation amount, acquired geomagnetic data can be only the geomagnetic data of z-axis.
Accessed geomagnetic data is added sequentially in second circulation array by S405;
After getting geomagnetic data every time, which can add in accessed geomagnetic data
Into second circulation array, in this way, a data segment to be analyzed can be obtained every time, and then, it can be to each data segment
It is analyzed.It should be noted that when accessed geomagnetic data is added to second circulation array, add since end
Enter, in this way, data are removed earlier in second circulation array, ensure that the data age of second circulation array.
Wherein, the length of second circulation array can be identical with the length of the geomagnetic data obtained every time, in this way, by being obtained
After the geomagnetic data got is added to second circulation array, the current data of the second circulation array is only including current acquired
The geomagnetic data arrived;And the length of second circulation array can also be more than the length of geomagnetic data acquired every time, in this way will
After accessed geomagnetic data is added to second circulation array, the current data of the second circulation array both includes currently being obtained
The geomagnetic data got also includes all or part of data of the geomagnetic data acquired in the last time.
S406 after geomagnetic data is added in the second circulation array, is determined current in the second circulation array
The plateau data of geomagnetic data and the dynamic variable quantity based on time-domain difference;
Wherein, the method for determination of the plateau data of the current geomagnetic data in the second circulation array can include but
It is not limited to:Period continuity detection mode, the steady detection mode of frequency, time-frequency detection mode etc..
In addition, empty in swimming recruit stable swimming state, when strokes pause or pool side are turned round, can interrupt smoothly
Swimming state continually looks for stable swimming state, the difference of adjacent two kinds of swimming states, you can judge whether after turning round
There is the generation of touch turn, hence, it can be determined that the plateau data of current geomagnetic data and the dynamic based on time-domain difference
Variable quantity.
S407 based on the plateau data determined and dynamic variable quantity, determines the swimming number of turns of the user.
Optionally, it is described based on the plateau data determined and dynamic change in a kind of specific implementation
The step of measuring, determining the swimming number of turns of the user, can include:
When detecting the presence of the target dynamic variable quantity more than default variable quantity threshold value, the target dynamic variable quantity is judged
Whether the adjacent data of corresponding geomagnetic data belongs to plateau data, if so, the swimming number of turns of completion by the user
Increase half-turn, obtain the current swimming number of turns of completion of the user.
It is emphasized that it is before stable swimming state that user, which during swimming, turns round, can be beaten when turning round
Disconnected stable swimming state, and after turning round, stable swimming state can be restored, therefore, steady-dynamic change-is stable
The foundation that continuous process can be turned round as identification.It based on the processing thought, is turned round to identify, i.e., whether needs to increase and swim
The number of turns, it is more than the target dynamic variable quantity for presetting variable quantity threshold value, also, be more than when detecting the presence of that can detect whether to exist
During the target dynamic variable quantity of default variable quantity threshold value, the adjacent data of geomagnetic data corresponding to the target dynamic variable quantity is judged
Whether plateau data are belonged to, if so, the swimming number of turns of completion of the user is increased half-turn.
Optionally, in order to avoid being that user midway is turned round, the accuracy of number of turns identification, described judgement target dynamic are improved
Whether the adjacent data of geomagnetic data corresponding to variable quantity belongs to plateau data, if so, the swimming pool that the user is completed
The number of turns increases the step of half-turn, can include:
Judge whether the adjacent data of geomagnetic data corresponding to the target dynamic variable quantity belongs to plateau data, and sentence
Whether disconnected target duration is higher than preset duration threshold value and/or whether target strikes number higher than preset times threshold value, if it is determined that
Result is to be, the swimming pool number of turns which is completed increases half-turn;Wherein, a length of current time increases with last during the target
Duration when adding half-turn between the corresponding moment, the target strike number to draw time number in the target duration.
It is understood that it is that the swimming information detector is identifying for the strike premise of the judgement of number of target
While the number of turns of swimming also when identification draws and time strikes number, the target can be obtained and struck number, and then drawn based on the target
Waterside number performs corresponding judgement.
In a particular application, which can indicate that user inputs the length of swimming pool, and then, Ke Yigen
According to the length of swimming pool and the conventional levels value for distance of striking, the preset times threshold value is obtained;Alternatively, the swimming information detector
Can the preset times threshold value be obtained according to the conventional length of swimming pool and the conventional levels value for distance of striking.
Similar, which can indicate that user exports the length of swimming pool, and then, it can be according to swimming pool
Length and with speed conventional levels value, obtain the preset duration threshold value;Alternatively, the swimming information detector can be according to trip
The conventional length of swimming and the conventional levels value with speed, obtain the preset duration threshold value.
As it can be seen that by this specific example, user can be realized by electronic equipment that itself wears to understand the trip of oneself
The purpose for level of swimming.
With reference to a concrete application example, a kind of swimming information detecting method provided herein is introduced.Wherein, should
Swimming information includes strike number, swimming stroke and the swimming number of turns.Also, the electronic equipment is wearable watch, wherein, accelerate
The x-axis for spending sensor is directed toward finger orientation, and z-axis vertical surface is downward, and three axis of geomagnetic sensor are directed toward and acceleration transducer
It is identical.
A kind of swimming information detecting method, may include steps of:
Step (1), new acceleration sampled point is written into first circulation array, and end update calculates current array
Arm cycle tre;
Step (2) detects first peak value starwf1 of current data, according to striking week for step (1) since tail portion
Phase as a result, be pushed forward tre length from current point starwf1, interception characteristic sequence f [starwf1-tre+1] ... f [starwf1];
Step (3), if characteristic sequence f [starwf1-tre+1] ... f [starwf1] meets the ginseng of given arm stroke
Pattern vector is examined, then may have occurred and once strike, the last finish time prestkindx=starwf1-tre to strike of note
+ 1, the finish time curstkindx=starwf1 currently to strike go to step (4), otherwise go to step (1);
Step (4) calculates the last finish time prestkindx to strike and the finish time currently struck
Whether the time interval of curstkindx is more than first given threshold value, if it is confirms and an arm stroke has occurred, strike
Number strokes=stokes+1 goes to step (5), otherwise, is changed to the last knot struck the finish time currently struck
The beam moment (curstkindx=prestkindx) goes to step (1);
Step (5) stores the characteristic sequence S2 currently to strike, is gone to step if in the presence of the last characteristic sequence S1 to strike
(6), the characteristic sequence otherwise currently struck is struck characteristic sequence S1=S2 as the last time;It goes to step (1);
Step (6) calculates the similarity between characteristic sequence S1 and S2, if the similarity of S1 and S2 is more than the second given threshold
Value, then acts of determination continuous-stable, goes to step (7), otherwise goes to step (8);
Step (7) calculates the vector distance of characteristic sequence S1 and S2 and stroke feature templates (four kinds), is denoted as respectively respectively
DS1 [4] and DS2 [4], characteristic sequence S1 and S2 and the synthetic vector distance of each stroke are DAS []=(DS1 []+DS2
[])/2, if minimum value is more than third given threshold value in DAS [], the corresponding stroke of minimum value is denoted as alternative swimming in DAS []
Otherwise appearance is denoted as mixed type, go to step (8);
Step (8) judges whether continuous strokes terminate by acceleration and geomagnetic data, if so, (9) are gone to step,
Otherwise it goes to step (1);
Step (9) based on the alternative stroke recorded before, calculates swimming stroke in the current continuous strokes period,
It goes to step (10);
Step (10), according to the statistics knot of strike number and effective swimming time in the current continuous strokes period
Fruit, judges whether it meets the condition of new half-turn, and the swimming number of turns is increased half-turn if meeting, goes to step (11), otherwise turns to walk
Suddenly (1);
Step (11) exports currently detected number of striking, swimming stroke and the swimming number of turns.
Corresponding to above method embodiment, present invention also provides a kind of swimming information detectors, are set applied to electronics
It is standby, it is built-in with acceleration transducer in the electronic equipment;As shown in fig. 6, described device includes:
Acceleration information acquiring unit 610, for persistently obtaining acceleration transducer institute during user swims
The acceleration information of acquisition;
Acceleration information adding unit 620, for accessed acceleration information to be added sequentially to first circulation number
In group;
Arm stroke judging unit 630, for after acceleration information is added in the first circulation array, being based on
Current acceleration data in the first circulation array, judge whether the user occurs arm stroke;
Swimming information determination unit 640, for being based on each judging result, determines the swimming information of the user.
In scheme provided herein, electronic equipment persistently obtains acceleration transducer and is acquired during user swims
Acceleration information;Accessed acceleration information is added sequentially in first circulation array;It is followed whenever described first
After adding in acceleration information in number of rings group, based on the current acceleration data in the first circulation array, the user is judged
Whether arm stroke is occurred;Also, based on each judging result, determine the swimming information of the user.It is as it can be seen that provided herein
Scheme can realize user by electronic equipment that itself wears to understand the purpose of the swimming of oneself.
Optionally, as shown in fig. 7, the arm stroke judging unit 630 can include:
Periodical judgment sub-unit 631, for after acceleration information is added in the first circulation array, judging
Whether the current acceleration data in the first circulation array are periodic data;
Aimed acceleration obtain subelement 632, for when judging result for be when, from the current acceleration data,
Obtain the aimed acceleration data corresponding to nearest a cycle;
Arm stroke judgment sub-unit 633 for being based on the aimed acceleration data, judges whether the user occurs
Arm stroke.
Optionally, the arm stroke judgment sub-unit can include:
First mode vector determination module, for determining the first mode vector of the aimed acceleration data;
Arm stroke analysis module is sweared for calculating the first mode vector and the reference model of preset arm stroke
The matching degree of amount, and based on the matching degree, judge whether to meet default arm stroke condition, if so, judging the user
Send out arm stroke;Otherwise, it is determined that the user does not send out arm stroke.
Optionally, in a kind of specific implementation, the swimming information is number of striking;
The swimming information determination unit can include:
The true subelement of number of striking, for whenever detect show that user sends out the judging result of arm stroke when, by institute
Stating the number of striking of completion of user increases primary, obtains the current completion of the user and strikes number.
Optionally, in a kind of specific implementation, the swimming information is swimming stroke;
The swimming information determination unit can include:
First acceleration information determination subelement, for whenever detecting the judging result for showing that user sends out arm stroke
When, it determines and preserves the first acceleration information;Wherein, first acceleration information shows that user sends out arm stroke for this
Aimed acceleration data corresponding to judging result;
Alternative stroke determination subelement, for being directed to the first acceleration information determined every time, based on first acceleration
Degrees of data determines the corresponding alternative stroke of the user;
Stroke result determination subelement, for when judging to meet default stroke analysis condition, based on currently having preserved
Each alternative stroke, identify the swimming stroke of the user;Wherein, the default stroke analysis condition is:Currently preserve
Alternative stroke quantity be more than preset quantity threshold value, alternatively, the judging result that arm stroke whether is sent out based on user is determined
Go out continuous strokes to stop.
Optionally, the alternative stroke determination subelement can include:
The third mode vector determination module, for calculating corresponding to the second mode vector sum of first acceleration information
The third mode vector of two acceleration informations;Wherein, which detected that showing that user sends out struck for last time
The aimed acceleration data preserved during the judging result of action;
Stability analysis module judges that strokes are for the third mode vector described in being based on the second mode vector sum
No stabilization, and when stablizing, trigger result determining module;
The result determining module for being based on the second mode vector and/or the third mode vector, determines institute
State the corresponding alternative stroke of user.
Optionally, the stability analysis module is specifically used for:
The matching degree of the third mode vector described in the second mode vector sum is calculated, and based on the matching calculated
Degree, judges whether to meet deliberate action stable condition, if so, judgement strokes are stablized;Otherwise, it is determined that strokes are unstable
It is fixed;
The result determining module is specifically used for:
Calculate the second mode vector and/or the third mode vector reference mould with preset all kinds of strokes respectively
The matching degree of formula vector, and according to the matching degree calculated, obtain the corresponding alternative stroke of the user.
Optionally, in a kind of specific implementation, the electronic equipment is also built-in with geomagnetic sensor, the swimming letter
It ceases for the number of turns of swimming;
The swimming information determination unit can include:
Geomagnetic data acquires subelement, for when determining that continuous strokes stop based on each judging result, holding
The continuous geomagnetic data for obtaining geomagnetic sensor and being acquired during the user swims;
Geomagnetic data adds in subelement, for accessed geomagnetic data to be added sequentially in second circulation array;
Geomagnetic data analyzes subelement, for after geomagnetic data is added in the second circulation array, determining institute
State the plateau data of the current geomagnetic data in second circulation array and the dynamic variable quantity based on time-domain difference;
Swimming number of turns determination subelement, for based on the plateau data determined and dynamic variable quantity, determining institute
State the swimming number of turns of user.
Optionally, the swimming number of turns determination subelement can include:
Number of turns determining module, for when detecting the presence of the target dynamic variable quantity more than default variable quantity threshold value, sentencing
Whether the adjacent data of geomagnetic data corresponding to the target dynamic variable quantity that breaks belongs to plateau data, if so, by described in
The swimming number of turns of completion of user increases half-turn, obtains the current swimming number of turns of completion of the user.
Optionally, the number of turns determining module is specifically used for:
Judge whether the adjacent data of geomagnetic data corresponding to the target dynamic variable quantity belongs to plateau data, and sentence
Whether disconnected target duration is higher than preset duration threshold value and/or whether target strikes number higher than preset times threshold value, if it is determined that
Result is to be, the swimming pool number of turns that the user is completed increases half-turn;Wherein, a length of current time and upper one during the target
Duration during secondary increase half-turn between the corresponding moment, the target strike number to draw time number in the target duration.
The embodiment of the application swimming information detector can be applied on an electronic device.Device embodiment can pass through
Software is realized, can also be realized by way of hardware or software and hardware combining.For implemented in software, anticipate as a logic
Device in justice is by computer program instructions corresponding in nonvolatile memory by the processor of electronic equipment where it
Read what operation in memory was formed.For hardware view, as shown in figure 8, for where the application swimming information detector
A kind of hardware structure diagram of electronic equipment, in addition to processor 810 shown in Fig. 8, internal bus 820, network interface 830, memory
840 and nonvolatile memory 850 except, electronic equipment in embodiment where device is generally according to the reality of the electronic equipment
Function can also include other hardware, this is repeated no more.
In addition, corresponding to above method embodiment, the embodiment of the present application additionally provides a kind of computer readable storage medium,
The storage medium is stored with computer program, and the computer program is used to perform the above-mentioned swimming infomation detection side of the application
Method.
The function of each unit and the realization process of effect specifically refer to and step are corresponded in the above method in above device
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separate, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place or can also be distributed in multiple network element.It can be according to reality
It needs that some or all of module therein is selected to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
The foregoing is merely the preferred embodiment of the application, not limiting the application, all essences in the application
God and any modification, equivalent substitution, improvement and etc. within principle, done, should be included within the scope of the application protection.
Claims (13)
1. a kind of swimming information detecting method, which is characterized in that applied to electronic equipment, acceleration is built-in in the electronic equipment
Spend sensor;The method includes:
Persistently obtain the acceleration information that acceleration transducer is acquired during user swims;
Accessed acceleration information is added sequentially in first circulation array;
After acceleration information is added in the first circulation array, based on working as preacceleration in the first circulation array
Degrees of data, judges whether the user occurs arm stroke;
Also, based on each judging result, determine the swimming information of the user.
2. according to the method described in claim 1, it is characterized in that, based on the current acceleration number in the first circulation array
According to, the step of whether user occurs arm stroke judged, including:
Judge whether the current acceleration data in the first circulation array are periodic data;
When judging result is when being, from the current acceleration data, obtains the target corresponding to nearest a cycle and accelerate
Degrees of data;
Based on the aimed acceleration data, judge whether the user occurs arm stroke.
3. according to the method described in claim 2, it is characterized in that, described based on the aimed acceleration data, described in judgement
The step of whether user occurs arm stroke, including:
Determine the first mode vector of the aimed acceleration data;
The matching degree of the first mode vector and the reference model vector of preset arm stroke is calculated, and based on the matching
Degree, judges whether to meet default arm stroke condition, if so, judging that the user sends out arm stroke;It is otherwise, it is determined that described
User does not send out arm stroke.
4. according to the method described in claim 2, it is characterized in that, the swimming information is number of striking;
It is described based on each judging result, the step of determining the swimming information of the user, including:
Whenever detect show that user sends out the judging result of arm stroke when, by the completion of the user strike number increase
Once, the current completion of the user is obtained to strike number.
5. according to the method described in claim 2, it is characterized in that, the swimming information is swimming stroke;
It is described based on each judging result, the step of determining the swimming information of the user, including:
Whenever detect show that user sends out the judging result of arm stroke when, determine and preserve the first acceleration information;Wherein,
First acceleration information shows that user sends out aimed acceleration data corresponding to the judging result of arm stroke for this;
For the first acceleration information determined every time, based on first acceleration information, the user corresponding one is determined
Alternative stroke, and preserve the alternative stroke determined;
Also, when judging to meet default stroke analysis condition, based on each alternative stroke currently preserved, described in identification
The swimming stroke of user;Wherein, the default stroke analysis condition is:The current quantity of alternative stroke preserved is more than default
Amount threshold, alternatively, the judging result that arm stroke whether is sent out based on user determines that continuous strokes stop.
6. according to the method described in claim 5, it is characterized in that, described based on first acceleration information, the use is determined
The step of corresponding alternative stroke in family, including:
Calculate the third mode vector of the second acceleration information corresponding to the second mode vector sum of first acceleration information;Its
In, which was detected by last time shows that user sends out the target preserved during the judging result of arm stroke and adds
Speed data;
Judge whether strokes are stablized, and when stablizing based on the third mode vector described in the second mode vector sum, base
In the second mode vector and/or the third mode vector, the corresponding alternative stroke of the user is determined.
7. according to the method described in claim 6, it is characterized in that, described be based on third mould described in the second mode vector sum
Formula vector judges the step whether strokes are stablized, including:
The matching degree of the third mode vector described in the second mode vector sum is calculated, and based on the matching degree calculated, is sentenced
It is disconnected whether to meet deliberate action stable condition, if so, judgement strokes are stablized;Otherwise, it is determined that strokes are unstable;
It is described to be based on the second mode vector and/or the third mode vector, determine the corresponding alternative swimming of the user
The step of appearance, including:
The second mode vector and/or the third mode vector is calculated to swear with the reference model of preset all kinds of strokes respectively
The matching degree of amount, and according to the matching degree calculated, obtain the corresponding alternative stroke of the user.
It is 8. described according to the method described in claim 1, it is characterized in that, the electronic equipment is also built-in with geomagnetic sensor
Information of swimming is the swimming number of turns;
It is described based on each judging result, the step of determining the swimming information of the user, including:
When determining that continuous strokes stop based on each judging result, persistently obtain geomagnetic sensor and swum in the user
The geomagnetic data acquired during swimming;
Accessed geomagnetic data is added sequentially in second circulation array;
After geomagnetic data is added in the second circulation array, the current position magnetic number in the second circulation array is determined
According to plateau data and dynamic variable quantity based on time-domain difference;
Also, based on the plateau data determined and dynamic variable quantity, determine the swimming number of turns of the user.
It is 9. according to the method described in claim 8, it is characterized in that, described based on the plateau data determined and dynamic
Variable quantity, the step of determining the swimming number of turns of the user, including:
When detecting the presence of the target dynamic variable quantity more than default variable quantity threshold value, judge that the target dynamic variable quantity institute is right
Answer whether the adjacent data of geomagnetic data belongs to plateau data, if so, the swimming number of turns of completion of the user is increased
Add half-turn, obtain the current swimming number of turns of completion of the user.
10. according to the method described in claim 9, it is characterized in that, earth magnetism corresponding to described judgement target dynamic variable quantity
Whether the adjacent data of data belongs to plateau data, if so, the swimming pool number of turns that the user is completed increases half-turn
Step, including:
Judge whether the adjacent data of geomagnetic data corresponding to the target dynamic variable quantity belongs to plateau data, and judge mesh
Whether mark duration is higher than preset duration threshold value and/or whether target strikes number higher than preset times threshold value, if it is judged that
It is to be, the swimming pool number of turns that the user is completed increases half-turn;Wherein, a length of current time increases with last during the target
Duration when adding half-turn between the corresponding moment, the target strike number to draw time number in the target duration.
11. a kind of swimming information detector, which is characterized in that applied to electronic equipment, be built-in with and add in the electronic equipment
Velocity sensor;Described device includes:
Acceleration information acquiring unit, for persistently obtain the acceleration transducer user swim during acquired plus
Speed data;
Acceleration information adding unit, for accessed acceleration information to be added sequentially in first circulation array;
Arm stroke judging unit, for after acceleration information is added in the first circulation array, based on described the
Current acceleration data in one cycle array, judge whether the user occurs arm stroke;
Swimming information determination unit, for being based on each judging result, determines the swimming information of the user.
12. a kind of electronic equipment, which is characterized in that including:Processor, the storage for storing the processor-executable instruction
Device;
Wherein, the processor, for performing the claims 1-10 any one of them swimming information detecting method.
13. a kind of computer readable storage medium, which is characterized in that the storage medium is stored with computer program, the meter
Calculation machine program is used to perform the claims 1-10 any one of them swimming information detecting method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711482393.4A CN108245869B (en) | 2017-12-29 | 2017-12-29 | Swimming information detection method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711482393.4A CN108245869B (en) | 2017-12-29 | 2017-12-29 | Swimming information detection method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108245869A true CN108245869A (en) | 2018-07-06 |
CN108245869B CN108245869B (en) | 2020-03-06 |
Family
ID=62725468
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711482393.4A Active CN108245869B (en) | 2017-12-29 | 2017-12-29 | Swimming information detection method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108245869B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109276253A (en) * | 2018-11-12 | 2019-01-29 | 歌尔股份有限公司 | A method of detection user's swimming exercise amount |
CN111265841A (en) * | 2020-02-05 | 2020-06-12 | 北京卡路里信息技术有限公司 | Swimming lap number determining method, device, equipment and storage medium |
CN111603746A (en) * | 2019-02-25 | 2020-09-01 | 财团法人工业技术研究院 | Swimming posture correction method and system |
EP3901819A1 (en) * | 2020-04-20 | 2021-10-27 | Tata Consultancy Services Limited | Detecting and validating a user activity captured from multiple sensors |
CN116541668A (en) * | 2023-07-06 | 2023-08-04 | 杭州光粒科技有限公司 | Swimming stroke number determining method, device, equipment and storage medium |
CN118606771A (en) * | 2024-08-08 | 2024-09-06 | 杭州光粒科技有限公司 | Turning detection method and device, nonvolatile storage medium and wearable equipment |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102481479A (en) * | 2009-04-01 | 2012-05-30 | 达腾科技有限公司 | Swimming monitor |
CN104135911A (en) * | 2012-01-09 | 2014-11-05 | 因文森斯公司 | Activity classification in a multi-axis activity monitor device |
CN104287703A (en) * | 2013-06-03 | 2015-01-21 | 飞比特公司 | Use of gyroscopes in personal fitness tracking devices |
CN105892674A (en) * | 2016-04-26 | 2016-08-24 | 哈尔滨工程大学 | Swimming stroke recognition method based on smart band and sports plan based on smart band |
CN106175781A (en) * | 2016-08-25 | 2016-12-07 | 歌尔股份有限公司 | Utilize method and the wearable device of wearable device monitoring swimming state |
CN106334307A (en) * | 2015-07-07 | 2017-01-18 | 天彩电子(深圳)有限公司 | Method for monitoring swimming |
CN106445101A (en) * | 2015-08-07 | 2017-02-22 | 飞比特公司 | Method and system for identifying user |
US20170188893A1 (en) * | 2012-06-22 | 2017-07-06 | Fitbit, Inc. | Gps accuracy refinement using external sensors |
CN107115653A (en) * | 2016-11-03 | 2017-09-01 | 京东方科技集团股份有限公司 | Adjust device, stroke information processing system, the stroke information processing method of stroke |
CN107376247A (en) * | 2017-08-16 | 2017-11-24 | 广东远峰电子科技股份有限公司 | A kind of swimming exercise analysis method based on intelligent watch and the intelligent watch |
US9839830B1 (en) * | 2016-06-10 | 2017-12-12 | PNI Sensor Corporation | Aiding a swimmer in maintaining a desired bearing |
CN107469326A (en) * | 2017-07-04 | 2017-12-15 | 广东乐心医疗电子股份有限公司 | Swimming monitoring method and device for wearable equipment and wearable equipment |
-
2017
- 2017-12-29 CN CN201711482393.4A patent/CN108245869B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102481479A (en) * | 2009-04-01 | 2012-05-30 | 达腾科技有限公司 | Swimming monitor |
CN104135911A (en) * | 2012-01-09 | 2014-11-05 | 因文森斯公司 | Activity classification in a multi-axis activity monitor device |
US20170188893A1 (en) * | 2012-06-22 | 2017-07-06 | Fitbit, Inc. | Gps accuracy refinement using external sensors |
CN104287703A (en) * | 2013-06-03 | 2015-01-21 | 飞比特公司 | Use of gyroscopes in personal fitness tracking devices |
CN106334307A (en) * | 2015-07-07 | 2017-01-18 | 天彩电子(深圳)有限公司 | Method for monitoring swimming |
CN106445101A (en) * | 2015-08-07 | 2017-02-22 | 飞比特公司 | Method and system for identifying user |
CN105892674A (en) * | 2016-04-26 | 2016-08-24 | 哈尔滨工程大学 | Swimming stroke recognition method based on smart band and sports plan based on smart band |
US9839830B1 (en) * | 2016-06-10 | 2017-12-12 | PNI Sensor Corporation | Aiding a swimmer in maintaining a desired bearing |
CN106175781A (en) * | 2016-08-25 | 2016-12-07 | 歌尔股份有限公司 | Utilize method and the wearable device of wearable device monitoring swimming state |
CN107115653A (en) * | 2016-11-03 | 2017-09-01 | 京东方科技集团股份有限公司 | Adjust device, stroke information processing system, the stroke information processing method of stroke |
CN107469326A (en) * | 2017-07-04 | 2017-12-15 | 广东乐心医疗电子股份有限公司 | Swimming monitoring method and device for wearable equipment and wearable equipment |
CN107376247A (en) * | 2017-08-16 | 2017-11-24 | 广东远峰电子科技股份有限公司 | A kind of swimming exercise analysis method based on intelligent watch and the intelligent watch |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109276253A (en) * | 2018-11-12 | 2019-01-29 | 歌尔股份有限公司 | A method of detection user's swimming exercise amount |
CN111603746A (en) * | 2019-02-25 | 2020-09-01 | 财团法人工业技术研究院 | Swimming posture correction method and system |
CN111265841A (en) * | 2020-02-05 | 2020-06-12 | 北京卡路里信息技术有限公司 | Swimming lap number determining method, device, equipment and storage medium |
CN111265841B (en) * | 2020-02-05 | 2021-07-27 | 北京卡路里信息技术有限公司 | Swimming lap number determining method, device, equipment and storage medium |
EP3901819A1 (en) * | 2020-04-20 | 2021-10-27 | Tata Consultancy Services Limited | Detecting and validating a user activity captured from multiple sensors |
CN116541668A (en) * | 2023-07-06 | 2023-08-04 | 杭州光粒科技有限公司 | Swimming stroke number determining method, device, equipment and storage medium |
CN116541668B (en) * | 2023-07-06 | 2023-09-22 | 杭州光粒科技有限公司 | Swimming stroke number determining method, device, equipment and storage medium |
CN118606771A (en) * | 2024-08-08 | 2024-09-06 | 杭州光粒科技有限公司 | Turning detection method and device, nonvolatile storage medium and wearable equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108245869B (en) | 2020-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108245869A (en) | A kind of swimming information detecting method, device and electronic equipment | |
US10486049B2 (en) | Device and method for monitoring swimming performance | |
CN106175781B (en) | Utilize the method and wearable device of wearable device monitoring swimming state | |
CN104135911B (en) | Activity classification in multi-axial cord movement monitoring device | |
RU2658282C2 (en) | Extending gameplay with physical activity monitoring device | |
CN103908259B (en) | The monitoring of a kind of Intelligent worn device and human motion and recognition methods | |
CN106108913B (en) | Error count walks removing method, device and wearable device | |
EP2988099A1 (en) | Estimating local motion of physical exercise | |
US20230154607A1 (en) | Methods and systems for identifying user action | |
JP6083799B2 (en) | Mobile device location determination method, mobile device, mobile device location determination system, program, and information storage medium | |
WO2010090867A2 (en) | Multi-state performance monitoring system | |
KR102151301B1 (en) | Method for determining the type of human motor activity and apparatus for implementing the same | |
JP2016513999A5 (en) | ||
GB2529082A (en) | Device and method for monitoring swimming performance | |
Pan et al. | Using accelerometer for counting and identifying swimming strokes | |
Al-Ghannam et al. | Prayer activity monitoring and recognition using acceleration features with mobile phone | |
CN108021888A (en) | A kind of fall detection method | |
CN103892840A (en) | Intelligent wearing device and method for extracting human body motion features | |
CN109260673A (en) | A kind of movement method of counting, device, equipment and storage medium | |
US20240096136A1 (en) | System And Method For Exercise Type Recognition Using Wearables | |
JP2018038455A (en) | Information processing system, wearable device, and information processing method | |
Theiss et al. | Predicting grasps with a wearable inertial and EMG sensing unit for low-power detection of in-hand objects | |
CN109758154A (en) | A kind of motion state determines method, apparatus, equipment and storage medium | |
Pruthi et al. | Maxxyt: An autonomous wearable device for real-time tracking of a wide range of exercises | |
CN105973266A (en) | Energy-saving step counting method and device applied to mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |