CN115050161B - Position monitoring alarm method and device, electronic equipment and storage medium - Google Patents

Position monitoring alarm method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115050161B
CN115050161B CN202210340045.8A CN202210340045A CN115050161B CN 115050161 B CN115050161 B CN 115050161B CN 202210340045 A CN202210340045 A CN 202210340045A CN 115050161 B CN115050161 B CN 115050161B
Authority
CN
China
Prior art keywords
coordinate set
coordinate
distance
information
determining
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
CN202210340045.8A
Other languages
Chinese (zh)
Other versions
CN115050161A (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.)
Lanzhou Lezhi Education Technology Co ltd
Original Assignee
Lanzhou Lezhi Education 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 Lanzhou Lezhi Education Technology Co ltd filed Critical Lanzhou Lezhi Education Technology Co ltd
Priority to CN202210340045.8A priority Critical patent/CN115050161B/en
Publication of CN115050161A publication Critical patent/CN115050161A/en
Application granted granted Critical
Publication of CN115050161B publication Critical patent/CN115050161B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/0266System arrangements wherein the object is to detect the exact distance between parent and child or surveyor and item

Landscapes

  • Health & Medical Sciences (AREA)
  • Child & Adolescent Psychology (AREA)
  • General Health & Medical Sciences (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

The embodiment of the invention relates to a position monitoring alarm method, a device, electronic equipment and a storage medium, which comprise the following steps: acquiring current position information of a target object; acquiring target track information, wherein the target track information comprises one or more track line segments, and the track line segments carry corresponding characteristic parameters; determining whether the current position information accords with the target track information according to the characteristic parameters; and triggering a position alarm when the current position information does not accord with the target track information. Therefore, the position of the student can be monitored in real time, and the track deviation alarm information is sent to parents after the student deviates from the common track by a certain distance, so that the safety of the student is ensured, and the timeliness of position monitoring is improved.

Description

Position monitoring alarm method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of positioning monitoring, in particular to a position monitoring alarm method, a device, electronic equipment and a storage medium.
Background
At present, along with the continuous deep of campus informatization construction, more and more students use electronic student certificates, and at present, the mainstream electronic student certificates generally realize the acquisition of student current position through technologies such as GPS, big dipper, basic station and WIFI location, and the rethread removes data and uploads to the software platform. The parental user obtains the positioning of the child through the mobile terminal application such as the APP, the applet and the like, and the electronic equipment provides a scientific and accurate technical means for the parental to pay attention to the position of the child.
In the prior art, the student position is obtained through a positioning module arranged in a student identity card terminal, student data is uploaded to a cloud platform, and parents pull the positioning data from the cloud platform, so that the current position of a child can be known. However, the current technology needs to pull data from the cloud platform to acquire positioning, and can not accurately judge whether the track of the child deviates, so that the safety and monitoring timeliness of the existing electronic student identity are low.
Disclosure of Invention
In view of the above, in order to solve the technical problems of low safety and monitoring timeliness of the electronic student identity card, the embodiment of the invention provides a position monitoring alarm method, a device, an electronic apparatus and a storage medium,
in a first aspect, an embodiment of the present invention provides a location monitoring alarm method, including:
acquiring current position information of a target object;
acquiring target track information, wherein the target track information comprises one or more track line segments, and the track line segments carry corresponding characteristic parameters;
determining whether the current position information accords with the target track information according to the characteristic parameters;
and triggering a position alarm when the current position information does not accord with the target track information.
In one possible embodiment, before the obtaining the current position information of the target object, the method further includes:
acquiring a plurality of historical position information of the target object,
normalizing the plurality of historical position information to obtain a first coordinate set;
clustering the first coordinate set to obtain a second coordinate set and a third coordinate set;
denoising the second coordinate set and the third coordinate set to obtain a fourth coordinate set and a fifth coordinate set;
determining one or more track line segments according to the fourth coordinate set and the fifth coordinate set;
and determining the target track information according to the track line segment.
In one possible implementation manner, the clustering processing is performed on the first coordinate set to obtain a second coordinate set and a third coordinate set, including:
determining a first cluster center and a second cluster center from the first coordinate set;
clustering the first coordinate set according to the first clustering center to obtain a second coordinate set;
and clustering the first coordinate set according to the second clustering center to obtain a third coordinate set.
In one possible implementation manner, the denoising processing is performed on the second coordinate set and the third coordinate set to obtain a fourth coordinate set and a fifth coordinate set, including:
determining first distances between coordinates in the second coordinate set and the third coordinate set and the first clustering center to obtain a first distance set;
determining second distances between coordinates in the second coordinate set and the third coordinate set and the second cluster center to obtain a second distance set;
determining a third distance between the first cluster center and the second cluster center;
determining coordinate points with the first distance and the second distance larger than the third distance from the first distance set and the second distance set as noise points;
removing the noise points in the second coordinate set to obtain a fourth coordinate set, and removing the noise points in the third coordinate set to obtain a fifth coordinate set.
In one possible implementation manner, the determining the target track information according to the track line segment includes:
taking coordinate points at two ends of the track line segment as partition points corresponding to the track line segment, wherein the distance from the coordinate points between adjacent partition points to the track line segment between the adjacent partition points is smaller than a set threshold value;
And determining the target track information according to the track line segments and the dividing points.
In one possible implementation manner, the determining whether the current position information accords with the target track information according to the feature parameter includes:
determining a fourth distance from the coordinates corresponding to the current position information to one or more track line segments to obtain a fourth distance set;
judging whether the coordinates corresponding to the characteristic parameters and the current position information accord with preset conditions or not;
when the preset condition is met, determining that the fourth distance is smaller than a set threshold value;
when the preset condition is not met, determining that the fourth distance is not smaller than the set threshold;
determining that the current position information accords with the target track information when any fourth distance in the fourth distance set is smaller than the set threshold value;
or alternatively, the first and second heat exchangers may be,
and under the condition that any one of the fourth distances in the fourth distance set is not smaller than the set threshold value, determining that the current position information does not accord with the target track information.
In one possible embodiment, the triggering position alarm includes:
generating prompt information and displaying the prompt information;
Generating alarm information and sending the alarm information to a target terminal.
In a second aspect, an embodiment of the present invention provides a position monitoring alarm device, including:
the acquisition module is used for acquiring the current position information of the target object;
the acquisition module is further used for acquiring target track information, wherein the target track information comprises one or more track line segments, and the track line segments carry corresponding characteristic parameters;
the determining module is used for determining whether the current position information accords with the target track information according to the characteristic parameters;
and the alarm module is used for triggering position alarm when the current position information does not accord with the target track information.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a processor and a memory, the processor being configured to execute a position monitoring alarm program stored in the memory, to implement the position monitoring alarm method of any one of the first aspects.
In a fourth aspect, an embodiment of the present invention provides a storage medium storing one or more programs executable by one or more processors to implement the position monitoring alarm method according to any one of the first aspects.
According to the position monitoring alarm scheme provided by the embodiment of the invention, the current position information of the target object is obtained; acquiring target track information, wherein the target track information comprises one or more track line segments, and the track line segments carry corresponding characteristic parameters; determining whether the current position information accords with the target track information according to the characteristic parameters; and triggering a position alarm when the current position information does not accord with the target track information. The position of the student is monitored in real time, and the track deviation alarm information is sent to parents after the student deviates from the common track by a certain distance, so that the safety of the student and the timeliness of position monitoring are ensured.
Drawings
Fig. 1 is a schematic flow chart of a position monitoring alarm method according to an embodiment of the present invention;
fig. 2 is a flow chart of a method for generating target track information according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another position monitoring and alarming method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a position monitoring alarm device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For the purpose of facilitating an understanding of the embodiments of the present invention, reference will now be made to the following description of specific embodiments, taken in conjunction with the accompanying drawings, which are not intended to limit the embodiments of the invention.
Fig. 1 is a schematic flow chart of a position monitoring alarm method according to an embodiment of the present invention, as shown in fig. 1, where the method specifically includes:
s11, acquiring current position information of a target object;
the position monitoring and alarming method provided by the embodiment of the invention is applied to the electronic equipment with the positioning function, and the electronic equipment can be: and the electronic student identity card, the intelligent watch and the like are used for triggering an alarm when the current position of the user of the electronic equipment deviates from the target track by judging whether the current position of the user of the electronic equipment deviates from the target track.
In this embodiment, the target object may be an electronic device with a positioning function or a user carrying the electronic device (for example, the target object is an electronic student card or a student carrying the electronic student card), and the current location information may be a current location coordinate of the target object, where the location coordinate may include a longitude coordinate, a latitude coordinate, and a time coordinate, which are used to characterize a location of the target object at the current time.
Specifically, the current longitude coordinate, latitude coordinate and time coordinate of the target object are acquired as the current position information by the position acquisition device.
S12, acquiring target track information, wherein the target track information comprises one or more track line segments, and the track line segments carry corresponding characteristic parameters;
in this embodiment, pre-stored target track information is obtained, where the target track information characterizes a target track of the target object, and the target track information may be determined by a plurality of history track information, or may be set autonomously by a user (for example, the history track information includes a plurality of history tracks, and a history track that the target object passes through the plurality of history tracks the most times is selected as target track information), where the target track information is stored in the electronic device, or may be stored in the cloud, and is used to determine whether the current position information deviates from the target track.
Further, the target track information includes one or more track segments, that is, the target track may be divided into one or more track segments, where the track segments carry feature parameters, and the feature parameters are used to characterize mathematical features of the track segments.
S13, determining whether the current position information accords with the target track information according to the characteristic parameters;
in this embodiment, the target track information is parsed into one or more track segments, corresponding feature parameters are extracted from the one or more track segments, the feature parameters are stored in a database table, a real-time discrimination service is established, the real-time discrimination service is used for monitoring current position information of the electronic device in real time, a size relation between a distance from the target object to the target track and a set threshold is determined through the current position information and the feature parameters in the database table (a specific determination method is described in detail in fig. 3), and whether the current position information accords with the target track information is determined according to the size relation.
And S14, triggering a position alarm when the current position information does not accord with the target track information.
In this embodiment, when the distance from the target object to the target track is greater than the set threshold, it is determined that the current position information does not conform to the target track information, which indicates that the target object deviates from the target track and is possibly in a dangerous state, and at this time, the position alarm is triggered.
Specifically, the position alarming method may be: firstly, generating prompt information, displaying the prompt information on a screen of the electronic equipment, and sending out prompt sound, wherein the prompt information is used for reminding a user of the electronic equipment that the current position of the user deviates from a target track so as to enable the user of the electronic equipment to return to the target track as soon as possible. And generating alarm information, wherein the alarm information can send the position deviation prompt to a target terminal in a short message or cloud platform message pushing mode, and the target terminal is a terminal establishing wireless communication with the electronic equipment and is used for monitoring the position of the electronic equipment in real time. (e.g., the electronic device is a student's electronic student certificate, and the target terminal is a parent's mobile phone).
In addition, in this embodiment, the steps of obtaining the current position information and the target track information, and determining whether the current position information accords with the target track information may be performed in the electronic device or may be performed in the cloud platform, which is not specifically limited in this embodiment.
According to the position monitoring alarm scheme provided by the embodiment of the invention, the current position information of the target object is obtained; acquiring target track information, wherein the target track information comprises one or more track line segments, and the track line segments carry corresponding characteristic parameters; determining whether the current position information accords with the target track information according to the characteristic parameters; and triggering a position alarm when the current position information does not accord with the target track information. The position of the student is monitored in real time, and alarm information is sent to parents after the student deviates from a common track by a certain distance, so that the safety of the student and the timeliness of position monitoring are ensured.
Fig. 2 is a flow chart of a method for generating target track information according to an embodiment of the present invention, as shown in fig. 2, where the method specifically includes:
s21, acquiring a plurality of pieces of history position information of the target object, and carrying out normalization processing on the plurality of pieces of history position information to obtain a first coordinate set;
in this embodiment, position information of a target object in the past period of time is extracted as history position information, where the history position information includes longitude coordinates, latitude coordinates, and time coordinates, and normalization processing is performed on the longitude coordinates and the latitude coordinates, so as to obtain a plurality of coordinates after normalization processing as a first coordinate set.
Specifically, it is assumed that the sample data of a plurality of pieces of history position information of a student certificate obtained from a storage module or a cloud platform is n= { N 1 ,n 2 ,......n k N is }, where n i For the ith coordinate point, for characterizing a history of position information, i may be any one of 1-k, n i Is the coordinates of (a)Wherein->Representing location longitude coordinates>Representing location latitude coordinates>Representing the location time coordinates. Normalizing the longitude coordinate and the latitude coordinate includes: respectively take x max Is the maximum longitude coordinate, x min Is the minimum longitude coordinate, y max For maximum latitude coordinate, y min For the minimum latitude coordinate, through a normalization formula Representing normalized longitude coordinates, ++> The normalized latitude coordinate is represented, and the sample data of the normalized historical position information is N '= { N' 1 ,n′ 2 ,......n′ k And taking the normalized historical position information as a first coordinate set.
S22, clustering the first coordinate set to obtain a second coordinate set and a third coordinate set;
in this embodiment, before the clustering process, the clustering centers are determined, the number of the clustering centers is set to 2, and the first clustering center and the second clustering center are determined from the first coordinate set; the determining method comprises the following steps: and clustering by taking locating points corresponding to the maximum value and the minimum value of the time coordinates as initial clustering centers respectively.
Specifically, taking a coordinate point corresponding to the maximum value of the time coordinates in the first coordinate set as a first clustering center, taking a coordinate point corresponding to the minimum value of the time coordinates in the first coordinate set as a second clustering center, and carrying out clustering processing on the first coordinate set according to the first clustering center to obtain a second coordinate set; and clustering the first coordinate set according to the second clustering center to obtain a third coordinate set, namely dividing coordinate points in the first coordinate set into two coordinate sets.
The clustering process comprises the following steps: inputting the number 2 of the clustering centers, selecting the clustering centers, initializing, distributing each coordinate point in the first coordinate set to the closest clustering center, recalculating the two clustering centers, judging whether convergence, and outputting a clustering result when convergence, so as to obtain a second coordinate set and a third coordinate set.
S23, denoising the second coordinate set and the third coordinate set to obtain a fourth coordinate set and a fifth coordinate set;
in this embodiment, after clustering, denoising is performed on the two obtained coordinate sets, and the denoising method includes: determining a first distance between each coordinate point in the second coordinate set and the third coordinate set and the first clustering center to obtain a first distance set; determining a second distance between each coordinate point in the second coordinate set and the third coordinate set and a second aggregation center to obtain a second distance set; determining a third distance between the first cluster center and the second cluster center;
determining coordinate points of a third distance, of which the first distance and the second distance are more than twice, from the first distance set and the second distance set as noise points; and removing the noise points in the second coordinate set to obtain a fourth coordinate set, and removing the noise points in the third coordinate set to obtain a fifth coordinate set.
Specifically, after clustering, the second coordinate set is set as C 1 The third coordinate set is C 2 The clustering centers are respectivelyTraversing the second coordinate set and the third coordinate set to obtain each coordinate point and c 1 Distance d between 1 And each coordinate point and c 2 Distance d between 2 Wherein, the method comprises the steps of, wherein,c 2 distance between->Determining d 1 >2d c And d 2 >2d c And removing the noise points to obtain a fourth coordinate set and a fifth coordinate set.
S24, determining one or more track line segments according to the fourth coordinate set and the fifth coordinate set; and determining the target track information according to the track line segment.
In this embodiment, the target track information characterizes a target track that the target object needs to conform to, where the target track may be a straight line, a discount, a curve, or a combination of these several line segments. In this embodiment, there may be two target tracks, so the first target track may be divided into one or more straight line segments as track segments according to the fourth coordinate set; the second target trajectory may be segmented into one or more straight line segments as trajectory line segments according to the fifth set of coordinates and. Coordinate points at two ends of the track line segment are used as partition points corresponding to the track line segment, and the distance from the coordinate points between adjacent partition points to the track line segment between the adjacent partition points is smaller than a set threshold value; and determining target track information according to the track line segments and the dividing points.
Specifically, taking the fourth coordinate set as an example for description, firstly determining the number of track line segments and dividing points corresponding to the fourth coordinate set, and taking an alpha table according to the mathematical differentiation ideaThe number of the track line segments is shown, alpha can be 1, 2, 3 and the like, the set threshold value is represented by omega (for example, fifty meters), and an alarm is triggered when the distance between the target object and the target track is greater than omega. Let α=1 first, i.e. assuming that the target trajectory can be divided into a trajectory segment, m= { M 1 ,m 2 ,......m k -represents a fourth set of coordinates, where m i Representing the ith coordinate point, shaped asLet l denote the track segment, fit the linear regression equation of the track segment 1 by least square method, let the equation be +.>Wherein->Each point M in M is then traversed i Sequentially find m i Distance to 1->If coordinate points J, J +.>Then it indicates that α=1 does not meet the segmentation requirement, i.e. one track segment is insufficient to describe the characteristics of the target track segment, and the segmentation needs to be continued; if the coordinate points in M meet +.>And (3) ending the segmentation step, and determining the number of track line segments as one.
When α=1 does not meet the division requirement, if q=2, it is necessary to find the optimal division point. Point M with minimum time coordinate in M 1 Taking a coordinate point m as an initial point according to the time sequence of the time coordinates 2 Dividing M into M according to dividing points 1 And M 2 Wherein comprises M 1 Comprises (m) 1 ,m 2 ),M 2 Comprises (m) 3 ,......m k ) At this time, the dividing point divides the target track into two track segments. Respectively find M 1 And M 2 Linear regression equations of (2), respectivelyThe two track segments are respectively marked as l' 1 And l' 2 Solving an equation by adopting a least square method, and then traversing M in sequence 1 And M 2 Checking whether or not there is +.J of coordinate points J, J>If not, ending the segmentation step, determining the number of track line segments as two and m 2 Is a division point; if present, represents m 2 As the dividing points not meeting the requirement, respectively selecting m 3 、m 4 The above calculation and inspection steps are continued until the division point is m k-1 If a division point P is found in M, P is such that +.>The segmentation step is finished, the number of track line segments is determined to be two, and P is a segmentation point; if the segmentation point P cannot be found in M, it means that α=2 does not meet the segmentation requirement, that is, the two track segments are insufficient to describe the characteristics of the target track, and the segmentation needs to be continued.
When α=2 does not meet the segmentation requirement, it is necessary to determine two segmentation points, i.e. M, which is the point with the smallest time coordinate in M, by setting α=3 1 Taking m as an initial point according to the time sequence of the time coordinates 2 For the first division point, m 3 For the second division point, dividing M into M according to the first and second division points 1 、M 2 And M 3 Wherein M is 1 Comprises (m) 1 ,m 2 )、M 2 Comprises (m) 2 ,m 3 )、M 3 Comprises (m) 3 ……m k ) The target track is divided into three track line segments by the dividing point at the same time. Respectively find M 1 、M 2 And M 3 Linear regression equations of (2), respectivelyThe three track segments are respectively marked as l' 1 ′、l″ 2 And l 3 And solving an equation by adopting a least square method, continuously verifying whether the selected first and second division points are suitable according to the method when alpha=2, if so, ending the division step, determining that the number of track line segments is three, if not, sequentially selecting the next division point, and continuously verifying until the division step is ended. Until the first and second division points are m respectively k-1 And m k-2 If point J is still present, it is +.>It means that α=3 does not meet the segmentation requirement, i.e. three track segments are not sufficient to describe the characteristics of the target track, at which time α=4, α=5. And taking the track line segments, the number of the track line segments and the dividing points as target track information corresponding to the fourth coordinate set.
According to the target track information generation method provided by the embodiment of the invention, a plurality of pieces of history position information of the target object are obtained, and normalization processing is carried out on the plurality of pieces of history position information to obtain a first coordinate set; clustering the first coordinate set to obtain a second coordinate set and a third coordinate set; denoising the second coordinate set and the third coordinate set to obtain a fourth coordinate set and a fifth coordinate set; determining one or more track line segments according to the fourth coordinate set and the fifth coordinate set; and determining the target track information according to the track line segment. According to the method, the device and the system, the characteristics of track line segments are automatically analyzed according to the background, the historical position information is subjected to refined analysis and is applied in a large data mode, the target track information is automatically generated, manual track planning of a user is not needed, user experience is enhanced, the accuracy of position monitoring is improved, the safety of a target object is ensured, and the efficiency of generating the target track is improved.
Fig. 3 is a flow chart of another position monitoring and alarming method according to an embodiment of the present invention, as shown in fig. 3, the method specifically includes:
s31, acquiring current position information of a target object;
in this embodiment, the step is similar to S11, and specific reference may be made to the related description in fig. 1, which is omitted for brevity.
S32, acquiring target track information, wherein the target track information comprises one or more track line segments, and the track line segments carry corresponding characteristic parameters;
in the present embodiment, parameters in the linear equation corresponding to the track line segment determined in fig. 2 and coordinates of the dividing point are taken as characteristic parameters, and the characteristic parameters include m 1 、m k Dividing points Track segment l' 1 、l′ 2 … corresponding parameters->
Wherein the ith partition pointThe calculation formula of (2) is as follows:
s33, determining a fourth distance from the coordinates corresponding to the current position information to one or more track line segments to obtain a fourth distance set;
in this embodiment, the distance from the coordinate point corresponding to the current position information to each track line segment in the target track is determined as the fourth distance, so as to obtain a fourth distance set.
S34, judging whether the coordinates corresponding to the characteristic parameters and the current position information meet preset conditions or not; when the preset condition is met, determining that the fourth distance is smaller than a set threshold value; when the preset condition is not met, determining that the fourth distance is not smaller than the set threshold;
In the present embodiment, α=2, the division point is P, and the track line segment is l' 1 And l' 2 For the purpose of illustration, let the coordinate point corresponding to the current position information be Q (x q ,y q ) The characteristic parameters include: l's' 1 Is a two-end coordinate point of (2)P(x P ,y P ),l′ 1 The corresponding linear equation has a parameter of +.>l′ 2 Is P (x) P ,y P )、/>l′ 1 The corresponding linear equation has a parameter of +.>ω is the set threshold in fig. 2.
The preset conditions are as follows:
and is also provided with
Judging whether the coordinates corresponding to the characteristic parameters and the current position information meet the preset conditions, and if so, describing that the point Q is distant from the straight line segment l' 1 Fourth of (2)The distance is smaller than omega, and the fourth distance is determined to be smaller than a set threshold; when the preset condition is not met, determining that the fourth distance is not smaller than a set threshold value; continuing to judge the point Q and the straight line segment l 'by the same method' 2 Is a distance of (3).
S35, judging whether the fourth distance in the fourth distance set is smaller than a set threshold value;
in this embodiment, when any one of the fourth distances in the fourth distance set is smaller than the set threshold, it is indicated that the target object is not deviated from the target track, and step S36 is performed; when any of the fourth distances in the fourth distance set is not less than the set threshold, it is indicated that the target object deviates from the target trajectory, and step S37 is executed.
S36, determining that the current position information accords with the target track information when any fourth distance in the fourth distance set is smaller than the set threshold value;
in this embodiment, when it is determined that the current position information accords with the target track information, the position alarm is not triggered, and the current position information can be directly sent to the target terminal.
And S37, under the condition that any fourth distance in the fourth distance set is not smaller than the set threshold value, determining that the current position information does not accord with the target track information, and triggering position alarm.
In this embodiment, the step of triggering the position alarm is similar to S14, and the related description in fig. 1 can be referred to specifically, and the detailed description is omitted herein for brevity.
According to the position monitoring alarm scheme provided by the embodiment, the current position information of the target object is obtained; acquiring target track information, wherein the target track information comprises one or more track line segments, and the track line segments carry corresponding characteristic parameters; determining a fourth distance from coordinates corresponding to the current position information to one or more track line segments to obtain a fourth distance set; judging whether the coordinates corresponding to the characteristic parameters and the current position information accord with preset conditions or not; when the preset condition is met, determining that the fourth distance is smaller than a set threshold value; when the preset condition is not met, determining that the fourth distance is not smaller than the set threshold; and under the condition that any one of the fourth distances in the fourth distance set is not smaller than the set threshold value, determining that the current position information does not accord with the target track information, and triggering position alarm. In order to realize in time reporting to the police when taking place the position skew, improved the timeliness of position detection, make the position monitoring more intelligent, strengthened the security of using the student of electron student's evidence.
Fig. 4 is a schematic structural diagram of a position monitoring alarm device according to an embodiment of the present invention, as shown in fig. 4, where the device specifically includes:
an obtaining module 41, configured to obtain current location information of a target object;
the acquiring module 41 is further configured to acquire target track information, where the target track information includes one or more track segments, and the track segments carry corresponding feature parameters;
a determining module 42, configured to determine whether the current location information accords with the target track information according to the feature parameter;
and the alarm module 43 is used for triggering a position alarm when the current position information does not accord with the target track information.
In one possible implementation, the obtaining module 41 is specifically configured to obtain a plurality of historical location information of the target object,
a processing module 44, configured to normalize a plurality of the historical location information to obtain a first coordinate set; clustering the first coordinate set to obtain a second coordinate set and a third coordinate set; denoising the second coordinate set and the third coordinate set to obtain a fourth coordinate set and a fifth coordinate set;
The determining module 42 is specifically configured to determine one or more track segments according to the fourth coordinate set and the fifth coordinate set; and determining the target track information according to the track line segment.
In a possible implementation manner, the determining module 42 is specifically configured to determine a first cluster center and a second cluster center from the first coordinate set;
the processing module 44 is specifically configured to perform clustering processing on the first coordinate set according to the first clustering center to obtain a second coordinate set; and clustering the first coordinate set according to the second clustering center to obtain a third coordinate set.
In a possible implementation manner, the determining module 42 is specifically configured to determine a first distance between the coordinates in the second coordinate set and the third coordinate set and the first cluster center, so as to obtain a first distance set;
determining second distances between coordinates in the second coordinate set and the third coordinate set and the second cluster center to obtain a second distance set;
determining a third distance between the first cluster center and the second cluster center;
determining coordinate points with the first distance and the second distance larger than the third distance from the first distance set and the second distance set as noise points;
The processing module 44 is specifically configured to remove the noise point in the second coordinate set to obtain a fourth coordinate set, and remove the noise point in the third coordinate set to obtain a fifth coordinate set.
In one possible implementation manner, the determining module 42 is specifically configured to take the coordinate points at two ends of the track line segment as the dividing points corresponding to the track line segment, where a distance from the coordinate point between adjacent dividing points to the track line segment between the adjacent dividing points is smaller than a set threshold;
and determining the target track information according to the track line segments and the dividing points.
In a possible implementation manner, the determining module 42 is specifically configured to determine a fourth distance from the coordinate corresponding to the current location information to one or more track segments, to obtain a fourth distance set;
judging whether the coordinates corresponding to the characteristic parameters and the current position information accord with preset conditions or not;
when the preset condition is met, determining that the fourth distance is smaller than a set threshold value;
when the preset condition is not met, determining that the fourth distance is not smaller than the set threshold;
determining that the current position information accords with the target track information when any fourth distance in the fourth distance set is smaller than the set threshold value;
Or alternatively, the first and second heat exchangers may be,
and under the condition that any one of the fourth distances in the fourth distance set is not smaller than the set threshold value, determining that the current position information does not accord with the target track information.
In one possible implementation manner, the alarm module 43 is specifically configured to generate a prompt message, and display the prompt message;
generating alarm information and sending the alarm information to a target terminal.
The position monitoring alarm device provided in this embodiment may be a device as shown in fig. 4, and may perform all the steps shown in fig. 1-3, thereby achieving the technical effects of fig. 1-3, and the detailed description with reference to fig. 1-3 is omitted herein for brevity.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and an electronic device 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and other user interfaces 503. The various components in the electronic device 500 are coupled together by a bus system 505. It is understood that bus system 505 is used to enable connected communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various buses are labeled as bus system 505 in fig. 5.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, a trackball, a touch pad, or a touch screen, etc.).
It will be appreciated that the memory 502 in embodiments of the invention can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct memory bus RAM (DRRAM). The memory 502 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some implementations, the memory 502 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 5022 includes various application programs such as a Media Player (Media Player), a Browser (Browser), and the like for realizing various application services. A program for implementing the method according to the embodiment of the present invention may be included in the application 5022.
In the embodiment of the present invention, the processor 501 is configured to execute the method steps provided by the method embodiments by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, for example, including:
acquiring current position information of a target object;
acquiring target track information, wherein the target track information comprises one or more track line segments, and the track line segments carry corresponding characteristic parameters;
determining whether the current position information accords with the target track information according to the characteristic parameters;
And triggering a position alarm when the current position information does not accord with the target track information.
The method disclosed in the above embodiment of the present invention may be applied to the processor 501 or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in the processor 501. The processor 501 may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software elements in a decoding processor. The software elements may be located in a random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 502, and the processor 501 reads information in the memory 502 and, in combination with its hardware, performs the steps of the method described above.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the processing units may be implemented within one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (dspev, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The electronic device provided in this embodiment may be an electronic device as shown in fig. 5, and may perform all the steps of the method shown in fig. 1-3, thereby achieving the technical effects of the method shown in fig. 1-3, and the detailed description with reference to fig. 1-3 is omitted herein for brevity.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium here stores one or more programs. Wherein the storage medium may comprise volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, hard disk, or solid state disk; the memory may also comprise a combination of the above types of memories.
When one or more programs are executed in a storage medium by one or more processors, the method performed on the device side is implemented.
The processor is configured to execute a position monitoring alarm program stored in the memory, so as to implement the following steps of a position monitoring alarm method executed on the device side, for example:
acquiring current position information of a target object;
acquiring target track information, wherein the target track information comprises one or more track line segments, and the track line segments carry corresponding characteristic parameters;
determining whether the current position information accords with the target track information according to the characteristic parameters;
and triggering a position alarm when the current position information does not accord with the target track information.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of function in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (7)

1. A method of position monitoring and alerting comprising:
a plurality of historical location information of the target object is acquired,
normalizing the plurality of historical position information to obtain a first coordinate set;
clustering the first coordinate set to obtain a second coordinate set and a third coordinate set, including:
taking a coordinate point corresponding to the maximum value of the time coordinates in the first coordinate set as a first clustering center, and taking a coordinate point corresponding to the minimum value of the time coordinates in the first coordinate set as a second clustering center;
inputting the number of the clustering centers, selecting the clustering centers, initializing, distributing each coordinate point in the first coordinate set to the closest clustering center, recalculating the two clustering centers, judging whether convergence, and outputting a clustering result when convergence, so as to obtain a second coordinate set and a third coordinate set;
denoising the second coordinate set and the third coordinate set to obtain a fourth coordinate set and a fifth coordinate set, including:
determining first distances between coordinates in the second coordinate set and the third coordinate set and the first clustering center to obtain a first distance set;
Determining second distances between coordinates in the second coordinate set and the third coordinate set and the second cluster center to obtain a second distance set;
determining a third distance between the first cluster center and the second cluster center;
determining coordinate points with the first distance and the second distance larger than the third distance from the first distance set and the second distance set as noise points;
removing the noise points in the second coordinate set to obtain a fourth coordinate set, and removing the noise points in the third coordinate set to obtain a fifth coordinate set;
determining one or more track line segments according to the fourth coordinate set and the fifth coordinate set;
determining the target track information according to the track line segment;
acquiring current position information of a target object;
acquiring target track information, wherein the target track information comprises one or more track line segments, and the track line segments carry corresponding characteristic parameters;
determining whether the current position information accords with the target track information according to the characteristic parameters;
and triggering a position alarm when the current position information does not accord with the target track information.
2. The method of claim 1, wherein said determining said target trajectory information from said trajectory segments comprises:
Taking coordinate points at two ends of the track line segment as partition points corresponding to the track line segment, wherein the distance from the coordinate points between adjacent partition points to the track line segment between the adjacent partition points is smaller than a set threshold value;
and determining the target track information according to the track line segments and the dividing points.
3. The method of claim 1, wherein said determining whether the current location information meets the target trajectory information based on the characteristic parameters comprises:
determining a fourth distance from the coordinates corresponding to the current position information to one or more track line segments to obtain a fourth distance set;
judging whether the coordinates corresponding to the characteristic parameters and the current position information accord with preset conditions or not;
when the preset condition is met, determining that the fourth distance is smaller than a set threshold value;
when the preset condition is not met, determining that the fourth distance is not smaller than the set threshold;
determining that the current position information accords with the target track information when any fourth distance in the fourth distance set is smaller than the set threshold value;
or alternatively, the first and second heat exchangers may be,
and under the condition that any one of the fourth distances in the fourth distance set is not smaller than the set threshold value, determining that the current position information does not accord with the target track information.
4. The method of claim 1, wherein the triggering a position alarm comprises:
generating prompt information and displaying the prompt information;
generating alarm information and sending the alarm information to a target terminal.
5. A position monitoring alarm device, comprising:
an acquisition module for acquiring a plurality of history position information of the target object,
the processing module is used for carrying out normalization processing on the plurality of historical position information to obtain a first coordinate set;
clustering the first coordinate set to obtain a second coordinate set and a third coordinate set, including:
the determining module is used for determining a first clustering center and a second clustering center from the first coordinate set;
the processing module is further used for carrying out clustering processing on the first coordinate set according to the first clustering center to obtain a second coordinate set;
clustering the first coordinate set according to the second clustering center to obtain a third coordinate set;
denoising the second coordinate set and the third coordinate set to obtain a fourth coordinate set and a fifth coordinate set, including:
The determining module is further configured to determine a first distance between coordinates in the second coordinate set and the third coordinate set and the first cluster center, so as to obtain a first distance set;
determining second distances between coordinates in the second coordinate set and the third coordinate set and the second cluster center to obtain a second distance set;
determining a third distance between the first cluster center and the second cluster center;
determining coordinate points with the first distance and the second distance larger than the third distance from the first distance set and the second distance set as noise points;
the processing module is further configured to remove a noise point in the second coordinate set to obtain a fourth coordinate set, and remove a noise point in the third coordinate set to obtain a fifth coordinate set;
the determining module is further configured to determine one or more track segments according to the fourth coordinate set and the fifth coordinate set;
determining the target track information according to the track line segment;
the acquisition module is also used for acquiring the current position information of the target object;
the acquisition module is further used for acquiring target track information, wherein the target track information comprises one or more track line segments, and the track line segments carry corresponding characteristic parameters;
The determining module is used for determining whether the current position information accords with the target track information according to the characteristic parameters;
and the alarm module is used for triggering position alarm when the current position information does not accord with the target track information.
6. An electronic device, comprising: a processor and a memory for executing a position monitoring alarm program stored in the memory to implement the position monitoring alarm method of any of claims 1-4.
7. A storage medium storing one or more programs executable by one or more processors to implement the position monitoring alarm method of any of claims 1-4.
CN202210340045.8A 2022-03-30 2022-03-30 Position monitoring alarm method and device, electronic equipment and storage medium Active CN115050161B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210340045.8A CN115050161B (en) 2022-03-30 2022-03-30 Position monitoring alarm method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210340045.8A CN115050161B (en) 2022-03-30 2022-03-30 Position monitoring alarm method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115050161A CN115050161A (en) 2022-09-13
CN115050161B true CN115050161B (en) 2023-10-13

Family

ID=83158276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210340045.8A Active CN115050161B (en) 2022-03-30 2022-03-30 Position monitoring alarm method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115050161B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853725A (en) * 2012-11-29 2014-06-11 深圳先进技术研究院 Traffic track data noise reduction method and system
GB201618045D0 (en) * 2016-10-25 2016-12-07 Openworks Engineering Ltd Acquisition and/or tracking of remote object
CN108347698A (en) * 2018-02-07 2018-07-31 山东合天智汇信息技术有限公司 A kind of on-line off-line event trace analysis method, apparatus and system
CN108596202A (en) * 2018-03-08 2018-09-28 清华大学 The method for calculating personal commuting time based on mobile terminal GPS positioning data
JP2020091859A (en) * 2018-12-03 2020-06-11 株式会社リコー User interest estimation method and device
CN111739295A (en) * 2020-06-17 2020-10-02 杭州海康威视数字技术股份有限公司 Positioning method and device
CN112562315A (en) * 2020-11-02 2021-03-26 鹏城实验室 Method, terminal and storage medium for acquiring traffic flow information
CN112632450A (en) * 2020-12-30 2021-04-09 中国电子科技集团公司电子科学研究院 Wide-area space abnormal track identification method and device and readable storage medium
CN113506460A (en) * 2021-06-22 2021-10-15 华录智达科技股份有限公司 Intelligent electronic stop board system shared with intelligent bracelet information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040087314A1 (en) * 2002-11-06 2004-05-06 Charles Duncan Apparatus and method for tracking the location and position of an individual

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853725A (en) * 2012-11-29 2014-06-11 深圳先进技术研究院 Traffic track data noise reduction method and system
GB201618045D0 (en) * 2016-10-25 2016-12-07 Openworks Engineering Ltd Acquisition and/or tracking of remote object
CN108347698A (en) * 2018-02-07 2018-07-31 山东合天智汇信息技术有限公司 A kind of on-line off-line event trace analysis method, apparatus and system
CN108596202A (en) * 2018-03-08 2018-09-28 清华大学 The method for calculating personal commuting time based on mobile terminal GPS positioning data
JP2020091859A (en) * 2018-12-03 2020-06-11 株式会社リコー User interest estimation method and device
CN111739295A (en) * 2020-06-17 2020-10-02 杭州海康威视数字技术股份有限公司 Positioning method and device
CN112562315A (en) * 2020-11-02 2021-03-26 鹏城实验室 Method, terminal and storage medium for acquiring traffic flow information
CN112632450A (en) * 2020-12-30 2021-04-09 中国电子科技集团公司电子科学研究院 Wide-area space abnormal track identification method and device and readable storage medium
CN113506460A (en) * 2021-06-22 2021-10-15 华录智达科技股份有限公司 Intelligent electronic stop board system shared with intelligent bracelet information

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于时间序列的多维距离聚类异常检测方法;丁建立;黄天镜;徐俊洁;王静;;计算机工程与设计(第07期);全文 *
结合Hausdorff距离和最长公共子序列的轨迹分类;魏龙翔;何小海;滕奇志;高明亮;;电子与信息学报(第04期);全文 *

Also Published As

Publication number Publication date
CN115050161A (en) 2022-09-13

Similar Documents

Publication Publication Date Title
US9797740B2 (en) Method of determining trajectories through one or more junctions of a transportation network
US20210312738A1 (en) Machine Learning-Based Platform For User Identification
CN107945507B (en) Travel time prediction method and device
US9953517B2 (en) Risk early warning method and apparatus
CN109766777A (en) Detection method, device, storage medium and the electronic equipment of abnormal track
CN111737377B (en) Method and device for identifying drift trajectory, computing equipment and storage medium
US9787557B2 (en) Determining semantic place names from location reports
CN108271157B (en) Pseudo base station identification method and device
CN113587944B (en) Quasi-real-time vehicle driving route generation method, system and equipment
CN115830010B (en) Method and device for detecting crossing distance of transmission wires and computer equipment
CN111510859A (en) User track positioning method, system, server and storage medium
CN110830915B (en) Method and device for determining starting point position
WO2022267455A1 (en) Method, apparatus and device for predicting area in which fraudulent users are concentrated, and storage medium
CN108171605A (en) A kind of vehicle secondary mortgage alarm method, device, server and storage medium
Parada et al. Machine learning-based trajectory prediction for vru collision avoidance in v2x environments
Chen et al. A travel mode identification framework based on cellular signaling data
CN113222040B (en) Marine fixed target identification method, device, computer equipment and storage medium
CN115050161B (en) Position monitoring alarm method and device, electronic equipment and storage medium
CN113064916B (en) Monitoring method and device for abnormal card punching behavior, computer equipment and storage medium
CN112836991A (en) Site planning method and device, terminal equipment and readable storage medium
CN112616118A (en) ETC portal frame determination method and device for vehicle passing through and storage medium
CN110099442B (en) Method and device for determining position change of network equipment, computer equipment and medium
CN115767435A (en) Space-time trajectory determination method and device based on signaling data
CN113217826B (en) Pipeline water supply pipe network leakage alarm control method, device and medium
CN114234975A (en) Low-frequency real-time track matching method, system, computer device and storage medium

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