User positioning supervision method and system capable of customizing jurisdiction
By introducing custom jurisdictions and automated evaluation functions into the personnel positioning system, the problems that existing systems require manual verification are solved, achieving more efficient supervision and easier work burden.
Patent Information
- Application Number
- CN202411829045.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-05-16
AI Technical Summary
The existing personnel positioning system requires manual verification by medical personnel, which increases the workload and is prone to inadequate supervision.
It provides a user positioning supervision method and system that can customize the jurisdiction, obtain the location through the positioning equipment worn by the user, determine the management level based on the IQ evaluation results and the ADL self-care ability evaluation results, automatically determine whether to leave the supervision area, calculate the distance of the separation and evaluate the degree of separation.
It has reduced the work burden of medical staff, increased supervision, and ensured the safety of people with dementia.
Smart Images

Figure CN120015370A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of positioning supervision, and in particular relates to a user positioning supervision method and system capable of defining a user-defined jurisdiction. Background Art
[0002] Dementia is a progressive degeneration of cognitive function caused by brain damage or disease. In severe cases, patients will be unable to distinguish between people, things, time, place and objects. When the patient's condition is serious, he or she needs to be sent to a rehabilitation institution for monitoring and treatment.
[0003] Rehabilitation institutions implement targeted supervision on people with dementia, the main purpose of which is to ensure their personal safety and social security. Medical staff conduct a comprehensive assessment based on the physical condition and cognitive performance of the supervised persons, and implement three levels of management based on the assessment results, namely strict management, general management, and loose management.
[0004] Most of the personnel positioning systems currently on the market can only display the movement trajectory of personnel based on their mobile phones, requiring medical personnel to manually check and determine whether they have left the supervision area. This undoubtedly increases the workload of medical personnel and is prone to inadequate supervision. Summary of the invention
[0005] Based on this, an embodiment of the present invention provides a user positioning supervision method and system with customizable jurisdictions, which aims to customize jurisdictions according to the management categories of dementia populations and automatically determine whether people have left the jurisdictions, so as to strengthen supervision while reducing the workload of medical staff.
[0006] A first aspect of an embodiment of the present invention provides a user positioning supervision method with a customizable jurisdiction, which is applied to a scenario where a user wears a positioning device, and the method includes:
[0007] Set up various regulatory areas and obtain the user's location through the positioning device worn by the user;
[0008] Determine the user's management level based on the user's IQ assessment results and ADL self-care ability assessment results;
[0009] According to the management level of the user, a corresponding supervision area is obtained, and according to the positional relationship between the user position and the corresponding supervision area, whether the user leaves the corresponding supervision area is determined;
[0010] If it is determined that the user has left the corresponding supervision area, the user's departure distance is calculated, and the degree of departure is evaluated based on the departure distance, and the feedback is given to the supervisor;
[0011] The user's management level is divided into at least three levels, including a first level, a second level, and a third level with gradually relaxed management requirements. In the step of obtaining the corresponding supervision area according to the user's management level, and judging whether the user has left the corresponding supervision area according to the positional relationship between the user's position and the corresponding supervision area, when the user's management level is the first level, the prohibited crossing of boundaries method is used for evaluation; when the user's management level is the second level, the boundary distance measurement method is used for evaluation; when the user's management level is the third level, the center radius measurement method is used for evaluation.
[0012] Furthermore, the step of determining whether the user leaves the corresponding supervision area according to the positional relationship between the user position and the corresponding supervision area includes:
[0013] Acquire adjacent marking points on the boundary of the supervision area corresponding to the management level of the user, and determine the slope between the adjacent marking points and each first straight line equation;
[0014] Determine a second straight line equation according to the horizontal coordinate of the user's position, and calculate the intersection points of each of the first straight line equation and the second straight line equation;
[0015] A threshold value is imposed on the intersection point in the horizontal axis direction to obtain a threshold value interval, wherein the threshold value interval is used to regard the intersection points as the same intersection point when they are within the interval;
[0016] Determine whether the horizontal coordinate of the intersection point is less than the horizontal coordinate of the user position;
[0017] If it is determined that the abscissa of the intersection point is smaller than the abscissa of the user position, determining a first amount by which the abscissa of the intersection point is smaller than the abscissa of the user position;
[0018] If it is determined that the horizontal coordinate of the intersection point is not less than the horizontal coordinate of the user position, then determining whether the horizontal coordinate of the intersection point is greater than the horizontal coordinate of the user position;
[0019] If it is determined that the abscissa of the intersection point is greater than the abscissa of the user position, determining a second amount by which the abscissa of the intersection point is greater than the abscissa of the user position;
[0020] Determining whether the first number and the second number are both odd numbers;
[0021] If it is determined that both the first number and the second number are odd numbers, it is determined that the user has not left the corresponding supervision area;
[0022] If it is determined that the first number and the second number are not both odd numbers, it is determined that the user leaves the corresponding supervision area.
[0023] Furthermore, when the user's management level is the first level, the step of using the prohibition of crossing the boundary method to conduct the evaluation includes:
[0024] Determine the foot point of the perpendicular line from the user position to the corresponding regulatory area boundaries, and calculate the straight-line distance between each foot point and the user position;
[0025] The shortest distance between each perpendicular foot point and the user's position is determined as the user's escape distance;
[0026] Determine whether the user's disengagement distance is 0;
[0027] If the user's disengagement distance is determined to be 0, the user's disengagement degree is determined to be no disengagement;
[0028] If it is determined that the user's disengagement distance is not 0, it is determined that the user's disengagement degree is severe disengagement.
[0029] Furthermore, when the user's management level is the second level, the step of using the boundary distance measurement method to perform evaluation includes:
[0030] Determine the foot point of the perpendicular line from the user position to the corresponding regulatory area boundaries, and calculate the straight-line distance between each foot point and the user position;
[0031] The shortest distance between each perpendicular foot point and the user's position is determined as the user's escape distance;
[0032] Determine whether the user's escape distance is less than or equal to a preset distance;
[0033] If it is determined that the user's disengagement distance is less than or equal to the preset distance, the user's disengagement degree is determined to be moderate to light disengagement;
[0034] If it is determined that the user's disengagement distance is greater than the preset distance, the user's disengagement degree is determined to be severe disengagement.
[0035] Furthermore, when the user's management level is the third level, in the step of using the circle center radius measurement method for evaluation, the user's degree of separation is evaluated based on the user's situation in the supervision area and the outdoor activity safety area.
[0036] Furthermore, the process of determining the outdoor activity safety area includes:
[0037] Determine the straight-line distance between the real-time user location and the user's residence location based on the real-time user location and the user's residence location;
[0038] Calculate the distance for outdoor activities based on the supervision area;
[0039] Filtering the outdoor activity distances of preset indicators to form a set, and calculating the average value and standard deviation of the set;
[0040] According to the normal distribution of the data in the set, data that does not meet the requirements are deleted to obtain a target set, so as to improve the accuracy of determining the safe area for outdoor activities;
[0041] Filter the real-time user locations and remove points with consistent coordinates to obtain a set of outdoor activity safety marker points;
[0042] Determining the boundary vertices of the outdoor activity safety area according to the outdoor activity safety mark point set;
[0043] The outdoor activity safety area is obtained by connecting each boundary vertex with a line segment.
[0044] Furthermore, the step of determining the boundary vertices of the outdoor activity safety area according to the outdoor activity safety mark point set includes:
[0045] Calculate the target straight-line distance between each mark point in the outdoor activity safety mark point set and the user's residence location;
[0046] Sort the target straight-line distances in descending order, and arrange the corresponding marking points according to the sorting result to form a target set;
[0047] Taking the first marked point in the target set as a starting point, adding it to a set of boundary vertices with a preset number requirement, and calculating the slope between the first marked point and each marked point in the target set;
[0048] The angle between the slopes is calculated, and a preset number of boundary vertices is determined according to the angle between the slopes.
[0049] A second aspect of an embodiment of the present invention provides a user location supervision system for a customizable jurisdiction, which is used to implement the user location supervision method for a customizable jurisdiction provided in the first aspect, and the system includes:
[0050] The setting module is used to set various supervision areas and obtain the user's location through the positioning device worn by the user;
[0051] A determination module, used to determine the user's management level according to the user's IQ assessment results and ADL self-care ability assessment results;
[0052] A judgment module, used to obtain a corresponding supervision area according to the management level of the user, and judge whether the user leaves the corresponding supervision area according to the position relationship between the user position and the corresponding supervision area;
[0053] The evaluation module is used to calculate the user's departure distance if it is determined that the user has left the corresponding supervision area, and to evaluate the degree of departure based on the departure distance and provide feedback to the supervisor.
[0054] A third aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the user location supervision method for a customizable area provided in the first aspect.
[0055] The fourth aspect of an embodiment of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the user location supervision method for a customizable jurisdiction provided in the first aspect is implemented.
[0056] A user positioning supervision method and system with customizable jurisdictions is provided in an embodiment of the present invention. The method sets various supervision areas and obtains the user's location through a positioning device worn by the user; determines the user's management level based on the user's IQ assessment results and ADL self-care ability assessment results; obtains the corresponding supervision area based on the user's management level, and determines whether the user has left the corresponding supervision area based on the positional relationship between the user's location and the corresponding supervision area; if it is determined that the user has left the corresponding supervision area, calculates the user's departure distance, and evaluates the degree of departure based on the departure distance, and provides feedback to the supervisor, which can reduce the workload of medical staff while strengthening supervision. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A flowchart of a user location monitoring method for a user-defined area provided in the first embodiment of the present invention;
[0058] Figure 2 A structural block diagram of a user location monitoring system capable of defining a user-defined area provided in the second embodiment of the present invention;
[0059] Figure 3 This is a structural block diagram of an electronic device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0060] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0061] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0062] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.
[0063] Embodiment 1
[0064] According to an embodiment of the present invention, a method for user location supervision in a customizable jurisdiction is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.
[0065] In this embodiment 1, a user location monitoring method with a customizable jurisdiction is provided, which can be used in electronic devices, such as computers. Figure 1 , Figure 1 A flowchart of an implementation of a user location supervision method for a customizable jurisdiction provided in the first embodiment of the present invention is shown, which specifically includes steps S01 to S04.
[0066] Step S01, setting various supervision areas and obtaining the user's location through a positioning device worn by the user.
[0067] Specifically, the corresponding supervision area can be set according to the supervision level. In this embodiment, firstly, an existing electronic map is imported. The map should have the function of picking up the longitude and latitude coordinates of any point. The longitude and latitude coordinates are in the WGS84 coordinate system format. In a clockwise direction, the required supervision area on the electronic map, for example, along the building boundary of the rehabilitation institution, is marked with point A. i , pick up the latitude and longitude coordinates of the point (x i ,y i ), where x i is the latitude of the point, y iFor example, if the longitude and latitude of the marking point are 117.966460 north latitude and 28.431002 Tokyo, then its longitude and latitude coordinates are (117.966460, 28.431002), where the longitude and latitude retain six decimal places and the actual deviation value can be within 0.1m. Then convert the marking point A. i The longitude and latitude coordinates are plane straight line coordinates (X i , Y i ), the calculation formula is: X i =R×cos(x i )×cos(y i ), Y i =R×cos(x i )×sin(y i ), where R is the radius of the earth, R = 6371.393 km, the calculation result is in km, and the accuracy is to three decimal places.
[0068] Furthermore, set a virtual marker point A i+1 , so that A i+1 Coincident with the starting point A1, that is, A i+1 Coordinate (X i+1 , Y i+1 )=A1 coordinates (X1, Y1), and finally starting from the starting point A1, connect the marked points A i With A i+1 , forming a closed polygon, the area inside the polygon is the regulatory jurisdiction, and the lines between the marked points are the boundaries of the regulatory jurisdiction.
[0069] In addition, the supervised person wears a device that supports GPS positioning and LBS positioning technology, such as a smart bracelet, and moves freely indoors and outdoors. Set the supervision time T j , the device feedbacks the location information of the supervised person at a certain moment and places a mark point A on the electronic map j , record the coordinates of the point (x j ,y j ), where x j is the latitude of the point, y j is the longitude of the point. Similarly, convert the marked point A j The longitude and latitude coordinates are plane straight line coordinates (X j , Y j ).
[0070] Step S02, determining the user's management level according to the user's IQ assessment results and ADL self-care ability assessment results.
[0071] It can be understood that the IQ assessment results and the ADL (Activities of Daily Living) self-care ability assessment results can be obtained through expert evaluation. In this embodiment, the management level F of the supervised person is set according to the IQ score results and ADL self-care ability score results of the supervised person using the following table, F∈{"strict management", "ordinary management", "loose management"}.
[0072]
[0073] It should be noted that the user's management level is divided into at least three levels, including the first level, the second level and the third level with gradually relaxed management requirements. It can be understood that the first level corresponds to strict management, the second level corresponds to ordinary management, and the third level corresponds to relaxed management. Among them, according to the user's management level, the corresponding supervision area is obtained, and according to the positional relationship between the user's position and the corresponding supervision area, it is judged whether the user leaves the corresponding supervision area. When the user's management level is the first level, the prohibited crossing boundary method is used for evaluation; when the user's management level is the second level, the boundary distance measurement method is used for evaluation; when the user's management level is the third level, the center radius measurement method is used for evaluation.
[0074] Step S03: acquiring a corresponding supervision area according to the management level of the user, and judging whether the user leaves the corresponding supervision area according to the positional relationship between the user position and the corresponding supervision area.
[0075] Specifically, step S031 obtains adjacent marking points on the boundary of the supervision area corresponding to the user's management level, and determines the slope between the adjacent marking points and the first straight line equations. For example, the marking point A is calculated. i With A i+1 The slope K i , the calculation formula is K i =(Y i+1 -Y i ) / (X i+1 -X i );
[0076] Step S032: determine the second straight line equation according to the horizontal coordinate of the user's position, and calculate the intersection of each first straight line equation and the second straight line equation. For example, calculate the mark point A i With A i+1 The equation of the straight line between j The intersection point X between the straight line equations i * , the calculation formula is X i * =(Y j -Yi ) / K i +X i ;
[0077] Step S033, the intersection is subjected to threshold restriction in the horizontal axis direction to obtain a threshold interval. The threshold interval is used to regard the intersection points as the same intersection when they are within the interval. It can be understood that i * Perform threshold limiting, the threshold interval is (min(X i ,X i+1 ),max(X i ,X i+1 )), calculate the intersection point X after limiting the threshold i z , the calculation formula is: If X i z ∈(min(X i ,X i+1 ),max(X i ,X i+1 )), then X i z =X i * ,otherwise
[0078] Step S034, determining whether the horizontal coordinate of the intersection point is smaller than the horizontal coordinate of the user's position;
[0079] Step S035, if it is determined that the horizontal coordinate of the intersection point is smaller than the horizontal coordinate of the user position, determining a first amount by which the horizontal coordinate of the intersection point is smaller than the horizontal coordinate of the user position;
[0080] Step S036, if it is determined that the horizontal coordinate of the intersection point is not less than the horizontal coordinate of the user position, then determining whether the horizontal coordinate of the intersection point is greater than the horizontal coordinate of the user position;
[0081] Step S037, if it is determined that the horizontal coordinate of the intersection point is greater than the horizontal coordinate of the user position, determining a second amount by which the horizontal coordinate of the intersection point is greater than the horizontal coordinate of the user position;
[0082] Step S038, determining whether the first number and the second number are both odd numbers;
[0083] Step S039: if it is determined that both the first number and the second number are odd numbers, it is determined that the user has not left the corresponding supervision area;
[0084] Step S0310: If it is determined that the first number and the second number are not both odd numbers, it is determined that the user has left the corresponding supervision area.
[0085] Step S04: If it is determined that the user has left the corresponding supervision area, the user's departure distance is calculated, and the degree of departure is evaluated based on the departure distance, and the feedback is given to the supervisor.
[0086] It should be noted that when the user's management level is the first level, the steps of assessment using the prohibition of crossing boundaries method include:
[0087] Determine the user's location A j To the corresponding regulatory area boundary line (i.e., marking point A i With A i+1 The foot point A of the straight line between ji , its coordinate calculation formula is: X ji =((X i -X i+1 )^2×X j -(Y i+1 -Y i )×(X i -X i+1 )×Y j -(Y i+1 -Y i )×(X i+1 Y i -X i Y i+1 )) / ((Y i+1 -Y i )^2+(X i -X i+1 )^2), Y ji =((Y i+1 -Y i )^2×Y j -(Y i+1 -Y i )×(X i -X i+1 )×X j -(X i -X i+1 )×(X i+1 Y i -X i Y i+1 )) / ((Y i+1 -Y i )^2+(X i -X i+1 )^2), and calculate each perpendicular point A ji With user location A j The straight-line distance L ji , the calculation formula is: L ji =sqrt((X j -X ji )^2+(Y j-Y ji )^2), the calculation result is in km, with an accuracy of three decimal places;
[0088] The shortest distance between each perpendicular foot point and the user's position is determined as the user's escape distance L ji * , the calculation formula is: when M j = "within the regulatory area", L ji * =0; when M j = "outside the regulatory area", it is equal to each L ji The minimum value in L ji * =min(L j1 ,L j2 ,…,L ji );
[0089] Determine whether the user's disengagement distance is 0;
[0090] If the user's disengagement distance is determined to be 0, the user's disengagement degree is determined to be no disengagement;
[0091] If it is determined that the user's disengagement distance is not 0, it is determined that the user's disengagement degree is severe disengagement.
[0092] When the user's management level is the second level, the step of using the boundary distance measurement method to perform evaluation includes:
[0093] Determine the foot point of the perpendicular line from the user location to the corresponding regulatory area boundaries, and calculate the straight-line distance between each foot point and the user location;
[0094] The shortest distance between each perpendicular foot point and the user's position is determined as the user's escape distance;
[0095] Determine whether the user's escape distance is less than or equal to a preset distance, where the preset distance is a fixed value, for example, the preset distance D=0.2, i.e., 200m;
[0096] If it is determined that the user's disengagement distance is less than or equal to the preset distance, the user's disengagement degree is determined to be moderate to light disengagement;
[0097] If it is determined that the user's disengagement distance is greater than the preset distance, the user's disengagement degree is determined to be severe disengagement. It is understandable that the evaluation supervision time T j When the supervised person's degree of disengagement is Z jn , the calculation method is: if L ji * =0, then Z jn = "No separation"; if L ji *∈(0, D], then Z jn = "moderate to mild detachment"; if L ji * >D, then Z jn = “Severe detachment”.
[0098] In this embodiment, when the user's management level is the third level, in the step of using the circle center radius measurement method to evaluate, the user's degree of separation is evaluated according to the user's situation in the supervision area and the outdoor activity safety area. Specifically, according to the user's location, the method in steps S031 to S0310 is used to evaluate the user's degree of separation, wherein the degree of separation is divided into three levels: "no separation", "moderately light separation", and "severe separation". Then Z1 = "no separation", Z2 = "moderately light separation", and Z3 = "severe separation". When falling within the outdoor safety activity boundary, M b = "In the outdoor activity safety area", otherwise M b = "Outside the outdoor activity area"; when M j = "within the regulatory area", and M b = "within the outdoor activity safety area", then Z jn = "No separation"; if M j = "within the regulatory area", and M b = "Outside the outdoor activity safety area", then Z jn = "moderate to mild detachment"; if M j = "outside the regulatory area", then Z jn = “Severe detachment”.
[0099] It should be noted that the process of determining the outdoor activity safety area includes:
[0100] Based on real-time user location A j and the user's residence location A0, determining the straight-line distance between the real-time user location and the user's residence location;
[0101] Calculate the outdoor activity distance R according to the supervision area j * , the calculation formula is: when M j = "Outside the regulatory area", R j * =0; when M j = "within the regulatory area", if R j * ≤0.1, R j * = 0, that is, within 100 meters of the residence, it is considered an indoor activity; when M j = "within the regulatory area", if R j * >0.1, R j* =R j ;
[0102] Filter the outdoor activity distances of the preset indicators to form a set, and calculate the mean and standard deviation of the set, that is, filter non-zero R j * Form a set R with q data q , calculate the average value of the set The calculation formula is The calculation formula of standard deviation σ is:
[0103]
[0104] According to the normal distribution of the data in the set, the data that does not meet the requirements are deleted to obtain the target set to improve the accuracy of determining the safe area for outdoor activities. It can be understood that, assuming that the set R q When the amount of data is large enough, it conforms to the normal distribution, and a 95% confidence interval is used. Delete the set R q Medium, greater than Data from outdoor activities to form a safe distance set R q * ;
[0105] Real-time user location A j Filter and remove points with consistent coordinates to obtain a set of outdoor activity safety marker points A z , where A j The straight-line distance R from A0 j ∈R q * , then filter A j Enter A z , otherwise do not enter;
[0106] According to the set of outdoor activity safety mark points, the boundary vertices of the outdoor activity safety area are determined, including:
[0107] Step 1: Calculate the target straight-line distance between each mark point in the outdoor activity safety mark point set and the user's residence location;
[0108] Step 2: Sort the target straight-line distances in descending order, and arrange the corresponding marked points according to the sorting results to form a target set, that is, {A1 * , A2 * …, A z *}, where A1 * A0 is the farthest from the residence of the supervised person, A2 * Secondly, and so on;
[0109] Step 3: The first marked point A1 in the target set * As the starting point, add it to the boundary vertex set with a preset number of requirements, and calculate the slope between the first marked point and each marked point in the target set. More specifically, in step 3.1, add A1 * As the starting point, filter the safe activity boundary vertex set B whose number of incoming data is t t , i.e. A1 * =B1; Step 3.2, calculate B1 to set A z * The slope K between each marked point z-1 , the calculation formula is K z-1 =(Y z * -Y1 * ) / (X z * -X1 * ), where z>1; Step 3.3, Assume A2 * For A1 * Start with the next vertex in the clockwise direction and calculate A2 according to step 3.2 * The slope between K1 and B1 is calculated. z-1 The angle θ between z-1 , the calculation formula is θ z-1 =arctan((K1-K z-1 ) / (1+K1×K z-1 ));
[0110] Step 4: Calculate the angle between the slopes, and determine a preset number of boundary vertices based on the angle between the slopes. More specifically, step 4.1: If all θ z-1 If both are ≥ 0, select A2 * Enter the safe activity boundary vertex set B as the second vertex t , i.e. A2 * =B2; Step 4.2, if all θ z-1 If all conditions are not ≥ 0, then A2 is abandoned. * , assuming A3 * For A1 * Start with the next vertex in the clockwise direction and calculate A3 according to step (4). * With A1 * The slope between K2 and K z-1 The angle θ between z-1 , the calculation formula is θ z-1 =arctan((K2-K z-1 ) / (1+K2×K z-1 )), if all θ z-1If both are ≥ 0, select A3 * Enter the safe activity boundary vertex set B as the second vertex t , i.e. A3 * = B2, and so on, until vertex B2 is found; Step 4.3, after vertex B2 is found, from set A z * Delete the marked points that have become vertices, repeat steps 3.2 to 4.2 until vertex B3 is found; step 4.4, after vertex B3 is found, repeat steps 3.2 to 4.3 until no vertex that meets the judgment conditions is found, then the last vertex that fully meets the judgment conditions is B t ; Step 4.5, set virtual marker point B t+1 , so that B t+1 Overlap with B1, that is, B i+1 coordinates = B1 coordinates;
[0111] Step 5: Connect each boundary vertex with a line segment to obtain the outdoor activity safety area. Starting from the starting point B1, connect the marked points B t With B t+1 , forming a closed polygon. The area inside the polygon is the outdoor safety activity jurisdiction, and the lines between the marked points are the boundaries of outdoor safety activities.
[0112] It should be noted that when Z jn = “No escape”, the supervised person’s activity area is normal; when Z jn = "moderate to mild separation", triggering system warning, M t = During “normal management”, use the external loudspeaker to call on the supervised personnel to return to the safe area as soon as possible; M t = "relaxed management", remind the supervised personnel by sending text messages or phone calls to return to the safe area as soon as possible; when Z jn =When the person is “severely out of control”, the system warning is upgraded and the staff of the rehabilitation institution is dispatched to bring back the supervised person based on the real-time positioning of the smart bracelet.
[0113] In summary, the user positioning supervision method with customizable jurisdiction in the above-mentioned embodiments of the present invention sets various types of supervision areas and obtains the user's location through a positioning device worn by the user; determines the user's management level based on the user's IQ assessment results and ADL self-care ability assessment results; obtains the corresponding supervision area based on the user's management level, and determines whether the user is out of the corresponding supervision area based on the positional relationship between the user's location and the corresponding supervision area; if it is determined that the user is out of the corresponding supervision area, calculates the user's departure distance, and evaluates the degree of departure based on the departure distance, and feeds back to the supervisor, which can reduce the workload of medical staff while strengthening supervision.
[0114] Embodiment 2
[0115] See also Figure 2 , Figure 2 1 is a block diagram of a user location monitoring system for a customizable jurisdiction provided in Embodiment 2 of the present invention. The user location monitoring system 200 for a customizable jurisdiction is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0116] Specifically, the user location monitoring system 200 with customizable jurisdiction includes: a setting module 21, a determination module 22, a judgment module 23 and an evaluation module 24, wherein:
[0117] The setting module 21 is used to set various supervision areas and obtain the user's location through the positioning device worn by the user;
[0118] A determination module 22, used to determine the management level of the user according to the IQ assessment result and the ADL self-care ability assessment result of the user;
[0119] The judgment module 23 is used to obtain the corresponding supervision area according to the management level of the user, and judge whether the user leaves the corresponding supervision area according to the position relationship between the user position and the corresponding supervision area;
[0120] The evaluation module 24 is used to calculate the user's departure distance if it is determined that the user has left the corresponding supervision area, and to evaluate the degree of departure according to the departure distance, and to provide feedback to the supervisor;
[0121] The user's management level is divided into at least three levels, including a first level, a second level, and a third level with gradually relaxed management requirements. In the step of obtaining the corresponding supervision area according to the user's management level, and judging whether the user has left the corresponding supervision area according to the positional relationship between the user's position and the corresponding supervision area, when the user's management level is the first level, the prohibited crossing of boundaries method is used for evaluation; when the user's management level is the second level, the boundary distance measurement method is used for evaluation; when the user's management level is the third level, the center radius measurement method is used for evaluation. In the step of using the center radius measurement method for evaluation when the user's management level is the third level, the degree of user's departure is evaluated based on the user's situation in the supervision area and the outdoor activity safety area.
[0122] Further, in some optional embodiments of the present invention, the judging module 23 includes:
[0123] A first acquisition unit, used to acquire adjacent marking points on the boundary of the supervision area corresponding to the management level of the user, and determine the slope between the adjacent marking points and each first straight line equation;
[0124] a first determining unit, configured to determine a second straight line equation according to the horizontal coordinate of the user position, and calculate the intersection points of each of the first straight line equation and the second straight line equation;
[0125] A limiting unit, used for performing a threshold limit on the intersection point in the horizontal axis direction to obtain a threshold interval, wherein the threshold interval is used for treating the intersection points as the same intersection point when they are within the interval;
[0126] A first judging unit, configured to judge whether the horizontal coordinate of the intersection point is smaller than the horizontal coordinate of the user position;
[0127] a second determining unit, configured to determine, if it is determined that the abscissa of the intersection point is smaller than the abscissa of the user position, a first amount by which the abscissa of the intersection point is smaller than the abscissa of the user position;
[0128] a second judging unit, configured to judge whether the abscissa of the intersection point is greater than the abscissa of the user position if it is judged that the abscissa of the intersection point is not less than the abscissa of the user position;
[0129] a third determining unit, configured to determine, if it is determined that the abscissa of the intersection point is greater than the abscissa of the user position, a second amount by which the abscissa of the intersection point is greater than the abscissa of the user position;
[0130] A third judging unit, configured to judge whether the first number and the second number are both odd numbers;
[0131] a fourth determining unit, configured to determine that the user has not left the corresponding supervision area if it is determined that the first number and the second number are both odd numbers;
[0132] The fifth determining unit is configured to determine that the user leaves the corresponding supervision area if it is determined that the first number and the second number are not both odd numbers.
[0133] Furthermore, in some optional embodiments of the present invention, the evaluation module 24 includes:
[0134] a sixth determining unit, configured to determine a foot point of a perpendicular line from the user position to each boundary of the corresponding supervision area, and calculate a straight-line distance between each foot point and the user position;
[0135] A seventh determining unit, configured to determine the shortest distance among the straight-line distances between each perpendicular foot point and the user's position as the user's escape distance;
[0136] A fourth determination unit, used to determine whether the user's escape distance is 0;
[0137] an eighth determining unit, configured to determine the user's degree of separation as no separation if it is determined that the user's separation distance is 0;
[0138] The ninth determining unit is configured to determine that the user's degree of separation is severe separation if it is determined that the user's separation distance is not 0.
[0139] Furthermore, in some optional embodiments of the present invention, the evaluation module 24 further includes:
[0140] a tenth determining unit, configured to determine the foot points of perpendicular lines from the user position to the corresponding boundaries of the supervision area, and calculate the straight-line distances between the foot points and the user position;
[0141] an eleventh determining unit, configured to determine the shortest distance among the straight-line distances between each perpendicular foot point and the user's position as the user's escape distance;
[0142] A fifth judgment unit, used to judge whether the user's escape distance is less than or equal to a preset distance;
[0143] a twelfth determining unit, configured to determine whether the user's separation distance is less than or equal to a preset distance, and then determine that the user's separation degree is medium or light separation;
[0144] The thirteenth determining unit is configured to determine that the user's degree of separation is severe separation if it is determined that the user's separation distance is greater than a preset distance.
[0145] Furthermore, in some optional embodiments of the present invention, the evaluation module 24 further includes:
[0146] A fourteenth determining unit, configured to determine a straight-line distance between the real-time user location and the user residence location according to the real-time user location and the user residence location;
[0147] A first calculation unit, used for calculating the outdoor activity distance according to the supervision area;
[0148] A second calculation unit, used for screening outdoor activity distances of preset indicators to form a set, and calculating the average value and standard deviation of the set;
[0149] A deletion unit, used to delete data that does not meet the requirements according to the normal distribution of the data in the set, to obtain a target set, so as to improve the accuracy of determining the outdoor activity safety area;
[0150] A screening unit is used to screen the real-time user locations and remove points with consistent coordinates to obtain a set of outdoor activity safety marking points;
[0151] A fifteenth determining unit, configured to determine the boundary vertices of the outdoor activity safety area according to the outdoor activity safety mark point set;
[0152] The connection unit is used to connect each boundary vertex through a line segment to obtain the outdoor activity safety area.
[0153] Further, in some optional embodiments of the present invention, the fifteenth determining unit includes:
[0154] A calculation subunit, used to calculate the target straight-line distance between each mark point in the outdoor activity safety mark point set and the user's residence location;
[0155] A sorting subunit is used to sort the target straight-line distances in descending order, and arrange the corresponding marking points according to the sorting result to form a target set;
[0156] A first calculation subunit is used to take a first marked point in the target set as a starting point, add it to a boundary vertex set with a preset number requirement, and calculate the slope between the first marked point and each marked point in the target set;
[0157] The second calculation subunit is used to calculate the angle between the slopes, and determine a preset number of boundary vertices according to the angle between the slopes.
[0158] Embodiment 3
[0159] Another aspect of the present invention provides an electronic device, see Figure 3 , shown is an electronic device in Embodiment 3 of the present invention, including a memory 20, a processor 10, and a computer program 30 stored in the memory and executable on the processor, wherein when the processor 10 executes the computer program 30, the user location supervision method for a customizable area as described above is implemented.
[0160] In some embodiments, the processor 10 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 20, such as executing access restriction programs.
[0161] Among them, the memory 20 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory 20 may be an internal storage unit of an electronic device in some embodiments, such as a hard disk of the electronic device. The memory 20 may also be an external storage device of an electronic device in other embodiments, such as a plug-in hard disk equipped on the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. Further, the memory 20 may also include both an internal storage unit and an external storage device of the electronic device. The memory 20 may be used not only to store application software and various types of data of the electronic device, but also to temporarily store data that has been output or is to be output.
[0162] It should be pointed out that Figure 3 The structure shown does not constitute a limitation on the electronic device. In other embodiments, the electronic device may include fewer or more components than those shown in the figure, or combine certain components, or arrange the components differently.
[0163] The embodiment of the present invention further proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the user location supervision method for a customizable jurisdiction as described above.
[0164] Those skilled in the art will appreciate that the logic and / or steps represented in the flowchart or otherwise described herein, for example, may be considered as an ordered list of executable instructions for implementing logical functions, and may be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0165] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0166] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or a combination thereof: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0167] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0168] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the attached claims.
Claims
1. A user location monitoring method capable of defining a customizable jurisdiction, characterized in that: Applied to a scenario where a user wears a positioning device, the method includes: Set up various regulatory areas and obtain the user's location through the positioning device worn by the user; Determine the user's management level based on the user's IQ assessment results and ADL self-care ability assessment results; According to the management level of the user, a corresponding supervision area is obtained, and according to the positional relationship between the user position and the corresponding supervision area, whether the user leaves the corresponding supervision area is determined; If it is determined that the user has left the corresponding supervision area, the user's departure distance is calculated, and the degree of departure is evaluated based on the departure distance, and the feedback is given to the supervisor; The user's management level is divided into at least three levels, including a first level, a second level, and a third level with gradually relaxed management requirements. In the step of obtaining the corresponding supervision area according to the user's management level, and judging whether the user has left the corresponding supervision area according to the positional relationship between the user's position and the corresponding supervision area, when the user's management level is the first level, the prohibited crossing of boundaries method is used for evaluation; when the user's management level is the second level, the boundary distance measurement method is used for evaluation; when the user's management level is the third level, the center radius measurement method is used for evaluation.
2. The user location monitoring method for a customizable jurisdiction according to claim 1, characterized in that: The step of determining whether the user leaves the corresponding supervision area according to the position relationship between the user position and the corresponding supervision area comprises: Acquire adjacent marking points on the boundary of the supervision area corresponding to the management level of the user, and determine the slope between the adjacent marking points and each first straight line equation; Determine a second straight line equation according to the horizontal coordinate of the user's position, and calculate the intersection points of each of the first straight line equation and the second straight line equation; A threshold value is imposed on the intersection point in the horizontal axis direction to obtain a threshold value interval, wherein the threshold value interval is used to regard the intersection points as the same intersection point when they are within the interval; Determine whether the horizontal coordinate of the intersection point is less than the horizontal coordinate of the user position; If it is determined that the abscissa of the intersection point is smaller than the abscissa of the user position, determining a first amount by which the abscissa of the intersection point is smaller than the abscissa of the user position; If it is determined that the horizontal coordinate of the intersection point is not less than the horizontal coordinate of the user position, then determining whether the horizontal coordinate of the intersection point is greater than the horizontal coordinate of the user position; If it is determined that the abscissa of the intersection point is greater than the abscissa of the user position, determining a second amount by which the abscissa of the intersection point is greater than the abscissa of the user position; Determining whether the first number and the second number are both odd numbers; If it is determined that both the first number and the second number are odd numbers, it is determined that the user has not left the corresponding supervision area; If it is determined that the first number and the second number are not both odd numbers, it is determined that the user leaves the corresponding supervision area.
3. The user location monitoring method for a customizable jurisdiction according to claim 2, characterized in that: When the user's management level is the first level, the steps of using the prohibition of crossing the boundary method to conduct the evaluation include: Determine the foot point of the perpendicular line from the user position to the corresponding regulatory area boundaries, and calculate the straight-line distance between each foot point and the user position; The shortest distance between each perpendicular foot point and the user's position is determined as the user's escape distance; Determine whether the user's disengagement distance is 0; If the user's disengagement distance is determined to be 0, the user's disengagement degree is determined to be no disengagement; If it is determined that the user's disengagement distance is not 0, it is determined that the user's disengagement degree is severe disengagement.
4. The user location monitoring method for a customizable jurisdiction according to claim 2, characterized in that: When the user's management level is the second level, the step of using the boundary distance measurement method to perform evaluation includes: Determine the foot point of the perpendicular line from the user position to the corresponding regulatory area boundaries, and calculate the straight-line distance between each foot point and the user position; The shortest distance between each perpendicular foot point and the user's position is determined as the user's escape distance; Determine whether the user's escape distance is less than or equal to a preset distance; If it is determined that the user's disengagement distance is less than or equal to the preset distance, the user's disengagement degree is determined to be moderate to light disengagement; If it is determined that the user's disengagement distance is greater than the preset distance, the user's disengagement degree is determined to be severe disengagement.
5. The user location monitoring method for a customizable jurisdiction according to claim 2, characterized in that: When the user's management level is the third level, in the step of using the circle center radius measurement method to perform the evaluation, the user's degree of separation is evaluated based on the user's situation in the supervision area and the outdoor activity safety area.
6. The user location monitoring method for a customizable jurisdiction according to claim 5, characterized in that: The process of determining the outdoor activity safety area includes: Determine the straight-line distance between the real-time user location and the user's residence location based on the real-time user location and the user's residence location; Calculate the distance for outdoor activities based on the supervision area; Filtering the outdoor activity distances of preset indicators to form a set, and calculating the average value and standard deviation of the set; According to the normal distribution of the data in the set, data that does not meet the requirements are deleted to obtain a target set, so as to improve the accuracy of determining the safe area for outdoor activities; Filter the real-time user locations and remove points with consistent coordinates to obtain a set of outdoor activity safety marker points; Determining the boundary vertices of the outdoor activity safety area according to the outdoor activity safety mark point set; The outdoor activity safety area is obtained by connecting each boundary vertex with a line segment.
7. The user location monitoring method for a customizable jurisdiction according to claim 6, characterized in that: The step of determining the boundary vertices of the outdoor activity safety area according to the outdoor activity safety mark point set comprises: Calculate the target straight-line distance between each mark point in the outdoor activity safety mark point set and the user's residence location; Sort the target straight-line distances in descending order, and arrange the corresponding marking points according to the sorting result to form a target set; Taking the first marked point in the target set as a starting point, adding it to a set of boundary vertices with a preset number requirement, and calculating the slope between the first marked point and each marked point in the target set; The angle between the slopes is calculated, and a preset number of boundary vertices is determined according to the angle between the slopes.
8. A user location monitoring system capable of defining a customizable jurisdiction, characterized in that: A method for monitoring user location in a customizable jurisdiction according to any one of claims 1 to 7, the system comprising: The setting module is used to set various supervision areas and obtain the user's location through the positioning device worn by the user; A determination module, used to determine the user's management level according to the user's IQ assessment results and ADL self-care ability assessment results; A judgment module, used to obtain a corresponding supervision area according to the management level of the user, and judge whether the user leaves the corresponding supervision area according to the position relationship between the user position and the corresponding supervision area; The evaluation module is used to calculate the user's departure distance if it is determined that the user has left the corresponding supervision area, and to evaluate the degree of departure based on the departure distance and provide feedback to the supervisor.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the user location supervision method for a customizable jurisdiction as described in any one of claims 1-7 is implemented.
10. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for user location supervision in a customizable area as described in any one of claims 1 to 7 is implemented.