A high-precision indoor positioning method, device, equipment and medium

Through ultra-wideband wireless positioning technology and deep learning algorithms, combined with quadratic weighted least squares and Kalman filter algorithms, high-precision indoor positioning and attitude identification are achieved, solving the problems of anti-interference, accuracy and attitude recognition in existing technologies. issues to ensure the safety of the elderly.

CN114924225BActive Publication Date: 2024-09-17HEFEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210516407.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2022-04-28
Filing Date
2022-05-12
Publication Date
2024-09-17
Estimated Expiration
2042-05-12

AI Technical Summary

Technical Problem

The indoor positioning methods in the existing technology have poor anti-interference ability, low horizontal positioning accuracy, lack of vertical centimeter-level positioning capabilities, and inability to effectively identify vertical postures, resulting in greater safety risks for the elderly at home.

Method used

Ultra-wideband wireless positioning technology is used combined with the quadratic weighted least squares algorithm and Kalman filter algorithm to perform three-dimensional space positioning. The deep learning algorithm is used to identify human postures, obtain precise positioning three-dimensional coordinates, and determine abnormal postures.

Benefits of technology

It improves positioning accuracy and stability, reduces horizontal and vertical positioning errors, and can promptly identify the elderly person's fall status to ensure the safety of the elderly at home.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114924225B_ABST
    Figure CN114924225B_ABST
Patent Text Reader

Abstract

The present invention proposes a high-precision indoor positioning method, which includes two aspects. On the one hand, it is a three-dimensional precise positioning algorithm: first, an ultra-wideband wireless positioning algorithm is used to calculate the initial positioning data of a human target to obtain the original positioning coordinates; then, a quadratic weighted least squares algorithm is used to calculate the original positioning coordinates to obtain estimated coordinates; finally, the estimated coordinates are substituted into the Kalman filter algorithm to calculate and obtain precise three-dimensional positioning coordinates. On the other hand, it is a human posture identification method: first, a posture identification model is trained based on a deep learning algorithm, and then the precise positioning three-dimensional coordinates are input into the trained posture identification model to obtain the human target posture identification result. The present invention solves the problem of weak anti-interference ability and instability of signals during positioning, significantly improves the positioning accuracy of the system, and can identify the posture of human targets and obtain abnormal states for timely processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of indoor real-time positioning and posture monitoring, and in particular to a high-precision indoor positioning method, equipment, device and medium. Background Art

[0002] In recent years, with the deepening of the aging of the population in my country, the number of empty-nest elderly people has been increasing day by day. Whether it is home-based or institutionalized, the time that the elderly live alone indoors will increase greatly, and it is particularly important to monitor the activity status of the elderly at home in real time. Therefore, it is the basis for remote monitoring to accurately and real-time grasp the activity location, body posture, and health status information of the elderly at home. It is very urgent to develop a high-precision, high-integration, high-dynamic, and high-reliability indoor positioning method and device for the elderly at home.

[0003] At present, there are many wearable devices for monitoring the health status of the elderly based on the Internet of Things technology. They mainly use sensors to sense the daily living conditions of the elderly, provide positioning and monitoring of the elderly's home activities, and then transmit the positioning data to the background based on Bluetooth or WIFI technology for calculation to obtain the positioning coordinates.

[0004] Among the positioning methods in the prior art, some combine wavelet analysis with artificial neural network technology to locate the movement trajectory of the elderly in the actual positioning place, providing the elderly with more accurate indoor positioning services. However, this technology is not convenient to integrate into mobile devices and has a short working distance, which is not convenient for the elderly to carry and use. There are also general indoor positioning technologies and group intelligence methods, which standardize the elderly's daily living activities (ADL, Activities Of Daily Living). One of the most important information sources of ADL is the location of the elderly at home during their daily life activities. Therefore, it is necessary to use a variety of sensors (such as positioning sensors) to detect behavioral deviations in the elderly's daily indoor activities, but this method is suspected of infringing on the privacy of the elderly and is costly. There are also methods that use vital sign monitoring instruments and elderly home location safety monitoring terminals to transmit data to achieve indoor positioning. This technology is low in cost and widely used, but due to the Bluetooth technology itself, the positioning accuracy cannot be lower than the meter level, which is difficult to meet the needs of high-precision indoor positioning systems.

[0005] The prior art also uses two-dimensional or three-dimensional skeletal key points of the human body to detect falls in the elderly. However, the acquisition of human skeletal key points is inseparable from image acquisition. Indoors, due to reasons such as light or occlusion, the captured images may be blurred or missing, resulting in inaccurate skeletal key points and incorrect fall detection results.

[0006] In the prior art, there is also indoor positioning software composed of a network node communication program and an information management system program. The former has the functions of data patrol collection and processing (including alarm) and communication interruption service, and the latter has the functions of elderly location management, emergency warning, etc.; this method has four indoor positioning functions of measurement, positioning, navigation and tracking. These functions are deployed on different application servers and are implemented by various components. There are dependencies between the functional components.

[0007] Most of the indoor positioning methods for elderly people at home in the above existing technologies use indoor positioning technologies based on WIFI, Bluetooth and other signals, which have poor anti-interference ability, low positioning accuracy, and are mostly based on two-dimensional plane positioning. They lack centimeter-level positioning capabilities in the vertical direction and related posture identification algorithms, and cannot monitor whether the elderly have fallen suddenly indoors, and cannot meet the high-precision positioning requirements of elderly people at home in indoor environments. Specifically, there are four types of problems:

[0008] 1. Poor anti-interference ability

[0009] Most of the existing positioning products are based on indoor positioning technologies such as WIFI and Bluetooth. These positioning technologies are more susceptible to interference from other signals or obstruction from physical obstacles in indoor environments with severe line of sight, making it difficult to ensure the stability of the positioning system.

[0010] (2) Poor horizontal positioning accuracy

[0011] Most of the existing positioning products currently use a single positioning algorithm or even no algorithm, which makes it impossible for the positioning system to achieve real-time high-precision positioning in the horizontal direction, that is, the accuracy of the system positioning cannot be guaranteed, which poses a safety hazard to elderly people at home.

[0012] 3. Lack of centimeter-level positioning capability in the vertical direction

[0013] Most of the existing positioning products are based on two-dimensional plane positioning, lacking centimeter-level positioning capabilities in the vertical direction. For elderly people at home, if an accident occurs, two-dimensional plane positioning alone cannot determine the elderly’s current posture (standing, sitting, falling down), which poses a great safety risk.

[0014] (IV) Unable to effectively identify vertical posture

[0015] Currently, the vertical positioning accuracy of positioning products with vertical positioning function is mostly above 10cm, which cannot meet the requirement of accurately judging the current posture of the elderly; and they do not have relevant deep learning algorithms, and cannot effectively identify the vertical posture of the elderly (standing, sitting, falling and other sudden situations), which poses a great risk of false alarms. Summary of the invention

[0016] In view of the above problems existing in the prior art, the present invention proposes a high-precision indoor positioning method, equipment, device and medium, mainly to solve the problems in the prior art of human target positioning method such as poor anti-interference ability, poor horizontal positioning accuracy, lack of centimeter-level positioning capability in the vertical direction, and inability to effectively identify vertical posture.

[0017] In order to achieve the above purpose and other purposes, the technical solution adopted by the present invention is as follows.

[0018] Optionally, a high-precision indoor positioning method is provided, comprising:

[0019] The original positioning coordinates of the indoor human target are obtained according to the base station coordinates and label data;

[0020] Inputting the original positioning coordinates into a first positioning model to obtain estimated coordinates;

[0021] Inputting the estimated coordinates into a second positioning model to obtain precise positioning three-dimensional coordinates;

[0022] Abnormal posture identification is performed according to the precisely located three-dimensional coordinates to obtain a human posture identification result.

[0023] Optionally, the original positioning coordinates are input into the first positioning model to perform a secondary weighted minimum calculation to obtain estimated coordinates;

[0024] The first positioning model may be expressed as follows: Where (x', y', z') is the estimated coordinate, w α2 It is a second estimated value calculated by the second weighted least square method. One of the base station coordinates is selected as a reference base station coordinate, and the reference base station coordinate is (x1, y1, z1).

[0025] Optionally, the first positioning model includes a first weighted least squares value calculation unit and a second weighted least squares value calculation unit;

[0026] The first weighted least square value calculation unit is expressed as follows: α1 =(G α T Q -1 G α ) -1 G α T Q -1 h1, where w α1 is the first estimated value, Q is the noise vector covariance matrix obeying Gaussian distribution, is the first estimation matrix, h1 is the first error equation;

[0027] The second weighted least square value calculation unit is expressed as follows: α2 =(G α1 T ψ1 -1 G α1 ) -1 G α1 T ψ1 - 1 h2, where w α2 is the second estimated value, is the second estimation matrix, ψ1=4B1cov(w α1 )B1=diag{x 0 -x1,y 0 -y1,z 0 -z1,r10,covwα1=(Gα0Tψ_1Gα0)_1,ψ1 is the estimated covariance matrix, B1 is the estimated diagonal matrix, cov(w α1 ) is the estimated covariance, h2 is the second error equation, and the second error equation h2 is established based on the first estimated value.

[0028] Optionally, the second positioning model is expressed as follows: in is the precise three-dimensional coordinate of the k-th moment, B k is the control matrix at time k, is the acceleration a of the human target at time k, P k is the covariance matrix at time k.

[0029] Optionally, abnormal posture identification is performed according to the precisely located three-dimensional coordinates to obtain a human posture identification result, including:

[0030] Acquire a plurality of feature mean vectors in a vertical direction of the precise positioning three-dimensional coordinate, wherein the plurality of feature mean vectors are in different feature channels;

[0031] Inputting the plurality of feature mean vectors into the posture identification model, and judging whether the human target is in an abnormal posture according to a preset similarity threshold;

[0032] If the human target is in an abnormal posture, obtaining the coordinates of the abnormal point;

[0033] The coordinates of the abnormal point are compared with a preset fall state threshold to determine whether the human target is in a fall state.

[0034] Optionally, the base station coordinates include: coordinates of at least four indoor base stations, where lines connecting every two of the at least four indoor base stations are in a cross state in the indoor space;

[0035] The tag data includes: the distance between the tag and the indoor base station, and the tag is worn on the human target.

[0036] Optionally, there is a height difference of at least 3m between the maximum height and the minimum height of the indoor base station;

[0037] The indoor base stations at least form a rectangle.

[0038] Optionally, a high-precision indoor positioning device is provided, comprising:

[0039] The original positioning coordinate acquisition module is used to obtain the original positioning coordinates of the indoor human target according to the base station coordinates and label data;

[0040] An estimated coordinate acquisition module, used for inputting the original positioning coordinates into a first positioning model to obtain estimated coordinates;

[0041] A precise positioning three-dimensional coordinate acquisition module, used for inputting the estimated coordinates into a second positioning model to obtain precise positioning three-dimensional coordinates;

[0042] The posture identification module is used to identify abnormal postures according to the precisely positioned three-dimensional coordinates to obtain a human posture identification result.

[0043] Optionally, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned high-precision indoor positioning method when executing the computer program.

[0044] Optionally, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of implementing the above-mentioned high-precision indoor positioning method are as follows:

[0045] The original positioning coordinates of the indoor human target are obtained according to the base station coordinates and label data;

[0046] Inputting the original positioning coordinates into a first positioning model to obtain estimated coordinates;

[0047] Inputting the estimated coordinates into a second positioning model to obtain precise positioning three-dimensional coordinates;

[0048] Abnormal posture identification is performed according to the precisely located three-dimensional coordinates to obtain a human posture identification result.

[0049] As described above, the present invention provides a high-precision indoor positioning method, device, equipment and medium, which have the following beneficial effects:

[0050] Through the three-dimensional space precise positioning method processing, the problem of weak signal anti-interference ability and instability during positioning can be solved; estimated coordinates are obtained according to the original positioning coordinates, and precise three-dimensional positioning coordinates are obtained according to the estimated coordinates, which reduces the positioning errors in the horizontal and vertical directions, and also reduces the distance errors of each base station; then, the human body posture identification method is used to determine whether the posture is abnormal, and the human body posture identification result is obtained, so as to obtain the abnormal state of the indoor human target in time to avoid delays in treatment. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A schematic diagram of a flow chart of a high-precision indoor positioning method provided by an embodiment of the present invention;

[0052] Figure 2 This is a schematic diagram of the principle of complex double-distance measurement in an embodiment of the present invention;

[0053] Figure 3 This is a schematic diagram of the algorithm for positioning sensors of three base stations in an embodiment of the present invention;

[0054] Figure 4 This is a schematic diagram of the algorithm for positioning sensors of four base stations in an embodiment of the present invention;

[0055] Figure 5 The comparison result of the original positioning coordinates and the data on the x-axis in the precise positioning three-dimensional coordinates in one embodiment of the present invention;

[0056] Figure 6 The comparison result of the original positioning coordinates and the data on the y-axis in the precise positioning three-dimensional coordinates in one embodiment of the present invention;

[0057] Figure 7 The comparison result of the original positioning coordinates and the data on the z-axis in the precise positioning three-dimensional coordinates in one embodiment of the present invention;

[0058] Figure 8 The data comparison result of the original positioning coordinates and the accurate positioning three-dimensional coordinates of the A base station in one embodiment of the present invention;

[0059] Fig. 9 The data comparison result of the original positioning coordinates and the accurate positioning three-dimensional coordinates of the B base station in one embodiment of the present invention;

[0060] Fig.10 The data comparison result of the original positioning coordinates and the accurate positioning three-dimensional coordinates of the C base station in one embodiment of the present invention;

[0061] Fig.11The data comparison result of the original positioning coordinates and the D base station in the accurate positioning three-dimensional coordinates in one embodiment of the present invention;

[0062] Fig.12 This is a schematic diagram of the structure of a positioning sensor in one embodiment of the present invention;

[0063] Fig.13 This is a schematic diagram of one-to-one distance measurement by a positioning sensor in one embodiment of the present invention;

[0064] Fig.14 A schematic diagram of two-dimensional distance measurement in one embodiment of the present invention;

[0065] Fig.15 Schematic diagram of three-dimensional distance measurement in one embodiment of the present invention. DETAILED DESCRIPTION

[0066] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0067] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0068] The high-precision indoor positioning method of the present invention is mainly designed for elderly people at home, and can provide unified information management, remote high-precision positioning, posture identification and early warning functions for future smart elderly care, and provide services for the indoor precise positioning and management of the current elderly care model in my country. Regardless of the elderly care model of institutional elderly care, community elderly care and home elderly care, you only need to wear a signal transmitter (such as a smart bracelet) on the elderly's arm to grasp the position of the elderly in real time, and identify their posture to know whether they have fallen or other behaviors, which provides protection for the health of the elderly. In addition, in the future, other functional modules can also be combined, such as installing a blood oxygen saturation monitoring module and a pulse monitoring module on the signal transmitter worn by the elderly, to monitor the elderly's heartbeat, blood pressure, sweat and other physical characteristics, thereby realizing a multifunctional integrated elderly care indoor monitoring system, and exploring and contributing to the advent of the "smart elderly care" era in my country.

[0069] In terms of posture identification, the rapid development of neural network algorithms and deep learning technology in recent years has also made it possible for the posture identification function of indoor positioning systems to deal with emergency situations such as accidental falls of the elderly. Related algorithms include convolutional posture machines and stacked hourglass networks. Commonly used single-person posture estimation datasets include LSP, FLIC, and LIP. After algorithm improvements in recent years, the evaluation indicators of these datasets have become more complete and gradually used in the indoor positioning industry.

[0070] Finally, with the development of technologies such as big data and the Internet of Things, their related achievements have gradually been applied to the research of indoor positioning systems for elderly care. For example, with the help of Estimote's iBeacon technology combined with low-power Bluetooth BLE, the daily indoor activity data of the elderly at home is collected, and the data of the monitored person is intelligently analyzed through big data. The activity path of the elderly at home over a period of time is analyzed, so that the guardian can clearly understand the elderly's daily routine, which is more conducive to the guardian's supervision of the elderly. At the same time, the intelligent infrastructure based on the Internet of Things technology, as the perception layer and edge network access of the smart elderly care service platform, will directly affect the convenience, comfort and safety of elderly care services, and also occupies an important position in the system.

[0071] Although there are a large number of methods for indoor positioning of elderly people at home in the prior art, since there are many situations in the use of indoor positioning systems that cannot be controlled by system developers, the positioning accuracy and posture identification results may be affected by various factors, making it difficult to achieve precise positioning requirements.

[0072] The high-precision indoor positioning method provided by the present invention can perform indoor positioning and posture identification for elderly people at home: ultra-high frequency band wireless positioning technology is used to obtain the original positioning coordinates to achieve the effect of strong anti-interference ability and stable positioning; the quadratic weighted least squares algorithm and the Kalman filter algorithm are used to jointly process the positioning data to improve the positioning accuracy in the horizontal and vertical directions; the deep learning algorithm is used to monitor and analyze the abnormal points in the positioning data set, so as to perform posture identification and obtain the health and safety status of the elderly at home in real time.

[0073] See also Figure 1 , Figure 1 A schematic flow chart of a high-precision indoor positioning method provided by an embodiment of the present invention includes the following steps:

[0074] S1. Obtaining initial positioning data of human targets

[0075] The initial positioning data is obtained through a positioning base station installed indoors and a tag worn on a human target. In the present invention, the indoor positioning base station can be a positioning sensor developed based on an indoor positioning chip; the tag can be a positioning sensor worn on a human target.

[0076] The initial positioning data of the human target includes base station coordinates and tag data. The base station coordinates include: coordinates of at least four indoor base stations, and the lines connecting every two of the at least four indoor base stations are in a cross state in the indoor space; the tag data includes: the distance between the tag and the indoor base station, and the tag is worn on the human target. There is at least a 3m height difference between the maximum height and the minimum height of the indoor base station; the indoor base stations at least form a rectangle.

[0077] In this embodiment, at least four indoor base stations can achieve three-dimensional positioning. The coordinates of the i-th indoor base station are B i =(x i ,y i ,z i ), i∈[1,n),n≧4, let the coordinates of the signal transmitter worn by the human target be B=(x,y,z). When the positioning system contains more than four indoor positioning base stations and one signal transmitter, and there is at least a 3m height difference between the maximum and minimum heights of the base stations, and any four base stations tend to be a rectangle, the value of the z-axis in the vertical direction of the signal transmitter can be calculated.

[0078] S2. Obtain the original positioning coordinates of the indoor human target based on the base station coordinates and label data

[0079] In view of the current blank market of ultra-wideband elderly-care indoor positioning products, and the problem of poor positioning accuracy caused by the positioning system using only a single positioning algorithm or even no algorithm, the present invention uses a positioning sensor and a receiving signal transmitter, takes the complex plane double ranging principle as the basic ranging principle, and uses an ultra-wideband wireless positioning algorithm to process the initial positioning data of the human target, so as to obtain the original positioning coordinates of the indoor human target.

[0080] The principle of double-range measurement is to use two base stations to add another communication on the basis of a single connection communication, thereby eliminating the error introduced by the clock offset in the two communications. The principle is as follows Figure 2 As shown, the calculation process of the complex double distance measurement principle is as follows: The error introduced by the clock using the complex double ranging method is: Where m a is the ratio of the real frequency to the estimated frequency of the time calculation device of device A itself, m b is the ratio of the real frequency of the time calculation device of device B to the estimated frequency. Let the time calculation accuracy of devices A and B be 20 parts per million, that is, m a and m bThe value is 0.99998 or 1.00002. If the distance between device A and device B is 150 meters, the transmission time of electromagnetic waves during signal transmission is about 499 nanoseconds. Because the error introduced by the time calculation equipment of devices A and B is 20*499*10-9 seconds, the error value calculated is 3.3 mm, which is basically negligible compared to 150 meters. Therefore, complex double ranging is a more commonly used and more accurate ranging method in the field of wireless signal transmission ranging.

[0081] When there are three or more base station data, the positioning sensor algorithm can be used to process the positioning data. For example, when there are three base stations, the two-dimensional tag positioning is performed by using circles intersecting at one point in the plane. The principle diagram is shown in Figure 3 For example, when there are four base stations, the spherical body can be used to intersect at one point in space to perform three-dimensional tag positioning. The principle diagram is shown in Figure 4 .

[0082] In one embodiment, the number of base stations is 4, the tag is a signal transmitter, and the ultra-wideband wireless positioning algorithm is used to calculate the initial positioning data of the human target to obtain the original positioning coordinates of the indoor human target, including the following steps: according to the initial positioning data of the human target, a space matrix equation is obtained, and the space matrix equation is solved to obtain the original indoor coordinates of the human target. The specific process of the positioning sensor algorithm in this embodiment is as follows:

[0083] Assume that the coordinates of base station A are (x1, y1, z1), the coordinates of base station B are (x2, y2, z2), the coordinates of base station C are (x3, y3, z3), and the coordinates of base station D are (x4, y4, z4). The coordinates of the signal transmitter to be solved are (x, y, z), and the distances from the signal transmitter to base stations A, B, C, and D are d1, d2, d3, and d4, respectively. Based on the coordinates of the four base stations and the distances from the signal transmitter to the four base stations, the first set of spatial equations is established:

[0084]

[0085] Expand the square terms in the first spatial equations to obtain the second spatial equations:

[0086]

[0087] Subtract the equations in the 2nd, 3rd, and 4th rows from the equations in the 1st row to obtain the third set of spatial equations:

[0088]

[0089] In the third space equation group, the values ​​of λ1, λ2, and λ3 are:

[0090]

[0091] Perform matrix transformation on the third space equation group to obtain the space matrix equation, which is:

[0092]

[0093] Solving the above-mentioned space matrix equation, the original positioning coordinates (x, y, z) are obtained. The original positioning coordinates in the present invention are the original coordinates of the signal transmitter worn by the elderly at home. The coordinates are not accurate and still need further processing.

[0094] The traditional single positioning algorithm has the problems of poor positioning accuracy, low real-time performance and poor stability in indoor positioning. The original positioning coordinates obtained by using the positioning sensor algorithm in this embodiment can solve the problems of weak anti-interference ability and instability.

[0095] S3. Input the original positioning coordinates into the first positioning model to obtain estimated coordinates

[0096] The original positioning coordinates are input into the first positioning model for secondary weighted minimum calculation to obtain estimated coordinates. The first positioning model is expressed in the following ways: Where (x', y', z') are the estimated coordinates, w α2 The second estimated value is calculated by the second weighted least square method. One of the base station coordinates is selected as the reference base station coordinate, and the reference base station coordinate is (x1, y1, z1).

[0097] The first positioning model is used to perform quadratic weighted least squares calculation to preliminarily process the original positioning coordinates. The quadratic weighted least squares algorithm is a non-iterative algorithm based on the signal arrival time method (Time of Arrival) and the signal arrival time difference method (Time Difference of Arrival). The algorithm can obtain the coordinate value through the quadratic weighted least squares algorithm (Weighted least squares) without considering the initial value problem. It has a small amount of calculation and a fast calculation speed, and is suitable for positioning applications within a small range.

[0098] The first positioning model in the present invention includes a first weighted least squares value calculation unit and a second weighted least squares value calculation unit; the first weighted least squares value calculation unit is expressed as follows: α1 =(G α T Q -1 G α ) -1 G α T Q -1 h1, where wα1 is the first estimated value, Q is the noise vector covariance matrix obeying Gaussian distribution, is the first estimation matrix, h1 is the first error equation; the second weighted least squares value calculation unit is expressed as follows: α2 =(G α1 T ψ1 -1 G α1 ) -1 G α1 T ψ1 -1 h2, where w α2 is the second estimated value, is the second estimation matrix, ψ1=4B1cov(w α1 )B1=diag{x 0 -x1,y 0 -y1,z 0 -z1,r10,covwα1=(Gα0Tψ_1Gα0)_1,ψ1 is the estimated covariance matrix, B1 is the estimated diagonal matrix, cov(w α1 ) is the estimated covariance, h2 is the second error equation, and the second error equation h2 is established based on the first estimated value.

[0099] When the original positioning coordinates are processed based on the quadratic weighted least squares algorithm in the first positioning model of the present invention, the main steps are as follows: establishing a base station position difference matrix equation; performing error weighting on each group of data based on an error vector and a covariance matrix, and converting the base station position difference matrix equation into a first weighted equation; solving the first weighted equation in a first weighted least squares calculation unit to obtain a weighted least squares initial solution, and recalculating the first weighted equation based on the weighted least squares initial solution to obtain a first estimated value; in a second weighted least squares calculation unit, reconstructing a set of error equations based on the first estimated value to obtain a second estimated value; and obtaining estimated coordinates based on the second estimated value.

[0100] Next, the quadratic weighted least squares algorithm is specifically described in one embodiment. This embodiment calculates the estimated coordinates for three base stations and one tag. It can be understood that when the number of base stations is greater than or equal to four, the estimated coordinates can be obtained according to the three base station environment and the same effect can be achieved.

[0101] When the number of base stations is three, the two-dimensional coordinates of the signal transmitter can be obtained. Let T(x',y') be the coordinates of the signal transmitter to be estimated, X i (x i ,y i ) are the known base station coordinates, i∈[1,3], i is the number of known base stations. By using the signal arrival time difference method, we get:

[0102] r i,j =r i -r j =c(t i -t j ),

[0103] Among them, r i 、r j are the distances from the signal transmitter to the i-th and j-th base stations, respectively. In this embodiment, the first base station is selected as the reference base station, and the reference coordinates are (x1, y1). Then the distance difference formula between the base stations is:

[0104]

[0105] Among them, (x', y') represents the coordinates of the signal transmitter to be estimated, (x i ,y i ) represents the plane coordinates of the ith base station. The equation for the distance from the signal transmitter to the ith base station is obtained from the geometric relationship:

[0106] r i 2 =(x i -x') 2 +(y i -y') 2 =K i +x' 2 +y' 2 -2x i x'-2y i y',

[0107] Among them, K i =x i 2 +y i 2 ; The equation for the distance from the signal transmitter to the first base station is obtained from the geometric relationship:

[0108] r1 2 =(x1-x') 2 +(y1-y') 2 =K1+x' 2 +y' 2 -2x1x'-2y1y'.

[0109] Combining the equations for the distance from the signal transmitter to the i-th base station and the distance to the first base station, we can get: i 2 -r1 2 =K i -K1-2x i,1 x'-2y i,1y', where x i,1 =x i -x1,y i,1 =y i -y1, the square term of the unknown quantity is eliminated in the equation, and the equation becomes a linear equation.

[0110] In addition, according to the distance difference formula between base stations, we can get:

[0111] r i 2 =(r i,1 +r1) 2 =r i,1 2 +2r i,1 r1+r1 2 ,

[0112] r i 2 -r1 2 =r i,1 2 +2r i,1 r1,

[0113] r i,1 2 +2r i,1 r1=K i -K1-2x i,1 x'-2y i,1 y',

[0114] where r i,1 , K i , x i,1 ,y i,1 Known, r1, x', y' are unknown.

[0115] When the number of base stations is 3, that is, i = 1, 2, 3, the following expression is obtained:

[0116]

[0117] Assuming r1 is known, the above equation can be regarded as a linear equation to be solved. Since it is a linear equation of two variables, it can be solved by elimination method. After moving the terms, it becomes:

[0118]

[0119] Simplify and replace the part of the above equation that does not contain x' and y', and you can get the equation system:

[0120]

[0121] Transform the above equation into the base station position difference matrix equation:

[0122]

[0123] That is, AX = C, using the inverse of the matrix, that is, X = A -1 C, where Available The solution of x', y' is:

[0124]

[0125] in, Substituting into the above solution of x', y', only r1 is unknown. If r1 is separated, we can get

[0126]

[0127]

[0128] The solution of x', y' can be transformed into:

[0129]

[0130] From the equation of the distance from the signal transmitter to the i-th base station, we can get:

[0131] r1 2 =K1+x' 2 +y' 2 -2x1x'-2y1y',

[0132] Substituting the matrix equation into the solution of x', y', we get:

[0133] (q1 2 +q2 2 -1)r1 2 -2[q1(x1-p1)+q2(y1-p2)]r1+[(x1-p1) 2 +y1-p22=0,

[0134] The above formula can be simplified as:

[0135] ar1 2 +br1+c=0,

[0136] The above equation is a quadratic equation of r1. Solving it yields two roots. If b 2 -4ac=0, the two roots are equal, which is the solution; if b 2 -4ac>0, based on prior information, we can discard an invalid root and substitute the valid r1 back into the transformation formula of the x', y' solution to obtain the estimated value (x', y').

[0137] The above is a method for solving the two-dimensional estimated coordinates when there are three base stations. When there are more base stations, the linear equations are overdetermined. Due to the existence of measurement noise, the established three-dimensional equation r i,1 2 +2r i,1 r1=K i -K1-2x i, x'-2y i,1 y'-2z i, The solution of 1z' cannot satisfy all the conditions, so the only suitable solution is the best solution that matches these equations. α =(x',y',z',r1) T Here, we do not consider the relationship between x', y', z', and r1, that is, we assume that the four are linearly independent. Establish a linear equation system with TDOA noise, and replace r i,1 2 +2r i,1 r1=K i -K1-2x i,1 x'-2y i,1 y'-2z i,1 z' is transformed into a matrix equation of the following form:

[0138]

[0139] make have to:

[0140] h=G α w α ,

[0141] w 0 is the ground truth, that is, the actual measurement coordinates. If the signal arrival time difference method observation noise is considered, that is, Gz 0 ≠h, the error vector is

[0142] Assuming that e approximately follows a Gaussian distribution and has a covariance matrix, then

[0143] ψ=E(ee T )=c 2 BQB,

[0144] Where B = diag{r2 0 ,r3 0 ,…,r n 0}, Q is the noise vector covariance matrix that follows a Gaussian distribution. The least squares solution of the error vector is equivalent to solving the normal equation:

[0145] G α 0 Gα w α =G α T h,

[0146] Assume that w α The elements in are independent of each other. When the error of each set of data is weighted, it becomes a weighted least squares problem. Then the above formula can be transformed into the first weighted equation:

[0147] (G α 0 ψ -1 G α ) α =G α T ψ -1 h,

[0148] Then α The weighted least squares estimate of

[0149] w α =(G α 0 ψ -1 G α ) -1 G α T ψ -1 h,

[0150] There are T(x',y',z') to X in B i The actual distance is calculated when T to X i When the distance is far, Q can be used instead of ψ, that is, the initial value of the weighted minimum product can be obtained:

[0151]

[0152] Recalculate B using the weighted minimum product initial value obtained from the above formula, and then substitute it into ψ=E(ee T )=c 2 BQB, get ψ, and then substitute it into the first weighted equation to get w α The result is the first estimated value w α1 , w α1 =(G α T Q -1 G α ) -1 G α T Q -1 h1, where w α1 is the first estimated value, Q is the noise vector covariance matrix obeying Gaussian distribution, is the first estimation matrix, and h1 is the first error equation. Using the first estimation value, a set of error equations is reconstructed for the second estimation, and we get

[0153]

[0154] Among them, w α, Indicates w α The i-th component of , i∈[1,4], e1,e2,e3,e4 are w α The estimated error of . Thus, the second estimate is obtained:

[0155] w α2 =(G α1 T ψ1 -1 G α1 ) -1 G α1 T ψ1 -1 h2,

[0156] in is the second estimated value, is the second estimation matrix, is the second error equation, ψ1=4B1cov(w α1 )B1 is the estimated covariance matrix, B1=diag{x 0 -x1,y 0 -y1,z 0 -z1,r1 0} is the estimated diagonal matrix, cov(w α1 )=(G α 0T ψ -1 G α 0 ) -1 is the estimated covariance matrix.

[0157] According to the second estimated value, the estimated coordinate T is obtained, and the estimated result of T is:

[0158]

[0159] By processing the original coordinates of the human body indoors using the quadratic weighted least squares algorithm, estimated coordinates (x', y', z') are obtained, which can improve positioning accuracy and reduce the impact of errors.

[0160] S4. Input the estimated coordinates into the second positioning model to obtain accurate positioning three-dimensional coordinates

[0161] Obtain two random variables and a covariance matrix that obey Gaussian distribution, and establish an optimal estimated state matrix equation group; input the estimated coordinates into the optimal estimated state matrix equation group to obtain the precise positioning three-dimensional coordinates.

[0162] In one embodiment, the second positioning model is expressed as follows: in is the precise three-dimensional coordinate of the k-th moment, B k is the control matrix at time k, is the acceleration a of the human target at time k, P k is the covariance matrix at time k.

[0163] In one embodiment, obtaining the precisely positioned three-dimensional coordinates according to the estimated coordinates mainly includes the following steps: setting two random variables that obey the Gaussian distribution; substituting the acceleration to establish a set of equations for the two random variables at the next moment; converting the set of equations for the two random variables at the next moment into an optimal estimated state matrix equation, wherein the optimal estimated state matrix equation includes a control matrix and a control vector; obtaining a set of matrix equations for precisely positioned coordinates according to the optimal estimated state matrix equation in combination with the covariance matrix; substituting the estimated coordinates into the set of matrix equations for precisely positioned coordinates to obtain the precisely positioned three-dimensional coordinates.

[0164] Next, the method for obtaining the accurate three-dimensional coordinates in this embodiment is described in detail:

[0165] The Kalman filter algorithm is used to recalculate the estimated coordinates that meet the conditions to obtain the precise three-dimensional coordinates of the target node. When the estimated coordinates that meet the conditions are screened out, the predicted probability function and the measured probability function are first multiplied to narrow the calculation range, and then the mean of the obtained probability density function is calculated. Computationally speaking, the multiplication of these two probability density functions is related to the Kalman filter equation, and the specific algorithm process is as follows:

[0166] Taking the x-axis direction as an example, after obtaining the estimated coordinates, the Kalman filter assumes two variables: position variable and velocity variable. Both variables are random and follow a Gaussian distribution. Each variable has a mean μ, which represents the center of the random distribution, that is, the most likely state, and a variance σ 2 , indicating uncertainty. Then the state variables are established based on Gaussian distribution, so two pieces of information are needed at time k: the best estimated state And the covariance matrix P k ,in,

[0167]

[0168] If the position and velocity at the next moment are predicted using basic kinematic formulas, the position and velocity equations at the next moment can be obtained:

[0169]

[0170] It can be expressed in matrix form as:

[0171]

[0172] Combined with the calculation formula of the covariance matrix, we can get:

[0173]

[0174] Since the positioning object does not move at the same speed most of the time, it is necessary to introduce the acceleration a of the object's movement. Therefore, the position and velocity equations at the next moment can be modified as follows:

[0175]

[0176] Expressing the above formula in matrix form, we can get the optimal estimated state matrix equation:

[0177]

[0178] Among them B k is called the control matrix, It is called the control vector. If the extended covariance is Q k , combined with the calculation formula of the covariance matrix, we can get the precise positioning coordinate prediction matrix equation group:

[0179] Substituting the estimated coordinates in the x-axis direction can obtain the precise positioning coordinates.

[0180] The above is the method for solving the precise positioning coordinates in the x-axis direction. Similarly, the precise positioning coordinates in the y-axis and z-axis directions can also be solved by the above method to obtain the precise positioning three-dimensional coordinates. in is the precise three-dimensional coordinate of the k-th moment, B k is the control matrix at time k, is the acceleration a of the human target at time k, P k is the covariance matrix at time k. Substituting the three-dimensional estimated coordinates obtained in the previous step into the above-mentioned precise positioning coordinate solution method, the precise positioning three-dimensional coordinates can be obtained.

[0181] In one embodiment, the initial positioning data of the human target obtained by the base station and the signal transmitter are input into the above steps S2, S3, and S4, and static and dynamic three-dimensional positioning simulation experiments are respectively performed through the MATLAB algorithm to obtain the comparison results of the initial positioning data of the human target and the precise positioning three-dimensional coordinates; see Figure 5 ,, is the comparison result of the original positioning coordinates and the data on the x-axis in the precise positioning three-dimensional coordinates; see Figure 6 , is the comparison result of the original positioning coordinates and the data on the y-axis in the precise positioning three-dimensional coordinates; see Figure 7 , which is the comparison result of the original positioning coordinates and the data on the z-axis in the precise positioning three-dimensional coordinates; see Figure 8 , is the data comparison result of the original positioning coordinates and the precise positioning three-dimensional coordinates of base station A; see Fig. 9 , is the data comparison result of the original positioning coordinates and the accurate positioning three-dimensional coordinates of the B base station; see Fig.10 , is the data comparison result of the original positioning coordinates and the precise positioning three-dimensional coordinates of the C base station; see Fig.11 , which is the data comparison result of the original positioning coordinates and the D base station in the precise three-dimensional positioning coordinates.

[0182] according to Figure 5-11 By comparing the three-dimensional coordinates in the data with those of each base station, it can be seen that the method of the present invention can effectively improve the positioning accuracy and stability, effectively suppress the interference effect of base stations in the ultra-wideband positioning system, and reduce the positioning error in the horizontal direction from 6cm to 2cm, the positioning error in the vertical direction from 14cm to 4cm, and the distance error from each base station from 6cm to 2cm in the non-line-of-sight situation, which significantly improves the positioning accuracy and calculation efficiency of the system and has good stability.

[0183] S5, performing abnormal posture identification according to the accurately positioned three-dimensional coordinates to obtain a human body posture identification result

[0184] The human target posture identification in the present invention mainly includes the following steps: constructing an initial posture identification model based on a deep learning algorithm; inputting the indoor three-dimensional coordinate training data of the human target into the initial posture identification model for training, optimizing the parameters of the initial posture identification model, and obtaining the trained posture identification model; obtaining multiple feature mean vectors in the vertical direction of the precisely positioned three-dimensional coordinates, and the multiple feature mean vectors are in different feature channels; inputting the multiple feature mean vectors into the posture identification model established based on deep learning, and judging whether the human target is in an abnormal posture according to a preset similarity threshold; if the human target is in an abnormal posture, obtaining the coordinates of the abnormal point; comparing the coordinates of the abnormal point with a preset fall state threshold to judge whether the human target is in a fall state.

[0185] In one embodiment, a training model is established according to a relevant training model algorithm, and the data set is updated and learned to complete the training of the model. The human posture estimation under deep learning adopts a data set comparison method to transform the posture identification problem into an abnormal point monitoring problem, and obtains the vertical posture of the human body at the corresponding moment by analyzing the abnormal points in different feature channels. The training model algorithm is: Assume a(x 11 ,x 12 ,…,x 1n ) and a(x 21 ,x 22 ,…,x 2n ) are two two-dimensional vectors in space, and the cosine of the angle between these two-dimensional vectors is:

[0186]

[0187] The specific calculation formula is:

[0188]

[0189] The model is trained by using the cosine value of the unknown eigenvector as a variable to calculate the angular deviation of the two eigenvectors, thereby representing the similarity between the two vectors.

[0190] In one embodiment, by training the existing positioning data set, the feature mean vector S of the four postures in the training set can be obtained. 1 (t 1 ,a 1 ,σ 1 ), use the eigenvector s(t,a,σ) of the test data set to do the cosine measure. The posture with a smaller value than the calculated value is relatively similar. When it is less than a certain value, it can be regarded as the same posture.

[0191] According to the established posture training model and the vertical positioning coordinate z value of the sensor, the above algorithm is used to train and classify the feature vectors of the training set to determine the normal and abnormal postures of the elderly. After that, the vertical positioning data in the positioning data table to be identified is compared with the normal training model data to identify the vertical posture of the elderly. It can be judged whether the human target is in an abnormal state according to the preset similarity threshold, such as z ≥ 60cm when standing, 60> z ≥ 30cm when sitting or lying in bed, etc. This is the posture identification under normal circumstances, indicating that the elderly are not abnormal and are in good health; when an abnormal situation occurs, the training model will capture the corresponding abnormal point, set the height threshold of the fall state to 10cm, and the time threshold to 1min. The vertical positioning coordinate will drop significantly in a short period of time and eventually fall below the height threshold. The corresponding process exceeds the time threshold. At this time, it can be determined as a fall state, and then the abnormal situation of the elderly can be handled in time to provide protection for the elderly's home health.

[0192] In actual situations, the human body may make other movements after falling, so the generated data is inconsistent. The training model established by the present invention is based on the premise that the human body is in a relatively static state after falling, that is, the limbs wearing the corresponding positioning sensors will not make other large movements.

[0193] In summary, the present invention provides a high-precision indoor positioning method, which uses an ultra-wideband wireless positioning algorithm to process base station coordinates and tag data to obtain the original positioning data of indoor human targets, which can solve the problems of weak anti-interference ability and instability during positioning; a combined algorithm of a quadratic weighted least squares algorithm and a Kalman filter method is used to reduce the positioning errors in the horizontal and vertical directions, as well as the distance errors of each base station, thereby improving the positioning accuracy; in addition, the present invention uses a training model constructed by a deep learning algorithm to monitor and analyze abnormal points in the vertical direction, thereby realizing the posture identification of human targets. Therefore, the present invention effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.

[0194] In one embodiment, a high-precision indoor positioning device is provided. The high-precision indoor positioning device corresponds to the above-mentioned high-precision indoor positioning method one by one, and is an electronic device for real-time monitoring and positioning of the current position of the elderly at home, and determining whether they are in a state of sudden fall. The high-precision indoor positioning device includes an original positioning coordinate acquisition module, an estimated coordinate acquisition module, a precise positioning three-dimensional coordinate acquisition module, and a posture identification module. The functional modules are described in detail as follows:

[0195] The original positioning coordinate acquisition module is used to obtain the original positioning coordinates of the indoor human target according to the base station coordinates and the tag data. According to the initial positioning data of the human target, a spatial equation group is established; the spatial equation group is converted into a spatial matrix, and the spatial matrix is ​​solved to obtain the original positioning coordinates.

[0196] In one embodiment, the original positioning coordinate acquisition module uses the complex plane double ranging principle as the basic ranging principle and uses the positioning sensor algorithm to measure the original coordinates of the human target indoors, which can solve the problems of weak anti-interference ability and instability in the prior art.

[0197] The estimated coordinate acquisition module is used to input the original positioning coordinates into the first positioning model to obtain the estimated coordinates. According to the original positioning coordinates, a space matrix equation group is obtained, and the space matrix equation group is solved to obtain the original coordinates of the human body target indoors.

[0198] In one embodiment, the estimated coordinate acquisition module is mainly used to perform the following steps: establish a base station position difference matrix equation; based on the error vector and the covariance matrix, perform error weighting on each set of data, and convert the base station position difference matrix equation into a first weighted equation; solve the first weighted equation to obtain a weighted least squares initial solution; based on the weighted least squares initial solution, recalculate the first weighted equation to obtain a first estimate; based on the first estimate, reconstruct a set of error equations to obtain a second estimate; based on the first estimate and the second estimate, obtain estimated coordinates.

[0199] The module for obtaining the three-dimensional coordinates of precise positioning is used to input the estimated coordinates into the second positioning model to obtain the three-dimensional coordinates of precise positioning. Two random variables and covariance matrices that obey Gaussian distribution are obtained to establish the best estimated state matrix equation group; the estimated coordinates are input into the best estimated state matrix equation group to obtain the three-dimensional coordinates of precise positioning.

[0200] In one embodiment, the precise positioning three-dimensional coordinate acquisition module is mainly used to perform the following steps: set two random variables that obey Gaussian distribution; substitute acceleration to establish a set of equations for the two random variables at the next moment; convert the set of equations for the two random variables at the next moment into an optimal estimated state matrix equation, wherein the optimal estimated state matrix equation includes a control matrix and a control vector; based on the optimal estimated state matrix equation, combined with the covariance matrix, obtain a set of matrix equations for precise positioning coordinate prediction; substitute the estimated coordinates into the set of matrix equations for precise positioning coordinate prediction to obtain precise positioning three-dimensional coordinates.

[0201] The posture identification module is used to identify abnormal postures according to the precisely positioned three-dimensional coordinates to obtain a human posture identification result.

[0202] In one embodiment, the posture identification module is mainly used to perform the following steps: constructing an initial posture identification model based on a deep learning algorithm; inputting the indoor three-dimensional coordinate training data of the human target into the initial posture identification model for training, optimizing the parameters of the initial posture identification model, and obtaining a trained posture identification model; obtaining multiple feature mean vectors in the vertical direction of the precisely positioned three-dimensional coordinates, and the multiple feature mean vectors are in different feature channels; inputting the multiple feature mean vectors into the posture identification model established based on deep learning, and judging whether the human target is in an abnormal posture according to a preset similarity threshold; if the human target is in an abnormal posture, obtaining the coordinates of the abnormal point; comparing the coordinates of the abnormal point with the preset fall state threshold to judge whether the human target is in a fall state.

[0203] By training the existing positioning data set, the feature mean vector S of the four postures in the training set can be obtained: 1 (t 1 ,a1 ,σ 1 ), use the eigenvector s(t,a,σ) of the test data set to do the cosine measure. The posture with a smaller value than the calculated value is relatively similar. When it is less than a certain value, it can be regarded as the same posture.

[0204] According to the established posture training model and the vertical positioning coordinate z value of the sensor, the above algorithm is used to train and classify the feature vectors of the training set to determine the normal and abnormal postures of the elderly. After that, the vertical positioning data in the positioning data table to be identified is compared with the normal training model data to identify the vertical posture of the elderly. It can be judged whether the human target is in an abnormal state according to the preset similarity threshold, such as z ≥ 60cm when standing, 60> z ≥ 30cm when sitting or lying in bed, etc. This is the posture identification under normal circumstances, indicating that the elderly are not abnormal and are in good health; when an abnormal situation occurs, the training model will capture the corresponding abnormal point, set the height threshold of the fall state to 10cm, and the time threshold to 1min. The vertical positioning coordinate will drop significantly in a short period of time and eventually fall below the height threshold. The corresponding process exceeds the time threshold. At this time, it can be determined as a fall state, and then the abnormal situation of the elderly can be handled in time to provide protection for the elderly's home health.

[0205] In one embodiment, a data acquisition module is also included, which is used to acquire initial positioning data of a human target, and the initial positioning data of a human target includes base station coordinates and tag data.

[0206] The initial positioning data of the human target in the present invention includes base station coordinates and tag data, wherein the base station coordinates include: coordinates of at least four indoor base stations, and the connection lines between every two base stations of the at least four indoor base stations are in a cross state in the indoor space; the tag data includes: the distance between the tag and the indoor base station, and the tag is worn on the human target.

[0207] In one embodiment, the indoor base station is an indoor positioning sensor, and the positioning sensor is an evaluation board developed based on an indoor positioning chip, see Fig.12 , is a schematic diagram of the positioning sensor. The positioning sensor in this embodiment is based on V3.2 firmware, with a 0.91-inch OLED display on the back, two turtle buttons, and the USB serial port adopts the CP2102 solution, which makes the hardware serial port more stable, and is equipped with a power indicator and a signal indicator. The sensor adopts the standard MODBUS-RTU communication protocol and can be easily connected to the PLC.

[0208] The positioning sensor of the present invention supports one-to-one distance measurement, two-dimensional positioning function, and three-dimensional positioning function. Fig.13, when measuring one-to-one, use a positioning sensor and a tag to perform double-surface distance measurement, and one of the positioning sensors is connected to a USB data cable. Fig.14 For two-dimensional positioning, at least three base stations and one tag are required, and any three base stations should form an equilateral triangle. Fig.15 When building a three-dimensional positioning system, a positioning system similar to that of two-dimensional positioning is built, but at least four base stations and one tag are required, and the maximum and minimum heights of the base stations need to have a height difference of more than 3m. Try to make any four base stations tend to be a rectangle, so that the calculated z-axis value has a higher accuracy.

[0209] The present invention provides a high-precision indoor positioning device, which processes the initial positioning data of a human target through an ultra-wideband wireless positioning algorithm to obtain the original coordinates of the human target indoors, and uses a quadratic weighted least squares algorithm and a Kalman filter algorithm to jointly calculate the original coordinates to obtain precisely positioned three-dimensional coordinates, which significantly improves the positioning accuracy and calculation efficiency, while also having good stability; and then based on deep learning to train a posture identification model, the precisely positioned three-dimensional coordinates are input into the trained model to obtain a posture identification result in the vertical direction, so as to obtain abnormal or dangerous states in a timely manner, thereby providing protection for the health of the elderly at home.

[0210] For the specific definition of the high-precision indoor positioning device, please refer to the definition of the high-precision indoor positioning method above, which will not be repeated here. Each module or part of the above-mentioned high-precision indoor positioning device can be implemented entirely by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0211] In one embodiment, a computer device is provided, which can be an indoor positioning data processing terminal, and the computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes non-volatile and / or volatile storage media and internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external indoor positioning data acquisition terminal through a network connection. When the computer program is executed by the processor, the functions or steps on the service side of a high-precision indoor positioning method are implemented. When the processor executes the computer program, the following steps are implemented:

[0212] The original positioning coordinates of the indoor human target are obtained according to the base station coordinates and label data;

[0213] Inputting the original positioning coordinates into a first positioning model to obtain estimated coordinates;

[0214] Inputting the estimated coordinates into a second positioning model to obtain precise positioning three-dimensional coordinates;

[0215] Abnormal posture identification is performed according to the precisely located three-dimensional coordinates to obtain a human posture identification result.

[0216] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0217] Obtain initial positioning data of human targets;

[0218] Using an ultra-wideband wireless positioning algorithm, the initial positioning data of the human target is calculated to obtain the original positioning coordinates;

[0219] The original positioning coordinates are processed using a quadratic weighted least squares algorithm to obtain estimated coordinates;

[0220] The estimated coordinates are processed using the Kalman filter algorithm to obtain accurate three-dimensional positioning coordinates;

[0221] Construct an initial model for posture identification based on deep learning algorithms;

[0222] Inputting the indoor three-dimensional coordinate training data of the human body target into the initial model for posture identification for training, optimizing the parameters of the initial model for posture identification, and obtaining a trained posture identification model;

[0223] The vertical direction coordinates in the precisely positioned three-dimensional coordinates are input into the trained posture identification model to obtain a vertical direction posture identification result.

[0224] In summary, the present invention provides a high-precision indoor positioning method, and the method corresponds to an electronic device for real-time monitoring and positioning of the current position of the elderly at home, and determining whether they are in a state of sudden fall. The electronic device consists of four indoor base stations, a wearable transmitter and its positioning algorithm software. The lines connecting the two indoor base stations are in a cross state in the indoor space, and the wearable transmitter is worn on the limbs of the elderly at home to realize the transmission and reception of signals; the positioning technology adopts an ultra-wideband indoor positioning algorithm, and on this basis, the quadratic weighted minimum algorithm and the Kalman filter algorithm are combined to improve the three-dimensional space ranging accuracy, and the indoor X, Y, and Z position data of the target can be accurately obtained. In a non-line-of-sight environment, the positioning error in the vertical direction is less than 4cm, and the positioning error in the horizontal direction is less than 2cm, which meets the anti-interference and high-precision requirements of the elderly-type indoor positioning products.

[0225] A training model is established through deep learning methods, and the data set obtained during positioning is compared to estimate the posture of the elderly to determine whether an abnormal situation has occurred, so as to issue an alarm.

[0226] The high-precision indoor positioning method in the present invention solves the following three problems:

[0227] (I) Anti-interference problem

[0228] It adopts ultra-wideband wireless positioning technology, which has the characteristics of high positioning accuracy, good anti-multipath effect, strong penetration and high security. It is used to solve the problems of weak anti-interference ability and instability of positioning products in existing technologies.

[0229] (II) Improving positioning accuracy

[0230] The present invention uses a quadratic weighted minimum algorithm and a Kalmar filter algorithm to process the original positioning data, so that the positioning error in the X and Y directions is no more than 2 cm, the positioning error in the vertical direction is no more than 4 cm, and the distance error from each base station is no more than 2 cm, which significantly improves the positioning accuracy of the system and meets the accuracy requirements of high-precision elderly-care indoor positioning systems.

[0231] 3. Vertical posture identification problem

[0232] In addition to providing high-precision three-dimensional positioning, the present invention also monitors and analyzes abnormal points in the positioning data set through a model trained by a deep learning algorithm, and then evaluates the posture of the elderly and establishes posture abnormality criteria: if the elderly's vertical positioning elevation (for example, 10 cm) lasts for more than a time threshold (for example, ≥1 min), it is determined that the elderly is currently in an abnormal state of falling, and further emergency treatment is performed.

[0233] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A high-precision indoor positioning method, characterized in that: include: The original positioning coordinates of the indoor human target are obtained according to the base station coordinates and label data; The original positioning coordinates are input into the first positioning model to perform a secondary weighted minimum calculation to obtain estimated coordinates, wherein the first positioning model is expressed in the following manner: Where (x′, y′, z′) is the estimated coordinate, W α2 is a second estimated value calculated by the second weighted least squares method, and one of the base station coordinates is selected as a reference base station coordinate, and the reference base station coordinate is (x1, y1, z1); The first positioning model includes a first weighted least square value calculation unit and a second weighted least square value calculation unit; The first weighted least square value calculation unit is expressed as follows: α1 =(G α T Q -1 G α ) -1 G α T Q -1 h1, where W α1 is the first estimate, Q is the noise vector covariance matrix that follows the Gaussian distribution, is the first estimation matrix, h1 is the first error equation; The second weighted least squares value calculation unit may be expressed as follows: Where W α2 is the second estimated value, is the second estimation matrix Ψ1=4B1cov(W α1 )B1=diag{x 0 -x1,y 0 -y1,z 0 -z1,r1 0 }, Ψ1 is the estimated covariance matrix, B1 is the estimated diagonal matrix, cov(W α1 ) is an estimated covariance, h2 is a second error equation, and the second error equation h2 is established according to the first estimated value; The estimated coordinates are input into a second positioning model to obtain accurate three-dimensional positioning coordinates. The second positioning model is expressed in the following manner: in is the precise three-dimensional coordinate of the k-th moment, B k is the control matrix at time k, is the acceleration a of the human target at time k, P k is the covariance matrix at time k; Abnormal posture identification is performed according to the precisely located three-dimensional coordinates to obtain a human posture identification result, which includes obtaining a plurality of feature mean vectors in a vertical direction of the precisely located three-dimensional coordinates, wherein the plurality of feature mean vectors are in different feature channels; the plurality of feature mean vectors are input into a posture identification model, and whether the human target is in an abnormal posture is determined according to a preset similarity threshold; if the human target is in an abnormal posture, the coordinates of the abnormal point are obtained; the coordinates of the abnormal point are compared with a preset fall state threshold to determine whether the human target is in a fall state.

2. The high-precision indoor positioning method according to claim 1, characterized in that: The base station coordinates include: coordinates of at least four indoor base stations, where the lines connecting every two base stations of the at least four indoor base stations are in a cross state in the indoor space; The tag data includes: the distance between the tag and the indoor base station, and the tag is worn on the human target.

3. The high-precision indoor positioning method according to claim 2, characterized in that: There is at least a 3m height difference between the maximum height and the minimum height of the indoor base station; The indoor base stations at least form a rectangle.

4. A high-precision indoor positioning device, characterized in that: include: The original positioning coordinate acquisition module is used to obtain the original positioning coordinates of the indoor human target according to the base station coordinates and label data; The estimated coordinate acquisition module is used to input the original positioning coordinates into the first positioning model to perform a secondary weighted minimum calculation to obtain the estimated coordinates, wherein the expression of the first positioning model includes: Where (x′, y′, z′) is the estimated coordinate, W α2 is a second estimated value calculated by the second weighted least squares method, and one of the base station coordinates is selected as a reference base station coordinate, and the reference base station coordinate is (x1, y1, z1); The first positioning model includes a first weighted least square value calculation unit and a second weighted least square value calculation unit; The first weighted least square value calculation unit is expressed as follows: α1 =(G α T Q -1 G α ) -1 G α T Q -1 h1, where W α1 is the first estimate, Q is the noise vector covariance matrix that follows the Gaussian distribution, is the first estimation matrix, h1 is the first error equation; The second weighted least squares value calculation unit may be expressed as follows: Where W α2 is the second estimated value, The second estimation matrix Ψ1=4B1cov(W α1 )B1=diag{x 0 -x1,y 0 -y1,z 0 -z1,r1 0 }, Ψ1 is the estimated covariance matrix, B1 is the estimated diagonal matrix, cov(W α1 ) is an estimated covariance, h2 is a second error equation, and the second error equation h2 is established according to the first estimated value; The module for obtaining the three-dimensional coordinates of precise positioning is used to input the estimated coordinates into a second positioning model to obtain the three-dimensional coordinates of precise positioning. The expression of the second positioning model includes in is the precise three-dimensional coordinate of the k-th moment, B k is the control matrix at time k, is the acceleration a of the human target at time k, P k is the covariance matrix at time k; A posture identification module is used to perform abnormal posture identification according to the precisely positioned three-dimensional coordinates to obtain a human posture identification result, which includes obtaining a plurality of feature mean vectors in a vertical direction of the precisely positioned three-dimensional coordinates, wherein the plurality of feature mean vectors are in different feature channels; inputting the plurality of feature mean vectors into a posture identification model, and judging whether the human target is in an abnormal posture according to a preset similarity threshold; if the human target is in an abnormal posture, obtaining the coordinates of an abnormal point; and comparing the coordinates of the abnormal point with a preset fall state threshold to judge whether the human target is in a fall state.

5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the high-precision indoor positioning method as described in any one of claims 1-3 are implemented.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the high-precision indoor positioning method as described in any one of claims 1 to 3 are implemented.