CN114896568A - Swimming data statistical method, device, equipment and medium - Google Patents

Swimming data statistical method, device, equipment and medium Download PDF

Info

Publication number
CN114896568A
CN114896568A CN202210817990.2A CN202210817990A CN114896568A CN 114896568 A CN114896568 A CN 114896568A CN 202210817990 A CN202210817990 A CN 202210817990A CN 114896568 A CN114896568 A CN 114896568A
Authority
CN
China
Prior art keywords
swimming
data
turn
reliability
around
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
Application number
CN202210817990.2A
Other languages
Chinese (zh)
Other versions
CN114896568B (en
Inventor
魏一振
申屠晗
朱袁伟
张卓鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Guangli Technology Co ltd
Original Assignee
Hangzhou Guangli Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Guangli Technology Co ltd filed Critical Hangzhou Guangli Technology Co ltd
Priority to CN202210817990.2A priority Critical patent/CN114896568B/en
Publication of CN114896568A publication Critical patent/CN114896568A/en
Application granted granted Critical
Publication of CN114896568B publication Critical patent/CN114896568B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/11Complex mathematical operations for solving equations, e.g. nonlinear equations, general mathematical optimization problems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques
    • G06F18/251Fusion techniques of input or preprocessed data

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Algebra (AREA)
  • Evolutionary Biology (AREA)
  • Software Systems (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Operations Research (AREA)
  • Databases & Information Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Computation (AREA)
  • Artificial Intelligence (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The application discloses a swimming data statistical method, a swimming data statistical device, swimming data statistical equipment and a swimming data statistical medium, and relates to the technical field of information fusion. The method is applied to AR swimming goggles, and comprises the following steps: obtaining swimming data; dividing the swimming data according to the length of a turn-around judging time window to obtain turn-around data, wherein the turn-around judging time window is used for judging whether a user turns around or not and counting turn-around times; dividing the turning data according to the length of a sliding window to obtain GM particles; determining the reliability of a turn judgment time window according to the swimming data and the GM particles, wherein the reliability is the reliability representing whether the user turns; when the reliability is judged to be greater than the preset reliability, a turning time node and an estimated covariance are obtained by adopting covariance cross fusion; and outputting the turning time node. According to the method, data which can represent the reliability of a user in the swimming process is marked as turning, data which cannot reach the reliability is not marked as turning, and the accuracy of recording movement data is improved; the user does not need to additionally wear the data recording equipment, and the user experience is improved.

Description

Swimming data statistical method, device, equipment and medium
Technical Field
The application relates to the technical field of information fusion, in particular to a swimming data statistical method, a swimming data statistical device, swimming data statistical equipment and a swimming data statistical medium.
Background
With the continuous progress of science and technology, more and more technologies are applied to swimming sports, wherein the estimation of the swimming turn times and time is particularly important, the swimming turn mainly comprises two types of wall-touching turn and rolling turn, the information of people concerned about such as the swimming distance and the swimming calorie can be calculated through the judgment of the turn, more accurate sports data are provided for users, and the user experience is improved.
At present, most swimming data statistical methods in the market are provided by sports bracelets. When a user is swimming, it is often desirable to measure the arm extension of the user, which can help distinguish between minor incidental arm swing movements and true swimming strokes. The sports bracelet obtains swimming data, and when the swimming data are analyzed, parameters generated in the movement process such as the movement time of a user are obtained according to the swimming data. For example: the movement of the arms from the head to the feet of the sports bracelet is regarded as a turn during one swimming, and when the user squats or does an extension exercise in the water, the sports bracelet also records such an action as a turn during one swimming. At this moment, the motion data that the motion bracelet recorded and reachs is inaccurate.
In view of the above problems, it is an endeavor of those skilled in the art to find out how to accurately record the exercise data during swimming.
Disclosure of Invention
The application aims to provide a swimming data statistical method, a swimming data statistical device, equipment and a medium, which are used for accurately recording motion data in a swimming process.
In order to solve the above technical problem, the present application provides a swimming data statistics method, applied to AR swimming goggles, comprising:
obtaining swimming data;
dividing the swimming data according to the length of a turn-around judging time window to obtain turn-around data, wherein the turn-around judging time window is used for judging whether a user turns around or not and counting turn-around times;
dividing the turning data according to the length of a sliding window to obtain GM particles;
determining the reliability of a turn judgment time window according to the swimming data and the GM particles, wherein the reliability is the reliability of representing whether the user turns;
judging whether the reliability is greater than a preset reliability;
if so, acquiring a turning time node and an estimated covariance of the user by adopting covariance cross fusion;
and outputting the turning time node.
Preferably, dividing the swimming data according to the length of the turn judgment time window to obtain turn data comprises:
obtaining the length of swimming data;
dividing the swimming data length by the turning judgment time window length to obtain a first division value;
and rounding the first division value, and dividing the swimming data according to the rounded first division value to obtain turning data.
Preferably, dividing the turn-around data according to the length of the sliding window to obtain the GM particle includes:
dividing the length of the turn-around judgment time window by the length of the sliding window to obtain a second division value;
and rounding the second division value, and dividing the turning data according to the second division value to obtain the GM particles.
Preferably, determining the confidence level characterizing whether the user turns within the turn determination time window according to the swimming data and the GM particle comprises:
initializing GM particles;
determining the probability, the initial reliability and the swimming data amplitude value of whether the user turns according to the GM particles;
updating GM particles according to the probability, the initial reliability and the swimming data amplitude;
and determining the reliability according to the updated GM particles.
Preferably, after outputting the turn-around time node, the method further comprises:
judging whether all the turning times and turning time nodes are output by the first division value turning judgment time windows;
if yes, ending;
if not, returning to the step of obtaining the swimming data.
Preferably, the turn-around judging time window and the sliding window are multiple and do not overlap with each other.
Preferably, after obtaining the swimming data, before dividing the swimming data according to the length of the turn determination time window to obtain the turn data, the method further includes:
and performing Kalman filtering processing on the swimming data.
In order to solve the technical problem, the present application further provides a swimming data statistics apparatus, and the swimming data statistics method applied to the swimming data statistics apparatus includes:
the acquisition module is used for acquiring swimming data;
the first dividing module is used for dividing the swimming data according to the length of the turn-around judging time window to obtain turn-around data, and the turn-around judging time window is used for judging whether a user turns around and counting turn-around times;
the second division module is used for dividing the turning data according to the length of the sliding window to obtain GM particles;
the determining module is used for determining the reliability of whether the user turns according to the swimming data and the GM particles, wherein the reliability represents whether the user turns in the time window of turning judgment;
the judging module is used for judging whether the reliability is greater than the preset reliability;
the obtaining module is used for obtaining a turning time node and an estimated covariance of the user by adopting covariance cross fusion if the reliability obtained by the judging module is greater than the preset reliability;
and the output module is used for outputting the turning time node.
In order to solve the above technical problem, the present application further provides a swimming data statistics apparatus, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the swimming data statistical method when executing the computer program.
In order to solve the technical problem, the present application further provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the swimming data statistical method.
The application provides a swimming data statistical method, is applied to AR swimming goggles, includes: obtaining swimming data; dividing the swimming data according to the length of a turn-around judging time window to obtain turn-around data, wherein the turn-around judging time window is used for judging whether a user turns around or not and counting turn-around times; dividing the turning data according to the length of a sliding window to obtain GM particles; determining the reliability of whether the user turns or not in a turning judgment time window according to the swimming data and the GM particles; judging whether the reliability is greater than a preset reliability; if so, acquiring a turning time node and an estimated covariance of the user by adopting covariance cross fusion; and outputting the turning time node. Because the swimming data are divided, and the corresponding GM particles are obtained, the reliability of the user in the swimming process is further obtained, the data reaching the reliability are marked as one turn, the data which do not reach the reliability are not marked as one turn, and the accuracy of recording the movement data in the swimming process is improved; meanwhile, when the method is applied to AR swimming goggles, a user does not need to additionally wear equipment for recording data, and the user experience is improved.
The application also provides a swimming data statistical device, equipment and medium, and the effect is the same as above.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a flow chart of a statistical method for swimming data according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of another statistical method for swimming data provided by an embodiment of the present application;
FIG. 3 is a block diagram of a swimming data statistics apparatus according to an embodiment of the present application;
fig. 4 is a structural diagram of a swimming data statistics device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
The core of the application is to provide a swimming data statistical method, a swimming data statistical device, equipment and a swimming data statistical medium, which can accurately record the motion data in the swimming process.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Fig. 1 is a flowchart of a swimming data statistics method according to an embodiment of the present application. As shown in fig. 1, the swimming data statistical method is applied to AR swimming goggles, in which a 6-channel IMU sensor is disposed, and the sensor is formed by combining two three-axis sensors. The method comprises the following steps:
s10: obtaining swimming data;
obtaining swimming data through a 6-channel IMU sensor and obtaining the length of the swimming data, wherein the sampling frequency of the 6-channel IMU sensor is recorded as
Figure 701870DEST_PATH_IMAGE001
In hertz (Hz). The sampling time for obtaining the swimming data is recorded as S, and the unit is second (S), then the length of the swimming data can be calculated by the following formula:
Figure 87852DEST_PATH_IMAGE002
wherein the swim data acquired for a 6-channel IMU sensor of length L may be represented as
Figure 867589DEST_PATH_IMAGE003
Wherein,
Figure 590695DEST_PATH_IMAGE004
an acceleration component representing the x-axis coordinate direction at the k sampling time,
Figure 670646DEST_PATH_IMAGE005
An acceleration component representing the y-axis coordinate direction at the k-sampling time,
Figure 696371DEST_PATH_IMAGE006
An acceleration component representing the z-axis coordinate direction at the k-sampling time;
Figure 228983DEST_PATH_IMAGE007
an angular velocity component representing the x-axis coordinate direction at the k-sampling time,
Figure 506512DEST_PATH_IMAGE008
An angular velocity component representing the y-axis coordinate direction at the k-sampling time,
Figure 175391DEST_PATH_IMAGE009
The angular velocity component representing the z-axis coordinate direction at the time of k-sampling. The acceleration, the angular velocity, the acceleration and the angular velocity may be selected. Considering that some data cannot be well used for judging the swimming turning motion of the user, the optimal implementation mode is to combine the angular speed and the acceleration so as to compensate the data which cannot well judge the swimming turning motion of the user. The swimming data is data acquired in time series. In this embodiment, the three-axis sensor may be one of a three-axis accelerometer, a three-axis magnetometer, a three-axis gyroscope, and a pressure sensor, and the 6-channel IMU sensor may be a combination of one or more of the sensors mentioned above.
S11: dividing the swimming data according to the length of a turn-around judging time window to obtain turn-around data, wherein the turn-around judging time window is used for judging whether a user turns around or not and counting turn-around times;
setting the length of the turn judgment time window as d, and calculating the swimming data according to the number of turn judgment time windows divided by the length of the turn judgment time window by the following formula:
Figure 434334DEST_PATH_IMAGE010
wherein,
Figure 391926DEST_PATH_IMAGE011
and representing a down-rounding function for obtaining a calculation result of the integer, namely taking the maximum integer not greater than x, wherein M is the number of the turn-around judgment time windows and is also a first division value. At this time, for the nth turn determination time window, there is swimming data of length d, which is expressed as:
Figure 394517DEST_PATH_IMAGE012
wherein
Figure 245798DEST_PATH_IMAGE013
S12: dividing the turning data according to the length of a sliding window to obtain GM particles;
and setting the length of the sliding window as l, and calculating the turning data according to the number of the sliding windows divided by the length of the sliding window by the following formula:
Figure 941222DEST_PATH_IMAGE014
wherein,
Figure 386109DEST_PATH_IMAGE015
and expressing a down-rounding function for obtaining the calculation result of the integer, namely taking the maximum integer not more than x, wherein N is the number of the sliding windows and the number of the GM particles and is also a second division value. At this time for
Figure 926812DEST_PATH_IMAGE016
A sliding window, where swimming data of length l exist, expressed as:
Figure 648912DEST_PATH_IMAGE017
wherein
Figure 249657DEST_PATH_IMAGE018
It should be noted that, in the present embodiment, the turning judgment time window and the sliding window are multiple and do not overlap (mutually exclusive). The sliding window frames a time sequence according to a specified unit length to perform data sampling, thereby calculating data in the frame. The slide block with the designated length slides on the scale, and the data in the slide block can be fed back when the slide block slides one unit. The purpose of setting the sliding window is to segment the time sequence data by using the sliding window with a set length, and sequentially judge that the downward rounding represents that the redundant time sequence is not enough to complete a turn-around action. Wherein a plurality of GM particles is constructed as a random finite set.
S13: determining the reliability of a turn judgment time window according to the swimming data and the GM particles;
the reliability is the reliability of representing whether the user turns around. The swimming data in each sampling sliding window has two conditions of turning and non-turning, a swimming turning variable can be modeled into a random finite set, one sliding window can be regarded as one GM particle, the GM particle is a Gaussian particle, and the condition that a plurality of GM particles exist in one turning judgment time window can be understood. For the first
Figure 181841DEST_PATH_IMAGE019
The swimming data in each sliding window can be expressed as a discrete finite set variable for the swimming turn-around variable at time k, and is recorded as:
Figure 526235DEST_PATH_IMAGE020
. Wherein
Figure 24212DEST_PATH_IMAGE021
Indicating an empty set, i.e. no turn, 1 indicating a turn. Then for the second time
Figure 123755DEST_PATH_IMAGE022
The swimming data in each sliding window was modeled as:
Figure 339973DEST_PATH_IMAGE023
the data described above was modeled as a discrete finite set.
S14: judging whether the reliability is greater than a preset reliability;
if yes, the flow proceeds to step S15: obtaining a turning time node and an estimated covariance of a user by adopting covariance cross fusion;
after the determination, the above-mentioned discrete finite set can be expressed as follows:
Figure 425741DEST_PATH_IMAGE024
it can be seen that, if the data in the kth transition determination time window is represented as 1, it indicates that one transition occurs in the kth transition determination time window. It should be noted that the determination occurs in the gaussian mixture probability hypothesis density estimation model.
S16: and outputting the turning time node.
The turn-around times can be counted and collected and obtained as the turn-around occurrence in which turn-around judgment time window is obtained, and the turn-around time node is determined in the sliding window in the corresponding judgment time window and finally output. The output form can be "turning time node is 14: 29", "turning times is 12 times in total", etc., the above mentioned output form is only one of many embodiments, and the output form is not limited, and the implementation form can be determined according to the specific implementation scenario.
Will be first
Figure 43804DEST_PATH_IMAGE025
Each sliding window is used as a GM particle, and each GM particle contains three data, which are: weight w, distribution mean m, distribution covariance p. Wherein the weight represents the reliability of the turning motion, the distribution mean represents the mean estimation of the turning time point,The distribution covariance represents the degree of dispersion of the turning time point, i.e., can be expressed as follows:
Figure 64981DEST_PATH_IMAGE026
the calculation formula of the weight w, the distribution mean m and the distribution covariance p is as follows:
Figure 768494DEST_PATH_IMAGE027
Figure 392374DEST_PATH_IMAGE028
Figure 130523DEST_PATH_IMAGE029
wherein,
Figure 243972DEST_PATH_IMAGE030
in order to be the a-priori weights,
Figure 497099DEST_PATH_IMAGE031
is at the same time
Figure 986986DEST_PATH_IMAGE032
The amplitude of the swim data at the time of sampling,
Figure 251745DEST_PATH_IMAGE033
for all the time in the sliding window, the nth turn-around judgment time window
Figure 801675DEST_PATH_IMAGE034
Of a sliding window
Figure 295760DEST_PATH_IMAGE035
Is represented as follows:
Figure 589339DEST_PATH_IMAGE036
the GM particle set for the nth turn-around decision time window is represented as follows:
Figure 770921DEST_PATH_IMAGE037
as shown in fig. 2, on the basis of the above embodiment, as a more preferred embodiment, dividing the swimming data according to the length of the turn determination time window to obtain the turn data includes:
obtaining the length of swimming data;
dividing the swimming data length by the turning judgment time window length to obtain a first division value;
and rounding the first division value, and dividing the swimming data according to the rounded first division value to obtain turning data.
Setting the length of the turn judgment time window as d, and calculating the swimming data according to the number of turn judgment time windows divided by the length of the turn judgment time window by the following formula:
Figure 163856DEST_PATH_IMAGE038
wherein,
Figure 329259DEST_PATH_IMAGE039
and representing a down-rounding function for obtaining a calculation result of the integer, namely taking the maximum integer not greater than x, wherein M is the number of the turn-around judgment time windows and is also a first division value. At this time, for the nth turn determination time window, there is swimming data of length d, which is expressed as:
Figure 223265DEST_PATH_IMAGE040
wherein
Figure 790513DEST_PATH_IMAGE041
On the basis of the above embodiment, as a more preferred embodiment, dividing the turning data by the length of the sliding window to obtain GM particles includes:
dividing the length of the turn-around judgment time window by the length of the sliding window to obtain a second division value;
and rounding the second division value, and dividing the turning data according to the second division value to obtain the GM particles.
And setting the length of the sliding window as l, and calculating the turning data according to the number of the sliding windows divided by the length of the sliding window by the following formula:
Figure 354349DEST_PATH_IMAGE042
wherein,
Figure 7047DEST_PATH_IMAGE043
and expressing a down-rounding function for obtaining the calculation result of the integer, namely taking the maximum integer not more than x, wherein N is the number of the sliding windows and the number of the GM particles and is also a second division value. At this time for
Figure 455477DEST_PATH_IMAGE044
A sliding window, where swimming data of length l exist, expressed as:
Figure 346073DEST_PATH_IMAGE045
wherein
Figure 408707DEST_PATH_IMAGE046
On the basis of the above embodiment, as a more preferable embodiment, the determining the confidence level indicating whether the user turns within the turn judgment time window according to the swimming data and the GM particle includes:
initializing GM particles;
determining the probability, the initial reliability and the swimming data amplitude value of whether the user turns according to the GM particles;
updating GM particles according to the probability, the initial reliability and the swimming data amplitude;
and determining the reliability according to the updated GM particles.
In the nth processing period, inputting swimming data of the nth turn judgment time window.
The swimming data at this time are expressed as:
Figure 220805DEST_PATH_IMAGE047
and the first
Figure 659877DEST_PATH_IMAGE048
The individual sliding windows may be represented as one GM particle, where the GM particle is represented as:
Figure 998454DEST_PATH_IMAGE049
for the first
Figure 231990DEST_PATH_IMAGE050
The GM particles are initialized according to the following formula:
Figure 531384DEST_PATH_IMAGE051
Figure 242988DEST_PATH_IMAGE052
Figure 373755DEST_PATH_IMAGE053
calculating the detection probability of turning according to GM particles
Figure 591241DEST_PATH_IMAGE054
The formula is as follows:
Figure 440248DEST_PATH_IMAGE055
wherein,
Figure 893226DEST_PATH_IMAGE056
is sigmoid function, and H is preset confidence.
For the nth turn-around judgment time window, the reliability of representing whether the user turns around can be represented as:
Figure 144079DEST_PATH_IMAGE057
for GM particle updates:
Figure 781734DEST_PATH_IMAGE058
Figure 852458DEST_PATH_IMAGE059
Figure 171444DEST_PATH_IMAGE060
wherein k represents
Figure 214486DEST_PATH_IMAGE061
When the calculated confidence level is lower than the preset confidence level, the updated posterior GM particles are expressed as:
Figure 960725DEST_PATH_IMAGE062
the updated reliability of the nth turn-around judgment time window is as follows:
Figure 331795DEST_PATH_IMAGE063
in the nth processing period, obtaining the reliability of the updated nth turn-around judgment time window, judging the magnitude relation between the reliability and the preset reliability, and when the reliability is greater than the preset reliability, performing covariance fusion on the posterior GM particles obtained after updating, wherein the formula is as follows:
Figure 454472DEST_PATH_IMAGE064
wherein,
Figure 352020DEST_PATH_IMAGE065
represents the turn-around time point of the nth turn-around judgment time window,
Figure 269161DEST_PATH_IMAGE066
indicating the degree of dispersion of the turn-around time points.
On the basis of the above embodiment, as a more preferred embodiment, after outputting the turn-around time node, the method further includes:
judging whether the first division value turn judgment time window outputs turn times and turn time nodes or not;
if yes, ending;
if not, returning to the step of obtaining swimming data.
In order to make the obtained data more accurate, all the turn-around judgment time windows need to be traversed once, so that the data can be obtained more accurately, and the user experience is improved.
On the basis of the above embodiment, as a more preferred embodiment, after obtaining the swimming data, before dividing the swimming data according to the length of the turn determination time window to obtain the turn data, the method further includes:
and performing Kalman filtering processing on the swimming data. In order to remove clutter. In addition, it should be noted that the noise of the clutter can also be avoided by using a particle filter.
A specific example of obtaining GM particles by dividing swimming data according to the length of the turn determination time window to obtain turn data and dividing the turn data according to the length of the sliding window is given below, and the process is as follows:
the length of the swimming data provided by the IMU sensor of one data 6 channel is 5532, the length of the turn judgment window is 200, after rounding down, the total number of 27 turn judgment windows is obtained, and for one turn judgment windowTurn-around data, corresponding to turn-around and non-turn-around situations, i.e. such data may be described by a random finite set, denoted as
Figure 642373DEST_PATH_IMAGE067
Then, for this whole piece of data there are:
Figure 303162DEST_PATH_IMAGE068
in a turn-around judgment window, the length of the data sample sliding window is 50, and 4 data sample sliding windows are in total. The data in each data sample sliding window may be characterized by a GM particle that contains three dimensions, weight, distribution mean m, and distribution covariance p. In one transition determination window, a plurality of GM particles are included, which constitute a GM particle set. And obtaining the final turning time point according to the formula and the corresponding steps.
Therefore, swimming data are divided, corresponding GM particles are obtained, the reliability of a representation user in the swimming process is obtained, data reaching the reliability are marked as one turn, data not reaching the reliability are not marked as one turn, and the accuracy of recording the movement data in the swimming process is improved; meanwhile, when the method is applied to AR swimming goggles, a user does not need to additionally wear equipment for recording data, and the user experience is improved.
In the above embodiments, the swimming data statistics method is described in detail, and the present application also provides embodiments corresponding to the swimming data statistics apparatus. It should be noted that the present application describes the embodiments of the apparatus portion from two perspectives, one from the perspective of the function module and the other from the perspective of the hardware.
Fig. 3 is a structural diagram of a swimming data statistics device according to an embodiment of the present application. As shown in fig. 3, the present application also provides a swimming data statistics apparatus, comprising:
an acquisition module 30 for acquiring swimming data;
the first dividing module 31 is configured to divide the swimming data according to the length of the turn-around judgment time window to obtain turn-around data, where the turn-around judgment time window is used to judge whether a user turns around and count the turn-around times;
a second dividing module 32, configured to divide the turning data according to the length of the sliding window to obtain GM particles;
the determining module 33 is configured to determine the reliability of the turn determination time window according to the swimming data and the GM particles, where the reliability is a reliability representing whether the user turns;
the judging module 34 is used for judging whether the reliability is greater than the preset reliability;
the obtaining module 35 is configured to obtain a turning time node and an estimated covariance of the user by using covariance cross fusion if the reliability obtained by the judging module is greater than a preset reliability;
and an output module 36, configured to output the turn-around time node.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Fig. 4 is a block diagram of a swimming data statistics apparatus according to an embodiment of the present application, and as shown in fig. 4, the swimming data statistics apparatus includes:
a memory 40 for storing a computer program;
a processor 41 for implementing the steps of the swimming data statistics method as mentioned in the above embodiments when executing the computer program.
The swimming data statistics device provided by the embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 41 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 41 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 41 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, processor 41 may also include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
Memory 40 may include one or more computer-readable storage media, which may be non-transitory. Memory 40 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used for storing a computer program, wherein the computer program can realize the relevant steps of the swimming data statistical method disclosed in any one of the foregoing embodiments after being loaded and executed by the processor 41. In addition, the resources stored in the memory 40 may also include an operating system, data, and the like, and the storage manner may be a transient storage or a permanent storage. The operating system may include Windows, Unix, Linux, and the like. The data may include, but is not limited to, swimming data statistics, etc.
In some embodiments, the swimming data statistics device may further include a display screen, an input/output interface, a communication interface, a power source, and a communication bus.
Those skilled in the art will appreciate that the configuration shown in FIG. 4 does not constitute a limitation of the swim data statistics apparatus and may include more or fewer components than those shown.
The swimming data statistical device provided by the embodiment of the application comprises a memory 40 and a processor 41, wherein the processor 41 can realize a swimming data statistical method when executing a program stored in the memory 40.
Finally, the application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps as set forth in the above-mentioned method embodiments.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium and executes all or part of the steps of the methods described in the embodiments of the present application, or all or part of the technical solutions. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (Read-Only Memory), a ROM, a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The swimming data statistical method, the swimming data statistical device, the swimming data statistical equipment and the swimming data statistical medium are described in detail above. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed in the embodiment corresponds to the method disclosed in the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A swimming data statistical method is applied to AR swimming goggles and comprises the following steps:
obtaining swimming data;
dividing the swimming data according to the length of a turn-around judging time window to obtain turn-around data, wherein the turn-around judging time window is used for judging whether a user turns around or not and counting turn-around times;
dividing the turning data according to the length of a sliding window to obtain GM particles;
determining the reliability of the turn judgment time window according to the swimming data and the GM particles, wherein the reliability is the reliability representing whether the user turns;
judging whether the reliability is greater than a preset reliability;
if so, acquiring a turning time node and an estimated covariance of the user by adopting covariance cross fusion;
and outputting the turning time node.
2. The statistical method for swimming data according to claim 1, wherein the dividing the swimming data according to the length of the turn judgment time window to obtain turn data comprises:
acquiring the length of the swimming data;
dividing the swimming data length by the turning judgment time window length to obtain a first division value;
and rounding the first division value, and dividing the swimming data according to the rounded first division value to obtain the turning data.
3. The statistical method for swimming data according to claim 1, wherein the dividing the turn-around data according to the length of the sliding window to obtain GM particles comprises:
dividing the length of the turn-around judging time window by the length of the sliding window to obtain a second division value;
and rounding the second division value, and dividing the turning data according to the second division value to obtain the GM particles.
4. The statistical method of swimming data according to claim 1, wherein the determining the confidence level characterizing whether the user turns within the turn determination time window from the swimming data and the GM particles comprises:
initializing the GM particles;
determining the probability, the initial reliability and the swimming data amplitude value which represent whether the user turns according to the GM particles;
updating the GM particles according to the probability, the initial reliability and the swimming data amplitude;
and determining the reliability according to the updated GM particles.
5. The statistical method of swimming data according to claim 2, further comprising, after said outputting the turn time node:
judging whether the turning judgment time windows of the first division values all output the turning times and the turning time nodes;
if yes, ending;
if not, returning to the step of obtaining the swimming data.
6. The statistical method for swimming data according to claim 1, wherein the turn-around judging time window and the sliding window are multiple and do not overlap each other.
7. The statistical method for swimming data according to claim 1, wherein after the obtaining of the swimming data, before the dividing the swimming data according to the length of the turn-around judgment time window to obtain the turn-around data, the statistical method further comprises:
and performing Kalman filtering processing on the swimming data.
8. A swimming data statistics device, characterized in that, the swimming data statistics method applied to any one of claims 1 to 7 comprises:
the acquisition module is used for acquiring swimming data;
the first dividing module is used for dividing the swimming data according to the length of a turn-around judging time window to obtain turn-around data, wherein the turn-around judging time window is used for judging whether a user turns around or not and counting turn-around times;
the second division module is used for dividing the turning data according to the length of a sliding window to obtain GM particles;
the determining module is used for determining the reliability of representing whether the user turns or not in the turning judging time window according to the swimming data and the GM particles;
the judging module is used for judging whether the reliability is greater than the preset reliability;
the obtaining module is used for obtaining a turning time node and an estimated covariance of the user by adopting covariance cross fusion if the reliability obtained by the judging module is greater than a preset reliability;
and the output module is used for outputting the turning time node.
9. A swimming statistics device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the statistical method of swimming data according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the statistical method of swimming data according to any one of claims 1 to 7.
CN202210817990.2A 2022-07-13 2022-07-13 Swimming data statistical method, device, equipment and medium Active CN114896568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210817990.2A CN114896568B (en) 2022-07-13 2022-07-13 Swimming data statistical method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210817990.2A CN114896568B (en) 2022-07-13 2022-07-13 Swimming data statistical method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN114896568A true CN114896568A (en) 2022-08-12
CN114896568B CN114896568B (en) 2022-11-01

Family

ID=82729405

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210817990.2A Active CN114896568B (en) 2022-07-13 2022-07-13 Swimming data statistical method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114896568B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116541668A (en) * 2023-07-06 2023-08-04 杭州光粒科技有限公司 Swimming stroke number determining method, device, equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090027211A1 (en) * 2007-07-23 2009-01-29 Cutler David M Electronic Swimmer Monitoring System
US20120072165A1 (en) * 2009-03-31 2012-03-22 Commissariat A L'energie Atomique Et Aux Energies Alternatives System and method for observing the swimming activity of a person
US20150178336A1 (en) * 2013-07-18 2015-06-25 Tencent Technology (Shenzhen) Company Limited Method, device and storage medium for providing data statistics
CN107566797A (en) * 2017-09-07 2018-01-09 青岛博晶微电子科技有限公司 A kind of drowned monitor and detection device of swimming pool
CN108837476A (en) * 2018-06-08 2018-11-20 青岛真时科技有限公司 A kind of method, apparatus and intelligent wearable device of detection swimming starting point
CN110400446A (en) * 2019-08-02 2019-11-01 重庆文理学院 A method of it is detected for swimming pool drowning
CN111265841A (en) * 2020-02-05 2020-06-12 北京卡路里信息技术有限公司 Swimming lap number determining method, device, equipment and storage medium
CN114613097A (en) * 2022-03-10 2022-06-10 孔丽 Automatic planning system based on function integration association

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090027211A1 (en) * 2007-07-23 2009-01-29 Cutler David M Electronic Swimmer Monitoring System
US20120072165A1 (en) * 2009-03-31 2012-03-22 Commissariat A L'energie Atomique Et Aux Energies Alternatives System and method for observing the swimming activity of a person
US20150178336A1 (en) * 2013-07-18 2015-06-25 Tencent Technology (Shenzhen) Company Limited Method, device and storage medium for providing data statistics
CN107566797A (en) * 2017-09-07 2018-01-09 青岛博晶微电子科技有限公司 A kind of drowned monitor and detection device of swimming pool
CN108837476A (en) * 2018-06-08 2018-11-20 青岛真时科技有限公司 A kind of method, apparatus and intelligent wearable device of detection swimming starting point
CN110400446A (en) * 2019-08-02 2019-11-01 重庆文理学院 A method of it is detected for swimming pool drowning
CN111265841A (en) * 2020-02-05 2020-06-12 北京卡路里信息技术有限公司 Swimming lap number determining method, device, equipment and storage medium
CN114613097A (en) * 2022-03-10 2022-06-10 孔丽 Automatic planning system based on function integration association

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
TREVOR M. WOOD: "Simplified Multitarget Tracking Using the PHD Filter for Microscopic Video Data", 《IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY 》 *
刘桥: "游泳运动员姿势识别校正方法研究与仿真", 《计算机仿真》 *
叶雷: "一种针对游泳运动员转身动作的指导系统", 《社会科学Ⅱ辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN114896568B (en) 2022-11-01

Similar Documents

Publication Publication Date Title
EP2962637B1 (en) Human motion status monitoring method and device
US8781991B2 (en) Emotion recognition apparatus and method
CN111558195B (en) Rope skipping counting method, device and equipment based on wearable equipment and storage medium
KR101872907B1 (en) Motion analysis appratus and method using dual smart band
EP2807452A1 (en) In-use automatic calibration methodology for sensors in mobile devices
CN114896568B (en) Swimming data statistical method, device, equipment and medium
CN110020630B (en) Method and device for evaluating action completion degree, storage medium and electronic equipment
US20150241243A1 (en) Method for counting steps and electronic apparatus using the same
CN108052960A (en) Method, model training method and the terminal of identification terminal grip state
JPWO2014147785A1 (en) Motion detection device and motion detection method
CN111513723A (en) Motion attitude monitoring method, motion attitude adjusting device and terminal
CN115155044A (en) Method, device, equipment and medium for determining swimming turn-around time
Yu RETRACTED: Auxiliary research on difficult aerobics exercise training based on fpga and movement recognition technology
Huang et al. Activity classification and analysis during a sports training session using a fuzzy model
KR101449604B1 (en) Non-parametric Bayesian motion recognition method and the apparatus thereof
CN110180158B (en) Running state identification method and system and terminal equipment
CN114327045B (en) Fall detection method and system based on category imbalance signals
CN114341947A (en) System and method for exercise type recognition using wearable devices
Chen An LSTM recurrent network for step counting
CN111870250A (en) User state monitoring method and device, computing equipment and computer storage medium
US20180252549A1 (en) Method and apparatus for realizing step counting
CN111982149B (en) Step counting identification method, step counting identification device, step counting identification equipment and readable storage medium
Wu et al. Using deep learning and smartphone for automatic detection of fall and daily activities
Skoglund et al. Activity tracking using ear-level accelerometers
CN114139669B (en) Rope skipping counting method, device and medium thereof

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