Motion state determination method, device, electronic device and readable storage medium

By decomposing the motion acceleration of the electronic device in the geographical environment and combining the target parameters, the problem of ununiversal motion state detection methods in the existing technology is solved, accurate state recognition of various motion carriers is achieved, and the versatility and versatility of the detection are improved. accuracy.

CN115112124BActive Publication Date: 2024-10-29VIVO MOBILE COMM (SHENZHEN) CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202210753982.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2024-10-29
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

The existing methods used to detect the motion status of moving carriers lack versatility and need to use different models for calculations for different moving carriers, resulting in detection methods that are not universally applicable.

Method used

By obtaining the motion acceleration of the electronic device and decomposing its three-dimensional space values ​​in different directions in the geographical environment, combined with the target parameters of the target carrier, the motion state of the target carrier is determined, and a unified formula is used for calculation to eliminate interference factors and improve Detection accuracy.

Benefits of technology

It achieves the versatility of motion state detection, improves detection accuracy, can be applied to various motion carriers, does not need to collect a large amount of data for specific scenarios, and simplifies the calculation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115112124B_ABST
    Figure CN115112124B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and readable storage medium for determining a motion state, which belongs to the field of artificial intelligence technology. The method includes: obtaining the motion acceleration of an electronic device; obtaining the three-dimensional spatial values ​​of the motion acceleration in different directions in a geographical environment; and determining the motion state of the target carrier according to the three-dimensional spatial values ​​of the motion acceleration in different directions in the geographical environment and the target parameters corresponding to the target carrier where the electronic device is located.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of artificial intelligence technology, and specifically relates to a motion state determination method, device, electronic device and readable storage medium. Background Art

[0002] At present, in some application scenarios, electronic devices can automatically identify the travel scenario of the user, and intelligently push some messages to the user, adjust some parameters of the electronic device, etc. according to the travel scenario, so as to provide more convenience for the user. For example, in the scenario where the user is on an airplane, the electronic device carried by the user at all times can detect that the user is currently in a flying airplane, so that some functions in the electronic device can be turned off to reduce the power consumption of the electronic device and extend the battery life.

[0003] In the prior art, different models are needed to determine the current motion state of different motion carriers, and different models also need to be trained.

[0004] It can be seen that in the prior art, the motion states of different motion carriers need to be calculated using different models, resulting in that the method for detecting the motion state of the motion carrier is not universal. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method for determining a motion state, which can solve the problem that the method for detecting the motion state of a moving carrier is not universal.

[0006] In a first aspect, an embodiment of the present application provides a method for determining a motion state, the method comprising: obtaining the motion acceleration of an electronic device; obtaining the three-dimensional spatial values ​​of the motion acceleration in different directions in a geographical environment; and determining the motion state of the target carrier based on the three-dimensional spatial values ​​of the motion acceleration in different directions in the geographical environment and the target parameters corresponding to the target carrier in which the electronic device is located.

[0007] In second aspect, an embodiment of the present application provides a motion state determination device, which includes: a first acquisition module, used to obtain the motion acceleration of an electronic device; a second acquisition module, used to obtain the three-dimensional spatial values ​​of the motion acceleration in different directions in a geographical environment; a first determination module, used to determine the motion state of the target carrier based on the three-dimensional spatial values ​​of the motion acceleration in different directions in the geographical environment, and the target parameters corresponding to the target carrier where the electronic device is located.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0012] Thus, in the embodiment of the present application, when determining the motion state of the target carrier where the electronic device is located, the motion acceleration of the electronic device is first obtained, and then the motion acceleration is decomposed into various directions in combination with the different directions of the geographical environment, and then the motion state of the target carrier is determined according to the three-dimensional space values ​​in various directions in combination with the target parameters corresponding to the target carrier. It can be seen that in the embodiment of the present application, the motion state of the carrier can be determined only by obtaining the corresponding parameters according to different carriers, so that the method for detecting the motion state of the moving carrier has universality; on this basis, the motion acceleration of the electronic device is decomposed into the direction of the geographical environment for calculation, so that the motion of the electronic device relative to the geographical environment can be obtained, eliminating some interference factors, and thus the accuracy of determining the motion state is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a flow chart of a method for determining a motion state according to an embodiment of the present application;

[0014] Figures 2 to 4 is a schematic diagram for explaining a method for determining a motion state according to an embodiment of the present application;

[0015] Figure 5 is a block diagram of a motion state determination device according to an embodiment of the present application;

[0016] Figure 6 It is one of the hardware structure diagrams of the electronic device according to the embodiment of the present application;

[0017] Figure 7 This is the second schematic diagram of the hardware structure of the electronic device according to the embodiment of the present application. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings of the embodiments of the present application to clearly describe the technical solutions of the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present application belong to the scope of protection of this application.

[0019] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0020] The motion state determination method provided in the embodiment of the present application may be executed by the motion state determination device provided in the embodiment of the present application, or an electronic device integrating the motion state determination device, wherein the motion state determination device may be implemented in hardware or software.

[0021] The motion state determination method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0022] Figure 1 A flow chart of a method for determining a motion state according to an embodiment of the present application is shown, and an example of the method being applied to an electronic device is given, including:

[0023] Step 110: Obtain the motion acceleration of the electronic device.

[0024] The application scenario of the present application is, for example, that a user carries an electronic device in a moving carrier.

[0025] For example, the moving carriers are cars, high-speed trains, airplanes, elevators, etc.

[0026] In the present application, the motion state of the motion carrier is determined based on the fact that when the motion carrier undergoes a sharp change, corresponding data is generated in the electronic device in the motion carrier. For example, the motion carrier starts to move from a stationary state, and the accelerated motion state of the motion carrier is determined based on the acceleration data detected by the electronic device. Furthermore, based on the motion state of the motion carrier, the travel scene in which the user is currently located is identified. Therefore, in the present application, a method for determining the motion state of a motion carrier is proposed.

[0027] For example, determining the acceleration and deceleration states of a car; determining the take-off and landing states of an airplane; determining the ascending and descending states of an elevator; and determining the starting and stopping states of a high-speed train.

[0028] Correspondingly, in this step, the motion acceleration of the electronic device is firstly acquired.

[0029] Optionally, in the process of implementing this embodiment, it is not necessary to obtain the motion acceleration of the electronic device in real time. Instead, it is combined with some ticketing information, time information, navigation information, etc. in the electronic device and the effective content therein is used to determine that the user may be in a travel scene. Therefore, the motion acceleration of the electronic device is obtained only during the time period when the user may be in the travel scene, and the motion state of the motion carrier is determined based on the motion acceleration, thereby accurately identifying the travel scene in which the user is located.

[0030] Optionally, in the process of identifying the travel scenario in which the user is located, combined with the law of motion, the acceleration state (or take-off state, etc.) of the motion carrier is first determined, and then the deceleration state (or landing state, etc.) of the motion carrier is determined.

[0031] Step 120: Obtain the three-dimensional space values ​​of motion acceleration in different directions in the geographical environment.

[0032] Usually, the acquired motion acceleration of the electronic device is directional, and the direction is based on the placement position of the electronic device.

[0033] For example, the direction in which the top of the electronic device extends is taken as a reference.

[0034] That is, the original value of the motion acceleration collected by the sensor of the electronic device can only reflect the change of the motion state of the electronic device itself, but cannot reflect the change of the motion state of the external carrier in which the electronic device is located.

[0035] For example, when a user is sitting in a car and the car accelerates, the electronic device accelerates along with the car. The motion acceleration collected by the sensor can reflect: the acceleration of the electronic device along the direction in which the top of the electronic device extends, the acceleration of the electronic device in the direction perpendicular to the direction in which the top of the electronic device extends, etc. However, it cannot reflect how the car is accelerating. Moreover, in one case, even if the car is not accelerating, the shaking of the electronic device in the car may also generate motion acceleration. Therefore, it is not possible to accurately determine that the car is accelerating only through the motion acceleration of the electronic device.

[0036] Therefore, in this step, after obtaining the motion acceleration of the electronic device, the motion acceleration is decomposed into various directions based on several different directions in the geographical environment. In this way, the motion acceleration collected by the sensor of the electronic device can be converted to the direction of the geographical environment for analysis. The direction of the geographical environment is fixed, thereby eliminating interference factors such as the placement of the electronic device and the shaking of the electronic device.

[0037] Step 130: Determine the motion state of the target carrier according to the three-dimensional spatial values ​​of the motion acceleration in different directions in the geographical environment and the target parameters corresponding to the target carrier where the electronic device is located.

[0038] Optionally, the motion state determined in this embodiment includes an acceleration motion state, a deceleration motion state, a take-off motion state, a landing motion state, an ascending motion state, a descending motion state, a starting motion state, a parking motion state, and the like.

[0039] In this step, when the motion state is determined, one motion carrier corresponds to one parameter set.

[0040] For example, when determining the motion state of a car, there is a corresponding parameter set; when determining the motion state of an airplane, there is a corresponding parameter set.

[0041] Correspondingly, the target parameter of this step is a parameter set.

[0042] Furthermore, when determining the motion state, a method of whether it is a certain motion state can be adopted to obtain a "yes" or "no" result. Correspondingly, a parameter set of a motion carrier can be further divided into: one state corresponds to a set of parameters.

[0043] For example, the acceleration state of a car corresponds to a set of parameters; for another example, the deceleration state of a car corresponds to a set of parameters.

[0044] Here, a motion carrier and a corresponding motion state are regarded as a task, and a task corresponds to a set of parameters. The target parameters of this step are a set of parameters.

[0045] Correspondingly, multiple groups of parameters corresponding to all motion states of a motion carrier constitute a parameter set of the motion carrier.

[0046] Optionally, in this step, a unified formula is used, with the three-dimensional space value and the target parameter as input, and the output result is obtained by calculation through the formula.

[0047] For example, the unified formula is:

[0048] Result t =w1*|f1+f2+f3|+w2*|f4+f5+f6|+w3*|f7+f8+f9|+b

[0049] In this formula, w1, w2, w3, and b are a set of parameters in the formula, such as target parameters, f1 to f9 are used to represent the input three-dimensional space values, and result t Used to represent the output result, the output result can be a numerical value, and the motion state of the motion carrier (such as the target carrier) is determined according to the numerical range to which the numerical value belongs and the corresponding relationship between the numerical range and the motion state.

[0050] The formula is applicable to each motion carrier and each motion state of each motion carrier, but the parameters in the formula need to be updated for different motion states of different motion carriers.

[0051] Thus, in the embodiment of the present application, when determining the motion state of the target carrier where the electronic device is located, the motion acceleration of the electronic device is first obtained, and then the motion acceleration is decomposed into various directions in combination with the different directions of the geographical environment, and then the motion state of the target carrier is determined according to the three-dimensional space values ​​in various directions in combination with the target parameters corresponding to the target carrier. It can be seen that in the embodiment of the present application, the motion state of the carrier can be determined only by obtaining the corresponding parameters according to different carriers, so that the method for detecting the motion state of the moving carrier has universality; on this basis, the motion acceleration of the electronic device is decomposed into the direction of the geographical environment for calculation, so that the motion of the electronic device relative to the geographical environment can be obtained, eliminating some interference factors, and thus the accuracy of determining the motion state is high.

[0052] In the process of the motion state determination method of another embodiment of the present application, step 120 includes:

[0053] Sub-step A1: Based on the posture information of the electronic device, a first coordinate system is established, where the first coordinate system includes a first coordinate axis, a second coordinate axis and a third coordinate axis that are perpendicular to each other, and the first coordinate axis is perpendicular to the screen of the electronic device.

[0054] See also Figure 2Based on the posture information of the electronic device 201, a first coordinate system is established, wherein any point on the screen of the electronic device 201 is taken as the coordinate origin O1, the direction perpendicular to the screen is the Z axis (first coordinate axis), the direction parallel to the short side of the screen is the X axis (second coordinate axis), and the direction parallel to the long side of the screen is the Y axis (third coordinate axis).

[0055] Sub-step A2: respectively obtain a first spatial value of the motion acceleration on the first coordinate axis, a second spatial value on the second coordinate axis, and a third spatial value on the third coordinate axis.

[0056] See also Figure 3 , which illustrates the length of each coordinate axis on the first coordinate system 301, and is used to represent the spatial value of the motion acceleration on each coordinate axis.

[0057] Sub-step A3: respectively obtain first subspace values ​​of the first spatial value in different directions in the geographical environment, second subspace values ​​of the second spatial value in different directions in the geographical environment, and third subspace values ​​of the third spatial value in different directions in the geographical environment.

[0058] Among them, the motion acceleration is firstly decomposed based on the posture of the electronic device to determine the sub-accelerations in different directions, and then the sub-accelerations are decomposed with reference to different directions in the geographical environment.

[0059] In this embodiment, the motion acceleration is decomposed with the posture of the electronic device as a reference to obtain various spatial values, and then each spatial value is decomposed in different directions in the geographical environment to obtain sub-space values ​​of different spatial values ​​in various geographical environment directions, thereby converting the motion acceleration of the electronic device into the geographical environment, and determining the motion state of the electronic device relative to the geographical environment, and then accurately determining the motion state of the moving carrier in which the electronic device is located. Compared with directly decomposing the motion acceleration in the geographical environment direction, this embodiment can achieve a more refined decomposition effect to ensure the high accuracy of the state determination in this embodiment.

[0060] In the process of the motion state determination method of another embodiment of the present application, step A3 includes:

[0061] Sub-step B1: Based on the coordinate origin of the first coordinate system, establish a second coordinate system, the second coordinate system includes a fourth coordinate axis, a fifth coordinate axis and a sixth coordinate axis that are perpendicular to each other, the fourth coordinate axis is parallel to the gravity direction in the geographical environment, the fifth coordinate axis is parallel to the north-south direction in the geographical environment, and the sixth coordinate axis is parallel to the east-west direction in the geographical environment.

[0062] In this step, the second coordinate system is established by combining the magnetic field directions in the geographical environment, namely the four directions of east, south, west and north, and the gravity direction in the geographical environment.

[0063] Among them, see Figure 4 In the second coordinate system 401, the fourth coordinate axis (G axis) is parallel to the direction of gravity in the geographical environment, and the positive direction may be upward away from the center of the earth. The fifth coordinate axis (N axis) is parallel to the north-south direction in the geographical environment, and the positive direction may be pointing to the north. The sixth coordinate axis (E axis) is parallel to the east-west direction in the geographical environment, and the positive direction may be pointing to the east.

[0064] In this step, in order to decompose the various spatial values ​​of the motion acceleration in the first coordinate system into the second coordinate system, the coordinate origins of the first coordinate system and the second coordinate system may be made to coincide with each other.

[0065] Sub-step B2: respectively obtain the projection of the first spatial value on the fourth coordinate axis, the projection of the first spatial value on the fifth coordinate axis, the projection of the first spatial value on the sixth coordinate axis, the projection of the second spatial value on the fourth coordinate axis, the projection of the second spatial value on the fifth coordinate axis, the projection of the second spatial value on the sixth coordinate axis, the projection of the third spatial value on the fourth coordinate axis, the projection of the third spatial value on the fifth coordinate axis, and the projection of the third spatial value on the sixth coordinate axis.

[0066] See also Figure 4 Taking the E axis as an example, the projection of the first spatial value (the spatial value of the motion acceleration on the Z axis) on the E axis is Z E The projection of the second spatial value (the spatial value of the motion acceleration on the X-axis) on the E-axis is X E The projection of the third spatial value (the spatial value of the motion acceleration on the Y axis) on the E axis is Y E By analogy, we can get: the projection of the first spatial value (the spatial value of the motion acceleration on the Z axis) on the N axis is Z N The projection of the second spatial value (the spatial value of the motion acceleration on the X axis) on the N axis is X N The projection of the third spatial value (the spatial value of the motion acceleration on the Y axis) on the N axis is Y N The projection of the first spatial value (the spatial value of the motion acceleration on the Z axis) on the G axis is Z G The projection of the second spatial value (the spatial value of the motion acceleration on the X axis) on the G axis is X G The projection of the third spatial value (the spatial value of the motion acceleration on the Y axis) on the G axis is Y G .

