CN106994238B - Data processing method and electronic device for executing the same - Google Patents

Data processing method and electronic device for executing the same Download PDF

Info

Publication number
CN106994238B
CN106994238B CN201710204690.6A CN201710204690A CN106994238B CN 106994238 B CN106994238 B CN 106994238B CN 201710204690 A CN201710204690 A CN 201710204690A CN 106994238 B CN106994238 B CN 106994238B
Authority
CN
China
Prior art keywords
data
value
movement
preset
monitored
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
CN201710204690.6A
Other languages
Chinese (zh)
Other versions
CN106994238A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710204690.6A priority Critical patent/CN106994238B/en
Publication of CN106994238A publication Critical patent/CN106994238A/en
Application granted granted Critical
Publication of CN106994238B publication Critical patent/CN106994238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B71/00Games or sports accessories not covered in groups A63B1/00 - A63B69/00
    • A63B71/06Indicating or scoring devices for games or players, or for other sports activities
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B2220/00Measuring of physical parameters relating to sporting activity
    • A63B2220/80Special sensors, transducers or devices therefor
    • A63B2220/83Special sensors, transducers or devices therefor characterised by the position of the sensor
    • A63B2220/833Sensors arranged on the exercise apparatus or sports implement

Abstract

The invention discloses a data processing method, which comprises the following steps: monitoring predetermined first data to obtain a first value, the first data comprising at least one type of data indicating that the device is in a particular state of motion; comparing a first value of the monitored first data with a preset value corresponding to the first data; when the comparison result indicates that the first value of the first data is matched with the preset value, storing second data related to the specific motion state, wherein the type of the data included in the second data is larger than or equal to that of the data included in the first data; and when the comparison result indicates that the first value of the first data does not match the preset value, repeatedly executing the monitoring and comparing steps. The invention also discloses an electronic device for executing the data processing method.

Description

