[go: up one dir, main page]

CN104750965A - User exercise state determination method and device - Google Patents

User exercise state determination method and device Download PDF

Info

Publication number
CN104750965A
CN104750965A CN201310753804.4A CN201310753804A CN104750965A CN 104750965 A CN104750965 A CN 104750965A CN 201310753804 A CN201310753804 A CN 201310753804A CN 104750965 A CN104750965 A CN 104750965A
Authority
CN
China
Prior art keywords
motion
data
preset
exercise
motion data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310753804.4A
Other languages
Chinese (zh)
Other versions
CN104750965B (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group 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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201310753804.4A priority Critical patent/CN104750965B/en
Publication of CN104750965A publication Critical patent/CN104750965A/en
Application granted granted Critical
Publication of CN104750965B publication Critical patent/CN104750965B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Medical Treatment And Welfare Office Work (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

本发明实施例提供了一种用户运动状态的确定方法及装置,该方法包括:服务器获取采集设备采集的用户在预设的第一时间段内的运动数据;根据获取的运动数据中的运动步数,从获取的运动数据中选择一段运动数据,并通过可变长分段组合的方式对选择出的运动数据进行处理后,与预设运动数据进行匹配,将预设运动数据对应的运动状态,作为匹配度最高的一段运动数据对应的运动状态。在本发明实施例中,采集设备例如便携式设备只需上报用户的相关运动数据即可,无需进行相关解析,这就减少了采集设备的电量消耗,且由服务器利用预设运动数据,对用户一定时间段内的运动数据进行分析,得到用户这段时间内不同的运动状态,操作起来较方便,提高了用户体验。

Embodiments of the present invention provide a method and device for determining a user's exercise state. The method includes: the server acquires the user's exercise data collected by the collection device within a preset first time period; according to the exercise steps in the acquired exercise data, Select a piece of motion data from the acquired motion data, and process the selected motion data through variable length segment combination, match with the preset motion data, and set the motion state corresponding to the preset motion data , as the motion state corresponding to a piece of motion data with the highest matching degree. In the embodiment of the present invention, the collection device, such as a portable device, only needs to report the relevant exercise data of the user, and does not need to perform relevant analysis, which reduces the power consumption of the collection device, and the server uses the preset exercise data to provide certain information to the user. The motion data in the time period is analyzed to obtain the different motion states of the user during this period, which is more convenient to operate and improves the user experience.

Description

一种用户运动状态的确定方法及装置A method and device for determining a user's motion state

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种用户运动状态的确定方法及装置。The present invention relates to the field of communication technologies, in particular to a method and device for determining a user's exercise state.

背景技术Background technique

目前,如果想要知道用户在某段时间内的运行状态,通常是采用便于携带在用户身上的采集设备(例如便携式设备)采集用户在某段时间内的三轴加速度数据,然后,由便携式设备对此段时间内的三轴加速度数据进行相关计算,进而得出用户在这段时间内的运动状态,例如运动状态为跑步、行走、骑自行车等等。At present, if you want to know the running status of the user within a certain period of time, it is usually to use an acquisition device (such as a portable device) that is easy to carry on the user to collect the triaxial acceleration data of the user within a certain period of time, and then, the portable device Correlation calculations are performed on the three-axis acceleration data during this period of time, and then the user's exercise state during this period is obtained, for example, the exercise state is running, walking, cycling, etc.

由于,上述便携式设备为用户提供的电源能量有限,如果用户频繁使用此设备来确定自身的运动状态,这就导致设备的电量消耗较快,用户使用起来不方便,并且,受此设备的计算能力的限制,仅能提供给用户在短时间内特定的运动状态,无法识别出用户在较长时间段内的具体运动状态,使得用户体验较低。Due to the limited power supply energy provided by the above-mentioned portable devices for users, if users frequently use this device to determine their own exercise status, this will lead to a relatively fast power consumption of the device, which is inconvenient for the user to use, and is limited by the computing power of the device. However, it can only provide the user with a specific exercise state in a short period of time, and cannot identify the user's specific exercise state in a long period of time, making the user experience poor.

发明内容Contents of the invention

本发明实施例提供了一种用户运动状态的确定方法及装置,用以解决现有利用便携式设备识别用户运动状态导致操作不方便且用户体验低的问题。Embodiments of the present invention provide a method and device for determining a user's exercise state, which are used to solve the existing problems of inconvenient operation and low user experience caused by using a portable device to identify a user's exercise state.

基于上述问题,本发明实施例提供的一种用户运动状态的确定方法,包括:Based on the above problems, an embodiment of the present invention provides a method for determining a user's exercise state, including:

服务器获取采集设备采集的用户在预设的第一时间段内的运动数据,所述运动数据包括所述用户在每个预设周期内的运动步数;The server acquires the user's exercise data collected by the collection device within a preset first time period, the exercise data including the number of exercise steps of the user in each preset period;

根据获取的运动数据中的运动步数,从获取的运动数据中选择一段运动数据,并通过可变长分段组合的方式对选择出的运动数据进行处理后,与预设运动数据进行匹配,将所述预设运动数据对应的运动状态,作为匹配度最高的一段运动数据对应的运动状态。According to the number of exercise steps in the acquired exercise data, select a piece of exercise data from the acquired exercise data, and process the selected exercise data by means of variable-length segment combination, and then match it with the preset exercise data, The exercise state corresponding to the preset exercise data is used as the exercise state corresponding to the segment of exercise data with the highest matching degree.

本发明实施例提供的一种用户运动状态的确定装置,包括:A device for determining a user's exercise state provided by an embodiment of the present invention includes:

获取模块,用于获取采集设备采集的用户在预设的第一时间段内的运动数据,所述运动数据包括所述用户在每个预设周期内的运动步数;An acquisition module, configured to acquire motion data of the user collected by the collection device within a preset first time period, the motion data including the number of motion steps of the user within each preset period;

确定模块,用于根据获取的运动数据中的运动步数,从获取的运动数据中选择一段运动数据,并通过可变长分段组合的方式对选择出的运动数据进行处理后,与预设运动数据进行匹配,将所述预设运动数据对应的运动状态,作为匹配度最高的一段运动数据对应的运动状态。The determination module is used to select a piece of exercise data from the acquired exercise data according to the number of exercise steps in the acquired exercise data, and after processing the selected exercise data by means of variable-length segment combination, it is combined with the preset The motion data is matched, and the motion state corresponding to the preset motion data is used as the motion state corresponding to the segment of motion data with the highest matching degree.

本发明实施例的有益效果包括:The beneficial effects of the embodiments of the present invention include:

本发明实施例提供的一种用户运动状态的确定方法及装置,在该方法中,服务器获取采集设备采集的用户在预设的第一时间段内的运动数据;根据获取的运动数据中的运动步数,从获取的运动数据中选择一段运动数据,并通过可变长分段组合的方式对选择出的运动数据进行处理后,与预设运动数据进行匹配,将所述预设运动数据对应的运动状态,作为匹配度最高的一段运动数据对应的运动状态。在本发明实施例中,采集设备例如便携式设备只需上报用户的相关运动数据即可,无需进行相关解析,这就减少了采集设备的电量消耗,并且由服务器从用户的运动数据中选出一段运动数据,并对其利用可变长分段组合的方式进行动态处理之后,再与预设运动数据进行匹配,进而得到用户在这段时间内不同的运动状态,操作起来比较方便,提高了用户体验。Embodiments of the present invention provide a method and device for determining a user's exercise state. In the method, the server obtains the user's exercise data collected by the collection device within a preset first time period; Steps, select a piece of motion data from the acquired motion data, and process the selected motion data through variable length segment combination, match with the preset motion data, and match the preset motion data The motion state of is taken as the motion state corresponding to the segment of motion data with the highest matching degree. In the embodiment of the present invention, the collection device, such as a portable device, only needs to report the relevant exercise data of the user without performing relevant analysis, which reduces the power consumption of the collection device, and the server selects a section from the user's exercise data. Motion data, and after it is dynamically processed by variable-length segment combination, it is matched with the preset motion data, and then the different motion states of the user during this period are obtained, which is more convenient to operate and improves the user experience. experience.

附图说明Description of drawings

图1为本发明实施例提供的用户运动状态的识别方法的流程图;FIG. 1 is a flowchart of a method for identifying a user's motion state provided by an embodiment of the present invention;

图2为本发明实施例提供的服务器对获取的运动数据进行处理的流程图;Fig. 2 is the flowchart that the server that the embodiment of the present invention provides handles the motion data that obtains;

图3(a)为本发明实施例提供的预设运动数据所包括的运动片段的波形示意图;FIG. 3(a) is a schematic waveform diagram of motion segments included in preset motion data provided by an embodiment of the present invention;

图3(b)为本发明实施例提供的第二时间段内的运动数据所包括的运动片段的波形示意图;FIG. 3(b) is a schematic waveform diagram of motion segments included in the motion data within the second time period provided by the embodiment of the present invention;

图3(c)~图3(g)为本发明实施例提供的各组待匹配运动数据的波形示意图;Figure 3(c) to Figure 3(g) are schematic diagrams of the waveforms of each group of motion data to be matched provided by the embodiment of the present invention;

图4为本发明实施例提供的服务器确定某用户某天内的运动状态的流程图;FIG. 4 is a flow chart of determining a user's exercise state within a certain day by a server provided by an embodiment of the present invention;

图5为本发明实施例提供的用户运动状态的识别装置的结构图。FIG. 5 is a structural diagram of an apparatus for identifying a user's exercise state provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面结合说明书附图,对本发明实施例提供的一种用户运动状态的确定方法及装置的具体实施方式进行说明。The specific implementation manners of a method and an apparatus for determining a user's exercise state provided by embodiments of the present invention will be described below with reference to the accompanying drawings in the description.

本发明实施例提供的一种用户运动状态的确定方法,如图1所示,具体包括以下步骤:A method for determining a user's exercise state provided by an embodiment of the present invention, as shown in FIG. 1 , specifically includes the following steps:

S11:服务器获取采集设备采集的用户在预设的第一时间段内的运动数据;S11: The server acquires the motion data of the user collected by the collection device within the preset first time period;

在这里,上述运动数据包括用户在每个预设周期内的运动步数;Here, the above exercise data includes the number of exercise steps of the user in each preset cycle;

S12:根据获取的运动数据中的运动步数,从获取的运动数据中选择一段运动数据,并通过可变长分段组合的方式对选择出的运动数据进行处理后,与预设运动数据进行匹配,将预设运动数据对应的运动状态,作为匹配度最高的一段运动数据对应的运动状态。S12: According to the number of exercise steps in the acquired exercise data, select a piece of exercise data from the acquired exercise data, and process the selected exercise data by means of variable-length segment combination, and perform a process with the preset exercise data. For matching, the motion state corresponding to the preset motion data is used as the motion state corresponding to a piece of motion data with the highest matching degree.

具体地,在上述步骤S11中,在采集设备为便于用户携带在身上的便携式设备时,它只需要上传相关运动数据即可,无需对这些运动数据进行分析,这就节省了较多的电量,用户使用起来比较方便,即提高了用户体验。Specifically, in the above step S11, when the acquisition device is a portable device that is easy for the user to carry on the body, it only needs to upload the relevant exercise data, and there is no need to analyze the exercise data, which saves a lot of power. It is more convenient for users to use, that is, the user experience is improved.

需要说明的是,上述预设的第一时间段和上述预设周期可根据对用户运动识别的实际需求来确定,例如预设的第一时间段为0:00至24:00,即一天的时间;例如预设周期为5分钟,在这种情况下,上述运动数据实际上为某用户从某一天的0:00开始到24:00的这段时间内,每5分钟产生的运动步数。It should be noted that the above preset first time period and the above preset cycle can be determined according to the actual demand for user motion recognition, for example, the preset first time period is from 0:00 to 24:00, that is, one day Time; for example, the preset period is 5 minutes. In this case, the above exercise data is actually the number of exercise steps generated by a user every 5 minutes during the period from 0:00 to 24:00 of a certain day .

优选地,在上述步骤S12中,对于服务器来说,如图2所示,具体可通过下述步骤对获取的运动数据进行处理:Preferably, in the above step S12, for the server, as shown in FIG. 2, the acquired motion data can be processed through the following steps:

S21:从获取的运动数据中选择预设的第二时间段内的运动数据,并在选择出的运动数据中,选择由连续多个预设周期内的运动步数大于设定数值的运动数据形成的运动片段;S21: Select the exercise data within the preset second time period from the acquired exercise data, and among the selected exercise data, select the exercise data whose number of exercise steps in consecutive multiple preset periods is greater than the set value The resulting motion segment;

S22:根据预设运动数据所包括的运动片段数,对选择出的运动片段进行组合,得到第二时间段的各组待匹配运动数据;S22: According to the number of motion segments included in the preset motion data, combine the selected motion segments to obtain each group of motion data to be matched in the second time period;

在这里,上述第二时间段包括预设运动数据对应的时间段;Here, the above-mentioned second time period includes the time period corresponding to the preset motion data;

S23:分别将得到的各组待匹配运动数据,与预设运动数据进行匹配。S23: Match the obtained sets of motion data to be matched with the preset motion data respectively.

优选地,在上述步骤S21中,上述预设的第二时间段也可根据用户运动的实际情况来确定,在本发明实施例中,为了根据这些运动数据确定出用户的相关运动状态,事先设定了一组或多组运动数据,各自对应一个时间段,这些运动数据是对多个用户的运动数据进行采样,并经过相关分析后得到的,通常每个第二时间段需要包括预设运动数据对应的时间段,以便后续能够准确地确定出用户的运动状态具体发生的时间段,例如,在某组预设运动数据对应的时间段为8:00至9:00时,第二时间段可设定为7:30至9:30。Preferably, in the above-mentioned step S21, the above-mentioned second preset time period can also be determined according to the actual situation of the user's exercise. One or more sets of exercise data are defined, each corresponding to a time period. These exercise data are obtained by sampling the exercise data of multiple users and after correlation analysis. Usually, each second time period needs to include preset exercise data. The time period corresponding to the data, so that the user's exercise state can be accurately determined later. For example, when the time period corresponding to a certain set of preset exercise data is from 8:00 to 9:00, the second time period It can be set from 7:30 to 9:30.

进一步地,在上述步骤S21中,上述设定数值可根据用户的实际运动情况来确定,例如通常设定为0,即由连续多个预设周期内的步数大于0的运动数据形成一个运动片段,其他部分的运动数据组成非运动片段。当然,上述设定数值也可以设定为其他数值。Further, in the above-mentioned step S21, the above-mentioned set value can be determined according to the actual exercise situation of the user, for example, it is usually set to 0, that is, an exercise is formed by the exercise data with the number of steps greater than 0 in a plurality of consecutive preset periods. Fragments, other parts of motion data make up non-motion fragments. Of course, the above-mentioned set numerical values may also be set to other numerical values.

例如,以上述第二时间段为7:30至9:30为例,假设上述设定数值为0,假设用户在7:30至8:00的运动数据如下表1所示:For example, taking the above-mentioned second time period of 7:30 to 9:30 as an example, assuming that the above-mentioned setting value is 0, assume that the user's exercise data from 7:30 to 8:00 is shown in Table 1 below:

表1Table 1

周期cycle 步数Step count 7:30—7:357:30—7:35 00

7:35—7:407:35—7:40 00 7:40—7:457:40—7:45 1515 7:45—7:507:45—7:50 1717 7:50—7:557:50—7:55 00 7:55—8:007:55-8:00 00 8:00—8:058:00—8:05 2020 8:05—8:108:05—8:10 1515 8:15—8:208:15-8:20 1818 8:20—8:258:20-8:25 00

在上述表1中,上述运动数据可形成两个运动片段,即7:40至7:50这段时间段组成一个运动片段,8:00至8:20这段时间段组成另一个运动片段,其他部分的运动数据形成非运动片段,即7:30至7:40这段时间段组成一个非运动片段,7:50至8:00这段时间段组成一个非运动片段,8:20至8:25这段时间段组成一个非运动片段。In the above Table 1, the above motion data can form two motion segments, that is, the time period from 7:40 to 7:50 constitutes one motion segment, and the time period from 8:00 to 8:20 constitutes another motion segment, The motion data of other parts forms a non-motion segment, that is, the time period from 7:30 to 7:40 forms a non-motion segment, the time period from 7:50 to 8:00 forms a non-motion segment, and the time period from 8:20 to 8 :25 This period of time constitutes a non-motion segment.

优选地,在上述步骤S22中,对于服务器来说,具体可通过下述流程得到第二时间段的各组待匹配运动数据:分别对选择出的运动片段中相邻N-1个、N个和N+1个的运动片段进行组合,得到第二时间段的组合后的各组运动片段;以及将组合后的每组运动片段,与每组运动片段之间的非运动片段进行组合,得到第二时间段的各组待匹配运动数据。在这里,N为预设运动数据所包括的运动片段数,且N为大于2的整数;Preferably, in the above step S22, for the server, each group of motion data to be matched in the second time period can be obtained specifically through the following process: for the selected motion segments adjacent to N-1 and N Combine with N+1 motion segments to obtain the combined groups of motion segments in the second time period; and combine each group of motion segments after the combination with the non-motion segments between each group of motion segments to obtain Each group of motion data to be matched in the second time period. Here, N is the number of motion segments included in the preset motion data, and N is an integer greater than 2;

也就是说,假设预设运动数据对应的时间段为8:00至9:00,所包括的运动片段为A和B这2个运动片段(如图3(a)所示的波形段);假设第二时间段(7:30至9:30)的运动片段为C、D、E和F这4个运动片段(如图3(b)所示的波形段),那么,需要将第二时间段的这4个运动片段中相邻2个和相邻3个的运动片段进行组合,即可得到第二时间段的各组待匹配运动数据,具体为:C和D组合后形成的待匹配运动数据(如图3(c)所示的波形段)、D和E组合后形成的待匹配运动数据(如图3(d)所示的波形段)、E和F组合后形成的待匹配运动数据(如图3(e)所示的波形段)、C、D和E组合后形成的待匹配数据(如图3(f)所示的波形段)和D、E和F(如图3(g)所示的波形段)这5组待匹配运动数据。That is to say, assume that the time period corresponding to the preset motion data is from 8:00 to 9:00, and the included motion segments are the two motion segments A and B (the waveform segment shown in Figure 3(a)); Assuming that the motion segments of the second time period (7:30 to 9:30) are the four motion segments C, D, E and F (the waveform segment shown in Figure 3(b)), then the second In the four motion segments in the time period, the adjacent 2 and adjacent 3 motion segments can be combined to obtain each group of motion data to be matched in the second time segment, specifically: the to-be-matched motion data formed after the combination of C and D Match motion data (wave segment as shown in Figure 3(c)), motion data to be matched formed after combination of D and E (wave segment as shown in Figure 3(d)), combination of E and F to form Match motion data (wave segment as shown in Figure 3(e)), C, D and E combined to form the data to be matched (wave segment as shown in Figure 3(f)) and D, E and F (as shown in The waveform segment shown in Fig. 3(g)) these 5 sets of motion data to be matched.

优选地,在上述步骤S23中,服务器通常采用动态时间归整算法(DynamicTime Warping,DTW),分别将得到的各组待匹配运动数据,与预设的运动模型数据进行匹配,具体的匹配过程为现有技术,在此不再详述。Preferably, in the above step S23, the server usually adopts a Dynamic Time Warping algorithm (DynamicTime Warping, DTW) to respectively match each set of motion data to be matched with the preset motion model data. The specific matching process is as follows: The prior art will not be described in detail here.

例如,仍以上一段提及的时间段为例,实际上是分别将C和D组合后形成的待匹配运动数据、D和E组合后形成的待匹配运动数据、E和F组合后形成的待匹配运动数据、C、D和E组合后形成的待匹配运动数据以及D、E和F组合后形成的待匹配运动数据这5组待匹配运动数据,逐一与预设运动数据进行匹配。假设采用动态时间归整算法匹配出C、D和E组合后形成的待匹配运动数据(如图3(f)所示的波形段)为匹配度最高的运动数据,那么,C、D和E组合后形成的待匹配运动数据的运动状态,就是预设运动数据对应的运动状态,例如预设运动数据对应的运动状态为早通勤。For example, still taking the time period mentioned in the previous paragraph as an example, it is actually the motion data to be matched formed by the combination of C and D, the motion data to be matched formed by the combination of D and E, and the motion data to be matched formed by the combination of E and F. The five sets of motion data to be matched, the motion data to be matched formed by the combination of C, D, and E, and the motion data to be matched formed by the combination of D, E, and F, are matched with the preset motion data one by one. Assuming that the dynamic time rounding algorithm is used to match the motion data to be matched after the combination of C, D, and E (the waveform segment shown in Figure 3(f)) is the motion data with the highest matching degree, then C, D, and E The exercise state of the exercise data to be matched formed after the combination is the exercise state corresponding to the preset exercise data, for example, the exercise state corresponding to the preset exercise data is early commuting.

在本发明实施例中,对于服务器来说,它在将预设运动数据对应的运动状态作为匹配度最高的一段运动数据对应的运动状态后,分别将第一时间段内除匹配度最高的一段运动数据对应的时间段之外的其他时间段对应的运动状态设置为预设运动状态,即可得到用户在第一时间段内的各运动状态。In the embodiment of the present invention, for the server, after taking the exercise state corresponding to the preset exercise data as the exercise state corresponding to the exercise data with the highest matching degree, divide the first period of time by dividing the exercise state with the highest matching degree The exercise state corresponding to other time periods other than the time period corresponding to the exercise data is set as the preset exercise state, and each exercise state of the user in the first time period can be obtained.

也就是说,在利用上述确定流程得出某些特定时间段的运动状态后,在上述第一时间段内,除这些特定时间段之外的时间段对应的运动状态均是事先设置的,这样,用户可登录到服务器上查看自己在某天内的具体运动状态,提高了用户体验。That is to say, after using the above-mentioned determination process to obtain the motion state of certain specific time periods, within the above-mentioned first time period, the motion states corresponding to time periods other than these specific time periods are all set in advance, so that , users can log in to the server to check their specific exercise status in a certain day, which improves the user experience.

下面结合下述具体实施例对上述用户运动状态的确定方法进行详细说明:The method for determining the above-mentioned user's motion state will be described in detail below in conjunction with the following specific embodiments:

假设服务器获取到便携式设备采集的某个用户在某天(0:00至24:00)内的运动数据,并且预先设定了3组运动数据,分别对应3个不同的时间段(即8:00-9:00、11:00-12:00和17:00-18:00),分别对应的运动状态为早通勤、午餐和晚通勤;假设预设周期为5分钟,设定数值为0,那么,如图4所示,服务器需要执行下述步骤,来完成用户的运动状态的确定:Assume that the server obtains the exercise data of a certain user collected by the portable device on a certain day (0:00 to 24:00), and pre-sets 3 sets of exercise data, corresponding to 3 different time periods (that is, 8: 00-9:00, 11:00-12:00 and 17:00-18:00), the corresponding exercise states are morning commuting, lunch and late commuting; assuming the preset period is 5 minutes, the set value is 0 , then, as shown in Figure 4, the server needs to perform the following steps to complete the determination of the user's exercise state:

S41:从获取的运动数据中选择当前第二时间段(例如7:30-9:30,包括8:00-9:00这个时间段)内的运动数据,从选择的这段运动数据中再选择连续多个5分钟内的运动步数大于0的运动数据形成的运动片段;S41: Select the exercise data in the current second time period (for example, 7:30-9:30, including the time period of 8:00-9:00) from the acquired exercise data, and then select the exercise data from the selected period of exercise data Select the motion segment formed by the motion data with multiple consecutive 5-minute motion steps greater than 0;

S42:分别对选择出的运动片段中相邻N-1个、N个和N+1个的运动片段进行组合,得到组合后的各组运动片段,并将组合后的每组运动片段,与每组运动片段之间的非运动片段进行组合后,得到当前第二时间段(例如7:30-9:30)这个时间段的各组待匹配运动数据;S42: respectively combine N-1, N and N+1 adjacent motion segments among the selected motion segments to obtain each group of combined motion segments, and combine each group of combined motion segments with After the non-motion segments between each group of motion segments are combined, each group of motion data to be matched in the time period of the current second time period (for example, 7:30-9:30) is obtained;

在这里,N为预设运动序列所包括的运动片段数,且N为大于2的整数;Here, N is the number of motion segments included in the preset motion sequence, and N is an integer greater than 2;

S43:将各待匹配运动数据,与预先设置的匹配库中的预设运动数据(例如8:00-9:00这个时间段对应的预设运动数据)进行匹配,将预设运动数据对应的运动状态(例如8:00-9:00这个时间段对应的早通勤),作为匹配度最高的一段运动数据对应的运动状态;S43: Match the exercise data to be matched with the preset exercise data in the preset matching library (for example, the preset exercise data corresponding to the time period of 8:00-9:00), and match the preset exercise data corresponding to Exercise state (such as early commuting corresponding to the time period of 8:00-9:00), as the exercise state corresponding to the most matching segment of exercise data;

S44:判断获取的运动数据是否与所有的预设运动数据匹配完毕;若是,执行步骤S45,否则,将下一个第二时间段(例如10:30-12:30,包括11:00-12:00这个时间段)作为当前第二时间段,返回上述步骤S41;S44: Determine whether the acquired motion data matches all the preset motion data; if so, execute step S45, otherwise, set the next second time period (for example, 10:30-12:30, including 11:00-12: 00 this time period) as the current second time period, return to above-mentioned step S41;

S45:分别将第一时间段内除匹配度最高的一段运动数据对应的时间段之外的其他时间段对应的运动状态设置为预设运动状态,得到用户在第一时间段内的各运动状态。S45: Set the exercise states corresponding to other time periods in the first time period except the time period corresponding to the movement data with the highest matching degree as the preset exercise states, and obtain the user's exercise states in the first time period .

在上述流程中,服务器需要执行3次上述流程才能够将上述3组预设运动数据匹配完毕,例如,服务器执行上述流程之后,确定出用户在0:00至24:00内的运动状态如下表2所示。In the above process, the server needs to execute the above process three times before it can match the above three sets of preset exercise data. For example, after the server executes the above process, it determines the user's exercise status from 0:00 to 24:00 as shown in the following table 2.

表2Table 2

时间段period 用户运动状态User's motion state

0:00至8:000:00 to 8:00 (默认)睡眠(default) sleep 8:00至9:008:00 to 9:00 早通勤commute early 9:00至11:009:00 to 11:00 (默认)办公(default) office 11:00至12:0011:00 to 12:00 午餐Lunch 12:00至17:0012:00 to 17:00 (默认)办公(default) office 17:00至18:0017:00 to 18:00 晚通勤late commute 18:00至24:0018:00 to 24:00 (默认)晚间运动(Default) Evening sports

基于同一发明构思,本发明实施例还提供了一种用户运动状态的确定装置,由于该装置所解决问题的原理与前述用户运动状态的确定方法相似,因此该装置的实施可以参见前述方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present invention also provides a device for determining the user's exercise state. Since the principle of the problem solved by the device is similar to the aforementioned method for determining the user's exercise state, the implementation of the device can refer to the implementation of the aforementioned method. , the repetitions will not be repeated.

本发明实施例提供的一种用户运动状态的确定装置,如图5所示,具体包括:A device for determining a user's exercise state provided by an embodiment of the present invention, as shown in FIG. 5 , specifically includes:

获取模块51,用于获取采集设备采集的用户在预设的第一时间段内的运动数据;An acquisition module 51, configured to acquire motion data of the user collected by the collection device within a preset first time period;

在这里,上述运动数据包括用户在每个预设周期内的运动步数;Here, the above exercise data includes the number of exercise steps of the user in each preset cycle;

确定模块52,用于根据获取的运动数据中的运动步数,从获取的运动数据中选择一段运动数据,并通过可变长分段组合的方式对选择出的运动数据进行处理后,与预设运动数据相匹配的运动数据,将预设运动数据对应的运动状态,作为匹配度最高的一段运动数据对应的运动状态。The determining module 52 is used to select a segment of exercise data from the acquired exercise data according to the number of exercise steps in the acquired exercise data, and after processing the selected exercise data by means of variable-length segment combinations, it is combined with the preset Assuming that the motion data matches the motion data, the motion state corresponding to the preset motion data is used as the motion state corresponding to the segment of motion data with the highest matching degree.

优选地,上述确定模块52,具体用于从获取的运动数据中选择预设的第二时间段内的运动数据,并在选择出的运动数据中,选择由连续多个预设周期内的运动步数均大于设定数值的运动数据形成的运动片段;根据预设运动数据所包括的运动片段数,对选择出的运动片段进行组合,得到第二时间段的各组待匹配运动数据;以及分别将得到的各组待匹配运动数据,与预设运动数据进行匹配,第二时间段包括预设运动数据对应的时间段。Preferably, the above-mentioned determining module 52 is specifically configured to select motion data within a preset second time period from the acquired motion data, and select motion data within a plurality of consecutive preset periods among the selected motion data. Motion segments formed by motion data whose steps are greater than a set value; according to the number of motion segments included in the preset motion data, the selected motion segments are combined to obtain each group of motion data to be matched in the second time period; and The obtained sets of exercise data to be matched are respectively matched with the preset exercise data, and the second time period includes a time period corresponding to the preset exercise data.

优选地,上述确定模块52,具体用于分别对选择出的运动片段中相邻N-1个、N个和N+1个的运动片段进行组合,得到第二时间段的组合后的各组运动片段;以及将组合后的每组运动片段,与每组运动片段之间的非运动片段进行组合,得到第二时间段的各组待匹配运动数据。在这里,N为述预设运动序列所包括的运动片段数,且N为大于2的整数。Preferably, the above-mentioned determination module 52 is specifically configured to combine the N-1, N and N+1 adjacent motion segments among the selected motion segments to obtain the combined groups in the second time period motion segments; and combining each group of combined motion segments with non-motion segments between each group of motion segments to obtain each group of motion data to be matched in the second time period. Here, N is the number of motion segments included in the preset motion sequence, and N is an integer greater than 2.

优选地,上述确定模块52,具体用于利用动态时间归整算法,分别将得到的各组待匹配运动数据,与预设的运动模型数据进行匹配。Preferably, the determination module 52 is specifically configured to use a dynamic time rounding algorithm to respectively match the obtained sets of motion data to be matched with the preset motion model data.

优选地,上述确定模块52,还用于在将预设运动数据对应的运动状态作为匹配度最高的一段运动数据对应的运动状态后,分别将第一时间段内除匹配度最高的一段运动数据对应的时间段之外的其他时间段对应的运动状态设置为预设运动状态,得到用户在第一时间段内的各运动状态。Preferably, the above-mentioned determination module 52 is further configured to, after taking the motion state corresponding to the preset motion data as the motion state corresponding to a segment of motion data with the highest degree of matching, divide the segment of motion data with the highest degree of matching within the first time period The exercise states corresponding to other time periods other than the corresponding time period are set as preset exercise states, and the user's exercise states in the first time period are obtained.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包括这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.

Claims (10)

1.一种用户运动状态的确定方法,其特征在于,包括:1. A method for determining a user's motion state, comprising: 服务器获取采集设备采集的用户在预设的第一时间段内的运动数据,所述运动数据包括所述用户在每个预设周期内的运动步数;The server acquires the user's exercise data collected by the collection device within a preset first time period, the exercise data including the number of exercise steps of the user in each preset period; 根据获取的运动数据中的运动步数,从获取的运动数据中选择一段运动数据,并通过可变长分段组合的方式对选择出的运动数据进行处理后,与预设运动数据进行匹配,将所述预设运动数据对应的运动状态,作为匹配度最高的一段运动数据对应的运动状态。According to the number of motion steps in the acquired motion data, a piece of motion data is selected from the acquired motion data, and the selected motion data is processed by a variable-length segment combination, and then matched with the preset motion data, The motion state corresponding to the preset motion data is used as the motion state corresponding to a piece of motion data with the highest matching degree. 2.如权利要求1所述的方法,其特征在于,所述服务器根据获取的运动数据中的运动步数,从获取的运动数据中选择一段运动数据,并通过可变长分段的方式对其进行处理后,与预设运动数据进行匹配,具体包括:2. The method according to claim 1, wherein the server selects a section of motion data from the motion data obtained according to the number of motion steps in the motion data obtained, and performs a variable-length segmentation to After it is processed, it is matched with preset motion data, including: 从获取的运动数据中选择预设的第二时间段内的运动数据,并在选择出的运动数据中,选择由连续多个所述预设周期内的运动步数大于设定数值的运动数据形成的运动片段;Select motion data within a preset second time period from the acquired motion data, and among the selected motion data, select motion data whose number of motion steps in a plurality of consecutive preset periods is greater than a set value The resulting motion segment; 根据所述预设运动数据所包括的运动片段数,对选择出的运动片段进行组合,得到所述第二时间段的各组待匹配运动数据,所述第二时间段包括所述预设运动数据对应的时间段;According to the number of motion segments included in the preset motion data, the selected motion segments are combined to obtain each group of motion data to be matched in the second time period, the second time period includes the preset motion The time period corresponding to the data; 分别将得到的各组待匹配运动数据,与所述预设运动数据进行匹配。The obtained sets of motion data to be matched are respectively matched with the preset motion data. 3.如权利要求2所述的方法,其特征在于,所述服务器通过下述方式得到所述第二时间段的各组待匹配运动数据:3. The method according to claim 2, wherein the server obtains each group of motion data to be matched in the second time period in the following manner: 所述服务器分别对选择出的运动片段中相邻N-1个、N个和N+1个的运动片段进行组合,得到所述第二时间段的组合后的各组运动片段,其中,N为所述预设运动数据所包括的运动片段数,且N为大于2的整数;The server respectively combines N-1, N and N+1 adjacent motion segments among the selected motion segments to obtain groups of combined motion segments in the second time period, wherein N is the number of motion segments included in the preset motion data, and N is an integer greater than 2; 将组合后的每组运动片段,与所述每组运动片段之间的非运动片段进行组合,得到所述第二时间段的各组待匹配运动数据。Each group of combined motion segments is combined with the non-motion segments between each group of motion segments to obtain each group of motion data to be matched in the second time period. 4.如权利要求2所述的方法,其特征在于,所述服务器利用动态时间归整算法,分别将得到的各组待匹配运动数据,与所述预设的运动模型数据进行匹配。4. The method according to claim 2, wherein the server uses a dynamic time rounding algorithm to respectively match the obtained sets of motion data to be matched with the preset motion model data. 5.如权利要求1-4中任一项所述的方法,其特征在于,还包括:5. The method according to any one of claims 1-4, further comprising: 所述服务器在将所述预设运动数据对应的运动状态作为匹配度最高的一段运动数据对应的运动状态后,分别将所述第一时间段内除匹配度最高的一段运动数据对应的时间段之外的其他时间段对应的运动状态,设置为预设运动状态,得到所述用户在所述第一时间段内的各运动状态。After the server takes the motion state corresponding to the preset motion data as the motion state corresponding to a segment of motion data with the highest degree of matching, the server divides the time range corresponding to the segment of motion data with the highest degree of matching within the first time period. The exercise states corresponding to other time periods are set as preset exercise states, and each exercise state of the user in the first time period is obtained. 6.一种用户运动状态的确定装置,其特征在于,包括:6. A device for determining a user's exercise state, comprising: 获取模块,用于获取采集设备采集的用户在预设的第一时间段内的运动数据,所述运动数据包括所述用户在每个预设周期内的运动步数;An acquisition module, configured to acquire motion data of the user collected by the collection device within a preset first time period, the motion data including the number of motion steps of the user within each preset period; 确定模块,用于根据获取的运动数据中的运动步数,从获取的运动数据中选择一段运动数据,并通过可变长分段组合的方式对选择出的运动数据进行处理后,与预设运动数据进行匹配,将所述预设运动数据对应的运动状态,作为匹配度最高的一段运动数据对应的运动状态。The determination module is used to select a piece of exercise data from the acquired exercise data according to the number of exercise steps in the acquired exercise data, and after processing the selected exercise data by means of variable-length segment combination, it is combined with the preset The motion data is matched, and the motion state corresponding to the preset motion data is used as the motion state corresponding to the segment of motion data with the highest matching degree. 7.如权利要求6所述的装置,其特征在于,所述确定模块,具体用于从获取的运动数据中选择预设的第二时间段内的运动数据,并在选择出的运动数据中,选择由连续多个所述预设周期内的运动步数均大于设定数值的运动数据形成的运动片段;根据所述预设运动数据所包括的运动片段数,对选择出的运动片段进行组合,得到所述第二时间段的各组待匹配运动数据;以及分别将得到的各组待匹配运动数据,与所述预设运动数据进行匹配,所述第二时间段包括所述预设运动数据对应的时间段。7. The device according to claim 6, wherein the determination module is specifically configured to select exercise data within a preset second time period from the acquired exercise data, and select the exercise data in the selected exercise data , selecting a motion segment formed by motion data whose number of motion steps in a plurality of consecutive preset periods is greater than a set value; performing the selected motion segment according to the number of motion segments included in the preset motion data Combine to obtain each group of motion data to be matched in the second time period; and match each group of motion data to be matched with the preset motion data respectively, and the second time period includes the preset The time period corresponding to the motion data. 8.如权利要求7所述的装置,其特征在于,所述确定模块,具体用于分别对选择出的运动片段中相邻N-1个、N个和N+1个的运动片段进行组合,得到所述第二时间段的组合后的各组运动片段;以及将组合后的每组运动片段,与所述每组运动片段之间的非运动片段进行组合,得到所述第二时间段的各组待匹配运动数据,其中,N为所述预设运动数据所包括的运动片段数,且N为大于2的整数。8. The device according to claim 7, wherein the determining module is specifically configured to respectively combine N-1, N and N+1 adjacent motion segments among the selected motion segments , to obtain the combined groups of motion segments in the second time period; and combine each group of motion segments after the combination with the non-motion segments between each group of motion segments to obtain the second time period Each set of motion data to be matched, wherein, N is the number of motion segments included in the preset motion data, and N is an integer greater than 2. 9.如权利要求7所述的装置,其特征在于,所述确定模块,具体用于利用动态时间归整算法,分别将得到的各组待匹配运动数据,与所述预设的运动模型数据进行匹配。9. The device according to claim 7, wherein the determining module is specifically configured to use a dynamic time rounding algorithm to combine the obtained sets of motion data to be matched with the preset motion model data to match. 10.如权利要求6-9中任一项所述的装置,其特征在于,所述确定模块,还用于在将所述预设运动数据对应的运动状态作为匹配度最高的一段运动数据对应的运动状态后,分别将所述第一时间段内除匹配度最高的一段运动数据对应的时间段之外的其他时间段对应的运动状态,设置为预设运动状态,得到所述用户在所述第一时间段内的各运动状态。10. The device according to any one of claims 6-9, wherein the determining module is further configured to use the motion state corresponding to the preset motion data as a segment of motion data corresponding to the highest degree of matching After the exercise state, set the exercise states corresponding to other time periods in the first time period except the time period corresponding to the most matching period of exercise data as the preset exercise state, and obtain the user’s Each motion state in the first time period is described.
CN201310753804.4A 2013-12-31 2013-12-31 A kind of determination method and device of user movement state Active CN104750965B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310753804.4A CN104750965B (en) 2013-12-31 2013-12-31 A kind of determination method and device of user movement state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310753804.4A CN104750965B (en) 2013-12-31 2013-12-31 A kind of determination method and device of user movement state

Publications (2)

Publication Number Publication Date
CN104750965A true CN104750965A (en) 2015-07-01
CN104750965B CN104750965B (en) 2018-03-23

Family

ID=53590643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310753804.4A Active CN104750965B (en) 2013-12-31 2013-12-31 A kind of determination method and device of user movement state

Country Status (1)

Country Link
CN (1) CN104750965B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106200976A (en) * 2016-07-19 2016-12-07 深圳市金立通信设备有限公司 A kind of motion-activated method and terminal
CN106681997A (en) * 2015-11-05 2017-05-17 中国移动通信集团公司 Information processing method and device
CN107908497A (en) * 2017-11-28 2018-04-13 广东乐心医疗电子股份有限公司 Step frequency calculation method and device and wearable device
CN111166345A (en) * 2020-02-13 2020-05-19 上海幂方电子科技有限公司 Three-dimensional motion detection method, device and equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007222539A (en) * 2006-02-27 2007-09-06 Fujitsu Ltd Portable terminal device with health sensor function
CN101551700A (en) * 2008-03-31 2009-10-07 联想(北京)有限公司 Electronic game input device, electronic game machine and electronic game input method
CN102254077A (en) * 2010-05-17 2011-11-23 李晓 Sport management system and method
CN102772211A (en) * 2012-08-08 2012-11-14 中山大学 Human movement state detection system and detection method
CN102804238A (en) * 2011-12-15 2012-11-28 北京英福生科技有限公司 Exercise reminding device and system
WO2013046588A2 (en) * 2011-09-27 2013-04-04 Sony Corporation Terminal device, external device, information processing method, program, and information processing system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007222539A (en) * 2006-02-27 2007-09-06 Fujitsu Ltd Portable terminal device with health sensor function
CN101551700A (en) * 2008-03-31 2009-10-07 联想(北京)有限公司 Electronic game input device, electronic game machine and electronic game input method
CN102254077A (en) * 2010-05-17 2011-11-23 李晓 Sport management system and method
WO2013046588A2 (en) * 2011-09-27 2013-04-04 Sony Corporation Terminal device, external device, information processing method, program, and information processing system
CN102804238A (en) * 2011-12-15 2012-11-28 北京英福生科技有限公司 Exercise reminding device and system
CN102772211A (en) * 2012-08-08 2012-11-14 中山大学 Human movement state detection system and detection method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681997A (en) * 2015-11-05 2017-05-17 中国移动通信集团公司 Information processing method and device
CN106681997B (en) * 2015-11-05 2020-09-08 中国移动通信集团公司 An information processing method and device
CN106200976A (en) * 2016-07-19 2016-12-07 深圳市金立通信设备有限公司 A kind of motion-activated method and terminal
CN107908497A (en) * 2017-11-28 2018-04-13 广东乐心医疗电子股份有限公司 Step frequency calculation method and device and wearable device
CN111166345A (en) * 2020-02-13 2020-05-19 上海幂方电子科技有限公司 Three-dimensional motion detection method, device and equipment and readable storage medium

Also Published As

Publication number Publication date
CN104750965B (en) 2018-03-23

Similar Documents

Publication Publication Date Title
PH12019501851A1 (en) Model training method, apparatus, and device, and data similarity determining method, apparatus, and device
Rahman et al. Fimus: A framework for imputing missing values using co-appearance, correlation and similarity analysis
CN104750965B (en) A kind of determination method and device of user movement state
CN105183731B (en) Recommendation information generation method, device and system
JP2019512795A5 (en)
WO2014173168A1 (en) Application software displaying method and device
EP1782328A4 (en) SIMULATION OF MULTI-POINT STATISTICS (MPS) WITH IMPROVED CALCULATION EFFICIENCY
CN108536278A (en) Identification system and identification method
CN103559303A (en) Evaluation and selection method for data mining algorithm
CN109330584A (en) Method and system for ECG identification based on dictionary learning and sparse representation
RU2016119495A (en) Method and device for determining associated user
CN103714004A (en) JVM online memory leak analysis method and system
MX2016002625A (en) Data searching method, device and terminal.
Girotto et al. Metagenomic reads binning with spaced seeds
CN107591204A (en) Be in hospital again Forecasting Methodology and system based on sequential portrait figure
CN104732968B (en) The evaluation system and method for speech control system
CN103869123A (en) Oscilloscope with pulse width measurement function
WO2019062603A1 (en) Method, apparatus and device for optimizing video playback of massager
CN116189707A (en) Song identification method, computer device and storage medium
WO2021068107A1 (en) Identity recognition method based on ballistocardiogram signal, electronic device, and storage medium
CN110168315B (en) Foot pedometer method, device and device based on acceleration information
CN104978553A (en) Image analysis method and device
CN104049932B (en) Information processing method and electronic device
WO2018086321A1 (en) Step counting method and device
JP5727415B2 (en) Related Word Discovery Device, Method, and Program for Document Search

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant