Track output method, electronic equipment and storage medium

By obtaining and analyzing the user's sensor data, determining and output the user's target moving trajectory, solving the problem of direct connection between the trajectory caused by the lack of positioning data, and improved the user experience.

CN119383561APending Publication Date: 2025-01-28GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310923808.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-25
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

When electronic devices such as mobile phones or tablets are poor in the network or abnormally disconnected, the location data is missing, resulting in direct connection of the output moving trajectory, and the user cannot accurately understand the historical moving trajectory, which affects the user experience.

Method used

By obtaining the user's target historical data, including sensor data, the user's target movement trajectory is determined, and the trajectory is output to solve the problem of direct connection between trajectory caused by lack of positioning data.

Benefits of technology

Even in the case of lack of positioning data, the movement trajectory of the lack of lack of time period can be supplemented according to the sensor data, and the complete user movement trajectory can be output to improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119383561A_ABST
    Figure CN119383561A_ABST
Patent Text Reader

Abstract

The invention discloses a track output method, electronic equipment and a storage medium. The method comprises the steps of obtaining target historical data of a user, wherein the target historical data at least comprises sensor data of the user in a first historical time period; determining a target moving track corresponding to the user according to the target historical data; and outputting the target moving track. Even if the positioning data is missing due to the condition of poor network or abnormal network disconnection, the moving track corresponding to the time period of the missing positioning data can be supplemented again, and the moving track of the user is output, so that the problem of track direct connection is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of terminal technology, and in particular to a trajectory output method, an electronic device, and a storage medium. Background Art

[0002] At present, electronic devices such as mobile phones and tablets have more and more application functions. For example, electronic devices can obtain the positioning data of the user's location and output the user's movement trajectory based on the obtained positioning data. Users can check the historical movement trajectory through electronic devices such as mobile phones and tablets. In the related art, since the movement trajectory is generated based on the acquired positioning data, when encountering a poor network or abnormal network disconnection, the positioning data will be missing, causing the movement trajectory of the missing part of the output positioning data to be directly connected, so that the user cannot know the historical movement trajectory, which causes a bad experience for the user. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a trajectory output method, an electronic device, and a storage medium. Even if the positioning data is missing due to poor network or abnormal network disconnection, the movement trajectory corresponding to the time period where the positioning data is missing can be replenished and the user's movement trajectory can be output, solving the problem of direct trajectory connection. A trajectory output method, an electronic device, and a storage medium provided by an embodiment of the present invention are implemented as follows:

[0004] A trajectory output method provided by an embodiment of the present invention includes: acquiring target history data of a user, the target history data at least including sensor data of the user in a first historical time period; determining a target movement trajectory corresponding to the user according to the target history data; and outputting the target movement trajectory.

[0005] In the above technical solution, a movement trajectory can be drawn according to the user's historical data, and the movement trajectory can be output to the user to improve the user experience.

[0006] In an embodiment of the present invention, the target movement trajectory is a first movement trajectory determined according to the sensor data.

[0007] In the above technical solution, the user's movement trajectory can be determined based on the sensor data, which can solve the problem of direct connection in the movement trajectory drawn when the positioning data is missing in the prior art. Even if the positioning data is missing, the user's movement trajectory can be determined based on the sensor data, which does not affect the user's review of the historical movement trajectory.

[0008] In an embodiment of the present invention, the target historical data further includes positioning data of the user in a second historical time period, and the target movement trajectory is a first movement trajectory determined according to the sensor data and a second movement trajectory determined according to the positioning data.

[0009] In the above technical solution, the movement trajectory of the user in the entire historical time period can be generated, and the movement trajectory in the entire historical time period includes the movement trajectory drawn according to the sensor data and the movement trajectory drawn according to the positioning data.

[0010] In an embodiment of the present invention, the target movement trajectory is the first movement trajectory, and determining the target movement trajectory corresponding to the user based on the target historical data includes: determining the target travel mode of the user based on the sensor data; determining the first movement trajectory from a map based on the target travel mode, the first movement trajectory being a partial trajectory or a full trajectory corresponding to one of the routes between the starting position and the end position of the user in a target historical time period, and the target historical time period includes the first historical time period.

[0011] In the above technical solution, the target travel mode is determined based on the sensor data, and then the user's target movement trajectory is further determined in combination with the map, thereby improving the efficiency of outputting the target movement trajectory and also improving the accuracy of determining the target movement trajectory.

[0012] In an embodiment of the present invention, the first historical time period is a time period in which the positioning data of the user is missing, or the first historical time period is a first sub-historical time period before the positioning data of the user is missing and a second sub-historical time period after the positioning data of the user is restored.

[0013] In the above technical solution, even if the sensor data is lost during the time period when the positioning data is missing, the movement trajectory of the user corresponding to the time period when the positioning data is missing can be determined based on the sensor data of the historical time period before and after the positioning data is missing, thereby reducing the impact of the sensor data loss on the movement trajectory output.

[0014] In an embodiment of the present invention, determining the first movement trajectory from a map according to the target travel mode includes: obtaining the historical movement duration of the user during the time period in which positioning data is missing; and determining the first movement trajectory from a map according to the historical movement duration and the target travel mode.

[0015] In the above technical solution, the user's movement trajectory is determined by combining the user's historical movement duration and target travel mode during the time period when the positioning data is missing, which can ensure the authenticity and integrity of the movement trajectory and improve the accuracy of determining the movement trajectory.

[0016] In an embodiment of the present invention, determining the first movement trajectory from a map based on the target travel mode includes: obtaining the historical movement duration of the user during a time period in which positioning data is missing and the personalized data of the user, the personalized data including at least one of the historical travel data of the user and the travel habits of the user; determining the first movement trajectory from a map based on the historical movement duration, the personalized data and the target travel mode.

[0017] In the above technical solution, when the user's target location is a familiar place, the user's movement trajectory can be determined by combining at least one of the user's historical travel data and travel habits during the time period when the positioning data is missing, as well as the determined target travel mode and historical movement duration, thereby further ensuring the authenticity and integrity of the movement trajectory, being more in line with the user's travel habits, and improving the accuracy of determining the movement trajectory.

[0018] In an embodiment of the present invention, determining the target travel mode of the user based on the sensor data includes: determining an initial travel mode corresponding to the sensor data; determining the historical movement duration of the user during a time period in which positioning data is missing; and verifying the initial travel mode based on the historical movement duration, and determining the initial travel mode as the target travel mode if the verification passes.

[0019] In the above technical solution, the determined initial travel mode can be verified in combination with the historical movement duration of the user during the time period when the positioning data is missing, thereby improving the accuracy of the travel mode judgment.

