CN117553822B - Step number counting method and system based on intelligent watch - Google Patents

Step number counting method and system based on intelligent watch Download PDF

Info

Publication number
CN117553822B
CN117553822B CN202410046805.3A CN202410046805A CN117553822B CN 117553822 B CN117553822 B CN 117553822B CN 202410046805 A CN202410046805 A CN 202410046805A CN 117553822 B CN117553822 B CN 117553822B
Authority
CN
China
Prior art keywords
period
intelligent watch
moving direction
positioning coordinate
arm
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.)
Active
Application number
CN202410046805.3A
Other languages
Chinese (zh)
Other versions
CN117553822A (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.)
Shenzhen 3g Electronics Co ltd
Original Assignee
Shenzhen 3g Electronics 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 Shenzhen 3g Electronics Co ltd filed Critical Shenzhen 3g Electronics Co ltd
Priority to CN202410046805.3A priority Critical patent/CN117553822B/en
Publication of CN117553822A publication Critical patent/CN117553822A/en
Application granted granted Critical
Publication of CN117553822B publication Critical patent/CN117553822B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C22/00Measuring distance traversed on the ground by vehicles, persons, animals or other moving solid bodies, e.g. using odometers, using pedometers
    • G01C22/006Pedometers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Electric Clocks (AREA)

Abstract

The invention discloses a step number counting method and a step number counting system based on an intelligent watch, which relate to the technical field of communication and comprise the following steps: when the change of the horizontal moving direction is detected, counting the number of steps by using the horizontal moving direction; obtaining at least one arm swing period; calculating to obtain a first average positioning coordinate of the intelligent watch in an arm swinging period; judging whether the first average positioning coordinate and the second average positioning coordinate are greater than a preset distance or not; when detecting that the horizontal moving direction is unchanged, counting the number of steps by using the vertical moving direction; obtaining at least one period of non-swing arm; calculating to obtain a third average positioning coordinate of the intelligent watch in a non-swing arm period; and judging whether the third average positioning coordinate and the fourth average positioning coordinate are larger than a preset distance. Through setting up direction judgment module, cycle acquisition module and coordinate operation module, avoid appearing the possibility of deviation, and then promote the meter step rate of accuracy of intelligent wrist-watch.

Description

Step number counting method and system based on intelligent watch
Technical Field
The invention relates to the technical field of communication, in particular to a step number counting method and system based on an intelligent watch.
Background
With the rapid development of electronic technology, electronic devices such as mobile phones, watches, earphones, headphones, and glasses are gradually intelligent, and are already popularized as an indispensable part of people's daily lives. The step counting function is used as a basic function of the intelligent electronic equipment, and can count the steps generated in the movement process of the user under the condition of carrying the user, so that the user can know the movement condition of the user in time.
However, in the step counting process of the electronic equipment with the step counting function at present, the possibility of deviation of step counting easily occurs, so that the step counting accuracy of the electronic equipment is reduced.
Disclosure of Invention
In order to solve the technical problems, the technical scheme provides a step counting method and system based on an intelligent watch, which solves the problem that the step counting accuracy of the electronic equipment is reduced because the possibility of deviation in step counting easily occurs in the step counting process of the electronic equipment with the step counting function in the prior art.
In order to achieve the above purpose, the invention adopts the following technical scheme:
a step count counting method based on a smart watch comprises the following steps:
Setting an acceleration sensor in the intelligent watch, wherein the acceleration sensor acquires the moving direction of the intelligent watch;
the method for acquiring the movement direction of the intelligent watch by the acceleration sensor comprises the following steps of:
The acceleration sensor core is provided with a magnetic force positioner, and the acceleration sensor uses a uniform magnetic field to maintain the position of the magnetic force positioner in the acceleration sensor;
When the intelligent watch moves, the intelligent watch generates acceleration, and the acceleration sensor moves along with the intelligent watch;
the magnetic force locator moves relative to the acceleration sensor, and a first position coordinate of the relative acceleration sensor before the magnetic force locator moves and a second position coordinate of the relative acceleration sensor after the magnetic force locator moves are obtained;
subtracting the first position coordinate from the second position coordinate to obtain a moving direction vector of the magnetic force positioner;
reversing the moving direction vector of the magnetic force locator to obtain the moving direction vector of the intelligent watch;
vector decomposition is carried out on the moving direction of the intelligent watch, so that a vertical moving direction and a horizontal moving direction are obtained;
The method for decomposing the movement direction of the intelligent watch into the vector to obtain the vertical movement direction and the horizontal movement direction comprises the following steps:
using a parallelogram rule, carrying out vector decomposition on the moving direction of the intelligent watch along the horizontal direction and the vertical direction;
taking the component in the horizontal direction as a horizontal moving direction and the component in the vertical direction as a vertical moving direction;
When judging the direction, firstly judging whether the horizontal moving direction is changed or not, and secondly judging whether the vertical moving direction is changed or not;
When the change of the horizontal moving direction is detected, counting the number of steps by using the horizontal moving direction;
Taking a moving process of the intelligent watch with the horizontal moving direction unchanged as a moving period, and entering the next moving period when the horizontal moving direction of the intelligent watch is changed, so as to obtain all moving periods of the moving process of the intelligent watch;
pairing adjacent moving periods to obtain at least one arm swinging period;
in the arm swinging period, positioning coordinates of the intelligent watch at each moment are obtained, and a first average positioning coordinate of the intelligent watch in the arm swinging period is calculated;
The step of obtaining the positioning coordinates of the intelligent watch at each moment and calculating the first average positioning coordinates of the intelligent watch in the arm swing period comprises the following steps:
Acquiring the positioning coordinates of the intelligent watch at each moment in the arm swinging period, and making a first image and a second image of the positioning coordinates of the intelligent watch with respect to time in a coordinate system, wherein an x-axis is time, a y-axis is the abscissa of the positioning coordinates of the intelligent watch in the first image, and a y-axis is the ordinate of the positioning coordinates of the intelligent watch in the second image;
Fitting the first image of the positioning coordinates about time to obtain a first fitting function;
fitting the second image of the positioning coordinates about time to obtain a second fitting function;
acquiring a time range of a current arm swing period, and calculating a first time length of the current arm swing period according to the time range;
Integrating the first fitting function in the time range of the arm swing period to obtain a first integral value;
Integrating the second fitting function in the time range of the arm swing period to obtain a second integral value;
dividing the first integral value by the value of the first time length to be used as the abscissa of the first average positioning coordinate, and dividing the second integral value by the value of the first time length to be used as the ordinate of the first average positioning coordinate;
Acquiring a second average positioning coordinate of the previous arm swinging period of the arm swinging period, judging whether the first average positioning coordinate and the second average positioning coordinate are greater than a preset distance, if so, judging the arm swinging period as an effective swinging arm period, and adding two steps to the step number after the arm swinging period is finished;
if not, judging the arm swing period as an invalid swing arm period, and adding zero steps to the step number after the arm swing period is finished;
when detecting that the horizontal moving direction is unchanged, counting the number of steps by using the vertical moving direction;
taking a moving process of the intelligent watch with the vertical moving direction unchanged as an active period, and entering the next active period when the vertical moving direction of the intelligent watch is changed, so as to obtain all active periods of the moving process of the intelligent watch;
pairing adjacent active periods to obtain at least one non-swing arm period;
In the non-swing arm period, positioning coordinates of the intelligent watch at each moment are obtained, and third average positioning coordinates of the intelligent watch in the non-swing arm period are calculated;
Acquiring a fourth average positioning coordinate of a previous non-swing arm period of the non-swing arm period, judging whether the third average positioning coordinate and the fourth average positioning coordinate are greater than a preset distance, if so, judging the non-swing arm period as an effective period, and adding one step to the step number after the non-swing arm period is finished;
If not, judging the period of the non-swing arm to be an ineffective period, and adding zero steps to the step number after the period of the non-swing arm is finished.
Preferably, the determining whether the first average positioning coordinate and the second average positioning coordinate are greater than a preset distance includes the following steps:
Calculating a first distance between the first average positioning coordinate and the second average positioning coordinate by using a distance calculation formula;
Comparing the first distance with a preset distance;
the distance calculation formula is as follows:
wherein, (a, c) is a first average positioning coordinate, (b, d) is a second average positioning coordinate, and e is a first distance.
Preferably, the step of obtaining the positioning coordinates of the smart watch at each moment, and calculating the third average positioning coordinates of the smart watch at the period of the non-swing arm includes the following steps:
acquiring a positioning coordinate of the intelligent watch at each moment in a non-swing arm period, and making a third image and a fourth image of the positioning coordinate of the intelligent watch in a coordinate system, wherein an x-axis is time, a y-axis is an abscissa of the positioning coordinate of the intelligent watch in the third image, and a y-axis is an ordinate of the positioning coordinate of the intelligent watch in the fourth image;
Fitting a third image of the positioning coordinates related to time to obtain a third fitting function;
fitting the fourth image of the positioning coordinates about time to obtain a fourth fitting function;
acquiring a time range of a current non-swing arm period, and calculating a second time length of the current non-swing arm period according to the time range;
integrating the third fitting function in the time range of the period of the non-swing arm to obtain a third integral value;
Integrating the fourth fitting function in the time range of the period of the non-swing arm to obtain a fourth integral value;
The third integrated value divided by the second time length is taken as the abscissa of the third average positioning coordinate, and the fourth integrated value divided by the second time length is taken as the ordinate of the third average positioning coordinate.
Preferably, the step of determining whether the third average positioning coordinate and the fourth average positioning coordinate are greater than a preset distance includes the following steps:
Calculating a second distance between the third average positioning coordinate and the fourth average positioning coordinate by using a distance calculation formula;
comparing the second distance with a preset distance;
the distance calculation formula is as follows:
wherein, (f, h) is a first average positioning coordinate, (g, i) is a second average positioning coordinate, and j is a second distance.
The step counting system based on the intelligent watch is used for realizing the step counting method based on the intelligent watch, and comprises the following steps:
the direction acquisition module is used for setting an acceleration sensor in the intelligent watch, acquiring the moving direction of the intelligent watch by the acceleration sensor and decomposing the moving direction of the intelligent watch into vectors;
The direction judging module is used for counting the number of steps by using the horizontal moving direction when detecting that the horizontal moving direction is changed, and is used for counting the number of steps by using the vertical moving direction when detecting that the horizontal moving direction is not changed;
The period acquisition module acquires all movement periods of the movement process of the intelligent watch, pairs adjacent movement periods to obtain at least one arm swinging period, acquires all activity periods of the movement process of the intelligent watch, and pairs adjacent activity periods to obtain at least one non-swinging arm period;
The coordinate operation module is used for calculating a first average positioning coordinate of the intelligent watch in an arm swing period and a third average positioning coordinate of the intelligent watch in a non-swing arm period;
the distance judging module judges whether the first average positioning coordinate and the second average positioning coordinate are larger than a preset distance or not and judges whether the third average positioning coordinate and the fourth average positioning coordinate are larger than the preset distance or not;
And the step number counting module counts the step number of the user of the intelligent watch.
Compared with the prior art, the invention has the beneficial effects that:
by arranging the direction judging module, the period acquiring module and the coordinate operation module, the movement under different conditions can be distinguished, the step count of different methods can be performed, the step count is performed by taking the relation between the swing of the arm and the step count as a main step count means and by using the lifting mode of the center of gravity when the arm is not swung, and the invalid condition in the step count process is eliminated, so that the possibility of deviation is avoided when the step count is counted, and the step count accuracy of the intelligent watch is further improved.
Drawings
FIG. 1 is a flow chart of a step count counting method based on a smart watch according to the present invention;
FIG. 2 is a schematic diagram of a flow for acquiring a moving direction of a smart watch by an acceleration sensor according to the present invention;
FIG. 3 is a schematic flow chart of the method for vector decomposing the moving direction of the intelligent watch to obtain the vertical moving direction and the horizontal moving direction;
Fig. 4 is a flowchart of a process of obtaining a positioning coordinate of an intelligent watch at each moment and calculating a first average positioning coordinate of the intelligent watch in an arm swing period according to the present invention;
FIG. 5 is a flowchart for determining whether the first average positioning coordinate and the second average positioning coordinate are greater than a predetermined distance according to the present invention;
FIG. 6 is a flowchart of a third average positioning coordinate process of the intelligent watch in a non-swing arm period calculated by acquiring the positioning coordinates of the intelligent watch at each moment;
FIG. 7 is a flowchart for determining whether the third average positioning coordinate and the fourth average positioning coordinate are greater than a predetermined distance according to the present invention.
Detailed Description
The following description is presented to enable one of ordinary skill in the art to make and use the invention. The preferred embodiments in the following description are by way of example only and other obvious variations will occur to those skilled in the art.
Referring to fig. 1, a step count counting method based on a smart watch includes:
Setting an acceleration sensor in the intelligent watch, wherein the acceleration sensor acquires the moving direction of the intelligent watch;
vector decomposition is carried out on the moving direction of the intelligent watch, so that a vertical moving direction and a horizontal moving direction are obtained;
When judging the direction, firstly judging whether the horizontal moving direction is changed or not, and secondly judging whether the vertical moving direction is changed or not;
When the change of the horizontal moving direction is detected, counting the number of steps by using the horizontal moving direction;
Taking a moving process of the intelligent watch with the horizontal moving direction unchanged as a moving period, and entering the next moving period when the horizontal moving direction of the intelligent watch is changed, so as to obtain all moving periods of the moving process of the intelligent watch;
pairing adjacent moving periods to obtain at least one arm swinging period;
During pairing, arms swing forwards and swing backwards to form an arm swing period;
in the arm swinging period, positioning coordinates of the intelligent watch at each moment are obtained, and a first average positioning coordinate of the intelligent watch in the arm swinging period is calculated;
Acquiring a second average positioning coordinate of the previous arm swinging period of the arm swinging period, judging whether the first average positioning coordinate and the second average positioning coordinate are greater than a preset distance, if so, judging the arm swinging period as an effective swinging arm period, and adding two steps to the step number after the arm swinging period is finished;
if not, judging the arm swing period as an invalid swing arm period, and adding zero steps to the step number after the arm swing period is finished;
when detecting that the horizontal moving direction is unchanged, counting the number of steps by using the vertical moving direction;
taking a moving process of the intelligent watch with the vertical moving direction unchanged as an active period, and entering the next active period when the vertical moving direction of the intelligent watch is changed, so as to obtain all active periods of the moving process of the intelligent watch;
pairing adjacent active periods to obtain at least one non-swing arm period;
In the non-swing arm period, positioning coordinates of the intelligent watch at each moment are obtained, and third average positioning coordinates of the intelligent watch in the non-swing arm period are calculated;
Acquiring a fourth average positioning coordinate of a previous non-swing arm period of the non-swing arm period, judging whether the third average positioning coordinate and the fourth average positioning coordinate are greater than a preset distance, if so, judging the non-swing arm period as an effective period, and adding one step to the step number after the non-swing arm period is finished;
If not, judging the period of the non-swing arm as an ineffective period, and adding zero steps to the step number after the period of the non-swing arm is finished;
the theoretical basis for counting steps by using the horizontal moving direction is as follows: when the arm walks, a corresponding relation is formed between the arm and the walking, if the intelligent watch is worn on the right hand, the right hand swings forwards, the left foot swings forwards, the right hand swings backwards, the right foot swings forwards, the process is periodically repeated, in the process, the movement direction of the intelligent watch is kept forwards and then changed to be backwards, in the process, the left foot and the right foot respectively walk for one step and are totally two steps, so that the number of steps is increased by two in the counting process, but the unexpected swinging of some arms is required to be eliminated, but the walking is not caused, and in the cases, the number of steps cannot be increased;
The theoretical basis for counting steps by using the vertical moving direction is as follows: in some cases, the arm does not need to swing when the stride is very small or turns, so that the number of steps in the case needs to be counted in other ways, when walking, the user needs to stand on the foot, stand on the foot on the left foot, the center of gravity rises, the right foot walks forward and falls on the ground, the center of gravity falls, the vertical movement direction of the intelligent watch is firstly upward and then changed to be downward, and then the center of gravity change repeats the process, which corresponds to just a non-swing arm period, so that the number of steps is increased by one in the non-swing arm period, but the situation that walking does not occur needs to be excluded.
Referring to fig. 2, the acceleration sensor acquiring the movement direction of the smart watch includes the steps of:
The acceleration sensor core is provided with a magnetic force positioner, and the acceleration sensor uses a uniform magnetic field to maintain the position of the magnetic force positioner in the acceleration sensor;
When the intelligent watch moves, the intelligent watch generates acceleration, and the acceleration sensor moves along with the intelligent watch;
the magnetic force locator moves relative to the acceleration sensor, and a first position coordinate of the relative acceleration sensor before the magnetic force locator moves and a second position coordinate of the relative acceleration sensor after the magnetic force locator moves are obtained;
subtracting the first position coordinate from the second position coordinate to obtain a moving direction vector of the magnetic force positioner;
reversing the moving direction vector of the magnetic force locator to obtain the moving direction vector of the intelligent watch;
when the intelligent watch moves, the magnetic force locator can keep the original position due to inertia, so that the relative position between the magnetic force locator and the acceleration sensor changes, and the reverse direction of the relative position change of the magnetic force locator and the acceleration sensor is the moving direction of the intelligent watch.
Referring to fig. 3, vector decomposition is performed on the movement direction of the smart watch, and the obtaining of the vertical movement direction and the horizontal movement direction includes the following steps:
using a parallelogram rule, carrying out vector decomposition on the moving direction of the intelligent watch along the horizontal direction and the vertical direction;
taking the component in the horizontal direction as a horizontal moving direction and the component in the vertical direction as a vertical moving direction;
The vertical moving direction and the horizontal moving direction are used, so that step numbers in different modes can be counted according to different conditions.
Referring to fig. 4, obtaining the positioning coordinates of the smart watch at each moment, and calculating the first average positioning coordinates of the smart watch in the arm swing period includes the following steps:
Acquiring the positioning coordinates of the intelligent watch at each moment in the arm swinging period, and making a first image and a second image of the positioning coordinates of the intelligent watch with respect to time in a coordinate system, wherein an x-axis is time, a y-axis is the abscissa of the positioning coordinates of the intelligent watch in the first image, and a y-axis is the ordinate of the positioning coordinates of the intelligent watch in the second image;
Fitting the first image of the positioning coordinates about time to obtain a first fitting function;
fitting the second image of the positioning coordinates about time to obtain a second fitting function;
acquiring a time range of a current arm swing period, and calculating a first time length of the current arm swing period according to the time range;
Integrating the first fitting function in the time range of the arm swing period to obtain a first integral value;
Integrating the second fitting function in the time range of the arm swing period to obtain a second integral value;
dividing the first integral value by the value of the first time length to be used as the abscissa of the first average positioning coordinate, and dividing the second integral value by the value of the first time length to be used as the ordinate of the first average positioning coordinate;
And calculating to obtain a first average positioning coordinate, and obtaining a second average positioning coordinate in the same way, judging whether the current arm swing period changes relative to the previous arm swing period or not according to the position relation between the first average positioning coordinate and the second average positioning coordinate, and judging whether the current arm swing period is subjected to intervention step count statistics or not.
Referring to fig. 5, determining whether the first average positioning coordinate and the second average positioning coordinate are greater than a preset distance includes the following steps:
Calculating a first distance between the first average positioning coordinate and the second average positioning coordinate by using a distance calculation formula;
Comparing the first distance with a preset distance;
the distance calculation formula is as follows:
wherein, (a, c) is a first average positioning coordinate, (b, d) is a second average positioning coordinate, and e is a first distance.
Referring to fig. 6, obtaining the positioning coordinates of the smart watch at each moment, and calculating the third average positioning coordinates of the smart watch at the period of the non-swing arm includes the following steps:
acquiring a positioning coordinate of the intelligent watch at each moment in a non-swing arm period, and making a third image and a fourth image of the positioning coordinate of the intelligent watch in a coordinate system, wherein an x-axis is time, a y-axis is an abscissa of the positioning coordinate of the intelligent watch in the third image, and a y-axis is an ordinate of the positioning coordinate of the intelligent watch in the fourth image;
Fitting a third image of the positioning coordinates related to time to obtain a third fitting function;
fitting the fourth image of the positioning coordinates about time to obtain a fourth fitting function;
acquiring a time range of a current non-swing arm period, and calculating a second time length of the current non-swing arm period according to the time range;
integrating the third fitting function in the time range of the period of the non-swing arm to obtain a third integral value;
Integrating the fourth fitting function in the time range of the period of the non-swing arm to obtain a fourth integral value;
Dividing the third integrated value by the value of the second time length to be used as an abscissa of the third average positioning coordinate, and dividing the fourth integrated value by the value of the second time length to be used as an ordinate of the third average positioning coordinate;
And calculating to obtain a third average positioning coordinate, and obtaining a fourth average positioning coordinate in the same way, judging whether the current non-swing arm period is changed relative to the previous non-swing arm period or not according to the position relation between the third average positioning coordinate and the fourth average positioning coordinate, and judging whether the current non-swing arm period is subjected to intervention step count or not.
Referring to fig. 7, determining whether the third average positioning coordinate and the fourth average positioning coordinate are greater than a preset distance includes the steps of:
Calculating a second distance between the third average positioning coordinate and the fourth average positioning coordinate by using a distance calculation formula;
comparing the second distance with a preset distance;
the distance calculation formula is as follows:
wherein, (f, h) is a first average positioning coordinate, (g, i) is a second average positioning coordinate, and j is a second distance.
The step counting system based on the intelligent watch is used for realizing the step counting method based on the intelligent watch, and comprises the following steps:
the direction acquisition module is used for setting an acceleration sensor in the intelligent watch, acquiring the moving direction of the intelligent watch by the acceleration sensor and decomposing the moving direction of the intelligent watch into vectors;
The direction judging module is used for counting the number of steps by using the horizontal moving direction when detecting that the horizontal moving direction is changed, and is used for counting the number of steps by using the vertical moving direction when detecting that the horizontal moving direction is not changed;
The period acquisition module acquires all movement periods of the movement process of the intelligent watch, pairs adjacent movement periods to obtain at least one arm swinging period, acquires all activity periods of the movement process of the intelligent watch, and pairs adjacent activity periods to obtain at least one non-swinging arm period;
The coordinate operation module is used for calculating a first average positioning coordinate of the intelligent watch in an arm swing period and a third average positioning coordinate of the intelligent watch in a non-swing arm period;
the distance judging module judges whether the first average positioning coordinate and the second average positioning coordinate are larger than a preset distance or not and judges whether the third average positioning coordinate and the fourth average positioning coordinate are larger than the preset distance or not;
And the step number counting module counts the step number of the user of the intelligent watch.
The working process of the step counting system based on the intelligent watch is as follows:
step one: the direction acquisition module is used for setting an acceleration sensor in the intelligent watch, and the acceleration sensor is used for acquiring the moving direction of the intelligent watch;
vector decomposition is carried out on the moving direction of the intelligent watch, so that a vertical moving direction and a horizontal moving direction are obtained;
Step two: when judging the direction, the direction judging module judges whether the horizontal moving direction is changed firstly and judges whether the vertical moving direction is changed secondly;
Step three: when the change of the horizontal moving direction is detected, counting the number of steps by using the horizontal moving direction;
the period acquisition module takes a moving process of which the horizontal moving direction is kept unchanged as a moving period, and when the horizontal moving direction of the intelligent watch is changed, the next moving period is entered, and all moving periods of the moving process of the intelligent watch are acquired;
the period acquisition module pairs the adjacent moving periods to obtain at least one arm swinging period;
Step four: in the arm swinging period, a coordinate operation module acquires the positioning coordinates of the intelligent watch at each moment, and calculates a first average positioning coordinate of the intelligent watch in the arm swinging period;
Step five: acquiring a second average positioning coordinate of an arm swing period before the arm swing period, judging whether the first average positioning coordinate and the second average positioning coordinate are greater than a preset distance by a distance judging module, if so, judging the arm swing period as an effective swing arm period, and adding two steps to the step number by a step number counting module after the arm swing period is finished;
if not, judging the arm swing period as an invalid swing arm period, and adding zero steps to the step number by the step number counting module after the arm swing period is finished;
Step six: when the direction judging module detects that the horizontal moving direction is not changed, counting the number of steps by using the vertical moving direction;
Step seven: the period acquisition module takes a moving process of the intelligent watch with the vertical moving direction unchanged as an active period, and when the vertical moving direction of the intelligent watch changes, the next active period is entered, and all active periods of the moving process of the intelligent watch are acquired;
pairing adjacent active periods to obtain at least one non-swing arm period;
step eight: in the non-swing arm period, positioning coordinates of the intelligent watch at each moment are obtained, and a coordinate operation module calculates a third average positioning coordinate of the intelligent watch in the non-swing arm period;
step nine: acquiring a fourth average positioning coordinate of a previous non-swing arm period of the non-swing arm period, judging whether the third average positioning coordinate and the fourth average positioning coordinate are greater than a preset distance by a distance judging module, if so, judging the non-swing arm period as an effective period, and adding one step to the step number by a step number counting module after the non-swing arm period is finished;
if not, judging the period of the non-swing arm to be an invalid period, and adding zero steps to the step number by the step number counting module after the period of the non-swing arm is finished.
Still further, the present solution also proposes a storage medium having a computer readable program stored thereon, the computer readable program executing the above-mentioned step count counting method based on the smart watch when called.
It is understood that the storage medium may be a magnetic medium, e.g., floppy disk, hard disk, magnetic tape; optical media such as DVD; or a semiconductor medium such as a solid state disk SolidStateDisk, SSD, etc.
In summary, the invention has the advantages that: by arranging the direction judging module, the period acquiring module and the coordinate operation module, the movement under different conditions can be distinguished, the step count of different methods can be performed, the step count is performed by taking the relation between the swing of the arm and the step count as a main step count means and by using the lifting mode of the center of gravity when the arm is not swung, and the invalid condition in the step count process is eliminated, so that the possibility of deviation is avoided when the step count is counted, and the step count accuracy of the intelligent watch is further improved.
The foregoing has shown and described the basic principles, principal features and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and that the above embodiments and descriptions are merely illustrative of the principles of the present invention, and various changes and modifications may be made therein without departing from the spirit and scope of the invention, which is defined by the appended claims. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (5)

1. The step number counting method based on the intelligent watch is characterized by comprising the following steps of:
Setting an acceleration sensor in the intelligent watch, wherein the acceleration sensor acquires the moving direction of the intelligent watch;
the method for acquiring the movement direction of the intelligent watch by the acceleration sensor comprises the following steps of:
The acceleration sensor core is provided with a magnetic force positioner, and the acceleration sensor uses a uniform magnetic field to maintain the position of the magnetic force positioner in the acceleration sensor;
When the intelligent watch moves, the intelligent watch generates acceleration, and the acceleration sensor moves along with the intelligent watch;
the magnetic force locator moves relative to the acceleration sensor, and a first position coordinate of the relative acceleration sensor before the magnetic force locator moves and a second position coordinate of the relative acceleration sensor after the magnetic force locator moves are obtained;
subtracting the first position coordinate from the second position coordinate to obtain a moving direction vector of the magnetic force positioner;
reversing the moving direction vector of the magnetic force locator to obtain the moving direction vector of the intelligent watch;
vector decomposition is carried out on the moving direction of the intelligent watch, so that a vertical moving direction and a horizontal moving direction are obtained;
The method for decomposing the movement direction of the intelligent watch into the vector to obtain the vertical movement direction and the horizontal movement direction comprises the following steps:
using a parallelogram rule, carrying out vector decomposition on the moving direction of the intelligent watch along the horizontal direction and the vertical direction;
taking the component in the horizontal direction as a horizontal moving direction and the component in the vertical direction as a vertical moving direction;
When judging the direction, firstly judging whether the horizontal moving direction is changed or not, and secondly judging whether the vertical moving direction is changed or not;
When the change of the horizontal moving direction is detected, counting the number of steps by using the horizontal moving direction;
Taking a moving process of the intelligent watch with the horizontal moving direction unchanged as a moving period, and entering the next moving period when the horizontal moving direction of the intelligent watch is changed, so as to obtain all moving periods of the moving process of the intelligent watch;
pairing adjacent moving periods to obtain at least one arm swinging period;
in the arm swinging period, positioning coordinates of the intelligent watch at each moment are obtained, and a first average positioning coordinate of the intelligent watch in the arm swinging period is calculated;
The step of obtaining the positioning coordinates of the intelligent watch at each moment and calculating the first average positioning coordinates of the intelligent watch in the arm swing period comprises the following steps:
acquiring positioning coordinates of the intelligent watch at each moment in the arm swing period, and making a first image and a second image of the positioning coordinates about time in a coordinate system, The axis is time, in the first image/>The axis is the abscissa of the positioning coordinates of the smart watch, in the second image/>The axis is the ordinate of the positioning coordinate of the intelligent watch;
Fitting the first image of the positioning coordinates about time to obtain a first fitting function;
fitting the second image of the positioning coordinates about time to obtain a second fitting function;
acquiring a time range of a current arm swing period, and calculating a first time length of the current arm swing period according to the time range;
Integrating the first fitting function in the time range of the arm swing period to obtain a first integral value;
Integrating the second fitting function in the time range of the arm swing period to obtain a second integral value;
dividing the first integral value by the value of the first time length to be used as the abscissa of the first average positioning coordinate, and dividing the second integral value by the value of the first time length to be used as the ordinate of the first average positioning coordinate;
Acquiring a second average positioning coordinate of the previous arm swinging period of the arm swinging period, judging whether the first average positioning coordinate and the second average positioning coordinate are greater than a preset distance, if so, judging the arm swinging period as an effective swinging arm period, and adding two steps to the step number after the arm swinging period is finished;
if not, judging the arm swing period as an invalid swing arm period, and adding zero steps to the step number after the arm swing period is finished;
when detecting that the horizontal moving direction is unchanged, counting the number of steps by using the vertical moving direction;
taking a moving process of the intelligent watch with the vertical moving direction unchanged as an active period, and entering the next active period when the vertical moving direction of the intelligent watch is changed, so as to obtain all active periods of the moving process of the intelligent watch;
pairing adjacent active periods to obtain at least one non-swing arm period;
In the non-swing arm period, positioning coordinates of the intelligent watch at each moment are obtained, and third average positioning coordinates of the intelligent watch in the non-swing arm period are calculated;
Acquiring a fourth average positioning coordinate of a previous non-swing arm period of the non-swing arm period, judging whether the third average positioning coordinate and the fourth average positioning coordinate are greater than a preset distance, if so, judging the non-swing arm period as an effective period, and adding one step to the step number after the non-swing arm period is finished;
If not, judging the period of the non-swing arm to be an ineffective period, and adding zero steps to the step number after the period of the non-swing arm is finished.
2. The method for counting steps based on a smart watch according to claim 1, wherein the step of determining whether the first average positioning coordinate and the second average positioning coordinate are greater than a predetermined distance comprises the steps of:
Calculating a first distance between the first average positioning coordinate and the second average positioning coordinate by using a distance calculation formula;
Comparing the first distance with a preset distance;
the distance calculation formula is as follows:
wherein, (a, c) is a first average positioning coordinate, (b, d) is a second average positioning coordinate, and e is a first distance.
3. The method for counting steps based on the smart watch according to claim 2, wherein the step of obtaining the positioning coordinates of the smart watch at each moment, and calculating the third average positioning coordinates of the smart watch at the period of non-swing arm comprises the steps of:
acquiring a positioning coordinate of the intelligent watch at each moment in a non-swing arm period, and making a third image and a fourth image of the positioning coordinate of the intelligent watch in a coordinate system, wherein an x-axis is time, a y-axis is an abscissa of the positioning coordinate of the intelligent watch in the third image, and a y-axis is an ordinate of the positioning coordinate of the intelligent watch in the fourth image;
Fitting a third image of the positioning coordinates related to time to obtain a third fitting function;
fitting the fourth image of the positioning coordinates about time to obtain a fourth fitting function;
acquiring a time range of a current non-swing arm period, and calculating a second time length of the current non-swing arm period according to the time range;
integrating the third fitting function in the time range of the period of the non-swing arm to obtain a third integral value;
Integrating the fourth fitting function in the time range of the period of the non-swing arm to obtain a fourth integral value;
The third integrated value divided by the second time length is taken as the abscissa of the third average positioning coordinate, and the fourth integrated value divided by the second time length is taken as the ordinate of the third average positioning coordinate.
4. The method for counting steps based on a smart watch according to claim 3, wherein the step of determining whether the third average positioning coordinate and the fourth average positioning coordinate are greater than a predetermined distance comprises the steps of:
Calculating a second distance between the third average positioning coordinate and the fourth average positioning coordinate by using a distance calculation formula;
comparing the second distance with a preset distance;
the distance calculation formula is as follows:
wherein, (f, h) is a first average positioning coordinate, (g, i) is a second average positioning coordinate, and j is a second distance.
5. A smart watch based step count counting system for implementing a smart watch based step count counting method as claimed in any one of claims 1 to 4, comprising:
the direction acquisition module is used for setting an acceleration sensor in the intelligent watch, acquiring the moving direction of the intelligent watch by the acceleration sensor and decomposing the moving direction of the intelligent watch into vectors;
The direction judging module is used for counting the number of steps by using the horizontal moving direction when detecting that the horizontal moving direction is changed, and is used for counting the number of steps by using the vertical moving direction when detecting that the horizontal moving direction is not changed;
The period acquisition module acquires all movement periods of the movement process of the intelligent watch, pairs adjacent movement periods to obtain at least one arm swinging period, acquires all activity periods of the movement process of the intelligent watch, and pairs adjacent activity periods to obtain at least one non-swinging arm period;
The coordinate operation module is used for calculating a first average positioning coordinate of the intelligent watch in an arm swing period and a third average positioning coordinate of the intelligent watch in a non-swing arm period;
the distance judging module judges whether the first average positioning coordinate and the second average positioning coordinate are larger than a preset distance or not and judges whether the third average positioning coordinate and the fourth average positioning coordinate are larger than the preset distance or not;
And the step number counting module counts the step number of the user of the intelligent watch.
CN202410046805.3A 2024-01-12 2024-01-12 Step number counting method and system based on intelligent watch Active CN117553822B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410046805.3A CN117553822B (en) 2024-01-12 2024-01-12 Step number counting method and system based on intelligent watch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410046805.3A CN117553822B (en) 2024-01-12 2024-01-12 Step number counting method and system based on intelligent watch

Publications (2)

Publication Number Publication Date
CN117553822A CN117553822A (en) 2024-02-13
CN117553822B true CN117553822B (en) 2024-04-19

Family

ID=89817139

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410046805.3A Active CN117553822B (en) 2024-01-12 2024-01-12 Step number counting method and system based on intelligent watch

Country Status (1)

Country Link
CN (1) CN117553822B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105043410A (en) * 2015-06-30 2015-11-11 深圳市元征科技股份有限公司 Pedometer
CN106813676A (en) * 2017-02-21 2017-06-09 北京邮电大学 One kind meter step, localization method and device
CN106895835A (en) * 2015-12-17 2017-06-27 阿里巴巴集团控股有限公司 Localization method and device
CN107727110A (en) * 2017-09-11 2018-02-23 上海斐讯数据通信技术有限公司 The statistical method and device of a kind of step number
CN111240481A (en) * 2020-01-10 2020-06-05 鄢家厚 Read-write distance identification method based on smart watch
CN112617363A (en) * 2020-12-11 2021-04-09 佛山芯珠微电子有限公司 Dynamic step counting bracelet, step counting method thereof and body temperature monitoring method
CN113826984A (en) * 2021-09-15 2021-12-24 张建妹 Intelligent navigation positioning step counting shoe and step counting method
CN114125129A (en) * 2021-11-03 2022-03-01 方正株式(武汉)科技开发有限公司 Step counting method and device based on mobile phone
CN114767080A (en) * 2022-04-28 2022-07-22 郑州市中心医院 Method for eliminating step counting error of wearable equipment and wearable equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105043410A (en) * 2015-06-30 2015-11-11 深圳市元征科技股份有限公司 Pedometer
CN106895835A (en) * 2015-12-17 2017-06-27 阿里巴巴集团控股有限公司 Localization method and device
CN106813676A (en) * 2017-02-21 2017-06-09 北京邮电大学 One kind meter step, localization method and device
CN107727110A (en) * 2017-09-11 2018-02-23 上海斐讯数据通信技术有限公司 The statistical method and device of a kind of step number
CN111240481A (en) * 2020-01-10 2020-06-05 鄢家厚 Read-write distance identification method based on smart watch
CN112617363A (en) * 2020-12-11 2021-04-09 佛山芯珠微电子有限公司 Dynamic step counting bracelet, step counting method thereof and body temperature monitoring method
CN113826984A (en) * 2021-09-15 2021-12-24 张建妹 Intelligent navigation positioning step counting shoe and step counting method
CN114125129A (en) * 2021-11-03 2022-03-01 方正株式(武汉)科技开发有限公司 Step counting method and device based on mobile phone
CN114767080A (en) * 2022-04-28 2022-07-22 郑州市中心医院 Method for eliminating step counting error of wearable equipment and wearable equipment

