Motion state detection method, electronic device, and chip

By determining the detection period and calculating the motion ratio parameter in the smart mobile terminal, the motion state detection process is simplified, the problem of increased power consumption caused by high-complexity algorithms is solved, and the power saving performance is improved.

CN116182895BActive Publication Date: 2026-03-17伟光有限公司(CN)
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

The high complexity of existing motion state recognition algorithms in smart mobile terminals leads to increased power consumption of the smart engine, affecting its energy-saving performance.

Method used

By determining the detection cycle of the target and calculating the motion ratio parameter at preset time intervals within the detection cycle, the motion state detection process is simplified using an accelerometer and a counter, involving only addition and division operations.

Benefits of technology

It reduces the power consumption of electronic devices, improves energy-saving performance, and simplifies the motion detection process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116182895B_ABST
    Figure CN116182895B_ABST
Patent Text Reader

Abstract

This application discloses a method, electronic device, and chip for detecting motion state. The electronic device determines the detection period corresponding to the detection target; within the detection period, it determines a motion ratio parameter according to a preset time interval; and it determines the motion state result corresponding to the detection target based on the motion ratio parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method, electronic device, and chip for detecting motion states. Background Technology

[0002] Currently, smart mobile terminals can support motion detection. For example, motion status can be determined by calculating the probability of candidate motion states and related confidence information.

[0003] However, current motion state recognition algorithms are generally quite complex, and these algorithms are usually resident applications of SmartEngine (SME), which greatly increases the power consumption of SME and thus affects the power saving performance of smart mobile terminals. Summary of the Invention

[0004] This application provides a motion state detection method, electronic device, and chip that can reduce power consumption and improve the power-saving performance of the electronic device.

[0005] The technical solution of this application embodiment is implemented as follows:

[0006] In a first aspect, embodiments of this application provide a method for detecting motion states, the method comprising:

[0007] Determine the detection cycle corresponding to the detection target;

[0008] Within the detection cycle, the motion ratio parameter is determined according to a preset time interval;

[0009] The motion state result corresponding to the detected target is determined based on the motion ratio parameter.

[0010] Secondly, embodiments of this application provide an electronic device, which includes a determining unit.

[0011] The determining unit is used to determine the detection period corresponding to the detection target; and within the detection period, to determine a motion ratio parameter according to a preset time interval; and to determine the motion state result corresponding to the detection target based on the motion ratio parameter.

[0012] Thirdly, embodiments of this application provide an electronic device, which includes a processor, a memory storing executable instructions of the processor, a microprocessor, and an application processor; when the instructions are executed by the processor, the motion state detection method described above is implemented.

[0013] Fourthly, embodiments of this application provide a chip, which includes programmable logic circuits and / or program instructions, and when the chip is running, it implements the motion state detection method described above.

[0014] This application provides a method, electronic device, and chip for detecting motion state. The electronic device determines a detection period corresponding to the detection target; within the detection period, it determines a motion ratio parameter at preset time intervals; and it determines the motion state result corresponding to the detection target based on the motion ratio parameter. Therefore, in this application, after determining the detection period of the detection target, the electronic device can calculate the motion ratio parameter at preset time intervals within the detection period, thereby directly determining the motion state result corresponding to the detection target based on the motion ratio parameter. Since the motion ratio parameter only involves simple operations such as division, the entire motion state detection process can be greatly simplified, thereby reducing the power consumption of the electronic device and improving energy-saving performance. Attached Figure Description

[0015] Figure 1 This is a schematic diagram of the implementation process of the motion state detection method proposed in the embodiments of this application. Figure 1 ;

[0016] Figure 2 This is a schematic diagram of the implementation process of the motion state detection method proposed in the embodiments of this application. Figure 2 ;

[0017] Figure 3 This is a schematic diagram of the implementation process of the motion state detection method proposed in the embodiments of this application. Figure 3 ;

[0018] Figure 4 This is a schematic diagram of the implementation process of the motion state detection method proposed in the embodiments of this application. Figure 4 ;

[0019] Figure 5 This is a schematic diagram of the composition structure of the electronic device proposed in the embodiments of this application. Figure 1 ;

[0020] Figure 6 This is a schematic diagram of the composition structure of the electronic device proposed in the embodiments of this application. Figure 2 . Detailed Implementation

[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only for explaining the relevant application and not for limiting the application. Furthermore, it should be noted that, for ease of description, only the parts related to the relevant application are shown in the accompanying drawings.

[0022] Currently, smart mobile terminals can support motion detection. For example, in related technologies, motion states can be determined by calculating the probability values ​​of candidate motion states and related confidence information. These technologies can be widely used on mobile platforms, and their main applications include motion-assisted geofencing, motion-assisted Wi-Fi scanning optimization, distracted pedestrian detection, and health monitoring. Common motion states include walking, running, cycling, riding in a motor vehicle, and remaining stationary.

[0023] However, current motion state recognition algorithms are generally quite complex, and these algorithms are usually resident applications of SMEs, which greatly increases the power consumption of SMEs in low-power scenarios, thus affecting the power-saving performance of smart mobile terminals.

[0024] To address the aforementioned issues, in the embodiments of this application, the electronic device can determine the detection period corresponding to the detection target; within the detection period, a motion ratio parameter is determined according to a preset time interval; and the motion state result corresponding to the detection target is determined based on the motion ratio parameter. This reduces power consumption and improves the energy-saving performance of the electronic device.

[0025] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0026] Figure 1 This is a schematic diagram of the implementation process of the motion state detection method proposed in the embodiments of this application. Figure 1 ,like Figure 1 As shown in the embodiments of this application, the method for detecting motion state by an electronic device may include the following steps:

[0027] Step 101: Determine the detection cycle corresponding to the detection target.

[0028] In the embodiments of this application, the electronic device may first determine the detection cycle corresponding to the detection target.

[0029] It should be noted that, in the embodiments of this application, the electronic device can be any electronic device with communication and storage functions, such as: tablet computer, mobile phone, e-reader, remote control, personal computer (PC), laptop computer, in-vehicle electronic device, internet TV, wearable electronic device, personal digital assistant (PDA), portable media player (PMP), navigation device, and other electronic devices and electronic equipment.

[0030] It should be noted that, in the embodiments of this application, the detection target refers to different types of motion states; for example, the detection target can be stationary, moving, or undergoing large-amplitude motion; it can also be motion states such as walking, running, cycling, or riding in a motor vehicle.

[0031] Furthermore, in the embodiments of this application, the detection period corresponds to the detection target, and the detection period is the time information required to determine the motion state result of the detection target.

[0032] For example, in the embodiments of this application, the detection targets are S1, S2, ..., Sn; and their respective detection periods can be T1, T2, ..., Tn.

[0033] Furthermore, in embodiments of this application, the electronic device can determine at least one detection cycle corresponding to at least one detection target; and then sort the at least one detection cycle to determine the detection order of at least one detection target.

[0034] In other words, in the embodiments of this application, the electronic device can simultaneously determine at least one detection target and determine the detection order of at least one detection target according to the respective detection cycle of the at least one detection target.

[0035] For example, in an embodiment of this application, at least one detection target includes stationary, moving, and large-amplitude moving targets; wherein, the detection period corresponding to stationary is T1, the detection period corresponding to moving is T2, and the detection period corresponding to large-amplitude moving targets is T3; the electronic device can determine the detection order of the three detection targets, stationary, moving, and large-amplitude moving targets, by sorting T1, T2, and T3.

[0036] It is understood that, in the embodiments of this application, the detection order is the order in which at least one detection target is detected.

[0037] For example, in the embodiments of this application, the detection order of the three detection targets, namely, stationary, moving, and large-amplitude movement, can be large-amplitude movement, moving, and stationary; that is, large-amplitude movement is detected first, then moving, and finally stationary.

[0038] In one embodiment of this application, when the electronic device sorts at least one detection cycle to determine the detection order of at least one detection target, it can sort at least one detection cycle in ascending order to obtain a sorting result; thereby determining the detection order of at least one detection target based on the sorting result.

[0039] For example, in the embodiments of this application, the detection targets are S1, S2, ..., Sn; their respective detection periods can be T1, T2, ..., Tn; by sorting T1, T2, ..., Tn in ascending order, the sorting result is T1<=T2<=...<=Tn, thereby determining the detection order of these n detection targets as S1, S2, ..., Sn.

[0040] Step 102: Within the detection cycle, determine the motion ratio parameter according to the preset time interval.

[0041] In the embodiments of this application, the electronic device can determine the motion ratio parameter within the detection period according to a preset time interval after determining the detection period corresponding to the detection target.

[0042] It should be noted that in the embodiments of this application, the motion ratio parameter is obtained according to a preset time interval; the value of the preset time interval is not specifically limited in this application; for example, if the preset time interval is 1 second, then the motion ratio parameter is calculated once every 1 second.

[0043] Furthermore, in some embodiments of this application, when the electronic device determines the motion ratio parameter according to a preset time interval, it can acquire acceleration data through an accelerometer; then determine the counter value based on the acceleration data; and then determine the motion ratio parameter according to the output data rate of the accelerometer and the counter value according to the preset time interval.

[0044] Furthermore, in some embodiments of this application, when the electronic device determines the counter value based on the acceleration data, it can first initialize the counter value; then compare the acceleration data of each frame with a preset threshold to obtain a comparison result; if the comparison result is that the acceleration data is greater than the preset threshold, the counter value is incremented by 1.

[0045] Furthermore, in some embodiments of this application, when the electronic device determines the motion ratio parameter based on the output data rate of the accelerometer and the counter value, it can perform a division operation on the counter value and the output data rate to obtain the motion ratio parameter.

[0046] Therefore, in the embodiments of this application, the entire motion state detection calculation process only involves some simple operations of adders and dividers. For example, the counter value is determined by the operation of the adder, and the motion ratio parameter can be determined by the operation of the divider. The calculation process is greatly simplified, which can effectively reduce power consumption and provide great convenience for hardware to implement motion state detection calculation.

[0047] Step 103: Determine the motion state result corresponding to the detected target based on the motion ratio parameter.

[0048] In the embodiments of this application, the electronic device can determine the motion ratio parameter according to a preset time interval within the detection cycle, and then determine the motion state result corresponding to the detection target based on the motion ratio parameter.

[0049] It should be noted that, in the embodiments of this application, the motion state result can be used to determine whether the electronic device is in the motion state corresponding to the detection target; for example, if the detection target is a large-amplitude motion, and the electronic device determines that it is a large-amplitude motion by obtaining the motion ratio parameter in the detection cycle corresponding to the large-amplitude motion, then the motion state result is a large-amplitude motion; and if it is determined that it is not a large-amplitude motion, then the motion state result is a non-large-amplitude motion.