Data processing method and electronic device for executing the same
Technical Field
The present invention relates to the field of information technology, and in particular, to a data processing method and an electronic device for executing the data processing method.
Background
With the concern of physical health, more and more people participate in the exercise and fitness activities. A variety of electronic devices such as wearable products, smartphones, and the like provide a motion recording method and a motion amount statistical method, which are also receiving increasing attention.
The user can carry the electronic equipment during exercise, and the electronic equipment can record the exercise amount of the user by monitoring the behavior of the user, such as walking steps, walking distance, pace, calorie consumption and the like.
However, the existing electronic devices still cannot satisfy the user demands of the users by using the motion recording method and the motion amount statistical method. For example, each time a user starts a movement, the user is usually required to manually operate the electronic device, open the movement recording software in the electronic device, and click "start movement" to record. Such a manner of operation may cause inconvenience to the user and affect the accuracy of the recording in some usage scenarios, for example, in a scenario of running, riding while wearing gloves, or in a scenario of skiing while wearing ski gloves.
Disclosure of Invention
In order to solve at least one aspect of the above-described problems, the present invention provides a data processing method and an electronic device for executing the data processing method. The data processing method and the electronic device for executing the data processing method can automatically start recording the motion of the user without the need for the user to manually operate the electronic device.
According to an aspect of the present invention, there is provided a data processing method including:
monitoring predetermined first data to obtain a first value, the first data comprising at least one type of data indicating that the device is in a particular state of motion;
comparing a first value of the monitored first data with a preset value corresponding to the first data;
when the comparison result indicates that the first value of the first data is matched with the preset value, storing second data related to the specific motion state, wherein the type of the data included in the second data is larger than or equal to that of the data included in the first data;
and when the comparison result indicates that the first value of the first data does not match the preset value, repeatedly executing the monitoring and comparing steps.
According to some embodiments, the data processing method may further include the steps of:
and when the comparison result shows that the first value of the first data is matched with the preset value, the first value of the first data used in the comparison step is also stored.
According to some embodiments, the data processing method may further include the steps of:
performing the monitoring and comparing steps while storing the second data; and
when the comparison result of the comparison step performed while storing the second data indicates that the first value of the first data does not match the preset value, stopping the storing step, and resuming to repeatedly perform the monitoring and comparing steps.
According to some embodiments, the step of monitoring predetermined first data to obtain a first value may comprise:
collecting the predetermined first data;
caching first data collected in a preset time period; and
the first value is calculated based on first data buffered for a predetermined period of time.
According to some embodiments, the first data comprises a speed of movement of the moving object, and the step of comparing the monitored first value of the first data with a corresponding preset value for that data comprises comparing the monitored value of the speed of movement with a preset minimum speed of movement at which the moving object is in motion; and when the value of the monitored movement speed is not less than the preset minimum movement speed, determining that a first value of the first data matches the preset value; and/or
The first data comprises a movement position and/or a movement time, and the step of comparing the monitored first value of the first data with the corresponding preset value of the data comprises comparing the monitored value of the movement position and/or the movement time with the preset movement position and/or the preset movement time of the moving object under the movement respectively; and determining that the first value of the first data matches a preset value when the value of the monitored movement position and/or movement time is the same as the preset movement position and/or movement time, respectively.
According to some embodiments, the first data comprises a movement speed, a movement time and a movement position of the moving object,
the step of comparing the monitored first value of the first data with the preset value corresponding to the data comprises: comparing the value of the monitored movement speed with a preset minimum movement speed at which the moving object is in the movement; and comparing the values of the monitored motion position and motion time with preset motion positions and motion times of the moving object under the motion respectively;
when the monitored value of the movement speed is not less than the preset minimum movement speed and the monitored values of the movement position and/or the movement time are respectively the same as the preset movement position and/or the preset movement time, determining that the first value of the first data is matched with the preset value;
when the monitored value of the movement speed is not less than the preset minimum movement speed and the monitored values of the movement position and/or the movement time are not the same as the preset movement position and/or the preset movement time, the movement speed of the moving object is monitored again, the monitored value of the movement speed is compared with the preset minimum movement speed of the moving object under the movement, and when the monitored value of the movement speed is still not less than the preset minimum movement speed, the first value of the first data is determined to be matched with the preset value.
According to some embodiments, the preset value is at least one selected from the following data:
stored historical data indicating that the device is in a particular state of motion;
at least one type of data is input for indicating that the equipment is in a specific motion state; and/or
Data calculated based on historical data and/or at least one type of data entered to indicate that the device is in a particular state of motion.
According to some embodiments, the data calculated based on the historical data and/or the at least one type of data entered to indicate that the device is in a particular state of motion comprises:
and calculating the average value, the maximum value and/or the minimum value of the historical data based on the historical data stored for a plurality of times.
According to another aspect of the present invention, there is also provided an electronic apparatus, including: a memory for storing executable instructions; and
a processor for executing executable instructions stored in the memory to perform the data processing method as described in any of the above embodiments.
According to still another aspect of the present invention, there is also provided an electronic apparatus including:
a monitoring module configured to monitor predetermined first data to obtain a first value, wherein the first data comprises at least one type of data indicating that a device is in a particular state of motion;
the comparison module is configured to compare a first value of the monitored first data with a preset value corresponding to the first data; and
a control module configured to: when the comparison module determines that the first value of the first data is matched with the preset value, controlling the storage module to store second data related to the specific motion state, wherein the type of data included in the second data is larger than or equal to that of the first data; and when the comparison module determines that the first value of the first data does not match the preset value, controlling the monitoring module and the comparison module to repeatedly perform the monitoring and comparison steps.
According to the data processing method and the electronic equipment for executing the data processing method, the recording of the movement of the user can be automatically started, so that the user does not need to manually operate the electronic equipment, the user experience of the electronic equipment is improved, and the accuracy of movement recording is improved.
Drawings
FIG. 1 illustrates a flow chart of a method of data processing according to an exemplary embodiment of the invention;
FIG. 2 illustrates a flow chart of a method of data processing according to an exemplary embodiment of the present invention;
fig. 3 shows a flowchart of the step of monitoring predetermined first data to obtain a first value in a data processing method according to an exemplary embodiment of the present invention;
FIG. 4 shows a block diagram of an example hardware arrangement of an electronic device according to an example embodiment of the invention; and
fig. 5 shows a block diagram of an electronic device according to an exemplary embodiment of the present invention.
Detailed Description
The technical scheme of the invention is further specifically described by the following embodiments and the accompanying drawings. In the specification, the same or similar reference numerals denote the same or similar components.
Hereinafter, for convenience of description, it is necessary to explain the idea of the present invention by taking a motion recording method and a motion recording apparatus as examples. It is to be understood that this exemplary description is only intended to illustrate the inventive idea and should not be taken as a limitation of the invention. In one example, the motion recording method may be used to record various motions of running, riding, swimming, mountain climbing, skiing, skating, etc., and the motion recording devices may include, but are not limited to, various mobile devices such as smart phones, tablet computers, etc., and various smart wearing devices such as smart watches, bracelets, etc.
Fig. 1 illustrates a flowchart of a data processing method according to an exemplary embodiment of the present invention. As shown in fig. 1, the data processing method may include the following steps.
In step S101, predetermined first data is monitored to obtain a first value, the first data comprising at least one type of data for indicating that the device is in a particular state of motion.
The data processing method will be described by taking the recording of running exercise as an example. In this example, the first data may include, but is not limited to: speed of movement, time of movement, location of movement, etc. In step S101, for example, a movement speed may be monitored, which may be used to indicate that the apparatus is in a running exercise state, and a movement speed value is obtained from the monitored movement speed, in a manner to be described further below.
In step S102, a first value of the monitored first data is compared with a preset value corresponding to the first data.
In one example, a preset value of exercise speed is stored in the device, which may indicate that the device is in a running exercise state. In step S102, the value of the monitored movement speed is compared with a preset value of the movement speed.
According to an exemplary embodiment of the present invention, the preset value may be at least one selected from the following data: stored historical data indicating that the device is in a particular state of motion; at least one type of data is input for indicating that the equipment is in a specific motion state; and/or data calculated based on historical data and/or at least one type of data entered to indicate that the device is in a particular state of motion. Taking running exercise as an example, the preset value can be historical running speed, running position and running time of a user habit and other data stored in the equipment; or the running speed, running position, running time and other data input by the user. In one example, the data calculated based on the historical data and/or the at least one type of data entered to indicate that the device is in a particular state of motion includes: and calculating the average value, the maximum value and/or the minimum value of the historical data based on the historical data stored for a plurality of times. For example, an average, a maximum, and/or a minimum of the historical running speeds calculated based on the historical running speeds stored a plurality of times.
In one example, the first data includes a moving speed of the moving object, and step S102 may include comparing a value of the monitored moving speed with a preset minimum moving speed at which the moving object is in running motion. Alternatively, the first data may include a motion position and/or a motion time, and step S102 may include comparing values of the monitored motion position and/or motion time with preset motion positions and/or motion times, respectively, at which the moving object is in running motion.
In another example, the first data includes a moving speed, a moving time and a moving position of the moving object, and the step S102 may include: comparing the value of the monitored movement speed with a preset minimum movement speed at which the moving object is in the movement; and comparing the values of the monitored motion position and motion time with preset motion positions and motion times of the moving object under the motion, respectively.
The above steps are further described in detail by taking a specific application scenario as an example. For example, user A typically runs at Olympic park for 30 minutes at 6 am, the starting point of the run is typically at the south door of Olympic park, and the minimum running speed is 10km/h at ordinary times. According to the embodiment, the preset minimum movement speed can be set to be 10km/h, the preset movement time is 6 am, and the preset movement place is the south door of the olympic park.
In such a scenario, according to one example of the present invention, the device carried by user a may monitor its movement speed and compare the monitored movement speed with its minimum movement speed of 10 km/h. Alternatively, the device carried by user a may monitor its movement location and/or movement time and compare the monitored movement location and/or movement time with olympic park south door and 6 am, respectively.
In such a scenario, according to another example of the present invention, the device carried by user a may simultaneously monitor its moving speed, moving location and moving time, and compare the monitored moving speed, moving location and moving time with its minimum moving speed of 10km/h, olympic park south gate and 6 am, respectively.
In step S103, when the comparison result indicates that the first value of the first data matches the preset value, second data related to the specific motion state is stored, and the type of data included in the second data is greater than or equal to the type of data included in the first data.
In one example, when the comparison result of step S102 indicates that the value of the exercise speed matches the preset value of the exercise speed, indicating that the apparatus or the user has started running or the like, the apparatus starts to store second data related to the running exercise, which may include the exercise speed, the exercise time, the exercise location, the exercise trajectory, the exercise mileage, the number of calories consumed, or the like. That is, the type of data included in the second data is not limited to the type of data included in the first data, and may be greater than or equal to the type of data included in the first data.
In one example, when the value of the monitored exercise speed is not less than the preset minimum exercise speed, it is determined that the first value of the first data matches the preset value, thereby starting to store the second data related to the running exercise. Optionally, when the value of the monitored exercise position and/or exercise time is the same as the preset exercise position and/or exercise time, respectively, it is determined that the first value of the first data matches the preset value, thereby starting to store the second data related to the running exercise.
Corresponding to the scenario described above, in this example, when the value of the monitored exercise speed of the user a is not less than 10km/h, the storage of the second data related to the running exercise is started. Optionally, the storing of the second data related to the running exercise is started when the value of the monitored exercise location and/or exercise time is the same as 6 am and/or olympic park south door, respectively.
In another example, it is determined that the first value of the first data matches the preset value when the value of the monitored movement speed is not less than the preset minimum movement speed and the value of the monitored movement position and/or movement time is the same as the preset movement position and/or movement time, respectively. When the monitored value of the movement speed is not less than the preset minimum movement speed and the monitored values of the movement position and/or the movement time are not the same as the preset movement position and/or the preset movement time, the movement speed of the moving object is monitored again, the monitored value of the movement speed is compared with the preset minimum movement speed of the moving object under the movement, and when the monitored value of the movement speed is still not less than the preset minimum movement speed, the first value of the first data is determined to be matched with the preset value.
Corresponding to the scenario described above, in this example, when the value of the monitored exercise speed of the user a is not less than 10km/h and the value of the monitored exercise position and/or exercise time is the same as 6 am and/or south door of olympic park, respectively, the second data related to the running exercise starts to be stored. When the monitored value of the exercise speed of the user a is not less than 10km/h, but the monitored value of the exercise position and/or the exercise time is not the same as 6 am and/or south door of olympic park, respectively, the exercise speed needs to be monitored again, the re-monitored value of the exercise speed is secondarily compared with 10km/h, and when the result of the secondary comparison still indicates that the value of the exercise speed of the user a is not less than 10km/h, the storage of the second data related to the running exercise is started.
In the data processing method, when the monitored data show that the data conform to the exercise habits of the user, the exercise state of the user can be quickly determined; when the monitored movement position and/or movement time information is not in accordance with the movement habit of the user, the data is further monitored to determine the movement state of the user, so that the calculation speed and accuracy for determining the movement state can be considered.
In step S104, when the comparison result indicates that the first value of the first data does not match the preset value, the monitoring and comparing steps, i.e., steps S101 and S102, are repeatedly performed.
In one example, when the comparison result of step S102 indicates that the value of the exercise speed does not match the preset value of the exercise speed, indicating that the apparatus or the user has not started an exercise such as running, the apparatus repeatedly performs the monitoring and comparing steps, i.e., repeatedly performs steps S101 and S102.
By the data processing method, the motion recording equipment can automatically judge whether the equipment or the user is in a certain motion state according to the monitored data so as to automatically start recording the motion of the user, so that the user does not need to manually operate the electronic equipment, the user experience of the electronic equipment is improved, and the accuracy of motion recording is improved.
According to an exemplary embodiment of the present invention, the data processing method may further include the steps of:
and S105, when the comparison result shows that the first value of the first data is matched with the preset value, storing the first value of the first data used in the comparison step.
In one example, the values of the moving speed compared in step S102 and the corresponding moving speed are cached in the device, so that when the comparison result of step S102 indicates that the values of the moving speed match the preset values of the moving speed, the device further stores the values of the moving speed used in the comparing step (i.e., step S102), i.e., the cached values of the moving speed and the corresponding moving speed.
Alternatively, as described above, in the case where step S103 includes the step of the secondary comparison, step S105 may store the first value of the first data used in step S102 and the first value of the first data used in the secondary comparison step in step S103.
In this example, when the comparison result indicates that the value of the exercise speed matches the preset value of the exercise speed, indicating that the device or the user is already in an exercise state, by storing the value of the exercise speed used in the comparison step as well, it is possible to ensure that the exercise data at the exercise start time point is accurately recorded, thereby further improving the accuracy of the exercise recording.
Fig. 2 shows a flow chart of a data processing method according to another exemplary embodiment of the present invention. As shown in fig. 2, in the embodiment of fig. 2, the data processing method may further include the following steps.
In step S201, predetermined first data is monitored to obtain a first value.
In step S202, a first value of the monitored first data is compared with a preset value corresponding to the first data.
In step S203, when the comparison result indicates that the first value of the first data matches the preset value, the second data related to the specific motion state is stored, and the monitoring and comparing steps (i.e., steps S201 and S202) are performed to compare the first value of the monitored first data with the preset value corresponding to the first data.
In one example, when the comparison result of step S202 indicates that the value of the exercise speed matches the preset value of the exercise speed, the apparatus starts to store second data related to the running exercise, such as the exercise speed, the exercise time, the exercise location, the exercise trajectory, the exercise mileage, the number of calories consumed, and the like. While the second data is stored, the monitoring step of step S201 and the comparing step of step S202 are also performed.
In step S206, when the comparison result of the comparison step performed while storing the second data (i.e., the comparison step performed in step S203) indicates that the first value of the first data matches the preset value, the above step S203 is repeatedly performed. When the comparison result of the comparison step performed while storing the second data (i.e., the comparison step performed in step S203) indicates that the first value of the first data does not match the preset value, the storage step is stopped, and it is resumed to repeatedly perform the monitoring and comparing steps.
In one example, when the comparison result of the comparison step performed in step S203 indicates that the value of the exercise speed does not match the preset value of the exercise speed, indicating that the apparatus or the user has stopped running or the like, the storage step is stopped, and the apparatus is restored to the monitoring state, i.e., the state in which the monitoring step of step S201 and the comparison step of step S202 are performed.
By the data processing method, the motion recording equipment can automatically judge whether the equipment or the user is in a certain motion state according to the monitored data so as to automatically start recording the motion of the user and automatically stop recording the motion of the user, so that the user does not need to manually operate the electronic equipment when starting the motion and stopping the motion, the user experience of the electronic equipment is further improved, and the accuracy of motion recording is improved.
Optionally, in the embodiment shown in fig. 2, the data processing method may further include the following steps.
In step S204, when the comparison result indicates that the first value of the first data does not match the preset value, the monitoring and comparing steps, i.e. steps S201 and S202, are repeatedly performed.
In step S205, when the comparison result indicates that the first value of the first data matches the preset value, the first value of the first data used in the comparison step is also stored.
It should be understood that the details of steps S201, S202, S203, S204 and S205 of the data processing method may refer to the description of steps S101 to S105, and are not repeated herein.
Fig. 3 shows a flowchart of the step of monitoring predetermined first data to obtain a first value in the data processing method according to an exemplary embodiment of the present invention. As shown in fig. 3, the step of monitoring the predetermined first data to obtain the first value may further include the following steps.
In step S301, the predetermined first data is acquired. The speed of movement is acquired, for example, by sensors on the device.
In step S302, first data collected within a predetermined time period is buffered. For example, a plurality of movement velocities acquired within 1 minute are buffered.
In step S303, the first value is calculated based on the buffered first data for the predetermined period of time. For example, based on a plurality of movement speeds within 1 minute of the buffer memory, an average value, a maximum value, and/or a minimum value of the plurality of movement speeds is calculated as the first value.
According to another exemplary embodiment of the present invention, there is also provided an electronic device, which may include: a memory for storing executable instructions; and a processor for executing executable instructions stored in the memory to perform the data processing method described above.
Fig. 4 shows a block diagram of an example hardware arrangement 400 of an electronic device according to an embodiment of the invention. The hardware arrangement 400 includes a processor 406 (e.g., a microprocessor (μ P), a Digital Signal Processor (DSP), etc.). Processor 406 may be a single processing unit or multiple processing units for performing different actions of the processes described herein. The arrangement 400 may also comprise an input unit 402 for receiving signals from other entities, and an output unit 404 for providing signals to other entities. The input unit 402 and the output unit 404 may be arranged as a single entity or as separate entities.
Furthermore, the arrangement 400 may comprise at least one readable storage medium 408 in the form of a non-volatile or volatile memory, for example an electrically erasable programmable read-only memory (EEPROM), a flash memory, and/or a hard disk drive. The readable storage medium 408 includes a computer program 410, the computer program 410 comprising code/computer readable instructions that, when executed by the processor 406 in the arrangement 400, cause the hardware arrangement 400 and/or a device comprising the hardware arrangement 400 to perform a procedure such as that described above in connection with fig. 1-3 and any variations thereof.
Although the code means in the embodiments disclosed above in connection with fig. 4 are implemented as computer program modules which, when executed in the processor 406, cause the hardware arrangement 400 to perform the steps described above in connection with fig. 1-3, at least one of the code means may, in alternative embodiments, be implemented at least partly as hardware circuitry.
The processor may be a single CPU (central processing unit), but may also include two or more processing units. For example, a processor may include a general purpose microprocessor, an instruction set processor, and/or related chip sets and/or special purpose microprocessors (e.g., an Application Specific Integrated Circuit (ASIC)). The processor may also include on-board memory for caching purposes. The computer program may be carried by a computer program product connected to the processor. The computer program product may comprise a computer readable medium having a computer program stored thereon. For example, the computer program product may be a flash memory, a Random Access Memory (RAM), a Read Only Memory (ROM), an EEPROM, and the above-mentioned computer program modules may in alternative embodiments be distributed in the form of a memory within the UE to the different computer program products.
Fig. 5 shows a block diagram of an electronic device according to another exemplary embodiment of the present invention. As shown in fig. 5, the electronic device 500 may include:
a monitoring module 502 configured to monitor predetermined first data to obtain a first value, wherein the first data comprises at least one type of data indicating that the device is in a particular state of motion;
a comparison module 504 configured to compare a first value of the monitored first data with a preset value corresponding to the first data; and
a control module 506 configured to: when the comparing module determines that the first value of the first data matches the preset value, the control storage module 508 stores second data related to the specific motion state, wherein the second data comprises a data type greater than or equal to the data type of the first data; and when the comparison module determines that the first value of the first data does not match the preset value, controlling the monitoring module and the comparison module to repeatedly perform the monitoring and comparison steps.
In one example, the control module 506 is further configured to: when the comparison result indicates that the first value of the first data matches the preset value, the storage module 508 is further controlled to store the first value of the first data used in the comparison step.
In one example, the control module 506 is further configured to: performing the monitoring and comparing steps while the storage module 508 stores the second data; and when the comparison result of the comparison step performed while storing the second data indicates that the first value of the first data does not match the preset value, controlling the storage module 508 to stop the storage step and resume to repeatedly perform the monitoring and comparing steps.
In one example, as shown in fig. 5, the electronic device may further include: a collection module 5022 configured to collect the predetermined first data; a cache module 5024 configured to cache first data collected within a predetermined time period; and a calculation module 5026 configured to calculate the first value based on the buffered first data over a predetermined period of time.
In one example, the first data may include a speed of movement of the moving object, the comparison module 504 is configured to compare the value of the monitored speed of movement to a preset minimum speed of movement at which the moving object is in the movement, and the control module 506 is configured to: and when the monitored value of the movement speed is not less than the preset minimum movement speed, determining that the first value of the first data is matched with the preset value.
Optionally, the first data may comprise a movement position and/or a movement time, the comparison module 504 is configured to compare the value of the monitored movement position and/or movement time with a preset movement position and/or movement time, respectively, at which the moving object is in the movement, and the control module 506 is configured to: and when the monitored values of the movement position and/or the movement time are the same as the preset values of the movement position and/or the movement time, respectively, determining that the first value of the first data is matched with the preset value.
In one example, the first data may include a motion speed, a motion time, and a motion position of the moving object, and the comparison module 504 is configured to: comparing the value of the monitored movement speed with a preset minimum movement speed at which the moving object is in the movement; and compares the values of the monitored motion position and motion time with preset motion positions and motion times, respectively, at which the moving object is in motion, and the control module 506 is configured to: when the monitored value of the movement speed is not less than the preset minimum movement speed and the monitored values of the movement position and/or the movement time are respectively the same as the preset movement position and/or the preset movement time, determining that the first value of the first data is matched with the preset value; when the monitored value of the movement speed is not less than the preset minimum movement speed and the monitored values of the movement position and/or the movement time are not the same as the preset movement position and/or the preset movement time, the movement speed of the moving object is monitored again, the monitored value of the movement speed is compared with the preset minimum movement speed of the moving object under the movement, and when the monitored value of the movement speed is still not less than the preset minimum movement speed, the first value of the first data is determined to be matched with the preset value.
Although the present invention has been described in connection with the accompanying drawings, the embodiments disclosed in the drawings are intended to be illustrative of preferred embodiments of the present invention and should not be construed as limiting the invention.
Although a few embodiments of the present general inventive concept have been shown and described, it would be appreciated by those skilled in the art that changes may be made in these embodiments without departing from the principles and spirit of the general inventive concept, the scope of which is defined in the claims and their equivalents.