[0067] Among them, the first subspace value includes Z E , Z N , Z G ; The second subspace value includes X E , X N , XG ; The third subspace value includes Y E , Y N , Y G .

[0068] Optionally, nine eigenfactors are constructed to represent the nine projections.

[0069] For example, f1 is used to represent X E , f2 is used to represent Y E , f3 is used to represent Z E 、f4 is used to represent X N , f5 is used to represent Y N 、f6 is used to represent Z N 、f7 is used to represent X G 、f8 is used to represent Y G 、f9 is used to represent Z G .

[0070] Among them, (f1+f2+f3) is used to represent the spatial value of motion acceleration on the E axis, (f4+f5+f6) is used to represent the spatial value of motion acceleration on the N axis, and (f7+f8+f9) is used to represent the spatial value of motion acceleration on the G axis.

[0071] In this embodiment, the values ​​on the first coordinate system established based on the electronic device are converted to the second coordinate system established based on the geographical environment, so that the final decomposed motion acceleration can be reflected in different directions of the geographical environment. The acquired motion acceleration is integrated with environmental factors such as gravity and magnetic field, so that the violent and regular motion state of the motion carrier during the motion process can be accurately determined, and then the travel scenario of the user can be accurately identified.

[0072] In the process of the motion state determination method of another embodiment of the present application, step 120 includes:

[0073] Sub-step C1: Obtain the gravity acceleration value and magnetic field sensor value of the electronic device.

[0074] In this step, the gravity acceleration value is: Gravity = [g1, g2, g3], wherein g1, g2, g3 are used to represent the spatial values ​​of the gravity acceleration value in the three directions of XYZ in the first coordinate system.

[0075] The magnetic field sensor value is: Magnetic = [m1, m2, m3], wherein m1, m2, and m3 are respectively used to represent the spatial values ​​of the magnetic field sensor value in the three directions of XYZ in the first coordinate system.

[0076] Sub-step C2: Obtain three-dimensional spatial values ​​of motion acceleration in different directions in the geographical environment according to the gravity acceleration value and the magnetic field sensor value of the electronic device.

[0077] In this step, the correlation factors between the magnetic field and the gravity field are obtained according to the gravity acceleration value and the magnetic field sensor value: r1=m2g3-m3g2, r2=m3g1-m1g3, r3=m1g2-m2g1.

[0078] Furthermore, the normalization factor is calculated and we get:

[0079] In this step, the motion acceleration is: LinearAcceleration = [a1, a2, a3], where 1, 2, and 3 are used to represent the three directions of XYZ in the first coordinate system, respectively.

[0080] Furthermore, combining the nine characteristic factors in the previous embodiment, we obtain:

[0081] f1=a1*r1*r nom ;

[0082] f2=a2*r2*r nom ;

[0083] f3=a3*r3*r nom ;

[0084] f4=a1*g1*g nom ;

[0085] f5=a2*g2*g nom ;

[0086] f6=a3*g3*g nom ;

[0087] f7=a1*(f5*f3-f6*f2);

[0088] f8=a2*(f6*f1-f4*f3);

[0089] f9=a3*(f4*f2-f5*f1).

[0090] In this embodiment, a method for decomposing motion acceleration according to the relationship between the gravity field and the magnetic field is provided. This embodiment establishes a coordinate system based on the gravity direction, east-west direction, and north-south direction in the geographical environment, and combines the relationship between the gravity field and the magnetic field to ensure the accuracy of the motion acceleration decomposition, so as to ensure the accuracy of the subsequent determination of the motion state.

[0091] In the process of the motion state determination method of another embodiment of the present application, before step 130, the method further includes:

[0092] Step D1: Determine the target parameter corresponding to the target carrier according to the motion data of the target carrier and the output second target value.

[0093] Based on the above embodiments, it can be known that the unified formula for determining the motion state is:

[0094] Result t =w1*|f1+f2+f3|+w2*|f4+f5+f6|+w3*|f7+f8+f9|+b

[0095] Among them, w1, w2, w3, and b are parameters in the formula, and a set of w1, w2, w3, and b is the parameters corresponding to a task.

[0096] Therefore, this embodiment needs to predetermine the parameters corresponding to the task for the task.

[0097] Optionally, taking the target carrier as an example, a target parameter corresponding to the target motion state of the target carrier is determined.

[0098] First, ensure that the electronic device is located in the target carrier, control the target carrier to move to enter the target motion state, obtain the motion acceleration while the target carrier is in the target motion state, and decompose it to obtain the corresponding nine characteristic factors, input the nine characteristic factors into a unified formula, and preset an output result, and finally obtain the target parameters in the formula. Among them, multiple sets of data can be input while the target carrier is in the target motion state to adjust the target parameters to obtain the final target parameters.

[0099] Among them, the preset output result is the second target value.

[0100] For example, the second target value may be a value greater than a threshold, such as greater than one. Specifically, the second target value is "1.5".

[0101] The motion data in this step includes motion acceleration.

[0102] Optionally, since f1 to f9 can be calculated, they are assumed to be known quantities by default, so that the unified formula can be simplified to Formula 1:

[0103] Result t =w1*x a +w2*x b +w3*x c +b

[0104] In formula 1, x a 、xb 、x c Both are used to represent simplified known quantities.

[0105] Correspondingly, in the process of determining the target parameters, several samples are obtained, as shown in Table 1:

[0106]

[0107]

[0108] Table 1

[0109] Optionally, in the process of determining the target parameters, the square distance of each sample may be calculated and the sum may be taken, as shown in Formula 2:

[0110]

[0111] In formula 2, M being zero is an ideal state, that is, when M is zero, the determined target parameters are optimal. However, considering interference factors such as noise, M is almost impossible to be zero. Therefore, it is necessary to find the minimum value of M, that is, the smaller M is, the more accurate the target parameters are.

[0112] Optionally, the minimum value of M is solved by using the extremum of a multivariate function, wherein the extremum can be obtained only when the partial derivative is equal to zero, so see the following partial derivative equation:

[0113]

[0114]

[0115]

[0116]

[0117] Furthermore, by combining the above partial derivative equations, the optimal target parameters can be obtained.

[0118] For example, based on the task corresponding to the take-off state of the aircraft, it is determined that (w1, w2, w3, b) corresponds to (0.01, 0.8, 0.008, -0.125).

[0119] In this embodiment, a method for determining target parameters is provided, and the target parameters can be solved by only a small number of groups of original motion data, thereby making the method for determining target parameters relatively simple and universal for different motion carriers.

[0120] In the process of the motion state determination method of another embodiment of the present application, step 130 includes:

[0121] Sub-step E1: output a first target value according to the three-dimensional space values ​​of the motion acceleration in different directions in the geographical environment and the target parameters corresponding to the target carrier where the electronic device is located.

[0122] Sub-step E2: Determine the motion state of the target carrier according to the first target value.

[0123] In this embodiment, based on the motion acceleration and related data corresponding to time t, f1 to f9 can be obtained.

[0124] For example, at time t, the acquired motion acceleration and related data are:

[0125] Gravity=[-0.911,7.428,6.337];

[0126] Magnetic=[36.12,-7.2,-16.26];

[0127] LinearAcceleration=[-2.807,-3.491,4.980].

[0128] Further, we get:

[0129] f1 = 0.5496623573047321;

[0130] f2 = 2.254748110867247;

[0131] f3 = 3.8658867186836443;

[0132] f4 = 0.27343499384301195;

[0133] f5 = 2.5571499274418077;

[0134] f6=3.5339786008565772;

[0135] f7=48.53164023810418,;

[0136] f8 = 10.459337710514484;

[0137] f9=4.1472040748411905.

[0138] Further, according to f1 to f9, the first target value is output by a unified formula to obtain result t =1.369.

[0139] Optionally, based on the first target value and in combination with preset conditions, it is determined whether the target carrier is in a certain motion state.

[0140] Optionally, in combination with the previous embodiment, the preset condition is related to the second target value, for example, the preset condition is: greater than 1. Correspondingly, when the first target value is greater than 1, it is determined that the target carrier is in a certain motion state, such as the target motion state in the previous embodiment.

[0141] For example, if 1.369>1, it is determined that the target carrier is in a certain motion state. Alternatively, if the first target value is less than or equal to 1, it is determined that the target carrier is not in the motion state.

[0142] Optionally, based on the above method, at least one first target value may be output to determine the motion state of the target carrier according to the at least one first target value.

[0143] In this embodiment, the target parameters and the data acquired in real time are input into a unified formula, and a first target value is output to determine the motion state of the target carrier according to the first target value.

[0144] In the process of the motion state determination method of another embodiment of the present application, step E1 includes:

[0145] Sub-step F1: output at least two first target values ​​within a preset time period.

[0146] Sub-step F2: Determine the motion state of the target carrier according to at least two first target values.

[0147] Based on the previous embodiment, a method for outputting an instantaneous result at a certain moment is proposed. However, in actual applications, the instantaneous result at a certain moment can only reflect the motion state for a moment, and the motion state of the motion carrier usually lasts for a period of time. Therefore, in order to accurately determine the motion state of the target carrier, at least two first target values ​​can be output continuously.

[0148] For example, a preset time length t0 is set and a period T is set, then within t0, t0 / T first target values ​​need to be output.

[0149] Further, based on the at least two output first target values, a minimum first target value is determined, so as to determine the motion state of the target carrier according to the minimum first target value.

[0150] The corresponding model formula is:

[0151]

[0152] For example, within 1 second, the ten first target values ​​outputted are: [1.369, 1.546, 2.014, 1.258, 1.354, 1.689, 1.952, 2.235, 1.478, 1.112], then model=1.112, 1.112>1, thereby determining that the target carrier is in a certain motion state.

[0153] In this embodiment, the output results of a period of time are used as a reference to determine the motion state of the target carrier, thereby avoiding determining the motion state by referring only to the output results at a certain moment, and further avoiding determining the wrong motion state due to the randomness of the results, thereby improving the accuracy of this embodiment for determining the motion state of the moving carrier.

[0154] In summary, the purpose of this application is to provide a method for determining the motion state of the carrier that the user is riding based on an electronic device, so as to identify the travel scene in which the user is located. For example, this method is applicable to the acceleration and deceleration process when riding in a car, the lifting process when riding in an elevator, the starting and stopping process when riding a high-speed rail, and the take-off and landing process when riding an airplane. This application constructs nine characteristic factors from the original sensor data in the electronic device through a specific calculation method, and combines the characteristic factors to construct a unified formula for determining the motion state of the moving carrier. When applied to different moving carriers, only the parameters of the formula need to be fine-tuned. It can be seen that compared with the prior art, this application does not need to collect a large amount of data for specific scenarios, and uniformly utilizes sensor data, and has a unified calculation formula, which has high versatility.

[0155] The motion state determination method provided in the embodiment of the present application can be executed by a motion state determination device. In the embodiment of the present application, the motion state determination device provided in the embodiment of the present application is described by taking the motion state determination device executing the motion state determination method as an example.

[0156] Figure 5 A block diagram of a motion state determination device according to another embodiment of the present application is shown, the device comprising:

[0157] A first acquisition module 10 is used to acquire the motion acceleration of the electronic device;

[0158] The second acquisition module 20 is used to obtain the three-dimensional space values ​​of the motion acceleration in different directions in the geographical environment;

[0159] The first determination module 30 is used to determine the motion state of the target carrier according to the three-dimensional space values ​​of the motion acceleration in different directions in the geographical environment and the target parameters corresponding to the target carrier where the electronic device is located.

[0160] Thus, in the embodiment of the present application, when determining the motion state of the target carrier where the electronic device is located, the motion acceleration of the electronic device is first obtained, and then the motion acceleration is decomposed into various directions in combination with the different directions of the geographical environment, and then the motion state of the target carrier is determined according to the three-dimensional space values ​​in various directions in combination with the target parameters corresponding to the target carrier. It can be seen that in the embodiment of the present application, the motion state of the carrier can be determined only by obtaining the corresponding parameters according to different carriers, so that the method for detecting the motion state of the moving carrier has universality; on this basis, the motion acceleration of the electronic device is decomposed into the direction of the geographical environment for calculation, so that the motion of the electronic device relative to the geographical environment can be obtained, eliminating some interference factors, and thus the accuracy of determining the motion state is high.

[0161] Optionally, the second acquisition module 20 includes:

[0162] An establishing unit, configured to establish a first coordinate system based on the posture information of the electronic device, wherein the first coordinate system includes a first coordinate axis, a second coordinate axis, and a third coordinate axis which are perpendicular to each other, and the first coordinate axis is perpendicular to the screen of the electronic device;

[0163] A first acquisition unit, used to respectively acquire a first spatial value of the motion acceleration on the first coordinate axis, a second spatial value on the second coordinate axis, and a third spatial value on the third coordinate axis;

[0164] The second acquisition unit is used to respectively acquire the first subspace value of the first spatial value in different directions in the geographical environment, the second subspace value of the second spatial value in different directions in the geographical environment, and the third subspace value of the third spatial value in different directions in the geographical environment.

[0165] Optionally, the second acquisition unit includes:

[0166] Establish a subunit, for establishing a second coordinate system based on the coordinate origin of the first coordinate system, the second coordinate system including a fourth coordinate axis, a fifth coordinate axis and a sixth coordinate axis which are perpendicular to each other, the fourth coordinate axis is parallel to the gravity direction in the geographical environment, the fifth coordinate axis is parallel to the north-south direction in the geographical environment, and the sixth coordinate axis is parallel to the east-west direction in the geographical environment;

[0167] An acquisition subunit is used to respectively acquire the projection of the first spatial value on the fourth coordinate axis, the projection of the first spatial value on the fifth coordinate axis, the projection of the first spatial value on the sixth coordinate axis, the projection of the second spatial value on the fourth coordinate axis, the projection of the second spatial value on the fifth coordinate axis, the projection of the second spatial value on the sixth coordinate axis, the projection of the third spatial value on the fourth coordinate axis, the projection of the third spatial value on the fifth coordinate axis, and the projection of the third spatial value on the sixth coordinate axis.

[0168] Optionally, the second acquisition module 20 includes:

[0169] A third acquisition unit is used to acquire a gravity acceleration value and a magnetic field sensor value of the electronic device;

[0170] The fourth acquisition unit is used to acquire the three-dimensional space values ​​of motion acceleration in different directions in the geographical environment according to the gravity acceleration value and the magnetic field sensor value of the electronic device.

[0171] Optionally, the first determining module 30 includes:

[0172] An output unit, configured to output a first target value according to the three-dimensional spatial values ​​of the motion acceleration in different directions in the geographical environment and a target parameter corresponding to the target carrier where the electronic device is located;

[0173] The determination unit is used to determine the motion state of the target carrier according to the first target value.

[0174] Optionally, the device further comprises:

[0175] The second determination module is used to determine the target parameter corresponding to the target carrier according to the motion data of the target carrier in combination with the output second target value.

[0176] The motion state determination device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0177] The motion state determination device of the embodiment of the present application may be a device having an action system. The action system may be an Android action system, an iOS action system, or other possible action systems, which are not specifically limited in the embodiment of the present application.

[0178] The motion state determination device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0179] Alternatively, if Figure 6 As shown, an embodiment of the present application also provides an electronic device 100, including a processor 101, a memory 102, and a program or instruction stored in the memory 102 and executable on the processor 101. When the program or instruction is executed by the processor 101, each step of any of the above-mentioned motion state determination method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0180] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0181] Figure 7 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0182] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0183] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0184] Among them, the processor 1010 is used to obtain the motion acceleration of the electronic device; obtain the three-dimensional spatial values ​​of the motion acceleration in different directions in the geographical environment; and determine the motion state of the target carrier according to the three-dimensional spatial values ​​of the motion acceleration in different directions in the geographical environment and the target parameters corresponding to the target carrier where the electronic device is located.

[0185] Thus, in the embodiment of the present application, when determining the motion state of the target carrier where the electronic device is located, the motion acceleration of the electronic device is first obtained, and then the motion acceleration is decomposed into various directions in combination with the different directions of the geographical environment, and then the motion state of the target carrier is determined according to the three-dimensional space values ​​in various directions in combination with the target parameters corresponding to the target carrier. It can be seen that in the embodiment of the present application, the motion state of the carrier can be determined only by obtaining the corresponding parameters according to different carriers, so that the method for detecting the motion state of the moving carrier has universality; on this basis, the motion acceleration of the electronic device is decomposed into the direction of the geographical environment for calculation, so that the motion of the electronic device relative to the geographical environment can be obtained, eliminating some interference factors, and thus the accuracy of determining the motion state is high.

[0186] Optionally, the processor 1010 is further used to establish a first coordinate system based on the posture information of the electronic device, the first coordinate system including a first coordinate axis, a second coordinate axis and a third coordinate axis that are perpendicular to each other, the first coordinate axis being perpendicular to the screen of the electronic device; respectively obtaining a first spatial value of the motion acceleration on the first coordinate axis, a second spatial value on the second coordinate axis, and a third spatial value on the third coordinate axis; respectively obtaining a first subspace value of the first spatial value in different directions in the geographical environment, a second subspace value of the second spatial value in different directions in the geographical environment, and a third subspace value of the third spatial value in different directions in the geographical environment.

[0187] Optionally, the processor 1010 is also used to establish a second coordinate system based on the coordinate origin of the first coordinate system, the second coordinate system including a fourth coordinate axis, a fifth coordinate axis and a sixth coordinate axis that are perpendicular to each other, the fourth coordinate axis is parallel to the gravity direction in the geographical environment, the fifth coordinate axis is parallel to the north-south direction in the geographical environment, and the sixth coordinate axis is parallel to the east-west direction in the geographical environment; respectively obtain the projection of the first spatial value on the fourth coordinate axis, the projection of the first spatial value on the fifth coordinate axis, the projection of the first spatial value on the sixth coordinate axis, the projection of the second spatial value on the fourth coordinate axis, the projection of the second spatial value on the fifth coordinate axis, the projection of the second spatial value on the sixth coordinate axis, the projection of the third spatial value on the fourth coordinate axis, the projection of the third spatial value on the fifth coordinate axis, and the projection of the third spatial value on the sixth coordinate axis.

[0188] Optionally, the processor 1010 is further used to obtain the gravity acceleration value and the magnetic field sensor value of the electronic device; and obtain the three-dimensional space value of the motion acceleration in different directions in the geographical environment according to the gravity acceleration value and the magnetic field sensor value of the electronic device.

[0189] Optionally, the processor 1010 is further used to output a first target value based on the three-dimensional spatial values ​​of the motion acceleration in different directions in the geographical environment and a target parameter corresponding to the target carrier in which the electronic device is located; and determine the motion state of the target carrier based on the first target value.

[0190] Optionally, the processor 1010 is further configured to determine the target parameter corresponding to the target carrier according to the motion data of the target carrier in combination with the output second target value.

[0191] In summary, the purpose of this application is to provide a method for determining the motion state of the carrier that the user is riding based on an electronic device, so as to identify the travel scene in which the user is located. For example, this method is applicable to the acceleration and deceleration process when riding in a car, the lifting process when riding in an elevator, the starting and stopping process when riding a high-speed rail, and the take-off and landing process when riding an airplane. This application constructs nine characteristic factors from the original sensor data in the electronic device through a specific calculation method, and combines the characteristic factors to construct a unified formula for determining the motion state of the moving carrier. When applied to different moving carriers, only the parameters of the formula need to be fine-tuned. It can be seen that compared with the prior art, this application does not need to collect a large amount of data for specific scenarios, and uniformly utilizes sensor data, and has a unified calculation formula, which has high versatility.

[0192] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video image obtained by the image capture device (such as a camera) in the video image capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and at least one of other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and an action rod, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and action systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the action system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.

[0193] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0194] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.

[0195] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned motion state determination method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0196] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0197] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned motion state determination method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0198] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0199] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned motion state determination method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0200] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0201] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0202] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for determining a motion state, characterized in that: The method comprises: Obtain the motion acceleration of the electronic device; Obtaining three-dimensional spatial values ​​of the motion acceleration in different directions in a geographical environment; Determine the motion state of the target carrier according to the three-dimensional spatial values ​​of the motion acceleration in different directions in the geographical environment and the target parameters corresponding to the target carrier where the electronic device is located; The obtaining of the three-dimensional space values ​​of the motion acceleration in different directions in the geographical environment includes: Based on the posture information of the electronic device, a first coordinate system is established, wherein the first coordinate system includes a first coordinate axis, a second coordinate axis, and a third coordinate axis which are perpendicular to each other, and the first coordinate axis is perpendicular to the screen of the electronic device; Respectively acquiring a first spatial value of the motion acceleration on the first coordinate axis, a second spatial value on the second coordinate axis, and a third spatial value on the third coordinate axis; The first subspace values ​​of the first spatial value in different directions in the geographical environment, the second subspace values ​​of the second spatial value in different directions in the geographical environment, and the third subspace values ​​of the third spatial value in different directions in the geographical environment are respectively obtained.

2. The method according to claim 1, characterized in that The step of respectively obtaining first subspace values ​​of the first spatial value in different directions in the geographical environment, second subspace values ​​of the second spatial value in different directions in the geographical environment, and third subspace values ​​of the third spatial value in different directions in the geographical environment includes: Based on the coordinate origin of the first coordinate system, a second coordinate system is established, wherein the second coordinate system includes a fourth coordinate axis, a fifth coordinate axis and a sixth coordinate axis which are perpendicular to each other, wherein the fourth coordinate axis is parallel to the gravity direction in the geographical environment, the fifth coordinate axis is parallel to the north-south direction in the geographical environment, and the sixth coordinate axis is parallel to the east-west direction in the geographical environment; Respectively obtain the projection of the first spatial value on the fourth coordinate axis, the projection of the first spatial value on the fifth coordinate axis, the projection of the first spatial value on the sixth coordinate axis, the projection of the second spatial value on the fourth coordinate axis, the projection of the second spatial value on the fifth coordinate axis, the projection of the second spatial value on the sixth coordinate axis, the projection of the third spatial value on the fourth coordinate axis, the projection of the third spatial value on the fifth coordinate axis, and the projection of the third spatial value on the sixth coordinate axis.

3. The method according to claim 1, characterized in that The obtaining of the three-dimensional space values ​​of the motion acceleration in different directions in the geographical environment includes: Acquiring a gravity acceleration value and a magnetic field sensor value of the electronic device; According to the gravity acceleration value and the magnetic field sensor value of the electronic device, the three-dimensional space values ​​of the motion acceleration in different directions in the geographical environment are obtained.

4. The method according to claim 1, characterized in that: Determining the motion state of the target carrier according to the three-dimensional space values ​​of the motion acceleration in different directions in the geographical environment and the target parameters corresponding to the target carrier where the electronic device is located includes: Outputting a first target value according to the three-dimensional spatial values ​​of the motion acceleration in different directions in the geographical environment and a target parameter corresponding to the target carrier where the electronic device is located; The motion state of the target carrier is determined according to the first target value.

5. The method according to claim 1, characterized in that Before determining the motion state of the target carrier according to the three-dimensional spatial values ​​of the motion acceleration in different directions in the geographical environment and the target parameters corresponding to the target carrier where the electronic device is located, the method further includes: The target parameter corresponding to the target carrier is determined according to the motion data of the target carrier in combination with the output second target value.

6. A motion state determination device, characterized in that: The device comprises: A first acquisition module, used to acquire the motion acceleration of the electronic device; A second acquisition module is used to acquire the three-dimensional space values ​​of the motion acceleration in different directions in the geographical environment; A first determination module is used to determine the motion state of the target carrier according to the three-dimensional space values ​​of the motion acceleration in different directions in the geographical environment and the target parameters corresponding to the target carrier where the electronic device is located; The second acquisition module includes: An establishing unit, configured to establish a first coordinate system based on the posture information of the electronic device, wherein the first coordinate system includes a first coordinate axis, a second coordinate axis, and a third coordinate axis which are perpendicular to each other, and the first coordinate axis is perpendicular to the screen of the electronic device; a first acquisition unit, configured to respectively acquire a first spatial value of the motion acceleration on the first coordinate axis, a second spatial value on the second coordinate axis, and a third spatial value on the third coordinate axis; The second acquisition unit is used to respectively acquire the first subspace value of the first spatial value in different directions in the geographical environment, the second subspace value of the second spatial value in different directions in the geographical environment, and the third subspace value of the third spatial value in different directions in the geographical environment.

7. The device according to claim 6, characterized in that The second acquisition unit includes: An establishment subunit is used to establish a second coordinate system based on the coordinate origin of the first coordinate system, wherein the second coordinate system includes a fourth coordinate axis, a fifth coordinate axis and a sixth coordinate axis which are perpendicular to each other, wherein the fourth coordinate axis is parallel to the gravity direction in the geographical environment, the fifth coordinate axis is parallel to the north-south direction in the geographical environment, and the sixth coordinate axis is parallel to the east-west direction in the geographical environment; An acquisition subunit is used to respectively acquire the projection of the first spatial value on the fourth coordinate axis, the projection of the first spatial value on the fifth coordinate axis, the projection of the first spatial value on the sixth coordinate axis, the projection of the second spatial value on the fourth coordinate axis, the projection of the second spatial value on the fifth coordinate axis, the projection of the second spatial value on the sixth coordinate axis, the projection of the third spatial value on the fourth coordinate axis, the projection of the third spatial value on the fifth coordinate axis, and the projection of the third spatial value on the sixth coordinate axis.

8. The device according to claim 6, characterized in that The second acquisition module includes: A third acquisition unit, used to acquire a gravity acceleration value and a magnetic field sensor value of the electronic device; The fourth acquisition unit is used to acquire the three-dimensional space value of the motion acceleration in different directions in the geographical environment according to the gravity acceleration value and the magnetic field sensor value of the electronic device.

9. The device according to claim 6, characterized in that The first determining module includes: an output unit, configured to output a first target value according to the three-dimensional spatial values ​​of the motion acceleration in different directions in the geographical environment and a target parameter corresponding to the target carrier where the electronic device is located; A determination unit is used to determine the motion state of the target carrier according to the first target value.

10. The device according to claim 6, characterized in that The device also includes: The second determination module is used to determine the target parameter corresponding to the target carrier according to the motion data of the target carrier in combination with the output second target value.

11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the motion state determination method according to any one of claims 1 to 5 are implemented.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the motion state determination method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Target tracking method, target tracking device and target tracking system

    CN106033612A

  • Robot state estimation method and device, computer equipment and storage medium

    CN108731664A

  • Subway running direction determination method and device, terminal and storage medium

    CN110972112A

  • Motion recognition method and device, motion evaluation method and device and, dumbbell

    CN112337043A

  • Road condition analysis method and device based on motion sensor, equipment and medium

    CN113793509A