CN116033345A - Indoor abnormal signal high-precision positioning method, system and device - Google Patents

Indoor abnormal signal high-precision positioning method, system and device Download PDF

Info

Publication number
CN116033345A
CN116033345A CN202211664148.6A CN202211664148A CN116033345A CN 116033345 A CN116033345 A CN 116033345A CN 202211664148 A CN202211664148 A CN 202211664148A CN 116033345 A CN116033345 A CN 116033345A
Authority
CN
China
Prior art keywords
signal
grid
region
positioning
acquired
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211664148.6A
Other languages
Chinese (zh)
Inventor
王超
罗圣美
孙晓舟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Zhongfu Information Technology Co Ltd
Original Assignee
Nanjing Zhongfu Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Zhongfu Information Technology Co Ltd filed Critical Nanjing Zhongfu Information Technology Co Ltd
Priority to CN202211664148.6A priority Critical patent/CN116033345A/en
Publication of CN116033345A publication Critical patent/CN116033345A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

The invention provides a high-precision positioning method, system and device for indoor abnormal signals, and belongs to the technical field of wireless signal positioning. The method comprises the following steps: the signal receiver is arranged in the space to be positioned, and the area and the grid division are carried out; setting fingerprint acquisition points, and acquiring signal intensity data of abnormal signals sent by the fingerprint acquisition points; preprocessing the acquired signal intensity data to generate corresponding acquired fingerprints; training a region positioning model and a grid positioning model by using the collected fingerprints; and acquiring signal intensity data acquired by the signal receiver in real time, predicting the position of a region to which the abnormal signal belongs by using a region positioning model, predicting the grid position of the abnormal signal by using a grid positioning model according to the predicted region position, and generating coordinates of the abnormal signal. The invention uses machine learning algorithm to construct fingerprint map database and algorithm model, and can inquire the actual position of the target signal by comparing the nonlinear mapping relation between the fingerprint and the coordinates.

Description

