CN113518425A - Equipment positioning method and system - Google Patents

Equipment positioning method and system Download PDF

Info

Publication number
CN113518425A
CN113518425A CN202111072906.0A CN202111072906A CN113518425A CN 113518425 A CN113518425 A CN 113518425A CN 202111072906 A CN202111072906 A CN 202111072906A CN 113518425 A CN113518425 A CN 113518425A
Authority
CN
China
Prior art keywords
target
sample
neural network
network model
distance
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.)
Granted
Application number
CN202111072906.0A
Other languages
Chinese (zh)
Other versions
CN113518425B (en
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.)
Wuhan Yixun Beidou Space Time Technology Co Ltd
Original Assignee
Wuhan Yixun Beidou Space Time 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 Wuhan Yixun Beidou Space Time Technology Co Ltd filed Critical Wuhan Yixun Beidou Space Time Technology Co Ltd
Priority to CN202111072906.0A priority Critical patent/CN113518425B/en
Publication of CN113518425A publication Critical patent/CN113518425A/en
Application granted granted Critical
Publication of CN113518425B publication Critical patent/CN113518425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/20Instruments for performing navigational calculations
    • G01C21/206Instruments for performing navigational calculations specially adapted for indoor navigation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/044Recurrent networks, e.g. Hopfield networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds

Abstract

The invention provides a device positioning method and a system, wherein the method comprises the following steps: inputting signals received by target equipment into a neural network model to obtain the distance between the target equipment and each target transmitting end output by the neural network model; wherein the signal is transmitted by each target transmitting terminal; calculating the positioning position of the target equipment according to the distance between the target equipment and each target transmitting terminal; the neural network model is trained and obtained by taking a sample signal received by sample equipment as a sample and taking the actual distance between the sample equipment and each sample transmitting end as a sample label; the sample signals are transmitted by each sample transmitting terminal. The invention improves the accuracy of distance estimation on one hand, and further effectively ensures the reliability and stability of the positioning result; on the other hand, the neural network model can be applied to distance calculation under various environments, and has good robustness.

Description