[0020] In an embodiment of the present invention, determining the historical movement duration of the user during the time period in which the positioning data is missing includes: determining the total time duration in which the positioning data is missing based on the system time; obtaining the duration of the user's stay between the start and end positions corresponding to the missing positioning data; obtaining the duration of the user's repeated movement between the start and end positions, the repeated movement duration being the duration of the user's repeated movement on the same road section; and determining the historical movement duration based on the total duration, the stay duration, and the repeated movement duration.

[0021] In the above technical solution, it can be avoided that the accuracy of the historical movement duration of the user during the period when the positioning data is missing is affected by the user's stay, repeated movement, etc. during the period when the positioning data is missing, thereby improving the accuracy of the historical movement duration obtained.

[0022] In an embodiment of the present invention, the target movement trajectory is a first movement trajectory determined according to the sensor data and a second movement trajectory determined according to the positioning data, and outputting the target movement trajectory includes: correcting the second movement trajectory according to the first movement trajectory to obtain a corrected movement trajectory; and outputting the corrected movement trajectory.

[0023] In the above technical solution, the direct connection trajectory corresponding to the time period in which the positioning data is missing in the movement trajectory of the user in the entire historical time period can be corrected, and the corrected movement trajectory of the entire historical time period can be output.

[0024] In an embodiment of the present invention, outputting the corrected moving trajectory includes: outputting identification information of the travel mode corresponding to each segment of the moving trajectory on the corrected moving trajectory in sequence according to a preset moving speed and a moving direction of the corrected moving trajectory, wherein the identification information is a preset pattern or a preset animation.

[0025] In the above technical solution, the movement trajectory of the user in the entire historical time period can be marked, which is convenient for the user to view the user's travel mode and other information in the historical movement trajectory, thereby improving the user experience.

[0026] An electronic device provided by an embodiment of the present invention includes: an acquisition module, used to acquire a user's target history data, the target history data at least including sensor data of the user within a first historical time period; a determination module, used to determine a target movement trajectory corresponding to the user based on the target history data; and an output module, used to output the target movement trajectory.

[0027] An electronic device provided by an embodiment of the present invention includes: a memory storing executable program code; and a processor coupled to the memory; the processor calls the executable program code stored in the memory to execute any one of the trajectory output methods in the embodiments of the present invention.

[0028] A computer-readable storage medium provided by an embodiment of the present invention includes: computer instructions are stored on the computer-readable storage medium, and when the computer instructions are executed by a processor, any one of the trajectory output methods in the embodiments of the present invention is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0030] Figure 1 is a schematic diagram of a moving trajectory during a period of missing positioning data provided by an embodiment of the present invention;

[0031] Figure 2 is a flow chart of a trajectory output method provided by an embodiment of the present invention;

[0032] Figure 3 is a schematic diagram of a moving trajectory outputted by a trajectory output method provided by an embodiment of the present invention;

[0033] Figure 4 is a schematic diagram of a moving trajectory during a period of missing positioning data outputted by a trajectory output method provided by an embodiment of the present invention;

[0034] Figure 5 is a flowchart of another example of a trajectory output method provided by an embodiment of the present invention;

[0035] Figure 6 is a schematic diagram of at least one moving track obtained according to map data provided by an embodiment of the present invention;

[0036] Figure 7 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention;

[0037] Figure 8 This is another structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.

[0040] In the following description, reference to "one embodiment" or "an embodiment" or "some embodiments" means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present invention. Therefore, "in one embodiment" or "in an embodiment" or "some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention. The above-mentioned multiple embodiments are not necessarily multiple independent embodiments. Dividing into multiple embodiments is only used to highlight the different technical features in different embodiments. Those skilled in the art should be aware that the above-mentioned multiple embodiments can also be combined in any way.

[0041] It should be noted that the terms "first\second\third" in the embodiments of the present invention are used to distinguish similar or different objects, and are not intended to describe a specific order of objects. It is understandable that the specific order or sequence of "first\second\third" can be interchanged where permitted, so that the embodiments of the present invention described herein can be implemented in an order other than that illustrated or described herein.

[0042] The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatus.

[0043] The words "exemplary" or "for example" in the embodiments of the present invention are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a specific way.

[0044] In the related art, an electronic device can obtain the user's positioning data according to a preset strategy. For example, the positioning data of position 1 is obtained at time 1, the positioning data of position 2 is obtained at time 2, and the positioning data of position 3 is obtained at time 3. The multiple positions obtained are then connected to obtain the user's movement trajectory. The denser the obtained positioning data, the smoother the output movement trajectory. Finally, the user's movement trajectory is output for the user to view.

[0045] However, when obtaining positioning data, it is necessary to obtain positioning data through the network. When encountering a poor network or abnormal network disconnection, the positioning data will be partially missing. In addition, since the user's movement trajectory is generated based on the obtained positioning data, it will affect the generation of the movement trajectory, making the output movement trajectory of the missing positioning data period a direct line segment. Please refer to Figure 1 , Figure 1 Schematic diagram of the movement trajectory during the period of missing positioning data provided by an embodiment of the present invention. Figure 1 For example, if no positioning data is obtained within 5 minutes, but the user has moved from the illustrated starting point to the illustrated end point within 5 minutes, in this case, the movement trajectory between the illustrated starting point and the illustrated end point is a direct line segment, that is, the movement trajectory from the illustrated starting point to the illustrated end point on the map is directly connected, and the direct line segment obviously cannot accurately represent the user's movement trajectory, causing a bad experience for the user. As an example, Figure 1 As shown, the correct movement trajectory of the user from the illustrated starting point to the illustrated end point should be a movement trajectory connecting segment 1, segment 2, and segment 3, or a movement trajectory connecting segment 4, segment 5, and segment 6.

[0046] In view of this, an embodiment of the present invention provides a trajectory output method, an electronic device, and a storage medium, the method comprising: obtaining a user's target history data, the target history data at least including the sensor data of the user in a first historical time period; determining a target movement trajectory corresponding to the user according to the target history data; and outputting the target movement trajectory. Even if the positioning data is missing due to a poor network or abnormal network disconnection, the movement trajectory corresponding to the time period where the positioning data is missing can be supplemented according to the historical data, and the user's movement trajectory can be output, solving the problem of direct trajectory connection.

[0047] The electronic devices involved in the embodiments of the present invention may be mobile phones, tablet computers, laptop computers, PDAs, vehicle-mounted terminal devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc. Among them, the wearable devices may be smart watches, smart bracelets, phone watches, smart anklets, smart earrings, smart necklaces, smart headphones, etc., which are not limited in the embodiments of the present invention.

[0048] A trajectory output method provided by the present invention is described in detail below with reference to the accompanying drawings.

[0049] Please refer to Figure 2, is a flow chart of a trajectory output method provided by an embodiment of the present invention. Figure 2 As shown, the method may include the following steps:

[0050] Step 201: Acquire target history data of a user, wherein the target history data at least includes sensor data of the user in a first historical time period.

[0051] In an embodiment of the present invention, the electronic device can obtain the positioning data of the user's location, and output the user's movement trajectory according to the obtained positioning data, and the user can check the historical movement trajectory through electronic devices such as mobile phones and tablets. The positioning data can be a positioning signal, such as a global positioning system signal (Global Positioning System, GPS), or can be a positioning signal obtained based on mobile communication technology, for example, a positioning signal obtained by wireless network transmission technology (Wireless Fidelity, WIFI) or the fifth generation mobile communication technology (5G) or Bluetooth, etc., and the specific positioning method is not limited here.

[0052] The electronic device needs to turn on the positioning function to obtain the positioning data of the user's location. The positioning function can be turned on manually by the user, or it can be automatically turned on when the electronic device detects that the user is in motion, or it can be automatically turned on when it detects that the user is using a specific application, etc., without limitation here.

[0053] In an embodiment of the present invention, the positioning function may be always in an on state. When the positioning function is turned on, the electronic device may obtain positioning data according to a preset strategy, for example, obtaining positioning data every 5 seconds. If no positioning data is obtained within a certain time period, it means that the positioning data is missing within the time period.

[0054] In the embodiment of the present invention, the user can check the historical movement trajectory through electronic devices such as mobile phones and tablets. Specifically, the function can be actively triggered by the user, or the electronic device can automatically trigger the function when it detects that the user is in motion, or automatically trigger the function when it detects that the user is using a specific application, etc., which are not limited here.

[0055] For example, when the user wants to view the movement trajectory after the trip, the electronic device responds to the user operation, obtains the user's target history data, and outputs the target movement trajectory according to the target history data. In addition, the output of the movement trajectory may be triggered without the user's active operation. For example, when the electronic device detects that the user is in motion, the user's target history data may be obtained at a preset time interval, and the target movement trajectory may be output according to the target history data. For example, the user's target history data is obtained every 10 minutes, and the target movement trajectory is output, which is not limited here.

[0056] In an embodiment of the present invention, the acquired target historical data includes at least the sensor data of the user in the first historical time period, specifically, the sensor data of the user in the first historical time period, and the positioning data of the user in the second historical time period. The first historical time period and the second historical time period are described below.

[0057] In some embodiments, the first historical time period may be a time period when positioning data is missing, and the sensor data is the sensor data within the time period when positioning data is missing; the first historical time period may also be the entire historical time period corresponding to the entire trip of the user, and the sensor data is the sensor data within the entire historical time period, which is not limited here. The time period when positioning data is missing is the time interval from the moment when positioning data is missing to the moment when positioning data is restored.

[0058] In some embodiments, the second historical time period may be a combination of other historical time periods except the first historical time period. When the first historical time period is a time period in which positioning data is missing, and the second historical time period is a time period in which positioning data is normally acquired, the positioning data is the positioning data within the time period in which positioning data is normally acquired. The second historical time period may also be the entire historical time period corresponding to the entire itinerary of the user, and the positioning data is the positioning data within the entire historical time period, which is not limited here.

[0059] In some embodiments, the first historical time period and the second historical time period may also overlap. For example, the first historical time period may be a time period when positioning data is missing, and the second historical time period may be a time period between the start time when positioning data is missing and the end time of the entire trip. Then the second historical time period includes the first historical time period.

[0060] In the embodiment of the present invention, the sensor may be always in an on state, and collect data according to a preset sampling interval, for example, obtaining data every 5 seconds. After collecting the data, the data may be stored in a corresponding storage space, and the electronic device may obtain the sensor data from the corresponding storage space after determining that the positioning data is missing.

[0061] The sensor signal is a local signal, and the loss of the positioning signal does not affect the acquisition of the sensor signal. The sensor may include an acceleration sensor, a gyroscope sensor, a geomagnetic sensor, and the like. The sensor data may be the acceleration acquired by the acceleration sensor, or the angular velocity acquired by the gyroscope sensor. Those skilled in the art may also use other sensors to acquire the corresponding data, which is not limited here. It should be noted that the sensor data acquired in the embodiment of the present invention may be data acquired by the same sensor, for example, only the acceleration sensor may be used to acquire the acceleration, or may be multiple sets of sensor data acquired by multiple different sensors, for example, the acceleration may be acquired by the acceleration sensor, and the angular velocity may be acquired by the gyroscope sensor at the same time, which is not limited here.

[0062] Step 202: Determine the target movement trajectory corresponding to the user according to the target history data.

[0063] In the embodiment of the present invention, the target movement trajectory corresponding to the user can be determined based on the target historical data obtained in different historical time periods. This includes the following two situations:

[0064] Case 1: the target historical data includes sensor data of the user in a first historical time period, and the target movement trajectory is a first movement trajectory determined according to the sensor data.

[0065] In the above situation 1, when the electronic device detects that the positioning data within the first historical time period is missing in the acquired user's target historical data, it can obtain the sensor data within the first historical time period and determine the first movement trajectory based on the sensor data, and the target movement trajectory is the first movement trajectory determined based on the sensor data.

[0066] Case 2: the target historical data further includes positioning data of the user in a second historical time period, and the target movement trajectory is a first movement trajectory determined according to the sensor data and a second movement trajectory determined according to the positioning data.

[0067] In the above situation 2, when the electronic device acquires the sensor data in the first historical time period, it can also acquire the positioning data in the second historical time period. The second historical time period can be a combination of other historical time periods in the entire historical time period of the user except the first historical time period, and the second historical time period can be a continuous time period or a combination of discontinuous time periods; the second historical time period can normally acquire the user's positioning data, and the electronic device can determine the second movement trajectory according to the positioning data in the second historical time period, and the target movement trajectory is the first movement trajectory determined according to the sensor data and the second movement trajectory determined according to the positioning data.

[0068] In the embodiment of the present invention, a first movement trajectory corresponding to the first historical time period can be determined according to the sensor data of the user in the first historical time period. The first movement trajectory includes the following two situations:

[0069] In one case, the first movement trajectory is not completely identical to the user's actual movement trajectory. Since the first movement trajectory is determined based on sensor data, even if it is not completely identical, it is associated with the user's actual movement trajectory, which can avoid the direct connection phenomenon of the movement trajectory drawn without obtaining positioning data. Furthermore, by obtaining multiple sets of sensor data and determining the first movement trajectory based on the multiple sets of sensor data, the accuracy of the first movement trajectory can be improved, so that the first movement trajectory approaches the user's actual movement trajectory.

