Path statistical method and system based on intelligent wearable device
By constructing and comparing space-time paths in smart wearable devices, the problem of lack of macro group path recognition in the existing technology is solved, effective management of personnel paths and abnormal judgments are achieved, and security is improved.
Patent Information
- Application Number
- CN202410927124.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-07-11
AI Technical Summary
The existing management rules for smart wearable devices are mainly microscopic, and group risk determination cannot be made from a macro perspective. There is a lack of macro identification solutions for personnel paths, especially in places with high safety hazards, such as mental hospitals, and other places.
The intelligent wearable device receives position and motion information, constructs a spatiotemporal path, uses three-dimensional coordinates to fit the user's path, and determines the degree of abnormality by comparing the paths of different time periods, so as to realize group path recognition from a macro perspective.
It is possible to determine whether group abnormalities occur from a macro perspective, which improves the efficiency of management and supervision of personnel paths, especially in places with high safety hazards, providing a more comprehensive management plan.
Smart Images

Figure CN118896598A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of path statistics, and in particular to a path statistics method and system based on a smart wearable device. Background Art
[0002] In some special occasions, personnel management is required, such as nursing homes. Based on user authorization, users are equipped with smart wearable devices to obtain their location and movement information, and then manage and help them. In more extreme cases, such as mental hospitals, there are safety hazards to the personnel and management is even more necessary. Smart wearable devices are common management facilities.
[0003] Smart wearable devices can be used to obtain path information of people in their daily lives. Existing management rules are mostly from a micro perspective, that is, each person is managed individually, and a prompt message is issued when a person exceeds the range or has other abnormal movements; at the macro level, that is, from a group perspective, there is no risk determination solution. Providing a macro group path identification solution is a technical problem that the technical solution of the present invention aims to solve. Summary of the invention
[0004] The purpose of the present invention is to provide a path statistics method and system based on a smart wearable device to solve the problems raised in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] A path statistics method based on a smart wearable device, the method comprising:
[0007] Receive the location sharing permission granted by the user, and obtain the location information and movement information regularly based on the location sharing permission;
[0008] updating the user point in the map according to the location information and the movement information, obtaining maps containing the user point at different times, and constructing a map group;
[0009] The map group is split according to a preset time period to obtain a sub-map group, and the user point corresponding to each user is queried in the sub-map group, which is converted into a three-dimensional coordinate, and the user's space-time path is fitted based on the three-dimensional coordinate;
[0010] Compare the space-time paths of all users in different time periods to determine the degree of abnormality in each time period.
[0011] As a further solution of the present invention: the step of receiving the location sharing authority granted by the user and periodically acquiring the location information and motion information based on the location sharing authority includes:
[0012] Receive location sharing permission granted by the user;
[0013] Get the user's location in real time based on location sharing permissions;
[0014] Acquire the number of steps according to the vibration information of the user, and determine the movement distance per unit time according to the number of steps as the movement rate;
[0015] Get the change of the movement rate per unit time as the acceleration value;
[0016] The acquisition frequency of the position and the number of steps is adjusted according to the movement speed and the acceleration value; the acquisition frequency is proportional to the movement speed, and the acquisition frequency is proportional to the acceleration value.
[0017] As a further solution of the present invention, the step of updating the user point in the map according to the position information and the movement information to obtain maps containing the user point at different times, and constructing a map group includes:
[0018] At preset intervals, copy the map containing the user point at the previous moment;
[0019] Read the acquired user's location, and update the user point in the copied map according to the location;
[0020] Maps are superimposed on the time axis to obtain a map group; wherein the maps in the map group are sorted according to the time sequence.
[0021] As a further solution of the present invention, the steps of splitting the map group according to a preset time period to obtain a sub-map group, querying the user point corresponding to each user in the sub-map group, converting it into three-dimensional coordinates, and fitting the user's space-time path based on the three-dimensional coordinates include:
[0022] Split the map group according to a preset time period to obtain a sub-map group;
[0023] Query the user tags of the user points in each sub-map in the sub-map group, and classify the user points according to the user tags;
[0024] For the same type of user points, the coordinates and time of the user points are read to construct three-dimensional coordinates; the time is a relative time based on a time period;
[0025] Fit the user's space-time path based on three-dimensional coordinates.
[0026] As a further solution of the present invention: the step of comparing the spatiotemporal paths of all users in different time periods and determining the degree of abnormality of each time period includes:
[0027] Statistics of all users’ space-time paths in different time periods;
[0028] Select path points on all space-time paths according to the preset granularity;
[0029] Taking the preset uniform origin as the starting point and the path point as the end point, a vector cluster is obtained;
[0030] Compare the vector clusters corresponding to different time periods to determine the degree of abnormality in each time period.
[0031] As a further solution of the present invention: the content of comparing vector clusters corresponding to different time periods and determining the abnormality degree of each time period includes:
[0032] In the formula, Y is the degree of abnormality in a certain time period, A i is the i-th vector in the vector cluster corresponding to the time period, and N is the total number of vectors in the vector cluster corresponding to the time period; B kj is the jth vector in the vector cluster corresponding to the kth time period, M is the total number of vectors in the vector cluster corresponding to the kth time period; S[A i , B kj ] is A i and B kj Similarity, max j∈[1,M] S[A i , Bk j ] means to obtain A i The maximum value of the similarity of all vectors in the vector cluster corresponding to the kth time period; K is the total number of time periods to be determined; exp{} is an exponential function.
[0033] The technical solution of the present invention also provides a path statistics system based on a smart wearable device, the system comprising:
[0034] An information acquisition module is used to receive the location sharing authority granted by the user, and to obtain the location information and movement information regularly based on the location sharing authority;
[0035] A map group construction module, used to update the user point in the map according to the position information and the movement information, obtain maps containing the user point at different times, and construct a map group;
[0036] The space-time path fitting module is used to split the map group according to the preset time period to obtain the sub-map group, query the user point corresponding to each user in the sub-map group, convert it into three-dimensional coordinates, and fit the user's space-time path based on the three-dimensional coordinates;
[0037] The anomaly identification module is used to compare the time-space paths of all users in different time periods and determine the degree of anomaly in each time period.
[0038] As a further solution of the present invention: the information acquisition module includes:
[0039] A permission receiving unit, used to receive the location sharing permission granted by the user;
[0040] A location acquisition unit, used to acquire the user's location in real time based on the location sharing authority;
[0041] A speed calculation unit, used to obtain the number of steps according to the vibration information of the user, and determine the movement distance per unit time according to the number of steps as the movement rate;
[0042] An acceleration value calculation unit, used to obtain a change in the motion rate per unit time as an acceleration value;
[0043] The frequency adjustment unit is used to adjust the acquisition frequency of the position and the number of steps according to the movement speed and the acceleration value; the acquisition frequency is proportional to the movement speed, and the acquisition frequency is proportional to the acceleration value.
[0044] As a further solution of the present invention: the map group construction module includes:
[0045] A map copying unit, used to copy the map containing the user point at the previous moment at a preset time interval;
[0046] A user point updating unit, used to read the acquired user's position and update the user point in the copied map according to the position;
[0047] The map overlay unit is used to overlay maps on the time axis to obtain a map group; wherein the maps in the map group are sorted according to the time sequence.
[0048] As a further solution of the present invention: the spatiotemporal path fitting module includes:
[0049] A map group splitting unit, used for splitting the map group according to a preset time period to obtain a sub-map group;
[0050] A user point classification unit, used to query the user tags of the user points in each sub-map in the sub-map group, and classify the user points according to the user tags;
[0051] A three-dimensional coordinate generating unit, for reading the coordinates and time of the user points of the same type, and constructing three-dimensional coordinates; the time is a relative time based on a time period;
[0052] The fitting execution unit is used to fit the user's space-time path based on the three-dimensional coordinates.
[0053] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention obtains the user's position based on the smart wearable device, obtains the map at each moment, obtains the coordinates of the same user in the map at each moment and connects them in series, and then fits the path to obtain a path set. By comparing and identifying the path set as a group feature, it can be determined from a macro perspective whether a group abnormal phenomenon occurs. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.
[0055] Figure 1 This is a flowchart of the path statistics method based on smart wearable devices.
[0056] Figure 2 This is a structural block diagram of the path statistics system based on smart wearable devices. DETAILED DESCRIPTION
[0057] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0058] Figure 1 The figure is a general flow chart of a path statistics method based on a smart wearable device. In an embodiment of the present invention, a path statistics method based on a smart wearable device includes:
[0059] Step S100: receiving a location sharing authority granted by a user, and periodically acquiring location information and motion information based on the location sharing authority;
[0060] Receive the location sharing permission granted by the user, and obtain the location information and motion information regularly based on the location sharing permission; this process occurs on the smart wearable device equipped on the user, the user grants permission through the smart wearable device, and the execution subject of this method obtains the user's location information and motion information in real time through the smart wearable device; the location information is the user's location, and the motion information is the vibration signal generated by the user during exercise. It should be noted that the location information and motion information are obtained regularly, and there is an acquisition frequency, that is, the data upload frequency of the smart wearable device.
[0061] Step S200: updating the user point in the map according to the location information and the movement information, obtaining maps containing the user point at different times, and constructing a map group;
[0062] By analyzing the location information and movement information, the user point can be determined in the map. Each time the location information and movement information are obtained, the user point is synchronously updated in the map. By counting the maps containing the user point obtained at each moment (sorted by time), a map collection can be obtained, which is called a map group.
[0063] Step S300: splitting the map group according to a preset time period to obtain a sub-map group, searching for user points corresponding to each user in the sub-map group, converting them into three-dimensional coordinates, and fitting the user's space-time path based on the three-dimensional coordinates;
[0064] The map group is split according to a preset time period, which can be one day, half a day or even shorter. The map group can be split into multiple small map groups, called sub-map groups, according to the preset time period. In the sub-map group, the user points of the same user are classified into one category, the coordinates and the corresponding time of the map are read, and a three-dimensional coordinate is obtained, which includes spatial position and time information. The three-dimensional coordinate is fitted, and the obtained path is called a space-time path. The space-time path can continuously represent the various spatial positions of the user within a time period.
[0065] Step S400: Compare the time-space paths of all users in different time periods to determine the degree of abnormality in each time period;
[0066] By comparing the space-time paths of all users in different time periods, the degree of abnormality of each time period can be determined. The more similar the space-time paths are to other time periods, the more common the corresponding time period is and the higher the degree of abnormality is. The actual purpose of this comparison process is mainly to evaluate the abnormality of the latest time period to determine whether there is any abnormality in the latest user movement status.
[0067] Regarding the application scenarios of the technical solution of the present invention, it is necessary to give examples. The application scenarios of this application mainly include areas where real-time supervision of personnel is required, such as nursing homes. The elderly can wear smart wearable devices with them, so that the management party can find out the problems of the elderly in the first place. If the elderly refuse to share their location, it is of course feasible.
[0068] As a preferred embodiment of the technical solution of the present invention, the step of receiving the location sharing authority granted by the user and periodically acquiring the location information and motion information based on the location sharing authority includes:
[0069] Receive location sharing permission granted by the user;
[0070] Get the user's location in real time based on location sharing permissions;
[0071] Acquire the number of steps according to the vibration information of the user, and determine the movement distance per unit time according to the number of steps as the movement rate;
[0072] Get the change of the movement rate per unit time as the acceleration value;
[0073] The acquisition frequency of the position and the number of steps is adjusted according to the movement speed and the acceleration value; the acquisition frequency is proportional to the movement speed, and the acquisition frequency is proportional to the acceleration value.
[0074] The above content specifically limits the process of obtaining location information and motion information. On the basis of receiving the location sharing authority granted by the user, the process of obtaining location information and motion information is very simple, which is the prior art; the focus of the above content is that the process of obtaining the user's location and the process of obtaining the motion information are separate. The process of obtaining the user's location is obtained through the positioning module installed in the smart wearable device, which is not complicated. In the prior art solution, the position can be differentiated multiple times to obtain the motion speed and acceleration, and the result is a vector, which is disconnected from the actual situation. The solution adopted in this application is to calculate the motion rate and acceleration value based on the number of steps, which is equivalent to calculating the motion rate and acceleration value based on the distance, and the result is a scalar, which is more in line with the actual situation.
[0075] The frequency of obtaining the position and the number of steps is adjusted according to the movement rate and the acceleration value. The smaller the acceleration value is, the smoother the user's movement process is. At this time, the frequency of obtaining is reduced, the transmission energy consumption is reduced, and the battery life is increased. The lower the movement rate is, the smoother the user's movement process is. At this time, the frequency of obtaining is reduced, and the battery life is increased.
[0076] As a preferred embodiment of the technical solution of the present invention, the step of updating the user point in the map according to the position information and the motion information to obtain maps containing the user point at different times, and constructing a map group includes:
[0077] At preset intervals, copy the map containing the user point at the previous moment;
[0078] Read the acquired user's location, and update the user point in the copied map according to the location;
[0079] Maps are superimposed on the time axis to obtain a map group; wherein the maps in the map group are sorted according to the time sequence.
[0080] The above content specifically limits the construction process of the map group. Since the location of each user is different at different times, this means that the user points in the map are moving points and need to be updated in real time. Therefore, the above content actually provides a real-time update solution.
[0081] At preset time intervals, a map containing user points at the previous moment is copied. This time interval is different from the data acquisition frequency of each smart wearable device. For example, the time interval may be one second, while the data acquisition frequency of the smart wearable device may be once every two seconds or once every three seconds. This will result in some discrepancies, but for the update solution provided in this application, this discrepancy has no effect. At each preset time interval, a map containing user points at the previous moment is copied. If the user's position changes within this time interval, the user point is updated according to the user's position to obtain a map. It should be noted that each update is performed on the previous map.
[0082] Finally, the maps are arranged in order on the time axis to obtain a map group.
[0083] As a preferred embodiment of the technical solution of the present invention, the steps of splitting the map group according to a preset time period to obtain a sub-map group, querying the user point corresponding to each user in the sub-map group, converting it into three-dimensional coordinates, and fitting the user's space-time path based on the three-dimensional coordinates include:
[0084] Split the map group according to a preset time period to obtain a sub-map group;
[0085] Query the user tags of the user points in each sub-map in the sub-map group, and classify the user points according to the user tags;
[0086] For the same type of user points, the coordinates and time of the user points are read to construct three-dimensional coordinates; the time is a relative time based on a time period;
[0087] Fit the user's space-time path based on three-dimensional coordinates.
[0088] In the above content, a specific spatiotemporal path fitting scheme is provided. It can be known from the above content that a map group is a map arranged in chronological order. By splitting the map group according to a preset time period, a subset of the map group can be obtained, which is called a sub-map group.
[0089] To analyze each sub-map group is to analyze each time period, query the user tags of the user points in each sub-map in the sub-map group, classify the user points according to the user tags, read the coordinates and time of the user points of the same type, and construct three-dimensional coordinates (x, y, t); fit the three-dimensional coordinates to obtain the space-time path; the process of fitting the three-dimensional coordinates can adopt existing technologies, such as the fitting process of Bezier curve; in fact, the polyline obtained by connecting multiple coordinates can also be used as a space-time path, but the polyline itself is a piecewise function, which is not easy to analyze. After fitting into a curve, the path can be represented by a function expression.
[0090] As a preferred embodiment of the technical solution of the present invention, the step of comparing the spatiotemporal paths of all users in different time periods to determine the degree of abnormality of each time period includes:
[0091] Statistics of all users’ space-time paths in different time periods;
[0092] Select path points on all space-time paths according to the preset granularity;
[0093] Taking the preset uniform origin as the starting point and the path point as the end point, a vector cluster is obtained;
[0094] Compare the vector clusters corresponding to different time periods to determine the degree of abnormality in each time period.
[0095] The above content provides a specific space-time path comparison process, which counts the space-time paths of all users in different time periods. The comparison process is a comparison process of multiple paths, which is actually a relatively difficult task. The technical solution of the present invention provides a simplified solution. According to the preset granularity, path points are selected on all space-time paths, with a preset unified origin as the starting point and the path point as the end point. A vector cluster determined by multiple space-time paths can be obtained, and each path point corresponds to a vector. At this time, the comparison process of multiple paths is converted into a comparison process of vector clusters, which simplifies the calculation process.
[0096] It is worth mentioning that the time path itself is fitted by multiple user points. Adjacent user points correspond to adjacent maps, and their distance is the adjacent time length. If the preset granularity is determined based on the time length of adjacent maps, then the selected path points are the user points in each map. However, in actual applications, the path points are selected entirely based on higher density (selecting more points) or lower density (selecting fewer points). The higher the density, the more accurate the comparison result, but it consumes more resources and takes longer. The lower the density, the lower the accuracy of the comparison result, but it consumes less resources and takes less time. This also provides users with a wider space for free selection.
[0097] Specifically, the content of comparing vector clusters corresponding to different time periods and determining the abnormality degree of each time period includes:
[0098] In the formula, Y is the degree of abnormality in a certain time period, A i is the i-th vector in the vector cluster corresponding to the time period, and N is the total number of vectors in the vector cluster corresponding to the time period; B kj is the jth vector in the vector cluster corresponding to the kth time period, M is the total number of vectors in the vector cluster corresponding to the kth time period; S[A i , B kj ] is A iand B kj Similarity, max j∈[1,M] S[A i , B kj ] means to obtain A i The maximum value of the similarity of all vectors in the vector cluster corresponding to the kth time period; K is the total number of time periods to be determined; exp{} is an exponential function.
[0099] The explanations for the above are as follows:
[0100] For a certain time period, select a time period to be compared, obtain the vector clusters corresponding to the two time periods, and calculate the similarity of the two vector clusters; the calculation process is:
[0101] Select vectors from a certain vector cluster in turn, calculate the similarity between it and each vector in another vector cluster, and take the maximum similarity as the similarity between the selected vector and the other vector cluster; perform this operation on all vectors in the certain vector cluster to obtain the similarity between each vector and the other vector cluster, and calculate the average as the similarity between the two vector clusters.
[0102] For a vector cluster corresponding to a certain time period, we count its similarity with the vector clusters corresponding to all other time periods, and then take the average value to get its average similarity with other time periods. Based on the average similarity, we introduce a subtraction function, and the obtained function value can be used as the degree of abnormality.
[0103] Figure 2 1 is a structural block diagram of a path statistics system based on a smart wearable device. In a preferred embodiment of the technical solution of the present invention, a path statistics system based on a smart wearable device is also provided. The system 10 includes:
[0104] The information acquisition module 11 is used to receive the location sharing authority granted by the user, and to periodically acquire the location information and movement information based on the location sharing authority;
[0105] A map group construction module 12, used to update the user point in the map according to the position information and the movement information, obtain maps containing the user point at different times, and construct a map group;
[0106] The space-time path fitting module 13 is used to split the map group according to a preset time period to obtain a sub-map group, query the user point corresponding to each user in the sub-map group, convert it into a three-dimensional coordinate, and fit the user's space-time path based on the three-dimensional coordinate;
[0107] The abnormality identification module 14 is used to compare the time-space paths of all users in different time periods and determine the degree of abnormality in each time period.
[0108] Furthermore, the information acquisition module 11 includes:
[0109] A permission receiving unit, used to receive the location sharing permission granted by the user;
[0110] A location acquisition unit, used to acquire the user's location in real time based on the location sharing authority;
[0111] A speed calculation unit, used to obtain the number of steps according to the vibration information of the user, and determine the movement distance per unit time according to the number of steps as the movement rate;
[0112] An acceleration value calculation unit, used to obtain a change in the motion rate per unit time as an acceleration value;
[0113] The frequency adjustment unit is used to adjust the acquisition frequency of the position and the number of steps according to the movement speed and the acceleration value; the acquisition frequency is proportional to the movement speed, and the acquisition frequency is proportional to the acceleration value.
[0114] Specifically, the map group construction module 12 includes:
[0115] A map copying unit, used to copy the map containing the user point at the previous moment at a preset time interval;
[0116] A user point updating unit, used to read the acquired user's position and update the user point in the copied map according to the position;
[0117] The map overlay unit is used to overlay maps on the time axis to obtain a map group; wherein the maps in the map group are sorted according to the time sequence.
[0118] Furthermore, the spatiotemporal path fitting module 13 includes:
[0119] A map group splitting unit, used for splitting the map group according to a preset time period to obtain a sub-map group;
[0120] A user point classification unit, used to query the user tags of the user points in each sub-map in the sub-map group, and classify the user points according to the user tags;
[0121] A three-dimensional coordinate generating unit, for reading the coordinates and time of the user points of the same type, and constructing three-dimensional coordinates; the time is a relative time based on a time period;
[0122] The fitting execution unit is used to fit the user's space-time path based on the three-dimensional coordinates.
[0123] The functions that can be achieved by the path statistics method based on the smart wearable device are all completed by a computer device, and the computer device includes one or more processors and one or more memories, and at least one program code is stored in the one or more memories. The program code is loaded and executed by the one or more processors to implement the path statistics method based on the smart wearable device.
[0124] The processor takes out instructions from the memory one by one, analyzes the instructions, and then completes the corresponding operations according to the instruction requirements, generating a series of control commands, so that the various parts of the computer can automatically, continuously and coordinately move to become an organic whole, realize the input of programs, the input of data, and the calculation and output of results. The arithmetic operations or logical operations generated in this process are all completed by the operator; the memory includes a read-only memory (ROM), which is used to store computer programs, and a protection system is provided outside the memory.
[0125] Exemplarily, the computer program may be divided into one or more modules, one or more modules are stored in a memory and executed by a processor to implement the present invention. One or more modules may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program in a terminal device.
[0126] Those skilled in the art will understand that the description of the above service equipment is merely an example and does not constitute a limitation on the terminal equipment. It may include more or fewer components than described above, or a combination of certain components, or different components, for example, it may include input and output devices, network access equipment, buses, etc.
[0127] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire staff terminal.
[0128] The memory can be used to store computer programs and / or modules. The processor can realize various functions of the terminal device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as an information collection template display function, a product information release function, etc.); the data storage area can store data created according to the use of the berth status display system (such as product information collection templates corresponding to different product types, product information that different product providers need to release, etc.). In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0129] If the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable medium. Based on this understanding, the present invention implements all or part of the modules / units in the above-mentioned embodiment system, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable medium, and the computer program can realize the functions of the above-mentioned various system embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or system that can carry computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.
[0130] It should be noted that, in this article, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0131] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A path statistics method based on smart wearable devices, It is characterized in that The method comprises: Receive the location sharing permission granted by the user, and obtain the location information and movement information regularly based on the location sharing permission; updating the user point in the map according to the location information and the movement information, obtaining maps containing the user point at different times, and constructing a map group; The map group is split according to a preset time period to obtain a sub-map group, and the user point corresponding to each user is queried in the sub-map group, which is converted into a three-dimensional coordinate, and the user's space-time path is fitted based on the three-dimensional coordinate; Compare the space-time paths of all users in different time periods to determine the degree of abnormality in each time period.
2. The path statistics method based on the smart wearable device according to claim 1, It is characterized in that The step of receiving the location sharing authority granted by the user and periodically acquiring the location information and motion information based on the location sharing authority comprises: Receive location sharing permission granted by the user; Get the user's location in real time based on location sharing permissions; Acquire the number of steps according to the vibration information of the user, and determine the movement distance per unit time according to the number of steps as the movement rate; Get the change of the movement rate per unit time as the acceleration value; The acquisition frequency of the position and the number of steps is adjusted according to the movement speed and the acceleration value; the acquisition frequency is proportional to the movement speed, and the acquisition frequency is proportional to the acceleration value.
3. The path statistics method based on the smart wearable device according to claim 2, It is characterized in that The step of updating the user point in the map according to the position information and the movement information to obtain maps containing the user point at different times, and constructing a map group comprises: At preset intervals, copy the map containing the user point at the previous moment; Read the acquired user's location, and update the user point in the copied map according to the location; Maps are superimposed on the time axis to obtain a map group; wherein the maps in the map group are sorted according to the time sequence.
4. The path statistics method based on the smart wearable device according to claim 1, It is characterized in that The steps of splitting the map group according to the preset time period to obtain a sub-map group, searching the sub-map group for user points corresponding to each user, converting them into three-dimensional coordinates, and fitting the user's space-time path based on the three-dimensional coordinates include: Split the map group according to a preset time period to obtain a sub-map group; Query the user tags of the user points in each sub-map in the sub-map group, and classify the user points according to the user tags; For the same type of user points, the coordinates and time of the user points are read to construct three-dimensional coordinates; the time is a relative time based on a time period; Fit the user's space-time path based on three-dimensional coordinates.
5. The path statistics method based on the smart wearable device according to claim 1, It is characterized in that The step of comparing the time-space paths of all users in different time periods to determine the abnormality degree of each time period includes: Statistics of all users’ space-time paths in different time periods; Select path points on all space-time paths according to the preset granularity; Taking the preset uniform origin as the starting point and the path point as the end point, a vector cluster is obtained; Compare the vector clusters corresponding to different time periods to determine the degree of abnormality in each time period.
6. The path statistics method based on the smart wearable device according to claim 5, It is characterized in that The content of comparing vector clusters corresponding to different time periods and determining the abnormality degree of each time period includes: In the formula, Y is the degree of abnormality in a certain time period, A i is the i-th vector in the vector cluster corresponding to the time period, and N is the total number of vectors in the vector cluster corresponding to the time period; B kj is the jth vector in the vector cluster corresponding to the kth time period, M is the total number of vectors in the vector cluster corresponding to the kth time period; S[A i ,B kj ] is A i and B kj Similarity, max j∈[1,M] S[A i ,B kj ] means to obtain A i The maximum value of the similarity of all vectors in the vector cluster corresponding to the kth time period; K is the total number of time periods to be determined; exp{} is an exponential function.
7. A path statistics system based on smart wearable devices, It is characterized in that The system comprises: An information acquisition module is used to receive the location sharing authority granted by the user, and to obtain the location information and movement information regularly based on the location sharing authority; A map group construction module, used to update the user point in the map according to the position information and the movement information, obtain maps containing the user point at different times, and construct a map group; The space-time path fitting module is used to split the map group according to the preset time period to obtain the sub-map group, query the user point corresponding to each user in the sub-map group, convert it into three-dimensional coordinates, and fit the user's space-time path based on the three-dimensional coordinates; The anomaly identification module is used to compare the time-space paths of all users in different time periods and determine the degree of anomaly in each time period.
8. The path statistics system based on the smart wearable device according to claim 7, It is characterized in that The information acquisition module includes: A permission receiving unit, used to receive the location sharing permission granted by the user; A location acquisition unit, used to acquire the user's location in real time based on the location sharing authority; A speed calculation unit, used to obtain the number of steps according to the vibration information of the user, and determine the movement distance per unit time according to the number of steps as the movement rate; An acceleration value calculation unit, used to obtain a change in the motion rate per unit time as an acceleration value; The frequency adjustment unit is used to adjust the acquisition frequency of the position and the number of steps according to the movement speed and the acceleration value; the acquisition frequency is proportional to the movement speed, and the acquisition frequency is proportional to the acceleration value.
9. The path statistics system based on the smart wearable device according to claim 7, It is characterized in that The map group construction module includes: A map copying unit, used to copy the map containing the user point at the previous moment at a preset time interval; A user point updating unit, used to read the acquired user's position and update the user point in the copied map according to the position; The map overlay unit is used to overlay maps on the time axis to obtain a map group; wherein the maps in the map group are sorted according to the time sequence.
10. The path statistics system based on the smart wearable device according to claim 7, It is characterized in that The spatiotemporal path fitting module comprises: A map group splitting unit, used for splitting the map group according to a preset time period to obtain a sub-map group; A user point classification unit, used to query the user tags of the user points in each sub-map in the sub-map group, and classify the user points according to the user tags; A three-dimensional coordinate generating unit, for reading the coordinates and time of the user points of the same type, and constructing three-dimensional coordinates; the time is a relative time based on a time period; The fitting execution unit is used to fit the user's space-time path based on the three-dimensional coordinates.
Citation Information
Patent Citations
Multi-target trajectory acquisition method, device and system and storage medium
CN112465866A
Track monitoring method for preventing monitored target from being lost
CN115017243A
Truck track abnormity identification method and system
CN116524723A
Smart city safety management method and system
CN117079454A
Pedestrian wind environment analyzing system using commutational fluid dynamics with tree drag parameterization, analyzing method using the same
KR102387251B1
