Multi-dimensional fusion WIFI positioning method
By setting up multiple routing terminals and handheld terminals in the underground pipe gallery, and combining GPS and WIFI signals for multi-dimensional fusion positioning, the problem of insufficient accuracy of single-source signals is solved, and high-precision and full-coverage indoor positioning services are achieved.
Patent Information
- Application Number
- CN202411014666.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-08
AI Technical Summary
In the existing technology, the accuracy of using a single source signal to determine indoor location is not accurate enough. Especially in indoor environments such as underground pipe corridors, it is difficult to achieve high-precision positioning.
By setting up multiple routing terminals in the underground pipe gallery, the handheld terminals and routing terminals are connected through WIFI, combined with GPS data for multi-dimensional fusion positioning, and WIFI fingerprint positioning and real-time positioning reliability are used for position verification and weighted average to achieve positioning results. precise calculation.
It improves positioning accuracy and coverage, reduces blind spots, ensures positioning services without blind spots, and can track the location of staff in a timely manner to provide support and response.
Smart Images

Figure FDA0004965355490000031 
Figure FDA0004965355490000041 
Figure SMS_1
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of indoor positioning technology, and specifically relates to a multi-dimensional fusion WIFI positioning method. Background Art
[0002] Satellite positioning technology has penetrated into people's lives, and with technologies such as RTK (Real-time kinematic), positioning accuracy has been improved to centimeter level. However, in indoor positioning, there are still problems such as no signal or large positioning errors. At present, the main commercial indoor positioning methods are Bluetooth positioning and WIFI positioning.
[0003] In the prior art, for example, the technical solution described in the patent with publication number: CN111836360A: a WIFI-based positioning method and system, including a mobile smart terminal, a third-party mobile smart terminal and a WIFI positioning tag. When the mobile smart terminal is wirelessly connected to the WIFI positioning tag for the first time, the client running on the mobile smart terminal extracts the microservice module from the microservice container and deploys it to the WIFI positioning tag, and the WIFI positioning tag deploys and runs the microservice module for initialization.
[0004] The existing single-source signal is not accurate enough to determine the position, so multi-source heterogeneous data fusion positioning is now used for precision requirements. Traditional multi-source fusion solutions, such as Kalman filtering and extended Kalman filtering, require prior information about noise, but it is difficult to obtain an accurate noise model in actual scenarios, so the positioning accuracy cannot be guaranteed through this solution. Summary of the invention
[0005] The purpose of the present invention is to provide a multi-dimensional fusion WIFI positioning method to solve the problem that the position accuracy is not accurate enough in the prior art proposed in the background technology using a single source signal.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0007] The multi-dimensional fusion WIFI positioning method includes a server, a routing terminal and a handheld terminal; the positioning method includes the following steps:
[0008] Several routing terminals are set up inside the underground pipe gallery. The handheld terminal is connected to the routing terminal via WIFI. The routing terminal is then connected to the server.
[0009] The server records the location information of each routing terminal and the corresponding routing ID; when the handheld terminal is connected to the routing terminal, the server reads the location information and routing ID of the corresponding routing terminal to locate the location of the routing terminal;
[0010] The handheld terminal directly obtains the location result through GPS; and collects the location information in real time according to the GPS data of the handheld terminal, obtains the real-time positioning accuracy, and uploads the data to the server through the routing terminal. The server obtains the real-time positioning reliability according to the real-time positioning accuracy collected by the handheld terminal and the average positioning accuracy recorded;
[0011] The server integrates the data uploaded by the handheld terminal and the routing terminal to obtain the positioning results of the staff in the tunnel.
[0012] According to the above technical solution, after the handheld terminal is connected to the routing terminal via WIFI, the location of the mobile terminal is preliminarily found through WIFI fingerprint positioning.
[0013] According to the above technical solution, the preliminary search for the location of the mobile terminal through WIFI fingerprint positioning is specifically as follows:
[0014] First, you need to use a handheld terminal to collect WIFI signal data in the target area. The WIFI signal data includes the MAC addresses and signal strengths of different APs, and transmit the data to the server.
[0015] The server pre-processes the collected data, including removing duplicate data and screening valid data to ensure data quality;
[0016] The server establishes a corresponding relationship between the pre-processed WIFI signal data and the location information of the routing terminal recorded in the server, and builds a WIFI fingerprint library for subsequent positioning;
[0017] The real-time collected WIFI signal feature data is compared with the data in the WIFI fingerprint library to obtain the location information of the handheld terminal; the location information of the mobile terminal is output.
[0018] According to the above technical solution, the server obtains the real-time positioning reliability based on the real-time positioning accuracy collected by the handheld terminal and the average positioning accuracy recorded:
[0019] Real-time positioning reliability = |real-time positioning accuracy-average positioning accuracy| / average positioning accuracy. The larger the value of real-time positioning reliability is, the more reliable the position it represents is.
[0020] According to the above technical solution, the position of the staff in the tunnel is determined based on the real-time positioning reliability, and the last positioning result of the handheld terminal is selected from the real-time positioning reliability of the handheld terminal this time, specifically:
[0021] Determine whether the deviation between the real-time positioning result with the highest reliability and the last positioning result is within the fluctuation range. If so, select the result with the highest reliability as the current positioning result. If not, judge the remaining real-time positioning reliability results to find the real-time positioning result whose reliability is within the fluctuation range with the last positioning result.
[0022] According to the above technical solution, the location information of the mobile terminal obtained by preliminary search based on WIFI fingerprint positioning and the location information obtained based on the highest reliability of real-time positioning are integrated in multiple dimensions to obtain the specific location of the staff in the tunnel, specifically:
[0023] First, the coordinates of the mobile terminal's location information obtained by preliminary search based on WIFI fingerprint positioning are collected, and the obtained coordinate points are defined as (x i ,y i ); The location information obtained according to the real-time positioning reliability is also collected for multiple coordinate points, and the obtained coordinate points are defined as (x j ,y j ), calculate the distance between two points:
[0024] Create two coordinate sets S1 and S2, where S1 = {(x i ,y i )}(i=1,2,3...m); S2={(x j ,y j )}(j=1,2,3……n);
[0025]
[0026] Among them, d ij Represents the distance between two points and creates a distance matrix. Based on the calculated distance, the weight of each known position is calculated. The closer the distance, the greater the weight. The coordinates of the current position are calculated by weighted average.
[0027] According to the above technical solution, the coordinates of the current position are calculated by weighted average as follows:
[0028] First, calculate the weight of the coordinate point as shown below:
[0029]
[0030] In the formula, m represents the number of locations in the WIFI fingerprint database that can be matched with the location information collected by the handheld terminal, and d ij represents the Euclidean distance between the WIFI fingerprint database and the location information collected by the handheld terminal, w ij Represents the weight of the node;
[0031] The horizontal coordinate of the current position = (the horizontal coordinate of position 1 * weight 1 + the horizontal coordinate of position 2 * weight 2 + ... + the horizontal coordinate of position n * weight n) / (weight 1 + weight 2 + ... + weight n);
[0032] The ordinate of the current position = (ordinate of position 1 * weight 1 + ordinate of position 2 * weight 2 + ... + ordinate of position n * weight n) / (weight 1 + weight 2 + ... + weight n).
[0033] According to the above technical solution, data needs to be processed when performing multi-dimensional fusion, including the following steps:
[0034] Data alignment: align the WIFI signal data and the data uploaded by the handheld terminal in time to ensure that the two types of data are consistent in time; ensure that each data point has a timestamp, and find the closest time point by comparing the timestamps of different data sources to ensure data alignment at similar time points; align the WIFI signal data and the data uploaded by the handheld terminal to ensure that they are consistent in time.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] In the present invention, by combining the GPS data of the handheld terminal and the location information obtained by connecting the routing terminal via WIFI, dual verification of the location information can be achieved, thereby improving the accuracy of positioning. By using multiple routing terminals distributed inside the pipe gallery, the positioning coverage and accuracy can be improved, blind spots can be reduced, and positioning services without dead ends can be ensured. By collecting location information in real time and uploading data to the server, the location of the staff can be tracked in a timely manner, and support and response can be provided when necessary. DETAILED DESCRIPTION
[0037] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] Embodiment 1
[0039] The multi-dimensional fusion WIFI positioning method includes a server, a routing terminal and a handheld terminal; the positioning method includes the following steps:
[0040] Several routing terminals are set up inside the underground pipe gallery. The handheld terminal is connected to the routing terminal via WIFI. The routing terminal is then connected to the server.
[0041] The server records the location information of each routing terminal and the corresponding routing ID; when the handheld terminal is connected to the routing terminal, the server reads the location information and routing ID of the corresponding routing terminal to locate the location of the routing terminal;
[0042] The handheld terminal directly obtains the location result through GPS; and collects the location information in real time according to the GPS data of the handheld terminal, obtains the real-time positioning accuracy, and uploads the data to the server through the routing terminal. The server obtains the real-time positioning reliability according to the real-time positioning accuracy collected by the handheld terminal and the average positioning accuracy recorded;
[0043] The server integrates the data uploaded by the handheld terminal and the routing terminal to obtain the positioning results of the staff in the tunnel.
[0044] In the present invention, by combining the GPS data of the handheld terminal and the location information obtained by connecting the routing terminal via WIFI, dual verification of the location information can be achieved, thereby improving the accuracy of positioning. By using multiple routing terminals distributed inside the pipe gallery, the positioning coverage and accuracy can be improved, blind spots can be reduced, and positioning services without dead ends can be ensured. By collecting location information in real time and uploading data to the server, the location of the staff can be tracked in a timely manner, and support and response can be provided when necessary.
[0045] Embodiment 2
[0046] This embodiment is a further refinement of the first embodiment.
[0047] When the handheld terminal is connected to the routing terminal via WIFI, the location of the mobile terminal is initially found through WIFI fingerprint positioning.
[0048] The specific steps for initially finding the location of the mobile terminal through WIFI fingerprint positioning are as follows:
[0049] First, you need to use a handheld terminal to collect WIFI signal data in the target area. The WIFI signal data includes the MAC addresses and signal strengths of different APs, and transmit the data to the server.
[0050] The server pre-processes the collected data, including removing duplicate data and screening valid data to ensure data quality;
[0051] The server establishes a corresponding relationship between the pre-processed WIFI signal data and the location information of the routing terminal recorded in the server, and builds a WIFI fingerprint library for subsequent positioning;
[0052] The real-time collected WIFI signal feature data is compared with the data in the WIFI fingerprint library to obtain the location information of the handheld terminal; the location information of the mobile terminal is output.
[0053] The server obtains the real-time positioning reliability based on the real-time positioning accuracy collected by the handheld terminal and the average positioning accuracy recorded:
[0054] Real-time positioning reliability = |real-time positioning accuracy-average positioning accuracy| / average positioning accuracy. The larger the value of real-time positioning reliability is, the more reliable the position it represents is.
[0055] According to the obtained real-time positioning reliability, the position of the staff in the tunnel is determined, and the last positioning result of the handheld terminal is selected from the real-time positioning reliability of the handheld terminal this time, specifically:
[0056] Determine whether the deviation between the real-time positioning result with the highest reliability and the last positioning result is within the fluctuation range. If so, select the result with the highest reliability as the current positioning result. If not, judge the remaining real-time positioning reliability results to find the real-time positioning result whose reliability is within the fluctuation range with the last positioning result.
[0057] The location information of the mobile terminal obtained by preliminary search based on WIFI fingerprint positioning and the location information obtained based on the highest reliability of real-time positioning are integrated in multiple dimensions to obtain the specific location of the staff in the tunnel, specifically:
[0058] First, the coordinates of the mobile terminal's location information obtained by preliminary search based on WIFI fingerprint positioning are collected, and the obtained coordinate points are defined as (x i ,y i ); The location information obtained according to the real-time positioning reliability is also collected for multiple coordinate points, and the obtained coordinate points are defined as (x j ,y j ), calculate the distance between two points:
[0059] Create two coordinate sets S1 and S2, where S1 = {(x i ,y i )}(i=1,2,3...m); S2={(x j ,y j )}(j=1,2,3……n);
[0060]
[0061] Among them, d ij Represents the distance between two points and creates a distance matrix. Based on the calculated distance, the weight of each known position is calculated. The closer the distance, the greater the weight. The coordinates of the current position are calculated by weighted average.
[0062] The coordinates of the current position are calculated by weighted averaging as follows:
[0063] First, calculate the weight of the coordinate point as shown below:
[0064]
[0065] In the formula, m represents the number of locations in the WIFI fingerprint database that can be matched with the location information collected by the handheld terminal, and d ij represents the Euclidean distance between the WIFI fingerprint database and the location information collected by the handheld terminal, w ij Represents the weight of the node;
[0066] The horizontal coordinate of the current position = (the horizontal coordinate of position 1 * weight 1 + the horizontal coordinate of position 2 * weight 2 + ... + the horizontal coordinate of position n * weight n) / (weight 1 + weight 2 + ... + weight n);
[0067] The ordinate of the current position = (ordinate of position 1 * weight 1 + ordinate of position 2 * weight 2 + ... + ordinate of position n * weight n) / (weight 1 + weight 2 + ... + weight n).
[0068] When performing multi-dimensional fusion, data needs to be processed, including the following steps:
[0069] Data alignment: align the WIFI signal data and the data uploaded by the handheld terminal in time to ensure that the two types of data are consistent in time; ensure that each data point has a timestamp, and find the closest time point by comparing the timestamps of different data sources to ensure data alignment at similar time points; align the WIFI signal data and the data uploaded by the handheld terminal to ensure that they are consistent in time.
[0070] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0071] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A multi-dimensional fusion WIFI positioning method, characterized by: It includes a server, a routing terminal and a handheld terminal; the positioning method includes the following steps: Several routing terminals are set up inside the underground pipe gallery. The handheld terminal is connected to the routing terminal via WIFI. The routing terminal is then connected to the server. The server records the location information of each routing terminal and the corresponding routing ID; when the handheld terminal is connected to the routing terminal, the server reads the location information and routing ID of the corresponding routing terminal to locate the location of the routing terminal; The handheld terminal directly obtains the location result through GPS; and collects the location information in real time according to the GPS data of the handheld terminal, obtains the real-time positioning accuracy, and uploads the data to the server through the routing terminal. The server obtains the real-time positioning reliability according to the real-time positioning accuracy collected by the handheld terminal and the average positioning accuracy recorded; The server integrates the data uploaded by the handheld terminal and the routing terminal to obtain the positioning results of the staff in the tunnel.
2. The multi-dimensional fusion WIFI positioning method according to claim 1, characterized in that: When the handheld terminal is connected to the routing terminal via WIFI, the location of the mobile terminal is initially found through WIFI fingerprint positioning.
3. The multi-dimensional fusion WIFI positioning method according to claim 2, characterized in that: The specific steps for initially finding the location of the mobile terminal through WIFI fingerprint positioning are as follows: First, you need to collect WIFI signal data in the target area through a handheld terminal. The WIFI signal data includes the MAC addresses and signal strengths of different APs, and transmit the data to the server. The server pre-processes the collected data, including removing duplicate data and screening valid data to ensure data quality; The server establishes a corresponding relationship between the pre-processed WIFI signal data and the location information of the routing terminal recorded in the server, and builds a WIFI fingerprint library for subsequent positioning; The real-time collected WIFI signal feature data is compared with the data in the WIFI fingerprint library to obtain the location information of the handheld terminal; the location information of the mobile terminal is output.
4. The multi-dimensional fusion WIFI positioning method according to claim 3, characterized in that: The server obtains the real-time positioning reliability based on the real-time positioning accuracy collected by the handheld terminal and the average positioning accuracy recorded: Real-time positioning reliability = |real-time positioning accuracy-average positioning accuracy| / average positioning accuracy The larger the real-time positioning confidence value is, the more reliable the position it represents is.
5. The multi-dimensional fusion WIFI positioning method according to claim 4, characterized in that: According to the obtained real-time positioning reliability, the position of the staff in the tunnel is determined, and the last positioning result of the handheld terminal is selected from the real-time positioning reliability of the handheld terminal this time, specifically: Determine whether the deviation between the real-time positioning result with the highest reliability and the last positioning result is within the fluctuation range. If so, select the real-time positioning result with the highest reliability as the position of this positioning; If not, the remaining real-time positioning reliability results are judged to find the real-time positioning result whose real-time positioning reliability is within the fluctuation range of the previous positioning result.
6. The multi-dimensional fusion WIFI positioning method according to claim 4, characterized in that: The location information of the mobile terminal obtained by preliminary search based on WIFI fingerprint positioning and the location information obtained based on the highest reliability of real-time positioning are integrated in multiple dimensions to obtain the specific location of the staff in the tunnel, specifically: First, the coordinates of the mobile terminal's location information obtained by preliminary search based on WIFI fingerprint positioning are collected, and the obtained coordinate points are defined as (x i ,y i ); The location information obtained according to the real-time positioning reliability is also collected for multiple coordinate points, and the obtained coordinate points are defined as (x j ,y j ), calculate the distance between two points: Create two coordinate sets S1 and S2, where S1 = {(x i ,y i )}(i=1,2,3...m); S2={(x j ,y j )}(j=1,2,3……n); Among them, d ij Represents the distance between two points. Based on the calculated distance, the weight of each known position is calculated. The closer the distance, the greater the weight. The coordinates of the current position are calculated by weighted average.
7. The multi-dimensional fusion WIFI positioning method according to claim 6, characterized in that: The coordinates of the current position are calculated by weighted averaging as follows: First, calculate the weight of the coordinate point as shown below: In the formula, m represents the number of locations in the WIFI fingerprint database that can be matched with the location information collected by the handheld terminal, and d ij represents the Euclidean distance between the WIFI fingerprint database and the location information collected by the handheld terminal, w ij Represents the weight of the node; The horizontal coordinate of the current position = (the horizontal coordinate of position 1 * weight 1 + the horizontal coordinate of position 2 * weight 2 + ... + the horizontal coordinate of position n * weight n) / (weight 1 + weight 2 + ... + weight n); The ordinate of the current position = (ordinate of position 1 * weight 1 + ordinate of position 2 * weight 2 + ... + ordinate of position n * weight n) / (weight 1 + weight 2 + ... + weight n).
8. The multi-dimensional fusion WIFI positioning method according to claim 7, characterized in that: When performing multi-dimensional fusion, data needs to be processed, including the following steps: Data alignment: align the WIFI signal data and the data uploaded by the handheld terminal in time to ensure that the two types of data are consistent in time; ensure that each data point has a timestamp, and find the closest time point by comparing the timestamps of different data sources to ensure data alignment at similar time points; align the WIFI signal data and the data uploaded by the handheld terminal to ensure that they are consistent in time.
Citation Information
Cited By
Positioning visualization system, device and method for shield tunnel battery car
CN119946815A