[0070] Another case is that the first movement trajectory is completely identical to the actual movement trajectory of the user. In this case, the direct connection trajectory without obtaining positioning data can be accurately corrected to improve the accuracy of the first movement trajectory.

[0071] Step 203: output the target movement trajectory.

[0072] In the embodiment of the present invention, the target movement trajectory can be outputted by image display or voice broadcast, and those skilled in the art can also output the target movement trajectory by other means according to the actual situation, which is not limited here. In each embodiment of this specification, the output method of the target movement trajectory is described by image display.

[0073] In the embodiment of the present invention, when the positioning data is missing, in order to output a complete user movement trajectory, it is necessary to correct the movement trajectory corresponding to the time period in which the positioning data is missing in the movement trajectory, and output the corrected movement trajectory. The specific method is as follows:

[0074] The target movement trajectory is a first movement trajectory determined according to the sensor data and a second movement trajectory determined according to the positioning data, and outputting the target movement trajectory includes:

[0075] Correcting the second moving trajectory according to the first moving trajectory to obtain a corrected moving trajectory;

[0076] The corrected movement trajectory is output.

[0077] First, determine the second movement trajectory based on the positioning data of the entire historical time period, that is, the complete movement trajectory of the user in the entire historical time period; then, when it is detected that no positioning data is obtained in the first historical time period, obtain the sensor data in the time period where the positioning data is missing, and determine the first movement trajectory based on the sensor data in the time period where the positioning data is missing; finally, correct the movement trajectory corresponding to the time period where the positioning data is missing in the second movement trajectory based on the first movement trajectory, obtain the corrected movement trajectory, and output the corrected movement trajectory. For example, the positions indicated in the multiple positioning data obtained are connected to obtain the second movement trajectory, because the movement trajectory of some positions in the second movement trajectory is a direct connection trajectory. Then, replace the first movement trajectory with the direct connection trajectory to obtain the corrected movement trajectory. Please refer to Figure 3 , Figure 3 is a schematic diagram of a moving trajectory outputted by a trajectory output method provided by an embodiment of the present invention, such as Figure 3 As shown, the target moving trajectory between the starting point and the end point in the figure is the moving trajectory of the user in the entire historical time period, the moving trajectory from the starting point to position 1 and from position 2 to the end point is the second moving trajectory determined according to the positioning data in the second historical time period, and the moving trajectory from position 1 to position 2 is the first moving trajectory determined according to the sensor data, and the moving trajectory corresponding to the time period in which the positioning data is missing in the second moving trajectory is corrected. Therefore, the moving trajectory from position 1 to position 2 will not be directly connected and can be displayed correctly.

[0078] In the embodiment of the present invention, the corrected moving trajectory can be outputted by sequentially outputting identification information of the travel mode corresponding to each segment of the moving trajectory on the corrected moving trajectory according to the preset moving speed and the moving direction of the corrected moving trajectory, wherein the identification information is a preset pattern or a preset animation, which is not limited here. Figure 3 As shown, the target moving track between the starting point and the end point in the figure is the corrected moving track of the user's entire historical time period, and the identification information of the travel mode corresponding to each moving track is output in sequence on the corrected moving track. For example, if the user's travel mode from the starting point to position 1 is driving, a vehicle pattern is displayed on the corrected moving track to identify the user's travel mode from the starting point to position 1, if the user's travel mode from position 1 to position 2 is riding a bicycle, then a cycling pattern is displayed on the corrected moving track to identify the user's travel mode from position 1 to position 2, and if the user's travel mode from position 2 to the end point is walking, then a walking pattern is displayed on the corrected moving track to identify the user's travel mode from position 2 to the end point.

[0079] In the embodiment of the present invention, only the first movement trajectory determined according to the sensor data in the first historical time period may be output as the target movement trajectory. Figure 4, Figure 4 FIG. 1 is a schematic diagram of a moving trajectory during a period of missing positioning data outputted by a trajectory output method provided by an embodiment of the present invention. Figure 4 As shown, the target moving track between the starting point and the end point in the figure will not be directly connected and can be displayed correctly.

[0080] In some embodiments, after the corrected movement trajectory is output, prompt information can also be output in the target area of ​​the corrected movement trajectory corresponding to the time period when the positioning data is missing, and the prompt information includes the target travel mode and / or duration, and the duration is the actual duration of the user in the time period when the positioning data is missing, and the area border of the target area closest to the corrected movement trajectory is separated from the missing trajectory by a preset distance.

[0081] The prompt information may include three modes: only displaying the target travel mode, only displaying the duration, or displaying both the target travel mode and the duration. Figure 4 As shown in the figure, a prompt message "travel mode: walking, duration: 11 minutes" is displayed next to the corrected moving track between the starting point and the position in the figure. It should be noted that those skilled in the art can set the content of the prompt message according to actual needs, including but not limited to the target travel mode, duration, distance, speed, etc.

[0082] The preset interval distance may be 1 mm, that is, a target area may be set at a position 1 mm away from the corrected moving track, and the target area is used to display prompt information. Those skilled in the art may set the preset interval distance according to actual needs, and this is not limited here.

[0083] It can be seen that in the above embodiment, the target movement trajectory corresponding to the user can be determined based on the user's target history data. Even when the positioning data is missing, the first movement trajectory corresponding to the missing positioning data can be determined based on the acquired sensor data. The implementation of a trajectory output method provided by an embodiment of the present invention can replenish the missing movement trajectory and solve the problem of direct trajectory connection.

[0084] exist Figure 2 In the illustrated embodiment, the principle of a trajectory output method provided by the present invention is introduced. The following describes a trajectory output method provided by the present invention in detail in combination with a specific application scenario.

[0085] Please refer to Figure 5 , is a flowchart of another example of a trajectory output method provided by an embodiment of the present invention, such as Figure 5 As shown, the method may include the following steps:

[0086] Step 501: Acquire target history data of a user, wherein the target history data at least includes sensor data of the user in a first historical time period.

[0087] Step 501 and Figure 2 Step 201 in the illustrated embodiment is similar and will not be described in detail here.

[0088] Step 502: Determine the target travel mode of the user according to the sensor data.

[0089] In the embodiment of the present invention, the target travel mode of the user may include walking, cycling, driving, etc., which is not limited here.

[0090] In the embodiment of the present invention, the motion parameter change value of the user may be determined according to the sensor data, and the target travel mode of the user may be determined according to the motion parameter change value.

[0091] The motion parameter change value includes the change value of relevant motion parameters such as acceleration and angular velocity, which is not limited here. For example, the change value of acceleration can be obtained according to the acceleration sensor, and the change value of angular velocity can be obtained according to the gyroscope sensor.

[0092] In some embodiments, the user's motion characteristics can also be determined based on the change values ​​of motion parameters such as acceleration and angular velocity, and the user's target travel mode can be determined based on the motion characteristics, wherein the change values ​​of the motion parameters, the motion characteristics, and the target travel mode are in a one-to-one correspondence.

[0093] Exemplarily, walking is a periodic mode of motion, and the motion characteristics such as the stride and rhythm between the user's feet when walking can be determined based on the changes in motion parameters such as acceleration and angular velocity obtained by multiple sets of sensors, and the user's target travel mode can be determined based on the motion characteristics. Cycling is a non-periodic mode of motion, and the user's motion characteristics such as axial swing and lateral offset can be determined based on the changes in motion parameters such as acceleration and angular velocity obtained by multiple sets of sensors, and the user's target travel mode can be determined based on the motion characteristics. Driving is a non-periodic mode of motion, and the user's motion characteristics such as fast forward, acceleration and deceleration can be determined based on the changes in motion parameters such as acceleration and angular velocity obtained by multiple sets of sensors, and the user's target travel mode can be determined based on the motion characteristics. It should be noted that the corresponding relationship between the change value of the motion parameter, the motion characteristics and the target travel mode can be preset in advance, and those skilled in the art can also adjust the corresponding relationship between the change value of the motion parameter, the motion characteristics and the target travel mode according to actual conditions, which is not limited here.

[0094] In an embodiment of the present invention, the sensor data may be multiple sets of sensor data acquired in the first historical time period. The multiple sets of sensor data are acquired by multiple sensors such as an acceleration sensor, a gyroscope sensor, and a geomagnetic sensor, respectively, and the change value of the user's motion parameter is comprehensively determined based on the multiple sets of sensor data. Using multiple sets of sensor data to determine the target travel mode can improve the accuracy of the target travel mode judgment.

[0095] In the embodiment of the present invention, before determining the change value of the motion parameter of the user according to the sensor data, the acquired sensor data may be low-pass filtered. Since the raw sensor data contains various erroneous or redundant noise data, and considering that the bandwidth of the user's motion is much lower than the noise bandwidth of the sensor, the sensor data is filtered by a low-pass filter, so as to filter high frequencies and retain low frequencies, thereby improving the stability and reliability of the travel mode judgment result.

[0096] In some embodiments, in order to further improve the efficiency of determining the target travel mode, a mapping relationship between sensor data and the target travel mode can be preset. After the sensor data is obtained, the user's target travel mode can be quickly determined according to the preset mapping relationship, thereby improving the efficiency of determining the user's target travel mode. For example, if the user's movement speed in the sensor data is 1.48-1.51 m / s, the target travel mode can be determined to be walking. If the user's movement speed in the sensor data is 15 km / h, the target travel mode can be determined to be cycling. The preset mapping relationship can be established according to the user's historical travel data, travel mode database, etc., which is not limited here.

[0097] In the embodiment of the present invention, there are two situations in which the target travel mode of the user is determined according to the acquired sensor data:

[0098] Case 1: sensor data can be obtained normally during the time period when the positioning data is missing, and the first historical time period is the time period when the positioning data of the user is missing. Determining the user's target travel mode based on the sensor data includes:

[0099] Acquire sensor data within the first historical time period;

[0100] A target travel mode of the user within the first historical time period is determined according to the sensor data within the first historical time period.

[0101] Case 2: sensor data is also missing during the time period when positioning data is missing, and the first historical time period is a first sub-historical time period before the user's positioning data is missing and a second sub-historical time period after the user's positioning data is restored. Determining the user's target travel mode based on the sensor data includes:

[0102] Acquire sensor data of the first sub-historical time period and sensor data of the second sub-historical time period;

[0103] determining a first travel mode of the user according to the sensor data of the first sub-historical time period;

[0104] determining a second travel mode of the user according to the sensor data of the second sub-historical time period;

[0105] When the first travel mode and the second travel mode are the same, it is determined that the target travel mode of the user in the first historical time period is the first travel mode or the second travel mode.

[0106] In some embodiments, before executing step 502, in the case of missing positioning data, it is possible to detect whether the sensor signal is abnormal. If the sensor signal is normal, the sensor data in the time period in which the positioning data is missing is obtained. If the sensor signal is abnormal, the sensor data in the first sub-historical time period and the second sub-historical time period are obtained. Those skilled in the art can detect the sensor signal in a variety of ways according to actual conditions, which are not limited here.

[0107] Step 503: determine the first movement trajectory from a map according to the target travel mode, wherein the first movement trajectory is a partial trajectory or a full trajectory corresponding to one of the routes between the starting position and the end position of the user in the target historical time period, and the target historical time period includes the first historical time period.

[0108] In an embodiment of the present invention, since there are two situations when determining the user's target travel mode based on the acquired sensor data in step 502, situation 1 is that the sensor data can be obtained normally during the time period when the positioning data is missing, and situation 2 is that the sensor data is also missing during the time period when the positioning data is missing. Therefore, according to the target travel mode, there are also two situations for determining the first moving trajectory from the map.

[0109] Case 1: when the sensor data can be normally acquired during the time period when the positioning data is missing, the first movement trajectory is the entire trajectory corresponding to one of the routes between the starting position and the end position of the user in the target historical time period.

[0110] In the above situation 1, since the positioning data between the starting point and the end point of the user in the target historical time period is missing, the sensor data in the time period where the positioning data is missing is obtained, and the target travel mode of the user in the target historical time period is determined based on the sensor data. Based on the target travel mode, the movement trajectory corresponding to the time period where the positioning data is missing is determined from the map, and all trajectories of the movement trajectory are the first movement trajectory.

[0111] Case 2: When sensor data is missing during the time period when positioning data is missing, the first movement trajectory is a partial trajectory corresponding to one of the routes between the starting position and the end position of the user in the target historical time period.

[0112] In the above situation 2, since the sensor data between the starting position and the end position of the target historical time period of the user is also missing, it is necessary to obtain the sensor data of position 1 before the starting position of the target historical time period and position 2 after the end position of the target historical time period, and determine the target travel mode of the user in the target historical time period based on the sensor data. According to the target travel mode, determine the moving trajectory from position 1 to position 2 from the map, wherein the moving trajectory between the starting position and the end position of the target historical time period is a partial trajectory in the moving trajectory from position 1 to position 2, and the partial trajectory is the first moving trajectory.