Equipment positioning method and system
Technical Field
The present invention relates to the field of positioning technologies, and in particular, to a method and a system for positioning a device.
Background
In the smart city construction process, LBS (Location Based Service) plays an increasingly important role in daily life. According to the positioning scene, the positioning technology is mainly divided into an indoor positioning technology and an outdoor positioning technology. While current indoor positioning technologies are less mature than outdoor positioning technologies, most of the human activities occur under indoor scene conditions. Therefore, the research on the stable, reliable and effective indoor positioning technical scheme has important value and significance for expanding the position service application scene.
With the rapid development and popularization of WLAN (Wireless Local Area Network), the WLAN indoor positioning technology becomes a hot spot for research of numerous scholars at home and abroad. Currently, there are a plurality of wlan indoor positioning methods, wherein an indoor positioning algorithm based on RSSI (Received Signal Strength Indication) ranging is a main method for current indoor positioning because the algorithm has the advantages of simple calculation, easy deployment of hardware facilities, many terminal devices for receiving signals, and the like.
The basic principle is that firstly, the signal strength value is substituted into a ranging model, and the distance between target equipment and a transmitting terminal is calculated; the spatial position of the target object is then further resolved using a back-rendezvous method. The ranging model in the indoor positioning method is usually a logarithmic path loss model, and the environmental parameters in the ranging model need to be set according to manual experience, so that the accurate ranging model is difficult to establish, the ranging precision is further influenced, and the reliability and stability of the positioning result are difficult to ensure. .
Disclosure of Invention
The invention provides a device positioning method and system, which are used for solving the defects that in the prior art, an accurate distance measurement model is difficult to establish due to the fact that environmental parameters in the distance measurement model need to be based on manual experience, so that the distance measurement precision is influenced, and the reliability and stability of a positioning result are difficult to ensure, and realize accurate positioning of devices.
The invention provides a device positioning method, which comprises the following steps:
inputting signals received by target equipment into a neural network model to obtain the distance between the target equipment and each target transmitting end output by the neural network model; wherein the signal is transmitted by each target transmitting terminal;
calculating the positioning position of the target equipment according to the distance between the target equipment and each target transmitting terminal;
the neural network model is trained and obtained by taking a sample signal received by sample equipment as a sample and taking the actual distance between the sample equipment and each sample transmitting end as a sample label; the sample signals are transmitted by each sample transmitting terminal.
According to an apparatus positioning method provided by the present invention, calculating a positioning position of a target apparatus according to a distance between the target apparatus and each target transmitting end includes:
sorting the distances in the order from small to large, and forming a target distance set by a plurality of distances at the front of a sorting result; wherein the number of distances in the target distance set is greater than or equal to 3;
for each distance in the target set, fitting a circular area corresponding to each distance according to each distance and the position coordinate of the target transmitting end corresponding to each distance;
under the condition that the circular areas corresponding to all the distances in the target set are intersected, calculating intersection point coordinates in the intersection areas of the circular areas corresponding to all the distances in the target set;
and calculating the positioning position of the target equipment according to the intersection point coordinates.
According to an apparatus positioning method provided by the present invention, calculating a positioning position of the target apparatus according to the intersection coordinates includes:
calculating the centroid coordinates of a polygon formed by the intersection point coordinates based on a weighted centroid algorithm;
and taking the centroid coordinate as the positioning position of the target device.
According to an apparatus positioning method provided by the present invention, before inputting a signal received by a target apparatus into a neural network model and obtaining distances between the target apparatus and each target transmitting end output by the neural network model, the method further includes:
acquiring initial parameters of the neural network model based on a fish swarm algorithm;
inputting the sample signals received by the sample equipment into the neural network model to obtain the distance between the sample equipment output by the neural network model and each sample transmitting end;
obtaining a loss function of the neural network model according to the distance between the sample equipment and each sample transmitting end and the actual distance between the sample equipment and each sample transmitting end output by the neural network model;
and optimizing initial parameters of the neural network model according to the loss function.
According to an apparatus positioning method provided by the present invention, the inputting a signal received by a target apparatus into a neural network model to obtain distances between the target apparatus and each target transmitting end output by the neural network model includes:
preprocessing a signal received by the target device;
wherein the preprocessing comprises normalization processing and/or filtering processing;
and inputting the preprocessed signals into the neural network model to obtain the distance between the target equipment output by the neural network model and each target transmitting terminal.
According to the equipment positioning method provided by the invention, the pretreatment is filtering treatment;
accordingly, the preprocessing the signal received by the target device includes:
determining whether each signal transmitted by each target transmitting terminal received by the target equipment is an abnormal value or not based on a Grubbs test method;
and performing Gaussian filtering on signals except the abnormal value in the signals transmitted by each target transmitting end received by the target equipment, and then performing mean filtering.
The present invention also provides an apparatus positioning system, comprising:
the output module is used for inputting signals received by target equipment into a neural network model to obtain the distance between the target equipment output by the neural network model and each target transmitting terminal; wherein the signal is transmitted by each target transmitting terminal;
the positioning module is used for calculating the positioning position of the target equipment according to the distance between the target equipment and each target transmitting terminal;
the neural network model is trained and obtained by taking a sample signal received by sample equipment as a sample and taking the actual distance between the sample equipment and each sample transmitting end as a sample label; the sample signals are transmitted by each sample transmitting terminal.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement the steps of any of the above-mentioned device positioning methods.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the device location method as described in any one of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method for positioning a device as described in any one of the above.
According to the equipment positioning method and system, the distance between the target equipment and each target transmitting end is accurately acquired by using a neural network model according to the signals received by the target equipment acquired in real time, and then the target equipment is automatically positioned according to the accurate distance between the target equipment and each target transmitting end, so that on one hand, the accuracy of distance estimation is improved, and the reliability and stability of a positioning result are effectively ensured; on the other hand, the neural network model can be applied to distance calculation under various environments, and has good robustness.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for locating a device according to the present invention;
FIG. 2 is a schematic structural diagram of a neural network model in the device location method provided by the present invention;
FIG. 3 is a schematic structural diagram of intersection of circular regions corresponding to a plurality of distances in the method for locating a device according to the present invention;
FIG. 4 is a second flowchart of the apparatus positioning method according to the present invention;
FIG. 5 is a schematic diagram of the structure of the device positioning system provided by the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, a ranging model in an indoor positioning algorithm based on RSSI ranging is as follows:
RSSI(d)=-10n log10d+A;
wherein RSSI (d) is the distance from the target device to the transmitting enddThe intensity of the signal of (a) is,Aandnis an environmental parameter. As shown in table 1, is a distribution table of environmental parameter values;
Figure 424992DEST_PATH_IMAGE001
as can be seen from Table 1, different environments correspond to different environmental parameters A and n, and the environmental parameters of the different environments are required to be set through manual experience, so that the accuracy of the ranging model is greatly influenced by manual work, the robustness is low, the accurate ranging model is difficult to establish, the ranging accuracy is influenced, and the reliability and the stability of a positioning result are difficult to guarantee.
In the embodiment, the distance between the target device and each target transmitting terminal is obtained by using the neural network model according to the signal received by the target device, and then the positioning position of the target device is automatically and accurately obtained according to the distance between the target device and each target transmitting terminal, so that not only are environmental parameters of artificial experience equipment effectively avoided, less artificial interference is caused, and accurate positioning of the device can be realized, but also the distance between the target device and each target transmitting terminal can be automatically and accurately output as long as the signal received by the target device is input into the neural network model, so that different environments are effectively avoided being considered, and the problems of low ranging efficiency and poor stability caused by selecting different ranging models according to different environments are solved.
The device location method of the present invention is described below in conjunction with fig. 1, including:
step 101, inputting a signal received by target equipment into a neural network model to obtain the distance between the target equipment output by the neural network model and each target transmitting terminal; wherein the signal is transmitted by each target transmitting terminal; the neural network model is trained and obtained by taking a sample signal received by sample equipment as a sample and taking the actual distance between the sample equipment and each sample transmitting end as a sample label; the sample signals are transmitted by each sample transmitting terminal.
The target device is a device that needs to be located, and may be a mobile phone, a wearable smart device, a tablet computer, and other smart devices, which is not specifically limited in this implementation.
It should be noted that the sample device and the target device are the same type of device.
The target transmitting end may transmit a wireless signal to the target device by wireless transmission, such as bluetooth or WLAN, which is not specifically limited in this embodiment. The number of the target transmitting terminals is multiple, and the target transmitting terminals can be set according to actual requirements.
The structure of the neural network model can be set according to actual requirements, for example, the number of layers of hidden layers in the neural network model, the number of neuron nodes of each hidden layer, the activation function of each hidden layer, and the like can be set according to actual requirements.
The neural network model may be a Back Propagation (BP) neural network model or other neural network models such as a recurrent neural network, which is not specifically limited in this embodiment.
The device positioning method in this embodiment is described below by taking a BP neural network as an example.
As shown in fig. 2, the BP neural network model is a multi-layer feedforward neural network, which mainly includes an input layer, an implicit layer and an output layer, and the feedforward network is trained by error back propagation without knowing the mapping relation equation in advance. The BP neural network model is mainly divided into two stages, wherein the first stage is the forward propagation of signals, and the signals pass through a hidden layer from an input layer and finally reach an output layer; the second stage is the back propagation of error, from the output layer to the hidden layer and finally to the input layer, and the parameters from the hidden layer to the output layer are adjusted in sequence.
In the forward propagation stage, for each hidden layer, multiplying each input information by the corresponding weight, then adding the multiplied value to the corresponding bias value, and finally calculating through an excitation function to obtain the corresponding output value. The input information of the first hidden layer is input information input through the input layer, namely, a signal received by the target device, and the input information of the other hidden layers is an output value of an upper hidden layer adjacent to the first hidden layer.
Wherein, the formula for calculating the output of each hidden layer is as follows:
Figure 268052DEST_PATH_IMAGE002
Figure 673625DEST_PATH_IMAGE003
wherein, IjIs a neuronjNet input value of, WijIs a neuronjTo the neuroniThe weight of (2); x is the number ofiIs a neuroniAn input value of (a); b isjIs a neuronjOffset value of (1), OjIs a neuronjThe output value of (d);nis the total number of input values.
In the back propagation stage, carrying out error analysis on the output value and the true value, and calculating the deviation between the output value and the true value of the BP neural network, wherein the calculation formula of the deviation is as follows:
Figure 643855DEST_PATH_IMAGE004
in the formula: ejNeurons being the output layerjThe deviation value of (a); t isjAre true values.
After the deviation value of the output layer is obtained, the error of the output layer is used for calculating the upper layer error in each hidden layer until the input layer is calculated, and the weight of the neural network model is updated by using a gradient descent method until the distance output by the neural network model is close to the actual distance. The calculation formula is as follows:
Figure 202007DEST_PATH_IMAGE005
Figure 966700DEST_PATH_IMAGE006
in the formula, Wij 'The updating amount of the weight value; b isj 'For the amount of update of the offset value,lis the learning rate. The weight is the relationship between two adjacent layers of neurons, and the threshold is the relationship within each neuron. And optimizing the weight and the offset value through a training network until the optimal weight and the optimal offset value are obtained.
Optionally, the step of inputting the signal received by the target device into the neural network model and outputting the distance between the target device and each target transmitting terminal comprises,
first, the neural network model needs to be trained before inputting the signal received by the target device into the neural network model. When training the neural network model, the sample signal received by the sample device and the actual distance between the sample device and each sample transmitting end may be directly input to the neural network model, or after performing calculation processing on the signal, the calculation processing result and the actual distance are input to the neural network model, for example, the strength of the signal is calculated, and the strength of the signal is input to the neural network model, which is not specifically limited in this embodiment.
The sample signal or the calculation processing result received by the sample device may also be input to the neural network model after being subjected to one or more kinds of preprocessing, which is not specifically limited in this embodiment.
Then, a deviation value between the distance output by the neural network model and the actual distance is calculated. And adjusting parameters of the neural network model according to the deviation value, thereby realizing the optimization of the parameters in the neural network model.
Then, the mobile terminal is used for collecting signals received by the target equipment in real time and recording the signals in real time; the acquisition mode can be that the acquisition is stopped when the duration of the received signal reaches the preset time; the number of signals received by the target device is one or more, which is not specifically limited in this embodiment.
And finally, inputting the signals received by the target equipment into the neural network model, and outputting the distance between the target equipment and each target transmitting terminal.
According to the method, parameters of the neural network model are automatically optimized according to the samples and the sample labels, the optimized model can be suitable for equipment positioning under various environments, and the robustness is good; once the optimal neural network model is obtained, the neural network model can be repeatedly used to obtain the distance between the target equipment and each target transmitting terminal, and the usability is strong; and the signal received by the target equipment is directly input into the neural network model, so that the distance between the target equipment and each target transmitting terminal can be accurately obtained, the manual setting of model parameters is avoided, the accuracy of distance calculation is effectively improved, and the reliability and the stability of a positioning result are further improved.
And 102, calculating the positioning position of the target equipment according to the distance between the target equipment and each target transmitting terminal.
Optionally, after the distances between the target device and each target transmitting end are obtained, the distances between the target device and all the target transmitting ends may be directly combined to calculate the positioning position of the target device, or the distances between the target device and each target transmitting end may be first screened, the distances satisfying the conditions are selected, and then the positioning position of the target device is calculated by combining the distances satisfying the conditions. This embodiment is not particularly limited thereto.
Optionally, the calculation method may be a back-intersection method, or a positioning calculation method such as a centroid positioning method, which is not specifically limited in this embodiment.
According to the embodiment, the distance between the target equipment and each target transmitting terminal is accurately acquired by using a neural network model according to the signal received by the target equipment acquired in real time, and then the target equipment is automatically positioned according to the accurate distance between the target equipment and each target transmitting terminal, so that on one hand, the accuracy of distance estimation is improved, and the reliability and stability of a positioning result are effectively ensured; on the other hand, the neural network model can be applied to distance calculation under various environments, and has good robustness.
On the basis of the foregoing embodiments, in this embodiment, the calculating the location position of the target device according to the distance between the target device and each target transmitting end includes: sorting the distances in the order from small to large, and forming a target distance set by a plurality of distances at the front of a sorting result; wherein the number of distances in the target distance set is greater than or equal to 3; for each distance in the target set, fitting a circular area corresponding to each distance according to each distance and the position coordinate of the target transmitting end corresponding to each distance; under the condition that the circular areas corresponding to all the distances in the target set are intersected, calculating intersection point coordinates in the intersection areas of the circular areas corresponding to all the distances in the target set; and calculating the positioning position of the target equipment according to the intersection point coordinates.
Optionally, after the distances between the target device and each target transmitting end are obtained, all the distances may be sorted in the order from small to large, then a plurality of distances with the top sorting result are selected from all the distances, and the selected plurality of distances form a target distance set. The number of distances included in the target distance set may be set according to actual requirements, such as 3, 4, or 5, which is not specifically limited in this embodiment.
For example, the distances from the target devices output by the neural network model to all target transmitting terminals are sorted from small to large, the sorting result is { d1, d2, …, dM }, and the three distances with the top sorting result are selected to form a target distance set, namely the target distance set is { d1, d2, d3 }.
And then, fitting a circular area corresponding to each distance by taking each distance in the target distance set as a radius and the position coordinate of the target transmitting end corresponding to each distance as a circle center.
Then, whether the circular areas corresponding to all the distances in the target set are intersected pairwise or not is judged, and if yes, intersection point coordinates in the intersection area after the circular areas corresponding to all the distances in the target distance set are intersected are calculated.
For example, the target distance set includes three distances, and as shown in fig. 3, intersection coordinates in an intersection region of circular regions corresponding to the three distances in the target distance set are A, B and C, respectively.
If the two circular regions are not intersected in pairs, the signals received by the target equipment are collected again, the signals are input into the neural network model again, whether the circular regions corresponding to all the distances in the target distance set are intersected or not is judged again until the circular regions corresponding to all the distances in the target set are intersected in pairs.
And finally, calculating the positioning position of the target equipment according to the intersection point coordinates.
Alternatively, according to the intersection coordinates, the positioning position of the target device may be calculated by obtaining a minimum circumscribed circle or a minimum outer polygon containing all the intersection coordinates according to the intersection coordinates, or by directly connecting the intersection coordinates to form a polygon, and then calculating a centroid of the minimum circumscribed circle, the minimum outer polygon, or the polygon as the positioning position of the target device. The present embodiment does not specifically limit the manner of calculating the location position of the target device.
Since the farther the signal travels, the less the impact on the target device, the greater the likelihood of interference. Therefore, in order to accurately position the position of the target device, in this embodiment, all distances are sorted in the order from small to large, and the positioning position of the target device is calculated according to a plurality of distances in front of the sorting result, that is, the distance is relatively small, and the target transmitting end corresponding to the relatively small distance, so that the influence of the interference information on the positioning result of the target device can be effectively alleviated, and the positioning result is more accurate and more stable.
On the basis of the foregoing embodiment, in this embodiment, the calculating the location position of the target device according to the intersection coordinates includes: calculating the centroid coordinates of a polygon formed by the intersection point coordinates based on a weighted centroid algorithm; and taking the centroid coordinate as the positioning position of the target device.
Optionally, based on the intersection coordinates, the step of calculating the location position of the target device comprises,
firstly, connecting all intersection point coordinates in sequence to form a polygon;
then, respectively calculating the abscissa and the ordinate of the centroid coordinate of the polygon based on a weighted centroid algorithm;
and finally, taking the centroid coordinate as the positioning position of the target device.
The following describes the device positioning method by taking an example that the target distance set includes three distances, and the number of intersection coordinates of circular regions corresponding to all the distances in the target set is three.
As shown in fig. 3, two circular areas intersect each other, the intersecting area is a triangle, and the centroid of the triangle is the positioning position of the target device.
Based on the weighted centroid algorithm, the calculation formulas for respectively calculating the abscissa and the ordinate of the centroid coordinate of the polygon are as follows:
Figure 108837DEST_PATH_IMAGE007
in the formula (x)0,y0) Is the location of the target device, (X)A,YA)、(XB,YB) And (X)C,YC) Respectively, the coordinates of the three points of intersection A, B, C, d1、d2And d3Respectively representing distances in the target distance set;
Figure 617179DEST_PATH_IMAGE008
Figure 279105DEST_PATH_IMAGE009
and
Figure 965432DEST_PATH_IMAGE010
representing the weight of A, B, C points. The larger the radius of the circular area, i.e. the longer the signal propagation distance, the smaller the influence on the point to be measured, and the smaller the weight value. The smaller the radius of the circular area, i.e. the shorter the signal propagation distance, the greater the influence on the point to be measured, and the greater the weight thereof.
In the embodiment, a weighted centroid algorithm is adopted to calculate the centroid coordinate of the polygon formed by the intersection point coordinates, so that the calculation result of the positioning position of the target device is more accurate.
On the basis of the foregoing embodiments, before inputting a signal received by a target device into a neural network model to obtain distances between the target device and each target transmitting end output by the neural network model, the present embodiment further includes: acquiring initial parameters of the neural network model based on a fish swarm algorithm; inputting the sample signals received by the sample equipment into the neural network model to obtain the distance between the sample equipment output by the neural network model and each sample transmitting end; obtaining a loss function of the neural network model according to the distance between the sample equipment and each sample transmitting end and the actual distance between the sample equipment and each sample transmitting end output by the neural network model; and optimizing initial parameters of the neural network model according to the loss function.
The initial parameters of the neural network model comprise weight values and bias values.
The Fish Swarm Algorithm may be a Fish Swarm Algorithm such as ADAFSA (Adaptive Swarm Algorithm Based on Adaptive Dynamic Neighborhood Structure), which is not specifically limited in this embodiment.
In the ADAFSA, the neighborhood structure of the artificial fish is in dynamic adjustment and changes along with the increase of the iteration times, and the visual field and the step length change along with the change of the domain structure; in the early stage of the algorithm, the visual field and the step length are large, and the global optimization capability is met; in the later stage of the algorithm, the visual field and the step length are small, and the local optimization capability is enhanced.
In the first placetAt the time of second iteration, the artificial fishpThe set of neighbor fish within the current neighborhood may be represented as:
Figure 345598DEST_PATH_IMAGE011
Figure 392051DEST_PATH_IMAGE012
Figure 694769DEST_PATH_IMAGE013
wherein N isp(t) istAt the time of second iteration, the artificial fishpAll neighbor fish sets of (1); dp(t) is an artificial fishpA set of distances to other artificial fish at the t-th iteration; f (t) istCurrent artificial fish in sub-iterationpThe number of neighbor fishes;
Figure 801265DEST_PATH_IMAGE014
is a pair Dp(t) performing a sorting operation; arg (·) is a location identification operation; xp(t) istAt the time of second iteration, the artificial fishpThe state of (1); n is a radical offishThe initial scale of the artificial fish; t is the maximum iteration number; ceil (·) is an operation that takes an integer toward positive infinity.
In the ADAFSA, the visual field is the average value of the distances between all neighbor fishes in the neighborhood of the artificial fish in the current state and the visual field and the step length change along with the change of the field structure in the iteration process. Wherein the visual field LvisualAnd step length LstepThe specific calculation formula of (A) is as follows:
Figure 419459DEST_PATH_IMAGE015
Figure 269603DEST_PATH_IMAGE016
wherein the content of the first and second substances,
Figure 906121DEST_PATH_IMAGE017
is the view step coefficient.
At the t-th iteration, the field of view L is acquiredvisualAnd step length LstepAnd then, according to the state, the visual field and the step length of the artificial fish, the optimal behavior of the herding behavior, the foraging behavior and the rear-end collision behavior can be executed.
For clustering behavior, in the neighborhood of artificial fish, the artificial fish is searchedpOf the neighborhood inner central positionCThe specific calculation formula is as follows:
Figure 432786DEST_PATH_IMAGE018
wherein, XmpIs an artificial fishpOf the neighborhood ofm;
Then, for the current artificial fishpThe state of (2) is updated, and the calculation formula is as follows:
Figure 521965DEST_PATH_IMAGE019
wherein, Xmext(p) is the renewed artificial fishpRand is a random function.
For rear-end collisions, intAt the time of second iteration, the artificial fishpIs XpFood concentration of YpFinding the current artificial fish XpArtificial fish X with highest food concentration in neighborhood structuremax,XmaxCorresponding to a food concentration of Ymax(ii) a If Y ismax>YpIf so, the rear-end collision is executed, otherwise, the foraging behavior is continued. The calculation formula for executing the rear-end collision behavior is as follows:
Figure 926533DEST_PATH_IMAGE020
for foraging behavior, whentDuring the second iteration, randomly finding an artificial fish in the visual field range, and setting the state as XKFood concentration of YKIf, ifYK>YpThen artificial fish XpMove to XK(ii) a If no more than Y is found after the set repeated exploration timespThe food concentration of (2) is randomly moved by one step.
Optionally, the step of training the neural network model comprises,
determining the structure of a neural network model, including the number of hidden layers of the neural network model and the number of neurons in each layer; determining parameter settings for a fish school algorithm, including an initialization scale N for an artificial fish schoolfishCoefficient of visual step
Figure 417557DEST_PATH_IMAGE017
Maximum iteration number T, repeated exploration number N;
step (2), taking the initial parameters of the neural network model as the state of the artificial fish, and taking the derivative of the training error of the neural network model as the food concentration of the artificial fish;
step (3), the state of the artificial fish is iteratively optimized by using a fish swarm algorithm, and the state of the artificial fish iterated for the last time is used as the optimal state of the artificial fish;
step (4), taking the optimal state of the artificial fish as an initial parameter of a neural network model;
inputting the sample signals received by the sample equipment and the actual distances from the sample equipment to each sample transmitting end into a neural network model, and calculating the mean square error between the distances output by the neural network model and the actual distances;
and (6) continuously adjusting parameters in the neural network model by using a gradient descent method until the error between the output value trained by the neural network model and the true value is less than a preset value or the training times are reached.
In the prior art, during the training process of the neural network model, random parameters are usually adopted to initialize the parameters of the neural network model, if the initial parameter selection is inaccurate, the neural network model is easy to fall into local optimization, and not only is the convergence speed of the neural network model slow, but also the performance of the neural network model is poor and the generalization capability is low.
In the embodiment, the optimal initial parameter of the neural network model is obtained by utilizing the global optimization capability of the fish swarm algorithm, so that the initial parameter of the neural network model is not a random number generated randomly any more but an optimal value, the network oscillation problem of the neural network model is effectively solved, the local optimization is avoided, and the neural network model is rapidly converged.
On the basis of the foregoing embodiments, in this embodiment, the inputting a signal received by a target device into a neural network model to obtain distances between the target device and each target transmitting end output by the neural network model includes: preprocessing a signal received by the target device; wherein the preprocessing comprises normalization processing and/or filtering processing; and inputting the preprocessed signals into the neural network model to obtain the distance between the target equipment output by the neural network model and each target transmitting terminal.
The number of the signals sent by each target transmitting terminal is multiple, and the specific number can be set according to actual requirements, namely the input information of the neural network model is multiple.
Optionally, in order to prevent the smaller value of the input information from being overwhelmed by the larger value, the input information is normalized to a smaller interval, such as the range of [ -1,1 ]. The normalization method includes maximum and minimum normalization and standard normalization, which is not specifically limited in this embodiment.
In addition, the distance calculation result is inaccurate due to a certain number of noise points in the acquired original signal. In order to further eliminate the noise points in the original signal, the noise in the original signal may be filtered.
Optionally, the signal received by the target device may be preprocessed in one or more of the above processing manners before being input into the neural network model, which is not specifically limited in this embodiment.
It should be noted that the signal received by the target device needs to be preprocessed in a manner suitable for the signal received by the sample device.
And after the preprocessed signals are obtained, inputting the preprocessed signals into a neural network model, and obtaining the distance between the target equipment and each target transmitting terminal.
The embodiment preprocesses the signal received by the target device, so that the influence of noise points on the distance estimation result can be eliminated, and the influence of signals with different dimensions on the distance estimation result can be eliminated, thereby ensuring the reliability and stability of distance estimation and further improving the reliability and stability of the positioning result.
On the basis of the above embodiment, the preprocessing in this embodiment is filtering processing; accordingly, the preprocessing the signal received by the target device includes: determining whether each signal transmitted by each target transmitting terminal received by the target equipment is an abnormal value or not based on a Grubbs test method; and performing Gaussian filtering on signals except the abnormal value in the signals transmitted by each target transmitting end received by the target equipment, and then performing mean filtering.
The device localization method in the present embodiment will be described below by taking the intensity of a signal received by a target device as input information of a neural network model as an example.
Optionally, in order to avoid the influence of the abnormal signal on the positioning result, preprocessing the signal received by the target device by using hybrid filtering of a grubbs test method is adopted to remove the abnormal signal in the signal received by the target device, so that the reliability and stability of the positioning result are ensured.
The grubbs test method has the advantage that the two most important parameters in the normal distribution, i.e. the mean value and the standard deviation, can be introduced in the process of judging the acceptance of the suspicious values. Therefore, the detection accuracy of the Grubbs detection method is higher. The data of the signal strength collected at the same position generally follows normal distribution, that is, the strength of a plurality of signals transmitted by the same target transmitting terminal received by the target device follows normal distribution.
Therefore, the method can effectively eliminate the abnormal value existing in the strength of the signal transmitted by any target transmitting terminal and received by the target equipment, and comprises the following specific steps,
firstly, the RSSI values collected at the same position are sequenced from small to large, and the mean value of the intensities of all the signals transmitted by all the target transmitting terminals received by the target equipment is calculated
Figure 865856DEST_PATH_IMAGE021
And a variance S, wherein the specific calculation formula is as follows:
Figure 957177DEST_PATH_IMAGE022
Figure 149124DEST_PATH_IMAGE023
wherein the RSSIhThe signal strength of the H-th signal transmitted by any target transmitting terminal received by the target equipment is H, and the H is the number of the signal strengths of all the signals transmitted by any target transmitting terminal received by the target equipment.
Then, according to the predetermined confidence coefficient and the data number, searching the corresponding threshold value in the Lubrus critical value table
Figure 510967DEST_PATH_IMAGE024
Wherein, in the step (A),
Figure 130167DEST_PATH_IMAGE025
generally taking 0.05; and calculate statistics
Figure 459517DEST_PATH_IMAGE026
Judging whether the statistic G is larger than the threshold value
Figure 704422DEST_PATH_IMAGE024
If yes, determining RSSIhAs an abnormal value, the RSSIhAll signals transmitted by each target transmitting terminal are removed from all signals received by the target equipment, and all signals except abnormal values in the strength of the signals transmitted by each target transmitting terminal received by the target equipment are removedThe set of the strengths of the numbers is RSSI _ G = { RSSI _ G = { [ RSSI _ G ]1,RSSI_G2,⋯,RSSI_Gu}。
And then, performing Gaussian filtering on the RSSI _ G and then performing mean filtering, wherein the calculation formula of the Gaussian filtering is as follows:
Figure 638880DEST_PATH_IMAGE027
Figure 960140DEST_PATH_IMAGE028
Figure 996361DEST_PATH_IMAGE029
wherein the content of the first and second substances,
Figure 530110DEST_PATH_IMAGE030
and
Figure 850233DEST_PATH_IMAGE031
respectively the mean and the variance of RSSI G,uis the number of strengths of the signals in RSSI _ G.
Then will be within RSSI _ G, and
Figure 343661DEST_PATH_IMAGE032
in the interval
Figure 116445DEST_PATH_IMAGE033
The signal intensity of the inner is recorded as
Figure 204618DEST_PATH_IMAGE034
(ii) a Then, all are calculated
Figure 910405DEST_PATH_IMAGE034
As a final filtering result, the specific calculation formula is:
Figure 42309DEST_PATH_IMAGE035
and taking the final filtering result as the input of the neural network model.
In the prior art, in a complex scene, the strength of a signal received by a target device has gross errors, which causes a large jump phenomenon of the strength of the acquired signal, thereby affecting the distance calculation accuracy and being difficult to ensure the reliability and stability of a positioning result.
In the embodiment, through the grubbs test method, the gaussian filtering and the mean filtering, abnormal values in the strength of the signal received by the target device can be effectively eliminated, so that the reliability and the stability of the positioning result are ensured.
As shown in fig. 4, which is a complete flow chart of the device location method, the specific steps include,
acquiring the intensity of a sample signal at different positions, recording the actual distance between sample equipment and a sample transmitting end of the sample signal, and taking the intensity and the actual distance of the sample signal as training sample data;
and (2) determining the structure of the neural network model, wherein the structure comprises information such as the number of neurons in each layer, the number of hidden layers and the like. Initializing an initialization size N comprising an artificial fish shoalfishCoefficient of visual step
Figure 817236DEST_PATH_IMAGE017
Maximum iteration number T, repeated exploration number N;
step (3), operating an ADAFSA algorithm to obtain the optimal state of the artificial fish;
step (4), the optimal state of the artificial fish is used as an initial weight value and an initial bias value of the neural network model;
step (5), inputting the sample data into a neural network model optimized by an ADAFSA algorithm, and calculating a mean square error;
step (6), adjusting the initial weight and the initial bias value in the neural network model by using a gradient descent method until the error between the output value and the actual value of the trained neural network model is less than a preset value or the training times are reached;
step (7), storing the trained neural network model;
step (8) measuring a wireless signal received by target equipment by using a mobile terminal, recording, and stopping measurement when the receiving time reaches a preset time threshold;
in the step (9), because a certain number of noise points exist in the acquired original signal strength, the noise in the wireless signal needs to be filtered;
and (10) inputting the received signal strength into the trained neural network model, estimating the distance between the target equipment and each target transmitting terminal, and acquiring a distance set. Then, sorting the distances from small to large, and selecting a plurality of circular areas corresponding to the distances with small distances according to a sorting result to intersect;
and (11) calculating the intersection point coordinates in the intersection region, calculating the centroid coordinates of a triangle formed by the intersection point coordinates by using a weighted centroid algorithm, and taking the centroid coordinates as the positioning position of the target equipment.
The device positioning system provided by the present invention is described below, and the device positioning system described below and the device positioning method described above may be referred to correspondingly.
As shown in fig. 5, the device positioning system provided in this embodiment includes an output module 501 and a positioning module 502, where:
the output module 501 is configured to input a signal received by a target device into a neural network model, so as to obtain distances from the target device to each target transmitting end, where the distances are output by the neural network model; wherein the signal is transmitted by each target transmitting terminal; the neural network model is trained and obtained by taking a sample signal received by sample equipment as a sample and taking the actual distance between the sample equipment and each sample transmitting end as a sample label; the sample signals are transmitted by each sample transmitting terminal.
The target device is a device that needs to be located, and may be a mobile phone, a wearable smart device, a tablet computer, and other smart devices, which is not specifically limited in this implementation.
It should be noted that the sample device and the target device are the same type of device.
The target transmitting end may transmit a wireless signal to the target device by wireless transmission, such as bluetooth or WLAN, which is not specifically limited in this embodiment. The number of the target transmitting terminals is multiple, and the target transmitting terminals can be set according to actual requirements.
The structure of the neural network model can be set according to actual requirements, for example, the number of layers of hidden layers in the neural network model, the number of neuron nodes of each hidden layer, the activation function of each hidden layer, and the like can be set according to actual requirements.
The neural network model may be a BP neural network model or other neural network models such as a recurrent neural network, which is not specifically limited in this embodiment.
The device positioning method in this embodiment is described below by taking a BP neural network as an example.
As shown in fig. 2, the BP neural network model is a multi-layer feedforward neural network, which mainly includes an input layer, an implicit layer and an output layer, and the feedforward network is trained by error back propagation without knowing the mapping relation equation in advance. The BP neural network model is mainly divided into two stages, wherein the first stage is the forward propagation of signals, and the signals pass through a hidden layer from an input layer and finally reach an output layer; the second stage is the back propagation of error, from the output layer to the hidden layer and finally to the input layer, and the parameters from the hidden layer to the output layer are adjusted in sequence.
In the forward propagation stage, for each hidden layer, multiplying each input information by the corresponding weight, then adding the multiplied value to the corresponding bias value, and finally calculating through an excitation function to obtain the corresponding output value. The input information of the first hidden layer is input information input through the input layer, namely, a signal received by the target device, and the input information of the other hidden layers is an output value of an upper hidden layer adjacent to the first hidden layer.
Wherein, the formula for calculating the output of each hidden layer is as follows:
Figure 427209DEST_PATH_IMAGE002
Figure 738236DEST_PATH_IMAGE003
wherein, IjIs a neuronjNet input value of, WijIs a neuronjTo the neuroniThe weight of (2); x is the number ofiIs a neuroniAn input value of (a); b isjIs a neuronjOffset value of (1), OjIs a neuronjThe output value of (d);nis the total number of input values.
In the back propagation stage, carrying out error analysis on the output value and the true value, and calculating the deviation between the output value and the true value of the BP neural network, wherein the calculation formula of the deviation is as follows:
Figure 775462DEST_PATH_IMAGE004
in the formula: ejNeurons being the output layerjThe deviation value of (a); t isjAre true values.
After the deviation value of the output layer is obtained, the error of the output layer is used for calculating the upper layer error in each hidden layer until the input layer is calculated, and the weight of the neural network model is updated by using a gradient descent method until the distance output by the neural network model is close to the actual distance. The calculation formula is as follows:
Figure 53997DEST_PATH_IMAGE005
Figure 982507DEST_PATH_IMAGE006
in the formula, Wij 'The updating amount of the weight value; b isj 'For the amount of update of the offset value,lis the learning rate. The weight is the relationship between two adjacent layers of neurons, and the threshold is the relationship within each neuron. By training the network, the network can be trained,and optimizing the weight and the bias value until the optimal weight and the optimal bias value are obtained.
Optionally, the step of inputting the signal received by the target device into the neural network model and outputting the distance between the target device and each target transmitting terminal comprises,
first, the neural network model needs to be trained before inputting the signal received by the target device into the neural network model. When training the neural network model, the sample signal received by the sample device and the actual distance between the sample device and each sample transmitting end may be directly input to the neural network model, or after performing calculation processing on the signal, the calculation processing result and the actual distance are input to the neural network model, for example, the strength of the signal is calculated, and the strength of the signal is input to the neural network model, which is not specifically limited in this embodiment.
The sample signal or the calculation processing result received by the sample device may also be input to the neural network model after being subjected to one or more kinds of preprocessing, which is not specifically limited in this embodiment.
Then, a deviation value between the distance output by the neural network model and the actual distance is calculated. And adjusting parameters of the neural network model according to the deviation value, thereby realizing the optimization of the parameters in the neural network model.
Then, the mobile terminal is used for collecting signals received by the target equipment in real time and recording the signals in real time; the acquisition mode can be that the acquisition is stopped when the duration of the received signal reaches the preset time; the number of signals received by the target device is one or more, which is not specifically limited in this embodiment.
And finally, inputting the signals received by the target equipment into the neural network model, and outputting the distance between the target equipment and each target transmitting terminal.
According to the method, parameters of the neural network model are automatically optimized according to the samples and the sample labels, the optimized model can be suitable for equipment positioning under various environments, and the robustness is good; once the optimal neural network model is obtained, the neural network model can be repeatedly used to obtain the distance between the target equipment and each target transmitting terminal, and the usability is strong; and the signal received by the target equipment is directly input into the neural network model, so that the distance between the target equipment and each target transmitting terminal can be accurately obtained, the manual setting of model parameters is avoided, the accuracy of distance calculation is effectively improved, and the reliability and the stability of a positioning result are further improved.
The positioning module 502 is configured to calculate a positioning position of the target device according to a distance between the target device and each target transmitting end.
Optionally, after the distances between the target device and each target transmitting end are obtained, the distances between the target device and all the target transmitting ends may be directly combined to calculate the positioning position of the target device, or the distances between the target device and each target transmitting end may be first screened, the distances satisfying the conditions are selected, and then the positioning position of the target device is calculated by combining the distances satisfying the conditions. This embodiment is not particularly limited thereto.
Optionally, the calculation method may be a back-intersection method, or a positioning calculation method such as a centroid positioning method, which is not specifically limited in this embodiment.
According to the embodiment, the distance between the target equipment and each target transmitting terminal is accurately acquired by using a neural network model according to the signal received by the target equipment acquired in real time, and then the target equipment is automatically positioned according to the accurate distance between the target equipment and each target transmitting terminal, so that on one hand, the accuracy of distance estimation is improved, and the reliability and stability of a positioning result are effectively ensured; on the other hand, the neural network model can be applied to distance calculation under various environments, and has good robustness.
On the basis of the above embodiment, the positioning module in this embodiment is specifically configured to: sorting the distances in the order from small to large, and forming a target distance set by a plurality of distances at the front of a sorting result; wherein the number of distances in the target distance set is greater than or equal to 3; for each distance in the target set, fitting a circular area corresponding to each distance according to each distance and the position coordinate of the target transmitting end corresponding to each distance; under the condition that the circular areas corresponding to all the distances in the target set are intersected, calculating intersection point coordinates in the intersection areas of the circular areas corresponding to all the distances in the target set; and calculating the positioning position of the target equipment according to the intersection point coordinates.
On the basis of the above embodiment, the positioning module in this embodiment is further configured to: calculating the centroid coordinates of a polygon formed by the intersection point coordinates based on a weighted centroid algorithm; and taking the centroid coordinate as the positioning position of the target device.
On the basis of the above embodiments, the present embodiment further includes a training module, specifically configured to: acquiring initial parameters of the neural network model based on a fish swarm algorithm; inputting the sample signals received by the sample equipment into the neural network model to obtain the distance between the sample equipment output by the neural network model and each sample transmitting end; obtaining a loss function of the neural network model according to the distance between the sample equipment and each sample transmitting end and the actual distance between the sample equipment and each sample transmitting end output by the neural network model; and optimizing initial parameters of the neural network model according to the loss function.
On the basis of the foregoing embodiments, in this embodiment, the output module is further configured to: preprocessing a signal received by the target device; wherein the preprocessing comprises normalization processing and/or filtering processing; and inputting the preprocessed signals into the neural network model to obtain the distance between the target equipment output by the neural network model and each target transmitting terminal.
On the basis of the above embodiment, the preprocessing in this embodiment is filtering processing; correspondingly, the system further comprises a preprocessing module, which is specifically used for: determining whether each signal transmitted by each target transmitting terminal received by the target equipment is an abnormal value or not based on a Grubbs test method; and performing Gaussian filtering on signals except the abnormal value in the signals transmitted by each target transmitting end received by the target equipment, and then performing mean filtering.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor)601, a communication Interface (Communications Interface)602, a memory (memory)603 and a communication bus 604, wherein the processor 601, the communication Interface 602 and the memory 603 complete communication with each other through the communication bus 604. The processor 601 may invoke logic instructions in the memory 603 to perform a device location method comprising: inputting signals received by target equipment into a neural network model to obtain the distance between the target equipment and each target transmitting end output by the neural network model; wherein the signal is transmitted by each target transmitting terminal; calculating the positioning position of the target equipment according to the distance between the target equipment and each target transmitting terminal; the neural network model is trained and obtained by taking a sample signal received by sample equipment as a sample and taking the actual distance between the sample equipment and each sample transmitting end as a sample label; the sample signals are transmitted by each sample transmitting terminal.
In addition, the logic instructions in the memory 603 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being storable on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, a computer is capable of executing the method for positioning a device provided by the above methods, the method comprising: inputting signals received by target equipment into a neural network model to obtain the distance between the target equipment and each target transmitting end output by the neural network model; wherein the signal is transmitted by each target transmitting terminal; calculating the positioning position of the target equipment according to the distance between the target equipment and each target transmitting terminal; the neural network model is trained and obtained by taking a sample signal received by sample equipment as a sample and taking the actual distance between the sample equipment and each sample transmitting end as a sample label; the sample signals are transmitted by each sample transmitting terminal.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements a method for positioning a device provided by the above methods, the method comprising: inputting signals received by target equipment into a neural network model to obtain the distance between the target equipment and each target transmitting end output by the neural network model; wherein the signal is transmitted by each target transmitting terminal; calculating the positioning position of the target equipment according to the distance between the target equipment and each target transmitting terminal; the neural network model is trained and obtained by taking a sample signal received by sample equipment as a sample and taking the actual distance between the sample equipment and each sample transmitting end as a sample label; the sample signals are transmitted by each sample transmitting terminal.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for locating a device, comprising:
inputting signals received by target equipment into a neural network model to obtain the distance between the target equipment and each target transmitting end output by the neural network model; wherein the signal is transmitted by each target transmitting terminal;
calculating the positioning position of the target equipment according to the distance between the target equipment and each target transmitting terminal;
the neural network model is trained and obtained by taking a sample signal received by sample equipment as a sample and taking the actual distance between the sample equipment and each sample transmitting end as a sample label; the sample signals are transmitted by each sample transmitting terminal.
2. The method of claim 1, wherein the calculating the location position of the target device according to the distance between the target device and each target transmitting end comprises:
sorting the distances in the order from small to large, and forming a target distance set by a plurality of distances at the front of a sorting result; wherein the number of distances in the target distance set is greater than or equal to 3;
for each distance in the target set, fitting a circular area corresponding to each distance according to each distance and the position coordinate of the target transmitting end corresponding to each distance;
under the condition that the circular areas corresponding to all the distances in the target set are intersected, calculating intersection point coordinates in the intersection areas of the circular areas corresponding to all the distances in the target set;
and calculating the positioning position of the target equipment according to the intersection point coordinates.
3. The device location method of claim 2, wherein said calculating the location of the target device based on the intersection coordinates comprises:
calculating the centroid coordinates of a polygon formed by the intersection point coordinates based on a weighted centroid algorithm;
and taking the centroid coordinate as the positioning position of the target device.
4. The device positioning method according to any one of claims 1 to 3, before inputting the signal received by the target device into the neural network model and obtaining the distance between the target device and each target transmitting terminal output by the neural network model, further comprising:
acquiring initial parameters of the neural network model based on a fish swarm algorithm;
inputting the sample signals received by the sample equipment into the neural network model to obtain the distance between the sample equipment output by the neural network model and each sample transmitting end;
obtaining a loss function of the neural network model according to the distance between the sample equipment and each sample transmitting end and the actual distance between the sample equipment and each sample transmitting end output by the neural network model;
and optimizing initial parameters of the neural network model according to the loss function.
5. The method according to any one of claims 1 to 3, wherein the inputting the signal received by the target device into a neural network model to obtain the distance between the target device and each target transmitting terminal output by the neural network model comprises:
preprocessing a signal received by the target device;
wherein the preprocessing comprises normalization processing and/or filtering processing;
and inputting the preprocessed signals into the neural network model to obtain the distance between the target equipment output by the neural network model and each target transmitting terminal.
6. The device positioning method according to claim 5, wherein the preprocessing is a filtering processing;
accordingly, the preprocessing the signal received by the target device includes:
determining whether each signal transmitted by each target transmitting terminal received by the target equipment is an abnormal value or not based on a Grubbs test method;
and performing Gaussian filtering on signals except the abnormal value in the signals transmitted by each target transmitting end received by the target equipment, and then performing mean filtering.
7. A device positioning system, comprising:
the output module is used for inputting signals received by target equipment into a neural network model to obtain the distance between the target equipment output by the neural network model and each target transmitting terminal; wherein the signal is transmitted by each target transmitting terminal;
the positioning module is used for calculating the positioning position of the target equipment according to the distance between the target equipment and each target transmitting terminal;
the neural network model is trained and obtained by taking a sample signal received by sample equipment as a sample and taking the actual distance between the sample equipment and each sample transmitting end as a sample label; the sample signals are transmitted by each sample transmitting terminal.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the device location method according to any of claims 1 to 6 are implemented when the program is executed by the processor.
9. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when being executed by a processor, is adapted to carry out the steps of the method for positioning a device according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program is adapted to carry out the steps of the method for locating a device according to any one of claims 1 to 6 when executed by a processor.
CN202111072906.0A 2021-09-14 2021-09-14 Equipment positioning method and system Active CN113518425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111072906.0A CN113518425B (en) 2021-09-14 2021-09-14 Equipment positioning method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111072906.0A CN113518425B (en) 2021-09-14 2021-09-14 Equipment positioning method and system

Publications (2)

Publication Number Publication Date
CN113518425A true CN113518425A (en) 2021-10-19
CN113518425B CN113518425B (en) 2022-01-07

Family

ID=78063134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111072906.0A Active CN113518425B (en) 2021-09-14 2021-09-14 Equipment positioning method and system

Country Status (1)

Country Link
CN (1) CN113518425B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1051840A (en) * 1996-07-29 1998-02-20 Matsushita Electric Ind Co Ltd Position detection system for radio mobile station
CN101815308A (en) * 2009-11-20 2010-08-25 哈尔滨工业大学 WLAN indoor positioning method for neural network regional training
CN102413564A (en) * 2011-11-25 2012-04-11 北京工业大学 Indoor positioning method based on BP neural network and improved centroid algorithm
CN102883434A (en) * 2012-10-31 2013-01-16 河南省电力公司电力科学研究院 System for positioning and navigating mobile terminal in transformer substation
CN103839241A (en) * 2014-03-21 2014-06-04 北京航空航天大学 Interpolation triangle forming method and device
CN105611623A (en) * 2015-09-18 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Positioning method of mobile terminal and positioning device
CN108345875A (en) * 2018-04-08 2018-07-31 北京初速度科技有限公司 Wheeled region detection model training method, detection method and device
CN109996172A (en) * 2019-03-14 2019-07-09 北京工业大学 One kind being based on BP neural network precision indoor positioning system and localization method
CN110234072A (en) * 2019-06-28 2019-09-13 徐州工业职业技术学院 Improvement weighted mass center localization method based on fingerprint quantization
CN113056001A (en) * 2021-03-17 2021-06-29 长春工业大学 Differential correction weighted centroid positioning method based on hybrid filtering

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1051840A (en) * 1996-07-29 1998-02-20 Matsushita Electric Ind Co Ltd Position detection system for radio mobile station
CN101815308A (en) * 2009-11-20 2010-08-25 哈尔滨工业大学 WLAN indoor positioning method for neural network regional training
CN102413564A (en) * 2011-11-25 2012-04-11 北京工业大学 Indoor positioning method based on BP neural network and improved centroid algorithm
CN102883434A (en) * 2012-10-31 2013-01-16 河南省电力公司电力科学研究院 System for positioning and navigating mobile terminal in transformer substation
CN103839241A (en) * 2014-03-21 2014-06-04 北京航空航天大学 Interpolation triangle forming method and device
CN105611623A (en) * 2015-09-18 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Positioning method of mobile terminal and positioning device
CN108345875A (en) * 2018-04-08 2018-07-31 北京初速度科技有限公司 Wheeled region detection model training method, detection method and device
CN109996172A (en) * 2019-03-14 2019-07-09 北京工业大学 One kind being based on BP neural network precision indoor positioning system and localization method
CN110234072A (en) * 2019-06-28 2019-09-13 徐州工业职业技术学院 Improvement weighted mass center localization method based on fingerprint quantization
CN113056001A (en) * 2021-03-17 2021-06-29 长春工业大学 Differential correction weighted centroid positioning method based on hybrid filtering

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
付佐毅等: "轻量级目标识别深度神经网络及其应用", 《计算机工程与应用》 *
邓素等: "基于人工鱼群优化的BP神经网络WiFi指纹室内定位方法", 《全球定位系统》 *

Also Published As

Publication number Publication date
CN113518425B (en) 2022-01-07

Similar Documents

Publication Publication Date Title
WO2016187746A1 (en) Method and device for improving positioning performance of artificial neural network
CN109446889A (en) Object tracking method and device based on twin matching network
US11514315B2 (en) Deep neural network training method and apparatus, and computer device
CN109272016A (en) Object detection method, device, terminal device and computer readable storage medium
CN109490826A (en) A kind of ranging and location positioning method based on radio wave field strength RSSI
Zeng et al. UWB NLOS identification with feature combination selection based on genetic algorithm
CN109188410A (en) A kind of range calibration method, device and equipment under non line of sight scene
CN112949820A (en) Cognitive anti-interference target detection method based on generation of countermeasure network
CN111582358A (en) Training method and device for house type recognition model and house type weight judging method and device
CN112949387A (en) Intelligent anti-interference target detection method based on transfer learning
CN113435355A (en) Multi-target cow identity identification method and system
CN110348434A (en) Camera source discrimination method, system, storage medium and calculating equipment
CN111698695A (en) LTE fingerprint type positioning method based on neural network
CN114440858B (en) Mobile robot positioning loss detection method, system, equipment and storage medium
CN115131437A (en) Pose estimation method, and training method, device, equipment and medium of relevant model
CN113518425B (en) Equipment positioning method and system
CN110188661A (en) Boundary Recognition method and device
CN114814776B (en) PD radar target detection method based on graph attention network and transfer learning
CN115527050A (en) Image feature matching method, computer device and readable storage medium
CN114627468A (en) Wheat field obstacle detection method based on generation of confrontation network
CN115379378A (en) Bluetooth indoor positioning method and device
CN113055814B (en) Indoor positioning method for improving WKNN
CN116468962B (en) Pest identification method, device, equipment and medium
CN114449435B (en) Fingerprint positioning method based on measurement learning of large-interval neighbor
CN111866742B (en) Indoor passive positioning method based on WiFi

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
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Chen Dezhong

Inventor after: Fu Cheng

Inventor after: Zhang Hongping

Inventor after: Chen Zhitao

Inventor after: Shi Hualin

Inventor after: Guo Kai

Inventor after: Feng Qiuping

Inventor after: Xia Huajia

Inventor before: Chen Dezhong

Inventor before: Fu Cheng

Inventor before: Zhang Hongping

Inventor before: Chen Zhitao

Inventor before: Shi Hualin

Inventor before: Guo Kai

Inventor before: Feng Qiuping

Inventor before: Xia Huajia

Inventor before: Wu Peng

CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Fu Cheng

Inventor after: Chen Zhitao

Inventor after: Shi Hualan

Inventor after: Guo Kai

Inventor after: Xia Huajia

Inventor after: Wu Peng

Inventor before: Chen Dezhong

Inventor before: Fu Cheng

Inventor before: Zhang Hongping

Inventor before: Chen Zhitao

Inventor before: Shi Hualin

Inventor before: Guo Kai

Inventor before: Feng Qiuping

Inventor before: Xia Huajia

Inventor before: Wu Peng

CI03 Correction of invention patent
CI03 Correction of invention patent

Correction item: Inventor

Correct: Chen Dezhong|Fu Cheng|Zhang Hongping|Chen Zhitao|Shi Hualin|Guo Kai|Feng Qiuping|Xia Huajia|Wu Peng

False: Chen Dezhong|Fu Cheng|Zhang Hongping|Chen Zhitao|Shi Hualin|Guo Kai|Feng Qiuping|Xia Huajia

Number: 11-02

Volume: 39