CN109195113B - Method and device for identifying travel track of user and computer equipment - Google Patents

Method and device for identifying travel track of user and computer equipment Download PDF

Info

Publication number
CN109195113B
CN109195113B CN201811133535.0A CN201811133535A CN109195113B CN 109195113 B CN109195113 B CN 109195113B CN 201811133535 A CN201811133535 A CN 201811133535A CN 109195113 B CN109195113 B CN 109195113B
Authority
CN
China
Prior art keywords
user
travel
current
scene
track
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811133535.0A
Other languages
Chinese (zh)
Other versions
CN109195113A (en
Inventor
王春雷
安显杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811133535.0A priority Critical patent/CN109195113B/en
Publication of CN109195113A publication Critical patent/CN109195113A/en
Application granted granted Critical
Publication of CN109195113B publication Critical patent/CN109195113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/02Alarms for ensuring the safety of persons
    • G08B21/0202Child monitoring systems using a transmitter-receiver system carried by the parent and the child
    • G08B21/0269System arrangements wherein the object is to detect the exact location of child or item using a navigation satellite system, e.g. GPS

Abstract

The embodiment of the application provides a method, a device and computer equipment for identifying a travel track of a user, wherein the method comprises the following steps: acquiring travel data of a user in a preset period; generating a reference travel track of the user according to the travel data; when the user goes out, detecting whether the current going-out track of the user is abnormal or not based on the reference going-out track, and if the current going-out track of the user is abnormal, pushing alarm information of user going-out danger; therefore, the reference travel track of the user is generated in advance according to the travel habit of the user, when the user travels, the current travel track of the user can be detected according to the reference travel track, and if abnormity is detected, the alarm information of travel danger of the user can be automatically pushed so as to ensure the travel safety of the user.

Description

Method and device for identifying travel track of user and computer equipment
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for identifying a travel track of a user and computer equipment.
Background
With the continuous development of networks, users can travel more and more conveniently, but the safety problem is caused. When a user is in danger, the user can only secretly and manually transmit information to friends, family or an alarm platform in the prior art, but when the user is in a more dangerous condition, the user generally cannot transmit any information, so that the travel safety of the user cannot be guaranteed.
Disclosure of Invention
In view of the above, the present invention has been made to provide a method, apparatus and computer device for identifying a user travel trajectory that overcomes or at least partially solves the above problems.
In a first aspect of the present invention, a method for identifying a travel track of a user is provided, where the method includes:
acquiring travel data of a user in a preset period;
generating a reference travel track of the user according to the travel data;
when the user goes out, whether the current trip track of the user is abnormal or not is detected based on the reference trip track, and if the current trip track of the user is abnormal, alarm information of trip danger of the user is pushed.
Optionally, the acquiring the trip data of the user in the preset period includes:
and in the preset period, acquiring corresponding time points and longitude and latitude information corresponding to the time points according to preset travel distance intervals.
Optionally, the obtaining of the trip data of the user in the preset period includes:
and in the preset period, acquiring corresponding time points and longitude and latitude information corresponding to each time point according to preset time intervals.
Optionally, the generating a reference travel trajectory of the user according to the travel data includes:
training outgoing data are extracted from the outgoing data;
merging the travel training data to form a training data set;
carrying out travel track model training by using the training data set to generate a travel track model;
and predicting the reference travel track by using the travel track model.
Optionally, the detecting whether the current travel trajectory of the user is abnormal based on the reference travel trajectory includes:
judging whether the deviation distance between the current trip track and the reference trip track is within a preset deviation distance or not; judging whether the current travel track reaches a corresponding reference travel scene in the reference travel track at any current target time point;
and if any judgment result is negative, determining that the current travel track of the user is abnormal.
Optionally, the detecting whether the current travel trajectory of the user is abnormal based on the reference travel trajectory includes:
according to the reference travel track, determining a reference travel scene corresponding to each target time point of the user in advance;
detecting the traffic state of the user in the traveling process, if the traffic state is an unobstructed state, detecting whether the user reaches a corresponding reference traveling scene at any current target time point, and if not, determining that the current traveling track of the user is abnormal.
Optionally, if the traffic state is a non-smooth state, the method includes:
predicting the delay time of the user according to the traffic state;
determining an arrival time point according to the delay time and the target time point;
and detecting whether the user arrives at the corresponding reference travel scene at the arrival time point, and if not, determining that the current travel track of the user is abnormal.
Optionally, the detecting whether the current travel trajectory of the user is abnormal based on the reference travel trajectory includes:
acquiring a current travel scene corresponding to any current target time point of the user in the current travel track;
acquiring a reference travel scene corresponding to the target time point in the reference travel track;
and judging whether the distance between the current travel scene and the reference travel scene is within a preset first deviation distance, and if not, determining that the current travel track of the user is abnormal.
Optionally, the detecting whether the current travel trajectory of the user is abnormal based on the reference travel trajectory includes:
judging whether the distance between the current trip scene and the reference trip scene is within a preset second deviation distance, if so, continuously judging whether the next trip scene of the current trip scene is consistent with the next reference trip scene of the reference trip scene, and if so, determining that the current trip track of the user is abnormal.
Optionally, the method further comprises:
acquiring the electric quantity information of the terminal of the user in the travel process in real time, and determining that the current travel track of the user is not abnormal when the terminal is determined to be in a power-off state according to the electric quantity information.
Optionally, the alarm information for pushing the trip danger of the user includes:
and pushing the alarm information of the user trip danger to the friends.
Optionally, after the alarm information of the trip danger of the user is pushed to the friend, the method includes:
and detecting whether the alarm information is successfully pushed, if not, continuously detecting whether an emergency contact exists, and if so, sending short message alarm information to the emergency contact.
Optionally, if it is detected that the emergency contact does not exist, the method includes: and dialing an alarm call to the alarm platform.
In a second aspect of the present invention, there is provided an apparatus for identifying a travel track of a user, the apparatus comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring travel data of a user in a preset period;
a generating unit, configured to generate a reference travel track of the user according to the travel data;
and the detection unit is used for detecting whether the current travel track of the user is abnormal or not based on the reference travel track when the user travels, and if the current travel track of the user is abnormal, pushing alarm information of travel danger of the user.
Optionally, the obtaining unit is specifically configured to:
and in the preset period, acquiring corresponding time points and longitude and latitude information corresponding to the time points according to preset travel distance intervals.
Optionally, the obtaining unit is specifically configured to:
and in the preset period, acquiring corresponding time points and longitude and latitude information corresponding to each time point according to preset time intervals.
Optionally, the generating unit includes:
an extraction subunit, configured to extract training outgoing data from the outgoing data;
a merging subunit, configured to merge the trip training data to form a training data set;
a generating subunit, configured to perform travel trajectory model training using the training data set to generate the travel trajectory model;
and the predicting subunit is used for predicting the travel track by using the travel track model.
Optionally, the detection unit is specifically configured to:
judging whether the deviation distance between the current travel track and the reference travel track is within a preset deviation distance or not; judging whether the current travel track reaches a corresponding reference travel scene in the reference travel track at any current target time point;
and if any judgment result is negative, determining that the current travel track of the user is abnormal.
Optionally, the detection unit is specifically configured to:
according to the reference travel track, determining a reference travel scene corresponding to each target time point of the user in advance;
detecting a traffic state of the user in a traveling process, if the traffic state is an unobstructed state, detecting whether the user reaches a corresponding reference traveling scene at any current target time point, and if not, determining that the current traveling track of the user is abnormal.
Optionally, the detection unit is specifically configured to:
if the traffic state is a non-smooth state, estimating the delay time of the user according to the traffic state;
determining an arrival time point according to the delay time and the target time point;
and detecting whether the user arrives at the corresponding reference travel scene at the arrival time point, and if not, determining that the current travel track of the user is abnormal.
Optionally, the detection unit is specifically configured to:
acquiring a current travel scene corresponding to any current target time point of the user in the current travel track;
acquiring a reference travel scene corresponding to the target time point in the reference travel track;
and judging whether the distance between the current travel scene and the reference travel scene is within a preset first deviation distance, and if not, determining that the current travel track of the user is abnormal.
Optionally, the detection unit is specifically configured to:
judging whether the distance between the current trip scene and the reference trip scene is within a preset second deviation distance, if so, continuously judging whether the next trip scene of the current trip scene is consistent with the next reference trip scene of the reference trip scene, and if so, determining that the current trip track of the user is abnormal.
Optionally, the detection unit is specifically configured to:
acquiring the electric quantity information of the terminal of the user in the travel process in real time, and determining that the current travel track of the user is not abnormal when the terminal is determined to be in a power-off state according to the electric quantity information.
Optionally, the detection unit is specifically configured to:
and pushing the alarm information of the user trip danger to the friend.
Optionally, the detection unit is configured to:
after the alarm information of user trip danger is pushed to the friend, whether the alarm information is pushed successfully is detected, if not, whether an emergency contact exists is continuously detected, and if so, short message alarm information is sent to the emergency contact.
Optionally, the detection unit is configured to: and if the emergency contact does not exist, dialing an alarm call to an alarm platform.
In a third aspect of the invention, a computer-readable storage medium is provided, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the method according to any of the preceding claims.
In a fourth aspect of the present invention, there is provided a computer device for identifying a travel track of a user, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein the memory stores program instructions executable by the processor, and wherein the processor is capable of performing the steps of any of the methods described above when invoked by the program instructions.
The technical scheme provided in the embodiment of the application has at least the following technical effects or advantages:
the embodiment of the application provides a method, a device and computer equipment for identifying a travel track of a user, wherein the method comprises the following steps: acquiring travel data of a user in a preset period; generating a reference travel track of the user according to the travel data; when the user goes out, detecting whether the current going-out track of the user is abnormal or not based on the reference going-out track, and if the current going-out track of the user is abnormal, pushing alarm information of user going-out danger; therefore, the reference travel track of the user is generated in advance according to the travel habit of the user, when the user travels, the current travel track of the user can be detected according to the reference travel track, and if abnormity is detected, alarm information of user travel danger can be automatically pushed so as to ensure the travel safety of the user.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for identifying a travel track of a user according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram illustrating an apparatus for identifying a travel track of a user according to an embodiment of the present invention;
FIG. 3 shows a schematic structural diagram of a generation unit according to an embodiment of the invention;
FIG. 4 is a diagram illustrating an interface for adding buddies in accordance with one embodiment of the present invention;
FIG. 5 illustrates an interface diagram for adding an emergency contact according to one embodiment of the invention;
FIG. 6 illustrates an interface diagram of a sharing location according to one embodiment of the invention;
FIG. 7 illustrates a schematic view of an interface that always allows for location hints to be obtained, according to one embodiment of the present invention;
FIG. 8 shows a schematic interface diagram for safe travel according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the invention provides a method, a device and computer equipment for identifying a user travel track, which are used for solving the technical problem that the user travel safety in the prior art cannot be guaranteed.
Example one
The present embodiment provides a method for identifying a travel track of a user, as shown in fig. 1, the method includes:
s110, acquiring travel data of a user in a preset period;
generally, users who do not frequently go on a business trip have a fixed travel route, such as a group of office workers who generally travel between home and company in the week or a group of full-time children who generally travel between home and school. Therefore, the trip data of the user is of practical significance for researching the trip safety of the user, so that the trip data of the user in a preset period can be obtained, the trip data is obtained in a unit of day in the embodiment, the preset period is 30 days, and the trip data can also be set according to actual requirements.
As an optional embodiment, when obtaining the travel data of the user, the travel data may be obtained according to a preset time interval, and then obtaining the travel data of the user in a preset period includes:
and in a preset period, acquiring corresponding time points and longitude and latitude information corresponding to each time point according to a preset time interval.
For example, the time interval may be set to 10s, that is, the currently corresponding time point and the latitude and longitude information corresponding to each time point are automatically acquired every 10 s. Of course, the client may also automatically acquire the current corresponding time point and the longitude and latitude information corresponding to each time point every 10 seconds, and then report to the server.
As an optional embodiment, when the travel data of the user is obtained, the travel data may also be obtained according to a preset travel distance interval, and then the obtaining of the travel data of the user in a preset period includes:
and in a preset period, acquiring corresponding time points and longitude and latitude information corresponding to each time point according to a preset travel distance interval.
For example, the travel distance interval may be set to 200m, and then the current corresponding time point and the longitude and latitude information corresponding to each time point are automatically acquired once every 200m interval. Here, the client may also automatically acquire the current corresponding time point and longitude and latitude information corresponding to each time point, and then report to the server.
As an optional embodiment, when acquiring the longitude and latitude information corresponding to each time point, the longitude and latitude information may be directly acquired by using a Global Positioning System (GPS), or the geographic location may be queried by using base station information or WiFi information, and then the longitude and latitude information is determined by using the geographic location.
When determining the longitude and latitude information through the WiFi information, the following is specifically realized:
scanning and collecting wireless Access points around a terminal, and acquiring Media Access Control (MAC) addresses of the wireless Access points; the MAC address of the wireless access point is sent to the server, the server can retrieve the geographic position information of each wireless access point from the position database according to the MAC address information of the wireless access point, coordinate operation is carried out on the geographic position information of each wireless access point, and specific longitude and latitude information is determined. And when the longitude and latitude information of all the wireless access points is determined, determining the current longitude and latitude information of the user according to the longitude and latitude information of all the wireless access points. The more the number of the wireless access points is, the more accurate the accuracy of determining the current longitude and latitude information of the user is.
When the latitude and longitude information is determined through the base station information, the following is specifically realized:
acquiring the position information of a base station currently accessed by a terminal;
acquiring Geographic Information of the current access according to the surrounding of the position Information of the currently accessed base station from a Geographic Information System (GIS);
and determining a cell to which the currently accessed base station belongs according to the position information of the currently accessed base station and the geographic information around the base station, determining the current geographic position information of the user according to the cell to which the currently accessed base station belongs, and converting the geographic position information to obtain the corresponding longitude and latitude information.
Here, since each base station has an exact location record when the operator establishes the base station, the location information of the base station currently accessed by the terminal can be obtained.
S111, generating a reference travel track of the user according to the travel data;
after the travel data in the preset period are obtained, the travel data can be generated into a reference travel track of the user by using a machine learning algorithm.
As an alternative embodiment, generating a reference travel trajectory of the user according to the travel data includes:
extracting training outgoing data from the outgoing data;
merging the travel training data to form a training data set;
carrying out travel track model training by using the training data set to generate a travel track model;
and predicting a reference travel track by using the travel track model.
Here, because the travel data are too many, in order to improve the processing efficiency, some sample data may be extracted from the travel data at random as training output data, or some sample data may be extracted from the travel data according to a preset extraction rule as training output data, which is not limited herein.
As an alternative embodiment, the travel trajectory model training is performed by using a training data set to generate a travel trajectory model, and the method includes:
aiming at the training data set, training is carried out through a machine learning algorithm (such as a neural network algorithm and a logistic regression algorithm) to obtain a travel track model.
S112, when the user goes out, whether the current travel track of the user is abnormal is detected based on the reference travel track, and if the current travel track of the user is abnormal, alarm information of travel danger of the user is pushed.
In this embodiment, whether the current travel track of the user is abnormal or not may be determined in two ways, one is determined by time, and the other is determined by route deviation, and as long as one of the conditions is met, it is determined that the current travel track is abnormal. As an optional embodiment, detecting whether the current travel trajectory of the user is abnormal based on the reference travel trajectory includes:
judging whether the deviation distance between the current trip track and the reference trip track is within a preset deviation distance or not; judging whether the current travel track reaches a corresponding reference travel scene in the reference travel track at any current target time point;
and if any judgment result is negative, determining that the current travel track of the user is abnormal.
When judging whether the current travel track of the user is abnormal or not through time, the method is specifically realized as follows:
as an optional embodiment, detecting whether the current travel trajectory of the user is abnormal based on a reference travel trajectory includes:
according to the reference travel track, predetermining a reference travel scene corresponding to each target time point of the user;
in order to improve the alarm precision, when a user goes out, the traffic state of the user in the outgoing process is detected, if the traffic state is a smooth state, whether the user reaches a corresponding reference outgoing scene at any current target time point is detected, and if not, the current outgoing track of the user is determined to be abnormal.
For example, a reference trip scene corresponding to the time period from 6 pm to 6 pm of the user a should be a next-shift scene, and if it is detected that the user a arrives at an unfamiliar scene in the time period, the unfamiliar scene is regarded as a high-risk scene, and alarm information of trip danger of the user is pushed. Wherein the strange scene may include: suburban, hotel and other scenes.
However, if it is detected that the user a arrives at a certain office scene (for example, a bank, a business hall, etc.) in the time period, a delay time is reserved for the user, and if the user arrives at the next office scene within the delayed time, the user a is considered to be in a normal trip. For example, if the reserved delay time is half an hour, even if the user a arrives at home half an hour late, the prompt message of "the friend a normally arrives at home" is pushed to the friend.
When the traffic state cannot be detected (for example, in a network-free state), even if the user does not reach the corresponding travel scene at any current target time point, the user reserves the delay time. The time keeping type of the user can be obtained, and delay time is reserved for the user according to the time keeping type; such as: if the user's timekeeping type is good, the reserved delay time may be 10min. If the user's time keeping type is normal, the reserved delay time may be 30min.
As an alternative embodiment, in order to improve the detection accuracy and prevent misjudgment, when the user goes out, if it is determined that the traffic state is a non-smooth state, the method includes:
predicting the delay time of the user according to the traffic state;
determining an arrival time point according to the delay time and the target time point;
and detecting whether the user arrives at the corresponding reference trip scene at the arrival time point, and if not, pushing alarm information of trip danger of the user.
As an alternative embodiment, predicting the delay time of the user according to the traffic state includes:
and acquiring the time of the traffic jam from a third-party map database, and determining the delay time according to the time of the traffic jam.
For example, if the time for which traffic congestion is expected is 5min, the delay time is set to 5min.
Or when the speed limit of the current road section is detected on a certain day, the arrival time point can be directly determined according to t1+ S/V; wherein t1 is the current time, S is the remaining distance, and V is the current speed limit speed.
Here, as an optional embodiment, the determining, in advance, a reference travel scene corresponding to each target time point of the user according to the reference travel trajectory includes:
acquiring longitude and latitude information corresponding to a target time point in a reference travel track;
matching longitude and latitude information corresponding to the target time point by using a map database, and determining landmark information corresponding to the longitude and latitude information (the longitude and latitude information is still the longitude and latitude information corresponding to the target time point);
and determining a corresponding reference travel scene according to the landmark information.
The map database stores building names corresponding to the longitude and latitude information in advance, and after the longitude and latitude information is obtained, the corresponding building names can be searched in the map database so as to determine the corresponding reference trip scene.
For example, the longitude and latitude information of the user a is (a, b) acquired between 8 o 'clock and half clock in the morning and 9 o' clock, and the corresponding building is determined to be a certain office building according to the longitude and latitude information, so that the corresponding reference trip scene can be determined to be the work scene.
When the longitude and latitude information of the user A is obtained as (c, d) from 6 pm to 6 pm, the corresponding building is determined to be a certain cell building according to the longitude and latitude information, and then the corresponding reference travel scene can be determined to be the arrival scene.
It should be noted that, when the corresponding reference travel scene is determined according to the landmark information, there may be a range of a distance threshold, and when the latitude and longitude information of the user satisfies the range of the threshold, it may also be regarded as that a certain reference travel scene is reached. For example, when the longitude and latitude information of the user a is obtained as (e, f) from 6 pm to 6 pm, and it is detected that the distance between the longitude and latitude information as (e, f) and the longitude and latitude information as (c, d) satisfies the preset distance threshold range, the current reference travel scene of the user a may be regarded as the arrival scene. The preset distance threshold range is generally set to be less than or equal to 500m.
Of course, the user may manually set the location information of the attendance scene and the attendance time to ensure the accuracy.
And when the user is matched with a new travel scene, a prompt message showing whether the new scene is expanded or not is popped up, and when the confirmation message of the user is received, the new scene is automatically added.
For example, if the user a is matched to the gym at about 10 am on saturday, a prompt message showing whether to add the "fitness scene" is popped up, and when the confirmation message of the user is received, the "fitness scene" is automatically added.
When judging whether the current travel track is abnormal or not through the route deviation, the method is specifically realized as follows:
as an optional embodiment, detecting whether the current travel trajectory of the user is abnormal based on the reference travel trajectory includes:
acquiring a current travel scene corresponding to any current target time point of a user in the current travel track;
acquiring a reference travel scene corresponding to the target time point in the reference travel track;
and judging whether the distance between the current trip scene and the reference trip scene is within a preset first deviation distance, and if not, determining that the current trip track of the user is abnormal.
Wherein the first deviation distance is typically set to 2km, such as: and at a certain target time point, when the distance between the current travel scene and the reference travel scene is more than 2km, the current travel track of the user is considered to be abnormal.
As an optional embodiment, detecting whether the current travel trajectory of the user is abnormal based on a reference travel trajectory includes:
judging whether the distance between the current travel scene and the reference travel scene is within a preset second deviation distance, if so, continuously judging whether the next travel scene of the current travel scene is consistent with the next reference travel scene of the reference travel scene, and if so, determining that the current travel track of the user is not abnormal.
Here, the second offset distance is set to 200 to 300m, which may be set according to actual circumstances. For example, if a congestion occurs at a certain target time point, the user may bend around a small curve in order to avoid the congestion, and at this time, the current travel scene corresponding to the target time point is inevitably inconsistent with the reference travel scene, but if it is determined in the subsequent current travel trajectory whether the next travel scene of the current travel scene is consistent with the next reference travel scene of the reference travel scene, it is determined that the current travel trajectory of the user is not abnormal.
As an optional embodiment, in order to prevent the misjudgment, the method further includes:
the method comprises the steps of acquiring electric quantity information of a terminal of a user in a trip process in real time, and determining that the current trip track of the user is not abnormal when the terminal is determined to be in a shutdown state according to the electric quantity information.
That is, when it is detected that the terminal is in a power-off state during the trip process, it is determined that the current trip trajectory of the user is not abnormal.
As an optional embodiment, in order to ensure the continuity of the information, the client may also cache the target time point and the corresponding latitude and longitude information in the local storage in a non-network state, and upload the information in the local storage to the server when there is a network. The format of the information uploaded by the terminal may be as follows:
{"latitude":"39.98336029","longitude":"116.49137878","time":"1533785724","state":"Walking"}
latitude represents Latitude, longitude represents longitude, and time represents a time stamp, and the accuracy can be up to second; state represents the current state. Such as the timestamp "1533785724" described above, may be converted to time: "2018/8/911" current status may include: the states of Still, walking, driving and the like can be determined according to the sensor data of the terminal.
Here, in order to prevent the erroneous determination and improve the accuracy of the detection, the method further includes:
detecting the motion state of the user in the traveling process, and judging whether the current traveling track of the user is abnormal or not according to the motion state. The motion state of the user in the traveling process can be determined according to the current state of the terminal, and the current state of the terminal is determined according to the sensor data of the terminal. For example, the operation speed can be determined according to a speed sensor of the terminal, and then whether the terminal is in a static Still state, a Walking state or a Driving state can be determined according to the operation speed.
As an optional embodiment, the assisting in determining whether the current travel trajectory of the user is abnormal according to the motion state includes:
and if the traffic state is an unobstructed state, but the running state is a static state, and the duration time of the static state meets a preset time threshold, determining that the current travel track of the user is abnormal. Wherein, the time threshold is generally set to 0.5-1 h.
As an optional embodiment, when the alarm information is pushed, the alarm information may be pushed to any object in a friend of the user, an emergency contact, and an alarm platform. And the push can be performed according to the priorities of friends, emergency contacts and an alarm platform of the user.
When the alarm information is pushed according to the priorities of friends, emergency contacts and an alarm platform of the user, the alarm information is pushed to the friends firstly, when the alarm information of the user in danger of going out is pushed to the friends, a network channel is preferably selected to be pushed to the friends, and the alarm information can also be pushed through instant messaging software such as QQ and WeChat.
As an optional embodiment, after the alarm information of the user's trip danger is pushed to the friend, the method includes:
and detecting whether the alarm information is successfully pushed from the network channel, if not, indicating that the network channel is not available, and sending the alarm information to the friend in a short message form. And whether an emergency contact exists or not can be continuously detected, and if the emergency contact exists, short message alarm information is also sent to the emergency contact.
As an alternative embodiment, if it is detected that there is no emergency contact, the method includes: and automatically dialing an alarm call to the alarm platform.
As an optional embodiment, after the alarm information of the trip danger of the user is pushed, the method includes: and automatically sharing the real-time position information of the user.
Here, when sharing the location information, the location information can be shared by a plurality of friends at the same time, and the number of the location information is set to 5 in this embodiment.
Similarly, in a network state, the real-time location information can be shared by friends preferentially through a network channel, and can also be shared through instant messaging software such as QQ and WeChat. And when the network state is unavailable, the network state can be shared with friends or emergency contacts in a short message mode. The emergency contact and the friend may be the same person or different persons.
Here, it should be noted that, the reference travel trajectory of the user can be determined by performing steps S110 to S111 once, and step S112 can be performed multiple times, that is, each time the user travels, the current travel trajectory of the user can be identified according to the reference travel trajectory determined in steps S110 to S112.
Based on the same inventive concept, the embodiment of the application further provides a device for identifying the travel track of the user, which is detailed in the second embodiment.
Example two
The present embodiment provides an apparatus for identifying a travel track of a user, as shown in fig. 2, the apparatus includes: an acquisition unit 21, a generation unit 22, and a detection unit 23; wherein, the first and the second end of the pipe are connected with each other,
generally, users who do not frequently go on a business trip have a fixed travel route, such as a working group or a group of children for full-time pickup, the travel route of the working group is generally between home and company in the week, and the travel route of the group of children for full-time pickup is generally between home and school. Therefore, it is practical to research the user trip safety according to the trip data of the user, and the obtaining unit 21 may obtain the trip data of the user in a preset period, where the trip data is obtained in units of days in the embodiment, and the preset period is 30 days, and may also be set according to actual needs.
As an alternative embodiment, the obtaining unit 21 is specifically configured to: and in a preset period, acquiring corresponding time points and longitude and latitude information corresponding to each time point according to a preset time interval.
For example, the time interval may be set to 10s, that is, the currently corresponding time point and the longitude and latitude information corresponding to each time point are automatically obtained every 10 s. Of course, the client may also automatically acquire the current corresponding time point and the longitude and latitude information corresponding to each time point every 10 seconds, and then report to the server.
As an alternative embodiment, the obtaining unit 21 is specifically configured to: and in a preset period, acquiring corresponding time points and longitude and latitude information corresponding to each time point according to a preset travel distance interval.
For example, the travel distance interval may be set to 200m, and then the current corresponding time point and the longitude and latitude information corresponding to each time point are automatically obtained once every 200m interval. Here, the client may also automatically obtain the current corresponding time point and the longitude and latitude information corresponding to each time point, and then report to the server.
As an optional embodiment, when acquiring the longitude and latitude information corresponding to each time point, the acquiring unit 21 may directly acquire the longitude and latitude information by using a Global Positioning System (GPS), or may query a geographic location by using base station information or WiFi information, and then determine the longitude and latitude information by using the geographic location.
When determining the longitude and latitude information through the WiFi information, the following is specifically realized:
scanning and collecting wireless Access points around a terminal, and acquiring Media Access Control (MAC) addresses of the wireless Access points; the MAC address of the wireless access point is sent to the server, the server can retrieve the geographic position information of each wireless access point from the position database according to the MAC address information of the wireless access point, coordinate operation is carried out on the geographic position information of each wireless access point, and specific longitude and latitude information is determined. When the longitude and latitude information of all the wireless access points is determined, the current longitude and latitude information of the user can be determined according to the longitude and latitude information of all the wireless access points. The more the number of the wireless access points is, the more accurate the accuracy of determining the current longitude and latitude information of the user is.
When the latitude and longitude information is determined through the base station information, the following is specifically realized:
acquiring the position information of a base station currently accessed by a terminal;
acquiring Geographic Information of the current access according to the surrounding of the position Information of the current access base station from a Geographic Information System (GIS);
and determining a cell to which the currently accessed base station belongs according to the position information of the currently accessed base station and the geographic information around the base station, determining the current geographic position information of the user according to the cell to which the currently accessed base station belongs, and converting the geographic position information to obtain the corresponding longitude and latitude information.
Here, since each base station has an exact location record when the operator establishes the base station, the location information of the base station currently accessed by the terminal can be obtained.
After the travel data in the preset period are obtained, the generating unit 22 is configured to generate the reference travel track of the user according to the travel data by using a machine learning algorithm.
As an alternative embodiment, referring to fig. 3, the generating unit 22 includes:
an extraction subunit 31, configured to extract training outgoing data from the outgoing data;
a merging subunit 32, configured to merge the travel training data to form a training data set;
a generating subunit 33, configured to perform travel trajectory model training using the training data set to generate a travel trajectory model;
and the predicting subunit 34 is configured to predict the reference travel trajectory by using the travel trajectory model.
Here, because the travel data are too many, in order to improve the processing efficiency, some sample data may be extracted from the travel data at random as the training travel data, or some sample data may be extracted from the travel data according to a preset extraction rule as the training travel data, which is not limited herein.
As an alternative embodiment, the travel trajectory model training is performed by using a training data set to generate a travel trajectory model, and the method includes:
aiming at the training data set, training is carried out through a machine learning algorithm (such as a neural network algorithm and a logistic regression algorithm) to obtain a travel track model.
As an optional embodiment, the detecting unit 23 is configured to detect whether the current travel trajectory of the user is abnormal based on a reference travel trajectory when the user travels, and if so, push warning information of a user travel danger.
The detecting unit 23 in this embodiment may determine whether the current travel track of the user is abnormal through two ways, one is determined through time determination, and the other is determined through route deviation, and when one of the ways is satisfied, it is determined that the current travel track is abnormal. As an optional embodiment, detecting whether the current travel trajectory of the user is abnormal based on the reference travel trajectory includes:
judging whether the deviation distance between the current trip track and the reference trip track is within a preset deviation distance or not; judging whether the current travel track reaches a corresponding reference travel scene in the reference travel track at any current target time point;
and if any judgment result is negative, determining that the current travel track of the user is abnormal.
When the detecting unit 23 determines whether the current travel track of the user is abnormal or not by time, the following specific implementation is performed:
as an alternative embodiment, the detecting unit 23 is specifically configured to:
according to the reference travel track, determining a reference travel scene corresponding to each target time point of the user in advance;
in order to improve the alarm precision, when a user goes out, the traffic state of the user in the outgoing process is detected, if the traffic state is an open-travel state, whether the user reaches a corresponding reference outgoing scene at any current target time point is detected, and if not, the current outgoing track of the user is determined to be abnormal.
For example, a reference trip scene corresponding to the time period from 6 pm to 6 pm of the user a should be a next-shift scene, and if it is detected that the user a arrives at an unfamiliar scene in the time period, the unfamiliar scene is regarded as a high-risk scene, and alarm information of trip danger of the user is pushed. Wherein the strange scene may include: suburban, hotel and the like.
However, if it is detected that the user a arrives at some office scenes (such as banks, business halls, etc.) in the time period, a delay time is reserved for the user, and if the user arrives at the next office scene within the delayed time, the user a is considered to be a normal trip. For example, if the reserved delay time is half an hour, even if the user a arrives at home half an hour late, the prompt message "friend a normally arrives at home" is pushed to the friend.
When the traffic state cannot be detected (for example, in a network-free state), even if the user does not arrive at the corresponding travel scene at any current target time point, the user may reserve the delay time. The time keeping type of the user can be obtained, and delay time is reserved for the user according to the time keeping type; such as: if the user's time keeping type is good, the reserved delay time may be 10min. If the user's time keeping type is normal, the reserved delay time may be 30min.
As an optional embodiment, in order to improve the detection accuracy and prevent erroneous determination, when the user goes out, if it is determined that the traffic state is a non-smooth state, the detecting unit 23 is specifically configured to:
predicting the delay time of the user according to the traffic state;
determining an arrival time point according to the delay time and the target time point;
and detecting whether the user arrives at the corresponding reference trip scene at the arrival time point, and if not, pushing alarm information of trip danger of the user.
As an alternative embodiment, predicting the delay time of the user according to the traffic state includes:
and acquiring the time of traffic jam from the third-party map database, and determining the delay time according to the time of traffic jam.
For example, if the time for which traffic congestion is expected is 5min, the delay time is set to 5min.
Or when the speed limit of the current road section is detected in a certain day, the arrival time point can be directly determined according to t1+ S/V; wherein t1 is the current time, S is the remaining distance, and V is the current speed limit speed.
Here, as an alternative embodiment, the determining, in advance, a reference travel scene corresponding to each target time point of the user according to the reference travel trajectory includes:
acquiring longitude and latitude information corresponding to a target time point in a reference travel track;
matching longitude and latitude information corresponding to the target time point by using a map database, and determining landmark information corresponding to the longitude and latitude information (the longitude and latitude information is still the longitude and latitude information corresponding to the target time point);
and determining a corresponding reference travel scene according to the landmark information.
The corresponding building name can be searched in the map database after the longitude and latitude information is obtained, so that the corresponding reference travel scene can be determined.
For example, the longitude and latitude information of the user a is (a, b) acquired between 8 o 'clock and half clock in the morning and 9 o' clock, and the corresponding building is determined to be a certain office building according to the longitude and latitude information, so that the corresponding reference trip scene can be determined to be the work scene.
When the longitude and latitude information of the user A is obtained in half from 6 pm to 6 pm as (c, d), the corresponding building is determined to be a certain cell building according to the longitude and latitude information, and then the corresponding reference travel scene can be determined to be an arrival scene.
It should be noted that, when the corresponding reference trip scene is determined according to the landmark information, there may be a distance threshold range, and when the latitude and longitude information of the user satisfies the threshold range, it may also be regarded that a certain reference trip scene is reached. For example, when the longitude and latitude information of the user a is obtained as (e, f) from 6 pm to 6 pm, and it is detected that the distance between the longitude and latitude information as (e, f) and the longitude and latitude information as (c, d) satisfies the preset distance threshold range, the current reference travel scene of the user a may be regarded as the arrival scene. The preset distance threshold range is generally set to be less than or equal to 500m.
Of course, the user may manually set the location information of the attendance scene and the attendance time to ensure the accuracy.
And when a new travel scene of the user is matched, a prompt message showing whether the new scene is expanded or not is popped up, and when confirmation information of the user is received, the new scene is automatically added.
For example, if the user a is matched to the gym at about 10 am on saturday, a prompt message showing whether to add the "fitness scene" is popped up, and when the confirmation message of the user is received, the "fitness scene" is automatically added.
When the detecting unit 23 determines whether the current travel trajectory is abnormal through the route deviation, the following specific implementation is implemented:
as an alternative embodiment, the detecting unit 23 is specifically configured to:
acquiring a current travel scene corresponding to any current target time point of a user in a current travel track;
acquiring a reference travel scene corresponding to the target time point in the reference travel track;
and judging whether the distance between the current trip scene and the reference trip scene is within a preset first deviation distance, and if not, determining that the current trip track of the user is abnormal.
Wherein the first deviation distance is typically set to 2km, such as: and at a certain target time point, when the distance between the current travel scene and the reference travel scene is more than 2km, the current travel track of the user is considered to be abnormal.
As an alternative embodiment, the detecting unit 23 is specifically configured to:
judging whether the distance between the current trip scene and the reference trip scene is within a preset second deviation distance, if so, continuously judging whether the next trip scene of the current trip scene is consistent with the next reference trip scene of the reference trip scene, and if so, determining that the current trip track of the user is abnormal.
Here, the second offset distance is set to 200 to 300m, and may be set according to actual circumstances. For example, if a congestion occurs at a certain target time point, the user may bend around a small curve in order to avoid the congestion, and at this time, the current travel scene corresponding to the target time point is inevitably inconsistent with the reference travel scene, but if it is determined in the subsequent current travel trajectory whether the next travel scene of the current travel scene is consistent with the next reference travel scene of the reference travel scene, it is determined that the current travel trajectory of the user is not abnormal.
As an alternative embodiment, in order to prevent misjudgment, the detecting unit 23 is further configured to:
the method comprises the steps of acquiring electric quantity information of a terminal of a user in a trip process in real time, and determining that the current trip track of the user is not abnormal when the terminal is determined to be in a shutdown state according to the electric quantity information.
That is, when it is detected that the terminal is in a power-off state during the travel, it is determined that the current travel track of the user is not abnormal.
As an optional embodiment, in order to ensure the continuity of the information, the client may also cache the target time point and the corresponding latitude and longitude information in the local storage in a non-network state, and upload the information in the local storage to the server when there is a network. The format of the information uploaded by the terminal can be as follows:
{"latitude":"39.98336029","longitude":"116.49137878","time":"1533785724","state":"Walking"}
latitude represents Latitude, longitude represents longitude, and time represents time stamp, which can be accurate to second; state represents the current state. Such as the timestamp "1533785724" described above, may be converted to time: "2018/8/911: the states of Still, walking, driving and the like can be determined according to the sensor data of the terminal.
Here, in order to prevent erroneous determination and improve the detection accuracy, the detection unit 23 is configured to:
the method comprises the steps of detecting the motion state of a user in the traveling process, and judging whether the current traveling track of the user is abnormal or not according to the motion state. The motion state of the user in the traveling process can be determined according to the current state of the terminal, and the current state of the terminal is determined according to the sensor data of the terminal. For example, the operation speed can be determined according to the speed sensor of the terminal, and then the terminal is determined to be in a Still state, a Walking state or a Driving state according to the operation speed.
As an optional embodiment, the assisting in determining whether the current travel trajectory of the user is abnormal according to the motion state includes:
and if the traffic state is an open-travel state, the running state is a static state, and the duration time of the static state meets a preset time threshold, determining that the current travel track of the user is abnormal. Wherein, the time threshold is generally set to 0.5-1 h.
As an optional embodiment, when the alarm information is pushed, the alarm information may be pushed to any object in a friend of the user, an emergency contact, and an alarm platform. And the push can also be carried out in sequence according to the priorities of friends, emergency contacts and alarm platforms of the user.
When pushing is performed according to priorities of friends, emergency contacts and an alarm platform of a user, the detection unit 23 first pushes alarm information to the friends, and when the alarm information of the user about traveling danger is pushed to the friends, a network channel is preferentially selected to push the alarm information to the friends, and the alarm information can also be pushed through instant messaging software such as QQ and WeChat.
As an alternative embodiment, the detecting unit 23 is further configured to: after the alarm information of the trip danger of the user is pushed to the friend, whether the alarm information is successfully pushed from the network channel is detected, if the alarm information is not successfully pushed, the network channel is indicated to be not communicated at the moment, and the alarm information is sent to the friend in a short message mode. And whether an emergency contact exists or not can be continuously detected, and if the emergency contact exists, short message alarm information is also sent to the emergency contact.
As an alternative embodiment, if it is detected that there is no emergency contact, the detecting unit 23 is configured to: and automatically dialing an alarm call to the alarm platform.
As an alternative embodiment, referring to fig. 1, the apparatus further comprises: and the sharing unit 24 is configured to automatically share the real-time location information of the user after the alarm information of the user trip danger is pushed.
Here, when sharing the location information, the location information can be shared with a plurality of friends at the same time, and the number of the location information is set to 5 in this embodiment.
Similarly, in a network state, the real-time location information can be shared by friends preferentially through a network channel, and can also be shared through instant messaging software such as QQ and WeChat. And when the network state is unavailable, the network state can be shared with friends or emergency contacts in a short message mode. The emergency contact and the friend may be the same person or different persons.
The technical scheme provided in the embodiment of the application at least has the following technical effects or advantages:
the embodiment of the application provides a method, a device and computer equipment for identifying a travel track of a user, wherein the method comprises the following steps: acquiring travel data of a user in a preset period; generating a reference travel track of the user according to the travel data; when the user goes out, detecting whether the current going-out track of the user is abnormal or not based on the reference going-out track, and if the current going-out track of the user is abnormal, pushing alarm information of user going-out danger; therefore, the reference travel track of the user is generated in advance according to the travel habit of the user, when the user travels, the current travel track of the user can be detected according to the reference travel track, and if abnormity is detected, alarm information of user travel danger can be automatically pushed so as to ensure the travel safety of the user.
EXAMPLE III
In practical application, the travel track of the user can be identified by using the method and the device, and the method is specifically realized as follows:
first, add family information, which may also be referred to as a friend as described above, and add friend interface is shown in fig. 4.
After the family information is added, real-time position sharing, chatting and the like can be carried out between the user and the family. When the method and the device in the embodiment detect that the user arrives at the work scene or the home scene at the target time point, the prompt message of 'I have work' or 'I have home' is automatically pushed to the family.
When the situation that the user does not arrive at the working scene or the home scene at the target time point is detected, alarm information of travel danger can be pushed to the family.
In order to send alarm information in a network-free state, an emergency contact can be set in the embodiment, a user can add the emergency contact by clicking 'emergency help' on the main interface, and after the setting is successful, when the network-free state exists, alarm information of trip danger can be sent to the emergency contact in a short message mode. Wherein, the emergency contact can be selected from family members or can be added additionally. An interface for setting up emergency contacts is shown in fig. 5.
After the family information and the emergency contact are set, the position sharing can be carried out with the family, and after the sharing is successful, the family can check the real-time position of the user within 1 hour. When the alarm information of trip danger is detected to be sent, the real-time position can be automatically shared by the family or the emergency contact person, so that the family or the emergency contact person can take safety measures for response. The interface for sharing locations is shown in fig. 6.
When the user needs to obtain the position reminding all the time, the user can click the position reminding on the main interface to set, so that the server can remind the current position of the family or the emergency contact user all the time. The interface that always allows the location hint to be obtained is shown in fig. 7.
In the embodiment, a safe trip can be further set, and third-party vehicle software, such as a dribble trip, a state trip and the like, can be downloaded in the safe trip so as to facilitate the trip of a user. The safe trip interface is shown in fig. 8.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system is apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the devices in an embodiment may be adaptively changed and arranged in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Moreover, those of skill in the art will appreciate that while some embodiments herein include some features included in other embodiments, not others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of a server, apparatus, computer device according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses a method for identifying a travel track of a user, which comprises the following steps:
acquiring travel data of a user in a preset period;
generating a reference travel track of the user according to the travel data;
when the user goes out, whether the current trip track of the user is abnormal or not is detected based on the reference trip track, and if the current trip track of the user is abnormal, alarm information of trip danger of the user is pushed.
The method A2, as described in the method A1, the obtaining of the trip data of the user in the preset period includes:
and in the preset period, acquiring corresponding time points and longitude and latitude information corresponding to each time point according to a preset travel distance interval.
The method of A1, where the obtaining of the trip data of the user in the preset period includes:
and acquiring corresponding time points and longitude and latitude information corresponding to each time point according to a preset time interval in the preset period.
A4, the method according to A1, where generating the reference travel trajectory of the user according to the travel data includes:
training outgoing data is extracted from the outgoing data;
merging the trip training data to form a training data set;
performing travel track model training by using the training data set to generate a travel track model;
and predicting the reference travel track by using the travel track model.
A5, the method according to A1, where the detecting whether the current travel trajectory of the user is abnormal based on the reference travel trajectory includes:
judging whether the deviation distance between the current trip track and the reference trip track is within a preset deviation distance or not; judging whether the current travel track reaches a corresponding reference travel scene in the reference travel track at any current target time point;
and if any judgment result is negative, determining that the current travel track of the user is abnormal.
A6, the method according to A1, where detecting whether the current travel trajectory of the user is abnormal based on the reference travel trajectory includes:
according to the reference travel track, determining a reference travel scene corresponding to each target time point of the user in advance;
detecting a traffic state of the user in a traveling process, if the traffic state is an unobstructed state, detecting whether the user reaches a corresponding reference traveling scene at any current target time point, and if not, determining that the current traveling track of the user is abnormal.
The method according to A7 and A6, if the traffic state is a non-obstructed state, includes:
predicting the delay time of the user according to the traffic state;
determining an arrival time point according to the delay time and the target time point;
and detecting whether the user arrives at the corresponding reference travel scene at the arrival time point, and if not, determining that the current travel track of the user is abnormal.
A8, the method according to A1, where the detecting whether the current travel trajectory of the user is abnormal based on the reference travel trajectory includes:
acquiring a current travel scene corresponding to any current target time point of the user in the current travel track;
acquiring a reference travel scene corresponding to the target time point in the reference travel track;
and judging whether the distance between the current travel scene and the reference travel scene is within a preset first deviation distance, and if not, determining that the current travel track of the user is abnormal.
A9, the method according to A8, where the detecting whether the current travel trajectory of the user is abnormal based on the reference travel trajectory includes:
judging whether the distance between the current travel scene and the reference travel scene is within a preset second deviation distance, if so, continuously judging whether the next travel scene of the current travel scene is consistent with the next reference travel scene of the reference travel scene, and if so, determining that the current travel track of the user is not abnormal.
A10, the method as recited in A1, the method further comprising:
acquiring the electric quantity information of the terminal of the user in the travel process in real time, and determining that the current travel track of the user is not abnormal when the terminal is determined to be in a power-off state according to the electric quantity information.
The method of a11, as described in A1, the pushing of the alarm information of the trip danger of the user includes:
and pushing the alarm information of the user trip danger to the friend.
The method a12, as described in a11, after the alarm information of the trip danger of the user is pushed to the friend, includes:
and detecting whether the alarm information is pushed successfully, if not, continuously detecting whether an emergency contact exists, and if so, sending short message alarm information to the emergency contact.
The method according to a13 and a12, if it is detected that the emergency contact does not exist, includes: and dialing an alarm call to the alarm platform.
B14, an apparatus for identifying a travel track of a user, the apparatus comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring travel data of a user in a preset period;
a generating unit, configured to generate a reference travel track of the user according to the travel data;
and the detection unit is used for detecting whether the current travel track of the user is abnormal or not based on the reference travel track when the user travels, and if the current travel track of the user is abnormal, pushing alarm information of travel danger of the user.
B15, in the apparatus according to B14, the obtaining unit is specifically configured to:
and in the preset period, acquiring corresponding time points and longitude and latitude information corresponding to the time points according to preset travel distance intervals.
B16, in the apparatus according to B14, the obtaining unit is specifically configured to:
and in the preset period, acquiring corresponding time points and longitude and latitude information corresponding to each time point according to preset time intervals.
B17, the apparatus as in B14, the generating unit comprising:
the extraction subunit is used for extracting training outgoing data from the outgoing data;
a merging subunit, configured to merge the travel training data to form a training data set;
a generating subunit, configured to perform travel trajectory model training using the training data set to generate the travel trajectory model;
and the predicting subunit is used for predicting the travel track by using the travel track model.
B18, the apparatus as in B14, wherein the detection unit is specifically configured to:
judging whether the deviation distance between the current trip track and the reference trip track is within a preset deviation distance or not; judging whether the current travel track reaches a corresponding reference travel scene in the reference travel track at any current target time point;
and if any judgment result is negative, determining that the current travel track of the user is abnormal.
B19, the apparatus as in B14, wherein the detection unit is specifically configured to:
according to the reference travel track, determining a reference travel scene corresponding to each target time point of the user in advance;
detecting the traffic state of the user in the traveling process, if the traffic state is an unobstructed state, detecting whether the user reaches a corresponding reference traveling scene at any current target time point, and if not, determining that the current traveling track of the user is abnormal.
B20, the apparatus according to B19, wherein the detection unit is specifically configured to:
if the traffic state is a non-smooth state, estimating the delay time of the user according to the traffic state;
determining an arrival time point according to the delay time and the target time point;
and detecting whether the user arrives at the corresponding reference travel scene at the arrival time point, and if not, determining that the current travel track of the user is abnormal.
B21, the apparatus according to B14, wherein the detection unit is specifically configured to:
acquiring a current travel scene corresponding to any current target time point of the user in the current travel track;
acquiring a reference travel scene corresponding to the target time point in the reference travel track;
and judging whether the distance between the current travel scene and the reference travel scene is within a preset first deviation distance, and if not, determining that the current travel track of the user is abnormal.
B22, the apparatus as in B21, wherein the detection unit is specifically configured to:
judging whether the distance between the current trip scene and the reference trip scene is within a preset second deviation distance, if so, continuously judging whether the next trip scene of the current trip scene is consistent with the next reference trip scene of the reference trip scene, and if so, determining that the current trip track of the user is abnormal.
B23, the apparatus as in B14, wherein the detection unit is specifically configured to:
acquiring the electric quantity information of the terminal of the user in the travel process in real time, and determining that the current travel track of the user is not abnormal when the terminal is determined to be in a power-off state according to the electric quantity information.
B24, the apparatus as in B14, wherein the detection unit is specifically configured to:
and pushing the alarm information of the user trip danger to the friends.
B25, the apparatus as in B24, the detecting unit is configured to:
after the alarm information of user trip danger is pushed to the friend, whether the alarm information is pushed successfully is detected, if not, whether an emergency contact exists is continuously detected, and if so, short message alarm information is sent to the emergency contact.
B26, the apparatus as in B25, the detecting unit is configured to: and if the emergency contact person is detected to be absent, dialing an alarm call to an alarm platform.
C27, a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of any one of A1 to a 13.
D28, a computer device for identifying a travel track of a user, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein the memory stores program instructions executable by the processor to invoke the steps of the method described in any of A1-a 13.

Claims (24)

1. A method for identifying a travel trajectory of a user, the method comprising: acquiring travel data of a user in a preset period;
generating a reference travel track of the user according to the travel data;
when the user goes out, judging whether the current travel track of the user is abnormal or not based on the passing time and/or the offset route of the reference travel track, and if the current travel track of the user is abnormal, pushing alarm information of travel danger of the user;
the judging whether the current travel track of the user is abnormal or not through route deviation based on the reference travel track includes:
acquiring a current travel scene corresponding to any current target time point of the user in the current travel track;
acquiring a reference travel scene corresponding to the target time point in the reference travel track;
judging whether the distance between the current travel scene and the reference travel scene is within a preset first deviation distance or not, and if not, determining that the current travel track of the user is abnormal; and
judging whether the distance between the current trip scene and the reference trip scene is within a preset second deviation distance, if so, continuously judging whether the next trip scene of the current trip scene is consistent with the next reference trip scene of the reference trip scene, if so, determining that the current trip track of the user is abnormal, and the first deviation distance is greater than the second deviation distance.
2. The method of claim 1, wherein the obtaining of the travel data of the user in a preset period comprises:
and in the preset period, acquiring corresponding time points and longitude and latitude information corresponding to the time points according to preset travel distance intervals.
3. The method of claim 1, wherein the obtaining of the travel data of the user in the preset period comprises:
and in the preset period, acquiring corresponding time points and longitude and latitude information corresponding to each time point according to preset time intervals.
4. The method of claim 1, wherein said generating a reference travel trajectory for said user from said travel data comprises:
training outgoing data are extracted from the outgoing data;
merging the training outgoing data to form a training data set;
carrying out travel track model training by using the training data set to generate a travel track model;
and predicting the reference travel track by using the travel track model.
5. The method of claim 1, wherein the determining whether the current travel trajectory of the user is abnormal based on the reference travel trajectory passing time comprises:
judging whether the current travel track reaches a corresponding reference travel scene in the reference travel track at any current target time point;
and if the judgment result is negative, determining that the current travel track of the user is abnormal.
6. The method of claim 5, wherein the determining whether the current travel trajectory of the user is abnormal based on the reference travel trajectory passing time comprises:
according to the reference travel track, determining a reference travel scene corresponding to each target time point of the user in advance;
detecting the traffic state of the user in the traveling process, if the traffic state is an unobstructed state, detecting whether the user reaches a corresponding reference traveling scene at any current target time point, and if not, determining that the current traveling track of the user is abnormal.
7. The method of claim 6, wherein if the traffic condition is a non-unobstructed condition, comprising:
predicting the delay time of the user according to the traffic state;
determining an arrival time point according to the delay time and the target time point;
and detecting whether the user arrives at the corresponding reference travel scene at the arrival time point, and if not, determining that the current travel track of the user is abnormal.
8. The method of claim 1, wherein the method further comprises:
acquiring the electric quantity information of the user in the travel process in real time, and determining that the current travel track of the user is not abnormal when the terminal is determined to be in a shutdown state according to the electric quantity information.
9. The method of claim 1, wherein the pushing of the warning information of the trip danger of the user comprises:
and pushing the alarm information of the user trip danger to the friends.
10. The method of claim 9, wherein after the pushing the alarm information of the user trip danger to the friend, the method comprises:
and detecting whether the alarm information is pushed successfully, if not, continuously detecting whether an emergency contact exists, and if so, sending short message alarm information to the emergency contact.
11. The method of claim 10, wherein detecting the absence of the emergency contact comprises: and dialing an alarm call to the alarm platform.
12. An apparatus for identifying a travel trajectory of a user, the apparatus comprising: the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring travel data of a user in a preset period;
a generating unit, configured to generate a reference travel track of the user according to the travel data;
the detection unit is used for judging whether the current travel track of the user is abnormal or not based on the passing time and/or the offset route of the reference travel track when the user travels, and if the current travel track of the user is abnormal, pushing alarm information of travel danger of the user;
the determining whether the current travel track of the user is abnormal through route deviation based on the reference travel track includes:
acquiring a current travel scene corresponding to any current target time point of the user in the current travel track;
acquiring a reference travel scene corresponding to the target time point in the reference travel track;
judging whether the distance between the current travel scene and the reference travel scene is within a preset first deviation distance or not, and if not, determining that the current travel track of the user is abnormal; and
judging whether the distance between the current trip scene and the reference trip scene is within a preset second deviation distance, if so, continuously judging whether the next trip scene of the current trip scene is consistent with the next reference trip scene of the reference trip scene, if so, determining that the current trip track of the user is abnormal, and the first deviation distance is greater than the second deviation distance.
13. The apparatus according to claim 12, wherein the obtaining unit is specifically configured to: in the preset period, acquiring corresponding time points and each time point according to a preset travel distance interval
And longitude and latitude information corresponding to the time points.
14. The apparatus according to claim 12, wherein the obtaining unit is specifically configured to: in the preset period, acquiring corresponding time points and each time according to preset time intervals
And corresponding longitude and latitude information.
15. The apparatus of claim 12, wherein the generating unit comprises: the extraction subunit is used for extracting training outgoing data from the outgoing data;
the merging subunit is used for merging the training output data to form a training data set;
a generating subunit, configured to perform travel trajectory model training using the training data set to generate the travel trajectory model;
and the predicting subunit is used for predicting the travel track by using the travel track model.
16. The apparatus as claimed in claim 12, wherein said detection unit is specifically configured to: judging whether the current travel track reaches a corresponding reference travel scene in the reference travel track at any current target time point;
and if the judgment result is negative, determining that the current travel track of the user is abnormal.
17. The apparatus of claim 12, wherein the detection unit is specifically configured to: according to the reference travel track, determining reference travel corresponding to each target time point of the user in advance
A scene;
detecting a traffic state of the user in a traveling process, if the traffic state is an unobstructed state, detecting whether the user reaches a corresponding reference traveling scene at any current target time point, and if not, determining that the current traveling track of the user is abnormal.
18. The apparatus as claimed in claim 17, wherein said detection unit is specifically configured to: if the traffic state is a non-smooth state, estimating the delay time of the user according to the traffic state;
determining an arrival time point according to the delay time and the target time point;
and detecting whether the user arrives at the corresponding reference travel scene at the arrival time point, and if not, determining that the current travel track of the user is abnormal.
19. The apparatus of claim 12, wherein the detection unit is specifically configured to: acquiring the electric quantity information of the user in the travel process in real time, and determining according to the electric quantity information
And when the terminal is determined to be in a power-off state, determining that the current travel track of the user is not abnormal.
20. The apparatus of claim 12, wherein the detection unit is specifically configured to: and pushing the alarm information of the user trip danger to the friends.
21. The apparatus of claim 20, wherein the detection unit is to:
after alarm information of user trip danger is pushed to a friend, whether the alarm information is pushed successfully is detected, if not, whether an emergency contact exists is continuously detected, and if the emergency contact exists, short message alarm information is sent to the emergency contact.
22. The apparatus of claim 21, wherein the detection unit is to: and if the emergency contact person is detected to be absent, dialing an alarm call to an alarm platform.
23. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 11.
24. A computer device for identifying a travel trajectory of a user, comprising: at least one processor; and
at least one memory communicatively coupled to the processor, wherein the memory stores program instructions executable by the processor, and wherein the processor is capable of executing the steps of the method of any of claims 1 to 11 when invoked by the processor.
CN201811133535.0A 2018-09-27 2018-09-27 Method and device for identifying travel track of user and computer equipment Active CN109195113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811133535.0A CN109195113B (en) 2018-09-27 2018-09-27 Method and device for identifying travel track of user and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811133535.0A CN109195113B (en) 2018-09-27 2018-09-27 Method and device for identifying travel track of user and computer equipment

Publications (2)

Publication Number Publication Date
CN109195113A CN109195113A (en) 2019-01-11
CN109195113B true CN109195113B (en) 2022-11-04

Family

ID=64907440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811133535.0A Active CN109195113B (en) 2018-09-27 2018-09-27 Method and device for identifying travel track of user and computer equipment

Country Status (1)

Country Link
CN (1) CN109195113B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109996188B (en) * 2019-03-29 2021-11-19 广东小天才科技有限公司 Method, device and equipment for reminding abnormal travel information
CN110276020B (en) * 2019-04-22 2023-08-08 创新先进技术有限公司 Method and device for identifying travel destination of user
CN110164086B (en) * 2019-05-11 2021-11-16 任明和 Safety monitoring and emergency rescue method realized through data authorization sharing
CN113689660B (en) * 2020-05-19 2023-08-29 三六零科技集团有限公司 Safety early warning method of wearable device and wearable device
CN114530049A (en) * 2020-11-06 2022-05-24 上海擎感智能科技有限公司 Vehicle rescue and early warning method, system and computer storage medium
CN113326792B (en) * 2021-06-11 2024-03-01 杭州海康威视系统技术有限公司 Abnormality warning method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945125A (en) * 2012-10-17 2013-02-27 北京天宇朗通通信设备股份有限公司 Method and device for processing information of user terminal
CN105101095A (en) * 2015-09-25 2015-11-25 北京奇虎科技有限公司 Server, alarm method based on position information, and alarm system thereof
CN105225415A (en) * 2015-09-30 2016-01-06 北京奇虎科技有限公司 Geographic location monitoring method and geographic position monitoring equipment
CN106128026A (en) * 2016-06-15 2016-11-16 维沃移动通信有限公司 A kind of method for seeking help and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7561069B2 (en) * 2003-11-12 2009-07-14 Legalview Assets, Limited Notification systems and methods enabling a response to change particulars of delivery or pickup

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945125A (en) * 2012-10-17 2013-02-27 北京天宇朗通通信设备股份有限公司 Method and device for processing information of user terminal
CN105101095A (en) * 2015-09-25 2015-11-25 北京奇虎科技有限公司 Server, alarm method based on position information, and alarm system thereof
CN105225415A (en) * 2015-09-30 2016-01-06 北京奇虎科技有限公司 Geographic location monitoring method and geographic position monitoring equipment
CN106128026A (en) * 2016-06-15 2016-11-16 维沃移动通信有限公司 A kind of method for seeking help and mobile terminal

Also Published As

Publication number Publication date
CN109195113A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
CN109195113B (en) Method and device for identifying travel track of user and computer equipment
US20220136844A1 (en) Systems and methods for assessment of a rideshare trip
US8892350B2 (en) Journey learning system
CN105407456A (en) Method and system used for processing help-seeking information
CN109068282B (en) Method and device for identifying user travel scene and computer equipment
EP1674889A1 (en) Technique for creating, directing, storing and automatically delivering a message to an intended recipient based on climatic conditions
US11704620B2 (en) Estimating system, estimating method, and information storage medium
CN103369462A (en) Prompting message outputting method and system based on LBS (Location Based Services)
CN107615345A (en) Auxiliary device for moving, mobile auxiliary server and mobile accessory system
CN113473398B (en) Mobile phone signaling data stop point identification method, device and storage medium
Carnelli et al. Parkus: A novel vehicle parking detection system
CN105243525B (en) User reminding method and terminal
US20070194940A1 (en) Method and system for communicating travel alerts to mobile devices
JP2015156171A5 (en)
US11521238B2 (en) Method and system for determining fact of visit of user to point of interest
WO2015058721A1 (en) Methods, devices, and systems for alerting whether portable positioning device has arrived on time
CN109564724A (en) Information processing method, information processing unit and message handling program
CN109462818A (en) A kind of method, apparatus and terminal of identification user trip track
CN109068374B (en) Resident POI (Point of interest) determining method, resident POI determining device, terminal and storage medium
CN109218976A (en) Resident POI determines method, apparatus, terminal and storage medium
CN111429047A (en) Transportation task monitoring method and device
WO2015180453A1 (en) Public bus route query method, device, and equipment
US20130159230A1 (en) Data Forgetting System
JP5524741B2 (en) Exposure amount estimation system and exposure amount estimation method
CN110858424B (en) Anti-theft method and device for lottery robot and lottery robot

Legal Events

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