Also Published As

Publication number Publication date
CN117553822A (en) 2024-02-13

Similar Documents

Publication Publication Date Title
CN104137594B (en) Sensor tracking activity, speed and direction of advance are used in mobile device or other systems
CN103455170B (en) A kind of sensor-based motion of mobile terminals identifying device and method
US20150316579A1 (en) Motion direction determination and application
CN108810824B (en) Mobile terminal positioning method, system, mobile terminal and readable storage medium
EP3137969B1 (en) Motion direction determination and application
US9983224B2 (en) Motion direction determination and application
CN106462237B (en) Motion direction determination
KR20130116910A (en) Motion parameter determination method and device and motion auxiliary equipment
CN105091878B (en) A kind of localization method and device based on gait
CN110579207A (en) Indoor positioning system and method based on combination of geomagnetic signals and computer vision
CN117553822B (en) Step number counting method and system based on intelligent watch
CN107358051B (en) Motion state of terminal analysis method, mobile terminal and readable storage medium storing program for executing
JP2012155477A (en) Portable device and autonomous navigation calculation method
CN105318868A (en) Navigation information acquisition method and device and mobile terminal
CN111077548A (en) Riding positioning data optimization method based on Android system
CN114035345B (en) Intelligent glasses and working method thereof
CN105953794B (en) A kind of meter step air navigation aid based on MEMS sensor
CN106767770A (en) A kind of detection of user's direction of travel and method for tracing based on portable intelligent equipment
Li et al. Collaborative recognition of queuing behavior on mobile phones
CN107360547B (en) Clustering processing method for preventing positioning jitter in static state in indoor positioning
US10579037B1 (en) Positioning method and apparatus
CN114125129B (en) Step number counting method and device based on mobile phone, electronic equipment and storage medium
Uddin et al. SmartSpaghetti: Accurate and robust tracking of Human's location
CN114764947A (en) System and method for detecting walking activity using a waist-worn inertial sensor
CN113093255A (en) Multi-signal true fusion positioning calculation method, device, equipment and storage medium

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