Claims (7)

1. A method of data processing, comprising:
monitoring predetermined first data to obtain a first value, the first data comprising at least one type of data indicating that the device is in a particular state of motion;
comparing a first value of the monitored first data with a preset value corresponding to the first data, wherein the preset value is based on a plurality of stored historical data before the start of the movement and used for indicating that the equipment is in a specific movement state;
when the comparison result indicates that the first value of the first data is matched with the preset value, storing second data related to the specific motion state, wherein the type of the data included in the second data is larger than or equal to that of the data included in the first data, and storing the first value of the first data used in the comparison step;
when the comparison result indicates that the first value of the first data does not match the preset value, the monitoring and comparing steps are repeatedly executed;
performing the monitoring and comparing steps while storing the second data and a first value of the first data used by the comparing step; and
stopping the storing step and resuming to repeatedly perform the monitoring and comparing step when a comparison result of the comparing step performed while storing the second data and the first value of the first data used by the comparing step indicates that the first value of the first data does not match the preset value.
2. The data processing method of claim 1, wherein the step of monitoring predetermined first data to obtain a first value comprises:
collecting the predetermined first data;
caching first data collected in a preset time period; and
the first value is calculated based on first data buffered for a predetermined period of time.
3. The data processing method according to claim 1 or 2, wherein the first data comprises a moving speed of the moving object, and the step of comparing the monitored first value of the first data with a preset value corresponding to the data comprises comparing the monitored value of the moving speed with a preset minimum moving speed at which the moving object is in motion; and when the value of the monitored movement speed is not less than the preset minimum movement speed, determining that a first value of the first data matches the preset value; and/or
The first data comprises a movement position and/or a movement time, and the step of comparing the monitored first value of the first data with the corresponding preset value of the data comprises comparing the monitored value of the movement position and/or the movement time with the preset movement position and/or the preset movement time of the moving object under the movement respectively; and determining that the first value of the first data matches a preset value when the value of the monitored movement position and/or movement time is the same as the preset movement position and/or movement time, respectively.
4. The data processing method according to claim 1 or 2, wherein the first data includes a moving speed, a moving time, and a moving position of a moving object,
the step of comparing the monitored first value of the first data with the preset value corresponding to the data comprises: comparing the value of the monitored movement speed with a preset minimum movement speed at which the moving object is in the movement; and comparing the values of the monitored motion position and motion time with preset motion positions and motion times of the moving object under the motion respectively;
when the monitored value of the movement speed is not less than the preset minimum movement speed and the monitored values of the movement position and/or the movement time are respectively the same as the preset movement position and/or the preset movement time, determining that the first value of the first data is matched with the preset value;
when the monitored value of the movement speed is not less than the preset minimum movement speed and the monitored values of the movement position and/or the movement time are not the same as the preset movement position and/or the preset movement time, the movement speed of the moving object is monitored again, the monitored value of the movement speed is compared with the preset minimum movement speed of the moving object under the movement, and when the monitored value of the movement speed is still not less than the preset minimum movement speed, the first value of the first data is determined to be matched with the preset value.
5. The data processing method of claim 4, wherein the data calculated based on the historical data and/or the at least one type of data entered to indicate that the device is in a particular state of motion comprises:
and calculating the average value, the maximum value and/or the minimum value of the historical data based on the historical data stored for a plurality of times.
6. An electronic device, comprising: a memory for storing executable instructions; and
a processor for executing executable instructions stored in the memory to perform the data processing method of any one of claims 1 to 5.
7. An electronic device, comprising:
a monitoring module configured to monitor predetermined first data to obtain a first value, wherein the first data comprises at least one type of data indicating that the device is in at least one particular state of motion;
the comparison module is configured to compare a first value of the monitored first data with a preset value corresponding to the first data, wherein the preset value is based on a plurality of stored historical data before the movement starts and used for indicating that the equipment is in a specific movement state; and
a control module configured to: when the comparison module determines that the first value of the first data matches the preset value, controlling the storage module to store second data related to the at least one specific motion state, wherein the second data comprises a data type greater than or equal to a data type included in the first data, and further controlling the storage module to store the first value of the first data used in the comparison step; when the comparison module determines that the first value of the first data does not match the preset value, controlling the monitoring module and the comparison module to repeatedly perform the monitoring and comparison steps; the control module is further configured to: performing the monitoring and comparing steps while storing the second data and a first value of the first data used by the comparing step; and when a comparison result of the comparison step performed while storing the second data and the first value of the first data used by the comparison step indicates that the first value of the first data does not match the preset value, controlling the storage module to stop the storage step and resume to repeatedly perform the monitoring and comparison steps.
CN201710204690.6A 2017-03-30 2017-03-30 Data processing method and electronic device for executing the same Active CN106994238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710204690.6A CN106994238B (en) 2017-03-30 2017-03-30 Data processing method and electronic device for executing the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710204690.6A CN106994238B (en) 2017-03-30 2017-03-30 Data processing method and electronic device for executing the same