Indoor abnormal signal high-precision positioning method, system and device
Technical Field
The invention relates to the technical field of wireless signal positioning, in particular to a method, a system and a device for positioning indoor abnormal signals with high precision.
Background
Along with the vigorous development of informatization technology, the information security problem is more serious, and in order to ensure that the indoor information security of a secret-related place is not threatened, the real-time monitoring and the accurate positioning of abnormal suspicious signals are required to be enhanced. Currently, the commonly used electromagnetic signal indoor positioning technology mainly comprises a signal arrival time method TOA (Time of Arrival), a signal arrival time difference method TDOA (Time Difference of Arrival), a signal arrival angle method AOA (Angle of Arrival), a signal receiving intensity method RSS (Received Strength of Signal), an RSS fingerprint positioning method combined with artificial intelligence and the like.
The TOA principle is to obtain the position of the to-be-positioned point by utilizing the time of the terminal sending message reaching the receiving node, and the time of the receiving node and the terminal are required to be strictly synchronized when the TOA algorithm is used for indoor positioning, otherwise, larger time error occurs, and the positioning precision is greatly influenced.
TDOA is a further improvement of the TOA positioning method, and the principle of the positioning method is that the time difference of the terminal sending signal reaching a plurality of receiving nodes is utilized to obtain the position of the to-be-positioned point, so that the time synchronization requirement of the receiving nodes and the terminal is reduced. Because the distances from each receiving node to the terminal are different, the time for the signal to reach the node is different, and the difference of distances between 2 or more receiving nodes and the terminal can be calculated by using the TDOA value, so that the position of the to-be-positioned point can be calculated. When the algorithm is used for indoor positioning, the response delay of the system is required to be small, a time error of 10ns generates a distance error of about 3m, and the algorithm is not applicable to smaller indoor environments.
AOA is to acquire distance by adding an antenna array or measuring the transmission angle of a wireless signal. According to the positioning method, a receiving node is used for transmitting wireless signals, and a receiving end can obtain the transmitting angle of the signals through an antenna array, so that the position of a to-be-positioned point is calculated. The positioning method has higher positioning precision in a non-interference positioning environment, but has high deployment cost in an indoor environment.
The traditional RSS collects the intensity of a received signal through a plurality of nodes, converts the power value of loss into distance by using an empirical or theoretical model of radio signal propagation, and estimates the position coordinates. Since most network devices now have the function of acquiring the received signal strength value, no additional hardware is required in the implementation process. However, the indoor environment is complex, the obstruction of the obstacle to the signal is serious, the stability of the signal received by the receiving node is poor, the channel model is correspondingly changed along with the change of the environment, and the accuracy of the finally estimated distance is reduced, so that the positioning accuracy of the method is not high under the condition of complex environment.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention aims to provide a method, a system and a device for positioning an indoor abnormal signal with high precision, wherein a fingerprint map database and an algorithm model are constructed by using a machine learning algorithm, and the actual position of a target signal can be inquired and obtained by comparing the nonlinear mapping relation between fingerprints and coordinates.
The invention aims to achieve the aim, and the aim is achieved by the following technical scheme:
a high-precision positioning method for indoor abnormal signals comprises the following steps:
s1: a signal receiver is arranged in the space to be positioned, the space to be positioned is divided into areas and grids, fingerprint acquisition points are arranged, and signal intensity data of abnormal signals sent by the fingerprint acquisition points are acquired;
s2: preprocessing the acquired signal intensity data to generate corresponding acquired fingerprints;
s3: training a region positioning model based on a naive Bayesian algorithm by using acquired fingerprints;
s4: training a grid positioning model based on a K-nearest neighbor algorithm by using collected fingerprints;
s5: and acquiring signal intensity data acquired by the signal receiver in real time, predicting the position of a region to which the abnormal signal belongs by using a region positioning model, predicting the grid position of the abnormal signal by using a grid positioning model according to the predicted region position, and generating coordinates of the abnormal signal.
Further, step S1 includes:
within a space to be located
Figure 502460DEST_PATH_IMAGE001
The signal receivers divide the space to be positioned into a plurality of areas according to the effective receiving range of the signal receivers, each area is divided into a plurality of grids according to a square block of 1 meter multiplied by 1 meter, and the center of each grid is the fingerprint acquisition point.
Further, step S2 includes:
let it be assumed that co-partition
Figure 856081DEST_PATH_IMAGE002
Each region is provided with,
Figure 123114DEST_PATH_IMAGE003
Grid, signal source is at the first
Figure 728539DEST_PATH_IMAGE004
The grid sends out signals, the first
Figure 928576DEST_PATH_IMAGE005
The signal strength sequences received by the signal receivers are:
Figure 921940DEST_PATH_IMAGE006
wherein ,
Figure 332062DEST_PATH_IMAGE007
representation of
Figure 334653DEST_PATH_IMAGE008
At the first time
Figure 389196DEST_PATH_IMAGE004
Signal intensity collected at each grid;
by passing throughThe following pair of formulas
Figure 959986DEST_PATH_IMAGE009
Normalizing and averaging to obtain:
Figure 201612DEST_PATH_IMAGE010
Figure 273473DEST_PATH_IMAGE011
namely the first
Figure 651365DEST_PATH_IMAGE012
Fingerprints at the grids.
Further, step S3 includes:
binding the collected fingerprint with the region id of the collected fingerprint to generate a data set, and learning joint probability distribution through the data set according to a naive Bayes algorithm
Figure 406438DEST_PATH_IMAGE013
The joint probability distribution is converted into the product of the prior probability distribution and the conditional probability distribution according to the Bayesian theorem using the following formula:
Figure 400938DEST_PATH_IMAGE014
wherein the area
Figure 745332DEST_PATH_IMAGE002
Prior probability distribution for categories
Figure 384255DEST_PATH_IMAGE015
By the formula
Figure 687060DEST_PATH_IMAGE016
Counting how many samples are available under each category;
because the naive bayes algorithm assumes that all features are condition independent, the condition independent assumption is:
Figure 637699DEST_PATH_IMAGE017
using maximum likelihood estimation, one can obtain:
Figure 175996DEST_PATH_IMAGE018
i.e. given zone category
Figure 59639DEST_PATH_IMAGE019
Under the condition of the first
Figure 2187DEST_PATH_IMAGE004
The signal intensity received by each probe is a specific value
Figure 846646DEST_PATH_IMAGE020
The probability of (2) being equal to the class
Figure 64001DEST_PATH_IMAGE019
And the first
Figure 270991DEST_PATH_IMAGE004
The signal intensity received by each probe is
Figure 541698DEST_PATH_IMAGE020
Divided by the number of samples of (2)
Figure 466929DEST_PATH_IMAGE019
All sample numbers;
obtaining
Figure 222395DEST_PATH_IMAGE015
And (3) with
Figure 955996DEST_PATH_IMAGE021
Then, training the regional classification model based on the naive Bayesian algorithm is completed.
Further, step S4 includes:
fingerprint collection and its belongingsThe method comprises the steps of binding grid ids to generate a data set, and dividing the data set into a training set and a testing set; setting the K value selection range to
Figure 974767DEST_PATH_IMAGE022
Distance calculation method
Figure 918453DEST_PATH_IMAGE023
, wherein
Figure 946451DEST_PATH_IMAGE024
When the method is used, the Euclidean distance is adopted;
Figure 783826DEST_PATH_IMAGE025
when the Manhattan distance is adopted;
assume that the training set is:
Figure 770237DEST_PATH_IMAGE026
the test set is:
Figure 404481DEST_PATH_IMAGE027
wherein ,
Figure 377116DEST_PATH_IMAGE028
representing the received signal strength of the K probes,
Figure 678784DEST_PATH_IMAGE029
representing a grid id;
combining different K values with P values by means of exhaustive traversal, traversing all of the test sets
Figure 836096DEST_PATH_IMAGE030
Will be
Figure 111963DEST_PATH_IMAGE030
As an input example, find K instances in the training dataset that are nearest to the instance, subject to multiple compliance by a fewThe number principle is that the class of the instance is the class which is the majority in the K instances;
and calculating the classification accuracy of the test set, and obtaining a K value and a P value when the classification accuracy is highest, wherein grid positioning model training based on a K-nearest neighbor algorithm is completed.
Further, step S5 includes:
the signal strengths of the 5 moments received by the K signal receivers are:
Figure 481765DEST_PATH_IMAGE031
for a pair of
Figure 169098DEST_PATH_IMAGE032
Normalization and averaging are carried out to obtain:
Figure 372677DEST_PATH_IMAGE033
will be
Figure 981513DEST_PATH_IMAGE034
Inputting the posterior probability into a region classification model based on a naive Bayes algorithm, and finding the posterior probability by using a naive Bayes formula
Figure 420585DEST_PATH_IMAGE035
Maximum category of (2)
Figure 87058DEST_PATH_IMAGE019
As an output
Figure 55014DEST_PATH_IMAGE036
I.e.
Figure 682305DEST_PATH_IMAGE037
wherein ,
Figure 393909DEST_PATH_IMAGE036
i.e. area id, according to which selection is madeCorresponding grid positioning model based on K-nearest neighbor algorithm, loading parameters K and P, and determining
Figure 665621DEST_PATH_IMAGE034
The signal is input into a grid positioning model as an example of the signal, a corresponding grid id is output, and the coordinates of the grid corresponding to the grid id are the positions of the signal sources.
Correspondingly, the invention also discloses a high-precision positioning system for the indoor abnormal signal, which comprises the following steps:
the preparation unit is used for arranging a signal receiver in the space to be positioned, dividing the space to be positioned into areas and grids, setting fingerprint acquisition points, and acquiring signal intensity data of abnormal signals sent by the fingerprint acquisition points;
the data processing unit is used for preprocessing the acquired signal intensity data and generating corresponding acquired fingerprints;
a first model training unit for training a region localization model based on a naive Bayesian algorithm by using the acquired fingerprint;
the second model training unit is used for training a grid positioning model based on a K-nearest neighbor algorithm by using the acquired fingerprint;
the positioning unit is used for acquiring the signal intensity data acquired by the signal receiver in real time, predicting the position of the area to which the abnormal signal belongs by using the area positioning model, predicting the grid position of the abnormal signal by using the grid positioning model according to the predicted position of the area, and generating the coordinates of the abnormal signal.
Correspondingly, the invention also discloses a device for positioning the indoor abnormal signal with high precision, which comprises the following steps:
a memory for storing a computer program;
a processor for implementing the steps of the indoor abnormal signal high-precision positioning method according to any one of the above when executing the computer program.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a high-precision positioning method, a system and a device for indoor abnormal signals, which are characterized in that a fingerprint map database and an algorithm model are constructed by using a machine learning algorithm, and the actual position of a target signal can be inquired and obtained by comparing the nonlinear mapping relation between fingerprints and coordinates, so that the defect that the traditional ranging and positioning algorithm is influenced by complex environments such as multipath effect and the like is overcome. The invention has low complexity, strong robustness and high precision, and is an important development direction of indoor positioning technology.
The invention adopts a two-step method to realize the high-precision positioning of the abnormal signal. Firstly, training a region positioning model through a naive Bayesian algorithm, positioning the region of an abnormal signal, and determining the region of the signal; and training a grid positioning model through a KNN algorithm, performing grid positioning on the abnormal signal, and determining grids to which the signal belongs, wherein the coordinates of the grid center point are the coordinates of the abnormal signal.
It can be seen that the present invention has outstanding substantial features and significant advances over the prior art, as well as the benefits of its implementation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method of an embodiment of the present invention.
Fig. 2 is a regional grid partition diagram of an embodiment of the present invention.
Fig. 3 is a diagram of a region-specific confusion matrix according to an embodiment of the present invention.
Fig. 4 is a diagram of a region 1 grid positioning confusion matrix in accordance with embodiments of the invention.
Fig. 5 is a diagram of a region 2 grid positioning confusion matrix in accordance with embodiments of the invention.
Fig. 6 is a diagram of a region 3 grid positioning confusion matrix in accordance with embodiments of the invention.
Fig. 7 is a diagram of a region 4 grid positioning confusion matrix in accordance with embodiments of the invention.
Fig. 8 is a system configuration diagram of an embodiment of the present invention.
Detailed Description
The following describes specific embodiments of the present invention with reference to the drawings.
The high-precision positioning method for the indoor abnormal signals shown in fig. 1 comprises the following steps:
s1: a signal receiver is deployed in the space to be positioned, the space to be positioned is divided into areas and grids, fingerprint acquisition points are arranged, and signal intensity data of abnormal signals sent by the fingerprint acquisition points are acquired.
Specifically, deployment within the space to be localized
Figure 335637DEST_PATH_IMAGE001
The signal receivers divide the space to be positioned into a plurality of areas according to the effective receiving range of the signal receivers, each area is divided into a plurality of grids according to a square block of 1 meter multiplied by 1 meter, and the center of each grid is the fingerprint acquisition point.
S2: preprocessing the acquired signal intensity data to generate corresponding acquired fingerprints.
By way of example, assume that a co-partition
Figure 919065DEST_PATH_IMAGE002
Each region is provided with,
Figure 591617DEST_PATH_IMAGE003
Grid, signal source is at the first
Figure 311311DEST_PATH_IMAGE004
The grid sends out signals, the first
Figure 152228DEST_PATH_IMAGE005
The signal strength (Received Signal Strength Indication, RSSI) sequences received by the signal receivers are:
Figure 629477DEST_PATH_IMAGE038
wherein ,
Figure 682884DEST_PATH_IMAGE007
representation of
Figure 53822DEST_PATH_IMAGE008
At the first time
Figure 534482DEST_PATH_IMAGE004
Signal strength collected at each grid. For a pair of
Figure 748295DEST_PATH_IMAGE009
Normalizing and averaging to obtain:
Figure 870972DEST_PATH_IMAGE010
Figure 971783DEST_PATH_IMAGE011
namely the first
Figure 888923DEST_PATH_IMAGE004
Fingerprints at the grids.
S3: a region localization model based on a naive bayes algorithm is trained using the captured fingerprints.
By way of example, a naive Bayesian algorithm learns joint probability distributions over a dataset by binding a captured fingerprint to its region id
Figure 199819DEST_PATH_IMAGE013
The joint probability can be converted into the product of the prior probability distribution and the conditional probability distribution by the bayesian theorem:
Figure 749356DEST_PATH_IMAGE014
wherein the area
Figure 94886DEST_PATH_IMAGE002
Prior probability distribution for categories
Figure 917349DEST_PATH_IMAGE015
By counting how many samples are under each category, namely:
Figure 590907DEST_PATH_IMAGE016
because the naive bayes algorithm assumes that all features are conditional independent. The condition independent assumption is:
Figure 320965DEST_PATH_IMAGE017
using maximum likelihood estimation, one can obtain:
Figure 989844DEST_PATH_IMAGE018
i.e. given zone category
Figure 639000DEST_PATH_IMAGE019
Under the condition of the first
Figure 393329DEST_PATH_IMAGE004
The signal intensity received by each probe is a specific value
Figure 661500DEST_PATH_IMAGE020
The probability of (2) being equal to the class
Figure 591410DEST_PATH_IMAGE019
And the first
Figure 21254DEST_PATH_IMAGE004
The signal intensity received by each probe is
Figure 794038DEST_PATH_IMAGE020
Divided by the number of samples of (2)
Figure 69161DEST_PATH_IMAGE019
All sample numbers. Obtaining
Figure 869889DEST_PATH_IMAGE015
And (3) with
Figure 736214DEST_PATH_IMAGE021
Then, the training of the regional positioning model based on the naive Bayesian algorithm is completed.
S4: a grid positioning model based on a K-nearest neighbor algorithm is trained by using acquired fingerprints.
As an example, a fingerprint collection is bound to its belonging grid id to generate a dataset, which is divided into a training set and a test set. The K-nearest neighbor algorithm does not have a training process, but the K value and the distance calculation method are two basic elements of the K-nearest neighbor algorithm, and are closely related to the classification performance of the K-nearest neighbor algorithm. The method aims at improving the classification accuracy of the K-nearest neighbor algorithm by training different K values and distance calculation methods.
First, the K value selection range is set to
Figure 465136DEST_PATH_IMAGE022
. Distance calculating method
Figure 950475DEST_PATH_IMAGE023
, wherein
Figure 979611DEST_PATH_IMAGE024
When the method is used, the Euclidean distance is adopted;
Figure 407050DEST_PATH_IMAGE025
when using manhattan distance.
Assume that the training set is:
Figure 357688DEST_PATH_IMAGE026
the test set is:
Figure 771352DEST_PATH_IMAGE027
Figure 123836DEST_PATH_IMAGE028
representing the received signal strength of the K probes,
Figure 472909DEST_PATH_IMAGE029
representing the mesh id.
Combining different K values with P values by means of exhaustive traversal, traversing all of the test sets
Figure 442002DEST_PATH_IMAGE030
Will be
Figure 862619DEST_PATH_IMAGE030
As an input instance, K instances nearest to the instance are found in the training dataset, the class of which is the class of the majority of the K instances according to the minority compliance majority principle.
And calculating the classification accuracy of the test set, and obtaining a K value and a P value when the classification accuracy is highest, wherein grid positioning model training based on a K-nearest neighbor algorithm is completed.
S5: and acquiring signal intensity data acquired by the signal receiver in real time, predicting the position of a region to which the abnormal signal belongs by using a region positioning model, predicting the grid position of the abnormal signal by using a grid positioning model according to the predicted region position, and generating coordinates of the abnormal signal.
As an example, the signal strengths of the 5 moments received by the K signal receivers are:
Figure 501235DEST_PATH_IMAGE031
for a pair of
Figure 145843DEST_PATH_IMAGE032
Normalization and averaging are carried out to obtain:
Figure 71074DEST_PATH_IMAGE033
will be
Figure 701906DEST_PATH_IMAGE034
Inputting into a naive Bayes model, and finding posterior probability by using a naive Bayes formula
Figure 294562DEST_PATH_IMAGE035
Maximum category of (2)
Figure 578912DEST_PATH_IMAGE019
As an output
Figure 647231DEST_PATH_IMAGE036
I.e.
Figure 206389DEST_PATH_IMAGE037
Figure 387971DEST_PATH_IMAGE036
Namely, the region id is selected according to the region id, corresponding grid models are selected, parameters K and P are loaded, and the grid models are obtained
Figure 984169DEST_PATH_IMAGE034
The signal is input into a grid model as an example, a corresponding grid id is output, and the coordinates of the grid are the positions of the signal sources.
Based on the high-precision positioning method for the indoor abnormal signals, in order to demonstrate the positioning precision of the method, the following experiment is carried out:
an office floor is selected as a region to be positioned, the region to be positioned is divided into four small regions, namely a region 1, a region 2, a region 3 and a region 4, the region 1 is divided into 6 grids, the region 2 is divided into 4 grids, the region 3 is divided into 6 grids, and the region 4 is divided into 5 grids. The specific meshing is shown in fig. 2.
Wherein, dark dot indicates signal receiver position, and this experiment adopts three signal receivers. The method of the invention locates signals in two steps, and the classification accuracy of the regional locating model is shown in figure 3.
In the figure, numbers in the horizontal and vertical axes corresponding to the grid indicate the number of correctly classified data, and if 36 indicates the number of correctly classified data in the region 1 is 36. The classification accuracy of each grid positioning model is shown in fig. 4-7.
Through the experiment, the grid positioning accuracy can reach 1.37m after the indoor abnormal signal high-accuracy positioning method provided by the invention is utilized. Therefore, the method and the device position the region to which the signal belongs first and then position the grid to which the signal belongs through a two-step method, so that the positioning error is effectively reduced.
Correspondingly, as shown in fig. 8, the invention also discloses a high-precision positioning system for indoor abnormal signals, which comprises: the system comprises a preparation unit, a data processing unit, a first model training unit, a second model training unit and a positioning unit.
The preparation unit is used for arranging the signal receiver in the space to be positioned, dividing the area and the grid of the space to be positioned, setting fingerprint acquisition points, and acquiring signal intensity data of abnormal signals sent by the fingerprint acquisition points.
And the data processing unit is used for preprocessing the acquired signal intensity data and generating corresponding acquired fingerprints.
And the first model training unit is used for training the region positioning model based on the naive Bayesian algorithm by using the acquired fingerprints.
And the second model training unit is used for training a grid positioning model based on a K-nearest neighbor algorithm by using the acquired fingerprint.
The positioning unit is used for acquiring the signal intensity data acquired by the signal receiver in real time, predicting the position of the area to which the abnormal signal belongs by using the area positioning model, predicting the grid position of the abnormal signal by using the grid positioning model according to the predicted position of the area, and generating the coordinates of the abnormal signal.
The embodiment provides a high-precision positioning system for indoor abnormal signals, which can construct a fingerprint map database and an algorithm model by using a machine learning algorithm, and can inquire the actual position of a target signal by comparing nonlinear mapping relations between fingerprints and coordinates, thereby solving the defect that the traditional ranging positioning algorithm is influenced by complex environments such as multipath effect and the like.
Correspondingly, the invention also discloses a high-precision positioning device for the indoor abnormal signals, which comprises a processor and a memory; the processor realizes the following steps when executing the indoor abnormal signal high-precision positioning program stored in the memory:
1. a signal receiver is deployed in the space to be positioned, the space to be positioned is divided into areas and grids, fingerprint acquisition points are arranged, and signal intensity data of abnormal signals sent by the fingerprint acquisition points are acquired.
2. Preprocessing the acquired signal intensity data to generate corresponding acquired fingerprints.
3. A region localization model based on a naive bayes algorithm is trained using the captured fingerprints.
4. A grid positioning model based on a K-nearest neighbor algorithm is trained by using acquired fingerprints.
5. And acquiring signal intensity data acquired by the signal receiver in real time, predicting the position of a region to which the abnormal signal belongs by using a region positioning model, predicting the grid position of the abnormal signal by using a grid positioning model according to the predicted region position, and generating coordinates of the abnormal signal.
Further, the high-precision positioning device for indoor abnormal signals in this embodiment may further include:
the input interface is used for acquiring an indoor abnormal signal high-precision positioning program imported from the outside, storing the acquired indoor abnormal signal high-precision positioning program into the memory, and acquiring various instructions and parameters transmitted by the external terminal equipment and transmitting the various instructions and parameters into the processor so that the processor can develop corresponding processing by utilizing the various instructions and parameters. In this embodiment, the input interface may specifically include, but is not limited to, a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, and the like.
And the output interface is used for outputting various data generated by the processor to the terminal equipment connected with the output interface so that other terminal equipment connected with the output interface can acquire various data generated by the processor. In this embodiment, the output interface may specifically include, but is not limited to, a USB interface, a serial interface, and the like.
And the communication unit is used for establishing remote communication connection between the indoor abnormal signal high-precision positioning device and the external server so that the indoor abnormal signal high-precision positioning device can mount the image file to the external server. In this embodiment, the communication unit may specifically include, but is not limited to, a remote communication unit based on a wireless communication technology or a wired communication technology.
And the keyboard is used for acquiring various parameter data or instructions input by a user by knocking the key cap in real time.
And the display is used for running the related information of the short-circuit positioning process of the power supply line of the server to display in real time.
A mouse may be used to assist a user in inputting data and to simplify user operations.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium such as a U-disc, a mobile hard disc, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc. various media capable of storing program codes, including several instructions for causing a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method described in the embodiments of the present invention. The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the terminal embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description in the method embodiment for relevant points.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems, and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each module may exist alone physically, or two or more modules may be integrated in one unit.
Similarly, each processing unit in the embodiments of the present invention may be integrated in one functional module, or each processing unit may exist physically, or two or more processing units may be integrated in one functional module.
The invention will be further described with reference to the accompanying drawings and specific embodiments. It is to be understood that these examples are illustrative of the present invention and are not intended to limit the scope of the present invention. Further, it will be understood that various changes or modifications may be made by those skilled in the art after reading the teachings of the invention, and such equivalents are intended to fall within the scope of the invention as defined herein.