[0050] Furthermore, in some embodiments of this application, the electronic device can determine at least one motion state result corresponding to at least one detection target in sequence according to the motion ratio parameter, based on the detection sequence.

[0051] In other words, in the embodiments of this application, when the electronic device is in different detection cycles in sequence according to the detection order, it only needs to continue to calculate the motion ratio parameter according to the preset time interval to obtain the motion state result of the corresponding detection target in different detection cycles.

[0052] Furthermore, in some embodiments of this application, during the process of sequentially determining the motion state result corresponding to at least one detection target, if the detection duration reaches the first detection cycle in at least one detection period, the motion state result of the first detection target corresponding to the first detection cycle is obtained; wherein, the first detection cycle is the smallest detection cycle in at least one detection cycle; if the detection duration reaches the second detection cycle in at least one detection period, the motion state result of the second detection target corresponding to the second detection cycle is obtained; wherein, the second detection cycle is greater than the first detection cycle; the detection process continues to be executed until the detection duration reaches the maximum detection cycle in at least one detection period, and the motion state result of the third detection target corresponding to the maximum detection cycle is obtained.

[0053] For example, in the embodiments of this application, the detection targets include S1, S2, and S3; the detection period corresponding to S1 is 2 seconds, the detection period corresponding to S2 is 4 seconds, and the detection period corresponding to S3 is 6 seconds; the electronic device detects the motion state in the order of detection of S1, S2, and S3. When the detection time reaches 2 seconds, the motion state of S1 is obtained, and the detection process continues to be executed (the motion ratio parameter is obtained according to the preset time interval). When the detection time reaches 4 seconds, the motion state of S2 is obtained, and the detection process continues to be executed. When the detection time reaches 6 seconds, the motion state of S3 is obtained.

[0054] Furthermore, in the embodiments of this application, a motion ratio calculation unit can be set up. The motion ratio calculation unit can determine the motion ratio parameter according to a preset time interval. Thus, when the electronic device detects different detection targets, the motion ratio calculation unit can be set to execute cyclically to obtain the motion state results of different detection targets.

[0055] For example, in an embodiment of this application, the electronic device detects targets S1 and S2. The detection cycle of S1 is 2 seconds and the detection cycle of S2 is 4 seconds. The motion ratio calculation unit calculates the motion ratio parameter once every 1 second. Thus, the motion ratio calculation unit can be set to execute the cycle twice to obtain the motion state of S1. Based on this, the cycle can be repeated twice more to obtain the motion state of S2.

[0056] Furthermore, in some embodiments of this application, when the electronic device determines the motion state result corresponding to the detected target based on the motion ratio parameter, it can determine the motion state result based on the motion ratio parameter and a preset state threshold.

[0057] It should be noted that, in the embodiments of this application, when the motion ratio parameter is greater than or equal to the preset state threshold, it can be determined that the electronic device conforms to the motion state of the detection target; for example, if the detection target is running and the preset state threshold corresponding to running is 4, in the detection cycle corresponding to running, if the obtained motion ratio parameter is greater than or equal to 4, then the motion state result is determined to be running.

[0058] It is understood that in the embodiments of this application, the preset state threshold can be set freely, for example, different preset state thresholds can be set according to different detection targets.

[0059] Furthermore, in some embodiments of this application, when the electronic device determines the motion state result based on the motion ratio parameter, it can also determine the motion state result based on the motion ratio parameter and a preset time threshold.

[0060] It should be noted that, in the embodiments of this application, the motion state result can also be determined according to a preset time threshold. For example, during the detection process, if the detection duration is greater than or equal to the preset time threshold, the motion ratio parameter is greater than or equal to the corresponding preset state threshold within the detection duration. That is, when the motion ratio parameter is greater than or equal to the preset state threshold for a duration greater than or equal to the preset time threshold, it can be determined that the electronic device conforms to the motion state corresponding to the detection target.

[0061] Furthermore, in the embodiments of this application, the preset time threshold can also be freely set, for example, different preset time thresholds can be set according to different detection targets.

[0062] For example, in an embodiment of this application, the detection target is a large-amplitude movement, the preset state threshold corresponding to the large-amplitude movement is 5, and the preset time threshold is 8 seconds; within the detection period of the large-amplitude movement, the movement ratio parameter remains at 5 within 8 seconds, that is, it is greater than or equal to the preset state threshold, then the movement state result can be determined to be a large-amplitude movement.

[0063] Figure 2 This is a schematic diagram of the implementation process of the motion state detection method proposed in the embodiments of this application. Figure 2 ,like Figure 2 As shown, the method for an electronic device to determine a motion ratio parameter according to a preset time interval may include the following steps:

[0064] Step 201: Acquire acceleration data using an accelerometer.

[0065] In some embodiments of this application, the electronic device determines the motion ratio parameter according to a preset time interval; in some embodiments of this application, the electronic device may first acquire acceleration data through an accelerometer.

[0066] It should be noted that, in the embodiments of this application, an acceleration sensor (ACC) may be deployed in the electronic device to acquire acceleration data; for example, the acceleration sensor may be a triaxial acceleration sensor.

[0067] Furthermore, in the embodiments of this application, the electronic device can cache the acceleration data in batches of a specified size after acquiring acceleration data through the accelerometer.