Publications (2)

Publication Number Publication Date
CN106994238A CN106994238A (en) 2017-08-01
CN106994238B true CN106994238B (en) 2020-07-24

Family

ID=59434107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710204690.6A Active CN106994238B (en) 2017-03-30 2017-03-30 Data processing method and electronic device for executing the same

Country Status (1)

Country Link
CN (1) CN106994238B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107773967B (en) * 2017-10-25 2020-04-10 公安部物证鉴定中心 Human motion characteristic analysis method based on smart watch data
CN109065120B (en) * 2018-06-28 2022-03-18 努比亚技术有限公司 Information processing method and device and computer storage medium
CN111569397B (en) * 2020-04-30 2021-06-15 东莞全创光电实业有限公司 Handle motion counting method and terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10039970B2 (en) * 2010-07-14 2018-08-07 Adidas Ag Location-aware fitness monitoring methods, systems, and program products, and applications thereof
CN103154954B (en) * 2010-08-09 2018-06-05 耐克创新有限合伙公司 For recording the system and method with tracing movement activity
CN106501834A (en) * 2016-10-11 2017-03-15 上海保橙网络科技有限公司 A kind of method of use mobile phone automatic decision user movement behavior

Also Published As

Publication number Publication date
CN106994238A (en) 2017-08-01

Similar Documents

Publication Publication Date Title
US11422818B2 (en) Energy management system and method, electronic device, electronic apparatus, and nonvolatile processor
US20170262617A1 (en) Activity tracking device
US10275200B2 (en) Activity information processing method and electronic device supporting the same
US20160375306A1 (en) Method and device for providing workout guide information
CN106994238B (en) Data processing method and electronic device for executing the same
CN111045814A (en) Resource scheduling method and terminal equipment
JP6052278B2 (en) Motion determination device, motion determination system, and motion determination method
US20230349721A1 (en) Step counting method, step counting device, and computer readable storage medium
US11745080B2 (en) System for sensor-based objective determination
CN110709940A (en) Methods, systems, and media for predicting sensor measurement quality
WO2017052615A1 (en) Receiving feedback based on pressure sensor data and movement data
CN108195395A (en) Mobile terminal and its step-recording method, storage device
CN105180960A (en) Information acquisition method and device
CN109116967B (en) Neural network predictor based on time multiplexing and electronic equipment suitable for neural network predictor
CN109101100B (en) Data bit width prediction method and system and applicable electronic equipment
US11076814B2 (en) Fitness tracking system and method of operating a fitness tracking system
US10298334B2 (en) Signal strength boosting in human-body near-field communication system
CN106073791B (en) Calorie computing method and device based on Intelligent bracelet
CN112270210B (en) Data processing and operation instruction identification method, device, equipment and medium
CN112138402B (en) Monitoring method and device for assisting user in reasonable game
CN113195064B (en) Training determination device, training determination method, and program
KR102374265B1 (en) Multi-Stage Just-in-Time Intervention Method and System for Improve Exercise Prescription Adherence Rate of Remote Healthcare Service Users
EP2727523A2 (en) Electronic device, method of extracting data and program
CN115374359A (en) Recommendation method and electronic device
CN116697517A (en) Method and device for acquiring calories, air conditioner, 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