[0113] In an embodiment of the present invention, the map may be a map stored locally in the electronic device, or a map downloaded from the Internet, for example, a map downloaded from a server of a map application through a map application. The map data of the user's location may be map data within a preset range centered on the user's location, for example, map data corresponding to an area with a diameter of 1 km centered on the user's location, or map data of a city corresponding to the user's location, for example, map data of a city corresponding to the user's work and living place. Those skilled in the art may obtain corresponding map data according to actual conditions, which is not limited here. It should be noted that the map data includes sections where positioning data is missing.

[0114] In the embodiment of the present invention, when a user goes to a familiar place, he or she often determines a travel mode and a moving track according to daily habits. The determining the first moving track from a map according to the target travel mode includes:

[0115] Acquire the historical movement duration of the user and the personalized data of the user during the time period in which the positioning data is missing, wherein the personalized data includes at least one of the historical travel data of the user and the travel habits of the user;

[0116] The first movement trajectory is determined from a map according to the historical movement duration, the personalized data, and the target travel mode.

[0117] The electronic device may record the historical travel data and behavior habits of the user when traveling along the route of the trip before the current trip, and may determine the first movement trajectory from the map based on the historical movement duration and target travel mode of the user during the time period in which the positioning data is missing in the current trip, combined with the historical travel data and behavior habits of the user on the same route. For example, when it is obtained that the user used to walk along the same route in the past, the historical travel time was 30 minutes, and the target travel mode determined in the current trip is consistent with the historical travel data, then the movement trajectory of the user when traveling along the same route in the past can be determined as the first movement trajectory.

[0118] In an embodiment of the present invention, the first movement trajectory may also be determined from a map according to the historical movement duration of the user in the time period when the positioning data is missing and the target travel mode. Specifically, determining the first movement trajectory from a map according to the target travel mode includes:

[0119] Obtaining the historical exercise duration of the user during the time period when the positioning data is missing;

[0120] The first movement trajectory is determined from a map according to the historical movement duration and the target travel mode.

[0121] In the embodiment of the present invention, the historical movement duration of the user during the time period when the positioning data is missing can be obtained by the following methods, including:

[0122] Method 1: Obtain the user's historical exercise duration during the period when positioning data is missing based on the system time.

[0123] The system time may be automatically generated by the system clock of the electronic device used by the user, and is not limited here. For example, the system clock records the time when the positioning data is lost as t1, and the time when the positioning data is restored as t2, then the total time spent from the loss of positioning data to the restoration of positioning data is t 总 = t2-t1, the total time t from the loss of positioning data to the restoration of positioning data 总 The historical exercise duration corresponding to the missing positioning data. The technical solution of method 1 can automatically and quickly obtain the historical exercise duration of the user during the period of time when the positioning data is missing through the system clock, without the need to obtain the time data collected by the sensor, which can improve the efficiency of obtaining the historical exercise duration of the user during the period of time when the positioning data is missing.

[0124] Method 2: Obtain the user's historical exercise duration during the period when positioning data is missing based on sensor data.

[0125] In some embodiments, the time of each data acquisition is also uploaded while acquiring sensor data, so the target duration can be determined based on the time of each data acquisition by the sensor. For example, the positioning data and sensor data are acquired at a preset time interval, firstly, the last acquisition time of the positioning data acquired before the positioning data is lost is recorded as t3, and the acquisition time of the sensor data corresponding to time t3 is determined to be t5, then the first acquisition time of the positioning data acquired after the positioning data is restored is recorded as t4, and the acquisition time of the sensor data corresponding to time t4 is determined to be t6, and finally the target duration t is determined based on the acquisition time of the data carried by the sensor data at time t5 and time t6. 传 , the target duration t 传 =t6-t5. It should be noted that the time interval for obtaining positioning data and the time interval for obtaining sensor data in the second method are the same and are obtained synchronously, that is, the sensor data is obtained synchronously when the positioning data is obtained. Those skilled in the art can set the time interval according to actual conditions, and are not limited here. The technical solution of the second method can solve the problem that when the positioning data is missing and the function of the system clock is also abnormal, the historical movement duration of the user in the time period when the positioning data is missing can be determined according to the time when the sensor obtains the data.

[0126] Method 3: Since the user may stop or travel back and forth during the period when the positioning data is missing, it is necessary to deduct the user's stay time and repeated movement time during the period when the positioning data is missing. Therefore, the user's historical movement time during the period when the positioning data is missing can be determined based on the total time, stay time, and repeated movement time obtained from the system time, including:

[0127] Determine the total duration of missing positioning data according to the system time;

[0128] Obtaining the length of time the user stays between the start and end locations corresponding to the missing positioning data;

[0129] Acquire the repeated movement duration of the user between the starting and ending positions, where the repeated movement duration is the duration of the user repeatedly moving on the same road section;

[0130] The historical exercise duration is determined according to the total duration, the stay duration and the repeated exercise duration.

[0131] For example, according to the system time, the total time from the loss of positioning data information to the restoration of positioning data is recorded as t 总 , the user's stay time during the period of missing positioning data is recorded as t 停 , the duration of the user's repeated movement during the period of missing positioning data is recorded as t 往返, then the actual duration of the user in the period of missing positioning data is t 实 =t 总 -t 停 -t 往返 , the actual duration t 实 The target duration corresponding to the missing positioning data. The technical solution of method 3 can avoid the influence of the historical movement duration of the user in the period of missing positioning data due to the user's stay or repeated movement in the period of missing positioning data, thereby improving the accuracy of the historical movement duration of the user in the period of missing positioning data.

[0132] In some embodiments, determining the first movement trajectory from a map according to the historical movement duration and the target travel mode includes:

[0133] Acquire, according to the map data, at least one movement trajectory of the user corresponding to a time period in which the positioning data is missing;

[0134] A movement trajectory that matches the historical movement duration and the target travel mode respectively is determined from the at least one movement trajectory as the first movement trajectory.

[0135] In an embodiment of the present invention, at least one movement trajectory is all movement trajectories corresponding to the user in the time period in which positioning data is missing, or at least one movement trajectory is at least one recommended route determined from all movement trajectories according to road condition information.

[0136] Please refer to Figure 6 , Figure 6 is a schematic diagram of at least one movement trajectory obtained according to map data provided by an embodiment of the present invention. Figure 6 As shown, there may be multiple movement trajectories from the starting point to the end point, for example, a walking route and a driving route.

[0137] For example, if the determined target travel mode is walking and the target duration is 10 minutes, when at least one movement trajectory includes two movement trajectories, where the travel mode corresponding to movement trajectory 1 is walking and the walking duration is 10 minutes, and the travel mode corresponding to movement trajectory 2 is driving and the driving duration is 5 minutes, then movement trajectory 1 can be selected from the two movement trajectories as the movement trajectory that matches the target travel mode and the historical movement duration, that is, route 1 is the first movement trajectory.

[0138] In some embodiments, the first movement trajectory may be determined from the navigation route according to the historical movement duration and the target travel mode, including:

[0139] Acquire, according to the navigation route, at least one movement trajectory corresponding to the user during the time period in which the positioning data is missing;

[0140] A movement trajectory that matches the historical movement duration and the target travel mode respectively is determined from the at least one movement trajectory as the first movement trajectory.

[0141] For example, when a user goes to an unfamiliar place, they often use a navigation application, which can plan at least one movement trajectory, including different travel modes and durations. Therefore, based on the at least one movement trajectory planned by the navigation application, at least one movement trajectory corresponding to the time period when the user's positioning data is missing can be obtained, and then a movement trajectory that matches the historical movement duration and the target travel direction can be determined from the at least one movement trajectory corresponding to the time period when the user's positioning data is missing, and this movement trajectory is the first movement trajectory. This embodiment uses the movement trajectory planned by the navigation application to determine the first movement trajectory, which conforms to the user's daily usage habits.

[0142] In some embodiments, the at least one movement trajectory is all movement trajectories corresponding to the user in the time period in which positioning data is missing, or the at least one movement trajectory is at least one recommended movement trajectory determined from all movement trajectories according to navigation preset rules.

[0143] The preset rules may include but are not limited to the following two methods:

[0144] Method 1: Use the closest moving trajectory as the recommended moving trajectory.

[0145] Method 2: Use the shortest moving trajectory as the recommended moving trajectory.

[0146] This embodiment uses the rules preset by the navigation application to determine the recommended movement trajectory, and further determines the first movement trajectory from the recommended movement trajectory, which is more in line with the user's daily habits. For example, when a user goes out, he or she often chooses the movement trajectory with the shortest distance or the shortest duration as the movement trajectory, which is highly consistent with the recommended movement trajectory of the navigation application.

[0147] In some embodiments, in at least one movement trajectory corresponding to the time period in which the user's positioning data is missing, the same travel mode and the same duration may appear, but there are multiple alternative movement trajectories. The user's movement trajectory can be determined from the multiple alternative movement trajectories based on the user's historical travel data and / or the user's travel habits, and the movement trajectory is the first movement trajectory. For example, if the number of times a user selects a certain target alternative movement trajectory within a historical period of time is greater than a preset number, the target alternative movement trajectory can be used as the user's first movement trajectory, which is not limited in the embodiments of the present invention.

[0148] In an embodiment of the present invention, in order to further improve the accuracy of the target travel mode, the travel mode determined according to the sensor data may be verified according to the historical movement duration. Specifically, determining the user's target travel mode according to the sensor data includes:

[0149] determining an initial travel mode corresponding to the sensor data;

[0150] Determine the historical movement duration of the user during the time period when the positioning data is missing;

[0151] The initial travel mode is verified according to the historical movement duration, and if the verification passes, the initial travel mode is determined as the target travel mode.

[0152] Step 504: output the target movement trajectory, where the target movement trajectory is the first movement trajectory.

[0153] Other implementations of step 504 Figure 2 Step 203 in the illustrated embodiment is similar and will not be described in detail here.

[0154] It can be seen that in the above embodiment, the target travel mode is determined based on the sensor data, and then the user's target movement trajectory is further determined in combination with the map, which improves the efficiency of the target movement trajectory output and the accuracy of determining the target movement trajectory. The accuracy of determining the first movement trajectory based on the target travel mode is higher, and the authenticity and integrity of the trajectory can be guaranteed. Even if the sensor information is lost during the time period when the positioning data is missing, the user's target travel mode during the time period when the positioning data is missing can be determined based on the sensor data before and after the positioning data is missing, reducing the impact of the loss of sensor information on the travel mode determination.

[0155] Based on the foregoing embodiments, an embodiment of the present invention provides a trajectory output device, which includes the modules included and the units included in the modules, which can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0156] Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Figure 7 As shown, the electronic device 700 includes an acquisition module 701, a determination module 702, an output module 703 and a correction module 704, wherein:

[0157] An acquisition module 701 is configured to acquire target history data of a user, wherein the target history data at least includes sensor data of the user in a first historical time period;

[0158] A determination module 702 determines a target movement trajectory corresponding to the user according to the target history data;

[0159] The output module 703 outputs the target movement trajectory.

[0160] In some embodiments, the determination module 702 is further configured to determine that the target movement trajectory is a first movement trajectory determined according to the sensor data.

[0161] In some embodiments, the target historical data also includes the positioning data of the user in the second historical time period, and the determination module 702 is also used for the target movement trajectory to be a first movement trajectory determined according to the sensor data and a second movement trajectory determined according to the positioning data.

[0162] In some embodiments, the target movement trajectory is the first movement trajectory, and determining the target movement trajectory corresponding to the user based on the target historical data includes: the determination module 702 is also used to determine the target travel mode of the user based on the sensor data; according to the target travel mode, determine the first movement trajectory from a map, the first movement trajectory is a partial trajectory or a full trajectory corresponding to one of the routes between the starting position and the end position of the user in the target historical time period, and the target historical time period includes the first historical time period.

[0163] In some embodiments, the first historical time period is a time period in which the positioning data of the user is missing, or the first historical time period is a first sub-historical time period before the positioning data of the user is missing and a second sub-historical time period after the positioning data of the user is restored.

[0164] In some embodiments, determining the first moving trajectory from a map based on the target travel mode includes: the acquisition module 701 is also used to obtain the historical movement duration of the user during the time period when the positioning data is missing; the determination module 702 is also used to determine the first moving trajectory from a map based on the historical movement duration and the target travel mode.

[0165] In some embodiments, the determining of the first moving trajectory from a map according to the target travel mode includes: the acquisition module 701 is also used to obtain the historical movement duration of the user during the time period where the positioning data is missing and the personalized data of the user, and the personalized data includes at least one of the historical travel data of the user and the travel habits of the user; the determination module 702 is also used to determine the first moving trajectory from a map according to the historical movement duration, the personalized data and the target travel mode.

[0166] In some embodiments, determining the target travel mode of the user based on the sensor data includes: the determination module 702 is also used to determine the initial travel mode corresponding to the sensor data; determining the historical movement duration of the user during the time period when the positioning data is missing; based on the historical movement duration, verifying the initial travel mode, and if the verification passes, determining the initial travel mode as the target travel mode.

[0167] In some embodiments, determining the historical movement duration of the user during the time period when the positioning data is missing includes: the determination module 702 is also used to determine the total duration of the missing positioning data based on the system time; the acquisition module 701 is also used to obtain the duration of the user's stay between the start and end positions corresponding to the missing positioning data; obtain the repeated movement duration of the user between the start and end positions, and the repeated movement duration is the duration of the user's repeated movement on the same road section; the determination module 702 is also used to determine the historical movement duration based on the total duration, the stay duration and the repeated movement duration.

[0168] In some embodiments, the target movement trajectory is a first movement trajectory determined according to the sensor data and a second movement trajectory determined according to the positioning data, and the output of the target movement trajectory includes: the correction module 704 is also used to correct the second movement trajectory according to the first movement trajectory to obtain a corrected movement trajectory; the output module 703 is also used to output the corrected movement trajectory.

[0169] In some embodiments, the output of the corrected moving trajectory includes: the output module 703 is also used to output the identification information of the travel mode corresponding to each segment of the moving trajectory on the corrected moving trajectory in sequence according to the preset moving speed and the moving direction of the corrected moving trajectory, and the identification information is a preset pattern or a preset animation.

[0170] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present invention, please refer to the description of the method embodiment of the present invention for understanding.

[0171] It should be noted that in the embodiments of the present invention Figure 7 The division of modules in the electronic device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present invention may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units. It may also be implemented in the form of a combination of software and hardware.

[0172] It should be noted that, in the embodiment of the present invention, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present invention is not limited to any specific combination of hardware and software.

[0173] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.

[0174] An embodiment of the present invention provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0175] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0176] An embodiment of the present invention provides an electronic device, including:

[0177] A memory storing executable program code;

[0178] and a processor coupled to the memory;

[0179] The processor calls the executable program code stored in the memory to execute any one of the trajectory output methods executed by the electronic device in the above method embodiments.

[0180] An embodiment of the present invention provides a computer-readable storage medium, including: computer instructions are stored on the computer-readable storage medium, and when the computer instructions are executed by a processor, some or all steps of the methods in the above-mentioned method embodiments are implemented.

[0181] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of the present invention, please refer to the description of the method embodiments of the present invention for understanding.

[0182] In various embodiments of the present invention, it should be understood that the size of the serial numbers of the above-mentioned processes does not mean the necessary order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0183] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0184] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0185] The modules described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0186] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each module may exist physically separately, or two or more modules may be integrated into one unit. The above integrated modules may be implemented in the form of hardware or in the form of software functional units.

[0187] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0188] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium and includes several instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.

[0189] The methods disclosed in the several method embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments.

[0190] The features disclosed in several product embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new product embodiments.

[0191] The features disclosed in several method or device embodiments provided by the present invention can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0192] The above is only an embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A trajectory output method, characterized in that: The method comprises: Acquire target history data of the user, wherein the target history data at least includes sensor data of the user in a first historical time period; Determining a target movement trajectory corresponding to the user according to the target history data; Output the target movement trajectory.

2. The method according to claim 1, characterized in that The target movement trajectory is a first movement trajectory determined according to the sensor data.

3. The method according to claim 2, characterized in that The target historical data also includes the positioning data of the user in a second historical time period, and the target movement trajectory is a first movement trajectory determined according to the sensor data and a second movement trajectory determined according to the positioning data.

4. The method according to claim 2 or 3, characterized in that: The target movement trajectory is the first movement trajectory, and determining the target movement trajectory corresponding to the user according to the target history data includes: Determining a target travel mode of the user according to the sensor data; According to the target travel mode, the first movement trajectory is determined from a map, the first movement trajectory being a partial trajectory or a full trajectory corresponding to one of the routes between a starting point and an end point of the user in a target historical time period, and the target historical time period includes the first historical time period.

5. The method according to claim 4, characterized in that The first historical time period is a time period in which the positioning data of the user is missing, or the first historical time period is a first sub-historical time period before the positioning data of the user is missing and a second sub-historical time period after the positioning data of the user is restored.

6. The method according to claim 5, characterized in that The determining the first moving trajectory from a map according to the target travel mode includes: Obtaining the historical exercise duration of the user during the time period when the positioning data is missing; The first movement trajectory is determined from a map according to the historical movement duration and the target travel mode.

7. The method according to claim 5, characterized in that The determining the first moving trajectory from a map according to the target travel mode includes: Acquire the historical movement duration of the user and the personalized data of the user during the time period in which the positioning data is missing, wherein the personalized data includes at least one of the historical travel data of the user and the travel habits of the user; The first movement trajectory is determined from a map according to the historical movement duration, the personalized data, and the target travel mode.

8. The method according to any one of claims 4 to 7, characterized in that: The determining, according to the sensor data, the target travel mode of the user includes: determining an initial travel mode corresponding to the sensor data; Determine the historical movement duration of the user during the time period when the positioning data is missing; The initial travel mode is verified according to the historical movement duration, and if the verification passes, the initial travel mode is determined as the target travel mode.

9. The method according to claim 6 or 7, characterized in that: The determining of the historical movement duration of the user during the time period in which the positioning data is missing includes: Determine the total duration of missing positioning data according to the system time; Obtaining the length of time the user stays between the start and end locations corresponding to the missing positioning data; Acquire the repeated movement duration of the user between the starting and ending positions, where the repeated movement duration is the duration of the user repeatedly moving on the same road section; The historical exercise duration is determined according to the total duration, the stay duration and the repeated exercise duration.

10. The method according to claim 3, characterized in that: The target movement trajectory is a first movement trajectory determined according to the sensor data and a second movement trajectory determined according to the positioning data, and outputting the target movement trajectory includes: Correcting the second moving trajectory according to the first moving trajectory to obtain a corrected moving trajectory; The corrected movement trajectory is output.

11. The method according to claim 10, characterized in that The outputting the corrected movement trajectory comprises: According to the preset moving speed and the moving direction of the corrected moving trajectory, identification information of the travel mode corresponding to each segment of the moving trajectory is outputted in sequence on the corrected moving trajectory, and the identification information is a preset pattern or a preset animation.

12. An electronic device, characterized in that: include: An acquisition module, used for acquiring target history data of a user, wherein the target history data at least includes sensor data of the user in a first historical time period; A determination module, used to determine a target movement trajectory corresponding to the user according to the target history data; The output module is used to output the target movement trajectory.

13. An electronic device, characterized in that: include: A memory storing executable program code; and a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 11.

14. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 11 is implemented.