Claims (8)

1. The high-precision positioning method for the indoor abnormal signals is characterized by comprising the following steps of:
s1: a signal receiver is arranged in the space to be positioned, the space to be positioned is divided into areas and grids, fingerprint acquisition points are arranged, and signal intensity data of abnormal signals sent by the fingerprint acquisition points are acquired;
s2: preprocessing the acquired signal intensity data to generate corresponding acquired fingerprints;
s3: training a region positioning model based on a naive Bayesian algorithm by using acquired fingerprints;
s4: training a grid positioning model based on a K-nearest neighbor algorithm by using collected fingerprints;
s5: and acquiring signal intensity data acquired by the signal receiver in real time, predicting the position of a region to which the abnormal signal belongs by using a region positioning model, predicting the grid position of the abnormal signal by using a grid positioning model according to the predicted region position, and generating coordinates of the abnormal signal.
2. The method for locating an indoor abnormal signal with high accuracy according to claim 1, wherein the step S1 comprises:
within a space to be located
Figure 164975DEST_PATH_IMAGE001
The signal receivers divide the space to be positioned into a plurality of areas according to the effective receiving range of the signal receivers, each area is divided into a plurality of grids according to a square block of 1 meter multiplied by 1 meter, and the center of each grid is the fingerprint acquisition point.
3. The method for locating an indoor abnormal signal with high accuracy according to claim 2, wherein the step S2 comprises:
let it be assumed that co-partition
Figure 69477DEST_PATH_IMAGE002
Each region is provided with,
Figure 575545DEST_PATH_IMAGE003
Grid, signal source is at the first
Figure 322921DEST_PATH_IMAGE004
The grid sends out signals, the first
Figure 861219DEST_PATH_IMAGE005
The signal strength sequences received by the signal receivers are:
Figure 213703DEST_PATH_IMAGE006
wherein ,
Figure 421830DEST_PATH_IMAGE007
representation of
Figure 859765DEST_PATH_IMAGE008
At the first time
Figure 952486DEST_PATH_IMAGE004
Signal intensity collected at each grid;
by the following formula pair
Figure 690635DEST_PATH_IMAGE009
Normalizing and averaging to obtain:
Figure 970130DEST_PATH_IMAGE010
Figure 895361DEST_PATH_IMAGE011
namely the first
Figure 650827DEST_PATH_IMAGE004
Fingerprints at the grids.
4. The method for locating an indoor abnormal signal with high accuracy according to claim 3, wherein the step S3 comprises:
binding the collected fingerprint with the region id of the collected fingerprint to generate a data set, and learning joint probability distribution through the data set according to a naive Bayes algorithm
Figure 977904DEST_PATH_IMAGE012
The joint probability distribution is converted into the product of the prior probability distribution and the conditional probability distribution according to the Bayesian theorem using the following formula:
Figure 668779DEST_PATH_IMAGE013
wherein the area
Figure 815727DEST_PATH_IMAGE002
Prior probability distribution for categories
Figure 374884DEST_PATH_IMAGE014
By the formula
Figure 212259DEST_PATH_IMAGE015
Counting how many samples are available under each category;
because the naive bayes algorithm assumes that all features are condition independent, the condition independent assumption is:
Figure 667511DEST_PATH_IMAGE016
using maximum likelihood estimation, one can obtain:
Figure 98492DEST_PATH_IMAGE017
i.e. given zone category
Figure 71127DEST_PATH_IMAGE018
Under the condition of the first
Figure 107217DEST_PATH_IMAGE004
The signal intensity received by each probe is a specific value
Figure 264528DEST_PATH_IMAGE019
The probability of (2) being equal to the class
Figure 386068DEST_PATH_IMAGE018
And the first
Figure 913127DEST_PATH_IMAGE004
The signal intensity received by each probe is
Figure 69302DEST_PATH_IMAGE019
Divided by the number of samples of (2)
Figure 397515DEST_PATH_IMAGE018
All sample numbers;
obtaining
Figure 412875DEST_PATH_IMAGE014
And (3) with
Figure 320788DEST_PATH_IMAGE020
Then, training the regional classification model based on the naive Bayesian algorithm is completed.
5. The method for locating an indoor abnormal signal with high accuracy according to claim 4, wherein said step S4 comprises:
binding the collected fingerprint with the grid id of the fingerprint to generate a data set, and dividing the data set into a training set and a testing set; setting the K value selection range to
Figure 862628DEST_PATH_IMAGE021
Distance calculation method
Figure 486376DEST_PATH_IMAGE022
, wherein
Figure 582508DEST_PATH_IMAGE023
When the method is used, the Euclidean distance is adopted;
Figure 825271DEST_PATH_IMAGE024
when the Manhattan distance is adopted;
assume that the training set is:
Figure 362563DEST_PATH_IMAGE025
the test set is:
Figure 501420DEST_PATH_IMAGE026
wherein ,
Figure 350427DEST_PATH_IMAGE027
representing the received signal strength of the K probes,
Figure 865722DEST_PATH_IMAGE028
representing a grid id;
combining different K values with P values by means of exhaustive traversal, traversing all of the test sets
Figure 5323DEST_PATH_IMAGE029
Will be
Figure 846240DEST_PATH_IMAGE029
As an input example, finding K examples nearest to the example in the training data set, wherein the class of the example is the class of the majority in the K examples according to the minority compliance majority principle;
and calculating the classification accuracy of the test set, and obtaining a K value and a P value when the classification accuracy is highest, wherein grid positioning model training based on a K-nearest neighbor algorithm is completed.
6. The method for locating an indoor abnormal signal with high accuracy according to claim 5, wherein said step S5 comprises:
the signal strengths of the 5 moments received by the K signal receivers are:
Figure 651385DEST_PATH_IMAGE030
for a pair of
Figure 111316DEST_PATH_IMAGE031
Normalization and averaging are carried out to obtain:
Figure 482255DEST_PATH_IMAGE032
will be
Figure 962915DEST_PATH_IMAGE033
Inputting the posterior probability into a region classification model based on a naive Bayes algorithm, and finding the posterior probability by using a naive Bayes formula
Figure 176727DEST_PATH_IMAGE034
Maximum category of (2)
Figure 299404DEST_PATH_IMAGE018
As an output
Figure 259270DEST_PATH_IMAGE035
I.e.
Figure 317356DEST_PATH_IMAGE036
wherein ,
Figure 97093DEST_PATH_IMAGE035
namely, the method is a region id, a corresponding grid positioning model based on a K-nearest neighbor algorithm is selected according to the region id, parameters K and P are loaded, and the method is characterized in that
Figure 23461DEST_PATH_IMAGE033
The signal is input into a grid positioning model as an example of the signal, a corresponding grid id is output, and the coordinates of the grid corresponding to the grid id are the positions of the signal sources.
7. An indoor abnormal signal high-precision positioning system is characterized by comprising:
the preparation unit is used for arranging a signal receiver in the space to be positioned, dividing the space to be positioned into areas and grids, setting fingerprint acquisition points, and acquiring signal intensity data of abnormal signals sent by the fingerprint acquisition points;
the data processing unit is used for preprocessing the acquired signal intensity data and generating corresponding acquired fingerprints;
a first model training unit for training a region localization model based on a naive Bayesian algorithm by using the acquired fingerprint;
the second model training unit is used for training a grid positioning model based on a K-nearest neighbor algorithm by using the acquired fingerprint;
the positioning unit is used for acquiring the signal intensity data acquired by the signal receiver in real time, predicting the position of the area to which the abnormal signal belongs by using the area positioning model, predicting the grid position of the abnormal signal by using the grid positioning model according to the predicted position of the area, and generating the coordinates of the abnormal signal.
8. An indoor abnormal signal high-precision positioning device is characterized by comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for locating an indoor abnormal signal with high accuracy according to any one of claims 1 to 6 when executing the computer program.
CN202211664148.6A 2022-12-23 2022-12-23 Indoor abnormal signal high-precision positioning method, system and device Pending CN116033345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211664148.6A CN116033345A (en) 2022-12-23 2022-12-23 Indoor abnormal signal high-precision positioning method, system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211664148.6A CN116033345A (en) 2022-12-23 2022-12-23 Indoor abnormal signal high-precision positioning method, system and device

