Non-exposed space positioning method and system based on ultra wide band
Through ultra-wideband technology and machine learning algorithms, combined with DS-TWR and TOA algorithm, the problem of unstable positioning accuracy in complex environments is solved, and the positioning effect with high precision and low power consumption is achieved.
Patent Information
- Application Number
- CN202410966713.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-11-15
AI Technical Summary
The existing non-exposed spatial positioning technology is difficult to ensure high accuracy in complex environments, especially the accuracy of infrared and ultrasonic positioning is unstable in complex environments, the transmission rate and range of Bluetooth positioning signal cannot be guaranteed, and WIFI positioning is difficult to adapt to in complex environments.
Utilizing ultra-wideband (UWB) technology, real-time ranging between single tags and multiple base stations is realized through the DS-TWR ranging algorithm, and multi-label efficient ranging is realized by combining K nearest neighbors, support vector machines, random forests and other machine learning algorithms to identify non- The distance-of-sight distance is measured, and the TOA algorithm is used for positioning correction. If positioning cannot be done, a grid search algorithm is used, and finally the positioning accuracy is improved through Kalman filtering.
It realizes high-precision non-exposed spatial positioning in complex environments, improves positioning accuracy and anti-interference ability, and reduces equipment cost and power consumption.
Smart Images

Figure CN118972938A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ultra-wideband positioning, and in particular to a non-exposed space positioning method and system based on ultra-wideband. Background Art
[0002] With the development of the Internet era, the interconnection of all things has become a development trend in today's society. The interconnection of various facilities and terminals has brought great convenience to people's production and life, but at the same time, the deployment and maintenance of a large number of equipment has also brought great challenges to people's management. Therefore, it has become increasingly important to obtain the location information of related equipment. Various positioning technologies have continued to develop in recent years.
[0003] Positioning in non-exposed spaces can be divided into several types according to different implementation methods. Infrared positioning has high accuracy, even reaching the millimeter level under ideal conditions. However, due to the poor penetration of infrared, if it is applied to a more complex environment, the number of receivers needs to be increased, which is not conducive to cost saving. The propagation of infrared is also easily affected by factors such as light, sunlight, smoke, etc., and it is difficult to ensure high accuracy at all times. Ultrasonic positioning has a relatively simple composition and is easy to implement. It has high accuracy in a small range. At the same time, ultrasonic waves are penetrating and can be used in more complex environments. However, due to its rapid attenuation in the air and the slow propagation of sound waves in the air, it is difficult to have a large capacity and is not convenient for large-scale laying. The characteristics of Bluetooth positioning are low power consumption, short distance, and accuracy that can be guaranteed to be within meters. In addition, Bluetooth devices are small in size and easy to integrate and install. However, Bluetooth positioning relies on the deployment of multiple base stations, and the signal transmission rate and range cannot be guaranteed. The establishment and maintenance of Bluetooth networks also require relatively more resources. WIFI positioning is mainly based on fingerprint recognition. This method has high accuracy under ideal conditions, but it is more dependent on the strength of the received signal, so it is difficult to adapt to complex environments.
[0004] With the development of the communication field, a new type of wireless communication technology, Ultra-Wild Band (UWB) technology, has gradually stepped onto the stage of positioning. UWB signals are not conventional sinusoidal signals, but signals obtained by directly modulating impulse signals of 0.2 to 1.5 ns. It has an ultra-high bandwidth that can reach the GHz level. Due to the extremely high time resolution of the signal, it can theoretically achieve centimeter-level positioning; and because its signal transmission method is to distribute and disperse extremely short impulse signals in an extremely wide frequency band, the signal strength is extremely weak, which makes the power spectrum density of UWB signals extremely low, even lower than the channel noise of other communications, so it has excellent security and anti-interference capabilities; in addition, UWB technology also has the characteristics of simple system structure, low equipment cost, fast signal transmission rate, low power consumption, and strong multipath resolution. It has extremely wide applications in the field of positioning in non-exposed spaces. Summary of the invention
[0005] The object of the present invention is to provide a non-exposed space positioning method and system based on ultra-wideband to solve at least one technical problem existing in the above-mentioned background technology.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] In a first aspect, the present invention provides a non-exposure space positioning method based on ultra-wideband, comprising:
[0008] Calculate the distance between a single tag and multiple base stations to achieve orderly ranging between multiple tags;
[0009] Identify the non-line-of-sight portion of the obtained distance values and correct for it;
[0010] The position of the tag is calculated based on the line-of-sight and corrected non-line-of-sight distance measurement values.
[0011] Furthermore, the ranging algorithm is based on DS-TWR to achieve real-time ranging of a single tag to multiple base stations and efficient ranging of multiple tags, including: assuming that the tag first broadcasts a Poll message, the ranging starts at this time, and the tag records its own reference time T_Poll; after a certain flight time x, the base stations receive the Poll message respectively, and then record their own reference time R_Poll respectively; then, after an interval time, the tag turns on the receiver, and the base station A0 sends a receipt message Resp0 to the tag a certain time after receiving the Poll message, and records the time T_Resp0 of sending the message. After receiving it, the tag also records the timestamp R_Resp0 of receiving the message; similarly, the tag then turns on the receiver after a time period of the above interval time that is the tolerance, A 1~i Each tag sends its own receipt signal at the corresponding time; finally, when the tag receives at least one Resp message, it broadcasts a Final message, which contains T_Poll, R_Resp 0~i , T_Final timestamp information. After receiving this broadcast message, the base station will record the timestamp R_Final of the message it received. Then, for the nth base station, it can use T_Poll, R_Poll, T_Final, R_Final, T_Resp n 、R_Resp n These six timestamps are used to calculate the time of flight using TWR.
[0012] Furthermore, orderly ranging between multiple tags is achieved by using a fixed time slot management method. This method assigns a fixed ranging initiation timing to each tag. When a tag is turned on, it will automatically sleep according to the pre-set ranging initiation time until it is awakened by the timing machine and starts working. The system defaults to the A0 base station for tag timing management. The A0 base station allocates several time slots according to the maximum capacity of the tags in the system. The A0 base station monitors the time when each tag initiates the ranging request, and allocates the tag to the corresponding time slot according to the ID through the Sleep Correction in the Resp message, so that the tags can work in an orderly manner.
[0013] Furthermore, the non-line-of-sight recognition algorithm includes three types of sub-algorithms: K-nearest neighbor algorithm, support vector machine algorithm, and random forest. The three algorithms use cross-validation selection and a parameter search method to obtain the optimal parameters. Among them, the K-nearest neighbor algorithm uses a traversal search method, the support vector machine algorithm uses a grid search method, and the random forest uses a random search method. For the individual classification results of the three classification models, the majority voting method is used to select the best classification result. For the non-line-of-sight results obtained, the least squares fitting algorithm is used for correction. The correction method is to assume that the label moves with constant acceleration.
[0014] Furthermore, the positioning algorithm is based on TOA, specifically: the location coordinates of the positioning tag are (x, y) which is an unknown quantity, and the locations of the three base stations are (x i ,y i ), i = 1, 2, 3, are known quantities; according to the geometric meaning, the intersection of three circles with the base station location as the center and the ranging value as the radius is the tag location;
[0015] According to the error of multi-circle intersection caused by ranging error, if multiple circles intersect in an area, the triangle centroid method is used to estimate the tag position; if there are separated circles, the method of scaling the radius or constructing a virtual intersection is added for preprocessing.
[0016] Furthermore, if positioning cannot be achieved, a grid search algorithm is used for positioning, which includes: initialization must be performed before searching, first determining the site boundary and base station coordinates, then dividing the site into several grids based on the given grid side lengths, and calculating the distance from the base station to the four vertices of the grid, recording the maximum and minimum values of the distance from each grid to the base station and generating an electronic map for use when searching the grid; when searching in the map based on the ranging value, if the ranging value is just between the maximum and minimum distances from the base station to a certain grid, it is considered that the tag is located in the grid, and the center position of the grid is used instead of the tag position.
[0017] In a second aspect, the present invention provides a non-exposed space positioning system based on ultra-wideband, comprising:
[0018] The ranging module is used to calculate the distance between a single tag and multiple base stations, and realize the orderly ranging between multiple tags;
[0019] A recognition module, used for recognizing the non-line-of-sight portion of the obtained distance value and correcting it;
[0020] The positioning module is used to calculate the position of the tag based on the line-of-sight and the corrected non-line-of-sight ranging value.
[0021] In a third aspect, the present invention provides a non-transitory computer-readable storage medium, which is used to store computer instructions. When the computer instructions are executed by a processor, the ultra-wideband-based non-exposed spatial positioning method as described in the first aspect is implemented.
[0022] In a fourth aspect, the present invention provides a computer device comprising a memory and a processor, wherein the processor and the memory communicate with each other, the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the ultra-wideband based non-exposed spatial positioning method as described in the first aspect.
[0023] In a fifth aspect, the present invention provides an electronic device, comprising: a processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory so that the electronic device executes instructions for implementing the ultra-wideband based non-exposed spatial positioning method as described in the first aspect.
[0024] Terminology explanation:
[0025] UWB (UltraWide-Band)——Ultra-wideband;
[0026] CAN (Controller Area Network)——Controller Area Network;
[0027] TOA (Time of Arrival)——time of arrival;
[0028] DS-TWR (Double Side-Two Way Ranging)——Double Side-Two Way Ranging;
[0029] KNN (K-NearestNeighbor)——K nearest neighbor;
[0030] SVM (Support Vector Machine)——Support vector machine;
[0031] RF (Random Forest)——Random Forest.
[0032] Beneficial effects of the present invention: According to the base station tag mode of ultra-wideband positioning technology, the algorithms related to the lower computer and the upper computer are designed. First, based on the DS-TWR method, a ranging algorithm between multiple base stations and multiple tags is designed. The minimum ranging system is one tag and four base stations, and the maximum capacity is one hundred tags; secondly, for the non-line-of-sight ranging results, the ultra-wideband signal characteristics are collected and the classification model in machine learning is used to design the recognition algorithm, and the identified non-line-of-sight ranging value is corrected using a curve fitting algorithm; then, for the corrected ranging value, the positioning algorithm is improved based on the TOA algorithm, and a new algorithm is additionally designed as a supplement in the non-line-of-sight environment, and the Kalman filter algorithm is used to improve the positioning accuracy; finally, a hierarchical structure is designed based on the CAN bus to realize data intercommunication between the various levels in the positioning method.
[0033] Additional advantages of the present invention will be more clearly given in the following description or learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0035] Figure 1 This is a flow chart of the ultra-wideband positioning method described in an embodiment of the present invention.
[0036] Figure 2 This is a system hierarchical structure diagram described in an embodiment of the present invention.
[0037] Figure 3 Schematic diagram of the DS-TWR algorithm according to an embodiment of the present invention.
[0038] Figure 4 This is a schematic diagram of a single-tag multi-base station ranging algorithm according to an embodiment of the present invention.
[0039] Figure 5 Schematic diagram of the non-line-of-sight recognition algorithm described in an embodiment of the present invention.
[0040] Figure 6 This is a flow chart of the improved multi-circle intersection positioning algorithm described in an embodiment of the present invention.
[0041] Figure 7 This is a flowchart of initializing the grid search algorithm described in an embodiment of the present invention.
[0042] Figure 8 This is a flow chart of the grid search algorithm described in an embodiment of the present invention.
[0043] Fig. 9 Schematic diagram of the grid search algorithm dimensionality upgrading method described in an embodiment of the present invention.
[0044] Fig.10 This is a schematic diagram of the Kalman filter principle described in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below by the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.
[0046] It should be understood by those skilled in the art that unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art to which this invention belongs.
[0047] It should also be understood that terms, such as those defined in commonly used dictionaries, should be understood to have a meaning consistent with that in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless as defined herein.
[0048] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements and / or groups thereof.
[0049] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", 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. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. Different embodiments or examples described in this specification and features of different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
[0050] To facilitate understanding of the present invention, the present invention is further explained below with reference to specific embodiments in conjunction with the accompanying drawings, and the specific embodiments do not constitute a limitation on the embodiments of the present invention.
[0051] Those skilled in the art should understand that the drawings are merely schematic diagrams of embodiments, and the components in the drawings are not necessarily necessary for implementing the present invention.
[0052] Example 1
[0053] In this embodiment 1, a non-exposed space positioning system based on ultra-wideband is first provided, which includes: a ranging module, which is used to calculate the distance between a single tag and multiple base stations to achieve orderly ranging between multiple tags; an identification module, which is used to identify the non-line-of-sight part of the obtained distance value and correct it; a positioning module, which is used to calculate the position of the tag according to the line-of-sight and the corrected non-line-of-sight ranging value.
[0054] In this embodiment, the above-mentioned system is used to implement a non-exposed spatial positioning method based on ultra-wideband, including: calculating the distance between a single tag and multiple base stations to achieve orderly ranging between multiple tags; identifying the non-line-of-sight portion of the obtained distance value and correcting it; and calculating the position of the tag based on the line-of-sight and the corrected non-line-of-sight ranging value.
[0055] In this embodiment, the ranging algorithm is based on DS-TWR to achieve real-time ranging of a single tag to multiple base stations and efficient ranging of multiple tags, including: assuming that the tag first broadcasts a Poll message, the ranging starts at this time, and the tag records its own reference time T_Poll; after a certain flight time x, the base stations receive the Poll message respectively, and then record their own reference time R_Poll respectively; then, after an interval time, the tag turns on the receiver, and the base station A0 sends a receipt message Resp0 to the tag a certain time after receiving the Poll message, and records the time T_Resp0 of sending the message. After receiving it, the tag also records the timestamp R_Resp0 of receiving the message; similarly, the tag then turns on the receiver after a time period of the above interval time that is the tolerance, A 1~i Each tag sends its own receipt signal at the corresponding time; finally, when the tag receives at least one Resp message, it broadcasts a Final message, which contains T_Poll, R_Resp 0~i , T_Final timestamp information. After receiving this broadcast message, the base station will record the timestamp R_Final of the message it received. Then, for the nth base station, it can use T_Poll, R_Poll, T_Final, R_Final, T_Resp n 、R_Resp n These six timestamps are used to calculate the time of flight using TWR.
[0056] To achieve orderly ranging between multiple tags, a fixed time slot management method is used. This method assigns a fixed ranging initiation timing to each tag. When a tag is turned on, it will automatically sleep according to the pre-set ranging initiation time until the timing machine wakes it up and starts working. The system defaults to the A0 base station for tag timing management. The A0 base station allocates several time slots according to the maximum capacity of the tags in the system. The A0 base station monitors the time when each tag initiates the ranging request, and allocates the tag to the corresponding time slot according to the ID through the Sleep Correction in the Resp message, so that the tags can work in an orderly manner.
[0057] The non-line-of-sight recognition algorithm includes three sub-algorithms: K-nearest neighbor algorithm, support vector machine algorithm, and random forest. The three algorithms use cross-validation selection and a parameter search method to obtain the optimal parameters. Among them, the K-nearest neighbor algorithm uses the traversal search method, the support vector machine algorithm uses the grid search method, and the random forest uses the random search method. For the individual classification results of the three classification models, the majority voting method is used to select the best classification result. For the non-line-of-sight results obtained, the least squares fitting algorithm is used for correction. The correction method is to assume that the label moves with constant acceleration.
[0058] The positioning algorithm is based on TOA. Specifically, the coordinates of the positioning tag are (x, y) which is an unknown quantity. The positions of the three base stations are (x i ,y i ), i = 1, 2, 3, are known quantities; according to the geometric meaning, the intersection of three circles with the base station location as the center and the ranging value as the radius is the tag location;
[0059] According to the error of multi-circle intersection caused by ranging error, if multiple circles intersect in an area, the triangle centroid method is used to estimate the tag position; if there are separated circles, the method of scaling the radius or constructing a virtual intersection is added for preprocessing.
[0060] If positioning is not possible, a grid search algorithm is used for positioning, which includes: initialization before the search, first determine the site boundary and base station coordinates, then divide the site into several grids according to the given grid side length, and calculate the distance from the base station to the four vertices of the grid, record the maximum and minimum values of the distance from each grid to the base station and generate an electronic map for use when searching the grid; when searching in the map according to the ranging value, if the ranging value is just between the maximum and minimum distances from the base station to a grid, it is considered that the tag is located in the grid, and the center position of the grid is used instead of the tag position.
[0061] Example 2
[0062] In this embodiment 2, an ultra-wideband positioning method in a non-exposed space environment is provided, including: a bus-based hierarchical structure to achieve data connectivity between different levels; a ranging algorithm for a base station and a tag to obtain the distance between the two; a non-line-of-sight recognition and correction algorithm to distinguish the non-line-of-sight portion of the obtained distance value and correct it; a positioning and filtering algorithm to calculate the position of the tag based on the line-of-sight and the corrected non-line-of-sight ranging value.
[0063] The hierarchical structure is divided into three layers: data acquisition layer, data transmission layer, and host computer solution layer. The data acquisition layer includes positioning base stations and positioning tags to realize the ranging function. The base station is powered by a power supply and the tag is powered by a battery. The data in this layer is sent out by the base station; the data transmission layer is composed of a CAN bus module to receive the ranging data sent by the base station and realize long-distance transmission to the outside; the host computer solution layer is composed of a computer host or server. After receiving the ranging data transmitted by the CAN bus, it is used to realize non-line-of-sight recognition, correction, positioning, filtering and other algorithms to obtain the coordinate position of the tag.
[0064] Among them, the ranging algorithm is based on DS-TWR, which realizes the real-time ranging of a single tag to multiple base stations and the efficient ranging of multiple tags, including: taking a tag and four base stations as an example, assuming that the tag first broadcasts a Poll message, then the ranging starts, and the tag records its own reference time T_Poll; after a certain flight time x, the four base stations receive the Poll message respectively, and then record their own reference time R_Poll respectively. Then, at 1.5ms of the tag time, the tag turns on the receiver, and 2ms after receiving the Poll message, A0 sends a receipt message Resp0 to the tag and records the time T_Resp0 of sending the message. After receiving it, the tag also records the timestamp R_Resp0 of receiving the message; similarly, the tag turns on the receiver at 3ms, 4.5ms, and 6ms respectively, A 1~3 The respective receipt signals are sent at R_Poll+3.5ms, R_Poll+5ms, and R_Poll+6.5ms, and the same time T_Resp 1、2、3 and R_Resp 1、2、3 ; Finally, when the tag receives at least one Resp message, it will broadcast a Final message, which contains T_Poll, R_Resp 0~3 After receiving the broadcast message, the four base stations will record the timestamp R_Final of the message they received. Then, for the nth base station, the timestamp T_Poll, R_Poll, T_Final, R_Final, T_Resp n 、R_Resp nThese six timestamps are used to calculate the flight time t of TWR:
[0065]
[0066] R a =R_Resp n -T_Poll,
[0067] R b =R_Final-T_Resp n ,
[0068] D a =T_Final-R_Resp n ,
[0069] D b =T_Resp n -R_Poll
[0070] The above method realizes the ranging between a single tag and multiple base stations. In order to further realize the orderly ranging between multiple tags, a fixed time slot management method is used. This method assigns a fixed ranging initiation timing to each tag. When a tag is turned on, it will automatically sleep and wait according to the pre-set ranging initiation time until the timing machine wakes it up and starts working. The system defaults to the A0 base station for tag timing management. The A0 base station allocates several time slots according to the maximum capacity of the tags in the system. The A0 base station monitors the time when each tag initiates the ranging request, and allocates the tag to the corresponding time slot according to the ID through the SleepCorrection in the Resp message, so that the tags work in an orderly manner.
[0071] Among them, the non-line-of-sight recognition algorithm includes three types of sub-algorithms: K-nearest neighbor algorithm (KNN), support vector machine algorithm (SVM), and random forest (RF). The three algorithms use cross-validation selection and a parameter search method to obtain the optimal parameters. KNN uses a traversal search method, SVM uses a grid search method, and RF uses a random search method. For the individual classification results of the three classification models, the majority voting method is used to select the best classification result. For the non-line-of-sight results obtained, the least squares fitting algorithm is used for correction. The correction method is to assume that the label moves with a constant acceleration y=ax 3 +bx 2 +cx+d; where x represents the number of distance measurements, y represents the distance value, and the first n distance measurements also have (x i ,y i ),x i =i, i=1, 2, ..., n, define the coefficient vector
[0072]
[0073] f=(y1,y2,...,y n ) T
[0074] definition The coefficient vector of the equation of motion [a,b,c,d] T The solution equation is:
[0075]
[0076] After finding the coefficients, bring them back to the original equation. The jth distance measurement is the n+1th distance measurement. The result obtained after substituting it into the equation is the distance measurement result predicted by the least squares method, which can be used to replace the distance measurement value of the n+1th non-line-of-sight distance.
[0077] Among them, the positioning algorithm is based on TOA, specifically:
[0078] The coordinates of the positioning tag are (x, y) which is an unknown quantity. The positions of the three base stations are (x i ,y i ), i = 1, 2, 3, are known quantities. According to the geometric meaning, the intersection of three circles with the base station location as the center and the ranging value as the radius is the tag location, from which the distance formula can be obtained: (xx i ) 2 +(yy i ) 2 =r i 2 ,i=1,2,3; where r i =c×t i , c is the electromagnetic wave transmission speed, t i It is the time required for the base station to transmit information to the tag. After expanding it, it can be simplified to:
[0079] make After expanding it and converting it into matrix form, the above formula can be transformed into:
[0080]
[0081] Let the above formula be recorded as Y=AX. If we want to find (x,y), that is, find X, we can get the following by the least squares method:
[0082] X=(A T A) -1 A T Y
[0083] According to the error of multi-circle intersection caused by ranging error, if the multi-circle intersects in an area, the triangle centroid method is used to estimate the tag position; if there are separated circles, the method of scaling the radius or constructing a virtual intersection is used for preprocessing. For the positioning results, the Kalman filter algorithm is used for filtering to improve the accuracy. If this method cannot achieve positioning, the grid search algorithm is used for positioning, which includes: before searching, initialization must be performed first, first determine the site boundary and base station coordinates, and then divide the site into several grids according to the given grid side length, and calculate the distance from the base station to the four vertices of the grid, record the maximum and minimum values of the distance from each grid to the base station and generate an electronic map for use when searching the grid. When searching in the map according to the ranging value, if the ranging value is just between the maximum and minimum distances from the base station to a grid, it is considered that the tag is located in the grid, and the center position of the grid is used to replace the tag position.
[0084] Among them, the hierarchical structure is composed of CAN bus. The ranging data output by the base station is converted into CAN bus data suitable for long-distance transmission after passing through the CAN bus module. After another conversion in the host computer, it is converted into serial port or USB data and received by the host computer.
[0085] Example 3
[0086] like Figure 1 As shown, in this embodiment 3, a non-exposed space positioning method based on ultra-wideband is provided, including the following contents: a bus-based hierarchical structure to realize data connectivity between different levels; a ranging algorithm for base stations and tags to obtain the distance between the two; a non-line-of-sight recognition and correction algorithm to distinguish the non-line-of-sight part of the obtained distance value and correct it; a positioning and filtering algorithm to calculate the position of the tag according to the line-of-sight and the corrected non-line-of-sight ranging value.
[0087] In this embodiment, the hierarchical structure is as follows Figure 2 As shown in the figure, it is divided into three layers: data acquisition layer, data transmission layer, and host computer solution layer. The data acquisition layer includes a positioning base station and a positioning tag to realize the ranging function. The base station is powered by a power supply, and the tag is powered by a battery. The data in this layer is sent out by the base station; the data transmission layer is composed of a CAN bus module to receive the ranging data sent by the base station and realize long-distance transmission to the outside; the host computer solution layer is composed of a PC or a server. After receiving the ranging data transmitted by the CAN bus, it is used to implement non-line-of-sight recognition, correction, positioning, filtering and other algorithms to obtain the coordinate position of the tag.
[0088] When performing ranging between a single base station and a single tag, the algorithm used is DS-TWR, such as Figure 3 As shown, the specific label is T a The base station sends a ranging start signal at time T bThe base station receives this signal at all times, which is called a poll message. c The reply signal is sent at the time, and the label is T d This signal is received at the moment, which is called the resp message; the label is at T e The base station sends a ranging end signal at time T f This signal is received at the moment, and is called the final message. a , T c , T e Based on the tag clock, T b , T d , T f Taking the base station clock as the reference, after three times of sending and receiving information, the signal flight time t can be calculated as:
[0089]
[0090] Among them, T round1 =T d -T a ,T reply1 =T c -T b ,T round2 =T f -T c ,T reply2 =T e -T d .
[0091] The signal flight time t multiplied by the speed of light c is the distance between base station tags.
[0092] Figure 4 The figure shows the expansion method of the ranging method of a single base station single tag to a multi-base station single tag. The system has four base stations. In the figure, Tag represents the tag, A0~A3 represent four base stations respectively, Poll, Resp 0~3 , and Final are three types of communication messages; the time period between every two red lines represents a time slot, in which only one specific message can be sent and received, of which the four Resp count as four messages, the unit of the time slot is millisecond level, and the time unit for the base station tag to complete one information transmission and reception is microsecond level, and each time slot is set to 1.5ms; the dotted line represents the sending and receiving moment of the signal, T is sending, and R is receiving.
[0093] When only the base station is turned on, the DW1000 chip of the base station will continue to be turned on and wait for the ranging start message sent by the tag. If only the tag is turned on, it will send a start message every cycle, and will continue to repeat until the next cycle after knowing that there is no response. Only when the base station and the tag are turned on at the same time, the system will work normally.
[0094] First, the tag broadcasts a Poll message, and the ranging starts at this time. The tag records the timestamp of the message as the start time of the first time slot, which is the tag time reference T_Poll. After a certain flight time x, the four base stations receive the Poll message respectively, and then record the timestamp of their own receipt of the message, which is the base station time reference R_Poll, where x can be further divided into x A0 ~x A3 ; At this point, the sending and receiving of the Poll message, that is, the first message of TWR communication, is completed.
[0095] Then, at 1.5ms, the tag turns on the receiver. 2ms after receiving the Poll message, A0 sends a receipt message Resp0 to the tag and records the timestamp T_Resp0 of the sending message. After receiving it, the tag also records the timestamp R_Resp0 of the receiving message. At this point, the Resp0 message, that is, the second message of TWR communication of A0, is sent and received. The reason why the time for sending the receipt message is longer than one time slot is to avoid data loss caused by the failure of the tag receiver to turn on in time. Similarly, the tag turns on the receiver at 3ms, 4.5ms, and 6ms respectively. A 1~3 The respective receipt signals are sent at R_Poll+3.5ms, R_Poll+5ms, and R_Poll+6.5ms, and they also have timestamps T_Resp 1、2、3 and R_Resp 1、2、3 , so far the second TWR message sending and receiving of all base stations is completed.
[0096] Finally, when the tag enters the Final time slot and receives at least one Resp message, it broadcasts a Final message containing T_Poll, R_Resp 0~3 After receiving the broadcast message, the four base stations will record the timestamp R_Final of the message they received. Then, for the nth base station, the timestamp T_Poll, R_Poll, T_Final, R_Final, T_Resp n 、R_Resp n These six time stamps are used to calculate the flight time t of TWR.
[0097] When multiple tags are expanded, the method allocates a fixed ranging initiation timing to each tag. When a tag is turned on, it will automatically sleep and wait according to the pre-set ranging initiation time until the timer wakes it up and starts working. For example, there are four tags with serial numbers 1, 2, 3, and 4. When tag 2 is the only powered-on tag, it will complete the ranging in the fixed second "time slot". If tag 4 is turned on at this time, it will not initiate ranging immediately after tag 2, but wait until the time slot reserved for tag 3 ends, and then start ranging within its own specified time. The system defaults to the A0 base station for tag timing management. The A0 base station allocates several time slots according to the maximum capacity of tags in the system. The A0 base station monitors the time when each tag initiates the ranging request, and allocates the tag to the corresponding time slot according to the ID through the Sleep Correction in the Resp message, so that the tags work in an orderly manner.
[0098] The identification method of non-line-of-sight distance measurement value is as follows Figure 5 As shown in the figure, the model is trained according to the collected ultra-wideband signal features, and the KNN classification model is constructed using the kd tree algorithm. For its parameter optimal number of nearest neighbors k, the traversal search method is used to find the optimal parameter during cross-validation; the SVM classification model is constructed using the Gaussian radial kernel function, and the grid search method is used to find the optimal parameter for its parameter combination penalty parameter C and kernel function width gamma during cross-validation; when the decision tree algorithm is used to construct the random forest, the random search method is used to find the optimal parameter for its four parameters, the number of trees n, the maximum depth of the tree d, the minimum number of samples required for node splitting m, and the minimum number of samples required for leaf nodes c, during cross-validation.
[0099] For the three separate classification results obtained by the above three models, a majority voting method is used to take the category with more line-of-sight or non-line-of-sight occurrences as the final classification result.
[0100] For the identified non-line-of-sight results, the correction method is the least squares fitting algorithm:
[0101] Assume that the jth distance measurement is classified as a non-line-of-sight result. There are n line-of-sight results or calibrated non-line-of-sight results before this time. The fitting curve predicts the jth result. To prevent overfitting, assume that the tag moves with constant acceleration during the first n distance measurements, that is, the motion formula is:
[0102] y=ax 3 +bx 2 +cx+d
[0103] Where x represents the number of distance measurements, y represents the distance value, and the first n distance measurements also have (x i ,y i ),x i=i, i=1, 2, ..., n, define the coefficient vector:
[0104]
[0105] f=(y1,y2,...,y n ) T
[0106] definition The coefficient vector of the equation of motion [a,b,c,d] T The solution equation is:
[0107]
[0108] After finding the coefficients, bring them back to the original equation. The jth distance measurement is the n+1th distance measurement. The result obtained after substituting it into the equation is the distance measurement result predicted by the least squares method, which can be used to replace the distance measurement value of the n+1th non-line-of-sight distance.
[0109] The positioning algorithm first designs a multi-circle intersection algorithm based on TOA, assuming that the location coordinates of the positioning tag are (x, y) which are unknown quantities, and the locations of the three base stations are (x i ,y i ), i = 1, 2, 3, are known quantities. According to the geometric meaning, the intersection of three circles with the base station location as the center and the ranging value as the radius is the tag location, from which the distance formula can be obtained:
[0110] (xx i ) 2 +(yy i ) 2 =r i 2 ,i=1,2,3
[0111] Where r i =c×t i , c is the electromagnetic wave transmission speed, t i The time required for a base station to transmit information to a tag.
[0112] After expanding it, it can be simplified to:
[0113]
[0114] make After expanding it and converting it into matrix form, the above formula can be transformed into:
[0115]
[0116] Let the above formula be recorded as Y=AX. If we want to find (x,y), that is, find X, we can get it by the least squares method.
[0117] X=(AT A) -1 A T Y
[0118] The above situation is a completely accurate solution for ranging. When there is an error in the ranging value, the improved positioning algorithm is as follows Figure 6 As shown, first of all, when three circles intersect in an area, there are six intersection points. However, due to the location of the base station, the positioning range is limited to a smaller area. Therefore, after the coordinate calculation is brought in, the three wrong coordinate points can be excluded. It is believed that the coordinates of the real point are inside the triangle formed by these three points. At this time, the centroid of the triangle is used as the coordinates of the real point, that is:
[0119]
[0120] If the error situation is that there are separated circles, the first method used is to scale the radius of each circle so that the three circles intersect each other. If there are still non-intersecting circles after multiple scaling, the method of constructing a virtual intersection point is used. Assuming that the positions (x2, y2) and (x3, y3) of base stations A2 and A3 are the centers of the circles and the distance values r2 and r3 are the radii, the two circles do not intersect, then the virtual intersection point (x 23 ,y 23 )for:
[0121]
[0122] After completing the scaling or constructing the virtual intersection, the triangle centroid method is used to estimate the position of the label. This method is still applicable when converting from two-dimensional to three-dimensional, and only the position relationship of the circle needs to be converted to the position relationship of the sphere.
[0123] In this embodiment, a positioning algorithm based on grid search is designed as a supplement to the multi-circle intersection. The algorithm is divided into two steps: initialization and running search. The initialization method is as follows: Figure 7 As shown, first determine the site boundary and base station coordinates, then divide the site into several grids according to the given grid side length, and calculate the distance from the base station to the four vertices of the grid, and record the maximum and minimum values of the distance from each grid to the base station for use in searching the grid.
[0124] After initialization, the program's topic search is as follows Figure 8When searching for grids, we must first determine the number of base station ranging measurements received, because not all base stations can transmit data back in each ranging. When there is only one piece of data or no data at all, the positioning fails. When there are three or four pieces of data, normal positioning can be performed. At this time, we must first find grids based on the site divided by the initially set low-precision grid. For example, the side length is 1m, that is, the distance from the positioning tag to each base station is within a specific range. This range is the interval formed by the minimum and maximum distances from each base station to the grid that meets the conditions. If no suitable grid is found this time, it means that the positioning fails. The reason for selecting four base stations is to meet the needs of two-dimensional and three-dimensional positioning at the same time.
[0125] If the above grid can be found, the found grid is used as the new site, and the new site is re-divided into a grid with higher accuracy, for example, with a side length of 0.1m, and the search is performed again in this new site with this new accuracy. If the grid can still be found this time, the values of the x, y, and z coordinates of all the grids are averaged and output as the final positioning result; if there is no result in the second search of the grid, the first result is averaged and output.
[0126] If there are only two pieces of data returned, it is necessary to determine whether there are any results output from the last positioning. If there are no results from the last positioning, then this positioning also fails. However, if there are results from the last positioning, then first search for grids based on these two ranging results, and then use the point determined by the last positioning result as the center, use the appropriate length as the threshold, select all grids around it, compare these grids with the grids found by the above two ranging measurements, and use the overlapping grids as the final grid found this time. After averaging the coordinates, output the results.
[0127] There are two ways to extend this algorithm to three-dimensional applications. The direct method is to expand the squares divided on the plane into cubes in space; the indirect method is to place the base stations on the same horizontal plane, first use a geometric method to calculate the distance from the tag to this plane, which is the height h of the positioning result, and then map the tag position to the plane where the base station is located based on the height and ranging value, and then perform a two-dimensional positioning on this plane, and finally integrate and output the three-dimensional positioning result. The method to determine the height is the volume equality method. Randomly select three base stations to form the ground, and the tags are vertices. The tetrahedron is as follows Fig. 9 As shown, the lengths of the three bottom sides are the distances between base stations, which can be calibrated in advance, and the lengths of the three side edges are the distance measurement values, which can be obtained in real time. The conventional method for calculating the volume is: The bottom area S can be calculated by Heron's formula using the bottom side length:
[0128]
[0129] Another method to calculate the volume is the Euler tetrahedron method, which is calculated by the length of six edges:
[0130]
[0131] From the above two formulas, the height h of the positioning result can be obtained.
[0132] The filtering algorithm is composed of Kalman filtering, which mainly consists of two parts. The first part is the prediction link, which is divided into two steps; the second part is the update link, which is divided into three steps. Fig.10 The first step of the prediction phase is to predict the current time based on the state of the system at the previous time, which is expressed as
[0133]
[0134] in, is the predicted value of the system state at time k at time k-1, Similarly, F k is the state X of the system at time k-1. k-1 The transformation matrix on k is the control quantity of the system at time k, B k Is the effect on U k The control matrix on k is the process noise.
[0135] The second step of the prediction process is to find the error. After the predicted value at time k is found in the previous step, the difference between it and the true value at time k is called the estimation error. The covariance matrix of the difference is defined as the posterior probability estimation error covariance matrix, which is expressed as Where P k-1|k-1 represents the covariance matrix of the estimated value and the true value at time k-1, Q k is the process noise W k The noise matrix, where the noise conforms to a Gaussian distribution with a mean of 0, is denoted by W k ~N(0,Q k ).
[0136] To know whether the estimated value at time k based on time k-1 is accurate, we need to use the difference between the measured value at time k (the theoretical true value cannot be known) and the estimated value as the standard to measure and compensate for it. The difference is expressed as: in, Represents the difference, Z k is the measured value at time k, H k represents the observation matrix, which is The product of is the predicted value at time k.
[0137] After we have the error, we also need to know the covariance of this error, which is expressed as: Where R kExpressed as observation noise V k The covariance of .
[0138] After the prediction is ready, the next step is to update. The update is to get the estimated value at time k based on the predicted value at time k-1. The first step of the update is expressed as
[0139] It can be seen that the content between the estimated values of the connection system at two moments is K k , which is called Kalman gain. The second step is to find the value of Kalman gain, and the final result is in After obtaining the Kalman gain, the posterior probability estimation error covariance matrix can be calculated. The final result is the third step, expressed as P k|k =(IK k H k ) k|k-1 ; The only state vector that needs to be considered when measuring distance is the distance value, so the general kinematic equation d t =d t-1 +Δt·v t-1 +(a t-1 ·Δ 2 t) / 2; where d is the predicted value of the ranging, v and a are the velocity and acceleration respectively, and Δt is the time interval of the ranging. However, the problem here is that it is difficult to ensure that the directions of the velocity and acceleration are collinear with the line connecting the base station tag. It is meaningless to use the formula directly. In addition, since the direction of movement is difficult to determine, the angle γ between the actual displacement direction s and the direction of the previous ranging is also difficult to determine, and the distance cannot be calculated by the vector synthesis method.
[0140] The only part of the formula that can be used is that the distances at the two moments before and after are equal, which is obviously wrong. The state transformation of the two needs to be represented by a state transfer matrix F. Since it only involves a one-dimensional vector, F is essentially a number, and its value changes with the distance. When the distance increases, F>1, when it decreases, F<1, and when it remains unchanged, F=1. Therefore, the new state equation is d t =F·d t-1 .
[0141] The method to determine the value of F is: first set the initial value to 1, and for the tth filtering, set Δ t =d t-1 -z t (t>2), where z t Represents the observed value of the distance measurement. When 2<t≤10, all Δ t And take the average value. If t>10, calculate the Δ of the last ten times tAnd take the average value, and assign the average result to F. This method of adaptively adjusting F expands the application field of Kalman filtering, making it suitable for one-dimensional filtering that is not in the same direction.
[0142] In this method, all vectors are one-dimensional vectors like the matrix F. The initial value of the covariance matrix P is as small as possible, while the initial value of the process noise Q is as large as possible. This means that the initial stage of filtering trusts the observed results more and will also make the filtering results converge faster. Since the observed quantity is the same as the state quantity, the matrix H is a one-dimensional matrix with a value of 1, and the observation noise R can be replaced by the UWB ranging error with a value of 0.1.
[0143] The positioning result can be expressed in coordinates, so the state vector can be composed of two-dimensional vector components. Taking the x-axis direction as an example, assuming that the tag moves with constant acceleration, the kinematic equation is:
[0144]
[0145] The acceleration in each direction can be obtained by the accelerometer in the IMU unit, and then converted into a two-dimensional acceleration under the positioning coordinate after coordinate conversion. The initial velocity is obtained by integrating the acceleration within the Δt time. The two-dimensional velocity data obtained by this method is fused with the coordinate data obtained by the positioning algorithm to construct a filtering algorithm, in which the state vector consists of two-dimensional coordinates and two-dimensional velocity components, recorded as The transformation matrix F, control matrix B and control quantity U are given respectively.
[0146]
[0147] All components in vector x are independent of each other, so its covariance matrix P is a main diagonal matrix. Since the kinematic state equation is more accurate in construction, the initial value of P can be larger, and its noise matrix Q is selected to be smaller, which means that the confidence in the prediction is greater, but it is only greater than that of the ranging filter, and the observation results are still more trusted overall; the selection of the observation vector Z is the same as the state vector, so the observation matrix H is a four-dimensional unit matrix; the observation noise comes from the ranging error and the error of the positioning algorithm, so the value of its covariance matrix R is related to the UWB ranging accuracy and the positioning algorithm accuracy, and the value is 0.2. The method of this embodiment is relatively simple to expand from two dimensions to three dimensions. It only needs to add the z-axis component to the corresponding vector and expand the remaining matrix orders.
[0148] Example 4
[0149] This embodiment 4 provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium is used to store computer instructions. When the computer instructions are executed by a processor, the above-mentioned ultra-wideband-based non-exposure spatial positioning method is implemented. The method includes:
[0150] Calculate the distance between a single tag and multiple base stations to achieve orderly ranging between multiple tags;
[0151] Identify the non-line-of-sight portion of the obtained distance values and correct for it;
[0152] The position of the tag is calculated based on the line-of-sight and corrected non-line-of-sight distance measurement values.
[0153] Example 5
[0154] This embodiment 5 provides a computer device, including a memory and a processor, the processor and the memory communicate with each other, the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the above-mentioned ultra-wideband-based non-exposure spatial positioning method, the method comprising:
[0155] Calculate the distance between a single tag and multiple base stations to achieve orderly ranging between multiple tags;
[0156] Identify the non-line-of-sight portion of the obtained distance values and correct for it;
[0157] The position of the tag is calculated based on the line-of-sight and corrected non-line-of-sight distance measurement values.
[0158] Example 6
[0159] This embodiment 6 provides an electronic device, including: a processor, a memory, and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory, so that the electronic device executes instructions for implementing the above-mentioned ultra-wideband-based non-exposure spatial positioning method, the method comprising:
[0160] Calculate the distance between a single tag and multiple base stations to achieve orderly ranging between multiple tags;
[0161] Identify the non-line-of-sight portion of the obtained distance values and correct for it;
[0162] The position of the tag is calculated based on the line-of-sight and corrected non-line-of-sight distance measurement values.
[0163] In summary, the embodiment of the present invention provides a non-exposed space positioning method based on ultra-wideband, which belongs to the field of positioning technology. The method designs the lower computer and the upper computer related algorithms according to the base station tag mode of ultra-wideband positioning technology. First, based on the DS-TWR method, a ranging algorithm between multiple base stations and multiple tags is designed. The minimum ranging system is one tag and four base stations, and the maximum capacity is one hundred tags; secondly, for the non-line-of-sight ranging results, the ultra-wideband signal features are collected and the classification model in machine learning is used to design the recognition algorithm, and the identified non-line-of-sight ranging value is corrected using the curve fitting algorithm; then, for the corrected ranging value, the positioning algorithm is improved based on the TOA algorithm, and a new algorithm is additionally designed as a supplement in the non-line-of-sight environment, and the Kalman filter algorithm is used to improve the positioning accuracy; finally, a hierarchical structure is designed based on the CAN bus to realize data intercommunication between the various levels in the positioning method.
[0164] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0165] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0166] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0167] These computer program instructions can also be loaded onto a computer or other programmable data processing device, and a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0168] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative labor on the basis of the technical solution disclosed in the present invention should be included in the scope of protection of the present invention.
Claims
1. A non-exposure spatial positioning method based on ultra-wideband, characterized in that: include: Calculate the distance between a single tag and multiple base stations to achieve orderly ranging between multiple tags; Identify the non-line-of-sight portion of the obtained distance values and correct for it; The position of the tag is calculated based on the line-of-sight and corrected non-line-of-sight distance measurement values.
2. The non-exposed spatial positioning method based on ultra-wideband according to claim 1, characterized in that: The ranging algorithm is based on DS-TWR to achieve real-time ranging of a single tag to multiple base stations and efficient ranging of multiple tags, including: assuming that the tag first broadcasts a Poll message, the ranging starts at this time, and the tag records its own reference time T_Poll; after a certain flight time x, the base stations receive the Poll message respectively, and then record their own reference time R_Poll respectively; then, after an interval time, the tag turns on the receiver, and the base station A0 sends a receipt message Resp0 to the tag a certain time after receiving the Poll message, and records the time T_Resp0 of sending the message. After receiving it, the tag also records the timestamp R_Resp0 of receiving the message; similarly, the tag then turns on the receiver after a time period of the above interval time that is the tolerance, A 1~i Each tag sends its own receipt signal at the corresponding time; finally, when the tag receives at least one Resp message, it broadcasts a Final message, which contains T_Poll, R_Resp 0~i , T_Final timestamp information. After receiving this broadcast message, the base station will record the timestamp R_Final of the message it received. Then, for the nth base station, it can use T_Poll, R_Poll, T_Final, R_Final, T_Resp n 、R_Resp n These six timestamps are used to calculate the time of flight using TWR.
3. The non-exposed spatial positioning method based on ultra-wideband according to claim 2, characterized in that: To achieve orderly ranging between multiple tags, a fixed time slot management method is used. This method assigns a fixed ranging initiation timing to each tag. When a tag is turned on, it will automatically sleep according to the pre-set ranging initiation time until the timing machine wakes it up and starts working. The system defaults to the A0 base station for tag timing management. The A0 base station allocates several time slots according to the maximum capacity of the tags in the system. The A0 base station monitors the time when each tag initiates the ranging request, and allocates the tag to the corresponding time slot according to the ID through the Sleep Correction in the Resp message, so that the tags can work in an orderly manner.
4. The non-exposed spatial positioning method based on ultra-wideband according to claim 1, characterized in that: The non-line-of-sight recognition algorithm includes three sub-algorithms: K-nearest neighbor algorithm, support vector machine algorithm, and random forest. The three algorithms use cross-validation selection and a parameter search method to obtain the optimal parameters. Among them, the K-nearest neighbor algorithm uses the traversal search method, the support vector machine algorithm uses the grid search method, and the random forest uses the random search method. For the individual classification results of the three classification models, the majority voting method is used to select the best classification result. For the non-line-of-sight results obtained, the least squares fitting algorithm is used for correction. The correction method is to assume that the label moves with constant acceleration.
5. The non-exposure spatial positioning method based on ultra-wideband according to claim 1, characterized in that: The positioning algorithm is based on TOA. Specifically, the coordinates of the positioning tag are (x, y) which is an unknown quantity. The positions of the three base stations are (x i ,y i ), i = 1, 2, 3, are known quantities; according to the geometric meaning, the intersection of three circles with the base station location as the center and the ranging value as the radius is the tag location; According to the error of multi-circle intersection caused by ranging error, if multiple circles intersect in an area, the triangle centroid method is used to estimate the tag position; if there are separated circles, the method of scaling the radius or constructing a virtual intersection is added for preprocessing.
6. The non-exposure spatial positioning method based on ultra-wideband according to claim 5, characterized in that: If positioning is not possible, a grid search algorithm is used for positioning, which includes: initialization before the search, first determine the site boundary and base station coordinates, then divide the site into several grids according to the given grid side length, and calculate the distance from the base station to the four vertices of the grid, record the maximum and minimum values of the distance from each grid to the base station and generate an electronic map for use when searching the grid; when searching in the map according to the ranging value, if the ranging value is just between the maximum and minimum distances from the base station to a grid, it is considered that the tag is located in the grid, and the center position of the grid is used instead of the tag position.
7. A non-exposure spatial positioning system based on ultra-wideband, characterized in that: include: The ranging module is used to calculate the distance between a single tag and multiple base stations, and realize the orderly ranging between multiple tags; A recognition module, used for recognizing the non-line-of-sight portion of the obtained distance value and correcting it; The positioning module is used to calculate the position of the tag based on the line-of-sight and the corrected non-line-of-sight ranging value.
8. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium is used to store computer instructions, and when the computer instructions are executed by the processor, the ultra-wideband based non-exposed spatial positioning method as described in any one of claims 1-6 is implemented.
9. A computer device, characterized in that: It includes a memory and a processor, the processor and the memory communicate with each other, the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the ultra-wideband based non-exposed spatial positioning method as described in any one of claims 1-6.
10. An electronic device, characterized in that: include: A processor, a memory and a computer program; wherein the processor is connected to the memory, the computer program is stored in the memory, and when the electronic device is running, the processor executes the computer program stored in the memory so that the electronic device executes instructions for implementing the ultra-wideband based non-exposed spatial positioning method as described in any one of claims 1-6.