[0068] Step 202: Determine the counter value based on the acceleration data.

[0069] In the embodiments of this application, after the electronic device acquires acceleration data through the accelerometer, it can determine the counter value based on the acceleration data.

[0070] It should be noted that, in the embodiments of this application, the electronic device can obtain the cached acceleration data from the batch to determine the counter value.

[0071] Furthermore, in the embodiments of this application, for low-power scenarios, the electronic device does not need to determine the motion state in real time. Therefore, after acquiring the acceleration data, the acceleration data can be cached first, and then the cached acceleration data can be used to determine the motion state of the electronic device. This can greatly reduce the power consumption of the electronic device and effectively reduce the power consumption of the electronic device in low-power scenarios.

[0072] Furthermore, in some embodiments of this application, when the electronic device determines the counter value based on the acceleration data, it can first initialize the counter value; then compare the acceleration data of each frame with a preset threshold to obtain a comparison result; if the comparison result is that the acceleration data is greater than the preset threshold, the counter value is incremented by 1.

[0073] It is understood that in the embodiments of this application, if the comparison result is that the acceleration data is less than or equal to a preset threshold, the counter value will not change.

[0074] For example, in an embodiment of this application, the preset threshold is 1; the electronic device reads the cached acceleration data, and at the same time sets the counter to zero (initializes), and then starts to calculate. The acceleration data of each frame is compared with 1. If the acceleration data of the frame is greater than 1, the counter value is incremented by 1. If the acceleration data of the frame is less than or equal to 1, no processing is performed and the counter value remains unchanged.

[0075] In addition, in the embodiments of this application, the electronic device determines the counter value by comparing the acceleration data of each frame, while the motion ratio parameter is calculated according to a preset time interval. Assuming that the preset time interval is 1 second, and the acceleration data of 1 second contains 6 frames of acceleration data, the electronic device may calculate the motion ratio parameter once within 1 second, but determine the counter value 6 times.

[0076] Step 203: Determine the motion ratio parameter according to the output data rate of the accelerometer and the counter value at a preset time interval.

[0077] In the embodiments of this application, after the electronic device determines the counter value based on the acceleration data, it can determine the motion ratio parameter according to the output data rate of the acceleration sensor and the counter value at a preset time interval.

[0078] It should be noted that, in the embodiments of this application, the Output Data Rate (ODR) is a parameter of the accelerometer.

[0079] Furthermore, in the embodiments of this application, the specific value of the preset time interval is not limited. For example, the preset time interval can be 1 second, so that when the electronic device detects the motion state, it can calculate the motion ratio parameter once every 1 second.

[0080] Furthermore, in the embodiments of this application, when the electronic device determines the motion ratio parameter based on the output data rate of the accelerometer and the counter value, it can perform a division operation on the counter value and the output data rate to obtain the motion ratio parameter.

[0081] For example, in an embodiment of this application, the motion ratio parameter = counter value / ODR.

[0082] Furthermore, in the embodiments of this application, after determining the motion ratio parameter, the electronic device can store the motion ratio parameter and initialize the counter.

[0083] In summary, in the embodiments of this application, the entire motion detection calculation process involves only adders and dividers, as well as some simple operations. This achieves extremely low power consumption while also facilitating hardware implementation of the algorithm. Furthermore, the calculation cycle, based on a preset time interval, reduces redundancy in hardware and software design and enhances scalability. This application can be extended to any number of detection cycles for different motion states, and to motion state recognition with any detection cycle. For example, if the detection targets are motion state 1 and motion state 2, where the detection cycle for motion state 1 is 2 seconds and the detection cycle for motion state 2 is 4 seconds, and the preset time interval is 1 second, then the motion ratio calculation unit, which calculates the motion ratio in 1-second units, can be executed once to obtain the detection of motion state 1, and then repeated twice to complete the detection of motion state 2.

[0084] This application provides a method for detecting motion state. An electronic device determines a detection period corresponding to a detection target; within the detection period, a motion ratio parameter is determined at preset time intervals; and the motion state result corresponding to the detection target is determined based on the motion ratio parameter. Therefore, in this embodiment, after determining the detection period of the detection target, the electronic device can calculate the motion ratio parameter at preset time intervals within the detection period, thereby directly determining the motion state result corresponding to the detection target based on the motion ratio parameter. Since the motion ratio parameter only involves simple operations such as division, the entire motion state detection process can be greatly simplified, thereby reducing the power consumption of the electronic device and improving energy-saving performance.

[0085] Based on the above embodiments, in another embodiment of this application, for example, the electronic device is a mobile terminal device, and the motion state detection method can be applied to the low power consumption scenario of the mobile terminal device. Figure 3 This is a schematic diagram of the implementation process of the motion state detection method proposed in the embodiments of this application. Figure 3 ,like Figure 3 As shown, in the low-power scenario of the mobile terminal device, the mobile terminal device can use the motion ratio calculation unit to calculate the motion ratio parameter in units of 1 second (preset time interval) in any detection cycle (step 301). After obtaining the motion ratio parameter, it is determined whether the detection time has reached the detection cycle (step 302). If the determination result is no, step 301 is continued. If the determination result is yes, the motion state result is determined according to the motion ratio parameter, and the current detection ends (step 303).