Publications (1)

Publication Number Publication Date
CN116033345A true CN116033345A (en) 2023-04-28

Family

ID=86079206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211664148.6A Pending CN116033345A (en) 2022-12-23 2022-12-23 Indoor abnormal signal high-precision positioning method, system and device

Country Status (1)

Country Link
CN (1) CN116033345A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118102443A (en) * 2024-04-18 2024-05-28 青岛日日盛智能科技有限公司 High-precision indoor positioning method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118102443A (en) * 2024-04-18 2024-05-28 青岛日日盛智能科技有限公司 High-precision indoor positioning method and system

Similar Documents

Publication Publication Date Title
Hsieh et al. Deep learning-based indoor localization using received signal strength and channel state information
Wang et al. LiFS: Low human-effort, device-free localization with fine-grained subcarrier information
Mirowski et al. Probabilistic radio-frequency fingerprinting and localization on the run
CN109068267B (en) Indoor positioning method based on LoRa SX1280
CN112218330B (en) Positioning method and communication device
Aernouts et al. TDAoA: A combination of TDoA and AoA localization with LoRaWAN
CN108882149B (en) NLOS compensation positioning method of distance correlation probability
CN104540221A (en) WLAN indoor positioning method based on semi-supervised SDE algorithm
CN103618997A (en) Indoor positioning method and device based on signal intensity probability
CN116033345A (en) Indoor abnormal signal high-precision positioning method, system and device
Ni et al. Fingerprint-MDS based algorithm for indoor wireless localization
Lan et al. Measurement-level target tracking fusion for over-the-horizon radar network using message passing
CN108931789A (en) Attack detection method, attack detectors, computer readable storage medium and terminal
Lian et al. Improved Indoor positioning algorithm using KPCA and ELM
Islam et al. LoRa-based outdoor localization and tracking using unsupervised symbolization
CN107592654B (en) Method for positioning field intensity of same-frequency multiple radiation sources based on compressed sensing
Wang et al. High-accuracy localization using single-anchor ultra-wide bandwidth systems
Fahama et al. An experimental comparison of RSSI-based indoor localization techniques using ZigBee technology
CN109302706B (en) Pseudo base station positioning method and device and computer readable storage medium
CN104821854A (en) Multidimensional spectrum sensing method for multiple main users based on random sets
Alamleh et al. A weighting system for building RSS maps by crowdsourcing data from smartphones
CN111654808B (en) Method and system for updating fingerprint database and wifi positioning method and system
Longo et al. Localization and Monitoring System based on BLE Fingerprint Method.
CN114286306B (en) Indoor signal positioning method, device, computer equipment and storage medium
CN105553583B (en) The indoor white frequency spectrum detecting method from training based on Bayes's compressed sensing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination