Indoor positioning method based on multi-source information fusion
Through multi-source information fusion and particle filtering technology, combined with Wi-Fi signals and pedestrian movement data, the indoor positioning results are optimized, solving the problems of indoor positioning accuracy and cost in the existing technology, and achieving high-precision, low-cost indoor positioning effects. .
Patent Information
- Application Number
- CN202210638167.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-08
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-06-08
AI Technical Summary
Among the existing indoor positioning technologies, ultra-wideband positioning technology has high cost, and Wi-Fi positioning technology cannot guarantee the accuracy, making it difficult to popularize and provide high-precision and long-term reliable positioning services indoors.
An indoor positioning method based on multi-source information fusion is adopted, using pedestrian movement data collected by smartphones and Wi-Fi signal strength in the indoor environment, combined with particle filtering methods and map information, to optimize positioning results and improve positioning accuracy and reliability.
It achieves high-precision, low-cost, and long-term reliable positioning services in indoor environments, enhances the performance of the positioning system, and provides a cheap and universal solution for indoor positioning research.
Smart Images

Figure CN114993320B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of indoor positioning technology, and in particular to an indoor positioning method based on multi-source information fusion. Background Art
[0002] In the field of location-based services, the coverage of the Global Navigation Satellite System (GNSS) has exceeded 98%. Under outdoor conditions, meter-level positioning accuracy can basically meet people's life needs. However, under indoor conditions, due to the weak power of satellite signals, the complex and changeable indoor environment, and the numerous interferences, it is difficult for satellite-based positioning systems to maintain good positioning performance. Although the current research on indoor positioning is very rich, it is still difficult to effectively make up for the shortcomings of GNSS in indoor positioning.
[0003] At present, indoor positioning services have been involved in all aspects of people's lives, and a reliable indoor positioning technology has become an urgent need for people's current lives. Since 2005, research on indoor positioning has begun to show a significant growth trend. Relevant research directions can be roughly divided into indoor positioning technology based on wireless networks, indoor positioning technology based on inertial sensors, and indoor positioning technology based on multi-source information fusion.
[0004] Indoor positioning technology based on wireless networks completes indoor positioning through wireless networks constructed by wireless signals, such as infrared, ultrasonic, ultra-wideband, radio frequency identification (RFID), ZigBee, Bluetooth, Wi-Fi and other positioning technologies. Among them, the increasingly popular Wi-Fi signals have become more and more popular in indoor positioning research and have received extensive attention from scholars at home and abroad. However, due to the shortcomings of Wi-Fi signals such as low stability and susceptibility to interference, its positioning results are often unsatisfactory. Indoor positioning technology based on inertial devices is an inertial navigation based on inertial sensors, mainly including pedestrian inertial navigation system (PINS) and pedestrian dead reckoning (PDR). The former often requires high sensor accuracy and needs to suppress error drift to ensure long-term positioning reliability; the latter often requires low sensor accuracy, relies on the characteristics of human walking, and updates the pedestrian position by accumulating step lengths on the pedestrian heading through stride detection. Compared with PINS, PDR can often achieve better positioning effects and obtain higher cost-effectiveness under limited cost conditions. However, the PDR positioning system can usually only provide relatively ideal short- and medium-term positioning, but it is difficult to guarantee long-term operation. In addition, the acquisition of the initial position often requires support from other positioning systems. Summary of the invention
[0005] The present invention mainly solves the technical problems existing in the existing indoor positioning technology, such as the ultra-wideband (UWB) positioning technology cannot be promoted due to its high cost, and the Wi-Fi positioning technology is difficult to popularize due to the inability to ensure the positioning accuracy. An indoor positioning method based on multi-source information fusion is proposed, which uses the pedestrian motion data collected by a smart phone and the strength of the Wi-Fi signal in the indoor environment to obtain the initial positioning position, and uses the particle filtering method to achieve fusion with map information. The positioning result solved by optimizing the actual map information can make the final positioning result more in line with reality and improve the accuracy of the positioning result.
[0006] The present invention provides an indoor positioning method based on multi-source information fusion, comprising the following processes:
[0007] Step 100, establishing a Wi-Fi fingerprint database, wherein the Wi-Fi fingerprint is a set of Wi-Fi signal strengths;
[0008] Step 200, collecting the user's Wi-Fi signal strength data and pedestrian movement data in real time;
[0009] Step 300, using the user's Wi-Fi signal strength data, determine the pedestrian's initial location and provide positioning results in real time;
[0010] Step 301, the user's Wi-Fi signal strength data is matched with the Wi-Fi fingerprint database online, and a rough location query is first performed to determine the area where the pedestrian is located, and the Wi-Fi fingerprint data collected in the area is obtained;
[0011] Step 302, performing accurate Wi-Fi fingerprint location matching based on the WKNN algorithm of weighted Euclidean distance, and then determining the initial location of the pedestrian;
[0012] Step 400, using the user's pedestrian motion data to perform pedestrian dead reckoning positioning;
[0013] Step 401, based on the pedestrian motion data of the user, the initial position of the pedestrian determined in step 300 is used as the initial position of the pedestrian dead reckoning, and the accelerometer and the magnetometer are integrated through the Madgwick AHRS algorithm to perform posture calculation, thereby obtaining the pitch angle, roll angle, and heading angle of the mobile phone, and then determining the pedestrian heading angle;
[0014] Step 402, the coordinate system between the mobile phone and the pedestrian is converted by using the pitch angle and roll angle of the mobile phone posture, the pedestrian gait analysis is performed by using the obtained three-axis acceleration of the pedestrian, and the stride detection is performed using the dynamic time warping algorithm based on the Z-axis acceleration peak detection, which effectively filters out abnormal stride actions and obtains the pedestrian stride;
[0015] Step 403, finally based on the Z-axis data, a nonlinear step length model is selected to solve the pedestrian's stride length to achieve pedestrian dead reckoning;
[0016] Step 500, using a particle filtering method, the Wi-Fi positioning result obtained in step 300, the pedestrian dead reckoning positioning result obtained in step 400, and the indoor map information are integrated to obtain an optimal indoor positioning result;
[0017] Step 501, obtaining known indoor map information, abstracting doors and walls in the indoor map information into specific points and lines, and obtaining an indoor map abstraction result;
[0018] Step 502 , using a particle filtering method, the initial position of the pedestrian determined in step 300 , the pedestrian dead reckoning positioning result obtained in step 400 , and the indoor map information are integrated together to obtain an optimal indoor positioning result.
[0019] Furthermore, in step 100, a Wi-Fi fingerprint database is established, including:
[0020] The tested smartphone is used to perform Wi-Fi scanning to collect signal strengths at different locations in the indoor environment, obtain a signal strength set, and establish an offline Wi-Fi fingerprint database.
[0021] Furthermore, in step 200, the pedestrian motion data includes: a roll angle, a pitch angle and a heading angle collected by a gyroscope, a magnetic field direction and a magnetic declination collected by a magnetometer, and a three-axis acceleration of the pedestrian motion collected by an accelerometer.
[0022] Further, step 501 includes steps 5011 to 5013:
[0023] Step 5011, abstracting an indoor map into points and lines, which will be used as indoor map information to be integrated with Wi-Fi positioning results and pedestrian dead reckoning positioning results;
[0024] Step 5012, in the indoor map abstract result, judging whether the particle passes through the wall based on the trajectory of the particle filter, including: B1B2 represents the abstract wall, A1 and A2 represent the position coordinates of the particle before and after iteration, and O is the origin of the coordinates; if the two vectors are not parallel, the straight lines they are on must intersect; if the intersection point is on A1A2 and B1B2, it can be proved that the particle passes through the wall;
[0025] From the vector addition theorem we can get: in, l a With l b is a constant, then we can solve: Get the method to judge whether the particle penetrates the wall: if 0<la <1 and 0 < l b <1, then A1A2 and B1B2 intersect, indicating that the particle passes through the wall; otherwise, the particle does not pass through the wall;
[0026] Step 5013, when it is detected that a particle passes through a wall, the weight of the particle is updated and the weighted average of the new particles is used as the position correction result.
[0027] Further, step 502 includes step 5021 to step 5022:
[0028] Step 5021, the pedestrian dead reckoning positioning result obtained in step 400 can be used as a prediction of the position;
[0029] Step 5022, by taking the initial position of the pedestrian determined in step 300 as the first observation of the position and the map information obtained in step 501 as the second observation, the particle weight of the prediction result in step 5021 is updated, thereby realizing the fusion of the observation and the prediction result, obtaining a more reasonable posterior probability density, and thus obtaining the expected result.
[0030] The present invention provides an indoor positioning method based on multi-source information fusion, which obtains an initial positioning position by integrating pedestrian motion data collected by sensors such as an accelerometer, gyroscope and magnetometer integrated in a smart phone and the strength of a Wi-Fi signal in an indoor environment, and uses a particle filtering method to achieve fusion with map information, optimizes the positioning result solved by actual map information, improves the accuracy of the positioning result, shows good positioning performance, enhances the long-term reliability of the positioning system, provides a cheap, universal and high-precision solution for indoor positioning research, and has very important practical significance for the development of my country's indoor positioning technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A flowchart for implementing the indoor positioning method based on multi-source information fusion provided by the present invention;
[0032] Figure 2 A schematic diagram of the Wi-Fi fingerprint positioning principle in the indoor positioning method based on multi-source information fusion provided by the present invention;
[0033] Figure 3 A schematic diagram of PDR position update in the indoor positioning method based on multi-source information fusion provided by the present invention;
[0034] Figure 4 The indoor map abstraction result in the indoor positioning method based on multi-source information fusion provided by the present invention;
[0035] Figure 5A schematic diagram of particle penetration through walls in the indoor positioning method based on multi-source information fusion provided by the present invention;
[0036] Figure 6 A schematic diagram of the intersection of line segments for detecting whether a particle trajectory passes through a wall in the indoor positioning method based on multi-source information fusion provided by the present invention;
[0037] Figure 7 A schematic diagram of trajectory deviation correction in the indoor positioning method based on multi-source information fusion provided by the present invention;
[0038] Figure 8 A schematic diagram of the particle filtering process in the indoor positioning method based on multi-source information fusion provided by the present invention. DETAILED DESCRIPTION
[0039] In order to make the technical problems solved by the present invention, the technical solutions adopted and the technical effects achieved clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for the convenience of description, only the parts related to the present invention are shown in the accompanying drawings, rather than all the contents.
[0040] like Figure 1 As shown, the indoor positioning method based on multi-source information fusion provided by the embodiment of the present invention includes the following processes:
[0041] Step 100: Establish a Wi-Fi fingerprint database, where the Wi-Fi fingerprint is a set of Wi-Fi signal strengths.
[0042] The tested smartphone is used to perform Wi-Fi scanning to collect signal strengths at different locations in the indoor environment, obtain a signal strength set, and establish an offline Wi-Fi fingerprint database. There are multiple wireless access points (APs) in the indoor environment covered by Wi-Fi signals. The different signal strengths of multiple wireless APs received at a certain point in the indoor environment can constitute a set of Wi-Fi fingerprints.
[0043] This step mainly scans the wireless APs deployed in the current environment, obtains the received signal strength (RSSI) of different wireless APs at the current sampling location, and stores the received signal strength set and location coordinates in the Wi-Fi fingerprint database in a certain format. Figure 2 As shown, a large number of Wi-Fi fingerprints will be collected in the offline collection phase to build a database, where the specific storage format of Wi-Fi fingerprint data is:
[0044] ,
[0045] Among them, (x n ,yn ) is the coordinate of the nth position, mac max_n The MAC address (Media Access Control Address, LAN address) corresponding to the wireless AP that collects the strongest RSSI at the nth sampling position, is the fingerprint corresponding to the nth sampling position, M=8.
[0046] Step 200: collect the user's Wi-Fi signal strength data and pedestrian movement data in real time.
[0047] This step uses the user's smartphone to collect data, and the smartphone integrates a Wi-Fi receiver, accelerometer, gyroscope and magnetometer.
[0048] The pedestrian motion data includes: the roll angle, pitch angle and heading angle collected by the gyroscope, the magnetic field direction and magnetic declination collected by the magnetometer, and the three-axis acceleration of the pedestrian motion collected by the accelerometer.
[0049] Before collecting data, the smartphone's accelerometer, gyroscope, and magnetometer can be calibrated, including:
[0050] The improved six-position method is used to effectively calibrate the accelerometer without the need for professional instruments. Specifically, the positive and negative directions of each sensitive axis of the accelerometer are strictly aligned with the gravity acceleration using a rotation matrix and the acceleration of each axis is measured. Then, the acceleration corresponding to the six measured positions is brought into the accelerometer error model to obtain the corresponding error parameters, thereby achieving the calibration of the accelerometer.
[0051] The gyroscope is calibrated by taking the average value obtained after the smartphone is stationary for a period of time as the gyroscope's zero bias error;
[0052] The magnetometer is calibrated by ellipsoid fitting using the magnetometer error model;
[0053] Step 300, using the user's Wi-Fi signal strength data, determine the pedestrian's initial location and provide positioning results in real time.
[0054] Step 301, the user's Wi-Fi signal strength data is matched with the Wi-Fi fingerprint database online, and a rough location query is first performed to determine the area where the pedestrian is located, and the Wi-Fi fingerprint data collected in the area is obtained;
[0055] Specifically, first obtain the RSSI data corresponding to the current location by scanning the available wireless APs online in real time, and then match the Wi-Fi fingerprint obtained under this condition with the fingerprint in the fingerprint library through a certain matching algorithm, and finally obtain the corresponding location information. The specific implementation method is as follows:
[0056] In the rough query stage, the three strongest RSSI signals collected in real time are used to query the MAC addresses in the fingerprint database in turn, and all fingerprint data that meet the conditions are queried.
[0057] Step 302: Perform precise Wi-Fi fingerprint location matching based on the weighted Euclidean distance WKNN algorithm (Weighted K Nearest Neighborhood) to determine the initial location of the pedestrian. The specific process is as follows:
[0058] The RSSI feature vector of the test point is collected in real time and compared with the fingerprint in the fingerprint database to obtain its Euclidean distance. The smaller the Euclidean distance, the greater the possibility that the test point is closer to the fingerprint position. The inverse of the corresponding Euclidean distance is used as the weight, that is, The final position is estimated as
[0059] At the same time, the algorithm not only considers the distance problem of fingerprint matching, but also considers the confidence of different signal strengths, assuming that the stronger the signal strength, the higher the confidence. The weight based on signal strength can be expressed as The spatial distance between the weighted RSSI feature vector of the point to be measured and the fingerprint in the fingerprint library is Among them, dis n is the Euclidean distance between two eigenvectors, It means that the RSSI value corresponding to the mth AP is collected by the i-th test point at the current moment. Indicates the RSSI value corresponding to the mth AP in the nth fingerprint data.
[0060] The above steps 301-302 are used as the Wi-Fi fingerprint positioning process.
[0061] Step 400 , using the user's pedestrian motion data to perform pedestrian dead reckoning positioning.
[0062] Step 401, based on the user's pedestrian motion data, and using the initial position of the pedestrian determined in step 300 as the initial position for pedestrian position estimation, the accelerometer and the magnetometer are integrated through the Madgwick AHRS algorithm to perform posture calculation, thereby obtaining the pitch angle, roll angle, and heading angle of the mobile phone, and then determining the pedestrian's heading angle.
[0063] Since the heading angle of the pedestrian is the same as the heading angle of the mobile phone, the heading angle of the pedestrian can be determined.
[0064] Step 402, the coordinate system between the mobile phone and the pedestrian is converted by using the pitch angle and roll angle of the mobile phone posture, the pedestrian gait analysis is performed by using the obtained three-axis acceleration of the pedestrian, and the stride detection is performed using the dynamic time warping algorithm based on the Z-axis acceleration peak detection, which effectively filters out abnormal stride actions and obtains the pedestrian stride;
[0065] In this step, due to the randomness of pedestrians holding mobile phones, when obtaining the three-axis acceleration characteristics of pedestrian gait, it is necessary to use a rotation matrix to convert the acceleration in the mobile phone coordinate system to the body coordinate system.
[0066] Step 403, finally based on the Z-axis data, a nonlinear step length model is selected to solve the pedestrian's stride length to achieve pedestrian dead reckoning;
[0067] Nonlinear step size model proposed by Harvey Weinberg:
[0068] Among them, SL is the step length, a max and a min They represent the maximum and minimum values of the pedestrian's longitudinal acceleration respectively, and K represents the constant for unit conversion.
[0069] The above steps 401-403 are used as the pedestrian dead reckoning positioning process.
[0070] like Figure 3 As shown in the figure, the PDR position update principle can be explained as follows: Assume that the position of a person at k steps is P k =(x k ,y k ), then the position P at time k+1 k+1 =(x k+1 ,y k+1 ) can be expressed as Among them, the step length is SL k , the heading angle is ψ k The method described in step 302 is used to solve the collected pedestrian motion data in combination with the algorithm and model, thereby realizing the dead reckoning of the pedestrian.
[0071] Step 500, using the particle filtering method, fuses the Wi-Fi positioning result obtained in step 300, the pedestrian dead reckoning positioning result obtained in step 400, and the indoor map information to obtain the optimal indoor positioning result. Specifically, the process includes the following:
[0072] Step 501, obtain known indoor map information, abstract the doors and walls in the indoor map information into specific points and lines, and obtain an indoor map abstraction result. The specific implementation method is as follows:
[0073] Step 5011, abstracting an indoor map into points and lines, which will be used as indoor map information to be integrated with the Wi-Fi positioning results and the pedestrian dead reckoning positioning results.
[0074] like Figure 4 The figure shows an example of an indoor map abstracted into points and lines.
[0075] Step 5012: In the indoor map abstraction result, determine whether the particle passes through the wall based on the trajectory of the particle filter.
[0076] In the indoor map abstraction result, since the pedestrian positioning result is often different from its actual position, it is common on the map for the positioning point to enter the wall or the trajectory to pass through the wall. The present invention attributes this problem to the problem of trajectory passing through the wall.
[0077] Specifically, refer to Figure 5 , the pedestrian walks in the HI direction. Due to the deviation of the heading, some particles (the particles filled with white in the figure) will fall into the wall after iteration. The existence of these particles is unrealistic because pedestrians cannot enter the wall. If weights are assigned to particles, their weights should be zero.
[0078] The core of the problem of preventing trajectories from passing through walls is how to detect trajectories passing through walls, that is, how to determine whether particles pass through walls in trajectories based on particle filtering. In the steps, the map information is abstracted into specific points and lines. These lines are the contours of actual walls. In addition, the particles corresponding to the previous and next iterations can also be connected as straight lines. In this way, the problem of determining whether a particle passes through a wall can be transformed into the problem of whether the line connecting the particles corresponding to the previous and next steps of the pedestrian intersects with the abstract straight line of the wall. Figure 6 As shown, B1B2 represents an abstract wall, A1 and A2 represent the position coordinates of the particle before and after iteration, and O is the origin of the coordinates. If the two vectors are not parallel, the lines they are on must intersect. If their intersection points are on A1A2 and B1B2, it can be proved that the particle passes through the wall.
[0079] From the vector addition theorem we can get: in, l a With l b is a constant, then we can solve: Get the method to judge whether the particle penetrates the wall: if 0<l a <1 and 0 < l b <1, then A1A2 and B1B2 intersect, that is, the particle passes through the wall; otherwise, the particle does not pass through the wall.
[0080] Step 5013, when it is detected that a particle passes through a wall, the weight of the particle is updated and the weighted average of the new particles is used as the position correction result.
[0081] Specifically, although the corrected position is usually more reasonable, under the condition of continuous heading deviation, even with the map restrictions, large errors may occur at locations such as doors or forks. Therefore, the present invention hopes to make up for the shortcomings of the heading estimation that still exists in practical applications by integrating gyroscopes and magnetometers through information sources such as map information that are not interfered by any external environment. Figure 7 The figure shows a schematic diagram of the offset angle generated by the trajectory corrected by the trajectory through the wall detection. HI is the pedestrian walking direction; P0 to P3 are the trajectories after particle filtering and wall-penetration correction; HJ is the relative direction of the corrected trajectory at three-step distances; Δψ is the relative angle generated before and after the trajectory correction. Among them, Δψ can reflect the heading error to a large extent. The present invention will also re-correct the heading through this angle and under the condition of satisfying the straight-line walking condition. In addition, in order to avoid over-correction, it is also necessary to meet the condition that the number of wall-penetrating particles in the three steps increases successively. The correction formula is ψ k+1 =ψ k +ψ k ' +1 , ψ k ' +1 Should meet Among them, ψ k ′ represents the angle that needs to be corrected in the kth step; ψ k represents the heading angle corrected in the kth step; K is a constant, representing the error coefficient; f line W is the flag for judging straight line walking; k represents the sum of all particle weights corresponding to the kth step. Δψ can be expressed as
[0082] Regarding the detection of straight-line walking, the heading angle can be judged by the variance. Under the condition of straight-line walking, the heading angle is usually relatively stable and the variance is small, while the variance will increase sharply when turning. The present invention will use the variance of 8 degrees 2 As a threshold, if the heading angle variance in the three-step time window is less than 8 degrees 2 , it is determined to be walking in a straight line. So far, the heading angle problem proposed in step 302 has been completely solved.
[0083] Step 502 , using a particle filtering method, the initial position of the pedestrian determined in step 300 , the pedestrian dead reckoning positioning result obtained in step 400 , and the indoor map information are integrated together to obtain an optimal indoor positioning result.
[0084] Specifically, the particle filter represents the probability through a set of particles, each particle represents the possible position and direction of the pedestrian, and each particle contains a weight value, which represents the correct probability based on all the information so far; for the problem that the positioning results in the map are usually difficult to express specifically with a specific probability distribution, the particle filter solves this problem by averaging the scattered particles through Monte Carlo sampling. Figure 8 , the specific implementation method is as follows:
[0085] In step 5021, the pedestrian dead reckoning positioning result obtained in step 400 can be used as a prediction of the position.
[0086] At the kth step, it can be expressed as P k =(x k ,y k ), where x k ,y k Indicates the coordinates of the location point in the map, in SL k , k Respectively represent the step length and heading angle at the kth step. Therefore, the state transfer equation of pedestrian dead reckoning based on particle filtering can be expressed as:
[0087]
[0088] in, represents the i-th particle at the k-th step, i∈(1,N), N is the total number of particles; They represent the errors caused by the i-th particle in the k-th step in the X-axis and Y-axis directions respectively.
[0089] After the state transition, P k The probability density function of can be expressed as:
[0090]
[0091] At this time, compared with the k-1 step, the particle position changes in the k step, but the weight remains unchanged.
[0092] Step 5022, by taking the initial position of the pedestrian determined in step 300 as the first observation of the position and the map information obtained in step 501 as the second observation, the particle weight of the prediction result in step 5021 is updated, thereby realizing the fusion of the observation and the prediction result, obtaining a more reasonable posterior probability density, and thus obtaining the expected result.
[0093] The positioning result of Wi-Fi fingerprint positioning in the kth step can be expressed as P W,k =(x W,k ,y W,k ), its error QW It obeys a two-dimensional normal distribution with a mean of zero, which can be obtained by f W (σ) represents the probability density of map information as observation quantity, which can be expressed by f D (P) indicates that the final posterior probability density function after fusion is
[0094]
[0095] By weighted averaging of particles under posterior probability, the optimal fusion result can be obtained, thus achieving more accurate positioning.
[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that modifying the technical solutions described in the aforementioned embodiments, or replacing some or all of the technical features therein by equivalents, does not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An indoor positioning method based on multi-source information fusion, It is characterized in that The process includes: Step 100, establishing a Wi-Fi fingerprint database, wherein the Wi-Fi fingerprint is a set of Wi-Fi signal strengths; Step 200, collecting the user's Wi-Fi signal strength data and pedestrian movement data in real time; Step 300, using the user's Wi-Fi signal strength data, determine the pedestrian's initial location and provide positioning results in real time; Step 301, the user's Wi-Fi signal strength data is matched with the Wi-Fi fingerprint database online, and a rough location query is first performed to determine the area where the pedestrian is located, and the Wi-Fi fingerprint data collected in the area is obtained; Step 302, performing accurate Wi-Fi fingerprint location matching based on the WKNN algorithm of weighted Euclidean distance, and then determining the initial location of the pedestrian; Step 400, using the pedestrian motion data of the user to perform pedestrian dead reckoning positioning; Step 401, based on the pedestrian motion data of the user, the initial position of the pedestrian determined in step 300 is used as the initial position of the pedestrian dead reckoning, and the accelerometer and the magnetometer are integrated through the Madgwick AHRS algorithm to perform posture calculation, thereby obtaining the pitch angle, roll angle, and heading angle of the mobile phone, and then determining the pedestrian heading angle; Step 402, the coordinate system between the mobile phone and the pedestrian is converted by using the pitch angle and roll angle of the mobile phone posture, the pedestrian gait analysis is performed by using the obtained three-axis acceleration of the pedestrian, and the stride detection is performed using the dynamic time warping algorithm based on the Z-axis acceleration peak detection, which effectively filters out abnormal stride actions and obtains the pedestrian stride; Step 403, finally based on the Z-axis data, a nonlinear step length model is selected to solve the pedestrian's stride length to achieve pedestrian dead reckoning; Step 500, using a particle filtering method, the Wi-Fi positioning result obtained in step 300, the pedestrian dead reckoning positioning result obtained in step 400, and the indoor map information are integrated to obtain an optimal indoor positioning result; Step 501, obtaining known indoor map information, abstracting doors and walls in the indoor map information into specific points and lines, and obtaining an indoor map abstraction result; Step 502 , using a particle filtering method, the initial position of the pedestrian determined in step 300 , the pedestrian dead reckoning positioning result obtained in step 400 , and the indoor map information are integrated together to obtain an optimal indoor positioning result.
2. The indoor positioning method based on multi-source information fusion according to claim 1, It is characterized in that In step 100, a Wi-Fi fingerprint database is established, including: The tested smartphone is used to perform Wi-Fi scanning to collect signal strengths at different locations in the indoor environment, obtain a signal strength set, and establish an offline Wi-Fi fingerprint database.
3. The indoor positioning method based on multi-source information fusion according to claim 1, It is characterized in that In step 200, the pedestrian motion data includes: roll angle, pitch angle and heading angle collected by a gyroscope, magnetic field direction and magnetic declination collected by a magnetometer, and three-axis acceleration of pedestrian motion collected by an accelerometer.
4. The indoor positioning method based on multi-source information fusion according to claim 1, It is characterized in that Step 501, including steps 5011 to 5013: Step 5011, abstracting an indoor map into points and lines, which will be used as indoor map information to be integrated with Wi-Fi positioning results and pedestrian dead reckoning positioning results; Step 5012, in the indoor map abstraction result, judging whether the particle passes through the wall based on the trajectory of the particle filter, including: 1 B 2 Represents an abstract wall, A 1 , A 2 represents the position coordinates of the particle before and after iteration, O is the origin of the coordinates; if the two vectors are not parallel, the lines they are on must intersect; if their intersection point is at A 1 A 2 and B 1 B 2 On, it can be proved that the particle passes through the wall; From the vector addition theorem we can get: in, l a With l b is a constant, then we can solve: Get the method to judge whether the particle penetrates the wall: if 0<l a <1 and 0 < l b <1, then we can get A 1 A 2 and B 1 B 2 If they intersect, it means the particle passes through the wall; otherwise, the particle does not pass through the wall; Step 5013, when it is detected that a particle passes through a wall, the weight of the particle is updated and the weighted average of the new particles is used as the position correction result.
5. The indoor positioning method based on multi-source information fusion according to claim 4, It is characterized in that Step 502, including step 5021 to step 5022: Step 5021, the pedestrian dead reckoning positioning result obtained in step 400 can be used as a prediction of the position; Step 5022, by taking the initial position of the pedestrian determined in step 300 as the first observation of the position and the map information obtained in step 501 as the second observation, the particle weight of the prediction result in step 5021 is updated, thereby realizing the fusion of the observation and the prediction result, obtaining a more reasonable posterior probability density, and thus obtaining the expected result.