[0086] Furthermore, in the embodiments of this application, for step 301, namely the method of the motion ratio calculation unit calculating the motion ratio parameter, Figure 4 This is a schematic diagram of the implementation process of the motion state detection method proposed in the embodiments of this application. Figure 4 ,like Figure 4 As shown, the motion ratio calculation unit can first acquire acceleration sensor data (step 301a), then determine whether the acceleration sensor data is greater than a preset threshold (step 301b). If it is less than or equal to the preset threshold, the counter value remains unchanged (step 301c). If it is greater than the preset threshold, the counter value is incremented by 1 (step 301d). Then, the motion ratio parameter is calculated every second based on the counter value and ODR, and the motion ratio parameter is stored after it is calculated.

[0087] It should be noted that, in the embodiments of this application, the motion ratio calculation unit is implemented in hardware, which can identify multiple motion states without waking up the SME, greatly reducing the number of times the SME needs to be woken up in daily use. For example, in smart scenarios based on motion recognition, existing solutions require the SME to be frequently woken up and run one or more detection algorithms to identify whether the user is in a stationary, walking, or other motion state. Using a hardware motion ratio calculation unit can achieve the same motion detection purpose without waking up the SME. The resulting technical effects include: on the one hand, the SME does not need to be frequently woken up; on the other hand, it is no longer necessary to run complex motion state detection algorithms in the SME.

[0088] Furthermore, in the embodiments of this application, the electronic device can determine the motion state for different detection targets; the detection target refers to different types of motion states; for example, the detection target can be stationary, moving, or undergoing large-amplitude movement; it can also be motion states such as walking, running, cycling, or riding in a motor vehicle.

[0089] Furthermore, in the embodiments of this application, different detection targets correspond to different detection cycles; the detection cycle is the time information required to determine the motion state result of the detection target.

[0090] For example, in the embodiments of this application, the detection targets are S1, S2, ..., Sn; and their respective detection periods can be T1, T2, ..., Tn.

[0091] Furthermore, in embodiments of this application, the electronic device can determine at least one detection cycle corresponding to at least one detection target; and then sort the at least one detection cycle to determine the detection order of at least one detection target.

[0092] In other words, in the embodiments of this application, the electronic device can simultaneously determine at least one detection target and determine the detection order of at least one detection target according to the respective detection cycle of the at least one detection target.

[0093] For example, in an embodiment of this application, at least one detection target includes stationary, moving, and large-amplitude moving targets; wherein, the detection period corresponding to stationary is T1, the detection period corresponding to moving is T2, and the detection period corresponding to large-amplitude moving targets is T3; the electronic device can determine the detection order of the three detection targets, stationary, moving, and large-amplitude moving targets, by sorting T1, T2, and T3.

[0094] It is understood that, in the embodiments of this application, the detection order is the order in which at least one detection target is detected.

[0095] For example, in the embodiments of this application, the detection order of the three detection targets, namely, stationary, moving, and large-amplitude movement, can be large-amplitude movement, moving, and stationary; that is, large-amplitude movement is detected first, then moving, and finally stationary.

[0096] In one embodiment of this application, when the electronic device sorts at least one detection cycle to determine the detection order of at least one detection target, it can sort at least one detection cycle in ascending order to obtain a sorting result; thereby determining the detection order of at least one detection target based on the sorting result.

[0097] For example, in the embodiments of this application, the detection targets are S1, S2, ..., Sn; their respective detection periods can be T1, T2, ..., Tn; by sorting T1, T2, ..., Tn in ascending order, the sorting result is T1<=T2<=...<=Tn, thereby determining the detection order of these n detection targets as S1, S2, ..., Sn.

[0098] Furthermore, in the embodiments of this application, the electronic device determines the motion ratio parameter according to a preset time interval during the detection cycle. For example, if the preset time interval is 1 second, the motion ratio parameter is calculated once every 1 second.

[0099] Furthermore, in some embodiments of this application, when the electronic device determines the motion ratio parameter according to a preset time interval, it can acquire acceleration data through an accelerometer; then determine the counter value based on the acceleration data; and then determine the motion ratio parameter according to the output data rate of the accelerometer and the counter value according to the preset time interval.

[0100] Furthermore, in the embodiments of this application, the electronic device can cache the acceleration data in batches of a specified size after acquiring acceleration data through the accelerometer.

[0101] Furthermore, in an embodiment of this application, the electronic device can obtain cached acceleration data from the batch to determine the counter value.

[0102] It should be noted that, in the embodiments of this application, for low-power scenarios, the electronic device does not need to determine the motion state in real time. Therefore, after acquiring the acceleration data, the acceleration data can be cached first, and then the cached acceleration data can be used to determine the motion state of the electronic device. This can greatly reduce the power consumption of the electronic device and effectively reduce the power consumption of the electronic device in low-power scenarios.

[0103] Furthermore, in some embodiments of this application, when the electronic device determines the counter value based on the acceleration data, it can first initialize the counter value; then compare the acceleration data of each frame with a preset threshold to obtain a comparison result; if the comparison result is that the acceleration data is greater than the preset threshold, the counter value is incremented by 1.

[0104] Furthermore, in some embodiments of this application, when the electronic device determines the motion ratio parameter based on the output data rate of the accelerometer and the counter value, it can perform a division operation on the counter value and the output data rate to obtain the motion ratio parameter.

[0105] It should be noted that in the embodiments of this application, the electronic device determines the counter value by comparing the acceleration data of each frame, while the motion ratio parameter is calculated according to a preset time interval. Assuming that the preset time interval is 1 second, and the acceleration data of 1 second contains 6 frames of acceleration data, the electronic device may calculate the motion ratio parameter once within 1 second, but determine the counter value 6 times.

[0106] Therefore, in the embodiments of this application, the entire motion state detection calculation process only involves some simple operations of adders and dividers. For example, the counter value is determined by the operation of the adder, and the motion ratio parameter can be determined by the operation of the divider. The calculation process is greatly simplified, which can effectively reduce power consumption and provide great convenience for hardware to implement motion state detection calculation.

[0107] Furthermore, in the embodiments of this application, the electronic device can determine the motion state result corresponding to the detected target based on the motion ratio parameter.

[0108] It should be noted that, in the embodiments of this application, the motion state result can be used to determine whether the electronic device is in the motion state corresponding to the detection target; for example, if the detection target is a large-amplitude motion, and the electronic device is determined to be in a large-amplitude motion by obtaining the motion ratio parameter during the detection cycle corresponding to the large-amplitude motion, then the motion state result is a large-amplitude motion; and if it is determined that the electronic device is not in a large-amplitude motion, then the motion state result is a non-large-amplitude motion.

[0109] Furthermore, in some embodiments of this application, the electronic device can determine at least one motion state result corresponding to at least one detection target in sequence according to the motion ratio parameter, based on the detection sequence.

[0110] In other words, in the embodiments of this application, when the electronic device is in different detection cycles in sequence according to the detection order, it only needs to continue to calculate the motion ratio parameter according to the preset time interval to obtain the motion state result of the corresponding detection target in different detection cycles.

[0111] Furthermore, in some embodiments of this application, during the process of sequentially determining the motion state result corresponding to at least one detection target, if the detection duration reaches the first detection cycle in at least one detection period, the motion state result of the first detection target corresponding to the first detection cycle is obtained; wherein, the first detection cycle is the smallest detection cycle in at least one detection cycle; if the detection duration reaches the second detection cycle in at least one detection period, the motion state result of the second detection target corresponding to the second detection cycle is obtained; wherein, the second detection cycle is greater than the first detection cycle; the detection process continues to be executed until the detection duration reaches the maximum detection cycle in at least one detection period, and the motion state result of the third detection target corresponding to the maximum detection cycle is obtained.

[0112] For example, in the embodiments of this application, the detection targets include S1, S2, and S3; the detection period corresponding to S1 is 2 seconds, the detection period corresponding to S2 is 4 seconds, and the detection period corresponding to S3 is 6 seconds; the electronic device detects the motion state in the order of detection of S1, S2, and S3. When the detection time reaches 2 seconds, the motion state of S1 is obtained, and the detection process continues to be executed (the motion ratio parameter is obtained according to the preset time interval). When the detection time reaches 4 seconds, the motion state of S2 is obtained, and the detection process continues to be executed. When the detection time reaches 6 seconds, the motion state of S3 is obtained.

[0113] Furthermore, in the embodiments of this application, a motion ratio calculation unit can be set up. The motion ratio calculation unit can determine the motion ratio parameter according to a preset time interval. Thus, when the electronic device detects different detection targets, the motion ratio calculation unit can be set to execute cyclically to obtain the motion state results of different detection targets.

[0114] For example, in an embodiment of this application, the electronic device detects targets S1 and S2. The detection cycle of S1 is 2 seconds and the detection cycle of S2 is 4 seconds. The motion ratio calculation unit calculates the motion ratio parameter once every 1 second. Thus, the motion ratio calculation unit can be set to execute the cycle twice to obtain the motion state of S1. Based on this, the cycle can be repeated twice more to obtain the motion state of S2.

[0115] Furthermore, in some embodiments of this application, when the electronic device determines the motion state result corresponding to the detected target based on the motion ratio parameter, it can determine the motion state result based on the motion ratio parameter and a preset state threshold.

[0116] It should be noted that, in the embodiments of this application, when the motion ratio parameter is greater than or equal to the preset state threshold, it can be determined that the electronic device conforms to the motion state of the detection target; for example, if the detection target is running and the preset state threshold corresponding to running is 4, in the detection cycle corresponding to running, if the obtained motion ratio parameter is greater than or equal to 4, then the motion state result is determined to be running.

[0117] It is understood that in the embodiments of this application, the preset state threshold can be set freely, for example, different preset state thresholds can be set according to different detection targets.

[0118] Furthermore, in some embodiments of this application, when the electronic device determines the motion state result based on the motion ratio parameter, it can also determine the motion state result based on the motion ratio parameter and a preset time threshold.

[0119] It should be noted that, in the embodiments of this application, the motion state result can also be determined according to a preset time threshold. For example, during the detection process, if the detection duration is greater than or equal to the preset time threshold, the motion ratio parameter is greater than or equal to the corresponding preset state threshold within the detection duration. That is, when the motion ratio parameter is greater than or equal to the preset state threshold for a duration greater than or equal to the preset time threshold, it can be determined that the electronic device conforms to the motion state corresponding to the detection target.

[0120] Furthermore, in the embodiments of this application, the preset time threshold can also be freely set, for example, different preset time thresholds can be set according to different detection targets.

[0121] For example, in an embodiment of this application, the detection target is a large-amplitude movement, the preset state threshold corresponding to the large-amplitude movement is 5, and the preset time threshold is 8 seconds; within the detection period of the large-amplitude movement, the movement ratio parameter remains at 5 within 8 seconds, that is, it is greater than or equal to the preset state threshold, then the movement state result can be determined to be a large-amplitude movement.

[0122] In summary, the calculation method using calculator values ​​and motion ratio parameters in the embodiments of this application simplifies the calculation process for motion state recognition, resulting in lower power consumption and simpler hardware and software design for SMEs. Furthermore, the easily expandable motion ratio calculation unit can support any number of motion states and detection cycles, making the hardware implementation of the algorithm simpler. Therefore, it is more suitable for use in low-power scenarios of electronic devices, improving power-saving performance.

[0123] This application provides a method for detecting motion state. An electronic device determines a detection period corresponding to a detection target; within the detection period, a motion ratio parameter is determined at preset time intervals; and the motion state result corresponding to the detection target is determined based on the motion ratio parameter. Therefore, in this embodiment, after determining the detection period of the detection target, the electronic device can calculate the motion ratio parameter at preset time intervals within the detection period, thereby directly determining the motion state result corresponding to the detection target based on the motion ratio parameter. Since the motion ratio parameter only involves simple operations such as division, the entire motion state detection process can be greatly simplified, thereby reducing the power consumption of the electronic device and improving energy-saving performance.

[0124] Based on the above embodiments, in another embodiment of this application... Figure 5 This is a schematic diagram of the composition structure of the electronic device proposed in the embodiments of this application. Figure 1 ,like Figure 5 As shown, the electronic device 10 proposed in this application embodiment may include: a determining unit 11.

[0125] The determining unit 11 is used to determine the detection period corresponding to the detection target; and within the detection period, to determine the motion ratio parameter according to a preset time interval; and to determine the motion state result corresponding to the detection target based on the motion ratio parameter.

[0126] Furthermore, the determining unit 11 is also used to acquire acceleration data through an accelerometer; determine a counter value based on the acceleration data; and determine the motion ratio parameter according to the output data rate of the accelerometer and the counter value at a preset time interval.

[0127] Furthermore, the determining unit 11 is also used to initialize the counter value; and to compare the acceleration data of each frame with a preset threshold to obtain a comparison result; and if the comparison result is that the acceleration data is greater than the preset threshold, then the counter value is incremented by 1.

[0128] Furthermore, the determining unit 11 is also used to perform a division operation on the counter value and the output data rate to obtain the motion ratio parameter.

[0129] Furthermore, the determining unit 11 is also used to determine at least one detection cycle corresponding to at least one detection target; wherein the detection cycle is the duration information required to determine the motion state result of the detection target; and to sort the at least one detection cycle to determine the detection order of the at least one detection target.

[0130] Furthermore, the determining unit 11 is also used to sort the at least one detection cycle in ascending order to obtain a sorting result; and to determine the detection order of the at least one detection target based on the sorting result.

[0131] Furthermore, the determining unit 11 is also used to determine at least one motion state result corresponding to the at least one detection target in sequence according to the motion ratio parameter, according to the detection order.

[0132] Furthermore, the determining unit 11 is also configured to, during the process of sequentially determining the at least one motion state result, if the detection duration reaches the first detection cycle among the at least one detection cycle, obtain the motion state result of the first detection target corresponding to the first detection cycle; wherein the first detection cycle is the smallest detection cycle among the at least one detection cycle; and if the detection duration reaches the second detection cycle among the at least one detection cycle, obtain the motion state result of the second detection target corresponding to the second detection cycle; wherein the second detection cycle is greater than the first detection cycle; and continue executing the detection process until the detection duration reaches the maximum detection cycle among the at least one detection cycle, and obtain the motion state result of the third detection target corresponding to the maximum detection cycle.

[0133] Furthermore, the determining unit 11 is also used to determine the motion state result based on the motion ratio parameter and the preset state threshold.

[0134] Furthermore, the determining unit 11 is also used to determine the motion state result based on the motion ratio parameter and the preset time threshold.

[0135] In the embodiments of this application, further, Figure 6 This is a schematic diagram of the composition structure of the electronic device proposed in the embodiments of this application. Figure 2 ,like Figure 6 As shown, the electronic device 10 proposed in this application embodiment may further include a processor 12 and a memory 13 storing instructions executable by the processor 12; further, the electronic device 10 may further include a communication interface 14 and a bus 15 for connecting the processor 12, the memory 13 and the communication interface 14.

[0136] In the embodiments of this application, the processor 12 can be at least one of the following: Application-Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), Controller, Microcontroller, and Microprocessor. It is understood that for different devices, the electronic device used to implement the above-mentioned processor function can also be other types, and this application embodiment does not specifically limit this. The electronic device 10 may also include a memory 13, which can be connected to the processor 12. The memory 13 is used to store executable program code, which includes computer operation instructions. The memory 13 may include high-speed RAM memory and may also include non-volatile memory, such as at least two disk drives.

[0137] In embodiments of this application, bus 15 is used to connect communication interface 14, processor 12, and memory 13, as well as the mutual communication between these devices.

[0138] In embodiments of this application, memory 13 is used to store instructions and data.

[0139] Furthermore, in the embodiments of this application, the processor 12 is used to determine the detection period corresponding to the detection target; and within the detection period, to determine a motion ratio parameter according to a preset time interval; and to determine the motion state result corresponding to the detection target based on the motion ratio parameter.

[0140] In practical applications, the aforementioned memory 13 can be volatile memory, such as random-access memory (RAM); or non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 12.

[0141] Furthermore, in this embodiment, the functional modules can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional module.

[0142] If the integrated unit is implemented as a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the method of this embodiment. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0143] This application provides an electronic device that determines a detection period corresponding to a detection target; within the detection period, it determines a motion ratio parameter at preset time intervals; and determines the motion state result corresponding to the detection target based on the motion ratio parameter. Therefore, in this application, after determining the detection period of the detection target, the electronic device can calculate the motion ratio parameter at preset time intervals within the detection period, thereby directly determining the motion state result corresponding to the detection target based on the motion ratio parameter. Since the motion ratio parameter only involves simple operations such as division, the entire motion state detection process can be greatly simplified, thereby reducing the power consumption of the electronic device and improving energy-saving performance.

[0144] Specifically, the program instructions corresponding to a detection method in this embodiment can be stored on storage media such as optical discs, hard disks, and USB flash drives. When the program instructions corresponding to a detection method in the storage media are read or executed by an electronic device, the following steps are included:

[0145] Determine the detection cycle corresponding to the detection target;

[0146] Within the detection cycle, the motion ratio parameter is determined according to a preset time interval;

[0147] The motion state result corresponding to the detected target is determined based on the motion ratio parameter.

[0148] This application provides a chip, which includes programmable logic circuits and / or program instructions. When the chip is running, it implements the detection method described above, specifically including the following steps:

[0149] Determine the detection cycle corresponding to the detection target;

[0150] Within the detection cycle, the motion ratio parameter is determined according to a preset time interval;

[0151] The motion state result corresponding to the detected target is determined based on the motion ratio parameter.

[0152] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0153] This application is described with reference to schematic and / or block diagrams of implementations of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the schematic and / or block diagrams can be implemented by computer program instructions, and combinations of blocks in the schematic and / or block diagrams can be implemented. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the schematic and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0154] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in the implementation flow diagram. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0155] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0156] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application.

Claims

1. A method of detecting a motion state, characterized by, The method comprises: determining a detection period corresponding to a detection target; in the detection period, obtaining acceleration data through an acceleration sensor; determining a counter value according to a comparison result between the acceleration data and a preset threshold value; determining a motion ratio parameter according to an output data rate of the acceleration sensor and the counter value at a preset time interval; determining a motion state result corresponding to the detection target according to the motion ratio parameter.

2. The method of claim 1, wherein, The method further comprises: initializing the counter value; comparing each frame of the acceleration data with the preset threshold value to obtain a comparison result; if the comparison result is that the acceleration data is greater than the preset threshold value, the counter value is incremented by 1.

3. The method of claim 2, wherein, determining the motion ratio parameter according to the output data rate of the acceleration sensor and the counter value, comprising: performing division operation on the counter value and the output data rate to obtain the motion ratio parameter.

4. The method according to any one of claims 1 to 3, characterized in that, The method further comprises: determining at least one detection period corresponding to at least one detection target; wherein the detection period is the time length information required to determine the motion state result of the detection target; sorting the at least one detection period to determine the detection order of the at least one detection target.

5. The method of claim 4, wherein, The sorting of the at least one detection period to determine the detection order of the at least one detection target comprises: sorting the at least one detection period in ascending order to obtain a sorting result; determining the detection order of the at least one detection target according to the sorting result.

6. The method of claim 5, wherein, The method further comprises: determining at least one motion state result corresponding to at least one detection target according to the motion ratio parameter in the detection order.

7. The method of claim 6, wherein, The method further comprises: during the process of sequentially determining the at least one motion state result, if the detection time reaches a first detection period in the at least one detection period, the motion state result of a first detection target corresponding to the first detection period is obtained; wherein the first detection period is the smallest detection period in the at least one detection period; if the detection time reaches a second detection period in the at least one detection period, the motion state result of a second detection target corresponding to the second detection period is obtained; wherein the second detection period is greater than the first detection period; continuing to execute the detection process until the detection time reaches a maximum detection period in the at least one detection period, and obtaining the motion state result of a third detection target corresponding to the maximum detection period.

8. The method of claim 1, wherein, The determination of the motion state result corresponding to the detection target according to the motion ratio parameter comprises: determining the motion state result according to the motion ratio parameter and a preset state threshold value.

9. The method of claim 1, wherein, The determination of the motion state result corresponding to the detection target according to the motion ratio parameter comprises: determining the motion state result according to the motion ratio parameter and a preset time threshold value.

10. An electronic device, comprising: The electronic device comprises a determination unit, The determining unit is configured to determine a detection period corresponding to a detection target, acquire acceleration data through an acceleration sensor in the detection period, determine a counter value according to a comparison result between the acceleration data and a preset threshold, determine a motion ratio parameter according to an output data rate of the acceleration sensor and the counter value at a preset time interval, and determine a motion state result corresponding to the detection target according to the motion ratio parameter.

11. An electronic device, comprising: The electronic device comprises a processor, a memory storing instructions executable by the processor, a microprocessor, and an application processor; when the instructions are executed by the processor, the method of any one of claims 1-9 is implemented.

12. A chip, characterized by The chip comprises a programmable logic circuit and / or program instructions, and when the chip is running, the method of any one of claims 1-9 is implemented.

Citation Information

Patent Citations

  • Motion state detection method and device

    CN104063604A

  • Semiconductor device, electronic equipment, and determination method

    JP2014192735A